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
|
---|---|---|---|---|---|
da53a721c78b1bfe143f5a20a8637a7501175362
|
Wordpress Stackexchange
Q: Wordpress 1 domain multiple blogs I need to setup a website with wordpress that 1 domain with have different pages of blogs. For example:
- my website have Home, Artworks, Techniques pages.
- Artworks and Techniques are 2 different blogs.
- Home will shows whichever posts that is latest from Artwork and Techniques.
How can I do that with wordpress?? Thanks!
A: Just use different categories and link your "blog" to the category page.
|
Q: Wordpress 1 domain multiple blogs I need to setup a website with wordpress that 1 domain with have different pages of blogs. For example:
- my website have Home, Artworks, Techniques pages.
- Artworks and Techniques are 2 different blogs.
- Home will shows whichever posts that is latest from Artwork and Techniques.
How can I do that with wordpress?? Thanks!
A: Just use different categories and link your "blog" to the category page.
A: Your answer was solved many years ago then not long ago integrated into the current version of WordPress: MU then Network/MultiSite. You can read about creating a network at the WordPress Codex
A: If I'm understanding you correctly you just want to sort things into categories.
If you want to make completely separate sites you can install WordPress into different directories and run them as subdomains.
A: Use 'categories' to sort between the posts you have for the 2 blogs (Artworks and Techniques).
Then use this code snippet on your homepage to spit out posts in a category.:
<?php
query_posts(’showposts=1&cat=3′);
while(have_posts()) : the_post();
?>
<ul><li>
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title();
?></a></h3>
<ul><li><?php the_content_limit(520); ?></li>
</ul></li></ul>
<?php endwhile; ?>
Hopefully, it'll work for you.
|
wordpress
|
{
"language": "en",
"length": 200,
"provenance": "stackexchange_00019.jsonl.gz:411131",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22443"
}
|
[
0.021087646484375,
-0.004791259765625,
0.001789093017578125,
0.01947021484375,
-0.00302886962890625,
-0.043792724609375,
0.055419921875,
-0.048492431640625,
-0.01641845703125,
-0.01023101806640625,
-0.01154327392578125,
0.0416259765625,
-0.0478515625,
-0.03717041015625,
0.04840087890625,
-0.021514892578125,
0.0258331298828125,
0.0045318603515625,
0.016845703125,
-0.00600433349609375,
0.0008544921875,
0.007053375244140625,
0.00501251220703125,
0.0487060546875,
0.031646728515625,
-0.040008544921875,
0.04205322265625,
-0.004070281982421875,
-0.001758575439453125,
-0.0157318115234375,
0.0228271484375,
0.003101348876953125,
0.0240020751953125,
0.016937255859375,
-0.02130126953125,
-0.0066375732421875,
-0.0235595703125,
0.0196380615234375,
0.001678466796875,
0.03314208984375,
0.0015687942504882812,
0.0131072998046875,
0.0301055908203125,
0.053131103515625,
0.0182342529296875,
-0.0772705078125,
0.01558685302734375,
-0.0909423828125,
-0.00949859619140625,
-0.0088043212890625,
0.0264129638671875,
-0.0157928466796875,
0.03271484375,
0.0104522705078125,
-0.02685546875,
-0.0218658447265625,
0.0509033203125,
-0.0234832763671875,
0.0347900390625,
-0.08203125,
-0.048675537109375,
-0.002559661865234375,
0.0572509765625,
0.032470703125,
-0.02166748046875,
-0.0007147789001464844,
0.0017747879028320312,
0.0192413330078125,
-0.10272216796875,
-0.0445556640625,
0.05194091796875,
-0.0504150390625,
0.0162353515625,
-0.0235595703125,
-0.023681640625,
0.0195465087890625,
-0.0170135498046875,
-0.0254058837890625,
0.026458740234375,
-0.020751953125,
-0.0225830078125,
-0.0008687973022460938,
-0.0293731689453125,
-0.05731201171875,
0.01806640625,
-0.007328033447265625,
-0.01296234130859375,
-0.000013530254364013672,
-0.03594970703125,
0.00347900390625,
-0.0189056396484375,
-0.06707763671875,
-0.038330078125,
0.053863525390625,
0.01389312744140625,
0.0142974853515625,
0.01158905029296875,
0.0181427001953125,
-0.0145263671875,
-0.016143798828125,
0.00247955322265625,
-0.0251617431640625,
-0.01288604736328125,
-0.006374359130859375,
-0.0004456043243408203,
-0.004138946533203125,
0.00278472900390625,
0.0078125,
0.0467529296875,
0.03564453125,
-0.0205230712890625,
0.055694580078125,
-0.01540374755859375,
-0.016937255859375,
0.01435089111328125,
-0.0229034423828125,
-0.06201171875,
0.034423828125,
-0.005847930908203125,
-0.016754150390625,
-0.01392364501953125,
0.039276123046875,
0.01001739501953125,
0.0013217926025390625,
-0.0164794921875,
-0.005252838134765625,
0.0261688232421875,
-0.060150146484375,
0.0211639404296875,
0.004245758056640625,
-0.036224365234375,
0.032806396484375,
0.04522705078125,
-0.0218658447265625,
-0.0249481201171875,
-0.0045013427734375,
0.07244873046875,
0.0270233154296875,
0.0015010833740234375,
0.02569580078125,
0.012664794921875,
-0.0335693359375,
-0.04046630859375,
-0.00838470458984375,
-0.024200439453125,
-0.00537109375,
0.0178070068359375,
0.04486083984375,
-0.00522613525390625,
-0.013824462890625,
0.0090179443359375,
0.01465606689453125,
0.01531219482421875,
-0.0030364990234375,
0.043670654296875,
-0.037994384765625,
-0.004547119140625,
-0.016632080078125,
0.033294677734375,
0.0059356689453125,
0.0180511474609375,
0.00815582275390625,
0.05133056640625,
0.002750396728515625,
0.0008015632629394531,
-0.03094482421875,
-0.039886474609375,
-0.01204681396484375,
0.0323486328125,
-0.005706787109375,
0.01274871826171875,
-0.046051025390625,
0.060333251953125,
0.01959228515625,
-0.004253387451171875,
0.0555419921875,
0.0182342529296875,
0.0122833251953125,
-0.0157470703125,
0.09124755859375,
0.038116455078125,
-0.027557373046875,
0.0090484619140625,
0.003070831298828125,
-0.029754638671875,
0.0323486328125,
-0.00656890869140625,
0.007213592529296875,
-0.0036296844482421875,
0.016357421875,
0.019622802734375,
0.04345703125,
-0.03271484375,
0.019287109375,
-0.01476287841796875,
-0.004016876220703125,
-0.00449371337890625,
0.030975341796875,
-0.007656097412109375,
-0.03082275390625,
-0.002574920654296875,
0.007068634033203125,
0.0054779052734375,
0.0181884765625,
0.028045654296875,
-0.0093841552734375,
0.0025539398193359375,
0.01346588134765625,
-0.014892578125,
0.0178070068359375,
0.0178680419921875,
0.01323699951171875,
0.00634002685546875,
-0.0594482421875,
-0.014312744140625,
0.01824951171875,
-0.01432037353515625,
0.0251922607421875,
-0.0227203369140625,
0.0016460418701171875,
-0.029266357421875,
-0.0150909423828125,
-0.03692626953125,
0.0212249755859375,
0.06646728515625,
-0.024749755859375,
-0.0220184326171875,
-0.045257568359375,
-0.016876220703125,
0.03411865234375,
-0.1630859375,
0.044891357421875,
0.0251922607421875,
0.046295166015625,
-0.014678955078125,
-0.00820159912109375,
0.00994110107421875,
-0.0238800048828125,
0.00864410400390625,
0.0301666259765625,
0.023681640625,
0.0016002655029296875,
-0.0167388916015625,
0.004405975341796875,
0.01216888427734375,
-0.055206298828125,
-0.006855010986328125,
0.00492095947265625,
0.0187225341796875,
0.07635498046875,
-0.00846099853515625,
0.0245513916015625,
0.008209228515625,
-0.056671142578125,
0.01125335693359375,
0.0421142578125,
-0.01215362548828125,
0.00827789306640625,
-0.01468658447265625,
0.0037212371826171875,
0.0081329345703125,
0.0198822021484375,
-0.0083465576171875,
0.0088958740234375,
0.028961181640625,
0.047332763671875,
0.034271240234375,
0.034423828125,
-0.043060302734375,
0.03582763671875,
0.0054168701171875,
0.0010175704956054688,
0.00879669189453125,
0.0294189453125,
0.008514404296875,
0.0114898681640625,
0.0029888153076171875,
-0.0188140869140625,
-0.0093536376953125,
0.006687164306640625,
-0.01483917236328125,
0.019134521484375,
-0.0003914833068847656,
-0.01212310791015625,
-0.0214691162109375,
-0.0498046875,
0.0167999267578125,
-0.0013675689697265625,
-0.0022125244140625,
-0.022857666015625,
0.010711669921875,
0.007068634033203125,
-0.036224365234375,
0.029296875,
0.023590087890625,
-0.037567138671875,
-0.012664794921875,
-0.0672607421875,
0.04425048828125,
-0.04608154296875,
0.04266357421875,
0.07208251953125,
-0.0033245086669921875,
0.0124664306640625,
-0.00579071044921875,
-0.0033054351806640625,
0.037933349609375,
-0.0063323974609375,
-0.0127716064453125,
-0.037109375,
-0.0190582275390625,
-0.0020122528076171875,
0.0163421630859375,
0.015106201171875,
-0.0126495361328125,
-0.0321044921875,
-0.003841400146484375,
0.0009055137634277344,
-0.06396484375,
-0.02923583984375,
-0.0054779052734375,
-0.0154876708984375,
0.0231475830078125,
0.005893707275390625,
0.00036072731018066406,
-0.03729248046875,
0.032867431640625,
0.016265869140625,
0.0075836181640625,
-0.03790283203125,
-0.060577392578125,
-0.047882080078125,
-0.060028076171875,
-0.0177764892578125,
-0.006801605224609375,
-0.007598876953125,
-0.0025043487548828125,
0.03826904296875,
0.0038127899169921875,
-0.049346923828125,
0.0009908676147460938,
0.0543212890625,
-0.005168914794921875,
-0.001407623291015625,
0.006099700927734375,
-0.024688720703125,
-0.042083740234375,
0.0252838134765625,
0.0496826171875,
-0.0057830810546875,
-0.01232147216796875,
-0.002101898193359375,
-0.0233154296875,
-0.003902435302734375,
0.00843048095703125,
-0.037811279296875,
0.012603759765625,
0.0302886962890625,
-0.009429931640625,
-0.027069091796875,
0.00628662109375,
-0.0110015869140625,
-0.04486083984375,
-0.0552978515625,
0.042266845703125,
-0.0277252197265625,
-0.028350830078125,
-0.052398681640625,
-0.002166748046875,
0.0134429931640625,
0.00760650634765625,
-0.04193115234375,
0.0247650146484375,
0.013336181640625,
0.008514404296875,
-0.0006756782531738281,
-0.009246826171875,
-0.038787841796875,
-0.01168060302734375,
-0.0302886962890625,
-0.025665283203125,
-0.051910400390625,
0.05328369140625,
-0.020263671875,
-0.020416259765625,
0.0283660888671875,
-0.01099395751953125,
-0.00414276123046875,
-0.01416015625,
-0.0229949951171875,
-0.0023784637451171875,
0.053070068359375,
-0.111572265625,
-0.00261688232421875,
0.049346923828125,
0.0309295654296875,
-0.04180908203125,
-0.012451171875,
-0.08709716796875,
-0.01361083984375,
-0.043914794921875,
0.01218414306640625,
-0.01262664794921875,
-0.0027904510498046875,
-0.0091094970703125,
0.033782958984375,
-0.0008111000061035156,
-0.036376953125,
0.0297698974609375,
0.007904052734375,
0.003032684326171875,
-0.0161895751953125,
0.0159759521484375,
-0.033660888671875,
-0.0165863037109375,
-0.0016269683837890625,
-0.04510498046875,
-0.01605224609375,
0.021087646484375,
0.021392822265625,
0.02362060546875,
-0.07415771484375,
0.01528167724609375,
0.0548095703125,
-0.006954193115234375,
0.0123443603515625,
0.0035343170166015625,
0.014068603515625,
0.021697998046875,
-0.032623291015625,
-0.01247406005859375,
-0.0369873046875,
-0.0283966064453125,
-0.061248779296875,
-0.0292816162109375,
-0.01885986328125,
-0.028228759765625,
0.00858306884765625,
-0.019256591796875,
0.014251708984375,
-0.02838134765625,
-0.01873779296875,
-0.0004506111145019531,
0.0136871337890625,
0.0013256072998046875,
-0.006153106689453125,
-0.01160430908203125,
-0.00595855712890625,
0.011260986328125,
-0.023345947265625,
-0.0206298828125,
0.023345947265625,
0.06951904296875,
0.01404571533203125,
0.002166748046875,
-0.0574951171875,
0.01885986328125,
0.03363037109375,
0.02520751953125,
0.04608154296875,
0.0213470458984375,
-0.0177001953125,
0.0299835205078125,
0.0260162353515625,
-0.01374053955078125,
0.0279083251953125,
-0.013031005859375,
0.0289764404296875,
-0.020294189453125,
-0.00254058837890625,
0.0225982666015625,
0.0023555755615234375,
0.0142669677734375,
-0.01111602783203125,
-0.022918701171875,
-0.014984130859375,
0.051605224609375,
0.005672454833984375,
-0.009368896484375,
-0.05291748046875,
-0.019195556640625,
-0.005645751953125,
0.012237548828125,
0.039520263671875,
0.021728515625,
0.01535797119140625,
0.01024627685546875,
0.053955078125,
-0.0265045166015625,
0.024383544921875,
0.007564544677734375,
-0.00411224365234375,
0.0188751220703125,
-0.0154876708984375,
-0.047393798828125,
0.00909423828125,
-0.0257415771484375,
0.0538330078125,
0.012603759765625,
-0.061004638671875,
0.03375244140625,
-0.007396697998046875,
0.0341796875,
0.019134521484375,
0.0120086669921875,
0.046600341796875,
-0.0557861328125,
-0.031402587890625,
-0.00371551513671875,
-0.024810791015625,
-0.0875244140625,
-0.040069580078125,
0.006381988525390625,
-0.00811004638671875,
0.001979827880859375,
0.04010009765625,
0.0347900390625,
-0.00482940673828125,
0.036712646484375,
-0.033782958984375,
0.015625,
0.0212554931640625,
0.012054443359375,
0.0203399658203125,
0.01605224609375,
-0.030242919921875,
0.0103759765625,
0.0090484619140625,
-0.044708251953125,
0.019622802734375,
0.03961181640625,
0.061553955078125,
0.0120086669921875,
-0.04217529296875,
-0.0017595291137695312,
-0.03253173828125,
0.0178070068359375,
-0.00018084049224853516,
-0.02081298828125,
-0.029327392578125,
0.018524169921875,
0.02972412109375,
-0.0009832382202148438,
-0.029571533203125,
-0.005939483642578125,
0.005615234375,
0.0088348388671875,
0.039886474609375,
-0.03692626953125,
-0.00301361083984375,
0.0273895263671875,
0.026031494140625,
-0.018768310546875,
0.0148162841796875,
0.0193939208984375,
-0.07177734375,
-0.056732177734375,
-0.002166748046875,
-0.01479339599609375,
0.038970947265625,
-0.0295257568359375,
0.030792236328125,
-0.040679931640625,
0.00716400146484375,
-0.032623291015625,
0.0070648193359375,
0.046661376953125,
0.036376953125,
-0.093017578125,
0.00971221923828125,
-0.045013427734375,
0.0036754608154296875,
0.0136260986328125,
-0.0157318115234375,
-0.034210205078125,
-0.029205322265625,
0.01025390625,
0.036773681640625,
0.006687164306640625,
-0.026580810546875,
-0.00975799560546875,
-0.03790283203125,
-0.00635528564453125,
0.0022144317626953125,
-0.017333984375,
0.00872802734375,
0.013916015625,
0.048797607421875,
0.022918701171875,
0.01354217529296875,
0.0019321441650390625,
-0.05242919921875,
0.012847900390625,
-0.083251953125,
-0.032745361328125,
0.0101318359375,
-0.04644775390625,
0.0260772705078125,
-0.002208709716796875,
-0.00553131103515625,
0.02569580078125,
-0.033905029296875,
0.0052642822265625,
-0.0280303955078125,
-0.017333984375,
-0.07672119140625,
-0.01395416259765625,
-0.004146575927734375,
0.01264190673828125,
0.05950927734375,
-0.0294189453125,
-0.0379638671875,
0.0199127197265625,
-0.005825042724609375,
0.045562744140625,
0.007686614990234375,
-0.0034770965576171875,
0.0009765625,
0.0205230712890625,
0.00646209716796875,
0.02197265625,
0.021759033203125,
0.0206451416015625,
-0.005035400390625,
-0.0279388427734375,
0.003643035888671875,
0.003688812255859375,
0.0245361328125,
-0.018646240234375,
0.01312255859375,
0.04583740234375,
-0.007488250732421875,
-0.022247314453125,
0.054534912109375,
0.040008544921875,
-0.060516357421875,
-0.00563812255859375,
-0.01139068603515625,
-0.0033512115478515625,
0.024200439453125,
0.01096343994140625,
0.0062408447265625,
-0.00922393798828125,
-0.0023899078369140625,
0.01273345947265625,
-0.01198577880859375,
-0.01171875,
0.00806427001953125,
-0.00418853759765625,
0.001064300537109375,
-0.00608062744140625,
0.00881195068359375,
-0.0770263671875,
0.01377105712890625,
0.07537841796875,
-0.0166778564453125,
-0.0186004638671875,
-0.022308349609375,
0.036224365234375,
-0.0279541015625,
-0.0169525146484375,
0.062744140625,
-0.019195556640625,
0.0213470458984375,
-0.04559326171875,
-0.0185394287109375,
0.0088653564453125,
0.01480865478515625,
-0.0352783203125,
-0.011993408203125,
0.0022335052490234375,
-0.01552581787109375,
-0.0234375,
-0.0027313232421875,
0.0389404296875,
0.0132293701171875,
-0.04864501953125,
0.01788330078125,
-0.049346923828125,
-0.003719329833984375,
-0.032073974609375,
-0.045867919921875,
0.06298828125,
-0.01434326171875,
-0.0157318115234375,
0.018798828125,
0.00829315185546875,
-0.0095367431640625,
-0.0030651092529296875,
-0.00557708740234375,
-0.0258941650390625,
-0.03680419921875,
-0.00762176513671875,
-0.07818603515625,
0.01012420654296875,
-0.03875732421875,
-0.0740966796875,
0.0732421875,
-0.0254364013671875,
0.07989501953125,
0.031341552734375,
0.0016546249389648438,
0.00811004638671875,
-0.00811767578125,
-0.019622802734375,
0.022125244140625,
-0.0138397216796875,
0.0057525634765625,
-0.0171966552734375,
0.01531982421875,
-0.0112152099609375,
0.01540374755859375,
0.057342529296875,
0.0236663818359375,
-0.04132080078125,
0.00542449951171875,
0.0300750732421875,
-0.0013208389282226562,
-0.0260162353515625,
0.07098388671875,
-0.029205322265625,
-0.0116119384765625,
-0.00597381591796875,
0.0048980712890625,
0.045440673828125,
-0.0159149169921875,
-0.06585693359375,
-0.005092620849609375,
0.01326751708984375,
-0.00798797607421875,
0.002948760986328125,
0.011260986328125,
-0.05908203125,
0.01439666748046875,
0.02667236328125,
0.052886962890625,
0.0340576171875,
0.009246826171875,
0.045745849609375,
-0.040771484375,
0.043060302734375,
-0.0218353271484375,
0.060638427734375,
-0.0079498291015625,
0.003658294677734375,
0.0635986328125,
0.029144287109375,
0.003582000732421875,
0.009521484375,
0.01033782958984375,
0.00907135009765625,
-0.01276397705078125,
0.01335906982421875,
0.0134124755859375,
0.030792236328125,
-0.0293731689453125,
-0.049468994140625,
0.016265869140625,
0.041290283203125,
-0.011138916015625,
-0.02532958984375,
0.0112152099609375,
0.0087432861328125,
0.0166168212890625,
-0.0272369384765625,
0.0038127899169921875,
0.005168914794921875,
0.033111572265625,
-0.02325439453125,
0.012237548828125,
0.044158935546875,
-0.0204315185546875,
-0.00223541259765625,
0.00853729248046875,
-0.00308990478515625,
0.0430908203125,
-0.037811279296875,
0.0312347412109375,
0.012176513671875,
0.07611083984375,
-0.0038433074951171875,
0.07135009765625,
-0.0693359375,
-0.0267791748046875,
-0.01349639892578125,
0.060272216796875,
-0.00380706787109375,
0.01593017578125,
-0.08599853515625,
-0.085693359375,
0.0256500244140625,
0.0640869140625,
0.0154571533203125,
0.000885009765625,
0.0233001708984375,
0.0584716796875,
-0.005985260009765625,
-0.01540374755859375,
0.07171630859375,
0.00907135009765625,
0.01488494873046875,
-0.037689208984375,
-0.0172119140625,
-0.0164794921875,
-0.0266571044921875,
0.0016498565673828125,
-0.022369384765625,
0.02655029296875,
-0.002895355224609375,
0.053558349609375,
-0.01013946533203125,
-0.0022563934326171875,
-0.003978729248046875,
-0.018646240234375,
0.06781005859375,
0.0284271240234375,
-0.0740966796875,
-0.014495849609375,
-0.0384521484375,
-0.052398681640625,
0.04559326171875,
0.0662841796875,
-0.0009365081787109375,
-0.025146484375,
0.0170135498046875,
-0.038421630859375,
0.0228118896484375,
0.003368377685546875,
0.0202789306640625,
0.0233306884765625,
0.0083465576171875,
0.0150604248046875,
-0.08258056640625,
-0.03839111328125,
-0.0157012939453125,
0.01513671875,
0.00545501708984375,
0.07330322265625,
0.0049896240234375,
0.01436614990234375,
0.01427459716796875,
0.037261962890625,
0.0030841827392578125,
0.0031337738037109375,
0.003963470458984375,
0.03271484375,
0.0300750732421875,
-0.032501220703125,
-0.0288848876953125,
0.00849151611328125,
0.033172607421875,
-0.01393890380859375,
0.01837158203125,
-0.026397705078125,
0.02008056640625,
-0.006771087646484375,
0.05047607421875,
-0.0225830078125,
-0.05450439453125,
-0.08306884765625,
-0.016143798828125,
0.041839599609375,
0.0511474609375,
-0.0152587890625,
0.037628173828125,
-0.01727294921875,
-0.0362548828125,
0.0018491744995117188,
-0.046783447265625,
-0.009002685546875,
0.02471923828125,
0.03985595703125,
-0.057464599609375,
0.002979278564453125,
-0.00605010986328125,
-0.0010633468627929688,
-0.00045800209045410156,
0.059234619140625,
0.0005955696105957031,
-0.033538818359375,
0.032135009765625,
0.0089263916015625,
0.0239715576171875,
-0.01073455810546875,
-0.007221221923828125,
0.034423828125,
-0.0143890380859375,
0.0009751319885253906,
0.038238525390625,
-0.01021575927734375,
-0.020355224609375,
0.01222991943359375,
-0.0000731348991394043,
-0.0025691986083984375,
-0.006591796875,
-0.02886962890625,
-0.01105499267578125,
0.031829833984375,
-0.0028209686279296875,
-0.024444580078125,
0.006534576416015625,
-0.030487060546875,
0.033721923828125,
0.0030002593994140625,
-0.01406097412109375,
0.00146484375,
0.035003662109375,
-0.038238525390625,
-0.033905029296875,
-0.034332275390625,
0.0161895751953125,
-0.0494384765625,
0.031829833984375,
0.02410888671875,
-0.043212890625,
0.0273284912109375,
0.028900146484375,
0.0531005859375,
0.073974609375,
0.0311737060546875,
-0.000720977783203125,
-0.0000960230827331543,
-0.0163421630859375,
-0.0293121337890625,
-0.0250701904296875,
0.041259765625,
-0.07025146484375,
-0.048431396484375,
0.01255035400390625,
-0.0285797119140625,
-0.004756927490234375,
-0.04534912109375,
-0.0863037109375,
0.0870361328125,
-0.0258331298828125,
-0.03350830078125,
-0.0809326171875,
0.01459503173828125,
-0.01129913330078125,
0.050384521484375,
-0.0207977294921875,
-0.0004935264587402344,
-0.00821685791015625,
0.0421142578125,
0.01934814453125,
0.01157379150390625,
0.0014162063598632812,
0.00881195068359375,
-0.00026345252990722656,
0.037811279296875,
0.036773681640625,
-0.0163421630859375,
0.0269775390625,
-0.005649566650390625,
0.0020160675048828125,
0.0394287109375,
-0.044769287109375,
-0.050018310546875,
-0.025848388671875,
-0.0303802490234375,
0.0107879638671875,
-0.032501220703125,
-0.06414794921875,
-0.05035400390625,
0.032257080078125,
0.047210693359375,
0.0204010009765625,
0.0138702392578125,
0.0239105224609375,
-0.0399169921875,
-0.03619384765625,
-0.0229949951171875,
0.00963592529296875,
-0.041046142578125,
0.0092926025390625,
0.01367950439453125,
-0.006961822509765625,
0.0096893310546875,
0.00585174560546875,
-0.024658203125,
-0.0073089599609375,
0.038360595703125,
0.005046844482421875,
-0.0439453125,
-0.005615234375,
0.0166168212890625,
-0.01270294189453125,
0.034576416015625,
-0.00934600830078125,
0.0080413818359375,
0.0204925537109375,
0.029205322265625,
0.0166778564453125,
0.0184783935546875,
-0.0279998779296875,
0.00506591796875,
0.0267333984375,
0.003643035888671875,
-0.02044677734375,
-0.0224761962890625,
-0.0148468017578125,
0.0018367767333984375,
0.0254974365234375,
0.011962890625,
-0.0141754150390625,
-0.01396942138671875,
0.006038665771484375,
-0.0216217041015625,
-0.0027294158935546875,
0.003017425537109375,
-0.009185791015625,
0.032623291015625,
-0.042877197265625,
-0.005458831787109375,
0.005947113037109375,
-0.044281005859375,
-0.004749298095703125,
0.002712249755859375,
0.032379150390625,
-0.04522705078125,
0.027069091796875,
0.036712646484375,
0.030670166015625,
0.0237884521484375
] |
08c23facf7edd423c633b420ba1ad3cfad572dfc
|
Wordpress Stackexchange
Q: Do_Shortcode not working for Embed I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this:
<?php echo do_shortcode('[embed]http://www.youtube.com/watch?v=K0M09Ws8vpc&feature=player_embedded[/embed]'); ?>
Does not seem to work, however in the same single.php file this does work perfectly:
<?php echo do_shortcode('[gallery link="file" size="thumbnail" icontag="div"]'); ?>
I put them one after another to test them out, any ideas why the [embed] shortcode doesn't get parsed (it just shows nothing)
If I do the embed shortcode directly into the post it works perfectly.
Thanks,
Jordan
A: Your code should work, possibly an idea for a trac ticket.
In the meantime you can try:
global $wp_embed;
$post_embed = $wp_embed->run_shortcode('[embed]http://www.youtube.com/watch?v=K0M09Ws8vpc&feature=player_embedded[/embed]');
echo $post_embed;
|
Q: Do_Shortcode not working for Embed I'm trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this:
<?php echo do_shortcode('[embed]http://www.youtube.com/watch?v=K0M09Ws8vpc&feature=player_embedded[/embed]'); ?>
Does not seem to work, however in the same single.php file this does work perfectly:
<?php echo do_shortcode('[gallery link="file" size="thumbnail" icontag="div"]'); ?>
I put them one after another to test them out, any ideas why the [embed] shortcode doesn't get parsed (it just shows nothing)
If I do the embed shortcode directly into the post it works perfectly.
Thanks,
Jordan
A: Your code should work, possibly an idea for a trac ticket.
In the meantime you can try:
global $wp_embed;
$post_embed = $wp_embed->run_shortcode('[embed]http://www.youtube.com/watch?v=K0M09Ws8vpc&feature=player_embedded[/embed]');
echo $post_embed;
A: Simply put [embed] is not a regular shortcode. Most of the time it does nothing. What happens when post content goes through the_content filter is following:
*
*[emded] is currently registered to do nothing ( __return_false() )
*WP_Embed->run_shortcode() filter runs with low 8 priority
*all shortcodes are disabled
*[embed] is registered to WP_Embed->shortocde()
*do_shortcode() executes on content (only doing embeds, since rest is disabled)
*shortcodes are restored to original state, [embed] is back to being useless.
So my quick guess for something to try would be:
global $wp_embed;
echo $wp_embed->run_shortcode('[embed]whatever[/embed]');
But note that there is also caching involved (embedding results are saved to custom field of the post, otherwise it would need to make HTTP request every time) and you are likely breaking that, unless you are doing it inside loop and close to where it normally works. Maybe even then.
A: $video_url = get_post_meta($post_id, 'video_url',true);
//or
$video_url .= 'video url';
$check_embeds=$GLOBALS['wp_embed']->run_shortcode( '[embed]'. $video_url .'[/embed]' );
echo $check_embeds;
|
wordpress
|
{
"language": "en",
"length": 281,
"provenance": "stackexchange_00019.jsonl.gz:411157",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22524"
}
|
[
0.07733154296875,
0.0135345458984375,
0.0032024383544921875,
-0.0309906005859375,
0.033477783203125,
-0.02313232421875,
0.059326171875,
-0.036590576171875,
-0.033782958984375,
-0.002407073974609375,
-0.035186767578125,
0.0138092041015625,
-0.07440185546875,
-0.0220184326171875,
-0.003292083740234375,
-0.0594482421875,
0.0042724609375,
0.03802490234375,
0.0240631103515625,
-0.02142333984375,
-0.0195770263671875,
-0.0159149169921875,
0.02191162109375,
0.00830841064453125,
0.01027679443359375,
-0.02728271484375,
0.0889892578125,
-0.037506103515625,
0.01375579833984375,
-0.0175323486328125,
0.0196990966796875,
-0.0065765380859375,
0.0457763671875,
0.03094482421875,
-0.07464599609375,
0.05078125,
-0.036407470703125,
0.017486572265625,
-0.013916015625,
0.027374267578125,
0.015960693359375,
0.0013380050659179688,
0.0850830078125,
-0.017059326171875,
0.0148773193359375,
-0.01165771484375,
0.007343292236328125,
-0.0262298583984375,
0.0021495819091796875,
-0.0100860595703125,
0.0224609375,
0.031707763671875,
0.028289794921875,
-0.0217437744140625,
0.0157318115234375,
0.0504150390625,
-0.040679931640625,
-0.0017576217651367188,
0.0163726806640625,
0.0229644775390625,
0.00942230224609375,
-0.0003807544708251953,
0.004619598388671875,
-0.0089874267578125,
0.0345458984375,
-0.015625,
0.021575927734375,
0.033233642578125,
0.0038127899169921875,
0.038116455078125,
0.0301361083984375,
0.0027637481689453125,
0.0008721351623535156,
-0.014404296875,
-0.03143310546875,
0.019439697265625,
0.01296234130859375,
0.017364501953125,
-0.004657745361328125,
-0.0100860595703125,
0.00933074951171875,
0.020416259765625,
-0.00560760498046875,
-0.0186309814453125,
0.0167388916015625,
0.011871337890625,
-0.0209808349609375,
-0.0187835693359375,
0.007167816162109375,
-0.025115966796875,
-0.0183258056640625,
0.0108184814453125,
-0.03436279296875,
0.01544952392578125,
-0.0164642333984375,
-0.00787353515625,
0.05047607421875,
0.0802001953125,
-0.02032470703125,
0.00606536865234375,
-0.01544952392578125,
-0.0280303955078125,
0.0223236083984375,
-0.051727294921875,
0.022796630859375,
0.01226043701171875,
-0.01070404052734375,
-0.02960205078125,
0.024322509765625,
-0.001636505126953125,
-0.032470703125,
0.041290283203125,
-0.02001953125,
-0.0106964111328125,
-0.022705078125,
-0.0249176025390625,
-0.0833740234375,
0.00817108154296875,
-0.0169677734375,
-0.016571044921875,
0.0413818359375,
0.033233642578125,
0.02813720703125,
0.0074920654296875,
-0.0010328292846679688,
0.029754638671875,
-0.03424072265625,
-0.06292724609375,
0.0265960693359375,
0.01953125,
-0.042236328125,
-0.01168060302734375,
0.083984375,
0.036407470703125,
0.046417236328125,
-0.029022216796875,
-0.023773193359375,
0.019195556640625,
0.01433563232421875,
0.02117919921875,
-0.051849365234375,
-0.0305938720703125,
0.0675048828125,
-0.0196685791015625,
-0.019805908203125,
0.0178680419921875,
0.01419830322265625,
0.01861572265625,
-0.014373779296875,
-0.0772705078125,
0.026641845703125,
-0.016357421875,
0.0164794921875,
0.023590087890625,
0.056182861328125,
-0.02935791015625,
0.07781982421875,
-0.05328369140625,
0.0214996337890625,
-0.035186767578125,
-0.0178375244140625,
-0.00867462158203125,
0.01373291015625,
-0.0006456375122070312,
-0.01158905029296875,
0.0117950439453125,
-0.0179595947265625,
0.004547119140625,
0.0189971923828125,
0.08697509765625,
-0.01995849609375,
-0.0108795166015625,
-0.03643798828125,
0.024444580078125,
-0.006397247314453125,
0.0103759765625,
0.0175323486328125,
-0.01180267333984375,
0.0345458984375,
0.01174163818359375,
-0.023773193359375,
-0.021636962890625,
0.05755615234375,
-0.04180908203125,
-0.04193115234375,
0.038482666015625,
0.01462554931640625,
0.042816162109375,
0.0009112358093261719,
0.0199127197265625,
0.04486083984375,
0.054534912109375,
0.01323699951171875,
-0.0117340087890625,
0.01557159423828125,
-0.02264404296875,
-0.02508544921875,
-0.0254974365234375,
-0.0157623291015625,
0.0105743408203125,
0.005786895751953125,
-0.00788116455078125,
0.01326751708984375,
0.01125335693359375,
-0.0075836181640625,
0.00728607177734375,
-0.0100555419921875,
0.0147247314453125,
0.00897979736328125,
-0.018310546875,
0.009857177734375,
0.0014753341674804688,
-0.015960693359375,
-0.004970550537109375,
-0.0355224609375,
0.06097412109375,
-0.0228729248046875,
0.06591796875,
-0.0086822509765625,
0.056427001953125,
-0.0283966064453125,
-0.06121826171875,
-0.008880615234375,
-0.0189208984375,
0.04437255859375,
-0.011932373046875,
-0.0195465087890625,
-0.02581787109375,
0.00748443603515625,
0.0038604736328125,
-0.04205322265625,
0.049285888671875,
0.0406494140625,
-0.006633758544921875,
-0.0689697265625,
-0.027130126953125,
-0.04156494140625,
-0.04986572265625,
0.00913238525390625,
0.0706787109375,
0.062255859375,
0.0193023681640625,
0.0355224609375,
-0.0207672119140625,
0.08477783203125,
-0.01560211181640625,
0.0291748046875,
-0.0640869140625,
-0.0216064453125,
0.040374755859375,
0.0222625732421875,
0.021270751953125,
-0.01346588134765625,
-0.076904296875,
-0.00620269775390625,
0.029266357421875,
-0.010040283203125,
0.01120758056640625,
-0.021728515625,
0.0272979736328125,
-0.022918701171875,
-0.045074462890625,
0.02435302734375,
-0.06170654296875,
0.03717041015625,
-0.004070281982421875,
0.0207366943359375,
0.014617919921875,
-0.037384033203125,
0.026580810546875,
0.01238250732421875,
-0.000759124755859375,
-0.009552001953125,
0.06793212890625,
0.03936767578125,
-0.033233642578125,
-0.046966552734375,
-0.0180816650390625,
0.0077056884765625,
0.0218353271484375,
0.00994873046875,
0.0196380615234375,
0.021942138671875,
-0.005706787109375,
0.03167724609375,
-0.0086669921875,
0.00580596923828125,
0.00820159912109375,
0.01038360595703125,
-0.044219970703125,
-0.03228759765625,
0.07940673828125,
-0.00992584228515625,
0.0701904296875,
0.06695556640625,
-0.0005474090576171875,
0.0218048095703125,
-0.058990478515625,
0.0721435546875,
-0.042205810546875,
0.0089569091796875,
0.048614501953125,
-0.03662109375,
0.01480865478515625,
-0.00550079345703125,
0.026214599609375,
-0.04541015625,
0.007904052734375,
-0.00018548965454101562,
-0.036041259765625,
-0.01470947265625,
0.01299285888671875,
0.0296630859375,
0.08392333984375,
-0.013275146484375,
-0.049285888671875,
-0.0001399517059326172,
0.048736572265625,
-0.05194091796875,
-0.0762939453125,
0.018890380859375,
-0.06976318359375,
0.029296875,
-0.0018253326416015625,
-0.033416748046875,
-0.021484375,
0.052764892578125,
0.00469970703125,
-0.0185089111328125,
-0.0131988525390625,
-0.03179931640625,
-0.029754638671875,
-0.064208984375,
-0.0025196075439453125,
-0.0018634796142578125,
0.0165863037109375,
0.02496337890625,
-0.01523590087890625,
0.0283966064453125,
0.0207977294921875,
0.06463623046875,
0.038726806640625,
-0.0142822265625,
-0.005035400390625,
0.014739990234375,
-0.004364013671875,
-0.04510498046875,
0.004001617431640625,
-0.032196044921875,
0.00896453857421875,
-0.0179595947265625,
-0.005558013916015625,
-0.003879547119140625,
-0.0176239013671875,
0.0157623291015625,
0.0228271484375,
-0.005802154541015625,
-0.01690673828125,
0.0413818359375,
-0.053802490234375,
-0.011993408203125,
-0.0029468536376953125,
-0.0204925537109375,
-0.0010700225830078125,
-0.01401519775390625,
-0.0010843276977539062,
-0.0171966552734375,
0.0273895263671875,
-0.0256500244140625,
-0.00013947486877441406,
0.0216064453125,
0.00374603271484375,
-0.001708984375,
-0.0196380615234375,
-0.0294189453125,
0.0007109642028808594,
-0.030181884765625,
-0.01198577880859375,
0.039398193359375,
-0.0155792236328125,
0.028656005859375,
-0.024627685546875,
0.07611083984375,
-0.045440673828125,
-0.0251617431640625,
0.033111572265625,
-0.0232696533203125,
0.035888671875,
-0.048553466796875,
-0.020416259765625,
-0.0238037109375,
0.06341552734375,
-0.034698486328125,
-0.0201416015625,
0.0249786376953125,
0.005451202392578125,
0.0147857666015625,
0.026458740234375,
-0.0533447265625,
-0.0301361083984375,
-0.0213623046875,
-0.0034542083740234375,
-0.0019817352294921875,
-0.0273284912109375,
-0.01068878173828125,
0.0185546875,
-0.025054931640625,
-0.0018129348754882812,
0.030029296875,
0.02911376953125,
0.01702880859375,
0.01169586181640625,
-0.01058197021484375,
0.0016450881958007812,
-0.032958984375,
0.00887298583984375,
-0.062744140625,
-0.00890350341796875,
0.02105712890625,
0.03717041015625,
-0.000012874603271484375,
-0.0239410400390625,
-0.0214080810546875,
0.033050537109375,
-0.0005517005920410156,
-0.007717132568359375,
-0.003993988037109375,
-0.0040435791015625,
-0.050811767578125,
0.03546142578125,
0.003376007080078125,
-0.0071563720703125,
0.000980377197265625,
0.01549530029296875,
-0.004608154296875,
0.0740966796875,
-0.01153564453125,
0.019744873046875,
0.00806427001953125,
-0.031768798828125,
-0.0638427734375,
-0.030609130859375,
0.050384521484375,
0.0204620361328125,
0.0082550048828125,
0.018341064453125,
-0.0306854248046875,
-0.047088623046875,
0.007648468017578125,
-0.002185821533203125,
-0.003498077392578125,
0.01763916015625,
0.057159423828125,
0.0143280029296875,
-0.021881103515625,
-0.0560302734375,
0.0350341796875,
0.04229736328125,
-0.01385498046875,
0.001857757568359375,
0.0251312255859375,
-0.0338134765625,
0.0171966552734375,
0.0191497802734375,
0.039093017578125,
-0.0017108917236328125,
0.0333251953125,
0.00649261474609375,
0.0174102783203125,
0.008941650390625,
0.023895263671875,
-0.05108642578125,
-0.00809478759765625,
-0.0277557373046875,
-0.0010128021240234375,
-0.009765625,
0.027435302734375,
-0.00693511962890625,
0.029998779296875,
-0.0266571044921875,
-0.048858642578125,
-0.0018863677978515625,
-0.007781982421875,
0.052337646484375,
0.04510498046875,
-0.006938934326171875,
0.0567626953125,
0.04437255859375,
-0.0013637542724609375,
0.0160064697265625,
-0.005374908447265625,
0.002407073974609375,
0.0234527587890625,
-0.0027828216552734375,
-0.0167083740234375,
0.0246124267578125,
-0.0004191398620605469,
0.011138916015625,
0.0187225341796875,
-0.0192108154296875,
-0.038970947265625,
-0.00926971435546875,
-0.04095458984375,
-0.03411865234375,
0.01490020751953125,
-0.0002894401550292969,
0.037628173828125,
0.013458251953125,
0.01033782958984375,
0.0224456787109375,
0.044586181640625,
-0.00826263427734375,
0.037322998046875,
-0.021484375,
0.016357421875,
0.005615234375,
0.053314208984375,
-0.04876708984375,
0.0601806640625,
-0.0017499923706054688,
0.06134033203125,
0.04046630859375,
0.046356201171875,
0.0019893646240234375,
-0.02618408203125,
-0.0094757080078125,
0.02703857421875,
-0.053619384765625,
-0.0254669189453125,
0.0179901123046875,
-0.0011739730834960938,
0.02227783203125,
-0.0164794921875,
-0.02923583984375,
0.04388427734375,
-0.0355224609375,
-0.029541015625,
-0.028839111328125,
0.0006670951843261719,
0.020782470703125,
-0.01317596435546875,
0.033294677734375,
0.024078369140625,
0.050323486328125,
-0.023223876953125,
-0.01007843017578125,
-0.016815185546875,
0.01824951171875,
-0.01385498046875,
-0.0059967041015625,
0.007801055908203125,
0.004421234130859375,
0.039093017578125,
-0.0411376953125,
-0.0280914306640625,
0.006183624267578125,
0.0263671875,
-0.041473388671875,
-0.009246826171875,
0.07110595703125,
-0.044708251953125,
0.0007233619689941406,
-0.0084686279296875,
0.01274871826171875,
0.01129150390625,
0.00693511962890625,
0.046112060546875,
0.03399658203125,
-0.03839111328125,
0.0056304931640625,
-0.037445068359375,
-0.006183624267578125,
0.013824462890625,
-0.038177490234375,
-0.055999755859375,
-0.044952392578125,
-0.041107177734375,
0.0030422210693359375,
-0.0154266357421875,
0.01198577880859375,
-0.01358795166015625,
0.052642822265625,
-0.0007014274597167969,
0.053985595703125,
-0.0074462890625,
0.01401519775390625,
0.0196685791015625,
0.0168304443359375,
0.0014410018920898438,
0.019561767578125,
0.0295562744140625,
-0.0340576171875,
0.007656097412109375,
-0.05596923828125,
-0.0447998046875,
-0.0006442070007324219,
-0.00827789306640625,
0.052764892578125,
0.045135498046875,
-0.0003063678741455078,
0.02703857421875,
-0.001850128173828125,
-0.006137847900390625,
0.0005970001220703125,
0.00452423095703125,
0.0091400146484375,
0.006557464599609375,
0.0154876708984375,
-0.0285186767578125,
0.01751708984375,
-0.0248565673828125,
-0.0096435546875,
0.0247650146484375,
-0.04132080078125,
0.0196533203125,
0.04852294921875,
-0.02996826171875,
0.05987548828125,
0.06658935546875,
-0.00881195068359375,
0.04974365234375,
0.03033447265625,
0.01448822021484375,
-0.0076141357421875,
0.03436279296875,
-0.01113128662109375,
0.003753662109375,
0.028839111328125,
-0.0131683349609375,
-0.00901031494140625,
-0.01444244384765625,
-0.010040283203125,
0.0297698974609375,
0.004161834716796875,
0.048126220703125,
-0.015655517578125,
0.013824462890625,
0.01312255859375,
-0.049468994140625,
-0.004833221435546875,
-0.03265380859375,
0.02520751953125,
0.0243682861328125,
0.038177490234375,
0.0146484375,
-0.0278472900390625,
0.019195556640625,
-0.0036487579345703125,
0.007061004638671875,
0.007007598876953125,
0.03460693359375,
0.022186279296875,
-0.06488037109375,
0.03692626953125,
0.0235748291015625,
0.020843505859375,
0.0117034912109375,
-0.0017833709716796875,
-0.019744873046875,
-0.05389404296875,
-0.03533935546875,
-0.02508544921875,
-0.03839111328125,
0.0004973411560058594,
0.00446319580078125,
0.0302581787109375,
0.04278564453125,
0.039764404296875,
0.01036834716796875,
0.0190582275390625,
0.0001169443130493164,
0.01038360595703125,
0.025726318359375,
0.0015354156494140625,
0.0171356201171875,
0.0401611328125,
-0.05450439453125,
0.004177093505859375,
-0.0322265625,
0.0250701904296875,
-0.003997802734375,
-0.0269927978515625,
0.0677490234375,
-0.04656982421875,
-0.00856781005859375,
-0.017791748046875,
0.0309906005859375,
0.031524658203125,
-0.0012540817260742188,
0.0038547515869140625,
-0.036346435546875,
0.004573822021484375,
0.005413055419921875,
-0.0157928466796875,
-0.0301513671875,
0.00007033348083496094,
-0.08026123046875,
0.1083984375,
0.043212890625,
0.01029205322265625,
-0.0186920166015625,
0.055908203125,
-0.038299560546875,
0.0181884765625,
-0.0269927978515625,
0.0670166015625,
0.07354736328125,
-0.01084136962890625,
0.00215911865234375,
-0.021636962890625,
0.0193023681640625,
0.030059814453125,
-0.0183563232421875,
-0.0120849609375,
-0.00428009033203125,
-0.0010538101196289062,
0.0828857421875,
0.050872802734375,
0.040740966796875,
0.0091094970703125,
-0.00370025634765625,
-0.0033206939697265625,
-0.0124053955078125,
-0.0140838623046875,
0.01357269287109375,
-0.00881195068359375,
-0.039764404296875,
0.0263519287109375,
0.00569915771484375,
-0.0015897750854492188,
0.01007843017578125,
-0.0107879638671875,
-0.036956787109375,
0.00966644287109375,
0.0265655517578125,
-0.04522705078125,
-0.0185546875,
0.068603515625,
0.00817108154296875,
-0.0300140380859375,
-0.016571044921875,
-0.04010009765625,
0.045013427734375,
-0.02349853515625,
0.0182952880859375,
0.00832366943359375,
0.01171112060546875,
0.0207672119140625,
-0.044769287109375,
0.0001894235610961914,
-0.015106201171875,
-0.0182647705078125,
0.05926513671875,
0.0133056640625,
0.01824951171875,
-0.0531005859375,
-0.00762939453125,
0.0223541259765625,
0.064208984375,
-0.037078857421875,
-0.03717041015625,
0.0256805419921875,
0.0191192626953125,
-0.017578125,
0.007450103759765625,
-0.008270263671875,
-0.0325927734375,
0.01029205322265625,
-0.006946563720703125,
-0.0090484619140625,
0.018707275390625,
0.0357666015625,
0.021697998046875,
0.01239013671875,
-0.035888671875,
-0.0218505859375,
-0.0611572265625,
0.0017480850219726562,
0.017364501953125,
0.06646728515625,
0.050994873046875,
0.02374267578125,
-0.00862884521484375,
-0.048858642578125,
0.00738525390625,
0.0161285400390625,
-0.0058441162109375,
-0.0140228271484375,
-0.037872314453125,
-0.059295654296875,
0.028961181640625,
0.037811279296875,
0.0135345458984375,
0.036529541015625,
0.017913818359375,
0.0206298828125,
-0.005893707275390625,
0.0045928955078125,
0.056915283203125,
-0.01291656494140625,
-0.0264739990234375,
-0.03729248046875,
0.010986328125,
0.0296173095703125,
0.0144805908203125,
0.01050567626953125,
-0.019744873046875,
0.0723876953125,
-0.059783935546875,
0.0479736328125,
-0.0134735107421875,
-0.0226287841796875,
-0.00002384185791015625,
-0.021484375,
0.023712158203125,
-0.041595458984375,
0.003589630126953125,
0.0236968994140625,
-0.0288238525390625,
-0.07373046875,
-0.005828857421875,
0.023712158203125,
-0.0008678436279296875,
0.01355743408203125,
0.0121002197265625,
0.01497650146484375,
-0.043975830078125,
0.01328277587890625,
0.01119232177734375,
-0.04669189453125,
0.03350830078125,
-0.0018482208251953125,
-0.02880859375,
-0.026397705078125,
-0.0294189453125,
0.070556640625,
0.0279693603515625,
0.034454345703125,
-0.02923583984375,
0.04290771484375,
-0.0121917724609375,
-0.036102294921875,
0.0222015380859375,
0.007110595703125,
-0.008758544921875,
0.02020263671875,
-0.01061248779296875,
-0.0307159423828125,
-0.0221405029296875,
0.07037353515625,
-0.0004200935363769531,
0.0087890625,
0.0340576171875,
-0.00324249267578125,
0.003314971923828125,
0.0149078369140625,
0.01178741455078125,
-0.0350341796875,
-0.060760498046875,
-0.03814697265625,
0.029815673828125,
-0.0121307373046875,
-0.00775146484375,
-0.03436279296875,
0.0153656005859375,
0.04278564453125,
-0.01369476318359375,
0.0122833251953125,
-0.00589752197265625,
0.01873779296875,
0.0231475830078125,
0.039642333984375,
-0.0131988525390625,
0.005893707275390625,
-0.0166015625,
0.016876220703125,
0.004558563232421875,
0.022552490234375,
0.036651611328125,
-0.05816650390625,
-0.01160430908203125,
0.0673828125,
0.034881591796875,
0.01117706298828125,
0.01192474365234375,
0.01529693603515625,
-0.060882568359375,
0.0064544677734375,
-0.00408172607421875,
-0.03582763671875,
-0.037017822265625,
0.01751708984375,
0.0308074951171875,
0.000023245811462402344,
-0.0175933837890625,
-0.0770263671875,
-0.026092529296875,
0.019683837890625,
0.01016998291015625,
-0.03558349609375,
-0.01111602783203125,
0.01502227783203125,
0.032745361328125,
-0.0223846435546875,
0.004985809326171875,
0.0081787109375,
0.0167694091796875,
-0.032257080078125,
0.0187225341796875,
-0.0277252197265625,
-0.0261383056640625,
-0.013763427734375,
0.0201568603515625,
0.037933349609375,
-0.01091766357421875,
-0.046722412109375,
0.06353759765625,
0.00937652587890625,
0.0972900390625,
-0.0118560791015625,
-0.03228759765625,
-0.016876220703125,
0.0253143310546875,
-0.025390625,
-0.033111572265625,
0.025970458984375,
-0.046234130859375,
-0.01513671875,
-0.02740478515625,
-0.0155181884765625,
-0.021270751953125,
-0.0501708984375,
-0.0439453125,
0.005359649658203125,
0.020172119140625,
-0.0347900390625,
-0.0290374755859375,
-0.0160980224609375,
-0.0040283203125,
0.0196533203125,
-0.00534820556640625,
-0.00945281982421875,
-0.03125,
0.029205322265625,
0.00470733642578125,
0.0164642333984375,
0.01319122314453125,
-0.0058746337890625,
-0.021759033203125,
0.0026874542236328125,
0.01241302490234375,
-0.0241546630859375,
0.04498291015625,
-0.041259765625,
0.058135986328125,
0.03021240234375,
-0.051483154296875,
-0.00768280029296875,
-0.00043201446533203125,
-0.0087127685546875,
-0.0025653839111328125,
-0.053253173828125,
-0.0272216796875,
-0.038330078125,
0.0587158203125,
0.0024261474609375,
0.00861358642578125,
-0.00466156005859375,
-0.0501708984375,
-0.0190582275390625,
-0.0163421630859375,
-0.0308074951171875,
0.010955810546875,
-0.0751953125,
-0.0158843994140625,
-0.019989013671875,
-0.009246826171875,
-0.01360321044921875,
-0.0276336669921875,
-0.03155517578125,
-0.00457763671875,
0.0129241943359375,
0.01239776611328125,
0.0130462646484375,
-0.0041961669921875,
0.091552734375,
-0.06805419921875,
-0.034759521484375,
0.004512786865234375,
0.01995849609375,
0.001750946044921875,
-0.060760498046875,
0.006275177001953125,
-0.006008148193359375,
0.00147247314453125,
0.005931854248046875,
0.03167724609375,
0.0204010009765625,
0.01305389404296875,
-0.012725830078125,
0.0011138916015625,
0.010833740234375,
-0.020355224609375,
0.0030498504638671875,
0.01424407958984375,
0.04510498046875,
0.00726318359375,
0.036865234375,
-0.049407958984375,
0.013336181640625,
-0.0285797119140625,
0.026031494140625,
-0.00939178466796875,
0.03704833984375,
0.0307769775390625,
-0.00498199462890625,
0.01409912109375,
0.03790283203125,
0.024078369140625,
-0.002613067626953125,
-0.0099334716796875,
-0.044921875,
0.0235443115234375,
-0.006755828857421875
] |
48261172457a2efbe2f0567a525c5e698c8ebf95
|
Wordpress Stackexchange
Q: Custom post type pagination 404 fix? Been trying to get this working all day but haven't had any luck...
I have a custom post type called 'news' and an archive template (archive-news.php), here I'd like to show 2 posts with pagination, which works fine, until I try to go to the 'next page' (/news/page/2) which returns an error 404.
Any idea how to fix this / what I'm doing wrong?
I've literally spent all day trying to find a solution to this by searching Google and the WordPress forms, I found lots of solutions, none of which have worked so far.
My custom post type function: http://pastebin.com/uG1L6YNu
My rewrite rules print: http://pastebin.com/jbaDANYr
A: I found a solution here : http://walrusinacanoe.com/web-development/742
It is elegant and functional :
add_action( 'parse_query','changept' );
function changept() {
if( is_category() && !is_admin() )
set_query_var( 'post_type', array( 'post', 'your_custom_type' ) );
return;
}
|
Q: Custom post type pagination 404 fix? Been trying to get this working all day but haven't had any luck...
I have a custom post type called 'news' and an archive template (archive-news.php), here I'd like to show 2 posts with pagination, which works fine, until I try to go to the 'next page' (/news/page/2) which returns an error 404.
Any idea how to fix this / what I'm doing wrong?
I've literally spent all day trying to find a solution to this by searching Google and the WordPress forms, I found lots of solutions, none of which have worked so far.
My custom post type function: http://pastebin.com/uG1L6YNu
My rewrite rules print: http://pastebin.com/jbaDANYr
A: I found a solution here : http://walrusinacanoe.com/web-development/742
It is elegant and functional :
add_action( 'parse_query','changept' );
function changept() {
if( is_category() && !is_admin() )
set_query_var( 'post_type', array( 'post', 'your_custom_type' ) );
return;
}
A: This is now working for me... for those of you having the same issue it turns out all the code was correct.
The problem was WordPress is setup to show 10 posts per page by default which clashed with my query (limiting it to 2 posts) to fix the issue I changed the WordPress setting (Settings / Reading in the admin dashboard) to 1.
A: You have probably tried this, but resetting the permalinks can solve this problem. Go to Settings->Permalinks and save the permalinks again.
A: try this variant:
add_action('pre_get_posts','custom_pre_get_posts');
function custom_pre_get_posts( $query )
{
if( $query->is_main_query() && !$query->is_feed() && !is_admin()) {
$query->set( 'paged', str_replace( '/', '', get_query_var( 'page' ) ) );
}
}
add_filter('request', 'custom_request');
function custom_request($query_string )
{
if( isset( $query_string['page'] ) ) {
if( ''!=$query_string['page'] ) {
if( isset( $query_string['name'] ) ) {
unset( $query_string['name'] );
}
}
} return $query_string;
}
|
wordpress
|
{
"language": "en",
"length": 294,
"provenance": "stackexchange_00019.jsonl.gz:411161",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22528"
}
|
[
0.052276611328125,
-0.0112457275390625,
0.03680419921875,
-0.0396728515625,
0.006954193115234375,
-0.0102386474609375,
0.055908203125,
-0.01053619384765625,
-0.0151824951171875,
0.0003108978271484375,
0.0094757080078125,
-0.026824951171875,
-0.0011348724365234375,
-0.04412841796875,
0.01678466796875,
-0.03662109375,
0.01274871826171875,
-0.0104217529296875,
0.017669677734375,
-0.031463623046875,
0.0225677490234375,
-0.0390625,
0.04412841796875,
0.019439697265625,
0.006458282470703125,
0.0306549072265625,
0.07373046875,
-0.0165557861328125,
-0.01172637939453125,
-0.031768798828125,
0.0162353515625,
-0.00980377197265625,
0.0195770263671875,
-0.025390625,
0.017608642578125,
-0.0161590576171875,
0.019256591796875,
-0.0092315673828125,
-0.00333404541015625,
0.017578125,
0.004535675048828125,
0.004245758056640625,
0.04547119140625,
-0.00994873046875,
0.006244659423828125,
-0.0007147789001464844,
-0.02459716796875,
-0.056365966796875,
-0.004150390625,
0.007480621337890625,
-0.0027618408203125,
0.01617431640625,
0.020050048828125,
-0.01141357421875,
0.005023956298828125,
-0.0096282958984375,
0.014404296875,
-0.019073486328125,
0.01507568359375,
-0.04815673828125,
-0.022064208984375,
0.002033233642578125,
0.032745361328125,
0.024200439453125,
-0.0162200927734375,
-0.00040531158447265625,
0.026092529296875,
0.005382537841796875,
-0.003948211669921875,
-0.047088623046875,
0.0017709732055664062,
0.0129547119140625,
0.024871826171875,
-0.00858306884765625,
-0.0003323554992675781,
-0.0149688720703125,
0.003940582275390625,
-0.00588226318359375,
0.026885986328125,
-0.004436492919921875,
-0.01038360595703125,
-0.002429962158203125,
-0.006732940673828125,
-0.036102294921875,
0.02227783203125,
-0.016571044921875,
-0.0205535888671875,
-0.004405975341796875,
0.00539398193359375,
-0.039520263671875,
-0.01255035400390625,
-0.035552978515625,
0.015777587890625,
0.02294921875,
-0.018341064453125,
-0.0158233642578125,
0.0166168212890625,
0.046722412109375,
-0.0194091796875,
0.0206146240234375,
-0.005535125732421875,
-0.0264434814453125,
0.05316162109375,
-0.0517578125,
0.040618896484375,
-0.00852203369140625,
-0.00399017333984375,
0.025634765625,
0.087646484375,
0.0184478759765625,
-0.00033020973205566406,
0.09454345703125,
-0.033233642578125,
-0.0274658203125,
-0.0183563232421875,
0.038909912109375,
-0.01309967041015625,
-0.037689208984375,
0.0034027099609375,
-0.0303802490234375,
-0.006504058837890625,
0.002811431884765625,
0.015655517578125,
-0.0181884765625,
-0.006229400634765625,
-0.0115814208984375,
-0.002704620361328125,
-0.035919189453125,
0.08660888671875,
0.05279541015625,
-0.0304107666015625,
-0.0111541748046875,
0.0099945068359375,
-0.0253448486328125,
-0.008941650390625,
-0.0249481201171875,
0.03363037109375,
-0.041015625,
-0.0221099853515625,
0.03338623046875,
-0.005489349365234375,
-0.03143310546875,
-0.0179443359375,
-0.0012941360473632812,
0.03607177734375,
0.03826904296875,
0.0338134765625,
0.0112152099609375,
-0.02362060546875,
-0.040771484375,
-0.00211334228515625,
0.0052490234375,
0.054046630859375,
-0.021728515625,
-0.04620361328125,
-0.031524658203125,
-0.004405975341796875,
-0.00897979736328125,
-0.03179931640625,
-0.025726318359375,
0.007221221923828125,
-0.004352569580078125,
0.0099029541015625,
-0.07464599609375,
-0.06439208984375,
-0.0108489990234375,
-0.0675048828125,
-0.0003104209899902344,
0.0193939208984375,
0.0294647216796875,
0.0007157325744628906,
-0.023651123046875,
-0.005199432373046875,
0.01255035400390625,
-0.00827789306640625,
0.009613037109375,
0.01031494140625,
0.0171661376953125,
-0.01031494140625,
0.0526123046875,
0.0202789306640625,
-0.028228759765625,
0.018524169921875,
-0.01364898681640625,
-0.053924560546875,
0.0792236328125,
0.014678955078125,
0.06103515625,
-0.0146636962890625,
0.006748199462890625,
0.03192138671875,
0.06341552734375,
-0.0027923583984375,
0.00714874267578125,
0.005126953125,
-0.01751708984375,
-0.01441192626953125,
-0.007049560546875,
-0.01065826416015625,
-0.0031108856201171875,
-0.04913330078125,
0.039703369140625,
-0.05316162109375,
0.034637451171875,
-0.0217437744140625,
-0.0022182464599609375,
0.01373291015625,
0.029083251953125,
-0.018798828125,
0.04022216796875,
0.01554107666015625,
0.00481414794921875,
-0.029296875,
-0.0213623046875,
0.007778167724609375,
0.0016088485717773438,
-0.0092010498046875,
0.004856109619140625,
-0.039520263671875,
0.0357666015625,
-0.02978515625,
-0.04376220703125,
-0.043975830078125,
0.0193328857421875,
0.05816650390625,
0.0014324188232421875,
-0.0243072509765625,
-0.00902557373046875,
0.0280609130859375,
0.01000213623046875,
-0.059417724609375,
0.04241943359375,
0.02508544921875,
0.0036983489990234375,
-0.032684326171875,
0.00029349327087402344,
0.022369384765625,
-0.035247802734375,
0.0103759765625,
0.0516357421875,
0.0118255615234375,
-0.01239013671875,
-0.033416748046875,
0.008941650390625,
0.0102081298828125,
-0.005435943603515625,
0.01456451416015625,
-0.003948211669921875,
-0.005794525146484375,
-0.006763458251953125,
0.0223541259765625,
-0.0080718994140625,
0.03369140625,
-0.006786346435546875,
0.025787353515625,
0.0192413330078125,
0.02459716796875,
0.035980224609375,
-0.0019197463989257812,
0.0064544677734375,
-0.004093170166015625,
0.0321044921875,
-0.003810882568359375,
0.004573822021484375,
0.035308837890625,
0.0216064453125,
0.0321044921875,
0.0293121337890625,
-0.0309906005859375,
0.00876617431640625,
0.0085296630859375,
0.01068878173828125,
0.01172637939453125,
0.01126861572265625,
0.004108428955078125,
-0.00524139404296875,
-0.0310821533203125,
0.0194549560546875,
0.0230865478515625,
0.0102081298828125,
-0.00258636474609375,
0.05694580078125,
-0.059600830078125,
-0.0159454345703125,
-0.034027099609375,
-0.0460205078125,
-0.028900146484375,
0.0161590576171875,
-0.01035308837890625,
-0.00731658935546875,
0.00525665283203125,
0.037353515625,
-0.0150299072265625,
0.0304107666015625,
0.00704193115234375,
-0.0037136077880859375,
0.036102294921875,
-0.0860595703125,
0.0740966796875,
-0.0584716796875,
0.054229736328125,
0.06878662109375,
-0.0222015380859375,
0.00400543212890625,
0.001415252685546875,
-0.005496978759765625,
0.00354766845703125,
0.025848388671875,
0.0034046173095703125,
-0.0252685546875,
-0.00844573974609375,
0.0063323974609375,
0.027313232421875,
0.0187835693359375,
0.04290771484375,
-0.01448822021484375,
0.036895751953125,
0.048675537109375,
-0.04541015625,
-0.07281494140625,
0.020477294921875,
-0.0494384765625,
-0.0091552734375,
0.01342010498046875,
-0.03411865234375,
-0.0293426513671875,
0.039642333984375,
0.00479888916015625,
-0.00017535686492919922,
-0.03411865234375,
-0.06353759765625,
-0.07269287109375,
-0.0823974609375,
0.01274871826171875,
0.009979248046875,
0.0261383056640625,
0.0078582763671875,
0.03582763671875,
-0.0126953125,
-0.095947265625,
-0.0112152099609375,
0.00557708740234375,
-0.0175933837890625,
0.0216827392578125,
-0.00247955322265625,
-0.01617431640625,
0.0404052734375,
-0.00440216064453125,
0.07977294921875,
0.057830810546875,
-0.04119873046875,
0.0059661865234375,
-0.00672149658203125,
-0.0218658447265625,
-0.00408935546875,
0.08355712890625,
0.029296875,
0.0033473968505859375,
0.045745849609375,
-0.027191162109375,
-0.055267333984375,
-0.0111083984375,
-0.06744384765625,
-0.0146484375,
0.06268310546875,
0.0113372802734375,
-0.0712890625,
0.0254364013671875,
-0.034912109375,
-0.005504608154296875,
0.021636962890625,
-0.048309326171875,
0.058685302734375,
-0.0004127025604248047,
-0.007457733154296875,
-0.01336669921875,
0.0277252197265625,
-0.01056671142578125,
0.024627685546875,
0.0229034423828125,
0.005321502685546875,
-0.001155853271484375,
-0.0007944107055664062,
-0.018707275390625,
-0.0987548828125,
0.040679931640625,
-0.0292510986328125,
-0.0209808349609375,
-0.01267242431640625,
-0.0232696533203125,
0.035491943359375,
0.0867919921875,
-0.052459716796875,
0.00035381317138671875,
-0.006359100341796875,
-0.002445220947265625,
0.01143646240234375,
-0.041900634765625,
-0.0273895263671875,
-0.0170745849609375,
-0.0287017822265625,
-0.023101806640625,
-0.040802001953125,
-0.01568603515625,
-0.002872467041015625,
0.0146331787109375,
-0.0133819580078125,
-0.04010009765625,
0.040191650390625,
-0.0211181640625,
0.0053253173828125,
0.0226593017578125,
0.00408172607421875,
-0.0270233154296875,
-0.045196533203125,
0.0080718994140625,
-0.09442138671875,
-0.0301055908203125,
-0.00046944618225097656,
0.07904052734375,
0.0265655517578125,
-0.04156494140625,
-0.0224151611328125,
0.047027587890625,
0.005237579345703125,
0.01419830322265625,
-0.01366424560546875,
-0.0179595947265625,
-0.006702423095703125,
0.016998291015625,
0.00354766845703125,
-0.007904052734375,
-0.012542724609375,
-0.00878143310546875,
-0.012420654296875,
-0.0230865478515625,
-0.034576416015625,
-0.03375244140625,
-0.004756927490234375,
-0.03155517578125,
-0.06573486328125,
-0.0193939208984375,
-0.0016326904296875,
0.0439453125,
0.0285797119140625,
-0.033966064453125,
-0.03485107421875,
-0.07965087890625,
0.026214599609375,
-0.008514404296875,
-0.03558349609375,
0.004276275634765625,
0.04986572265625,
0.029144287109375,
-0.00930023193359375,
0.0098724365234375,
-0.0261993408203125,
0.011688232421875,
0.0161285400390625,
0.02899169921875,
-0.00269317626953125,
0.01195526123046875,
0.028778076171875,
-0.0283966064453125,
-0.0322265625,
-0.0136260986328125,
0.038421630859375,
0.00293731689453125,
-0.024200439453125,
0.005062103271484375,
-0.03924560546875,
0.0384521484375,
0.0200958251953125,
-0.01508331298828125,
-0.0257568359375,
0.0182647705078125,
0.05938720703125,
-0.04925537109375,
0.06134033203125,
-0.021575927734375,
-0.017730712890625,
0.0136566162109375,
0.020233154296875,
0.04217529296875,
0.0016193389892578125,
-0.0059967041015625,
0.01277923583984375,
-0.007526397705078125,
0.01206207275390625,
0.015655517578125,
0.0293121337890625,
0.0011615753173828125,
0.03765869140625,
0.01512908935546875,
0.006534576416015625,
-0.01593017578125,
0.006023406982421875,
0.0008969306945800781,
-0.0136566162109375,
-0.019073486328125,
-0.052764892578125,
-0.0015506744384765625,
0.004581451416015625,
0.01441192626953125,
0.01039886474609375,
0.02935791015625,
0.011871337890625,
-0.00647735595703125,
0.0254669189453125,
0.007457733154296875,
0.0032138824462890625,
-0.02178955078125,
0.03680419921875,
0.029571533203125,
-0.0037784576416015625,
-0.039276123046875,
0.061431884765625,
0.056396484375,
-0.0185394287109375,
-0.0302886962890625,
0.007617950439453125,
-0.00661468505859375,
0.06634521484375,
0.02197265625,
-0.0199127197265625,
-0.01318359375,
0.04736328125,
0.00341033935546875,
-0.040069580078125,
-0.047119140625,
0.0303497314453125,
0.05010986328125,
-0.003795623779296875,
0.01396942138671875,
-0.0167083740234375,
0.011383056640625,
-0.01560211181640625,
-0.01192474365234375,
0.0156402587890625,
-0.0007829666137695312,
-0.004436492919921875,
0.0009183883666992188,
0.0211334228515625,
0.007350921630859375,
-0.02984619140625,
0.0311126708984375,
-0.0443115234375,
0.0219573974609375,
0.021759033203125,
-0.0240936279296875,
0.00431060791015625,
-0.00386810302734375,
0.0335693359375,
-0.0328369140625,
0.0037784576416015625,
0.005878448486328125,
0.0287933349609375,
-0.02752685546875,
-0.0082855224609375,
-0.0010328292846679688,
-0.032073974609375,
0.0303802490234375,
-0.038665771484375,
0.0089111328125,
-0.00975799560546875,
0.0175628662109375,
0.033172607421875,
0.0104827880859375,
-0.0169219970703125,
0.0102386474609375,
-0.049407958984375,
-0.0236968994140625,
-0.04266357421875,
-0.03179931640625,
-0.03460693359375,
-0.0057830810546875,
0.036468505859375,
0.0273590087890625,
0.0016736984252929688,
-0.044189453125,
0.0015592575073242188,
0.0117034912109375,
0.01800537109375,
0.051849365234375,
-0.0285797119140625,
0.0853271484375,
-0.0101165771484375,
0.050445556640625,
-0.0159149169921875,
0.024200439453125,
-0.01519775390625,
0.01561737060546875,
0.0004837512969970703,
-0.055633544921875,
-0.0256805419921875,
0.0281524658203125,
-0.0523681640625,
0.045867919921875,
0.046142578125,
-0.004726409912109375,
-0.0197601318359375,
-0.021209716796875,
0.0014867782592773438,
-0.0176239013671875,
0.01568603515625,
0.0010843276977539062,
-0.0194091796875,
-0.00792694091796875,
-0.0063629150390625,
-0.00600433349609375,
0.0196990966796875,
-0.0198211669921875,
0.007366180419921875,
0.0194854736328125,
0.01458740234375,
-0.01464080810546875,
-0.0333251953125,
0.00876617431640625,
0.074462890625,
0.037933349609375,
0.06744384765625,
-0.007213592529296875,
0.04119873046875,
0.0247344970703125,
0.036285400390625,
0.0292510986328125,
0.0170135498046875,
0.0172119140625,
-0.01253509521484375,
-0.009735107421875,
-0.040435791015625,
-0.0362548828125,
-0.01763916015625,
0.0546875,
0.035430908203125,
-0.0599365234375,
-0.012420654296875,
0.00591278076171875,
-0.0035991668701171875,
-0.001789093017578125,
0.0040740966796875,
0.01824951171875,
0.040069580078125,
-0.013214111328125,
-0.0032711029052734375,
-0.038055419921875,
-0.001399993896484375,
-0.0026950836181640625,
-0.016143798828125,
-0.0026226043701171875,
-0.01351165771484375,
-0.0018062591552734375,
-0.006679534912109375,
0.0015954971313476562,
0.00843048095703125,
0.0107269287109375,
-0.01486968994140625,
-0.00530242919921875,
-0.00492095947265625,
-0.0222930908203125,
-0.03387451171875,
0.0165252685546875,
-0.028228759765625,
0.0110321044921875,
0.03851318359375,
0.01010894775390625,
-0.012451171875,
0.0188446044921875,
-0.0189361572265625,
0.031402587890625,
-0.02862548828125,
-0.0265350341796875,
0.0080413818359375,
-0.0299835205078125,
-0.022613525390625,
0.027496337890625,
-0.004833221435546875,
0.006488800048828125,
-0.008697509765625,
-0.0133056640625,
-0.017791748046875,
-0.0266571044921875,
0.077392578125,
-0.036895751953125,
-0.0077362060546875,
0.0270843505859375,
0.01280975341796875,
-0.01032257080078125,
0.01340484619140625,
-0.0281219482421875,
-0.0611572265625,
-0.01264190673828125,
-0.0008330345153808594,
-0.020904541015625,
0.04400634765625,
0.033172607421875,
-0.0311431884765625,
0.06463623046875,
-0.0082550048828125,
0.005702972412109375,
0.03582763671875,
0.0101776123046875,
-0.0264739990234375,
0.0008902549743652344,
-0.0167694091796875,
0.035308837890625,
-0.00946807861328125,
0.044036865234375,
-0.0426025390625,
-0.0246734619140625,
0.0236968994140625,
0.060394287109375,
0.045562744140625,
0.0191650390625,
-0.06683349609375,
-0.0213165283203125,
0.020172119140625,
0.058013916015625,
0.0220489501953125,
0.03692626953125,
-0.0015287399291992188,
0.0149078369140625,
0.023040771484375,
-0.01062774658203125,
0.03253173828125,
0.00225067138671875,
-0.043701171875,
0.0117034912109375,
0.003505706787109375,
-0.001766204833984375,
-0.023162841796875,
-0.00833892822265625,
-0.0257110595703125,
-0.01654052734375,
0.01450347900390625,
0.007781982421875,
-0.01349639892578125,
0.08544921875,
0.07989501953125,
-0.075927734375,
-0.0126495361328125,
-0.058380126953125,
0.0693359375,
0.002918243408203125,
0.039825439453125,
-0.01313018798828125,
0.016204833984375,
0.03094482421875,
-0.013580322265625,
0.01172637939453125,
0.0394287109375,
-0.026031494140625,
0.07684326171875,
0.0430908203125,
0.017730712890625,
-0.038330078125,
0.004917144775390625,
0.08563232421875,
0.09716796875,
-0.0751953125,
-0.0732421875,
-0.00004744529724121094,
0.0183563232421875,
0.01555633544921875,
0.015106201171875,
0.0068359375,
-0.00017178058624267578,
0.06787109375,
-0.046051025390625,
-0.0182037353515625,
-0.006252288818359375,
0.033599853515625,
-0.0242767333984375,
-0.0250701904296875,
0.003414154052734375,
-0.033966064453125,
-0.0367431640625,
-0.01015472412109375,
0.017059326171875,
0.08349609375,
0.026641845703125,
0.06964111328125,
-0.0123138427734375,
-0.0258636474609375,
0.00782012939453125,
0.0296630859375,
-0.007488250732421875,
0.004184722900390625,
-0.031036376953125,
-0.046875,
0.0014801025390625,
0.0260009765625,
0.0020294189453125,
0.0016803741455078125,
-0.0125732421875,
0.01500701904296875,
0.03955078125,
-0.01222991943359375,
0.027435302734375,
-0.004756927490234375,
-0.00917816162109375,
-0.043609619140625,
0.01546478271484375,
-0.0077972412109375,
0.0071868896484375,
-0.01165771484375,
0.034393310546875,
-0.00260162353515625,
0.0430908203125,
0.00617218017578125,
0.024169921875,
-0.040771484375,
0.03680419921875,
0.009429931640625,
0.0899658203125,
0.07080078125,
-0.13134765625,
-0.0242156982421875,
-0.03314208984375,
-0.07879638671875,
0.044219970703125,
0.04541015625,
-0.026031494140625,
-0.02117919921875,
0.033905029296875,
-0.021636962890625,
0.007671356201171875,
-0.0125885009765625,
0.04669189453125,
0.0218963623046875,
-0.0081024169921875,
0.033935546875,
-0.023590087890625,
-0.0599365234375,
-0.02020263671875,
0.0904541015625,
-0.0013322830200195312,
0.10662841796875,
-0.0552978515625,
0.0087432861328125,
-0.01422119140625,
0.0186920166015625,
-0.03375244140625,
-0.00887298583984375,
0.00693511962890625,
0.0195770263671875,
0.03253173828125,
-0.02203369140625,
-0.00537872314453125,
0.0153045654296875,
0.04803466796875,
-0.0528564453125,
0.006336212158203125,
0.007904052734375,
0.0135345458984375,
-0.048126220703125,
-0.04443359375,
-0.033660888671875,
-0.0236358642578125,
-0.00823974609375,
0.0020427703857421875,
0.01055908203125,
-0.00897216796875,
-0.040435791015625,
0.0223388671875,
0.00800323486328125,
-0.0260009765625,
0.0274658203125,
-0.0391845703125,
0.06195068359375,
0.03826904296875,
-0.0212249755859375,
-0.0294952392578125,
0.0209808349609375,
-0.0053863525390625,
0.005458831787109375,
0.0188751220703125,
0.029937744140625,
0.006134033203125,
0.038360595703125,
-0.03948974609375,
-0.066162109375,
-0.011627197265625,
-0.0292510986328125,
-0.0237884521484375,
-0.0267181396484375,
-0.0030498504638671875,
0.01206207275390625,
-0.0211029052734375,
0.0005030632019042969,
-0.01146697998046875,
-0.0249481201171875,
0.0166168212890625,
0.0203857421875,
0.006622314453125,
0.00922393798828125,
0.021697998046875,
0.035675048828125,
0.0263671875,
-0.0638427734375,
0.07061767578125,
-0.04815673828125,
0.01470947265625,
0.00914764404296875,
-0.031097412109375,
0.0157012939453125,
0.04364013671875,
0.018829345703125,
0.007793426513671875,
-0.03631591796875,
-0.005420684814453125,
-0.0199432373046875,
0.011322021484375,
0.0258026123046875,
-0.00588226318359375,
-0.0299224853515625,
-0.006683349609375,
-0.014862060546875,
0.04266357421875,
0.0246429443359375,
-0.002147674560546875,
0.04119873046875,
-0.004638671875,
-0.041473388671875,
-0.07061767578125,
0.006961822509765625,
-0.05548095703125,
0.004634857177734375,
0.01316070556640625,
-0.01751708984375,
0.00934600830078125,
-0.02166748046875,
-0.03704833984375,
0.0306854248046875,
0.01253509521484375,
-0.026763916015625,
-0.055908203125,
0.0390625,
0.0003123283386230469,
-0.0182647705078125,
-0.018402099609375,
-0.004169464111328125,
-0.0202789306640625,
0.0196533203125,
0.022613525390625,
0.0499267578125,
0.0013904571533203125,
0.0457763671875,
-0.04571533203125,
0.032501220703125,
-0.0011749267578125,
0.005229949951171875,
-0.003875732421875,
0.0012807846069335938,
0.00778961181640625,
0.0229644775390625,
-0.0278472900390625,
-0.0133819580078125,
0.01385498046875,
0.0018682479858398438,
-0.0037708282470703125,
0.0053253173828125,
-0.035369873046875,
-0.01494598388671875,
0.02703857421875,
0.057098388671875,
0.01149749755859375,
-0.01029205322265625,
-0.01056671142578125,
-0.04522705078125,
-0.055908203125,
-0.035736083984375,
0.0262908935546875,
-0.081787109375,
-0.01349639892578125,
0.016632080078125,
-0.0129852294921875,
-0.0006184577941894531,
-0.011871337890625,
-0.0199432373046875,
-0.01169586181640625,
-0.0181121826171875,
-0.01439666748046875,
-0.005584716796875,
0.029693603515625,
0.017181396484375,
-0.027801513671875,
0.00563812255859375,
-0.0078582763671875,
-0.0015239715576171875,
-0.004199981689453125,
-0.02813720703125,
-0.05755615234375,
0.0059661865234375,
-0.02020263671875,
-0.00693511962890625,
-0.0160064697265625,
0.021209716796875,
0.0088958740234375,
0.0357666015625,
0.0256195068359375,
0.01812744140625,
-0.0191650390625,
0.0110015869140625,
-0.01070404052734375,
0.02740478515625,
-0.037078857421875,
0.03424072265625,
0.01389312744140625,
0.045654296875,
0.016876220703125,
0.03363037109375,
0.00511932373046875,
-0.022552490234375,
0.01303863525390625,
-0.024566650390625,
-0.0032215118408203125,
-0.01219940185546875,
-0.037322998046875,
-0.046234130859375,
-0.0151214599609375,
0.00954437255859375,
-0.01132965087890625,
0.016387939453125
] |
7d44ef6babe5830b48f93dba323208dee079e516
|
Wordpress Stackexchange
Q: How to Remove all Instances of edit_post_link Can someone please assist with how to remove from my theme, whilst in author mode, the edit_post_link (Edit link), throughout all my pages. Which php files in the Twenty Eleven theme (WordPress v3.2) do I need to comment out to no longer display this edit link?
I realise that you only see this during author mode but would like to know how to remove altogether.
Thanks.
A: Hameedullah's answer is more elegant, but doesn't eliminate the before and after items. To do that, you need to filter get_edit_post_link instead, and return null.
function wpse_remove_get_edit_post_link( $link ) {
return null;
}
add_filter('get_edit_post_link', 'wpse_remove_get_edit_post_link');
|
Q: How to Remove all Instances of edit_post_link Can someone please assist with how to remove from my theme, whilst in author mode, the edit_post_link (Edit link), throughout all my pages. Which php files in the Twenty Eleven theme (WordPress v3.2) do I need to comment out to no longer display this edit link?
I realise that you only see this during author mode but would like to know how to remove altogether.
Thanks.
A: Hameedullah's answer is more elegant, but doesn't eliminate the before and after items. To do that, you need to filter get_edit_post_link instead, and return null.
function wpse_remove_get_edit_post_link( $link ) {
return null;
}
add_filter('get_edit_post_link', 'wpse_remove_get_edit_post_link');
A: It's the edit_post_link() function. You'll find lines like the following, that you need to comment out:
// from /twentyeleven/content-intro.php
edit_post_link( __( 'Edit', 'twentyeleven' ), '<span class="edit-link">', '</span>' );
A: One way is to edit the template files of your theme, as you mentioned in your question you are using Twenty Eleven, so you can follow the advice of @kaiser.
The other way that I will prefer instead of modifying the template files is to use the filter. The advantage of filter is it will work with other themes too. The disadvantage of filter is that you will have empty <span></span> tags in your html source, though they won't be visible on the actual page.
You can put the following code in your functions.php.
function wpse_remove_edit_post_link( $link ) {
return '';
}
add_filter('edit_post_link', 'wpse_remove_edit_post_link');
P.S you can use the filter to disable the edit post link on selective posts too.
A: Here is a one liner. add_filter('edit_post_link', '__return_false');
Bonus: Hide admin bar add_filter('show_admin_bar', '__return_false');
A: Hiding the edit post link from those who aren't administrators.
// Hide the Edit Post Link from Non Administrators Start.
function prefix_remove_get_edit_post_link( $link ) {
if(current_user_can('administrator')) {
return $link;
}
return null;
}
add_filter('get_edit_post_link', 'prefix_remove_get_edit_post_link');
// Hide the Edit Post Link from Non Administrators End.
|
wordpress
|
{
"language": "en",
"length": 320,
"provenance": "stackexchange_00019.jsonl.gz:411182",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22591"
}
|
[
0.0753173828125,
-0.00174713134765625,
0.0140838623046875,
-0.01202392578125,
0.0254669189453125,
-0.04864501953125,
0.07415771484375,
-0.032562255859375,
0.0166778564453125,
-0.0025482177734375,
0.0175323486328125,
-0.05120849609375,
-0.00778961181640625,
-0.06134033203125,
-0.004180908203125,
-0.01751708984375,
0.002948760986328125,
0.00853729248046875,
0.0240631103515625,
-0.00745391845703125,
-0.001316070556640625,
-0.0009889602661132812,
0.00984954833984375,
-0.01214599609375,
0.0108184814453125,
0.007221221923828125,
0.0823974609375,
0.00872039794921875,
0.004085540771484375,
-0.0112152099609375,
0.0237884521484375,
-0.026763916015625,
0.028839111328125,
0.03179931640625,
-0.0633544921875,
-0.0114288330078125,
-0.023773193359375,
0.0022373199462890625,
-0.043548583984375,
0.016265869140625,
-0.007640838623046875,
0.004505157470703125,
-0.030670166015625,
-0.0065460205078125,
-0.04241943359375,
0.0009441375732421875,
-0.0035400390625,
0.01073455810546875,
-0.0037097930908203125,
0.0124053955078125,
0.031524658203125,
0.044158935546875,
0.044921875,
0.004711151123046875,
-0.0242462158203125,
-0.01206207275390625,
-0.0011272430419921875,
0.0093841552734375,
0.0237579345703125,
-0.022857666015625,
-0.0145111083984375,
-0.0007510185241699219,
0.0091400146484375,
-0.0091094970703125,
-0.009979248046875,
0.028656005859375,
0.027374267578125,
0.0031890869140625,
-0.022979736328125,
-0.00867462158203125,
-0.002410888671875,
-0.0263671875,
-0.004062652587890625,
-0.01483917236328125,
-0.00032401084899902344,
0.0019741058349609375,
-0.0120391845703125,
-0.0124053955078125,
0.02410888671875,
0.00943756103515625,
0.0162353515625,
-0.049957275390625,
-0.02435302734375,
-0.0177001953125,
0.0232086181640625,
0.00479888916015625,
0.005451202392578125,
-0.0126190185546875,
-0.048309326171875,
0.0174713134765625,
-0.0305633544921875,
-0.031402587890625,
-0.0311126708984375,
0.018280029296875,
0.006103515625,
0.0006937980651855469,
0.057098388671875,
0.05487060546875,
0.0007357597351074219,
-0.020843505859375,
0.031982421875,
-0.06982421875,
0.0247344970703125,
-0.03326416015625,
-0.01432037353515625,
0.01461029052734375,
-0.0007233619689941406,
0.018402099609375,
0.028411865234375,
0.0306396484375,
-0.0006995201110839844,
0.0014848709106445312,
-0.02349853515625,
-0.0012969970703125,
-0.0009403228759765625,
0.021942138671875,
-0.0408935546875,
0.01255035400390625,
-0.01312255859375,
0.0158233642578125,
-0.0132598876953125,
-0.0287017822265625,
-0.00800323486328125,
0.00489044189453125,
0.0196990966796875,
-0.018035888671875,
-0.047149658203125,
0.04534912109375,
0.050201416015625,
-0.021728515625,
-0.07794189453125,
0.0272674560546875,
0.10662841796875,
0.0226287841796875,
0.03778076171875,
-0.03759765625,
-0.0389404296875,
-0.0079498291015625,
-0.006221771240234375,
0.02557373046875,
-0.0209197998046875,
-0.048309326171875,
0.0228118896484375,
-0.0019464492797851562,
-0.00531768798828125,
0.030731201171875,
0.01316070556640625,
-0.001033782958984375,
0.0222625732421875,
-0.033966064453125,
-0.030853271484375,
-0.004962921142578125,
0.0550537109375,
-0.0183563232421875,
0.0182952880859375,
-0.06103515625,
0.0675048828125,
-0.07037353515625,
-0.0006117820739746094,
-0.054595947265625,
-0.0006933212280273438,
-0.0095977783203125,
0.01404571533203125,
-0.036651611328125,
-0.0692138671875,
0.0153045654296875,
-0.02105712890625,
-0.01438140869140625,
0.0219268798828125,
0.015106201171875,
0.024627685546875,
-0.049407958984375,
-0.01239013671875,
0.044219970703125,
0.021728515625,
0.060638427734375,
-0.005817413330078125,
-0.00494384765625,
0.006786346435546875,
0.047882080078125,
0.0141754150390625,
-0.036376953125,
0.01113128662109375,
0.00156402587890625,
-0.0643310546875,
0.019805908203125,
0.027496337890625,
0.0843505859375,
0.01273345947265625,
0.0195770263671875,
0.06182861328125,
0.00543975830078125,
0.005886077880859375,
-0.0042266845703125,
0.01708984375,
-0.05194091796875,
-0.01097869873046875,
-0.03741455078125,
-0.01187896728515625,
0.044921875,
-0.0173187255859375,
0.01128387451171875,
0.018218994140625,
0.024200439453125,
-0.06976318359375,
0.051177978515625,
-0.04876708984375,
0.03680419921875,
-0.0025310516357421875,
0.033203125,
0.0255889892578125,
0.010284423828125,
-0.041839599609375,
-0.007465362548828125,
-0.012176513671875,
0.019317626953125,
-0.0138092041015625,
-0.0017185211181640625,
-0.0079345703125,
0.0191650390625,
-0.0035839080810546875,
-0.0225982666015625,
-0.01165771484375,
0.0237884521484375,
0.045013427734375,
-0.003662109375,
-0.03570556640625,
-0.0296630859375,
0.0136566162109375,
-0.021484375,
-0.027008056640625,
0.0914306640625,
0.0235137939453125,
0.004817962646484375,
-0.043975830078125,
-0.0049896240234375,
-0.0208282470703125,
-0.032958984375,
-0.01226806640625,
0.052490234375,
0.034332275390625,
0.010650634765625,
-0.00119781494140625,
-0.0011320114135742188,
0.052734375,
-0.002109527587890625,
0.0201416015625,
-0.021636962890625,
0.041473388671875,
0.051025390625,
-0.002353668212890625,
-0.0004036426544189453,
0.0193634033203125,
0.002071380615234375,
0.026336669921875,
0.03948974609375,
0.020172119140625,
0.0189361572265625,
0.0021457672119140625,
-0.0055694580078125,
-0.006832122802734375,
-0.032470703125,
-0.04241943359375,
-0.01183319091796875,
0.0421142578125,
-0.009307861328125,
0.054931640625,
0.036041259765625,
-0.03411865234375,
-0.03509521484375,
0.0273284912109375,
0.054595947265625,
-0.0145263671875,
0.017425537109375,
0.0080108642578125,
-0.0222320556640625,
-0.0026454925537109375,
0.0096588134765625,
-0.060577392578125,
-0.01123809814453125,
-0.0188446044921875,
0.00011533498764038086,
0.041290283203125,
-0.00666046142578125,
0.0168609619140625,
-0.0201263427734375,
0.03009033203125,
-0.0214385986328125,
0.00695037841796875,
-0.022796630859375,
0.0235443115234375,
-0.02630615234375,
-0.038543701171875,
0.018707275390625,
-0.00470733642578125,
-0.050323486328125,
-0.025970458984375,
-0.0303497314453125,
0.05889892578125,
-0.04193115234375,
0.0328369140625,
0.06787109375,
-0.027496337890625,
0.048126220703125,
0.0164642333984375,
-0.024444580078125,
0.0034465789794921875,
0.0262908935546875,
0.007472991943359375,
0.01666259765625,
-0.07275390625,
-0.0254669189453125,
0.003627777099609375,
0.0017633438110351562,
-0.014923095703125,
-0.040985107421875,
-0.0219268798828125,
-0.0021209716796875,
-0.0877685546875,
-0.018585205078125,
0.022918701171875,
-0.0533447265625,
-0.022552490234375,
0.0018987655639648438,
-0.0419921875,
-0.011199951171875,
0.032196044921875,
0.0003185272216796875,
0.03521728515625,
-0.01800537109375,
-0.04327392578125,
-0.0091400146484375,
-0.056427001953125,
-0.0192108154296875,
-0.0040740966796875,
-0.00006502866744995117,
0.0081329345703125,
0.05426025390625,
0.0092010498046875,
-0.017974853515625,
0.019256591796875,
-0.00690460205078125,
-0.016815185546875,
0.00394439697265625,
-0.01288604736328125,
0.0224456787109375,
0.009185791015625,
0.0079803466796875,
0.007633209228515625,
0.01325225830078125,
-0.0153350830078125,
-0.0283050537109375,
0.00820159912109375,
0.01019287109375,
0.05975341796875,
-0.012542724609375,
-0.0299530029296875,
0.0202484130859375,
0.0343017578125,
-0.0273590087890625,
0.004604339599609375,
-0.03057861328125,
-0.03179931640625,
0.04248046875,
0.0284423828125,
-0.0119171142578125,
-0.005695343017578125,
0.01386260986328125,
0.0367431640625,
0.0244293212890625,
0.03887939453125,
-0.004398345947265625,
0.041351318359375,
0.0008769035339355469,
0.0219268798828125,
-0.07879638671875,
0.037109375,
-0.007305145263671875,
0.024169921875,
0.005199432373046875,
0.005474090576171875,
-0.0019130706787109375,
-0.0130767822265625,
-0.0499267578125,
0.01445770263671875,
0.0291900634765625,
-0.0262603759765625,
0.032073974609375,
-0.0274505615234375,
-0.004001617431640625,
-0.0166015625,
0.041717529296875,
-0.035980224609375,
-0.02960205078125,
-0.00995635986328125,
0.021331787109375,
0.0016813278198242188,
-0.046844482421875,
0.0284881591796875,
-0.03363037109375,
-0.11773681640625,
0.043731689453125,
0.01300048828125,
-0.025360107421875,
-0.045867919921875,
0.0712890625,
-0.09942626953125,
-0.0230560302734375,
0.05474853515625,
-0.036407470703125,
0.005390167236328125,
0.0362548828125,
-0.043426513671875,
0.00612640380859375,
-0.06964111328125,
-0.01221466064453125,
-0.058319091796875,
0.0017271041870117188,
-0.033538818359375,
0.0478515625,
0.0121612548828125,
-0.0067901611328125,
-0.01087188720703125,
0.0206451416015625,
0.015106201171875,
0.00925445556640625,
0.00921630859375,
-0.0181884765625,
-0.002391815185546875,
0.045806884765625,
0.01947021484375,
-0.0012865066528320312,
0.0034027099609375,
0.00629425048828125,
-0.06048583984375,
0.0286102294921875,
-0.0142974853515625,
0.0207061767578125,
0.028350830078125,
-0.03515625,
-0.0147247314453125,
-0.0460205078125,
-0.025543212890625,
0.0374755859375,
-0.0269012451171875,
0.0257720947265625,
-0.07415771484375,
-0.059051513671875,
0.01202392578125,
0.0009331703186035156,
-0.0234222412109375,
0.0027561187744140625,
0.041168212890625,
0.0263214111328125,
-0.018310546875,
0.0013179779052734375,
-0.00455474853515625,
0.03314208984375,
0.01015472412109375,
0.058349609375,
0.052520751953125,
-0.007320404052734375,
0.0155792236328125,
0.025299072265625,
-0.00872039794921875,
-0.0046844482421875,
0.0516357421875,
0.0242919921875,
-0.006450653076171875,
0.003597259521484375,
0.00658416748046875,
0.0104217529296875,
0.00934600830078125,
0.006160736083984375,
-0.026214599609375,
0.03265380859375,
0.0445556640625,
-0.019134521484375,
0.0176849365234375,
-0.0185699462890625,
0.0013256072998046875,
-0.004001617431640625,
0.01629638671875,
0.042938232421875,
0.0259552001953125,
-0.00525665283203125,
0.0015125274658203125,
0.01123046875,
0.00469970703125,
-0.03033447265625,
0.0272674560546875,
-0.061981201171875,
0.0445556640625,
-0.050445556640625,
-0.03741455078125,
-0.022613525390625,
-0.0179443359375,
0.0694580078125,
0.02130126953125,
-0.0271453857421875,
0.005451202392578125,
-0.01364898681640625,
0.0360107421875,
0.01123046875,
0.01390838623046875,
0.037017822265625,
0.005184173583984375,
0.0010938644409179688,
-0.0105133056640625,
-0.0163116455078125,
0.003459930419921875,
-0.046875,
0.0221710205078125,
0.01538848876953125,
-0.00945281982421875,
0.056610107421875,
0.034820556640625,
-0.00945281982421875,
0.04132080078125,
-0.0103912353515625,
0.030120849609375,
-0.01531982421875,
0.03485107421875,
0.004016876220703125,
0.03216552734375,
0.010528564453125,
0.006778717041015625,
-0.00220489501953125,
-0.0240020751953125,
-0.02215576171875,
0.03997802734375,
0.01145172119140625,
0.0231781005859375,
0.0008411407470703125,
-0.007503509521484375,
0.0124053955078125,
-0.00007420778274536133,
0.044708251953125,
0.028778076171875,
-0.08294677734375,
0.0244598388671875,
0.07452392578125,
-0.0086822509765625,
-0.031280517578125,
-0.002513885498046875,
-0.038970947265625,
0.0162353515625,
-0.01629638671875,
0.016265869140625,
-0.06591796875,
0.0167236328125,
0.0284576416015625,
-0.0107574462890625,
-0.01532745361328125,
0.0058746337890625,
-0.0167999267578125,
-0.0074310302734375,
-0.032073974609375,
-0.0189056396484375,
0.06927490234375,
-0.0178070068359375,
0.024688720703125,
-0.0001914501190185547,
-0.027130126953125,
0.039306640625,
0.00873565673828125,
0.048187255859375,
0.0223236083984375,
-0.08978271484375,
-0.00408935546875,
-0.0550537109375,
0.00017309188842773438,
-0.040618896484375,
-0.0675048828125,
-0.032867431640625,
0.0081329345703125,
-0.00385284423828125,
0.0010623931884765625,
-0.02471923828125,
-0.033538818359375,
-0.0018301010131835938,
0.032958984375,
0.020233154296875,
0.0252838134765625,
0.009368896484375,
0.089599609375,
-0.0226593017578125,
0.0217132568359375,
0.0244293212890625,
0.0494384765625,
-0.0252532958984375,
-0.0126800537109375,
0.026336669921875,
-0.0440673828125,
-0.0380859375,
-0.006092071533203125,
-0.030029296875,
-0.0069122314453125,
-0.0036525726318359375,
-0.0200347900390625,
-0.021697998046875,
-0.0160675048828125,
0.006744384765625,
-0.027587890625,
0.043548583984375,
0.011962890625,
-0.0024890899658203125,
-0.00786590576171875,
-0.011566162109375,
0.026519775390625,
-0.0216064453125,
0.0280303955078125,
-0.0323486328125,
-0.017303466796875,
-0.0259552001953125,
0.016998291015625,
-0.00701141357421875,
0.04901123046875,
0.0760498046875,
-0.024261474609375,
0.037261962890625,
0.0255889892578125,
0.004886627197265625,
0.03753662109375,
-0.00457763671875,
0.004913330078125,
-0.0152130126953125,
0.017242431640625,
0.0014247894287109375,
0.027313232421875,
0.0310211181640625,
-0.00771331787109375,
-0.0098876953125,
0.052093505859375,
0.041595458984375,
-0.09185791015625,
0.0106353759765625,
0.0177459716796875,
0.0318603515625,
0.041534423828125,
0.006343841552734375,
-0.0118865966796875,
-0.0311431884765625,
0.00605010986328125,
-0.03955078125,
-0.004077911376953125,
0.00255584716796875,
-0.01396942138671875,
0.00873565673828125,
-0.0194244384765625,
0.062255859375,
0.01468658447265625,
-0.06304931640625,
-0.0016002655029296875,
0.03155517578125,
-0.0243682861328125,
-0.0225677490234375,
-0.0009036064147949219,
0.0238494873046875,
-0.0256195068359375,
-0.071533203125,
0.006763458251953125,
-0.018463134765625,
-0.0122528076171875,
0.039703369140625,
0.01027679443359375,
-0.0083465576171875,
0.0435791015625,
-0.021728515625,
0.027069091796875,
0.01226806640625,
-0.024169921875,
-0.031402587890625,
-0.05487060546875,
-0.0153045654296875,
0.026763916015625,
-0.0176239013671875,
0.039825439453125,
0.004791259765625,
-0.038787841796875,
0.005611419677734375,
0.034210205078125,
0.10711669921875,
-0.0325927734375,
-0.039642333984375,
0.01629638671875,
-0.015869140625,
-0.004077911376953125,
-0.0229339599609375,
0.0174560546875,
-0.032379150390625,
-0.00545501708984375,
-0.023284912109375,
-0.0186309814453125,
0.007022857666015625,
-0.04718017578125,
-0.0791015625,
0.0919189453125,
-0.037384033203125,
0.0577392578125,
0.010284423828125,
0.027984619140625,
0.0008106231689453125,
0.006072998046875,
-0.035003662109375,
0.08935546875,
0.04803466796875,
0.0037860870361328125,
-0.041015625,
-0.01093292236328125,
-0.01128387451171875,
0.028289794921875,
0.047576904296875,
0.00931549072265625,
-0.010101318359375,
-0.01065826416015625,
0.0303802490234375,
0.02593994140625,
-0.01473236083984375,
0.0266876220703125,
0.0148162841796875,
0.02252197265625,
0.024017333984375,
-0.0273895263671875,
0.034912109375,
-0.04473876953125,
-0.005794525146484375,
0.030548095703125,
0.036834716796875,
0.052520751953125,
0.030487060546875,
-0.003238677978515625,
-0.009613037109375,
0.01059722900390625,
0.017486572265625,
0.0075836181640625,
0.00901031494140625,
0.03741455078125,
0.036865234375,
-0.0226287841796875,
-0.0245819091796875,
-0.0200958251953125,
0.045135498046875,
0.0218353271484375,
0.0108642578125,
0.0203399658203125,
0.02496337890625,
0.0228729248046875,
-0.02728271484375,
0.0010175704956054688,
0.007843017578125,
0.006183624267578125,
0.055450439453125,
0.0088958740234375,
0.008453369140625,
-0.04534912109375,
0.02691650390625,
0.032562255859375,
0.040283203125,
-0.042633056640625,
-0.0180206298828125,
0.0081024169921875,
-0.00997161865234375,
-0.01407623291015625,
-0.01318359375,
0.019775390625,
-0.0372314453125,
-0.016265869140625,
-0.0262908935546875,
-0.00909423828125,
0.01299285888671875,
0.03717041015625,
-0.00701141357421875,
0.0148162841796875,
-0.0200042724609375,
-0.0256195068359375,
-0.041839599609375,
-0.032958984375,
0.01561737060546875,
0.01268768310546875,
0.04815673828125,
0.0037937164306640625,
0.08538818359375,
-0.004306793212890625,
-0.00302886962890625,
0.051361083984375,
-0.016998291015625,
-0.00235748291015625,
-0.04443359375,
-0.06756591796875,
-0.0290069580078125,
0.034423828125,
0.0210723876953125,
0.0095062255859375,
0.0028591156005859375,
-0.034698486328125,
-0.0301971435546875,
-0.001739501953125,
-0.0301055908203125,
-0.041107177734375,
-0.005855560302734375,
-0.030120849609375,
0.0222015380859375,
0.0284271240234375,
0.00396728515625,
0.007472991943359375,
0.0129547119140625,
0.03973388671875,
-0.0063323974609375,
-0.0245513916015625,
0.0220184326171875,
-0.0440673828125,
0.0089111328125,
0.01276397705078125,
-0.0269927978515625,
0.0161895751953125,
-0.0743408203125,
-0.020233154296875,
-0.0179443359375,
0.0333251953125,
-0.00786590576171875,
0.0166778564453125,
-0.0272064208984375,
0.0577392578125,
-0.045654296875,
0.006649017333984375,
-0.0063629150390625,
-0.01367950439453125,
-0.0158538818359375,
-0.0234832763671875,
0.006114959716796875,
-0.032989501953125,
-0.0404052734375,
-0.0196685791015625,
-0.025054931640625,
0.0265350341796875,
0.006519317626953125,
0.04656982421875,
-0.01885986328125,
0.0127716064453125,
-0.00844573974609375,
0.05157470703125,
-0.05279541015625,
-0.005153656005859375,
0.0021800994873046875,
0.007709503173828125,
0.0301971435546875,
-0.011871337890625,
-0.06298828125,
0.01042938232421875,
0.03387451171875,
-0.0245208740234375,
0.05462646484375,
-0.0225372314453125,
0.0104827880859375,
-0.052001953125,
-0.002197265625,
-0.01430511474609375,
0.00518035888671875,
0.006427764892578125,
-0.002429962158203125,
0.0225677490234375,
0.01983642578125,
0.0081329345703125,
0.00775909423828125,
0.034393310546875,
-0.000041961669921875,
0.0217742919921875,
0.039825439453125,
0.0224151611328125,
0.017059326171875,
-0.01519012451171875,
-0.0236968994140625,
0.01459503173828125,
-0.0166168212890625,
-0.010406494140625,
0.01959228515625,
0.0133819580078125,
0.021697998046875,
-0.052154541015625,
-0.00762939453125,
-0.005344390869140625,
0.0426025390625,
0.003536224365234375,
0.0196990966796875,
-0.0120849609375,
0.01557159423828125,
-0.0211334228515625,
0.02264404296875,
-0.0207672119140625,
-0.03375244140625,
-0.032196044921875,
-0.006061553955078125,
-0.03857421875,
-0.06988525390625,
-0.033203125,
-0.004383087158203125,
0.0285491943359375,
0.0009603500366210938,
-0.064208984375,
0.013580322265625,
-0.003314971923828125,
0.07122802734375,
-0.042633056640625,
0.01161956787109375,
-0.0062713623046875,
0.0159912109375,
-0.0259857177734375,
-0.0201568603515625,
-0.0284271240234375,
0.04083251953125,
-0.01202392578125,
-0.00601959228515625,
0.02154541015625,
-0.01410675048828125,
-0.01203155517578125,
0.0012979507446289062,
0.01053619384765625,
0.051788330078125,
-0.0242767333984375,
-0.0377197265625,
-0.01126861572265625,
0.01218414306640625,
0.019012451171875,
-0.06640625,
-0.0256195068359375,
-0.0304718017578125,
0.0233306884765625,
0.031219482421875,
-0.021942138671875,
0.006160736083984375,
-0.03228759765625,
-0.09124755859375,
0.08306884765625,
-0.016387939453125,
-0.039154052734375,
-0.02386474609375,
-0.022216796875,
-0.01490020751953125,
0.046112060546875,
0.022979736328125,
-0.0380859375,
-0.035797119140625,
0.03289794921875,
-0.007190704345703125,
0.0697021484375,
-0.017852783203125,
0.0183868408203125,
-0.00736236572265625,
0.023651123046875,
0.006259918212890625,
0.00006842613220214844,
0.0027370452880859375,
-0.002033233642578125,
0.0263214111328125,
0.04425048828125,
-0.02880859375,
0.00672149658203125,
-0.01436614990234375,
-0.0232391357421875,
-0.03350830078125,
-0.021087646484375,
-0.030426025390625,
-0.01690673828125,
0.08636474609375,
0.0504150390625,
0.01983642578125,
-0.0200653076171875,
-0.00782012939453125,
0.004535675048828125,
-0.04144287109375,
-0.00267791748046875,
0.0269775390625,
-0.04217529296875,
-0.0025730133056640625,
0.01033782958984375,
-0.01580810546875,
0.022430419921875,
-0.0460205078125,
-0.0438232421875,
-0.01264190673828125,
-0.051422119140625,
0.0205078125,
-0.04217529296875,
0.05487060546875,
0.01605224609375,
-0.019683837890625,
0.01171875,
-0.0199432373046875,
-0.00862884521484375,
0.020294189453125,
-0.040130615234375,
0.00983428955078125,
-0.0032176971435546875,
-0.035491943359375,
0.02581787109375,
-0.0011949539184570312,
0.0243988037109375,
-0.058990478515625,
-0.024261474609375,
-0.0479736328125,
0.0281982421875,
0.0147857666015625,
0.019775390625,
0.007965087890625,
0.022979736328125,
0.0233612060546875,
0.07452392578125,
-0.05645751953125,
0.0859375,
-0.0226593017578125,
0.0303802490234375,
-0.028717041015625,
0.019866943359375,
0.033660888671875,
-0.0052490234375,
-0.004375457763671875,
0.029388427734375,
-0.0004627704620361328,
-0.04205322265625,
0.025543212890625,
-0.0011720657348632812,
0.0186004638671875,
0.01114654541015625
] |
bc6c18b7cc0f6502a9d710ede1b4e78a3384be13
|
Wordpress Stackexchange
Q: Custom settings disappear during database migration? I've noticed a problem that pops up occasionally when moving a WP install from one place to another (usually the same server.)
I copy all the files to their new location, get a mysql dump, update all references to the old paths in the sql file, then import it to the new database.
Everything always works just fine apart from custom settings that have been added using register_setting. I can still see them in the database, but WP completely ignores them, and they need to be added again in the backend.
Is there something obvious I'm overlooking here? I can post up the code I'm using to build the custom settings panels if necessary...
Cheers.
A: Mostly a dupe: Why is my database import losing text widget data?
Doing a search and replace on an sql dump breaks URLs in the serialized data of widgets and theme options. See the link above for better ways to change URLs when moving WP sites.
Use Database Search and Replace Script in PHP | interconnect/it to find/replace in the database via correctly serializing data.
|
Q: Custom settings disappear during database migration? I've noticed a problem that pops up occasionally when moving a WP install from one place to another (usually the same server.)
I copy all the files to their new location, get a mysql dump, update all references to the old paths in the sql file, then import it to the new database.
Everything always works just fine apart from custom settings that have been added using register_setting. I can still see them in the database, but WP completely ignores them, and they need to be added again in the backend.
Is there something obvious I'm overlooking here? I can post up the code I'm using to build the custom settings panels if necessary...
Cheers.
A: Mostly a dupe: Why is my database import losing text widget data?
Doing a search and replace on an sql dump breaks URLs in the serialized data of widgets and theme options. See the link above for better ways to change URLs when moving WP sites.
Use Database Search and Replace Script in PHP | interconnect/it to find/replace in the database via correctly serializing data.
A: You're best bet is to update the URL: http://codex.wordpress.org/Changing_The_Site_URL
Try avoided editing anything directly in the database.
|
wordpress
|
{
"language": "en",
"length": 206,
"provenance": "stackexchange_00019.jsonl.gz:411186",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22602"
}
|
[
0.0281524658203125,
-0.009613037109375,
0.01548004150390625,
0.01244354248046875,
-0.0026721954345703125,
-0.0279998779296875,
0.04742431640625,
-0.033050537109375,
0.00612640380859375,
0.0450439453125,
0.01355743408203125,
-0.028656005859375,
0.02032470703125,
-0.0300750732421875,
-0.038787841796875,
-0.026275634765625,
0.0213165283203125,
-0.0159149169921875,
-0.0029621124267578125,
-0.01064300537109375,
-0.00807952880859375,
-0.00506591796875,
-0.000044405460357666016,
0.051177978515625,
0.024566650390625,
-0.0311279296875,
0.03594970703125,
-0.01522064208984375,
0.017547607421875,
-0.0068511962890625,
0.0345458984375,
-0.003997802734375,
-0.0041961669921875,
0.01551055908203125,
-0.00511932373046875,
-0.023223876953125,
0.041046142578125,
-0.017669677734375,
-0.006496429443359375,
0.030303955078125,
0.036163330078125,
-0.02789306640625,
0.05419921875,
-0.01287841796875,
0.019561767578125,
-0.046844482421875,
0.06512451171875,
-0.056884765625,
0.006439208984375,
-0.01363372802734375,
0.01140594482421875,
-0.0007491111755371094,
0.02008056640625,
-0.05194091796875,
-0.012237548828125,
-0.019439697265625,
-0.0270843505859375,
0.022674560546875,
0.0150299072265625,
0.01345062255859375,
-0.0155487060546875,
0.007717132568359375,
-0.0004897117614746094,
-0.0260772705078125,
-0.000017821788787841797,
-0.0192413330078125,
0.00998687744140625,
0.022491455078125,
-0.06719970703125,
-0.034637451171875,
0.04571533203125,
-0.03173828125,
-0.014678955078125,
-0.0350341796875,
-0.0080718994140625,
0.02728271484375,
-0.01477813720703125,
-0.0237274169921875,
0.009918212890625,
0.0095977783203125,
0.007450103759765625,
0.01464080810546875,
0.004192352294921875,
-0.0435791015625,
0.0223388671875,
-0.018402099609375,
-0.010345458984375,
-0.00020503997802734375,
0.0196990966796875,
0.00315093994140625,
0.01433563232421875,
-0.02850341796875,
-0.024505615234375,
0.04559326171875,
0.022705078125,
-0.031036376953125,
0.01123809814453125,
0.045013427734375,
-0.0379638671875,
0.02691650390625,
0.00035881996154785156,
-0.0139312744140625,
0.034637451171875,
-0.0233001708984375,
0.0279388427734375,
0.0156707763671875,
-0.0308685302734375,
-0.0290679931640625,
0.049041748046875,
0.022857666015625,
0.0003685951232910156,
0.0430908203125,
0.0198974609375,
0.002105712890625,
-0.027496337890625,
0.00797271728515625,
0.0093841552734375,
-0.01934814453125,
-0.02044677734375,
0.0026340484619140625,
0.0026874542236328125,
0.0384521484375,
-0.1094970703125,
-0.04901123046875,
-0.01222991943359375,
-0.0733642578125,
-0.005115509033203125,
0.0682373046875,
-0.07470703125,
0.034149169921875,
-0.038299560546875,
-0.0029697418212890625,
0.056610107421875,
0.060760498046875,
0.01233673095703125,
-0.033203125,
0.061859130859375,
0.0189666748046875,
-0.01552581787109375,
0.044891357421875,
0.00954437255859375,
-0.041717529296875,
-0.041229248046875,
-0.00432586669921875,
0.003337860107421875,
0.0185546875,
0.0217437744140625,
0.020233154296875,
-0.01183319091796875,
-0.043914794921875,
0.0075531005859375,
0.0022735595703125,
0.04931640625,
0.00786590576171875,
-0.038787841796875,
-0.031585693359375,
0.03118896484375,
-0.043701171875,
-0.0318603515625,
-0.0677490234375,
-0.0058746337890625,
-0.035003662109375,
-0.0149688720703125,
-0.01561737060546875,
-0.0386962890625,
0.03680419921875,
-0.0115814208984375,
-0.0023040771484375,
0.0048980712890625,
0.0219268798828125,
-0.03924560546875,
-0.00231170654296875,
-0.025390625,
-0.0206451416015625,
-0.0193328857421875,
0.0153961181640625,
-0.0039005279541015625,
0.015167236328125,
0.0198822021484375,
0.0203094482421875,
-0.006679534912109375,
-0.050933837890625,
0.0212860107421875,
-0.00882720947265625,
-0.08367919921875,
0.0594482421875,
-0.0012378692626953125,
0.074462890625,
0.0270843505859375,
0.0026721954345703125,
0.0413818359375,
0.016632080078125,
-0.0457763671875,
0.012542724609375,
0.004329681396484375,
0.040069580078125,
-0.03778076171875,
0.01428985595703125,
0.0048370361328125,
-0.026611328125,
-0.058349609375,
0.01256561279296875,
0.02044677734375,
0.026275634765625,
0.005901336669921875,
0.020294189453125,
-0.0113983154296875,
0.043975830078125,
-0.0175628662109375,
0.00020682811737060547,
0.0232391357421875,
0.0216064453125,
-0.02838134765625,
-0.0245513916015625,
-0.0230560302734375,
-0.01222991943359375,
0.01123809814453125,
0.06768798828125,
0.0064239501953125,
0.0269012451171875,
0.008819580078125,
-0.03558349609375,
0.007251739501953125,
0.01995849609375,
-0.007537841796875,
-0.006694793701171875,
-0.006198883056640625,
-0.00814056396484375,
0.0182647705078125,
-0.007167816162109375,
0.07867431640625,
0.0079193115234375,
-0.029022216796875,
-0.031494140625,
-0.03594970703125,
-0.022918701171875,
-0.008941650390625,
-0.061981201171875,
0.0177459716796875,
0.05767822265625,
0.022186279296875,
0.003093719482421875,
-0.036651611328125,
-0.0155792236328125,
0.00229644775390625,
-0.060089111328125,
0.006744384765625,
0.0037364959716796875,
0.0136260986328125,
0.0307769775390625,
0.005481719970703125,
-0.01462554931640625,
0.018035888671875,
-0.056488037109375,
0.0121002197265625,
0.036712646484375,
-0.05535888671875,
-0.01384735107421875,
0.026763916015625,
-0.0287017822265625,
-0.0020656585693359375,
-0.021484375,
0.019927978515625,
-0.0240325927734375,
-0.010589599609375,
0.0245208740234375,
0.0205078125,
0.00555419921875,
-0.0237274169921875,
0.032958984375,
0.02178955078125,
-0.0419921875,
-0.003143310546875,
-0.038360595703125,
0.029632568359375,
0.03485107421875,
-0.018951416015625,
-0.001895904541015625,
0.023681640625,
-0.0107421875,
0.0034503936767578125,
0.041595458984375,
-0.027679443359375,
-0.01274871826171875,
-0.01904296875,
-0.03485107421875,
0.003192901611328125,
0.0296783447265625,
-0.0140380859375,
-0.0198211669921875,
0.01515960693359375,
0.0301666259765625,
-0.003993988037109375,
0.0269927978515625,
0.00010514259338378906,
-0.010986328125,
0.054595947265625,
-0.02593994140625,
-0.0007929801940917969,
-0.0028247833251953125,
0.04119873046875,
0.06195068359375,
0.018280029296875,
-0.03289794921875,
0.004505157470703125,
0.039031982421875,
0.04620361328125,
0.0064544677734375,
0.0014400482177734375,
-0.01377105712890625,
-0.038970947265625,
-0.050018310546875,
0.024932861328125,
-0.0025081634521484375,
0.00461578369140625,
-0.01049041748046875,
-0.0035457611083984375,
0.0021724700927734375,
-0.028594970703125,
-0.0144195556640625,
-0.0255584716796875,
-0.004009246826171875,
-0.045745849609375,
0.023284912109375,
-0.0005769729614257812,
0.0231475830078125,
0.007411956787109375,
-0.00411224365234375,
0.032257080078125,
-0.0256805419921875,
-0.02496337890625,
-0.050811767578125,
-0.08111572265625,
-0.06219482421875,
0.0206451416015625,
0.010040283203125,
0.00589752197265625,
0.0248565673828125,
0.00884246826171875,
-0.05108642578125,
-0.00283050537109375,
0.00011390447616577148,
-0.007190704345703125,
0.0125885009765625,
0.033233642578125,
-0.03839111328125,
0.04962158203125,
-0.0055694580078125,
0.05072021484375,
0.036712646484375,
-0.038970947265625,
-0.0231781005859375,
-0.00860595703125,
0.0160369873046875,
-0.0086669921875,
-0.0121612548828125,
0.0226593017578125,
0.006183624267578125,
-0.034698486328125,
-0.039093017578125,
-0.06402587890625,
0.023834228515625,
-0.02386474609375,
0.04925537109375,
0.004131317138671875,
-0.02264404296875,
-0.0006947517395019531,
0.07244873046875,
0.03399658203125,
0.0193328857421875,
-0.008758544921875,
0.0153961181640625,
-0.040496826171875,
0.00917816162109375,
-0.0015163421630859375,
-0.002124786376953125,
0.02069091796875,
-0.0312347412109375,
0.0367431640625,
0.0230712890625,
-0.0064239501953125,
0.00989532470703125,
-0.01788330078125,
-0.00948333740234375,
-0.0799560546875,
0.05291748046875,
-0.014892578125,
0.0113525390625,
-0.0227508544921875,
-0.031524658203125,
0.015411376953125,
0.114501953125,
-0.046844482421875,
0.00803375244140625,
0.034820556640625,
0.01873779296875,
-0.01384735107421875,
-0.01081085205078125,
-0.0745849609375,
-0.01067352294921875,
-0.06378173828125,
-0.004375457763671875,
-0.018707275390625,
-0.03033447265625,
0.0224151611328125,
-0.040863037109375,
-0.0126190185546875,
-0.054168701171875,
0.03228759765625,
-0.0255279541015625,
0.061431884765625,
-0.0038738250732421875,
0.046051025390625,
-0.026824951171875,
-0.0005650520324707031,
-0.040496826171875,
-0.05023193359375,
-0.0092315673828125,
-0.0372314453125,
0.04034423828125,
0.03216552734375,
-0.015869140625,
0.016021728515625,
0.03936767578125,
0.00484466552734375,
0.00586700439453125,
0.006809234619140625,
0.0014247894287109375,
-0.024444580078125,
-0.01300811767578125,
0.0016841888427734375,
-0.040374755859375,
-0.0186767578125,
-0.06329345703125,
-0.0699462890625,
-0.0161285400390625,
0.0059051513671875,
0.05108642578125,
0.0216827392578125,
-0.0081939697265625,
-0.033050537109375,
-0.01477813720703125,
-0.039276123046875,
0.008575439453125,
-0.0316162109375,
-0.0096282958984375,
-0.0167236328125,
-0.052001953125,
0.0283203125,
-0.0653076171875,
-0.0116119384765625,
0.0136871337890625,
0.05511474609375,
0.0135040283203125,
0.003749847412109375,
0.0266876220703125,
-0.03143310546875,
0.036956787109375,
0.033966064453125,
-0.0020847320556640625,
0.0117034912109375,
-0.022552490234375,
0.00371551513671875,
0.0279541015625,
-0.02606201171875,
-0.029205322265625,
0.053070068359375,
-0.00634765625,
-0.0047607421875,
-0.004680633544921875,
-0.03009033203125,
0.037567138671875,
0.041168212890625,
0.01428985595703125,
-0.034942626953125,
0.03802490234375,
0.020355224609375,
-0.0219268798828125,
-0.0262298583984375,
-0.01055908203125,
-0.0270538330078125,
0.0180206298828125,
-0.025909423828125,
0.0163726806640625,
-0.00689697265625,
0.0139312744140625,
-0.00829315185546875,
-0.004070281982421875,
-0.00366973876953125,
0.00341796875,
0.028839111328125,
-0.01361846923828125,
0.0222625732421875,
0.011322021484375,
-0.0162811279296875,
-0.0161285400390625,
-0.00522613525390625,
0.07830810546875,
-0.00748443603515625,
-0.044647216796875,
-0.00423431396484375,
-0.0225830078125,
0.016143798828125,
0.036285400390625,
-0.0082550048828125,
0.005619049072265625,
0.0202484130859375,
-0.023101806640625,
0.0228729248046875,
0.0290374755859375,
-0.01023101806640625,
-0.00860595703125,
-0.0208892822265625,
-0.0019683837890625,
-0.01519775390625,
0.01508331298828125,
-0.01509857177734375,
-0.0269622802734375,
-0.00931549072265625,
0.004619598388671875,
-0.005161285400390625,
-0.0165863037109375,
0.0294647216796875,
-0.007503509521484375,
0.0216827392578125,
0.03717041015625,
-0.00827789306640625,
0.05364990234375,
-0.03564453125,
0.017547607421875,
0.0199432373046875,
0.053466796875,
0.0036029815673828125,
-0.029052734375,
0.0186920166015625,
-0.05609130859375,
-0.01349639892578125,
0.0802001953125,
-0.006977081298828125,
-0.081787109375,
-0.031707763671875,
-0.00035643577575683594,
0.056610107421875,
-0.0445556640625,
-0.0109100341796875,
-0.00577545166015625,
-0.0670166015625,
-0.0267333984375,
-0.0012416839599609375,
-0.0184326171875,
-0.036956787109375,
-0.0350341796875,
-0.0288238525390625,
-0.036773681640625,
-0.02191162109375,
-0.025665283203125,
0.0013141632080078125,
-0.00803375244140625,
-0.0243682861328125,
-0.0010290145874023438,
-0.0017042160034179688,
0.00382232666015625,
-0.0276336669921875,
-0.013885498046875,
-0.00946044921875,
0.00885772705078125,
0.051116943359375,
-0.0024394989013671875,
-0.04840087890625,
0.002010345458984375,
-0.0222015380859375,
0.0036678314208984375,
-0.0178070068359375,
-0.07684326171875,
-0.045318603515625,
-0.0185699462890625,
0.02484130859375,
0.0241546630859375,
-0.01137542724609375,
-0.06201171875,
-0.048583984375,
0.00431060791015625,
0.051300048828125,
0.0194854736328125,
-0.03466796875,
0.06463623046875,
0.0069427490234375,
0.06756591796875,
-0.00348663330078125,
-0.005565643310546875,
-0.035400390625,
0.0035839080810546875,
0.0101470947265625,
0.03546142578125,
-0.032073974609375,
-0.046844482421875,
0.013275146484375,
0.021453857421875,
0.08734130859375,
-0.018707275390625,
0.04254150390625,
-0.0396728515625,
-0.003047943115234375,
-0.0218963623046875,
0.044586181640625,
-0.052459716796875,
0.0286712646484375,
0.011474609375,
-0.021270751953125,
-0.006023406982421875,
0.02294921875,
0.025421142578125,
-0.00762176513671875,
0.0011644363403320312,
-0.01236724853515625,
0.0010929107666015625,
-0.01934814453125,
0.0021266937255859375,
0.01971435546875,
0.0065765380859375,
0.045745849609375,
-0.01352691650390625,
0.041015625,
0.053466796875,
-0.01522064208984375,
-0.044586181640625,
-0.005275726318359375,
0.013092041015625,
-0.0005679130554199219,
-0.00044465065002441406,
0.01812744140625,
0.0019369125366210938,
0.00989532470703125,
0.0587158203125,
0.054351806640625,
-0.07464599609375,
-0.0005764961242675781,
0.0274505615234375,
-0.006786346435546875,
-0.014251708984375,
0.0188140869140625,
-0.049163818359375,
-0.0445556640625,
-0.03875732421875,
0.00510406494140625,
-0.0379638671875,
-0.0274200439453125,
0.044403076171875,
-0.00830841064453125,
-0.01517486572265625,
0.00786590576171875,
0.0010576248168945312,
-0.01044464111328125,
0.004016876220703125,
0.00653076171875,
-0.0052947998046875,
0.0173492431640625,
0.0104217529296875,
0.01068115234375,
-0.02520751953125,
-0.055511474609375,
-0.005950927734375,
-0.0311431884765625,
-0.0352783203125,
-0.01995849609375,
-0.0019159317016601562,
0.06182861328125,
0.007080078125,
0.0097198486328125,
-0.0265045166015625,
-0.0167388916015625,
0.03253173828125,
-0.002895355224609375,
-0.0276336669921875,
0.0012788772583007812,
0.0276336669921875,
-0.04046630859375,
0.0251922607421875,
-0.00711822509765625,
-0.0223846435546875,
-0.02459716796875,
-0.006351470947265625,
0.07452392578125,
-0.0204620361328125,
-0.0213165283203125,
0.0224151611328125,
0.040069580078125,
-0.01023101806640625,
0.001956939697265625,
0.043487548828125,
-0.07000732421875,
-0.0635986328125,
0.00997161865234375,
-0.0701904296875,
-0.049591064453125,
-0.0097198486328125,
-0.028106689453125,
0.0797119140625,
-0.043670654296875,
0.0112762451171875,
0.036224365234375,
0.03466796875,
-0.034332275390625,
0.02777099609375,
-0.044525146484375,
0.042572021484375,
-0.0197601318359375,
0.042572021484375,
-0.051849365234375,
0.0164642333984375,
-0.004283905029296875,
-0.00628662109375,
0.061065673828125,
0.0196075439453125,
-0.0104827880859375,
0.009918212890625,
0.04107666015625,
0.0134429931640625,
-0.037109375,
0.0379638671875,
-0.0244598388671875,
0.042724609375,
0.042877197265625,
-0.0312042236328125,
0.0386962890625,
0.006137847900390625,
-0.04998779296875,
-0.012451171875,
0.0218658447265625,
0.040496826171875,
-0.01280975341796875,
0.0122222900390625,
0.0260467529296875,
-0.0289154052734375,
0.006999969482421875,
-0.068115234375,
0.013671875,
-0.022705078125,
-0.0223541259765625,
-0.03515625,
-0.00638580322265625,
-0.01056671142578125,
0.0133514404296875,
-0.00174713134765625,
-0.00846099853515625,
0.03131103515625,
0.0167388916015625,
0.04827880859375,
-0.037841796875,
-0.0169525146484375,
0.00909423828125,
-0.002140045166015625,
0.0833740234375,
0.039154052734375,
0.04400634765625,
0.0009031295776367188,
0.033355712890625,
-0.0194244384765625,
0.0726318359375,
-0.055267333984375,
-0.061279296875,
0.016143798828125,
0.0032711029052734375,
-0.00839996337890625,
0.0241546630859375,
-0.01239013671875,
-0.0419921875,
0.0301361083984375,
0.00710296630859375,
-0.032623291015625,
-0.001220703125,
0.00154876708984375,
0.00299835205078125,
0.04193115234375,
0.004360198974609375,
-0.039337158203125,
-0.0328369140625,
-0.00829315185546875,
0.013580322265625,
0.03863525390625,
0.0301666259765625,
0.0274505615234375,
0.0245819091796875,
-0.019134521484375,
-0.0224761962890625,
0.0274810791015625,
-0.032257080078125,
0.03656005859375,
-0.089111328125,
-0.0748291015625,
0.027130126953125,
0.074951171875,
0.00046706199645996094,
0.02490234375,
0.0287017822265625,
0.01253509521484375,
-0.0161590576171875,
-0.010406494140625,
0.043670654296875,
-0.022186279296875,
0.01212310791015625,
-0.038970947265625,
0.03765869140625,
0.034423828125,
0.004741668701171875,
-0.0341796875,
0.018096923828125,
0.048492431640625,
0.01029205322265625,
0.016632080078125,
0.01439666748046875,
-0.022491455078125,
0.037811279296875,
0.0084991455078125,
0.049041748046875,
0.035736083984375,
-0.034271240234375,
-0.01934814453125,
-0.02545166015625,
0.005931854248046875,
-0.014434814453125,
0.0203094482421875,
0.001800537109375,
0.0277557373046875,
-0.01175689697265625,
-0.032562255859375,
-0.007122039794921875,
0.023773193359375,
0.0124664306640625,
-0.0162353515625,
-0.0054779052734375,
-0.016326904296875,
-0.021728515625,
-0.01126861572265625,
0.015899658203125,
0.035400390625,
-0.00406646728515625,
0.09393310546875,
-0.03399658203125,
-0.00811004638671875,
0.0255889892578125,
0.0113372802734375,
0.01053619384765625,
0.016998291015625,
0.006683349609375,
0.015625,
0.0188140869140625,
-0.0279388427734375,
-0.033203125,
0.0120697021484375,
0.01177978515625,
-0.0308990478515625,
0.0024547576904296875,
-0.01244354248046875,
0.01494598388671875,
0.013671875,
-0.008209228515625,
-0.05609130859375,
-0.04217529296875,
-0.0266876220703125,
-0.028778076171875,
-0.01812744140625,
-0.035736083984375,
0.036712646484375,
0.0262298583984375,
0.03033447265625,
-0.0015411376953125,
0.0221405029296875,
-0.017791748046875,
0.0584716796875,
0.044281005859375,
-0.0265960693359375,
-0.07611083984375,
-0.016998291015625,
-0.0172882080078125,
-0.0325927734375,
0.01123809814453125,
0.0421142578125,
0.0042724609375,
-0.00888824462890625,
-0.0033283233642578125,
0.047515869140625,
0.0272064208984375,
-0.0232696533203125,
0.0234832763671875,
0.0203857421875,
-0.02020263671875,
0.037689208984375,
-0.041656494140625,
-0.021148681640625,
-0.0205535888671875,
-0.024749755859375,
0.025909423828125,
-0.024932861328125,
-0.0447998046875,
-0.06634521484375,
-0.016845703125,
0.049591064453125,
0.038970947265625,
-0.0816650390625,
0.039794921875,
-0.015106201171875,
0.005535125732421875,
0.0017461776733398438,
-0.046356201171875,
0.003993988037109375,
0.02349853515625,
0.00981903076171875,
-0.026153564453125,
-0.025054931640625,
0.01690673828125,
-0.0040130615234375,
0.0249481201171875,
0.046844482421875,
-0.015960693359375,
-0.031494140625,
0.01898193359375,
-0.00836181640625,
0.062408447265625,
-0.03363037109375,
-0.0367431640625,
-0.0302734375,
0.01323699951171875,
-0.0035343170166015625,
-0.0190277099609375,
0.0206298828125,
-0.0247344970703125,
-0.02044677734375,
-0.04498291015625,
-0.0075225830078125,
-0.01558685302734375,
-0.045562744140625,
-0.0594482421875,
0.01239776611328125,
0.0003426074981689453,
-0.033233642578125,
-0.0301361083984375,
-0.0210113525390625,
-0.030364990234375,
0.055511474609375,
-0.0016345977783203125,
-0.038299560546875,
-0.018646240234375,
0.0408935546875,
0.00952911376953125,
0.04815673828125,
0.0135650634765625,
0.002246856689453125,
-0.05670166015625,
-0.0287322998046875,
-0.047454833984375,
0.0177001953125,
0.054534912109375,
-0.0195465087890625,
0.037445068359375,
0.061920166015625,
-0.0246429443359375,
-0.048004150390625,
-0.041473388671875,
-0.08563232421875,
-0.0190887451171875,
0.01303863525390625,
0.00383758544921875,
0.0194091796875,
0.049224853515625,
0.074462890625,
0.01000213623046875,
-0.043853759765625,
-0.0284881591796875,
0.0023956298828125,
0.0031681060791015625,
-0.017669677734375,
0.005863189697265625,
-0.054168701171875,
-0.007404327392578125,
-0.004428863525390625,
-0.00388336181640625,
0.0285186767578125,
-0.0218658447265625,
-0.008026123046875,
0.0021190643310546875,
0.0221099853515625,
-0.0014886856079101562,
-0.056243896484375,
-0.004974365234375,
0.0528564453125,
-0.021453857421875,
0.0165557861328125,
0.0232696533203125,
-0.002773284912109375,
0.036834716796875,
0.05712890625,
-0.01177215576171875,
-0.03375244140625,
-0.0235443115234375,
0.0290985107421875,
-0.021697998046875,
0.025299072265625,
-0.040618896484375,
-0.0199127197265625,
0.0426025390625,
0.00811767578125,
-0.028167724609375,
-0.002925872802734375,
0.0205230712890625,
0.055999755859375,
-0.03228759765625,
0.03076171875,
0.00872039794921875,
0.03851318359375,
-0.0257568359375,
0.0462646484375,
-0.02239990234375,
-0.0192108154296875,
-0.0154876708984375,
-0.0018072128295898438,
0.0001342296600341797,
-0.02557373046875,
-0.00806427001953125,
-0.04913330078125,
0.01422119140625,
-0.00958251953125,
-0.01209259033203125,
0.0213165283203125
] |
de506ab37ca01ec2d1931a7092251d97078f7f48
|
Wordpress Stackexchange
Q: is_archive() returns false on the archives page I've followed the official documentation to create my archives page: http://codex.wordpress.org/Creating_an_Archive_Index
It works fine exept that "is_archive() returns false when I'm viewing this page.
Any idea ?
A: Because an "archives" Page is not an archive index of blog Posts, but rather a Page.
An "archives" page is simply a custom Page template, which applies to a static Page.
The is_archive() conditional returns true if an archive index is being displayed. An archive index page displays Posts, not static Pages.
EDIT
Instead of using if ( is_archive() ), try using if ( is_page( 'archives' ) ) (assuming you've named your static Page Archives).
Alternately, you could use if ( is_page_template( 'archives.php' ) ) (assuming you've named your template file as archives.php).
|
Q: is_archive() returns false on the archives page I've followed the official documentation to create my archives page: http://codex.wordpress.org/Creating_an_Archive_Index
It works fine exept that "is_archive() returns false when I'm viewing this page.
Any idea ?
A: Because an "archives" Page is not an archive index of blog Posts, but rather a Page.
An "archives" page is simply a custom Page template, which applies to a static Page.
The is_archive() conditional returns true if an archive index is being displayed. An archive index page displays Posts, not static Pages.
EDIT
Instead of using if ( is_archive() ), try using if ( is_page( 'archives' ) ) (assuming you've named your static Page Archives).
Alternately, you could use if ( is_page_template( 'archives.php' ) ) (assuming you've named your template file as archives.php).
A: The above solutions didn't work for me because I was doing this inside the loop. Instead I checked !is_single() to determine if I was on the post or the index :
if ( 'post' == $ptype && !is_single() )
|
wordpress
|
{
"language": "en",
"length": 169,
"provenance": "stackexchange_00019.jsonl.gz:411199",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22661"
}
|
[
0.0350341796875,
-0.00811004638671875,
0.03460693359375,
0.05621337890625,
-0.00911712646484375,
-0.0289459228515625,
0.07891845703125,
-0.0626220703125,
0.0139617919921875,
0.0217437744140625,
-0.0199127197265625,
-0.0034809112548828125,
-0.0079345703125,
-0.019622802734375,
-0.018646240234375,
-0.0262908935546875,
0.0338134765625,
-0.01885986328125,
0.0208282470703125,
-0.01068878173828125,
0.013702392578125,
0.01690673828125,
-0.004940032958984375,
0.0345458984375,
0.0284423828125,
0.0030040740966796875,
0.0770263671875,
-0.00482177734375,
0.028564453125,
-0.006893157958984375,
0.030853271484375,
-0.041046142578125,
0.0021820068359375,
0.0184173583984375,
0.01496124267578125,
0.0199127197265625,
-0.046661376953125,
0.023406982421875,
0.0153656005859375,
-0.00499725341796875,
0.01557159423828125,
-0.005764007568359375,
0.0160064697265625,
-0.0285186767578125,
0.0021915435791015625,
0.0039520263671875,
-0.0166168212890625,
-0.05377197265625,
-0.00653839111328125,
-0.006805419921875,
-0.0054473876953125,
0.03021240234375,
0.00876617431640625,
0.0018978118896484375,
0.0091094970703125,
0.0252227783203125,
-0.0020771026611328125,
-0.00897216796875,
0.029144287109375,
-0.04541015625,
-0.037506103515625,
-0.0104522705078125,
0.041290283203125,
0.0007596015930175781,
0.00992584228515625,
-0.017333984375,
0.0031070709228515625,
0.03924560546875,
-0.093505859375,
-0.015289306640625,
0.055511474609375,
-0.04595947265625,
0.0205230712890625,
-0.00012814998626708984,
-0.055694580078125,
-0.0300445556640625,
0.03363037109375,
-0.021453857421875,
-0.006496429443359375,
-0.00887298583984375,
0.00159454345703125,
0.035491943359375,
-0.05926513671875,
-0.01354217529296875,
-0.0062408447265625,
-0.007198333740234375,
-0.01235198974609375,
-0.0223541259765625,
-0.004119873046875,
-0.00826263427734375,
-0.001277923583984375,
-0.048431396484375,
0.0205078125,
-0.0015745162963867188,
-0.0224151611328125,
-0.034027099609375,
0.050262451171875,
0.09228515625,
-0.030059814453125,
-0.0253448486328125,
-0.030487060546875,
-0.030181884765625,
-0.008575439453125,
-0.039886474609375,
0.0032825469970703125,
0.0285797119140625,
0.0229644775390625,
-0.0014734268188476562,
0.0308990478515625,
0.00980377197265625,
-0.004482269287109375,
0.038360595703125,
-0.046417236328125,
-0.059814453125,
-0.0005197525024414062,
0.04302978515625,
-0.06390380859375,
0.0009293556213378906,
0.023773193359375,
-0.0126953125,
0.03131103515625,
0.048553466796875,
0.03521728515625,
-0.03155517578125,
-0.01219940185546875,
0.0212554931640625,
-0.0207366943359375,
-0.07830810546875,
0.036895751953125,
0.06024169921875,
-0.0174102783203125,
-0.01537322998046875,
-0.04705810546875,
-0.0242919921875,
-0.02996826171875,
-0.037689208984375,
0.0220794677734375,
-0.0264129638671875,
-0.005645751953125,
0.016998291015625,
-0.0028324127197265625,
-0.033203125,
-0.009674072265625,
-0.001598358154296875,
-0.021881103515625,
0.008880615234375,
0.023101806640625,
0.036407470703125,
-0.031829833984375,
-0.0634765625,
0.03863525390625,
-0.0172119140625,
0.00977325439453125,
0.0033702850341796875,
-0.006923675537109375,
-0.0452880859375,
0.0014238357543945312,
-0.023284912109375,
0.033203125,
-0.0328369140625,
0.0230865478515625,
0.0092926025390625,
0.01085662841796875,
0.0114593505859375,
-0.0177764892578125,
0.002582550048828125,
-0.0322265625,
-0.005584716796875,
0.0225677490234375,
0.0302581787109375,
0.007671356201171875,
-0.0258331298828125,
0.022216796875,
0.0160675048828125,
-0.021942138671875,
0.010467529296875,
0.01531982421875,
-0.024566650390625,
0.01444244384765625,
0.077392578125,
0.005214691162109375,
-0.01190948486328125,
0.006725311279296875,
0.0005106925964355469,
-0.0202789306640625,
0.027130126953125,
0.0209808349609375,
0.026885986328125,
-0.0162353515625,
0.018646240234375,
0.0090484619140625,
0.049591064453125,
-0.0280914306640625,
0.03240966796875,
0.02984619140625,
-0.0230865478515625,
-0.02313232421875,
-0.01434326171875,
0.0019216537475585938,
-0.0423583984375,
0.027923583984375,
0.0085296630859375,
-0.010009765625,
0.01104736328125,
-0.07171630859375,
0.0030918121337890625,
-0.019073486328125,
0.01531982421875,
-0.0007486343383789062,
0.060211181640625,
0.010223388671875,
0.0135345458984375,
-0.042022705078125,
0.049896240234375,
0.01189422607421875,
0.00832366943359375,
-0.00893402099609375,
-0.009521484375,
-0.0592041015625,
0.0028591156005859375,
-0.06787109375,
0.0225982666015625,
-0.07342529296875,
0.029693603515625,
0.055267333984375,
-0.02880859375,
-0.0089263916015625,
-0.036712646484375,
-0.0173797607421875,
-0.005748748779296875,
-0.08636474609375,
0.070556640625,
0.041748046875,
0.05230712890625,
-0.032958984375,
-0.03814697265625,
-0.03570556640625,
-0.072021484375,
0.031524658203125,
0.076416015625,
0.027740478515625,
0.0255279541015625,
0.00954437255859375,
0.0221405029296875,
0.049163818359375,
-0.036285400390625,
0.00531768798828125,
-0.00908660888671875,
0.0167388916015625,
0.0120391845703125,
-0.00555419921875,
-0.004657745361328125,
0.03143310546875,
0.0006604194641113281,
-0.011322021484375,
0.03643798828125,
0.0123443603515625,
0.0258026123046875,
0.0074462890625,
0.013275146484375,
-0.019500732421875,
0.0618896484375,
0.02154541015625,
0.01323699951171875,
0.017333984375,
0.03790283203125,
0.035247802734375,
0.0269927978515625,
-0.005062103271484375,
0.038970947265625,
-0.00963592529296875,
-0.050537109375,
0.028717041015625,
0.040130615234375,
0.025299072265625,
0.038177490234375,
-0.0413818359375,
-0.030670166015625,
0.053375244140625,
0.0306396484375,
-0.0096588134765625,
0.02099609375,
-0.017059326171875,
-0.01178741455078125,
-0.00847625732421875,
-0.053131103515625,
0.00197601318359375,
0.0150299072265625,
-0.00890350341796875,
-0.01406097412109375,
0.0000998377799987793,
0.044403076171875,
-0.0200958251953125,
0.040771484375,
0.004802703857421875,
0.004673004150390625,
-0.0230712890625,
-0.061431884765625,
0.048553466796875,
-0.048828125,
0.05224609375,
0.07830810546875,
-0.00893402099609375,
0.01552581787109375,
-0.00215911865234375,
-0.0223236083984375,
-0.010986328125,
0.0026493072509765625,
-0.02667236328125,
0.00617218017578125,
-0.058258056640625,
0.027801513671875,
0.023651123046875,
0.0243377685546875,
0.0171051025390625,
-0.0275115966796875,
0.0105438232421875,
0.0186309814453125,
-0.062042236328125,
-0.09686279296875,
0.0292205810546875,
-0.10333251953125,
0.021270751953125,
-0.02142333984375,
-0.04315185546875,
-0.0305328369140625,
0.03289794921875,
0.004062652587890625,
0.01091766357421875,
-0.034271240234375,
-0.0312042236328125,
-0.0528564453125,
-0.06036376953125,
-0.019012451171875,
0.006526947021484375,
-0.0035381317138671875,
0.004974365234375,
0.069580078125,
0.004425048828125,
-0.07269287109375,
0.01446533203125,
0.018524169921875,
-0.01398468017578125,
0.034820556640625,
0.031494140625,
-0.0011625289916992188,
-0.009796142578125,
0.023284912109375,
0.0039520263671875,
0.01275634765625,
-0.04144287109375,
-0.03240966796875,
-0.0263824462890625,
-0.0050048828125,
0.00897216796875,
0.00783538818359375,
0.0225677490234375,
-0.0017747879028320312,
0.0045013427734375,
-0.03485107421875,
-0.054534912109375,
0.0010013580322265625,
-0.06158447265625,
0.040863037109375,
0.03607177734375,
-0.0012454986572265625,
-0.00867462158203125,
0.02862548828125,
-0.0120391845703125,
-0.019622802734375,
0.012481689453125,
-0.035430908203125,
0.032562255859375,
-0.01192474365234375,
-0.019287109375,
-0.0019321441650390625,
0.020477294921875,
-0.04107666015625,
-0.0207977294921875,
-0.006893157958984375,
-0.030792236328125,
-0.006626129150390625,
-0.0260467529296875,
0.0014591217041015625,
-0.0372314453125,
0.00970458984375,
-0.0267181396484375,
0.0192413330078125,
-0.00983428955078125,
0.00571441650390625,
0.0161285400390625,
0.06268310546875,
-0.07086181640625,
-0.024658203125,
0.005886077880859375,
0.0202789306640625,
0.01213836669921875,
-0.0296478271484375,
-0.008514404296875,
-0.035247802734375,
-0.037872314453125,
0.031707763671875,
-0.0033321380615234375,
-0.014251708984375,
-0.0200653076171875,
-0.023773193359375,
-0.02191162109375,
-0.033721923828125,
0.006084442138671875,
-0.0174560546875,
0.002605438232421875,
-0.01020050048828125,
-0.002124786376953125,
-0.040557861328125,
0.0222015380859375,
-0.044525146484375,
-0.10772705078125,
-0.00833892822265625,
0.00753021240234375,
0.033416748046875,
-0.015777587890625,
0.006134033203125,
-0.0217437744140625,
0.043731689453125,
0.00617218017578125,
0.024261474609375,
0.004451751708984375,
0.0016851425170898438,
-0.023284912109375,
-0.014404296875,
0.0010862350463867188,
-0.03515625,
0.018524169921875,
-0.0239410400390625,
-0.0164794921875,
-0.039886474609375,
-0.09136962890625,
-0.052215576171875,
-0.0462646484375,
-0.02398681640625,
-0.01190948486328125,
-0.0129241943359375,
-0.00936126708984375,
0.01294708251953125,
0.00164031982421875,
-0.005046844482421875,
-0.0207061767578125,
-0.0277099609375,
0.016387939453125,
0.01261138916015625,
-0.03643798828125,
0.03228759765625,
0.048370361328125,
0.023590087890625,
-0.021026611328125,
-0.082763671875,
0.03021240234375,
0.0104522705078125,
-0.055084228515625,
0.07879638671875,
0.0325927734375,
0.00287628173828125,
0.0266876220703125,
-0.025848388671875,
-0.0002453327178955078,
-0.005626678466796875,
0.044708251953125,
-0.01361846923828125,
-0.04052734375,
0.029937744140625,
-0.018157958984375,
-0.002613067626953125,
0.0240020751953125,
0.01555633544921875,
-0.0305633544921875,
0.0162506103515625,
0.037109375,
-0.008514404296875,
0.003322601318359375,
-0.03277587890625,
-0.0396728515625,
0.01001739501953125,
0.002399444580078125,
0.01294708251953125,
0.004978179931640625,
-0.0031681060791015625,
0.01454925537109375,
0.0140228271484375,
-0.00457763671875,
-0.010986328125,
0.00733184814453125,
-0.0196685791015625,
0.02081298828125,
-0.0312347412109375,
-0.01053619384765625,
-0.0171661376953125,
0.01049041748046875,
0.016448974609375,
-0.0248870849609375,
-0.06884765625,
0.004711151123046875,
-0.020538330078125,
-0.0163726806640625,
0.041473388671875,
-0.0247650146484375,
0.048065185546875,
0.0157012939453125,
-0.024017333984375,
0.00778961181640625,
-0.0321044921875,
-0.00920867919921875,
-0.06195068359375,
0.01311492919921875,
-0.005634307861328125,
-0.01535797119140625,
0.0102996826171875,
0.054443359375,
0.0095977783203125,
0.021453857421875,
-0.02777099609375,
-0.03125,
-0.01128387451171875,
0.07135009765625,
0.043365478515625,
-0.07257080078125,
-0.00923919677734375,
0.056884765625,
0.028076171875,
-0.0206298828125,
0.0352783203125,
0.0114288330078125,
0.033050537109375,
-0.010650634765625,
-0.053375244140625,
0.0249176025390625,
-0.03717041015625,
-0.0244293212890625,
0.039794921875,
0.0081787109375,
-0.0394287109375,
-0.04278564453125,
-0.022918701171875,
0.027679443359375,
0.007373809814453125,
-0.035736083984375,
0.00927734375,
-0.06109619140625,
0.0098876953125,
0.0156402587890625,
-0.03778076171875,
0.0249481201171875,
0.0102081298828125,
-0.018341064453125,
-0.029937744140625,
-0.006725311279296875,
-0.000007867813110351562,
0.0203094482421875,
-0.03466796875,
-0.0256500244140625,
0.020965576171875,
-0.022857666015625,
0.029693603515625,
-0.025848388671875,
-0.01551055908203125,
-0.0557861328125,
0.01342010498046875,
0.02410888671875,
0.019561767578125,
-0.07122802734375,
0.00925445556640625,
-0.07244873046875,
-0.00555419921875,
-0.03582763671875,
-0.054443359375,
-0.042724609375,
0.01641845703125,
0.01556396484375,
0.0159912109375,
-0.0002033710479736328,
-0.0163421630859375,
-0.0065155029296875,
0.033966064453125,
0.0103759765625,
0.043792724609375,
-0.004665374755859375,
0.06298828125,
-0.01212310791015625,
0.050506591796875,
0.0093231201171875,
0.033233642578125,
-0.032257080078125,
-0.01457977294921875,
0.01137542724609375,
-0.023529052734375,
0.00472259521484375,
0.0025196075439453125,
-0.0213470458984375,
-0.0247344970703125,
0.03411865234375,
0.002246856689453125,
-0.035186767578125,
-0.01175689697265625,
-0.0165252685546875,
-0.0167388916015625,
0.0689697265625,
0.031646728515625,
-0.0247650146484375,
0.0034332275390625,
-0.0267333984375,
0.0206451416015625,
-0.0007963180541992188,
-0.050445556640625,
0.04443359375,
-0.003940582275390625,
0.038116455078125,
0.011199951171875,
-0.04388427734375,
0.07110595703125,
0.059295654296875,
0.005062103271484375,
0.04779052734375,
-0.00440216064453125,
0.013092041015625,
0.0279998779296875,
0.042266845703125,
-0.03790283203125,
-0.01036834716796875,
0.033447265625,
0.00518035888671875,
-0.026153564453125,
0.0070953369140625,
-0.0312042236328125,
0.023681640625,
0.0428466796875,
0.03948974609375,
-0.06036376953125,
-0.0117950439453125,
0.0064697265625,
-0.0254058837890625,
0.01363372802734375,
-0.0199737548828125,
0.006671905517578125,
-0.028045654296875,
0.0726318359375,
0.0132904052734375,
-0.0022220611572265625,
0.036346435546875,
-0.01416015625,
0.0145416259765625,
-0.002803802490234375,
0.04718017578125,
0.03143310546875,
-0.04425048828125,
0.0150604248046875,
0.045745849609375,
0.0001977682113647461,
-0.004421234130859375,
0.007843017578125,
-0.0163421630859375,
-0.02252197265625,
-0.0277099609375,
-0.006732940673828125,
-0.0251312255859375,
-0.01387786865234375,
0.00868988037109375,
0.00815582275390625,
0.0390625,
0.01351165771484375,
-0.0026073455810546875,
0.0014095306396484375,
-0.012481689453125,
-0.0038623809814453125,
-0.07757568359375,
-0.0220489501953125,
0.041656494140625,
0.0216064453125,
-0.0084991455078125,
0.045501708984375,
-0.00957489013671875,
-0.0599365234375,
-0.0082855224609375,
-0.028106689453125,
0.093017578125,
-0.026702880859375,
-0.024261474609375,
0.010528564453125,
-0.016143798828125,
-0.0244140625,
0.0024509429931640625,
0.043487548828125,
-0.034698486328125,
0.00028777122497558594,
0.031280517578125,
0.01102447509765625,
-0.01230621337890625,
0.0238037109375,
-0.0162811279296875,
0.052978515625,
-0.04522705078125,
-0.005126953125,
0.0005145072937011719,
0.03619384765625,
0.03277587890625,
0.048980712890625,
-0.0131072998046875,
-0.0016508102416992188,
0.04205322265625,
0.0308074951171875,
0.006927490234375,
0.00229644775390625,
0.0162811279296875,
0.033447265625,
0.0191497802734375,
0.00189208984375,
0.0018596649169921875,
0.0105438232421875,
0.053070068359375,
0.04388427734375,
0.01253509521484375,
0.0159759521484375,
-0.022064208984375,
-0.00177001953125,
0.041595458984375,
-0.047332763671875,
0.0298614501953125,
-0.0102081298828125,
-0.0017251968383789062,
-0.002468109130859375,
0.00949859619140625,
0.010894775390625,
-0.01387786865234375,
0.0009627342224121094,
-0.019012451171875,
-0.0183258056640625,
0.0252532958984375,
-0.032867431640625,
-0.00008177757263183594,
0.02569580078125,
0.035064697265625,
-0.0218963623046875,
-0.01297760009765625,
-0.0195465087890625,
0.045928955078125,
0.0159759521484375,
0.0011548995971679688,
0.014739990234375,
0.00274658203125,
-0.005374908447265625,
0.01123046875,
0.00287628173828125,
0.0290679931640625,
-0.0038051605224609375,
0.00502777099609375,
0.0161285400390625,
0.014373779296875,
-0.036895751953125,
-0.01264190673828125,
0.04144287109375,
0.0280914306640625,
-0.01202392578125,
-0.068359375,
0.00374603271484375,
-0.023406982421875,
-0.0023250579833984375,
0.024688720703125,
-0.0210113525390625,
0.0102081298828125,
0.048858642578125,
-0.0164642333984375,
-0.010101318359375,
0.00409698486328125,
0.0142059326171875,
0.006885528564453125,
0.01015472412109375,
-0.01392364501953125,
-0.01508331298828125,
-0.01389312744140625,
-0.0264129638671875,
0.0033779144287109375,
0.0430908203125,
0.0185089111328125,
0.00952911376953125,
-0.0008215904235839844,
-0.00882720947265625,
-0.03277587890625,
0.04815673828125,
-0.07513427734375,
0.0657958984375,
-0.08404541015625,
-0.06719970703125,
-0.022003173828125,
0.054473876953125,
0.00363922119140625,
0.0084075927734375,
0.024505615234375,
0.0199432373046875,
-0.0008959770202636719,
0.005096435546875,
0.04296875,
-0.0130615234375,
-0.02691650390625,
-0.007663726806640625,
-0.010223388671875,
0.031524658203125,
-0.0002856254577636719,
0.00940704345703125,
0.016387939453125,
0.04766845703125,
0.00267791748046875,
-0.0115203857421875,
0.0166015625,
-0.01302337646484375,
0.02197265625,
-0.0034618377685546875,
-0.0004127025604248047,
0.0215606689453125,
-0.0167388916015625,
-0.011444091796875,
-0.0196380615234375,
0.01102447509765625,
-0.02056884765625,
0.0140380859375,
-0.00254058837890625,
0.0302581787109375,
0.07244873046875,
-0.003330230712890625,
-0.0046844482421875,
-0.00550079345703125,
0.03692626953125,
0.0139923095703125,
0.0406494140625,
0.046051025390625,
0.0200653076171875,
-0.0111541748046875,
0.041259765625,
0.0306243896484375,
-0.010284423828125,
0.0252227783203125,
-0.00994110107421875,
-0.0039043426513671875,
0.05084228515625,
0.0179290771484375,
-0.02716064453125,
0.01393890380859375,
0.03289794921875,
-0.056610107421875,
-0.0081024169921875,
-0.006439208984375,
-0.037109375,
0.0005221366882324219,
0.046234130859375,
-0.0440673828125,
0.0107269287109375,
-0.0310821533203125,
0.01568603515625,
-0.0184326171875,
-0.0190277099609375,
-0.037200927734375,
-0.060638427734375,
-0.0131072998046875,
0.0423583984375,
-0.0221099853515625,
-0.0208587646484375,
-0.048553466796875,
0.0693359375,
-0.004489898681640625,
-0.0498046875,
0.01268768310546875,
-0.08984375,
0.003093719482421875,
0.0161590576171875,
0.0750732421875,
0.01116180419921875,
-0.007068634033203125,
-0.0234375,
0.034912109375,
-0.002941131591796875,
0.0438232421875,
-0.01500701904296875,
0.0213165283203125,
-0.00856781005859375,
-0.0130615234375,
0.01788330078125,
0.0104522705078125,
-0.003398895263671875,
-0.0011501312255859375,
-0.005615234375,
-0.0234832763671875,
-0.0021495819091796875,
-0.04046630859375,
-0.0199127197265625,
0.022491455078125,
0.022735595703125,
0.00811004638671875,
-0.015869140625,
-0.060943603515625,
0.004695892333984375,
0.0205078125,
-0.0308074951171875,
-0.0016279220581054688,
0.0083465576171875,
-0.052398681640625,
0.019287109375,
-0.03375244140625,
0.022430419921875,
-0.0018939971923828125,
0.004489898681640625,
-0.047149658203125,
0.0164947509765625,
-0.0272369384765625,
-0.0163116455078125,
-0.006317138671875,
0.0016727447509765625,
0.018341064453125,
-0.003875732421875,
-0.032073974609375,
0.0032711029052734375,
-0.005710601806640625,
0.03759765625,
-0.004009246826171875,
-0.018402099609375,
0.031646728515625,
0.0035686492919921875,
-0.003993988037109375,
-0.055816650390625,
0.00347137451171875,
-0.042633056640625,
0.0039005279541015625,
-0.0185394287109375,
-0.015960693359375,
-0.011505126953125,
-0.061492919921875,
-0.098876953125,
0.038970947265625,
-0.01470184326171875,
-0.048828125,
-0.039520263671875,
0.04229736328125,
0.018585205078125,
-0.06494140625,
-0.027313232421875,
0.0281524658203125,
-0.00304412841796875,
0.0211334228515625,
0.03009033203125,
0.034271240234375,
0.0132293701171875,
0.039581298828125,
-0.0300445556640625,
-0.0012350082397460938,
-0.031646728515625,
0.019500732421875,
-0.04705810546875,
0.0205841064453125,
-0.00200653076171875,
0.03265380859375,
-0.024627685546875,
0.041595458984375,
0.0206146240234375,
0.051605224609375,
0.023468017578125,
0.01226043701171875,
-0.035369873046875,
-0.006134033203125,
0.01459503173828125,
0.01953125,
0.006061553955078125,
-0.0216064453125,
-0.040313720703125,
-0.0101470947265625,
-0.042724609375,
-0.0011034011840820312,
0.04400634765625,
-0.07025146484375,
0.01108551025390625,
0.01434326171875,
-0.0142974853515625,
0.024261474609375,
-0.047332763671875,
-0.038970947265625,
0.0100250244140625,
-0.0197906494140625,
0.00736236572265625,
-0.0025310516357421875,
-0.056671142578125,
0.06463623046875,
-0.03936767578125,
-0.0289459228515625,
0.0036296844482421875,
0.03997802734375,
0.0090179443359375,
0.01230621337890625,
-0.00394439697265625,
0.03179931640625,
-0.0125274658203125,
-0.021331787109375,
0.024993896484375,
0.0162506103515625,
0.046905517578125,
0.014129638671875,
0.0521240234375,
-0.01241302490234375,
-0.050689697265625,
-0.033599853515625,
0.020355224609375,
0.00919342041015625,
-0.07659912109375,
0.09185791015625,
0.00013172626495361328,
0.03839111328125,
-0.002105712890625,
0.0487060546875,
-0.050140380859375,
-0.006511688232421875,
-0.057373046875,
-0.0209503173828125,
-0.0035572052001953125,
-0.00698089599609375,
-0.006618499755859375,
-0.03759765625,
0.020751953125,
-0.0718994140625,
-0.009185791015625,
0.0162811279296875
] |
dc927cd6bca82f8dec957162fb173f9494e6d8fb
|
Wordpress Stackexchange
Q: Does a plugin's "main" file need to be named the same as the folder containing it? I remember - many moons ago - debugging a plugin that I was building for a very, very, long time. The only thing that fixed my issue (which I can't remember for the life of me), was to name the plugins main file (the one with the plugin header) the exact same name as the plugins folder.
Since then, I have never named the plugin file anything other than the name of the folder. Is this necessary for any core functionality to work, or am I just being superstitious?
A: Simple answer, NO.
The plugin file can be named anything you want as long as at the very top of it you include the plugin Meta (name, description. ...)
|
Q: Does a plugin's "main" file need to be named the same as the folder containing it? I remember - many moons ago - debugging a plugin that I was building for a very, very, long time. The only thing that fixed my issue (which I can't remember for the life of me), was to name the plugins main file (the one with the plugin header) the exact same name as the plugins folder.
Since then, I have never named the plugin file anything other than the name of the folder. Is this necessary for any core functionality to work, or am I just being superstitious?
A: Simple answer, NO.
The plugin file can be named anything you want as long as at the very top of it you include the plugin Meta (name, description. ...)
|
wordpress
|
{
"language": "en",
"length": 136,
"provenance": "stackexchange_00019.jsonl.gz:411207",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22679"
}
|
[
-0.0253448486328125,
-0.006320953369140625,
-0.007701873779296875,
0.0127105712890625,
-0.040252685546875,
0.0135498046875,
-0.01445770263671875,
-0.007755279541015625,
-0.038848876953125,
0.04315185546875,
0.0288238525390625,
0.00614166259765625,
0.013153076171875,
-0.029022216796875,
0.01190185546875,
-0.007068634033203125,
0.024322509765625,
0.002838134765625,
-0.0010852813720703125,
-0.038604736328125,
0.0251922607421875,
-0.005474090576171875,
-0.0128173828125,
0.092529296875,
0.040496826171875,
-0.0501708984375,
0.086181640625,
0.01514434814453125,
0.0006928443908691406,
-0.0282745361328125,
0.0244140625,
0.0169677734375,
0.0177764892578125,
0.024169921875,
-0.0139923095703125,
0.0184326171875,
0.0233306884765625,
0.00333404541015625,
0.0263671875,
0.007724761962890625,
0.0038890838623046875,
0.02197265625,
-0.00013697147369384766,
0.03717041015625,
-0.0212249755859375,
-0.08349609375,
0.041961669921875,
-0.0140838623046875,
0.043701171875,
-0.0011377334594726562,
-0.0068817138671875,
0.03387451171875,
0.0074005126953125,
-0.039093017578125,
-0.0111236572265625,
-0.0016765594482421875,
-0.036895751953125,
0.0231781005859375,
0.02471923828125,
0.0116119384765625,
-0.0237274169921875,
-0.01409912109375,
0.0265655517578125,
-0.0265655517578125,
0.0226593017578125,
-0.02313232421875,
-0.030181884765625,
0.003864288330078125,
-0.0078887939453125,
0.059783935546875,
0.039398193359375,
-0.0257415771484375,
0.0175323486328125,
0.018035888671875,
0.030120849609375,
-0.0452880859375,
-0.003173828125,
-0.0074310302734375,
0.03900146484375,
0.0235748291015625,
-0.0243682861328125,
-0.03668212890625,
0.0028476715087890625,
-0.03204345703125,
0.0207061767578125,
0.03143310546875,
-0.01532745361328125,
0.0027618408203125,
-0.007965087890625,
-0.0157928466796875,
-0.0234832763671875,
0.03912353515625,
-0.005687713623046875,
0.00199127197265625,
-0.043182373046875,
-0.0029735565185546875,
-0.0230560302734375,
0.06536865234375,
-0.0645751953125,
0.005580902099609375,
-0.0083465576171875,
-0.0108795166015625,
0.00830841064453125,
-0.044158935546875,
-0.003177642822265625,
0.06463623046875,
0.0219879150390625,
0.00878143310546875,
0.0054931640625,
-0.004016876220703125,
0.00959014892578125,
0.0013475418090820312,
-0.0077667236328125,
-0.07501220703125,
0.0225982666015625,
0.04925537109375,
-0.014373779296875,
0.048553466796875,
0.0259552001953125,
0.052581787109375,
0.0178070068359375,
0.031280517578125,
0.00013327598571777344,
-0.01178741455078125,
0.0070037841796875,
-0.019012451171875,
-0.0194244384765625,
-0.029541015625,
-0.036529541015625,
0.0120849609375,
-0.0117034912109375,
0.006587982177734375,
0.0347900390625,
0.028594970703125,
-0.01318359375,
-0.01245880126953125,
-0.0016012191772460938,
0.00473785400390625,
-0.01194000244140625,
0.00946807861328125,
-0.016143798828125,
-0.020111083984375,
0.0240325927734375,
-0.0338134765625,
0.006748199462890625,
0.01654052734375,
0.010772705078125,
0.03021240234375,
0.0017910003662109375,
-0.0229644775390625,
0.0219879150390625,
-0.035491943359375,
0.018951416015625,
-0.0225067138671875,
0.0275421142578125,
-0.0282745361328125,
-0.01236724853515625,
-0.02484130859375,
0.0284271240234375,
0.0102996826171875,
0.0006976127624511719,
0.0032825469970703125,
-0.00499725341796875,
-0.013916015625,
-0.021453857421875,
-0.003223419189453125,
-0.016143798828125,
0.01270294189453125,
0.00090789794921875,
-0.011993408203125,
0.002384185791015625,
0.031005859375,
-0.0159912109375,
-0.022979736328125,
0.00006276369094848633,
-0.0162506103515625,
0.00408172607421875,
-0.00940704345703125,
0.0175933837890625,
0.0506591796875,
0.005825042724609375,
-0.017486572265625,
0.041412353515625,
-0.0196685791015625,
-0.06427001953125,
0.0283203125,
-0.01861572265625,
0.016693115234375,
0.05242919921875,
-0.01885986328125,
0.04547119140625,
-0.00809478759765625,
-0.02960205078125,
-0.002346038818359375,
-0.01812744140625,
-0.0018243789672851562,
0.01496124267578125,
0.0192108154296875,
0.004276275634765625,
-0.004550933837890625,
-0.0089874267578125,
0.016754150390625,
-0.031829833984375,
0.0309600830078125,
-0.06134033203125,
-0.0020236968994140625,
-0.01381683349609375,
0.0230865478515625,
0.0217742919921875,
0.03765869140625,
-0.0140228271484375,
0.042205810546875,
0.00281524658203125,
-0.0924072265625,
-0.037261962890625,
0.0288238525390625,
0.0024814605712890625,
0.0235443115234375,
0.02801513671875,
0.0190277099609375,
0.0256500244140625,
0.032012939453125,
0.007228851318359375,
-0.005542755126953125,
-0.001377105712890625,
0.028411865234375,
-0.033782958984375,
0.01296234130859375,
-0.00847625732421875,
0.0264892578125,
-0.01012420654296875,
0.00028896331787109375,
0.044677734375,
0.05517578125,
-0.00533294677734375,
-0.0232086181640625,
0.01387786865234375,
-0.08721923828125,
0.026214599609375,
0.04534912109375,
0.005718231201171875,
0.0254669189453125,
-0.00476837158203125,
0.0628662109375,
0.00917816162109375,
-0.04559326171875,
-0.0040283203125,
0.0316162109375,
0.039642333984375,
0.053619384765625,
-0.038543701171875,
-0.042083740234375,
0.0160064697265625,
-0.080078125,
0.0020904541015625,
0.01947021484375,
-0.03399658203125,
-0.05950927734375,
-0.00954437255859375,
0.000690460205078125,
0.031951904296875,
-0.0238037109375,
-0.0357666015625,
0.01255035400390625,
0.006809234619140625,
0.024871826171875,
0.01512908935546875,
0.028045654296875,
0.0037212371826171875,
0.01116943359375,
0.00400543212890625,
-0.0037136077880859375,
-0.02667236328125,
0.095703125,
0.08984375,
-0.033538818359375,
-0.045196533203125,
-0.0325927734375,
-0.018829345703125,
0.051177978515625,
-0.0224609375,
-0.051361083984375,
-0.056427001953125,
0.00246429443359375,
0.02978515625,
-0.0313720703125,
0.0159149169921875,
0.021759033203125,
0.042083740234375,
-0.004962921142578125,
0.0284423828125,
-0.00861358642578125,
-0.042144775390625,
0.053924560546875,
0.0103302001953125,
-0.047149658203125,
0.07403564453125,
-0.000553131103515625,
0.010009765625,
-0.0163726806640625,
0.039520263671875,
0.037689208984375,
-0.0038471221923828125,
-0.0179443359375,
-0.003204345703125,
0.0218963623046875,
-0.01181793212890625,
-0.007663726806640625,
-0.015716552734375,
0.0232696533203125,
-0.0714111328125,
0.005615234375,
0.0160369873046875,
0.109130859375,
-0.036376953125,
-0.072265625,
-0.0055389404296875,
0.04217529296875,
-0.06890869140625,
-0.0738525390625,
-0.045440673828125,
-0.0015430450439453125,
0.0252227783203125,
0.01410675048828125,
0.0081787109375,
-0.03558349609375,
0.026092529296875,
0.019866943359375,
0.011627197265625,
-0.040985107421875,
-0.0193023681640625,
-0.05084228515625,
-0.054473876953125,
-0.0276947021484375,
0.0103759765625,
-0.017486572265625,
-0.01537322998046875,
0.0273590087890625,
-0.0112457275390625,
-0.02740478515625,
-0.01248931884765625,
0.029510498046875,
0.00991058349609375,
-0.0166015625,
0.039459228515625,
-0.0631103515625,
-0.0186767578125,
-0.002330780029296875,
0.01309967041015625,
0.02783203125,
-0.025848388671875,
0.00571441650390625,
0.024200439453125,
0.0018110275268554688,
-0.0008058547973632812,
0.037811279296875,
-0.01629638671875,
0.01404571533203125,
-0.006649017333984375,
-0.036956787109375,
-0.0157470703125,
-0.007778167724609375,
-0.046600341796875,
0.017791748046875,
0.0142059326171875,
0.00848388671875,
-0.00334930419921875,
0.006366729736328125,
-0.01806640625,
-0.0214080810546875,
0.001964569091796875,
-0.040924072265625,
0.0330810546875,
-0.0132293701171875,
-0.0017366409301757812,
-0.01491546630859375,
0.056396484375,
-0.00611114501953125,
-0.037322998046875,
0.000644683837890625,
0.00362396240234375,
0.0103607177734375,
-0.00801849365234375,
-0.01538848876953125,
0.01087188720703125,
0.024200439453125,
-0.02099609375,
0.0012674331665039062,
-0.025421142578125,
-0.0133514404296875,
-0.028594970703125,
0.040924072265625,
-0.06365966796875,
-0.0221710205078125,
0.0179443359375,
0.01136016845703125,
-0.0235443115234375,
0.0257110595703125,
-0.063232421875,
-0.01097869873046875,
-0.059722900390625,
-0.0205078125,
-0.0049896240234375,
-0.0576171875,
0.007183074951171875,
-0.006397247314453125,
-0.03125,
-0.0312347412109375,
0.0391845703125,
-0.0582275390625,
0.04644775390625,
-0.0032978057861328125,
0.05059814453125,
-0.03466796875,
-0.01617431640625,
-0.04339599609375,
-0.0731201171875,
-0.02069091796875,
-0.0247650146484375,
0.07366943359375,
0.007556915283203125,
-0.00006973743438720703,
-0.0270538330078125,
0.04888916015625,
-0.0242462158203125,
0.054962158203125,
0.001667022705078125,
0.01885986328125,
0.0491943359375,
0.059295654296875,
0.04205322265625,
0.0166778564453125,
0.01531982421875,
0.0207061767578125,
-0.0335693359375,
0.01788330078125,
-0.0174713134765625,
-0.023956298828125,
0.041168212890625,
-0.059417724609375,
-0.001659393310546875,
-0.014801025390625,
0.0178985595703125,
-0.000026047229766845703,
0.00836181640625,
-0.00191497802734375,
-0.010162353515625,
0.017822265625,
-0.0028839111328125,
-0.006008148193359375,
-0.00685882568359375,
0.039306640625,
0.0631103515625,
0.0118560791015625,
-0.001239776611328125,
-0.1087646484375,
0.037261962890625,
0.023040771484375,
0.023162841796875,
0.055450439453125,
-0.00589752197265625,
-0.0055389404296875,
0.05035400390625,
-0.003566741943359375,
0.00743865966796875,
-0.0017414093017578125,
0.03204345703125,
-0.0091705322265625,
-0.06048583984375,
0.056488037109375,
-0.01763916015625,
-0.0304412841796875,
0.03826904296875,
0.0032138824462890625,
-0.0078582763671875,
-0.0196685791015625,
0.0170440673828125,
-0.01971435546875,
0.033721923828125,
-0.01114654541015625,
-0.049652099609375,
0.0185546875,
-0.02679443359375,
0.028656005859375,
0.01222991943359375,
-0.0058135986328125,
0.029876708984375,
0.0007171630859375,
0.01357269287109375,
0.047210693359375,
0.048248291015625,
-0.0059661865234375,
0.0214080810546875,
0.06396484375,
-0.0048370361328125,
-0.01480865478515625,
-0.01348876953125,
0.09466552734375,
0.03436279296875,
-0.01064300537109375,
0.00980377197265625,
-0.0246734619140625,
-0.00470733642578125,
0.006496429443359375,
-0.01288604736328125,
0.02154541015625,
-0.00420379638671875,
-0.029937744140625,
0.004688262939453125,
-0.0187835693359375,
-0.022979736328125,
-0.03411865234375,
-0.0178375244140625,
0.0006155967712402344,
-0.03631591796875,
0.01528167724609375,
-0.0004010200500488281,
-0.0144500732421875,
0.0199432373046875,
-0.01385498046875,
-0.007381439208984375,
-0.006534576416015625,
0.01000213623046875,
0.029998779296875,
-0.01445770263671875,
-0.01129913330078125,
-0.0069427490234375,
0.00457000732421875,
-0.0198516845703125,
0.026824951171875,
-0.0035266876220703125,
0.020904541015625,
-0.027984619140625,
-0.050872802734375,
0.044097900390625,
-0.035125732421875,
0.0013036727905273438,
-0.005367279052734375,
-0.056549072265625,
-0.034271240234375,
-0.0195770263671875,
0.01409149169921875,
0.03680419921875,
-0.0237884521484375,
0.007640838623046875,
-0.01366424560546875,
0.0095367431640625,
0.00482177734375,
0.008331298828125,
-0.05572509765625,
0.026611328125,
0.0443115234375,
-0.0214996337890625,
-0.0118255615234375,
0.0064849853515625,
-0.0296173095703125,
-0.0253143310546875,
-0.016998291015625,
-0.01995849609375,
0.05084228515625,
-0.01947021484375,
0.07647705078125,
-0.017120361328125,
-0.040802001953125,
0.00799560546875,
0.0215911865234375,
0.019439697265625,
0.0275726318359375,
-0.0814208984375,
-0.00027298927307128906,
-0.035186767578125,
-0.02215576171875,
0.00476837158203125,
-0.0207977294921875,
-0.0535888671875,
0.0141754150390625,
-0.023834228515625,
0.0214080810546875,
-0.0006613731384277344,
0.0175933837890625,
0.01422882080078125,
0.0147857666015625,
-0.0196685791015625,
0.0298004150390625,
-0.0207672119140625,
-0.011383056640625,
0.03070068359375,
-0.006786346435546875,
-0.002872467041015625,
-0.017852783203125,
0.0237579345703125,
-0.0233917236328125,
0.0225830078125,
0.01522064208984375,
-0.0249176025390625,
-0.031951904296875,
0.00997161865234375,
-0.0310821533203125,
0.045135498046875,
-0.020355224609375,
-0.0033283233642578125,
0.01259613037109375,
0.002696990966796875,
-0.0119781494140625,
0.05206298828125,
0.017333984375,
0.005458831787109375,
0.0170440673828125,
-0.0303955078125,
-0.01410675048828125,
-0.0270843505859375,
-0.0039825439453125,
0.02197265625,
-0.024566650390625,
-0.0026531219482421875,
0.0268096923828125,
-0.022003173828125,
0.0643310546875,
0.05499267578125,
-0.01140594482421875,
0.033843994140625,
0.043212890625,
0.01439666748046875,
-0.004627227783203125,
0.0120086669921875,
0.0498046875,
-0.03167724609375,
0.078369140625,
0.0155029296875,
-0.0247650146484375,
0.0574951171875,
-0.046875,
0.0161590576171875,
0.00958251953125,
0.023681640625,
-0.0260162353515625,
0.0174713134765625,
-0.0091400146484375,
-0.02069091796875,
0.023040771484375,
0.0009493827819824219,
0.011077880859375,
0.04339599609375,
0.0423583984375,
0.017974853515625,
-0.0049896240234375,
0.059051513671875,
0.0160369873046875,
-0.00689697265625,
-0.0225982666015625,
0.03460693359375,
0.0015401840209960938,
-0.005733489990234375,
-0.02716064453125,
0.02838134765625,
-0.02606201171875,
-0.02349853515625,
0.006999969482421875,
0.0002567768096923828,
-0.02581787109375,
-0.01229095458984375,
0.0260467529296875,
0.006084442138671875,
0.01561737060546875,
0.020477294921875,
-0.00891876220703125,
0.058563232421875,
0.0243072509765625,
0.0017518997192382812,
0.0002779960632324219,
-0.01020050048828125,
0.03973388671875,
0.0272369384765625,
-0.0129547119140625,
0.0096282958984375,
0.005672454833984375,
-0.033538818359375,
0.00260162353515625,
-0.028228759765625,
-0.0177459716796875,
-0.039520263671875,
-0.04302978515625,
0.10986328125,
0.0036144256591796875,
-0.048736572265625,
-0.02618408203125,
0.00283050537109375,
-0.005462646484375,
0.0167694091796875,
0.00641632080078125,
-0.007663726806640625,
0.0305938720703125,
0.004486083984375,
0.017608642578125,
0.02606201171875,
0.0227508544921875,
-0.05194091796875,
0.09893798828125,
0.009429931640625,
0.02880859375,
0.0260009765625,
0.022491455078125,
-0.037445068359375,
0.0016393661499023438,
-0.01065826416015625,
0.0567626953125,
-0.025115966796875,
0.053009033203125,
-0.051971435546875,
-0.0023288726806640625,
0.01229095458984375,
0.03851318359375,
0.035888671875,
-0.0010271072387695312,
0.0038700103759765625,
0.00916290283203125,
0.0697021484375,
0.0206756591796875,
0.00923919677734375,
0.024261474609375,
-0.005199432373046875,
-0.0192108154296875,
-0.0185546875,
0.026214599609375,
0.040435791015625,
-0.033172607421875,
-0.05621337890625,
0.005657196044921875,
0.0137786865234375,
0.01267242431640625,
-0.006473541259765625,
0.0177764892578125,
0.0210113525390625,
-0.037322998046875,
-0.00931549072265625,
0.00235748291015625,
-0.020172119140625,
0.0270538330078125,
0.037872314453125,
-0.01079559326171875,
-0.054168701171875,
-0.006771087646484375,
0.0570068359375,
0.0194091796875,
0.020172119140625,
0.007572174072265625,
0.00832366943359375,
0.043853759765625,
-0.0218963623046875,
-0.004238128662109375,
0.0171051025390625,
-0.02593994140625,
0.0003139972686767578,
-0.01197052001953125,
0.033843994140625,
-0.024139404296875,
-0.0055999755859375,
0.01904296875,
0.003017425537109375,
-0.0115203857421875,
-0.01433563232421875,
-0.00040268898010253906,
-0.038330078125,
-0.0087127685546875,
-0.029327392578125,
-0.052032470703125,
-0.00362396240234375,
-0.00814056396484375,
-0.012969970703125,
-0.003940582275390625,
0.03448486328125,
0.0152130126953125,
0.0072021484375,
-0.00994873046875,
-0.0236663818359375,
0.001495361328125,
-0.024200439453125,
0.0721435546875,
0.0117645263671875,
-0.0110321044921875,
-0.049713134765625,
0.0159759521484375,
0.01556396484375,
0.031890869140625,
-0.0286865234375,
0.059844970703125,
-0.0146331787109375,
0.03173828125,
-0.066162109375,
-0.056182861328125,
0.0400390625,
0.04473876953125,
0.045501708984375,
0.05609130859375,
0.07904052734375,
0.0418701171875,
-0.0221405029296875,
0.0116729736328125,
-0.019439697265625,
-0.032745361328125,
0.040557861328125,
-0.04779052734375,
0.055145263671875,
0.0024890899658203125,
0.006908416748046875,
-0.029510498046875,
0.0194091796875,
0.031036376953125,
-0.00029730796813964844,
-0.0008893013000488281,
-0.001003265380859375,
-0.05035400390625,
0.05133056640625,
-0.045135498046875,
0.09844970703125,
0.01201629638671875,
-0.0003342628479003906,
-0.00615692138671875,
-0.005523681640625,
-0.0016489028930664062,
-0.00579833984375,
0.039947509765625,
0.011138916015625,
0.0306396484375,
0.0158538818359375,
0.006954193115234375,
-0.0077667236328125,
-0.03106689453125,
0.02630615234375,
0.026947021484375,
0.0252685546875,
0.034637451171875,
-0.0166168212890625,
-0.00315093994140625,
-0.0290374755859375,
0.021392822265625,
0.0389404296875,
0.07562255859375,
-0.007572174072265625,
0.04791259765625,
-0.0130767822265625,
-0.0176544189453125,
-0.018890380859375,
-0.007617950439453125,
0.005863189697265625,
-0.03070068359375,
-0.0212860107421875,
0.0067138671875,
-0.05267333984375,
0.0004069805145263672,
0.02960205078125,
-0.0433349609375,
0.0099639892578125,
-0.00045752525329589844,
0.0082855224609375,
-0.01009368896484375,
0.0279083251953125,
0.007381439208984375,
-0.039215087890625,
0.0300140380859375,
0.03985595703125,
0.0078887939453125,
0.042938232421875,
-0.03985595703125,
0.0017747879028320312,
0.017578125,
-0.0298309326171875,
0.00984954833984375,
0.0096588134765625,
-0.0059356689453125,
0.0251922607421875,
0.0355224609375,
-0.115966796875,
-0.01052093505859375,
0.0012655258178710938,
-0.01361846923828125,
-0.004528045654296875,
0.1197509765625,
-0.0294647216796875,
-0.006336212158203125,
0.00539398193359375,
0.0216064453125,
0.035980224609375,
-0.0219573974609375,
0.01242828369140625,
0.01314544677734375,
0.0030155181884765625,
0.006622314453125,
-0.056182861328125,
-0.0261688232421875,
-0.07391357421875,
-0.0095977783203125,
0.01067352294921875,
-0.043212890625,
-0.0400390625,
-0.0042877197265625,
0.00600433349609375,
0.028228759765625,
-0.003757476806640625,
-0.02020263671875,
0.003940582275390625,
-0.034210205078125,
0.00968170166015625,
0.0012989044189453125,
-0.028411865234375,
-0.004680633544921875,
0.003795623779296875,
-0.035400390625,
-0.048797607421875,
-0.046356201171875,
0.0311737060546875,
-0.0281219482421875,
0.044158935546875,
0.034881591796875,
-0.05322265625,
0.0180511474609375,
0.052154541015625,
0.059906005859375,
0.09326171875,
0.0098114013671875,
-0.01116943359375,
0.0423583984375,
-0.03912353515625,
-0.006282806396484375,
-0.03173828125,
-0.01284027099609375,
-0.034698486328125,
-0.0283660888671875,
-0.0024700164794921875,
0.01456451416015625,
0.01140594482421875,
-0.0239105224609375,
-0.036376953125,
0.0153045654296875,
0.0109100341796875,
-0.03204345703125,
-0.021636962890625,
-0.0077972412109375,
-0.0004146099090576172,
0.031341552734375,
-0.0013675689697265625,
-0.031890869140625,
-0.0232086181640625,
0.0281829833984375,
0.0160064697265625,
0.0162353515625,
0.01837158203125,
0.03497314453125,
0.030853271484375,
0.045867919921875,
0.0521240234375,
-0.033172607421875,
0.01141357421875,
0.0007443428039550781,
0.036376953125,
0.053070068359375,
-0.0274200439453125,
0.0374755859375,
-0.006565093994140625,
-0.030792236328125,
0.0006403923034667969,
-0.0130615234375,
-0.0196075439453125,
0.012359619140625,
0.04693603515625,
0.03887939453125,
0.02276611328125,
-0.047454833984375,
-0.0487060546875,
-0.043731689453125,
0.0092926025390625,
-0.00746917724609375,
-0.002796173095703125,
-0.039642333984375,
0.0291900634765625,
0.00730133056640625,
-0.018768310546875,
-0.043670654296875,
0.038604736328125,
-0.042938232421875,
-0.005939483642578125,
0.02984619140625,
0.007259368896484375,
0.01251983642578125,
-0.067626953125,
0.039093017578125,
-0.0147705078125,
0.01421356201171875,
-0.0103759765625,
0.04498291015625,
0.0171051025390625,
0.0230255126953125,
0.0185546875,
0.04901123046875,
-0.03668212890625,
0.00460052490234375,
0.01515960693359375,
0.048858642578125,
-0.01415252685546875,
-0.0077056884765625,
-0.02362060546875,
0.031982421875,
-0.00789642333984375,
0.0281829833984375,
-0.01065826416015625,
0.07867431640625,
0.0212249755859375,
0.0653076171875,
0.02032470703125,
-0.057525634765625,
-0.01158905029296875,
0.0552978515625,
-0.00933074951171875,
-0.051971435546875,
-0.00040149688720703125,
-0.084228515625,
0.02093505859375,
0.023040771484375,
0.043792724609375,
0.0150909423828125,
0.002838134765625,
-0.036773681640625,
0.00464630126953125,
-0.0009312629699707031
] |
e7324c9dc37570273b8a5a2cc10fb13b43a4f897
|
Wordpress Stackexchange
Q: Where can I sell WordPress themes and plugins? I've been building some WordPress themes and plugins. What are the online marketplaces I can sell them?
A: Envato has Theme Forest and Code Canyon. I don't know how the GPL lovin' WordPress community feels about it, but my company has bought things from there when we needed to. They aren't updateable from the wp-admin though, so...
|
Q: Where can I sell WordPress themes and plugins? I've been building some WordPress themes and plugins. What are the online marketplaces I can sell them?
A: Envato has Theme Forest and Code Canyon. I don't know how the GPL lovin' WordPress community feels about it, but my company has bought things from there when we needed to. They aren't updateable from the wp-admin though, so...
A: Though not nearly as large, WP Plugins is another marketplace for plugins.
Code Canyon and Theme Forest are by far the largest though.
A: I recommend you to make free versions of your plugins / themes which you submit to Wordpress plugins / themes directory, and include in them links to your paid versions. Is the best way to promote your work.
Here http://mashable.com/2009/02/28/sell-designs-online/ you can find an extended list of marketplaces.
I would also recommend Mojo Themes
A: here is a nice brake down for you:
MarketPlaces
Themes:
Theme Forest
- Probably the biggest theme marketplace by Evanto. Rates: New authors begin at the 50%.
Templamatic
- Rates: between 50% and 70%.
BuyStockDesign
- Rates: Start from 50% to 75%.
BuySellWordpress
- Rates: Starts from 50% and may go up to 70%.
WPmart
- Free listing.
Plugins:
Code Canyon
- Probably the biggest Plugin marketplace again by Evanto.
- Rates: New authors begin at the 50%
WPPlugins
- The only other major plugin market place by Incsub.
- Rates: 70% fixed.
WPmart
Forums
There is a lot of potential for selling templates on webmaster and webdev forums with marketplaces and very high traffic:
*
*Webmaster-Talk
*TalkFreelance
*Digital Point
Other Designers and Developers
Two approaches here
*
*Contact Designers and Developers who are selling in there own sites and ask to list your theme/plugin for a cut of the profit (negotiate well).
*Contact Designers, Developers and Website builders look for there portfolios and see if you have a product (theme/plugin) they would need and use, offer to license a such product so they could use for there customers.
and lastly,
Sell on your Own site
Its harder then any other option but you get to keep 100% of the profits so if you market your self the right way you won't need any of the places listed here :)
A: There's been a massive discussion about selling Premium themes but at the end of the day you own the copy right to all code/images which don't call on WordPress functions.
Also look at Mojo Themes
A: you have your own website means try with this one:Your Own Store.Create your own store & get 100% profit.otherwise theme forest & Mojo themes are good.:)
UPDATE:
while i googling i found top 20+ websites for you.Great Collection of websites.it'll very very helpful to decrease your googling time :)
A: Here's an AppStore-like marketplace: http://www.plugpress.com/
|
wordpress
|
{
"language": "en",
"length": 468,
"provenance": "stackexchange_00019.jsonl.gz:411209",
"question_score": "16",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22688"
}
|
[
-0.007015228271484375,
-0.0056610107421875,
0.00896453857421875,
0.005374908447265625,
-0.0289154052734375,
0.003170013427734375,
0.01042938232421875,
-0.021514892578125,
0.001834869384765625,
0.0207977294921875,
-0.003871917724609375,
0.0286865234375,
-0.02337646484375,
-0.0282135009765625,
0.008209228515625,
-0.01029205322265625,
0.0161590576171875,
0.0260162353515625,
0.049346923828125,
0.0069122314453125,
0.02252197265625,
-0.0038166046142578125,
0.00283050537109375,
-0.0266265869140625,
0.07275390625,
0.02764892578125,
0.066162109375,
-0.0119171142578125,
0.03448486328125,
-0.0104217529296875,
0.05767822265625,
-0.056854248046875,
0.01007843017578125,
-0.003955841064453125,
0.01192474365234375,
-0.03009033203125,
0.00826263427734375,
-0.0030002593994140625,
0.03106689453125,
-0.016448974609375,
0.0277252197265625,
-0.0028533935546875,
-0.0005693435668945312,
0.03662109375,
-0.0229339599609375,
-0.06878662109375,
0.028106689453125,
-0.04302978515625,
-0.0221099853515625,
-0.01522064208984375,
0.0183563232421875,
-0.026702880859375,
0.048828125,
-0.016265869140625,
-0.0236663818359375,
-0.037750244140625,
0.0251007080078125,
-0.039306640625,
0.02276611328125,
-0.00885009765625,
-0.0191650390625,
0.0007419586181640625,
0.032135009765625,
0.0013532638549804688,
-0.00804901123046875,
0.016876220703125,
-0.0223846435546875,
0.009857177734375,
-0.014312744140625,
-0.01308441162109375,
-0.0021381378173828125,
-0.018463134765625,
-0.0121612548828125,
-0.0204620361328125,
0.00677490234375,
0.0089874267578125,
0.0224456787109375,
-0.00606536865234375,
-0.0017747879028320312,
0.02490234375,
-0.0180816650390625,
-0.038726806640625,
-0.0240631103515625,
-0.049102783203125,
0.026763916015625,
0.0021038055419921875,
0.0006961822509765625,
-0.004184722900390625,
-0.041900634765625,
0.0017766952514648438,
-0.0256805419921875,
0.005168914794921875,
-0.03338623046875,
0.0081787109375,
-0.0105743408203125,
0.0159454345703125,
0.053192138671875,
0.037628173828125,
0.0171966552734375,
0.0006723403930664062,
0.026214599609375,
-0.06207275390625,
0.038055419921875,
-0.026763916015625,
-0.0185089111328125,
0.0198211669921875,
0.01165771484375,
-0.00016427040100097656,
0.006160736083984375,
0.0166473388671875,
-0.001880645751953125,
-0.0064849853515625,
0.0144195556640625,
-0.0261077880859375,
0.01654052734375,
0.0146331787109375,
-0.0123138427734375,
0.044830322265625,
0.0218048095703125,
0.044158935546875,
0.000270843505859375,
0.017852783203125,
0.031707763671875,
-0.01337432861328125,
0.003448486328125,
0.006412506103515625,
-0.0419921875,
-0.025543212890625,
0.00807952880859375,
0.0701904296875,
-0.00997161865234375,
-0.0245819091796875,
-0.0440673828125,
-0.006805419921875,
-0.0244140625,
-0.02294921875,
0.0219268798828125,
0.026702880859375,
0.000396728515625,
-0.01401519775390625,
0.010406494140625,
-0.01198577880859375,
-0.012908935546875,
-0.0197601318359375,
0.07244873046875,
-0.0013895034790039062,
0.0113983154296875,
0.038238525390625,
0.035247802734375,
0.017181396484375,
0.035125732421875,
0.0178070068359375,
0.0130615234375,
-0.0037136077880859375,
0.07550048828125,
-0.036834716796875,
0.0723876953125,
-0.044464111328125,
0.021575927734375,
-0.027862548828125,
-0.032196044921875,
0.0036945343017578125,
0.0222320556640625,
-0.01451873779296875,
0.0109100341796875,
-0.0047607421875,
0.0184173583984375,
0.0191802978515625,
0.023529052734375,
0.006404876708984375,
-0.004230499267578125,
-0.032440185546875,
0.059234619140625,
0.039642333984375,
0.006839752197265625,
0.0543212890625,
0.02142333984375,
-0.01551055908203125,
0.07305908203125,
-0.035858154296875,
-0.04388427734375,
-0.021636962890625,
0.07080078125,
-0.03717041015625,
-0.06573486328125,
0.0018482208251953125,
-0.00868988037109375,
0.0153350830078125,
0.05853271484375,
-0.019775390625,
0.0693359375,
-0.013427734375,
-0.0010824203491210938,
0.03155517578125,
-0.0155029296875,
-0.01323699951171875,
0.00563812255859375,
0.05181884765625,
-0.0272216796875,
-0.033050537109375,
-0.079345703125,
0.0290374755859375,
-0.03558349609375,
0.037689208984375,
-0.0082550048828125,
0.0012722015380859375,
0.0019817352294921875,
0.03271484375,
0.023101806640625,
0.031097412109375,
0.0039005279541015625,
0.0092010498046875,
-0.034454345703125,
-0.01520538330078125,
-0.043182373046875,
-0.01003265380859375,
-0.006855010986328125,
0.058685302734375,
0.016021728515625,
-0.0007605552673339844,
0.049072265625,
-0.05181884765625,
0.047271728515625,
0.0406494140625,
-0.033599853515625,
0.003131866455078125,
-0.01412200927734375,
0.0108642578125,
-0.01416778564453125,
0.002384185791015625,
0.03326416015625,
-0.005367279052734375,
0.00740814208984375,
0.004978179931640625,
-0.04107666015625,
-0.0168914794921875,
-0.0022487640380859375,
-0.0282745361328125,
0.020294189453125,
0.0418701171875,
0.0191497802734375,
0.054473876953125,
-0.0546875,
-0.03985595703125,
0.0643310546875,
0.0059661865234375,
0.00147247314453125,
-0.0170440673828125,
0.049163818359375,
0.052215576171875,
0.0138397216796875,
-0.016387939453125,
0.00981903076171875,
-0.005588531494140625,
0.0305633544921875,
0.007564544677734375,
-0.046356201171875,
-0.0213775634765625,
-0.01415252685546875,
0.0293426513671875,
0.0003879070281982422,
0.0235595703125,
0.029632568359375,
0.0005178451538085938,
0.01552581787109375,
-0.0000584721565246582,
0.026458740234375,
0.01065826416015625,
-0.0291595458984375,
0.0004363059997558594,
0.021331787109375,
0.0017328262329101562,
0.0019025802612304688,
0.0399169921875,
0.0276947021484375,
0.0210723876953125,
-0.01314544677734375,
-0.034027099609375,
0.0163116455078125,
0.0182037353515625,
-0.01042938232421875,
-0.016082763671875,
-0.047271728515625,
-0.01105499267578125,
0.0005321502685546875,
-0.04840087890625,
0.0115966796875,
0.0107269287109375,
0.01280975341796875,
-0.0090179443359375,
0.005199432373046875,
0.037811279296875,
-0.021575927734375,
0.057952880859375,
-0.006603240966796875,
-0.0183258056640625,
-0.0286102294921875,
-0.01263427734375,
0.0163726806640625,
-0.058563232421875,
-0.0090484619140625,
0.03021240234375,
-0.00928497314453125,
-0.01507568359375,
0.031463623046875,
-0.011077880859375,
0.041473388671875,
0.0161590576171875,
0.0062408447265625,
0.03521728515625,
-0.05718994140625,
0.0170440673828125,
0.01297760009765625,
0.0192108154296875,
-0.018798828125,
-0.058319091796875,
-0.027923583984375,
0.0140533447265625,
-0.08856201171875,
-0.052154541015625,
-0.0144805908203125,
-0.008056640625,
0.01178741455078125,
0.01430511474609375,
0.0031452178955078125,
-0.00806427001953125,
0.0229034423828125,
0.00020170211791992188,
0.03338623046875,
-0.026214599609375,
-0.047088623046875,
-0.07037353515625,
-0.07769775390625,
-0.064208984375,
0.00716400146484375,
0.0057373046875,
0.007259368896484375,
0.036895751953125,
0.019775390625,
-0.039276123046875,
0.00791168212890625,
0.07904052734375,
-0.0058441162109375,
-0.00260162353515625,
0.01526641845703125,
-0.051361083984375,
-0.0302276611328125,
0.0081634521484375,
0.05120849609375,
-0.0194091796875,
0.000013828277587890625,
-0.0068206787109375,
-0.0255279541015625,
-0.017303466796875,
-0.02813720703125,
-0.03009033203125,
0.024261474609375,
-0.04595947265625,
-0.060302734375,
-0.07586669921875,
-0.0303192138671875,
0.03466796875,
-0.031463623046875,
0.0244140625,
0.00470733642578125,
-0.028106689453125,
0.01910400390625,
-0.004444122314453125,
0.029632568359375,
0.031707763671875,
-0.046844482421875,
-0.0006580352783203125,
0.035430908203125,
0.004138946533203125,
0.03436279296875,
-0.002765655517578125,
-0.026214599609375,
-0.051971435546875,
0.03448486328125,
-0.01318359375,
0.01360321044921875,
0.006793975830078125,
0.047454833984375,
0.011749267578125,
0.005229949951171875,
0.05609130859375,
0.03192138671875,
0.04217529296875,
-0.042022705078125,
-0.0491943359375,
-0.050445556640625,
0.05657958984375,
-0.07720947265625,
-0.00673675537109375,
0.01922607421875,
0.01201629638671875,
0.0011835098266601562,
-0.0015649795532226562,
-0.053955078125,
-0.033966064453125,
-0.01009368896484375,
-0.0214996337890625,
-0.0139923095703125,
-0.0282745361328125,
0.00594329833984375,
-0.04522705078125,
-0.01003265380859375,
-0.0205078125,
0.047698974609375,
-0.0165252685546875,
0.00746917724609375,
-0.00577545166015625,
0.0021610260009765625,
-0.0309600830078125,
-0.038482666015625,
0.0088653564453125,
-0.06658935546875,
-0.033294677734375,
0.030242919921875,
0.04840087890625,
0.003910064697265625,
-0.039642333984375,
-0.033721923828125,
0.0269775390625,
-0.044647216796875,
0.0113372802734375,
-0.01079559326171875,
0.051422119140625,
-0.051513671875,
0.005466461181640625,
-0.01959228515625,
-0.0177154541015625,
-0.031463623046875,
-0.04583740234375,
-0.04315185546875,
-0.006839752197265625,
0.0168609619140625,
0.0297698974609375,
0.0282440185546875,
-0.007572174072265625,
-0.0196685791015625,
0.006420135498046875,
-0.0015020370483398438,
-0.01132965087890625,
-0.0288543701171875,
0.011810302734375,
0.016876220703125,
-0.01261138916015625,
0.0364990234375,
-0.0238494873046875,
-0.0229644775390625,
0.0418701171875,
0.0848388671875,
0.005115509033203125,
-0.0062103271484375,
-0.148681640625,
0.0253753662109375,
0.0357666015625,
0.0269775390625,
0.0261993408203125,
0.023193359375,
-0.0293121337890625,
0.025970458984375,
0.0222930908203125,
-0.0244140625,
0.0051422119140625,
0.0364990234375,
-0.0030956268310546875,
-0.00934600830078125,
-0.00218963623046875,
-0.01434326171875,
0.03302001953125,
0.007205963134765625,
-0.01971435546875,
0.0206451416015625,
-0.0243072509765625,
-0.0108489990234375,
0.007259368896484375,
0.0026569366455078125,
-0.0025768280029296875,
-0.01617431640625,
-0.00719451904296875,
0.04345703125,
0.061981201171875,
0.050872802734375,
-0.00649261474609375,
0.035247802734375,
0.0262298583984375,
-0.022796630859375,
0.00128173828125,
-0.0013189315795898438,
-0.036041259765625,
0.023590087890625,
-0.03424072265625,
-0.0517578125,
0.002056121826171875,
-0.0130767822265625,
0.0250091552734375,
0.00027060508728027344,
-0.06622314453125,
-0.043426513671875,
0.0127105712890625,
0.051025390625,
0.01215362548828125,
-0.0214996337890625,
0.05389404296875,
-0.00514984130859375,
-0.022552490234375,
-0.020538330078125,
-0.063720703125,
-0.01377105712890625,
-0.048797607421875,
0.0210723876953125,
-0.030517578125,
0.0009794235229492188,
0.0208282470703125,
0.0294036865234375,
-0.029327392578125,
0.019989013671875,
0.0014591217041015625,
0.0283050537109375,
0.0174713134765625,
0.03790283203125,
0.0220489501953125,
-0.039154052734375,
0.0170745849609375,
-0.01568603515625,
-0.0005884170532226562,
-0.0023632049560546875,
-0.011871337890625,
0.00959014892578125,
0.0166168212890625,
-0.0168304443359375,
0.00899505615234375,
0.01934814453125,
-0.01383209228515625,
0.006397247314453125,
-0.01538848876953125,
-0.005779266357421875,
0.01131439208984375,
0.02557373046875,
0.0170745849609375,
0.005207061767578125,
0.0033054351806640625,
0.0047149658203125,
-0.024627685546875,
-0.0239410400390625,
-0.01910400390625,
0.02105712890625,
-0.0494384765625,
-0.007556915283203125,
0.006931304931640625,
-0.02923583984375,
0.01287078857421875,
0.039764404296875,
-0.0882568359375,
-0.07000732421875,
-0.000050067901611328125,
0.0019102096557617188,
0.027557373046875,
-0.0310516357421875,
0.0035419464111328125,
-0.0048675537109375,
-0.0006756782531738281,
0.0161285400390625,
0.016357421875,
0.08062744140625,
0.034515380859375,
-0.037109375,
-0.0301055908203125,
-0.01751708984375,
-0.00843048095703125,
0.0029163360595703125,
-0.02203369140625,
-0.0194854736328125,
-0.006084442138671875,
0.036102294921875,
0.040130615234375,
-0.03155517578125,
-0.0748291015625,
0.028411865234375,
-0.01654052734375,
0.002727508544921875,
0.023040771484375,
0.00911712646484375,
0.009674072265625,
0.0400390625,
0.0389404296875,
0.0237884521484375,
-0.0189971923828125,
-0.040252685546875,
-0.0233917236328125,
-0.0024929046630859375,
-0.03936767578125,
0.002094268798828125,
-0.003692626953125,
0.0176849365234375,
0.0148468017578125,
-0.0035724639892578125,
0.01393890380859375,
0.0478515625,
-0.03558349609375,
0.0027332305908203125,
-0.0257720947265625,
0.03411865234375,
-0.07684326171875,
-0.0091400146484375,
0.023406982421875,
-0.031463623046875,
0.020355224609375,
0.003528594970703125,
0.0158843994140625,
0.00240325927734375,
-0.03021240234375,
0.013397216796875,
0.0190582275390625,
-0.03143310546875,
-0.0010023117065429688,
0.002532958984375,
0.021759033203125,
0.01430511474609375,
-0.0084228515625,
0.031280517578125,
-0.01119232177734375,
0.01708984375,
-0.03778076171875,
-0.009033203125,
0.040740966796875,
0.00788116455078125,
-0.040863037109375,
0.01505279541015625,
-0.037322998046875,
-0.005817413330078125,
0.054901123046875,
0.0430908203125,
-0.0958251953125,
-0.004909515380859375,
0.0051116943359375,
0.00025343894958496094,
-0.034698486328125,
-0.00439453125,
0.029541015625,
0.00315093994140625,
0.052886962890625,
0.01111602783203125,
0.0069732666015625,
0.0211944580078125,
-0.03302001953125,
-0.01409912109375,
-0.006496429443359375,
0.0689697265625,
0.0258941650390625,
-0.1029052734375,
0.04693603515625,
0.062225341796875,
-0.01361846923828125,
-0.02020263671875,
-0.01029205322265625,
0.0009751319885253906,
0.009857177734375,
-0.006473541259765625,
0.053680419921875,
-0.0760498046875,
0.03448486328125,
-0.031829833984375,
0.01116943359375,
0.031585693359375,
0.036895751953125,
-0.00687408447265625,
-0.034393310546875,
0.03900146484375,
0.0182647705078125,
0.0182952880859375,
-0.01861572265625,
-0.00246429443359375,
0.07177734375,
-0.033355712890625,
0.0178070068359375,
0.01593017578125,
0.0159912109375,
-0.020660400390625,
-0.05047607421875,
0.0955810546875,
-0.037811279296875,
-0.0100860595703125,
0.026336669921875,
0.0027523040771484375,
-0.0267486572265625,
-0.0080413818359375,
-0.0008940696716308594,
-0.032318115234375,
0.0012121200561523438,
0.0006318092346191406,
0.0061492919921875,
0.0160675048828125,
0.0176544189453125,
-0.052093505859375,
0.0203399658203125,
-0.00988006591796875,
-0.0029392242431640625,
-0.01507568359375,
0.0171356201171875,
-0.002834320068359375,
-0.01229095458984375,
0.01122283935546875,
0.03875732421875,
-0.025604248046875,
-0.048065185546875,
0.014801025390625,
0.0157318115234375,
-0.0152435302734375,
-0.00440216064453125,
0.04669189453125,
0.0217132568359375,
-0.058380126953125,
-0.00431060791015625,
0.0012044906616210938,
-0.0010881423950195312,
-0.005855560302734375,
0.0736083984375,
-0.00860595703125,
0.039947509765625,
0.00962066650390625,
-0.062469482421875,
0.0250091552734375,
-0.054412841796875,
-0.01611328125,
0.0014505386352539062,
0.00650787353515625,
-0.019775390625,
0.00241851806640625,
-0.00555419921875,
-0.040679931640625,
0.016143798828125,
-0.00484466552734375,
0.0750732421875,
0.01201629638671875,
-0.0180816650390625,
-0.03125,
0.01396942138671875,
0.033843994140625,
-0.006122589111328125,
0.032470703125,
-0.030029296875,
0.016845703125,
-0.02447509765625,
0.0100555419921875,
0.00043892860412597656,
-0.03424072265625,
0.00385284423828125,
0.04559326171875,
-0.06402587890625,
0.0330810546875,
0.02630615234375,
0.005222320556640625,
-0.032470703125,
0.0093994140625,
0.041748046875,
0.041168212890625,
-0.0322265625,
-0.043121337890625,
0.006622314453125,
0.01442718505859375,
0.0297088623046875,
0.0082244873046875,
0.044647216796875,
-0.03387451171875,
0.0022735595703125,
-0.01776123046875,
0.025390625,
0.00959014892578125,
0.00870513916015625,
-0.0049896240234375,
-0.000048160552978515625,
-0.033111572265625,
0.021240234375,
-0.0063018798828125,
0.00775146484375,
0.005359649658203125,
0.0249786376953125,
-0.0033016204833984375,
0.02801513671875,
-0.0369873046875,
-0.00905609130859375,
-0.026397705078125,
0.06439208984375,
-0.019775390625,
0.03570556640625,
-0.0465087890625,
-0.07257080078125,
-0.02313232421875,
0.046173095703125,
0.0273590087890625,
-0.0246734619140625,
0.01468658447265625,
0.041656494140625,
-0.00296783447265625,
-0.01274871826171875,
0.04339599609375,
-0.002178192138671875,
0.006160736083984375,
-0.042449951171875,
0.04736328125,
0.010040283203125,
-0.0006070137023925781,
-0.00478363037109375,
0.01459503173828125,
0.041748046875,
-0.006450653076171875,
0.050994873046875,
-0.006565093994140625,
-0.031219482421875,
-0.0038909912109375,
-0.02935791015625,
0.07952880859375,
0.00457000732421875,
-0.054229736328125,
-0.03692626953125,
0.028594970703125,
0.0382080078125,
-0.022705078125,
0.013214111328125,
-0.0192413330078125,
0.060699462890625,
0.02557373046875,
-0.0243682861328125,
-0.0160980224609375,
0.039276123046875,
-0.01157379150390625,
-0.021575927734375,
0.0276336669921875,
-0.0205535888671875,
-0.06988525390625,
-0.0582275390625,
-0.046478271484375,
0.06878662109375,
-0.00481414794921875,
0.03955078125,
-0.0093994140625,
0.032928466796875,
-0.00809478759765625,
-0.02398681640625,
0.013580322265625,
-0.005889892578125,
0.048980712890625,
0.017303466796875,
-0.01389312744140625,
-0.0283660888671875,
-0.035736083984375,
-0.02203369140625,
0.03363037109375,
-0.07415771484375,
-0.004863739013671875,
-0.00824737548828125,
0.0111083984375,
-0.0292205810546875,
-0.0155181884765625,
-0.0124664306640625,
-0.026123046875,
-0.0029048919677734375,
0.020751953125,
0.0087432861328125,
0.02850341796875,
-0.0287628173828125,
0.005542755126953125,
0.0196685791015625,
-0.00750732421875,
-0.0010776519775390625,
0.01401519775390625,
0.00707244873046875,
0.038848876953125,
0.00724029541015625,
-0.044586181640625,
-0.01161956787109375,
-0.004627227783203125,
-0.0291595458984375,
0.034515380859375,
0.0121917724609375,
0.0162811279296875,
-0.01319122314453125,
0.006908416748046875,
0.005626678466796875,
0.0223236083984375,
-0.03118896484375,
-0.003910064697265625,
0.0311279296875,
0.006591796875,
-0.02545166015625,
-0.040985107421875,
-0.006320953369140625,
-0.057098388671875,
-0.01161956787109375,
0.0197601318359375,
-0.025909423828125,
0.00970458984375,
-0.0078887939453125,
0.0161895751953125,
0.03582763671875,
0.01245880126953125,
-0.049896240234375,
0.01251983642578125,
-0.018585205078125,
0.0280609130859375,
0.0267486572265625,
0.0031585693359375,
0.006618499755859375,
-0.0024852752685546875,
-0.035797119140625,
-0.00725555419921875,
-0.002285003662109375,
0.021514892578125,
0.029449462890625,
0.03472900390625,
0.029876708984375,
-0.035369873046875,
-0.004077911376953125,
0.0304412841796875,
0.028472900390625,
0.070556640625,
0.01519775390625,
-0.0273284912109375,
0.0128021240234375,
-0.01058197021484375,
0.0126190185546875,
-0.056732177734375,
-0.0158233642578125,
-0.04925537109375,
-0.0029087066650390625,
0.006366729736328125,
0.0011243820190429688,
0.01052093505859375,
-0.0285797119140625,
-0.059814453125,
0.058258056640625,
-0.014862060546875,
-0.026336669921875,
0.00032329559326171875,
-0.0345458984375,
-0.020599365234375,
0.0286865234375,
0.003391265869140625,
-0.021270751953125,
-0.047088623046875,
0.029937744140625,
0.006954193115234375,
0.00626373291015625,
0.0032825469970703125,
0.0174560546875,
0.0106353759765625,
0.05450439453125,
0.061187744140625,
-0.01367950439453125,
0.00005263090133666992,
-0.0087127685546875,
0.048858642578125,
0.041717529296875,
-0.01044464111328125,
0.013336181640625,
0.005939483642578125,
-0.0157318115234375,
0.005092620849609375,
-0.04644775390625,
-0.0203857421875,
-0.038116455078125,
0.0256500244140625,
-0.0152587890625,
-0.005649566650390625,
0.0114288330078125,
-0.022125244140625,
-0.0819091796875,
-0.032501220703125,
-0.0143890380859375,
0.023590087890625,
-0.07415771484375,
0.016815185546875,
0.047760009765625,
-0.0108795166015625,
0.00787353515625,
0.002666473388671875,
-0.0281829833984375,
-0.022003173828125,
-0.02655029296875,
-0.0257568359375,
-0.0191192626953125,
-0.0421142578125,
0.0880126953125,
-0.0303802490234375,
0.06402587890625,
-0.00650787353515625,
0.030731201171875,
0.08587646484375,
0.0231170654296875,
0.0008249282836914062,
-0.0173187255859375,
-0.04559326171875,
0.042266845703125,
-0.027618408203125,
0.040557861328125,
-0.044219970703125,
-0.03106689453125,
-0.0263824462890625,
0.0443115234375,
0.032135009765625,
0.043487548828125,
-0.0977783203125,
0.0640869140625,
0.0194091796875,
0.06683349609375,
0.0114593505859375,
-0.0025806427001953125,
0.01617431640625,
0.0328369140625,
-0.03546142578125,
-0.0309600830078125,
-0.0187225341796875,
-0.08148193359375,
0.00492095947265625,
0.022247314453125,
0.02386474609375,
-0.0302581787109375,
0.0352783203125,
-0.0124359130859375,
-0.001873016357421875,
0.01293182373046875
] |
250fc8ab7b23ae0acdac18c43267bd10cb22669b
|
Wordpress Stackexchange
Q: Allow user to create instances of custom field I have a custom field for a links page which takes a name and an URL and saves it in the post meta. However, I want the user to be able to click "Add new link" and a new custom box appears so they can essentially have unlimited links. Ideally a plugin would be perfect, or any tips into which techniques I should look at.
Thanks so much
A: you can make repeating fields with the WP alchemy class
http://www.farinspace.com/wpalchemy-metabox/#have_fields_and_multi
|
Q: Allow user to create instances of custom field I have a custom field for a links page which takes a name and an URL and saves it in the post meta. However, I want the user to be able to click "Add new link" and a new custom box appears so they can essentially have unlimited links. Ideally a plugin would be perfect, or any tips into which techniques I should look at.
Thanks so much
A: you can make repeating fields with the WP alchemy class
http://www.farinspace.com/wpalchemy-metabox/#have_fields_and_multi
|
wordpress
|
{
"language": "en",
"length": 89,
"provenance": "stackexchange_00019.jsonl.gz:411220",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22718"
}
|
[
0.07733154296875,
-0.004535675048828125,
0.0243377685546875,
-0.038787841796875,
0.006542205810546875,
-0.016021728515625,
0.0243682861328125,
-0.04132080078125,
-0.0283203125,
0.00540924072265625,
0.001354217529296875,
-0.0031490325927734375,
-0.03631591796875,
-0.049652099609375,
0.01016998291015625,
-0.05218505859375,
0.02423095703125,
-0.01287841796875,
0.0120697021484375,
-0.0225830078125,
0.0148468017578125,
-0.00878143310546875,
0.012115478515625,
0.01702880859375,
0.035980224609375,
-0.011077880859375,
0.00225067138671875,
-0.006320953369140625,
0.0193634033203125,
-0.00273895263671875,
0.0291748046875,
-0.01558685302734375,
0.041046142578125,
-0.01702880859375,
-0.02117919921875,
-0.028472900390625,
0.01215362548828125,
-0.0238800048828125,
-0.0308074951171875,
0.029937744140625,
0.04034423828125,
-0.0176239013671875,
-0.0253143310546875,
0.04156494140625,
-0.0230255126953125,
-0.044952392578125,
0.04150390625,
-0.0291595458984375,
0.020263671875,
0.023712158203125,
0.003505706787109375,
-0.01438140869140625,
0.004100799560546875,
-0.01526641845703125,
-0.006633758544921875,
-0.0203399658203125,
-0.0149383544921875,
-0.02557373046875,
0.05242919921875,
-0.021270751953125,
-0.0230255126953125,
-0.06695556640625,
0.039031982421875,
-0.00970458984375,
0.00804901123046875,
-0.01513671875,
-0.06622314453125,
0.037139892578125,
0.003551483154296875,
-0.002086639404296875,
0.004299163818359375,
-0.030120849609375,
0.00394439697265625,
-0.0254974365234375,
0.008880615234375,
0.002231597900390625,
-0.0126953125,
-0.0284576416015625,
0.01390838623046875,
0.026611328125,
-0.00902557373046875,
0.017120361328125,
-0.0083465576171875,
-0.00659942626953125,
-0.018524169921875,
-0.004123687744140625,
-0.032867431640625,
-0.0013599395751953125,
0.00824737548828125,
-0.044891357421875,
-0.0088043212890625,
-0.07489013671875,
-0.01454925537109375,
0.02618408203125,
0.0097503662109375,
-0.048126220703125,
0.020965576171875,
0.01873779296875,
0.007259368896484375,
0.0059051513671875,
0.036102294921875,
-0.053619384765625,
0.037811279296875,
-0.0157318115234375,
0.0112152099609375,
0.035430908203125,
-0.005512237548828125,
-0.017303466796875,
0.027252197265625,
0.0201873779296875,
-0.00876617431640625,
-0.0009517669677734375,
0.041961669921875,
0.028076171875,
-0.0183563232421875,
-0.034912109375,
0.001445770263671875,
0.01934814453125,
-0.0269317626953125,
0.0009646415710449219,
0.0037250518798828125,
0.0015020370483398438,
0.031402587890625,
-0.0005903244018554688,
0.00994873046875,
-0.0099029541015625,
-0.03961181640625,
-0.0181732177734375,
-0.00891876220703125,
-0.0182952880859375,
-0.0291900634765625,
0.00217437744140625,
0.048065185546875,
0.0745849609375,
0.0325927734375,
-0.005237579345703125,
0.01177978515625,
-0.0244903564453125,
-0.024658203125,
0.01340484619140625,
-0.0101470947265625,
-0.035552978515625,
-0.01043701171875,
-0.0292816162109375,
0.01654052734375,
0.0323486328125,
-0.00667572021484375,
0.007015228271484375,
0.021636962890625,
-0.02923583984375,
-0.00287628173828125,
-0.050750732421875,
0.02239990234375,
0.0149078369140625,
-0.008514404296875,
-0.0135345458984375,
0.033966064453125,
-0.019287109375,
-0.0066375732421875,
-0.0298309326171875,
0.031463623046875,
0.0002944469451904297,
-0.00693511962890625,
-0.046875,
-0.0458984375,
-0.018524169921875,
-0.035675048828125,
-0.0004818439483642578,
0.0281524658203125,
0.01021575927734375,
0.01702880859375,
-0.0125579833984375,
0.010223388671875,
0.0219268798828125,
0.0076904296875,
0.0180206298828125,
0.0286407470703125,
0.036468505859375,
-0.0005064010620117188,
0.03729248046875,
0.005718231201171875,
-0.03607177734375,
0.07183837890625,
-0.0491943359375,
-0.03857421875,
0.033721923828125,
-0.0203094482421875,
0.0255279541015625,
0.0467529296875,
-0.002384185791015625,
0.0063629150390625,
0.0030727386474609375,
-0.01531982421875,
0.00812530517578125,
0.00732421875,
-0.0272674560546875,
0.0010900497436523438,
-0.005695343017578125,
-0.007640838623046875,
0.0102081298828125,
-0.0053863525390625,
-0.01229095458984375,
0.030242919921875,
0.0081787109375,
0.01331329345703125,
0.0173492431640625,
-0.01171112060546875,
0.0219879150390625,
-0.0102996826171875,
0.021514892578125,
-0.005947113037109375,
-0.031524658203125,
0.016021728515625,
-0.025970458984375,
0.007549285888671875,
-0.0007309913635253906,
0.00832366943359375,
0.00888824462890625,
0.004352569580078125,
-0.023406982421875,
0.0178985595703125,
-0.033203125,
-0.00534820556640625,
0.018829345703125,
0.01092529296875,
-0.015716552734375,
-0.0193023681640625,
-0.022674560546875,
-0.0312042236328125,
0.00958251953125,
-0.044830322265625,
0.037811279296875,
0.01007843017578125,
0.010498046875,
-0.026824951171875,
-0.002155303955078125,
-0.0194091796875,
-0.075439453125,
0.01116180419921875,
0.05938720703125,
0.0177459716796875,
-0.009002685546875,
0.0012617111206054688,
0.0192108154296875,
0.02899169921875,
0.0341796875,
0.04339599609375,
-0.01253509521484375,
0.0013093948364257812,
0.0487060546875,
-0.036407470703125,
0.0394287109375,
0.0161285400390625,
0.0173492431640625,
0.00568389892578125,
0.03826904296875,
-0.028411865234375,
0.00286102294921875,
-0.007038116455078125,
0.0079345703125,
-0.00717926025390625,
0.003917694091796875,
0.01953125,
-0.02178955078125,
0.05108642578125,
0.0004029273986816406,
0.06781005859375,
0.04852294921875,
-0.00394439697265625,
-0.01302337646484375,
0.00011843442916870117,
0.003665924072265625,
-0.0012102127075195312,
-0.0150146484375,
0.016632080078125,
0.0178070068359375,
-0.029144287109375,
0.0027008056640625,
0.0185546875,
-0.0033512115478515625,
0.0006175041198730469,
0.00569915771484375,
-0.0175323486328125,
-0.0165557861328125,
0.022216796875,
-0.055419921875,
0.0012121200561523438,
-0.0029087066650390625,
0.046478271484375,
-0.0030040740966796875,
0.0197601318359375,
-0.00930023193359375,
-0.033477783203125,
0.0584716796875,
0.0203857421875,
-0.05670166015625,
-0.05999755859375,
-0.05413818359375,
0.061370849609375,
-0.061981201171875,
-0.0006384849548339844,
0.07489013671875,
-0.025970458984375,
0.044708251953125,
-0.006107330322265625,
0.021484375,
-0.0169830322265625,
0.0197906494140625,
-0.0011510848999023438,
-0.0217437744140625,
-0.045379638671875,
-0.0283203125,
0.0231475830078125,
0.033935546875,
0.016265869140625,
-0.032562255859375,
-0.0005002021789550781,
0.022003173828125,
-0.033721923828125,
-0.049652099609375,
0.034210205078125,
-0.042236328125,
-0.004016876220703125,
-0.007122039794921875,
-0.024810791015625,
-0.0139617919921875,
0.0205230712890625,
-0.004863739013671875,
-0.00534820556640625,
-0.051513671875,
-0.02362060546875,
-0.078125,
-0.050628662109375,
-0.0241546630859375,
0.01078033447265625,
-0.018951416015625,
-0.01091766357421875,
0.0227203369140625,
-0.0102386474609375,
0.0011034011840820312,
-0.005405426025390625,
-0.0006031990051269531,
0.0260162353515625,
-0.02484130859375,
0.0197601318359375,
-0.00868988037109375,
0.014617919921875,
0.004085540771484375,
0.024139404296875,
0.041290283203125,
-0.0325927734375,
-0.0159759521484375,
0.00392913818359375,
0.027130126953125,
0.02349853515625,
0.00020229816436767578,
-0.0117034912109375,
0.05059814453125,
0.029205322265625,
-0.00905609130859375,
0.0186004638671875,
0.02593994140625,
0.0111083984375,
-0.0205078125,
-0.0482177734375,
-0.01367950439453125,
-0.00623321533203125,
0.037811279296875,
0.0207366943359375,
0.02166748046875,
0.035430908203125,
-0.0028629302978515625,
0.00244903564453125,
-0.01403045654296875,
-0.023193359375,
-0.048828125,
0.052886962890625,
-0.00738525390625,
0.0277862548828125,
0.01416778564453125,
0.0033550262451171875,
-0.017730712890625,
0.004550933837890625,
-0.055419921875,
-0.0625,
0.027130126953125,
-0.05841064453125,
0.029937744140625,
-0.04864501953125,
-0.0165863037109375,
-0.0078277587890625,
0.09893798828125,
-0.059814453125,
0.0033321380615234375,
-0.0021991729736328125,
0.016204833984375,
-0.0301971435546875,
-0.0257720947265625,
-0.07489013671875,
-0.005054473876953125,
-0.047210693359375,
0.001613616943359375,
0.0050048828125,
-0.027099609375,
-0.044769287109375,
0.0513916015625,
-0.059478759765625,
-0.00974273681640625,
0.04010009765625,
-0.04620361328125,
0.00238037109375,
0.007541656494140625,
-0.005092620849609375,
-0.0274658203125,
-0.027008056640625,
-0.028411865234375,
-0.10272216796875,
-0.0170135498046875,
0.00640106201171875,
0.05950927734375,
-0.01220703125,
-0.01337432861328125,
-0.00835418701171875,
0.05828857421875,
0.001781463623046875,
0.038299560546875,
-0.0026302337646484375,
-0.0039520263671875,
0.04083251953125,
0.01087188720703125,
0.00902557373046875,
-0.00434112548828125,
0.0178985595703125,
-0.005584716796875,
-0.01250457763671875,
0.061920166015625,
-0.035980224609375,
0.039306640625,
-0.029083251953125,
-0.0220184326171875,
0.0048980712890625,
-0.03607177734375,
-0.060699462890625,
0.012603759765625,
-0.02911376953125,
-0.0016832351684570312,
-0.033843994140625,
-0.023773193359375,
-0.01332855224609375,
-0.052978515625,
-0.0103302001953125,
0.0297088623046875,
0.05645751953125,
0.0202178955078125,
0.0253448486328125,
-0.038482666015625,
0.00760650634765625,
0.0208282470703125,
0.035186767578125,
0.03131103515625,
0.0311279296875,
0.002471923828125,
-0.01386260986328125,
0.006683349609375,
0.0221099853515625,
-0.03253173828125,
0.05059814453125,
-0.01265716552734375,
-0.0037364959716796875,
0.0141143798828125,
-0.01499176025390625,
0.01128387451171875,
0.01433563232421875,
-0.00308990478515625,
-0.01229095458984375,
-0.0034885406494140625,
0.041412353515625,
-0.0223388671875,
-0.0014295578002929688,
-0.036590576171875,
-0.0299224853515625,
0.01123809814453125,
-0.033477783203125,
0.01397705078125,
0.024139404296875,
-0.0097198486328125,
0.0076904296875,
-0.0218658447265625,
-0.0018911361694335938,
0.0117034912109375,
-0.0016536712646484375,
-0.0158233642578125,
0.037078857421875,
-0.007781982421875,
-0.0197296142578125,
0.006862640380859375,
-0.01300811767578125,
0.078125,
0.01959228515625,
-0.0245819091796875,
0.00514984130859375,
-0.01049041748046875,
-0.01427459716796875,
0.00951385498046875,
0.02154541015625,
0.013458251953125,
0.021453857421875,
0.01226043701171875,
0.0132293701171875,
0.030853271484375,
0.01678466796875,
-0.01552581787109375,
0.024627685546875,
0.00966644287109375,
-0.003330230712890625,
0.0015583038330078125,
0.06201171875,
0.00463104248046875,
0.02874755859375,
-0.012542724609375,
0.0810546875,
0.07745361328125,
0.015716552734375,
0.01348876953125,
0.00024187564849853516,
-0.03228759765625,
-0.005767822265625,
-0.0543212890625,
-0.021484375,
0.005733489990234375,
0.030029296875,
0.04718017578125,
0.0278778076171875,
-0.004482269287109375,
-0.0010328292846679688,
-0.046661376953125,
-0.00150299072265625,
-0.003936767578125,
-0.001140594482421875,
-0.00565338134765625,
0.01020050048828125,
0.00981903076171875,
-0.01177978515625,
-0.0016698837280273438,
0.016693115234375,
-0.01525115966796875,
0.0016088485717773438,
0.016693115234375,
-0.058929443359375,
0.0189971923828125,
-0.027496337890625,
-0.0148162841796875,
-0.034912109375,
-0.0146942138671875,
0.0245819091796875,
-0.0244293212890625,
-0.0183868408203125,
-0.0277862548828125,
-0.033416748046875,
0.03326416015625,
-0.01419830322265625,
0.0355224609375,
-0.04095458984375,
0.0072174072265625,
-0.0537109375,
0.02178955078125,
-0.0106353759765625,
-0.01010894775390625,
-0.026214599609375,
-0.0145111083984375,
-0.038360595703125,
-0.00606536865234375,
-0.006649017333984375,
-0.052093505859375,
-0.0035552978515625,
-0.0024814605712890625,
0.0443115234375,
0.02520751953125,
-0.004848480224609375,
-0.05828857421875,
-0.0005087852478027344,
-0.01236724853515625,
0.01568603515625,
-0.01409912109375,
-0.01251983642578125,
-0.003986358642578125,
0.052703857421875,
0.042755126953125,
0.0255584716796875,
-0.00916290283203125,
0.00780487060546875,
-0.0341796875,
-0.014404296875,
-0.047821044921875,
-0.0282745361328125,
-0.007678985595703125,
-0.00827789306640625,
0.0718994140625,
0.0621337890625,
0.004261016845703125,
0.00916290283203125,
-0.0292205810546875,
0.0036029815673828125,
-0.027618408203125,
0.05621337890625,
-0.028106689453125,
0.00018322467803955078,
0.0024394989013671875,
-0.031494140625,
0.035369873046875,
0.020477294921875,
0.00954437255859375,
0.0268402099609375,
-0.03167724609375,
0.044342041015625,
-0.0004334449768066406,
-0.01140594482421875,
0.034027099609375,
-0.001316070556640625,
0.0030975341796875,
0.03668212890625,
-0.001956939697265625,
0.036834716796875,
0.0211181640625,
0.01468658447265625,
-0.0010442733764648438,
-0.01427459716796875,
0.04205322265625,
0.00809478759765625,
-0.0151824951171875,
0.0291748046875,
-0.02386474609375,
0.031280517578125,
0.01708984375,
0.06475830078125,
-0.07147216796875,
0.040008544921875,
0.006256103515625,
0.01329803466796875,
0.0654296875,
0.02008056640625,
0.0494384765625,
0.0655517578125,
-0.0234375,
-0.0012979507446289062,
-0.0146942138671875,
0.0024967193603515625,
-0.0078887939453125,
-0.0074920654296875,
-0.01435089111328125,
0.004364013671875,
0.009674072265625,
0.004791259765625,
-0.01360321044921875,
0.006389617919921875,
-0.010528564453125,
0.01175689697265625,
-0.022796630859375,
-0.001789093017578125,
-0.0189666748046875,
-0.0097503662109375,
0.01451873779296875,
-0.0762939453125,
0.03436279296875,
0.032501220703125,
0.025146484375,
0.0760498046875,
0.053955078125,
0.018096923828125,
-0.0015802383422851562,
0.01244354248046875,
0.05096435546875,
-0.005779266357421875,
-0.054168701171875,
-0.039306640625,
0.033416748046875,
-0.006999969482421875,
0.00952911376953125,
0.03521728515625,
-0.03033447265625,
-0.01141357421875,
0.046295166015625,
0.07403564453125,
0.005016326904296875,
-0.052154541015625,
0.047698974609375,
-0.0049591064453125,
-0.031463623046875,
0.005680084228515625,
-0.01413726806640625,
-0.032196044921875,
-0.014007568359375,
-0.01629638671875,
-0.0611572265625,
0.044647216796875,
-0.005062103271484375,
-0.0849609375,
0.1170654296875,
0.026397705078125,
0.030029296875,
-0.031280517578125,
0.04345703125,
-0.0060577392578125,
0.025634765625,
-0.040771484375,
0.052764892578125,
0.038726806640625,
0.01538848876953125,
-0.06878662109375,
-0.038909912109375,
-0.01898193359375,
0.06646728515625,
0.054595947265625,
0.017486572265625,
0.0185394287109375,
-0.025421142578125,
-0.0222320556640625,
-0.0095977783203125,
-0.07257080078125,
0.0258331298828125,
0.0186920166015625,
0.040679931640625,
0.06866455078125,
-0.0162506103515625,
0.034027099609375,
0.034759521484375,
-0.0116729736328125,
0.033416748046875,
-0.0010728836059570312,
-0.01357269287109375,
-0.0087432861328125,
0.046051025390625,
-0.041259765625,
-0.0037097930908203125,
0.0214080810546875,
0.014190673828125,
-0.0061798095703125,
0.0297393798828125,
0.0224609375,
0.042724609375,
0.0081634521484375,
-0.01129150390625,
0.0408935546875,
0.02410888671875,
0.033203125,
0.0177459716796875,
0.00640869140625,
0.042236328125,
-0.0181427001953125,
0.005573272705078125,
0.003093719482421875,
-0.00799560546875,
0.029632568359375,
-0.0182342529296875,
-0.0015115737915039062,
-0.0732421875,
-0.01270294189453125,
0.037139892578125,
0.057769775390625,
-0.052459716796875,
-0.07861328125,
-0.00939178466796875,
0.0291900634765625,
0.0555419921875,
0.043792724609375,
0.061187744140625,
0.00815582275390625,
0.077392578125,
-0.061859130859375,
0.037841796875,
0.04681396484375,
0.01419830322265625,
-0.002681732177734375,
0.00899505615234375,
-0.089599609375,
0.0274200439453125,
-0.015838623046875,
-0.041015625,
-0.00498199462890625,
0.03192138671875,
0.0533447265625,
-0.005596160888671875,
0.0232696533203125,
-0.0225067138671875,
0.0022945404052734375,
0.0309295654296875,
0.027191162109375,
-0.0191192626953125,
0.01419830322265625,
-0.01178741455078125,
-0.00222015380859375,
0.01203155517578125,
0.00942230224609375,
0.04083251953125,
0.03387451171875,
0.0239715576171875,
0.0288238525390625,
0.00473785400390625,
0.0260009765625,
-0.0156707763671875,
0.02618408203125,
-0.048309326171875,
-0.0084228515625,
-0.007801055908203125,
-0.028778076171875,
-0.0010051727294921875,
-0.06646728515625,
0.060791015625,
0.0239715576171875,
0.004787445068359375,
0.00955963134765625,
-0.0278778076171875,
0.058380126953125,
-0.012420654296875,
0.07489013671875,
0.0390625,
-0.09515380859375,
-0.0148162841796875,
-0.0230712890625,
-0.05621337890625,
0.0240478515625,
0.03948974609375,
-0.046905517578125,
0.03656005859375,
-0.021636962890625,
0.006011962890625,
0.015869140625,
-0.02825927734375,
-0.0034008026123046875,
0.01337432861328125,
0.008819580078125,
0.005519866943359375,
-0.06787109375,
-0.0284881591796875,
0.008209228515625,
0.003925323486328125,
-0.0285186767578125,
0.028045654296875,
0.01386260986328125,
-0.007534027099609375,
-0.0025310516357421875,
-0.01146697998046875,
0.0199127197265625,
-0.0161590576171875,
0.05059814453125,
0.03765869140625,
0.004970550537109375,
-0.03216552734375,
-0.019195556640625,
0.030548095703125,
0.03363037109375,
-0.017486572265625,
0.01305389404296875,
0.012298583984375,
0.0174560546875,
-0.01031494140625,
0.024200439453125,
-0.046142578125,
-0.0191192626953125,
-0.04095458984375,
-0.036865234375,
0.01351165771484375,
-0.011627197265625,
0.037811279296875,
0.0293426513671875,
0.036346435546875,
-0.0035533905029296875,
-0.00946807861328125,
-0.0150299072265625,
0.005413055419921875,
0.036651611328125,
0.0338134765625,
-0.04302978515625,
-0.007114410400390625,
-0.0235443115234375,
0.01247406005859375,
-0.0136871337890625,
0.039093017578125,
0.0234527587890625,
-0.060028076171875,
0.02288818359375,
0.01406097412109375,
0.0244598388671875,
-0.036712646484375,
-0.0136566162109375,
0.046112060546875,
-0.00977325439453125,
-0.01299285888671875,
-0.037841796875,
-0.022705078125,
-0.044097900390625,
0.002685546875,
0.01122283935546875,
-0.014678955078125,
-0.038421630859375,
-0.0257415771484375,
0.0135498046875,
0.03448486328125,
0.016082763671875,
-0.08331298828125,
0.058013916015625,
-0.016448974609375,
0.027069091796875,
-0.006992340087890625,
-0.0229034423828125,
0.02618408203125,
0.054473876953125,
-0.00856781005859375,
0.0065460205078125,
-0.0033111572265625,
0.003017425537109375,
0.004405975341796875,
0.0193328857421875,
0.01000213623046875,
-0.0228729248046875,
-0.016998291015625,
0.0178985595703125,
0.024932861328125,
0.05303955078125,
0.05487060546875,
-0.0268402099609375,
0.019073486328125,
-0.008697509765625,
-0.00408935546875,
-0.0523681640625,
0.0087432861328125,
-0.065185546875,
0.0012454986572265625,
0.001201629638671875,
-0.0022487640380859375,
0.0006723403930664062,
-0.0292205810546875,
-0.08660888671875,
0.053558349609375,
-0.0118408203125,
-0.0382080078125,
-0.054412841796875,
-0.005741119384765625,
-0.003192901611328125,
0.06494140625,
-0.0022258758544921875,
-0.0202789306640625,
-0.0426025390625,
0.018402099609375,
-0.003124237060546875,
-0.005527496337890625,
0.02459716796875,
0.00948333740234375,
-0.07794189453125,
-0.00621795654296875,
-0.0108642578125,
-0.01641845703125,
0.03314208984375,
-0.01312255859375,
0.00989532470703125,
0.04400634765625,
-0.05072021484375,
-0.0552978515625,
-0.03607177734375,
0.013946533203125,
-0.01406097412109375,
-0.050262451171875,
-0.0328369140625,
-0.0308990478515625,
0.04632568359375,
0.047271728515625,
0.01416778564453125,
-0.0272674560546875,
-0.005237579345703125,
-0.049072265625,
-0.0008649826049804688,
-0.0214385986328125,
-0.0047607421875,
-0.0560302734375,
-0.00481414794921875,
0.01361846923828125,
-0.01103973388671875,
-0.010894775390625,
0.03515625,
-0.0266876220703125,
0.0020465850830078125,
0.08331298828125,
0.0170135498046875,
-0.06439208984375,
0.068115234375,
0.07293701171875,
-0.06488037109375,
0.004817962646484375,
0.00505828857421875,
-0.033966064453125,
0.04241943359375,
-0.01959228515625,
-0.0192718505859375,
-0.0299835205078125,
-0.04962158203125,
0.048858642578125,
-0.05029296875,
0.07208251953125,
-0.08843994140625,
-0.011383056640625,
-0.00023746490478515625,
0.048675537109375,
-0.006221771240234375,
0.05804443359375,
-0.031768798828125,
0.078369140625,
0.0112457275390625,
0.052490234375,
-0.022186279296875,
-0.05426025390625,
-0.025909423828125,
0.007076263427734375,
-0.026275634765625,
0.0163116455078125,
0.0109710693359375,
-0.01055908203125,
0.006256103515625,
0.01316070556640625,
-0.029266357421875,
-0.006984710693359375,
0.0028095245361328125,
0.048187255859375,
-0.0220794677734375,
0.00992584228515625
] |
55e4f6c25d0ea1a403121db467e5fd865596a1d3
|
Wordpress Stackexchange
Q: Why permalinks work with /index.php/%postname% but not with just %postname%? I'm having a problem with Wordpress permalinks. I change the permalinks to pretty permalinks but I am just getting 404s for the pages now. The strange thing is when I use /index.php/%postname% the page links work fine, but I need to get rid of the index.php part.
I read about making changes to httpd.conf file but can't find the file anywhere. The htaccess file is correct as far as I can find out, it's below
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any other ideas?
Thanks
Emma
A: My guess is that mod_rewrite is not enabled. Depending on what server you are using, enable mod_rewrite.
Then, if you are on Linux, manually edit /etc/apache2/sites-enabled/000-default and change AllowOverride for from None to All (or where your site's directory is).
Here, at points 3 & 4 should be solutions for Windows.
|
Q: Why permalinks work with /index.php/%postname% but not with just %postname%? I'm having a problem with Wordpress permalinks. I change the permalinks to pretty permalinks but I am just getting 404s for the pages now. The strange thing is when I use /index.php/%postname% the page links work fine, but I need to get rid of the index.php part.
I read about making changes to httpd.conf file but can't find the file anywhere. The htaccess file is correct as far as I can find out, it's below
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any other ideas?
Thanks
Emma
A: My guess is that mod_rewrite is not enabled. Depending on what server you are using, enable mod_rewrite.
Then, if you are on Linux, manually edit /etc/apache2/sites-enabled/000-default and change AllowOverride for from None to All (or where your site's directory is).
Here, at points 3 & 4 should be solutions for Windows.
A: I've been working on similar problem since yesterday and finally found my solution.
1) Ensure your .htaccess has permission of 666
2) Enable the mod_rewrite:
sudo a2enmod rewrite
3) restart apache:
sudo systemctl restart apache2
4) AllowOverride All for the public directory on /etc/apache2/apache2.conf
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
5) Restart apache:
sudo systemctl restart apache2
6) Go to Wordpress dashboard and change the permalink settings (if you are on postname, change to plain, or vice versa). View the site to check.
7) Go to dashboard again and change permalink settings to your desired settings.
8) Revert .htaccess settings to 644
This worked for me.
A: I had all the correct code in the .htaccess file, but it ended up being completely overridden in the Ubuntu default /etc/apache2/apache2.conf file as well. Changed the entry for / and /var/www from AllowOverride None to AllowOverride All, restarted Apache and now everything works just fine.
A: Are you by any chance using Names.co.uk as your host?
I just had the same problem as you, and after a couple of hours of Googling I found out that they use a Zeus server - not Apache - and it does not support the Mod_ReWrite function. This seems to account for the confusing symptoms. (I had no .htaccess file - but no errors reported from Wordpress whenever I made a change to my permalink preferences.)
They have a workaround for Zeus, detailed here:
http://www.names.co.uk/support/hosting/linux_hosting/1119-wordpress_rewrite_script.html
I realise this is a couple of months after your original post and you've probably solved it by now - but for anyone who finds this in the future it would be a good idea to check if your host uses Zeus or some other non-Apache server.
Update: Please see the code I posted here on a similar question
A: I have been battling this issue for a while, and today I resolved this problem. I found out that my mod_rewrite wasn't enabled all this while. I found the information on this link very useful.
It explains everything from how to check if the mod_rewrite is enabled, and if not - how to enable it. I hope this information is useful for anybody who is new to WP and struggling with setting pretty permalinks.
A: Try setting the htaccess to 777 then go in and update the permalink settings to what you want, then if it works go back and change it back to 644
A: After adding my content I found an article that suggested deleting the .htaccess file, then go to Settings/permalinks and remove the index.php. The article said WorPress would give an error suggesting you create the .htaccess file. I decided to try it but it did nothing. What I did find out is my permalinks were still working with the deleted .htaccess file. This puzzled me at first. I opened my FTP client and navigated to my files. I noticed that there was a .htaccess file there after I had deleted it. I don't know if it is WordPress, my Hosting Account or what exactly created it but I know this is new. This didn't happen before. You might try this method if all else fails.
I wasn't able to re-create the problem in your question so I'm not 100% sure if it works for you. It's worth a shot though.
regards,
Jeremy Jared
A: Try replacing the .htaccess code with this:
# -------------------------------------------------------------------------
# Rewrite Engine options
# -------------------------------------------------------------------------
RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 200
RewriteBase
RewriteRule ^/index.php$ / [NC,P,R=301]
RewriteCond %{REQUEST_URI} !/wp-admin
RewriteRule ^/(.*)/$ /index.php/$1 [NC]
# Redirect 'www.yourblogsite.com/anything/anything/index.php'
# to 'www.yourblogsite.com/anything/anything/'
RewriteRule ^/(.*)/index.php$ /$1/ [NC,P,R=301]
# -------------------------------------------------------------------------
# END REWRITES
# -------------------------------------------------------------------------
I still had the log-in credentials to a client I had to fix this for. This is what I used for him. It is an IIS Server, I'm not sure if that matters but you can try it.
Good Luck,
JJ
A: I think your host uses IIS (Internet Information Services). IIS uses "URL Rewrite" not "mod_rewrite", so take a look at the Codex.
"Pretty" permalinks usually require mod_rewrite, and IIS (common on Windows servers) does not support mod_rewrite. (If you are using Apache 2.0.54, on Windows, mod_rewrite may work, provided it is enabled in apache\conf\httpd.conf.)
A: I know its too late to reply now but if you are still looking for this; here is a quick way to that:
Solved- How To Remove Index.php From WordPress URL On IIS7?
A: I was having this issue on Mac OSX and the following was very much useful. It seems that by default Mac's are not .htaccess ready by default and Apache will ignore the file until certain files (specified on the links below) are modified:
http://wordpress.org/support/topic/getting-pretty-permalinks-working-on-a-mac-105-server
http://clagnut.com/blog/350/
Hope that helps!
A: This is for apache server :
Hi First Check your vitual host
if you are using default, check wordpress root directory has this
<Directory ROOT_DIR_FOR_WORDPRESS>
php_admin_flag engine on
AllowOverride All
Order allow,deny
allow from all
RewriteEngine On
RewriteOptions Inherit
Require all granted
</Directory>
check your .htaccess file in wordpress root has permission to read,write (666)
and contains
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Enable mod rewrite (sudo a2enmod rewrite - for linux users)
Now update the permalink
custom structure : /%postname%/
save and check for any errors
Now it should be working
Most of the time issue is , your .htaccess is overridden by your virtual host rules
A: You need to do sudo a2enmod rewrite to enable module rewrite
|
wordpress
|
{
"language": "en",
"length": 1105,
"provenance": "stackexchange_00019.jsonl.gz:411221",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22724"
}
|
[
0.0789794921875,
-0.01806640625,
0.031951904296875,
0.0015468597412109375,
-0.00814056396484375,
-0.029296875,
0.07073974609375,
-0.039398193359375,
-0.00646209716796875,
0.004306793212890625,
-0.0250396728515625,
0.0096588134765625,
0.00118255615234375,
-0.0322265625,
0.0269317626953125,
-0.0148468017578125,
0.009613037109375,
-0.006008148193359375,
0.017608642578125,
-0.01326751708984375,
0.0144195556640625,
0.0005617141723632812,
0.048675537109375,
0.005157470703125,
0.02447509765625,
-0.01285552978515625,
0.0628662109375,
-0.058319091796875,
0.01666259765625,
-0.041229248046875,
0.0135345458984375,
0.0135498046875,
-0.00019466876983642578,
0.0291748046875,
0.004863739013671875,
-0.0212249755859375,
-0.0027866363525390625,
0.0155181884765625,
0.027008056640625,
0.0043487548828125,
0.0169830322265625,
-0.00926971435546875,
0.0667724609375,
0.032928466796875,
0.031768798828125,
-0.04022216796875,
0.0201568603515625,
-0.088623046875,
-0.009979248046875,
-0.039276123046875,
-0.00039958953857421875,
0.06494140625,
0.01276397705078125,
-0.0226287841796875,
0.0019178390502929688,
0.01168060302734375,
0.03826904296875,
-0.029388427734375,
0.01155853271484375,
-0.039764404296875,
-0.033905029296875,
0.0252685546875,
0.0162200927734375,
0.023040771484375,
-0.02783203125,
-0.035980224609375,
-0.0234375,
0.024169921875,
-0.03729248046875,
-0.01102447509765625,
0.049835205078125,
-0.0184478759765625,
-0.00820159912109375,
-0.028045654296875,
0.0023822784423828125,
-0.0150909423828125,
-0.007659912109375,
-0.019256591796875,
0.005626678466796875,
0.01175689697265625,
0.0172576904296875,
-0.0267333984375,
-0.0310821533203125,
-0.005687713623046875,
0.023162841796875,
0.0248260498046875,
0.001125335693359375,
-0.021484375,
-0.032806396484375,
-0.0175933837890625,
-0.028533935546875,
-0.0281982421875,
-0.0207366943359375,
-0.0133056640625,
-0.0181732177734375,
-0.0153045654296875,
0.045623779296875,
0.044769287109375,
0.031402587890625,
0.000881195068359375,
0.0293426513671875,
-0.058624267578125,
0.037109375,
-0.0287322998046875,
-0.00925445556640625,
0.016998291015625,
0.0411376953125,
0.0654296875,
0.027099609375,
0.00881195068359375,
-0.01953125,
0.0416259765625,
-0.01236724853515625,
-0.036468505859375,
-0.01328277587890625,
0.00986480712890625,
-0.06182861328125,
0.0157928466796875,
0.007801055908203125,
0.0093231201171875,
0.0028057098388671875,
0.03314208984375,
-0.03253173828125,
-0.0040283203125,
-0.00388336181640625,
-0.006687164306640625,
-0.004344940185546875,
-0.02850341796875,
0.02862548828125,
0.033233642578125,
-0.031829833984375,
-0.01123809814453125,
-0.01113128662109375,
-0.001979827880859375,
-0.004547119140625,
-0.0253143310546875,
0.0262451171875,
-0.032623291015625,
-0.00928497314453125,
0.024871826171875,
-0.01337432861328125,
-0.02459716796875,
0.0030975341796875,
-0.0158233642578125,
0.0181732177734375,
0.03460693359375,
0.0248870849609375,
0.016754150390625,
-0.01052093505859375,
-0.022430419921875,
-0.0098876953125,
-0.004077911376953125,
0.037994384765625,
-0.006023406982421875,
-0.000316619873046875,
-0.0418701171875,
0.039306640625,
-0.039398193359375,
-0.0229949951171875,
-0.040252685546875,
0.02978515625,
0.003849029541015625,
0.0223388671875,
-0.0100555419921875,
-0.0257568359375,
-0.01194000244140625,
-0.060516357421875,
-0.01526641845703125,
0.0102081298828125,
-0.021759033203125,
0.0240020751953125,
-0.00971221923828125,
-0.013031005859375,
-0.00885009765625,
0.012664794921875,
-0.007251739501953125,
0.01216888427734375,
0.0133514404296875,
-0.0107879638671875,
0.06689453125,
0.036712646484375,
-0.017181396484375,
0.0016727447509765625,
0.01480865478515625,
-0.06298828125,
0.0271453857421875,
0.045501708984375,
0.070068359375,
-0.02618408203125,
0.0249786376953125,
0.0921630859375,
0.037933349609375,
-0.0450439453125,
0.029022216796875,
0.0134124755859375,
-0.0287017822265625,
0.00220489501953125,
-0.0087738037109375,
-0.0005249977111816406,
-0.01678466796875,
-0.01317596435546875,
0.0121307373046875,
0.0186309814453125,
0.0235748291015625,
-0.0168304443359375,
0.03558349609375,
-0.0225830078125,
0.040130615234375,
0.021087646484375,
0.04241943359375,
0.0160064697265625,
0.0196380615234375,
-0.040618896484375,
-0.032989501953125,
-0.03143310546875,
0.03497314453125,
-0.0191802978515625,
0.02618408203125,
-0.0221099853515625,
0.02130126953125,
0.004680633544921875,
-0.058197021484375,
0.0156097412109375,
0.032562255859375,
0.01355743408203125,
-0.0145416259765625,
-0.0265960693359375,
-0.025634765625,
-0.0294189453125,
0.00746917724609375,
-0.0726318359375,
0.0400390625,
-0.0245361328125,
0.0184326171875,
-0.0208740234375,
0.0147857666015625,
-0.034423828125,
-0.018157958984375,
0.009765625,
0.0294189453125,
0.01451873779296875,
0.017059326171875,
-0.0238800048828125,
0.004314422607421875,
0.013519287109375,
-0.031707763671875,
0.006633758544921875,
-0.002849578857421875,
-0.0005354881286621094,
-0.0074005126953125,
0.019866943359375,
-0.011871337890625,
0.042083740234375,
-0.0372314453125,
-0.00856781005859375,
0.03594970703125,
-0.0100555419921875,
0.0006570816040039062,
-0.03802490234375,
0.0330810546875,
0.00597381591796875,
-0.018463134765625,
-0.01467132568359375,
-0.0216064453125,
-0.0234832763671875,
0.0255279541015625,
0.01617431640625,
0.032012939453125,
0.01102447509765625,
0.005786895751953125,
-0.0162200927734375,
-0.04425048828125,
-0.0199432373046875,
0.03131103515625,
0.06549072265625,
-0.00978851318359375,
-0.054046630859375,
-0.0048065185546875,
0.025299072265625,
0.02740478515625,
-0.00759124755859375,
-0.0017824172973632812,
0.017608642578125,
-0.0080108642578125,
0.00554656982421875,
-0.058074951171875,
0.0217132568359375,
0.0190887451171875,
-0.00008165836334228516,
-0.0033416748046875,
0.027008056640625,
0.0036716461181640625,
-0.018402099609375,
0.0026988983154296875,
0.025543212890625,
-0.029449462890625,
0.0214996337890625,
-0.049957275390625,
0.044769287109375,
-0.07122802734375,
0.0122222900390625,
0.05389404296875,
-0.007415771484375,
-0.0071868896484375,
0.007556915283203125,
-0.0182342529296875,
0.0164642333984375,
-0.016754150390625,
-0.0184173583984375,
0.0002856254577636719,
-0.0687255859375,
-0.0224456787109375,
0.0291900634765625,
0.033477783203125,
0.0008883476257324219,
-0.0426025390625,
-0.01027679443359375,
0.032318115234375,
-0.10382080078125,
-0.10601806640625,
-0.0256195068359375,
-0.035430908203125,
0.0237884521484375,
0.0013904571533203125,
-0.007106781005859375,
-0.0249176025390625,
0.005924224853515625,
0.00615692138671875,
0.0219879150390625,
-0.044403076171875,
-0.0771484375,
-0.0660400390625,
-0.0946044921875,
-0.0272064208984375,
0.003559112548828125,
0.0206451416015625,
0.0035610198974609375,
-0.0179290771484375,
-0.01220703125,
-0.018035888671875,
0.004230499267578125,
0.0085296630859375,
0.005359649658203125,
-0.04327392578125,
0.0124359130859375,
-0.0112457275390625,
0.006740570068359375,
0.00356292724609375,
0.05694580078125,
0.043792724609375,
-0.040679931640625,
-0.0046234130859375,
-0.005645751953125,
-0.036407470703125,
-0.013214111328125,
0.0274200439453125,
0.01678466796875,
-0.062347412109375,
0.0021610260009765625,
-0.08831787109375,
-0.035247802734375,
-0.04119873046875,
-0.07464599609375,
0.002742767333984375,
0.055877685546875,
0.00310516357421875,
-0.029388427734375,
-0.01343536376953125,
0.0189208984375,
0.019256591796875,
0.02191162109375,
-0.03131103515625,
0.015716552734375,
0.005126953125,
0.01922607421875,
-0.0304718017578125,
0.0186309814453125,
-0.024017333984375,
0.02764892578125,
0.00283050537109375,
-0.0031070709228515625,
-0.031646728515625,
0.0265655517578125,
-0.068115234375,
-0.03436279296875,
0.040771484375,
-0.06787109375,
-0.0262451171875,
-0.036773681640625,
-0.012420654296875,
-0.00882720947265625,
0.06292724609375,
0.01270294189453125,
-0.0285491943359375,
-0.0197906494140625,
0.01148223876953125,
-0.02545166015625,
-0.03863525390625,
0.008331298828125,
-0.0013275146484375,
-0.05828857421875,
0.0025119781494140625,
-0.0143280029296875,
-0.02740478515625,
0.00745391845703125,
-0.051116943359375,
-0.011016845703125,
-0.0394287109375,
0.0246429443359375,
0.002349853515625,
-0.0020904541015625,
0.00934600830078125,
-0.01538848876953125,
0.005367279052734375,
-0.02825927734375,
0.0007410049438476562,
-0.08953857421875,
-0.0235748291015625,
0.000873565673828125,
0.0623779296875,
-0.0003368854522705078,
-0.0138092041015625,
-0.0226287841796875,
0.044830322265625,
0.00234222412109375,
0.015167236328125,
0.01122283935546875,
-0.004791259765625,
0.006866455078125,
-0.0011157989501953125,
0.00849151611328125,
-0.017333984375,
0.03326416015625,
0.018218994140625,
-0.041595458984375,
0.0026454925537109375,
-0.040802001953125,
-0.00348663330078125,
0.0190582275390625,
-0.051666259765625,
-0.049591064453125,
-0.01267242431640625,
-0.038116455078125,
0.0195465087890625,
-0.00830078125,
-0.01305389404296875,
-0.0260467529296875,
-0.0655517578125,
0.055023193359375,
-0.042877197265625,
0.02130126953125,
-0.00321197509765625,
0.052886962890625,
0.0014371871948242188,
-0.0240936279296875,
0.03369140625,
0.017913818359375,
0.0204925537109375,
0.02459716796875,
0.040557861328125,
0.001129150390625,
-0.0003159046173095703,
0.0218658447265625,
-0.00232696533203125,
-0.0131378173828125,
-0.029693603515625,
0.01126861572265625,
-0.0164947509765625,
-0.01953125,
0.01556396484375,
-0.0271759033203125,
0.0623779296875,
0.0246429443359375,
-0.008331298828125,
-0.00004792213439941406,
-0.0111846923828125,
0.032806396484375,
-0.00742340087890625,
0.0030498504638671875,
-0.04150390625,
-0.030792236328125,
0.0124664306640625,
-0.01094818115234375,
0.057769775390625,
0.00312042236328125,
0.0031909942626953125,
0.041748046875,
0.031768798828125,
-0.002086639404296875,
0.0177764892578125,
0.03564453125,
0.004848480224609375,
0.02105712890625,
0.03643798828125,
-0.011444091796875,
-0.00592803955078125,
-0.01267242431640625,
0.0809326171875,
0.017730712890625,
-0.01995849609375,
-0.0098419189453125,
-0.031005859375,
-0.004779815673828125,
0.0022068023681640625,
-0.005046844482421875,
0.01169586181640625,
0.00901031494140625,
-0.00504302978515625,
-0.0027866363525390625,
-0.003734588623046875,
0.01446533203125,
-0.030853271484375,
0.032745361328125,
0.0022602081298828125,
-0.0006384849548339844,
-0.0026531219482421875,
0.06805419921875,
0.032440185546875,
0.0214691162109375,
-0.0162811279296875,
-0.0253448486328125,
-0.02337646484375,
0.064453125,
0.012786865234375,
-0.044952392578125,
0.01360321044921875,
0.03924560546875,
0.032684326171875,
-0.05096435546875,
-0.023345947265625,
0.03179931640625,
0.0799560546875,
-0.019012451171875,
-0.0283355712890625,
0.00771331787109375,
-0.024627685546875,
-0.01331329345703125,
-0.005794525146484375,
-0.04815673828125,
-0.0307159423828125,
-0.0173492431640625,
-0.006866455078125,
0.00970458984375,
-0.025665283203125,
-0.021728515625,
0.027801513671875,
-0.0204620361328125,
0.0013532638549804688,
0.031280517578125,
-0.0235595703125,
-0.009674072265625,
-0.005970001220703125,
0.057403564453125,
-0.012176513671875,
-0.03399658203125,
-0.032745361328125,
0.01299285888671875,
-0.035888671875,
0.01261138916015625,
0.05157470703125,
0.016845703125,
0.057891845703125,
-0.0178680419921875,
-0.03857421875,
0.039215087890625,
0.0002913475036621094,
0.005756378173828125,
-0.0162506103515625,
-0.0706787109375,
0.0146026611328125,
-0.026275634765625,
0.004131317138671875,
0.01560211181640625,
-0.01258087158203125,
-0.0516357421875,
-0.04150390625,
0.0192108154296875,
-0.00528717041015625,
0.01239013671875,
0.000804901123046875,
-0.039794921875,
0.03216552734375,
0.0256805419921875,
0.01522064208984375,
-0.046905517578125,
0.07958984375,
0.00681304931640625,
0.023345947265625,
-0.007602691650390625,
0.029876708984375,
0.0170135498046875,
-0.020355224609375,
0.039947509765625,
-0.038848876953125,
-0.05633544921875,
-0.0345458984375,
-0.029449462890625,
0.021453857421875,
0.057342529296875,
-0.0200653076171875,
-0.00865936279296875,
-0.02081298828125,
-0.0008196830749511719,
-0.0400390625,
0.032958984375,
-0.055938720703125,
-0.0195159912109375,
-0.042694091796875,
0.01227569580078125,
0.05657958984375,
-0.0259552001953125,
-0.01322174072265625,
-0.0192108154296875,
-0.001369476318359375,
-0.004520416259765625,
0.02996826171875,
-0.024200439453125,
0.0214080810546875,
0.07745361328125,
0.0223236083984375,
0.0628662109375,
0.0101318359375,
0.023468017578125,
0.0243682861328125,
0.00197601318359375,
-0.0022716522216796875,
0.01016998291015625,
0.04193115234375,
0.0042266845703125,
0.00408935546875,
0.033782958984375,
-0.0174560546875,
0.0110626220703125,
0.0784912109375,
0.05853271484375,
-0.1043701171875,
0.0005040168762207031,
-0.0177764892578125,
-0.021331787109375,
0.032073974609375,
-0.018463134765625,
0.0012035369873046875,
-0.023345947265625,
0.022796630859375,
0.00423431396484375,
-0.0185699462890625,
-0.0003685951232910156,
0.0088348388671875,
0.020538330078125,
-0.005115509033203125,
0.060699462890625,
0.006977081298828125,
-0.0167083740234375,
-0.0323486328125,
0.0223846435546875,
0.005390167236328125,
0.020294189453125,
-0.0259552001953125,
-0.0019216537475585938,
-0.047027587890625,
-0.02386474609375,
-0.0125732421875,
-0.047393798828125,
0.0009369850158691406,
0.0234832763671875,
-0.01332855224609375,
0.0087432861328125,
0.030181884765625,
-0.0229034423828125,
0.01393890380859375,
-0.00415802001953125,
-0.00798797607421875,
0.01531219482421875,
-0.0206451416015625,
-0.0112457275390625,
-0.030029296875,
-0.011138916015625,
0.0003399848937988281,
-0.03411865234375,
-0.0228729248046875,
-0.005306243896484375,
-0.03082275390625,
0.0618896484375,
-0.06536865234375,
0.0027027130126953125,
0.0186920166015625,
0.010009765625,
0.003932952880859375,
-0.009490966796875,
-0.0258941650390625,
-0.0282440185546875,
0.0191802978515625,
-0.0226593017578125,
0.00832366943359375,
0.038726806640625,
-0.00910186767578125,
-0.0645751953125,
0.104736328125,
-0.0287933349609375,
0.038238525390625,
0.03277587890625,
0.028839111328125,
-0.0220184326171875,
0.007061004638671875,
-0.030303955078125,
0.06622314453125,
0.0287933349609375,
0.0657958984375,
-0.034942626953125,
-0.01512908935546875,
0.04180908203125,
0.0499267578125,
0.086669921875,
0.0218353271484375,
-0.0498046875,
-0.019073486328125,
0.052093505859375,
0.0806884765625,
0.01485443115234375,
0.01467132568359375,
-0.0020198822021484375,
0.0418701171875,
0.00783538818359375,
-0.02520751953125,
0.01398468017578125,
-0.00872039794921875,
-0.05364990234375,
0.0128631591796875,
0.006374359130859375,
-0.0003490447998046875,
0.0022430419921875,
-0.0279541015625,
-0.057342529296875,
0.0132293701171875,
0.036163330078125,
0.0030574798583984375,
0.020294189453125,
0.0185394287109375,
0.060028076171875,
-0.06591796875,
-0.037139892578125,
-0.0224609375,
0.06024169921875,
0.0270233154296875,
-0.004558563232421875,
0.006999969482421875,
0.0084381103515625,
0.0080108642578125,
-0.020782470703125,
-0.0149688720703125,
0.030517578125,
-0.0252685546875,
0.04278564453125,
0.0372314453125,
0.007022857666015625,
-0.0199432373046875,
0.0026035308837890625,
0.05572509765625,
0.062744140625,
-0.045196533203125,
-0.040802001953125,
0.0024967193603515625,
0.00458526611328125,
0.01058197021484375,
-0.019805908203125,
0.006855010986328125,
0.0008301734924316406,
0.0156707763671875,
0.01025390625,
0.005931854248046875,
-0.003543853759765625,
0.0215606689453125,
-0.00614166259765625,
-0.0218353271484375,
-0.007579803466796875,
0.033599853515625,
-0.039825439453125,
0.03564453125,
0.003997802734375,
0.044097900390625,
-0.0034809112548828125,
0.06488037109375,
-0.032470703125,
-0.0241851806640625,
0.0181121826171875,
0.0264892578125,
-0.029754638671875,
-0.0045623779296875,
-0.050750732421875,
-0.08209228515625,
0.0286865234375,
0.05023193359375,
0.022308349609375,
0.04656982421875,
0.0264129638671875,
-0.017181396484375,
0.002384185791015625,
0.011810302734375,
0.00887298583984375,
-0.0428466796875,
0.014801025390625,
-0.022216796875,
0.0089569091796875,
-0.005947113037109375,
-0.004467010498046875,
-0.02325439453125,
0.02484130859375,
0.009765625,
-0.00402069091796875,
0.01160430908203125,
0.005260467529296875,
-0.019439697265625,
0.020050048828125,
0.0016078948974609375,
0.038726806640625,
0.018218994140625,
-0.00022232532501220703,
-0.016510009765625,
0.0064239501953125,
-0.023834228515625,
0.0169219970703125,
0.034912109375,
0.0229949951171875,
-0.0174102783203125,
0.0029468536376953125,
-0.001644134521484375,
0.00881195068359375,
-0.0189666748046875,
0.0223541259765625,
-0.001682281494140625,
0.00844573974609375,
0.016632080078125,
-0.04840087890625,
-0.040924072265625,
-0.030792236328125,
0.0372314453125,
-0.01073455810546875,
0.153076171875,
-0.07208251953125,
0.002429962158203125,
-0.030975341796875,
0.0008397102355957031,
-0.0162506103515625,
-0.01474761962890625,
-0.00589752197265625,
-0.003475189208984375,
-0.0096893310546875,
0.0005369186401367188,
-0.0731201171875,
0.029266357421875,
0.01262664794921875,
-0.01364898681640625,
0.04840087890625,
-0.03131103515625,
0.00476837158203125,
-0.0186920166015625,
0.005573272705078125,
-0.033447265625,
-0.0933837890625,
-0.049346923828125,
0.045928955078125,
-0.0197296142578125,
0.014190673828125,
-0.0246734619140625,
0.02606201171875,
0.009918212890625,
-0.01464080810546875,
0.004364013671875,
-0.0219268798828125,
0.02227783203125,
0.03179931640625,
0.005405426025390625,
-0.018646240234375,
-0.0281829833984375,
-0.0235595703125,
-0.00931549072265625,
-0.0044708251953125,
-0.01036834716796875,
-0.006977081298828125,
-0.038787841796875,
-0.02655029296875,
-0.015869140625,
0.0113677978515625,
0.0098114013671875,
-0.002773284912109375,
-0.0238189697265625,
-0.01593017578125,
0.0103912353515625,
-0.0169219970703125,
-0.0033702850341796875,
0.0027065277099609375,
-0.0186614990234375,
0.019805908203125,
-0.0184173583984375,
-0.031982421875,
-0.0283660888671875,
0.0021572113037109375,
0.018798828125,
0.004566192626953125,
-0.05072021484375,
0.0253448486328125,
-0.021759033203125,
0.036834716796875,
-0.034271240234375,
-0.022705078125,
0.01116943359375,
0.0494384765625,
-0.01508331298828125,
0.005523681640625,
-0.03704833984375,
-0.0289306640625,
-0.045013427734375,
0.0301055908203125,
0.03912353515625,
-0.02386474609375,
0.004215240478515625,
0.007656097412109375,
0.0181732177734375,
0.059600830078125,
-0.006359100341796875,
-0.0013065338134765625,
0.0013980865478515625,
0.0256195068359375,
-0.0305328369140625,
-0.062347412109375,
0.006786346435546875,
-0.028594970703125,
-0.011627197265625,
-0.018280029296875,
-0.0078277587890625,
0.0007758140563964844,
-0.045745849609375,
-0.0670166015625,
0.0027008056640625,
-0.003528594970703125,
-0.033111572265625,
-0.0345458984375,
-0.03704833984375,
-0.016082763671875,
0.037933349609375,
-0.01297760009765625,
-0.01451873779296875,
-0.043426513671875,
0.044158935546875,
0.0254058837890625,
0.03802490234375,
-0.0152587890625,
0.052520751953125,
0.0261993408203125,
0.080078125,
0.05474853515625,
0.0195159912109375,
0.031524658203125,
-0.011871337890625,
0.04876708984375,
0.06756591796875,
-0.00687408447265625,
0.054443359375,
-0.0164031982421875,
-0.07452392578125,
0.013916015625,
-0.05877685546875,
-0.03564453125,
-0.037445068359375,
0.07275390625,
-0.02264404296875,
0.0213775634765625,
0.00470733642578125,
-0.0282135009765625,
-0.050628662109375,
-0.0133056640625,
-0.012115478515625,
0.0216064453125,
-0.06341552734375,
0.0089263916015625,
0.01558685302734375,
-0.0011186599731445312,
0.0029544830322265625,
-0.02825927734375,
-0.035247802734375,
0.003734588623046875,
-0.01538848876953125,
-0.01149749755859375,
-0.0028133392333984375,
-0.0092926025390625,
0.0653076171875,
-0.047943115234375,
0.00525665283203125,
-0.01273345947265625,
0.03753662109375,
0.030059814453125,
-0.040496826171875,
-0.004894256591796875,
0.005847930908203125,
0.0223846435546875,
-0.003448486328125,
0.04620361328125,
0.040374755859375,
0.023651123046875,
-0.0246124267578125,
0.00748443603515625,
0.020782470703125,
-0.0118408203125,
0.00785064697265625,
-0.002796173095703125,
0.04241943359375,
-0.01520538330078125,
0.092529296875,
0.007282257080078125,
0.01406097412109375,
0.010986328125,
0.03607177734375,
-0.042449951171875,
-0.0018243789672851562,
-0.0129547119140625,
-0.05096435546875,
-0.0039043426513671875,
0.033294677734375,
-0.0145721435546875,
-0.0208587646484375,
0.0157623291015625,
-0.0308074951171875,
-0.0000737905502319336,
0.0020599365234375
] |
a936d15ad64eee29415e4ef3713123a0d515866b
|
Wordpress Stackexchange
Q: External page integrated into WordPress returns a 404 error I have a script that I'd like to call via AJAX from my WordPress theme, it relies upon some core WordPress functions so I am including WordPress blog header like so:
define( 'WP_USE_THEMES', false );
require( '../../../../wp-blog-header.php' );
Somewhere during the processing of wp-blog-header.php WordPress sets a 404 header which causes my AJAX request to fail, even though the script I am calling exists and is returning content.
I have since added status_header( 200 ); after that snippet which changes the status header back to 200 and solves the problem, however it feels very much like a hack, so I was just wondering if there is a recommended solution to this problem?
A: You should be including wp-load.php, not wp-blog-header.php (which is reserved for use by WordPress only). This is most likely the cause of your problem.
|
Q: External page integrated into WordPress returns a 404 error I have a script that I'd like to call via AJAX from my WordPress theme, it relies upon some core WordPress functions so I am including WordPress blog header like so:
define( 'WP_USE_THEMES', false );
require( '../../../../wp-blog-header.php' );
Somewhere during the processing of wp-blog-header.php WordPress sets a 404 header which causes my AJAX request to fail, even though the script I am calling exists and is returning content.
I have since added status_header( 200 ); after that snippet which changes the status header back to 200 and solves the problem, however it feels very much like a hack, so I was just wondering if there is a recommended solution to this problem?
A: You should be including wp-load.php, not wp-blog-header.php (which is reserved for use by WordPress only). This is most likely the cause of your problem.
A: Yes there is a recommend solution for using WordPress Function via AJAX and that is using the wp_ajax hooks. you can see a very detailed example in my answer to "What's the preferred method of writing AJAX-enabled plugins?"
A: Instead of including WordPress inside of 'Solution A', have you considered doing it the other way around, using the vastly superior/easier WP AJAX API and then including 'Solution A' inside WordPress?
Calling in wp-blog-header.php for AJAX is a massive mistake, I can't stress how big a headache you're introducing, security and maintenance wise ( e.g. this question demonstrates some of that )
What's the preferred method of writing AJAX-enabled plugins?
Also include wp-load.php not wp-blog-header.php
|
wordpress
|
{
"language": "en",
"length": 262,
"provenance": "stackexchange_00019.jsonl.gz:411229",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22739"
}
|
[
0.0789794921875,
0.0033931732177734375,
-0.00641632080078125,
-0.03778076171875,
0.043914794921875,
-0.031585693359375,
0.040283203125,
-0.0124664306640625,
0.005466461181640625,
0.0014142990112304688,
-0.0762939453125,
0.0251617431640625,
-0.045867919921875,
0.01015472412109375,
-0.005794525146484375,
-0.065673828125,
0.0330810546875,
-0.006099700927734375,
0.0498046875,
0.01104736328125,
0.004352569580078125,
0.03033447265625,
0.0247344970703125,
-0.02630615234375,
-0.007099151611328125,
0.007625579833984375,
0.04107666015625,
-0.017669677734375,
-0.0038166046142578125,
-0.012603759765625,
0.010467529296875,
-0.01427459716796875,
0.01194000244140625,
0.0489501953125,
-0.055572509765625,
-0.006450653076171875,
-0.008880615234375,
0.0308685302734375,
-0.0033473968505859375,
0.042327880859375,
0.007747650146484375,
0.009124755859375,
0.0645751953125,
0.03216552734375,
0.0166015625,
-0.05291748046875,
0.01837158203125,
-0.0765380859375,
-0.0092010498046875,
0.0338134765625,
0.024444580078125,
0.01462554931640625,
0.035888671875,
0.003559112548828125,
-0.01351165771484375,
-0.0163116455078125,
0.0202484130859375,
0.00695037841796875,
0.027740478515625,
-0.011566162109375,
-0.039886474609375,
0.0013628005981445312,
0.01496124267578125,
-0.0338134765625,
0.01465606689453125,
-0.003963470458984375,
-0.015838623046875,
0.036865234375,
-0.048004150390625,
0.0054779052734375,
0.0191497802734375,
-0.041229248046875,
-0.0154266357421875,
0.0255889892578125,
-0.04888916015625,
-0.05474853515625,
0.03314208984375,
-0.04644775390625,
-0.00757598876953125,
0.0260467529296875,
0.0155029296875,
0.0355224609375,
-0.055450439453125,
-0.033905029296875,
0.0286865234375,
0.0067138671875,
-0.012481689453125,
-0.0300750732421875,
-0.04705810546875,
-0.018951416015625,
-0.0374755859375,
-0.05303955078125,
-0.041412353515625,
0.015655517578125,
-0.0015745162963867188,
0.00421142578125,
0.01004791259765625,
0.040924072265625,
-0.018310546875,
0.0386962890625,
0.00411224365234375,
-0.03369140625,
0.089111328125,
-0.052154541015625,
0.006275177001953125,
0.043975830078125,
0.003566741943359375,
0.01105499267578125,
0.036956787109375,
0.0244293212890625,
-0.0017480850219726562,
0.032440185546875,
0.0171051025390625,
-0.0278167724609375,
-0.01491546630859375,
-0.01053619384765625,
-0.01898193359375,
0.0023746490478515625,
0.01325225830078125,
-0.032196044921875,
0.01108551025390625,
0.0139617919921875,
-0.03765869140625,
0.005504608154296875,
-0.01384735107421875,
-0.019989013671875,
0.000039637088775634766,
-0.0020809173583984375,
0.0269622802734375,
0.008514404296875,
-0.003391265869140625,
0.01155853271484375,
-0.005245208740234375,
-0.007457733154296875,
-0.033172607421875,
-0.014373779296875,
0.07574462890625,
0.02520751953125,
0.007099151611328125,
0.0015201568603515625,
0.0245513916015625,
-0.03900146484375,
-0.05364990234375,
-0.0034332275390625,
0.01319122314453125,
-0.0004303455352783203,
0.014129638671875,
0.01082611083984375,
0.0209808349609375,
-0.0190887451171875,
0.009185791015625,
0.0087127685546875,
0.031585693359375,
0.0159912109375,
0.02490234375,
-0.03118896484375,
0.050018310546875,
-0.061614990234375,
0.005115509033203125,
-0.038909912109375,
-0.007587432861328125,
0.0038013458251953125,
0.016021728515625,
-0.03515625,
-0.03521728515625,
-0.02105712890625,
-0.0213775634765625,
-0.00299072265625,
0.02130126953125,
0.05377197265625,
-0.021087646484375,
-0.0258636474609375,
-0.00855255126953125,
-0.0013217926025390625,
-0.0155487060546875,
0.0109405517578125,
0.0478515625,
0.0428466796875,
-0.0004496574401855469,
0.0258331298828125,
-0.00846099853515625,
-0.048980712890625,
0.0732421875,
-0.05072021484375,
-0.040863037109375,
0.0438232421875,
0.025665283203125,
0.06524658203125,
-0.021392822265625,
0.0146331787109375,
0.0271453857421875,
0.050018310546875,
0.032379150390625,
0.0232391357421875,
-0.01105499267578125,
-0.051300048828125,
-0.020965576171875,
0.01421356201171875,
-0.035614013671875,
-0.0008935928344726562,
0.01526641845703125,
0.02850341796875,
-0.006267547607421875,
-0.01085662841796875,
-0.045196533203125,
0.0080718994140625,
-0.007144927978515625,
0.043914794921875,
0.01959228515625,
0.0168914794921875,
-0.00707244873046875,
0.0146331787109375,
-0.01366424560546875,
-0.028533935546875,
-0.01360321044921875,
0.04815673828125,
-0.0081024169921875,
0.076904296875,
0.00469970703125,
0.039398193359375,
-0.0186920166015625,
-0.032196044921875,
-0.023681640625,
-0.03265380859375,
0.0213470458984375,
-0.04949951171875,
-0.0028133392333984375,
-0.034088134765625,
0.0141448974609375,
-0.0076904296875,
-0.0089569091796875,
0.031494140625,
0.0176239013671875,
0.041168212890625,
-0.022552490234375,
-0.0178985595703125,
-0.0058441162109375,
-0.053802490234375,
0.0179901123046875,
0.0450439453125,
0.0251007080078125,
0.0295257568359375,
-0.0018033981323242188,
0.01165771484375,
0.0125885009765625,
-0.06793212890625,
-0.0008664131164550781,
0.007053375244140625,
0.0265045166015625,
-0.0031490325927734375,
-0.00926971435546875,
-0.06427001953125,
0.04388427734375,
-0.06219482421875,
0.0147247314453125,
0.035552978515625,
0.004451751708984375,
-0.005474090576171875,
-0.0017108917236328125,
0.00655364990234375,
0.0120849609375,
-0.014495849609375,
-0.046173095703125,
0.0007734298706054688,
0.061737060546875,
-0.021759033203125,
0.038055419921875,
0.034393310546875,
-0.0003821849822998047,
-0.021392822265625,
-0.004833221435546875,
-0.0240020751953125,
0.00786590576171875,
0.05279541015625,
0.048828125,
0.0287933349609375,
-0.0274810791015625,
-0.035980224609375,
0.0146026611328125,
0.051971435546875,
-0.021087646484375,
0.01279449462890625,
-0.0142059326171875,
0.0023403167724609375,
-0.027862548828125,
-0.031463623046875,
0.04364013671875,
0.041015625,
0.0390625,
0.0191802978515625,
0.025787353515625,
0.0191497802734375,
-0.01763916015625,
0.045440673828125,
-0.01529693603515625,
-0.0225067138671875,
0.0198822021484375,
-0.05242919921875,
0.044158935546875,
-0.0234375,
0.047943115234375,
0.0570068359375,
0.0171966552734375,
-0.00782012939453125,
0.004589080810546875,
-0.018035888671875,
0.0204315185546875,
0.005023956298828125,
0.0014743804931640625,
-0.02508544921875,
-0.031982421875,
0.006053924560546875,
0.04339599609375,
0.045196533203125,
0.02044677734375,
-0.0262451171875,
0.0086822509765625,
0.046630859375,
-0.0850830078125,
-0.12493896484375,
-0.00878143310546875,
-0.03497314453125,
0.0112457275390625,
-0.0306854248046875,
-0.00441741943359375,
-0.01128387451171875,
-0.01529693603515625,
0.0018863677978515625,
-0.004119873046875,
-0.04522705078125,
-0.07330322265625,
-0.10455322265625,
-0.105224609375,
-0.03961181640625,
-0.003032684326171875,
-0.0011749267578125,
0.0002727508544921875,
0.01251983642578125,
-0.01338958740234375,
-0.034393310546875,
-0.02508544921875,
0.03173828125,
-0.010650634765625,
-0.038177490234375,
0.0302276611328125,
-0.0230865478515625,
-0.06097412109375,
0.00685882568359375,
0.032562255859375,
0.00278472900390625,
-0.03271484375,
-0.01255035400390625,
-0.060882568359375,
-0.03497314453125,
-0.03985595703125,
0.061553955078125,
0.064453125,
-0.069091796875,
-0.00017571449279785156,
-0.0706787109375,
-0.03131103515625,
0.01031494140625,
-0.0450439453125,
-0.01715087890625,
0.03424072265625,
-0.0242462158203125,
0.00226593017578125,
-0.0267333984375,
-0.003971099853515625,
0.0028438568115234375,
-0.01776123046875,
-0.02142333984375,
0.0767822265625,
0.005153656005859375,
0.01239013671875,
-0.006557464599609375,
0.0278167724609375,
-0.0106964111328125,
-0.01013946533203125,
-0.0028553009033203125,
0.01496124267578125,
-0.01995849609375,
0.00713348388671875,
-0.05841064453125,
-0.01178741455078125,
0.039703369140625,
-0.0055694580078125,
-0.0104522705078125,
0.006275177001953125,
-0.01418304443359375,
0.0260467529296875,
0.048248291015625,
0.01363372802734375,
-0.029205322265625,
-0.01229095458984375,
0.01308441162109375,
-0.05963134765625,
-0.041259765625,
-0.005970001220703125,
0.0063934326171875,
-0.00576019287109375,
0.003009796142578125,
-0.0288848876953125,
0.01102447509765625,
0.00026535987854003906,
0.0167236328125,
0.021270751953125,
-0.033447265625,
0.036163330078125,
-0.01497650146484375,
-0.001461029052734375,
0.0098114013671875,
-0.006244659423828125,
-0.02130126953125,
-0.01221466064453125,
-0.0166473388671875,
-0.060821533203125,
-0.0101165771484375,
-0.035797119140625,
0.04644775390625,
0.01432037353515625,
-0.0205230712890625,
0.00617218017578125,
0.023468017578125,
-0.000032007694244384766,
0.01525115966796875,
-0.008544921875,
-0.00603485107421875,
0.0294036865234375,
-0.008026123046875,
-0.01800537109375,
-0.00939178466796875,
-0.0073089599609375,
-0.009796142578125,
-0.061676025390625,
-0.0026397705078125,
0.0026874542236328125,
-0.0188140869140625,
0.044464111328125,
-0.04095458984375,
-0.0287628173828125,
-0.04595947265625,
0.00643157958984375,
0.036346435546875,
0.0018329620361328125,
0.00942230224609375,
-0.033782958984375,
-0.03363037109375,
0.04473876953125,
0.0255126953125,
-0.00768280029296875,
-0.009765625,
0.049774169921875,
0.0161895751953125,
-0.037933349609375,
-0.00366973876953125,
0.018798828125,
0.028594970703125,
-0.0633544921875,
0.0950927734375,
0.0272369384765625,
-0.01021575927734375,
0.10760498046875,
-0.02325439453125,
0.0177459716796875,
-0.0063629150390625,
0.0367431640625,
0.02239990234375,
0.0079193115234375,
0.01474761962890625,
0.038055419921875,
-0.04180908203125,
0.01462554931640625,
-0.000591278076171875,
-0.007511138916015625,
0.0271453857421875,
0.0078887939453125,
-0.061431884765625,
0.0450439453125,
0.0068817138671875,
-0.007556915283203125,
-0.008941650390625,
-0.04241943359375,
0.052703857421875,
0.0404052734375,
0.0097198486328125,
-0.0022182464599609375,
0.027252197265625,
-0.005573272705078125,
0.04266357421875,
0.0303802490234375,
-0.014404296875,
0.02685546875,
0.025909423828125,
-0.0232086181640625,
0.0099334716796875,
-0.004119873046875,
0.030548095703125,
0.014801025390625,
-0.03961181640625,
-0.018768310546875,
0.0209503173828125,
-0.01165771484375,
-0.0102996826171875,
0.005634307861328125,
0.00858306884765625,
-0.003520965576171875,
-0.01174163818359375,
-0.0019817352294921875,
0.00986480712890625,
-0.0181427001953125,
-0.018585205078125,
0.048828125,
0.0144805908203125,
-0.000576019287109375,
-0.021942138671875,
0.053955078125,
0.036590576171875,
0.0032806396484375,
-0.0122222900390625,
0.0186004638671875,
0.003322601318359375,
0.058563232421875,
0.0234222412109375,
-0.056640625,
0.02630615234375,
0.0248565673828125,
-0.007282257080078125,
-0.0538330078125,
-0.0093231201171875,
0.005596160888671875,
0.04534912109375,
-0.00485992431640625,
-0.0278472900390625,
0.038970947265625,
-0.0142974853515625,
-0.0284423828125,
0.03985595703125,
-0.008026123046875,
-0.032257080078125,
-0.045562744140625,
-0.00923919677734375,
0.044219970703125,
0.022125244140625,
0.0002911090850830078,
0.034423828125,
0.0192413330078125,
0.03515625,
0.036773681640625,
-0.005016326904296875,
-0.01461029052734375,
-0.000698089599609375,
0.030548095703125,
-0.01403045654296875,
-0.01532745361328125,
-0.04327392578125,
-0.007137298583984375,
-0.0200347900390625,
0.01209259033203125,
0.045562744140625,
-0.017608642578125,
0.0011186599731445312,
-0.0270233154296875,
0.0222625732421875,
-0.0008726119995117188,
0.005367279052734375,
0.035308837890625,
0.01450347900390625,
-0.049163818359375,
0.0007157325744628906,
-0.0455322265625,
-0.0163116455078125,
0.00569915771484375,
-0.034942626953125,
-0.035003662109375,
-0.0211029052734375,
0.0193939208984375,
0.02703857421875,
0.0094451904296875,
-0.005615234375,
-0.0235595703125,
0.018646240234375,
0.0079803466796875,
0.056365966796875,
-0.029937744140625,
0.0633544921875,
0.0145111083984375,
0.01027679443359375,
0.01233673095703125,
0.0450439453125,
0.00934600830078125,
-0.01442718505859375,
-0.004032135009765625,
-0.06744384765625,
0.00812530517578125,
0.01177978515625,
-0.0196685791015625,
0.01030731201171875,
0.005542755126953125,
0.00926971435546875,
0.01015472412109375,
-0.035308837890625,
-0.01277923583984375,
-0.015899658203125,
0.03521728515625,
0.0008931159973144531,
-0.0029850006103515625,
0.03997802734375,
0.0045928955078125,
0.00827789306640625,
-0.01390838623046875,
-0.01444244384765625,
-0.0050048828125,
0.00141143798828125,
-0.01274871826171875,
-0.0045928955078125,
-0.0858154296875,
0.07562255859375,
0.08837890625,
0.053558349609375,
0.059112548828125,
0.004180908203125,
0.0249176025390625,
0.0008578300476074219,
0.079833984375,
-0.002285003662109375,
-0.060516357421875,
0.01079559326171875,
0.0013895034790039062,
-0.026702880859375,
-0.037567138671875,
-0.028717041015625,
0.0274658203125,
0.05047607421875,
0.06365966796875,
-0.07745361328125,
0.01244354248046875,
0.002437591552734375,
-0.028717041015625,
0.04052734375,
-0.0321044921875,
0.000705718994140625,
-0.0162811279296875,
0.0577392578125,
0.01436614990234375,
-0.022430419921875,
0.0130615234375,
-0.0007486343383789062,
-0.00612640380859375,
-0.0128631591796875,
0.02581787109375,
0.010223388671875,
-0.031951904296875,
0.0227203369140625,
0.021331787109375,
0.0292205810546875,
0.007205963134765625,
0.0233306884765625,
-0.01421356201171875,
-0.0011987686157226562,
0.0036754608154296875,
0.025909423828125,
-0.031707763671875,
-0.0018892288208007812,
0.037078857421875,
0.01019287109375,
0.0213470458984375,
0.03973388671875,
-0.00823211669921875,
0.0277099609375,
-0.00047016143798828125,
0.02252197265625,
0.0474853515625,
-0.0303192138671875,
0.029266357421875,
0.025390625,
-0.06072998046875,
0.0038089752197265625,
-0.0017528533935546875,
-0.022003173828125,
-0.0028972625732421875,
-0.009246826171875,
0.06597900390625,
-0.037689208984375,
-0.0034923553466796875,
0.0445556640625,
0.01258087158203125,
-0.0289306640625,
0.010162353515625,
0.052886962890625,
-0.051727294921875,
-0.0224761962890625,
0.034423828125,
-0.017059326171875,
-0.048248291015625,
-0.00763702392578125,
-0.0292205810546875,
0.1044921875,
-0.0430908203125,
0.0164794921875,
0.0259246826171875,
0.0501708984375,
-0.0104217529296875,
0.030609130859375,
-0.0289306640625,
0.035064697265625,
-0.0009665489196777344,
0.030029296875,
-0.05810546875,
-0.026885986328125,
-0.0087738037109375,
0.06097412109375,
0.0011501312255859375,
-0.0014896392822265625,
0.0225982666015625,
-0.02276611328125,
-0.00745391845703125,
0.03955078125,
-0.004154205322265625,
-0.018798828125,
0.0018033981323242188,
-0.0161895751953125,
-0.02740478515625,
-0.0191497802734375,
0.0203399658203125,
-0.0543212890625,
-0.0168609619140625,
0.0078582763671875,
0.012451171875,
0.0261993408203125,
0.03265380859375,
-0.002414703369140625,
-0.031707763671875,
0.0160980224609375,
0.0233612060546875,
-0.01090240478515625,
-0.00794219970703125,
0.039276123046875,
0.02728271484375,
-0.022003173828125,
0.0002956390380859375,
-0.032928466796875,
0.03985595703125,
0.0028209686279296875,
-0.0163726806640625,
-0.02459716796875,
0.005706787109375,
0.03961181640625,
-0.052001953125,
-0.040679931640625,
0.01369476318359375,
-0.0077972412109375,
0.045501708984375,
0.03240966796875,
0.027984619140625,
-0.03607177734375,
-0.027557373046875,
0.04046630859375,
0.07342529296875,
-0.031890869140625,
-0.020416259765625,
0.0033435821533203125,
0.0218658447265625,
0.0301513671875,
-0.0126495361328125,
0.04608154296875,
-0.00460052490234375,
0.021636962890625,
0.01092529296875,
-0.000030040740966796875,
0.013427734375,
-0.0018434524536132812,
0.003932952880859375,
0.0024929046630859375,
0.002880096435546875,
0.0386962890625,
-0.038787841796875,
0.004634857177734375,
0.00426483154296875,
0.06280517578125,
0.0084228515625,
0.0706787109375,
-0.05621337890625,
-0.027618408203125,
-0.0126800537109375,
0.060699462890625,
0.0118865966796875,
0.0236358642578125,
-0.0638427734375,
-0.059814453125,
0.044281005859375,
0.0494384765625,
-0.0182342529296875,
0.00534820556640625,
0.03277587890625,
0.004795074462890625,
-0.06585693359375,
-0.01262664794921875,
0.0017518997192382812,
-0.037261962890625,
-0.021148681640625,
-0.0294647216796875,
-0.015625,
-0.0004010200500488281,
-0.0090484619140625,
0.02264404296875,
0.0139923095703125,
0.0012836456298828125,
-0.047454833984375,
0.0413818359375,
-0.01419830322265625,
-0.0266265869140625,
0.04119873046875,
-0.0042572021484375,
0.0706787109375,
-0.01375579833984375,
-0.07904052734375,
-0.024261474609375,
-0.0243988037109375,
-0.0166778564453125,
0.034149169921875,
0.044403076171875,
-0.007007598876953125,
0.0022754669189453125,
0.0089111328125,
-0.0011606216430664062,
0.0210113525390625,
-0.037109375,
0.03192138671875,
-0.00606536865234375,
-0.00043272972106933594,
0.005672454833984375,
0.0050048828125,
-0.0094757080078125,
0.0251312255859375,
0.034393310546875,
0.01397705078125,
0.063232421875,
-0.0189056396484375,
-0.001758575439453125,
0.03009033203125,
-0.0226593017578125,
0.024139404296875,
-0.0017108917236328125,
-0.0233612060546875,
-0.0209197998046875,
-0.0013427734375,
-0.00429534912109375,
-0.09228515625,
0.0312347412109375,
0.01311492919921875,
0.0283050537109375,
0.032806396484375,
-0.0220794677734375,
0.03424072265625,
0.00005698204040527344,
-0.005168914794921875,
-0.040069580078125,
-0.0438232421875,
-0.04296875,
0.006099700927734375,
0.0181121826171875,
0.01497650146484375,
-0.01358795166015625,
0.00542449951171875,
-0.00505828857421875,
-0.036041259765625,
0.0248260498046875,
-0.035369873046875,
0.037628173828125,
0.014129638671875,
0.0092010498046875,
-0.032867431640625,
0.0093536376953125,
-0.01038360595703125,
0.009490966796875,
0.0014057159423828125,
0.0307159423828125,
0.0036373138427734375,
-0.05267333984375,
-0.029815673828125,
0.0169219970703125,
0.0322265625,
-0.010345458984375,
0.0194549560546875,
-0.007373809814453125,
-0.0211639404296875,
0.0176849365234375,
-0.027435302734375,
-0.020965576171875,
0.01314544677734375,
-0.011199951171875,
0.013885498046875,
0.01183319091796875,
-0.0235595703125,
-0.04608154296875,
-0.026702880859375,
0.040496826171875,
0.0036716461181640625,
-0.03509521484375,
-0.00518035888671875,
-0.0213775634765625,
0.0253448486328125,
-0.0011281967163085938,
0.01396942138671875,
-0.00888824462890625,
0.0233154296875,
-0.054656982421875,
-0.027587890625,
-0.0187225341796875,
0.0200653076171875,
-0.0355224609375,
0.01097869873046875,
0.06561279296875,
-0.0191650390625,
-0.0258636474609375,
-0.0022754669189453125,
-0.01274871826171875,
0.055206298828125,
-0.058746337890625,
-0.01654052734375,
-0.01025390625,
0.01141357421875,
-0.00801849365234375,
-0.05413818359375,
0.01415252685546875,
-0.06134033203125,
-0.0101470947265625,
-0.0182037353515625,
-0.00234222412109375,
0.005893707275390625,
-0.035919189453125,
-0.0254058837890625,
0.0477294921875,
0.00833892822265625,
-0.01387786865234375,
-0.0888671875,
0.010345458984375,
0.0341796875,
-0.02093505859375,
-0.05108642578125,
-0.019073486328125,
-0.065185546875,
0.02294921875,
0.02996826171875,
-0.031341552734375,
0.02685546875,
0.00768280029296875,
-0.03826904296875,
0.033111572265625,
0.033935546875,
-0.0002491474151611328,
-0.0023193359375,
0.0014085769653320312,
0.017181396484375,
0.0589599609375,
-0.024169921875,
0.01226043701171875,
-0.0021076202392578125,
-0.01538848876953125,
-0.01108551025390625,
-0.045379638671875,
0.01514434814453125,
0.0093231201171875,
0.038299560546875,
-0.0159912109375,
-0.0072479248046875,
-0.032745361328125,
-0.03692626953125,
-0.0226287841796875,
0.006519317626953125,
-0.00235748291015625,
0.01325225830078125,
-0.06573486328125,
0.00955963134765625,
0.006561279296875,
-0.007190704345703125,
0.0283203125,
-0.0240631103515625,
-0.01284027099609375,
0.004337310791015625,
0.01702880859375,
0.0010538101196289062,
0.001438140869140625,
-0.05035400390625,
0.08880615234375,
-0.04168701171875,
-0.00701904296875,
0.03765869140625,
0.0225067138671875,
0.038299560546875,
0.03826904296875,
-0.0037021636962890625,
0.05743408203125,
-0.044403076171875,
-0.0082550048828125,
0.0038967132568359375,
0.04547119140625,
-0.026885986328125,
0.01219940185546875,
-0.0082855224609375,
0.012054443359375,
-0.0191650390625,
0.0131378173828125,
0.0357666015625,
0.0002199411392211914,
-0.0185394287109375,
0.02899169921875,
-0.0257720947265625,
0.01360321044921875,
-0.0126495361328125,
0.02752685546875,
0.01386260986328125,
-0.003570556640625,
0.054046630859375,
-0.032958984375,
-0.01065826416015625,
0.03802490234375,
-0.0391845703125,
-0.0226593017578125,
0.03253173828125,
0.004688262939453125,
0.0117645263671875,
0.01003265380859375
] |
34ca68bbe3c94f086b1ba49c65118289d2dc8ef5
|
Wordpress Stackexchange
Q: Overriding Gallery Margin Continuing the build on a free theme. Working on the gallery CSS. Wordpress automatically adds a left margin to the gallery. Example: http://themeforward.com/demo2/features/gallery-2/ So, how do I get rid of that nasty margin?
/* Gallery */
.gallery {
margin:30px auto auto;
text-align:center
}
.gallery-item {
float:left;
margin-top:10px;
text-align:center;
width:33%
}
.gallery img {
border:1px solid #E6E6E6!important;
margin-bottom:27px;
padding:5px
}
.gallery img:active {
margin:1px 0 0
}
.gallery-caption {
display:none;
font-size:.8em;
margin-left:0
}
.gal_img {
margin:20px auto 0!important;
text-align:center
}
.gal_caption p {
font-size:1.3em!important;
font-weight:700;
text-align:center;
font-family:Arial, Helvetica, sans-serif!important
}
.gal_description p {
font-size:1.1em!important;
text-align:center
}
A: The simplest method is to remove the WordPress-injected inline style definitions, so that you can control style completely via the Theme:
/**
* Remove default gallery shortcode inline styles
*/
add_filter( 'use_default_gallery_style', '__return_false' );
Note that this will remove ALL WordPress-injected gallery CSS definitions, so you may need to port some of the original style definitions into your stylesheet.
|
Q: Overriding Gallery Margin Continuing the build on a free theme. Working on the gallery CSS. Wordpress automatically adds a left margin to the gallery. Example: http://themeforward.com/demo2/features/gallery-2/ So, how do I get rid of that nasty margin?
/* Gallery */
.gallery {
margin:30px auto auto;
text-align:center
}
.gallery-item {
float:left;
margin-top:10px;
text-align:center;
width:33%
}
.gallery img {
border:1px solid #E6E6E6!important;
margin-bottom:27px;
padding:5px
}
.gallery img:active {
margin:1px 0 0
}
.gallery-caption {
display:none;
font-size:.8em;
margin-left:0
}
.gal_img {
margin:20px auto 0!important;
text-align:center
}
.gal_caption p {
font-size:1.3em!important;
font-weight:700;
text-align:center;
font-family:Arial, Helvetica, sans-serif!important
}
.gal_description p {
font-size:1.1em!important;
text-align:center
}
A: The simplest method is to remove the WordPress-injected inline style definitions, so that you can control style completely via the Theme:
/**
* Remove default gallery shortcode inline styles
*/
add_filter( 'use_default_gallery_style', '__return_false' );
Note that this will remove ALL WordPress-injected gallery CSS definitions, so you may need to port some of the original style definitions into your stylesheet.
|
wordpress
|
{
"language": "en",
"length": 159,
"provenance": "stackexchange_00019.jsonl.gz:411232",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22747"
}
|
[
0.041534423828125,
0.01200103759765625,
-0.01038360595703125,
-0.0108642578125,
0.01812744140625,
-0.03692626953125,
0.0628662109375,
-0.023834228515625,
-0.030120849609375,
-0.0181732177734375,
-0.0543212890625,
0.010040283203125,
-0.0751953125,
-0.018096923828125,
0.0288848876953125,
-0.0689697265625,
0.01861572265625,
0.0197601318359375,
0.050537109375,
-0.0013141632080078125,
0.0242767333984375,
0.003452301025390625,
0.00860595703125,
0.03997802734375,
0.001209259033203125,
-0.006656646728515625,
0.1026611328125,
-0.00787353515625,
-0.0006890296936035156,
-0.0229949951171875,
0.0226287841796875,
-0.0209197998046875,
0.007152557373046875,
0.04840087890625,
-0.07684326171875,
0.002208709716796875,
-0.0285797119140625,
0.0303955078125,
-0.0014057159423828125,
0.00859832763671875,
0.01812744140625,
-0.005970001220703125,
-0.03839111328125,
-0.034759521484375,
-0.06683349609375,
-0.0017614364624023438,
-0.00943756103515625,
0.0270538330078125,
0.0122222900390625,
-0.031951904296875,
0.0221099853515625,
0.0277557373046875,
0.035308837890625,
-0.0102081298828125,
-0.0192718505859375,
0.0011615753173828125,
-0.004619598388671875,
-0.041656494140625,
0.03411865234375,
-0.00321197509765625,
-0.002353668212890625,
-0.0277557373046875,
0.03302001953125,
-0.0201873779296875,
0.01001739501953125,
0.0027141571044921875,
0.0023441314697265625,
0.0180511474609375,
-0.0478515625,
0.0196075439453125,
0.040191650390625,
-0.051116943359375,
0.0154571533203125,
-0.050933837890625,
-0.042144775390625,
0.04693603515625,
-0.0306396484375,
-0.004604339599609375,
0.03326416015625,
-0.06085205078125,
0.030975341796875,
0.0010423660278320312,
-0.045196533203125,
0.007083892822265625,
0.01450347900390625,
0.0130615234375,
-0.0018148422241210938,
-0.0198516845703125,
0.0006289482116699219,
-0.04388427734375,
-0.004817962646484375,
-0.0198822021484375,
-0.0316162109375,
-0.00637054443359375,
-0.0183258056640625,
-0.05560302734375,
0.023712158203125,
0.0399169921875,
0.017486572265625,
0.009185791015625,
0.010284423828125,
-0.0484619140625,
0.027191162109375,
-0.03704833984375,
-0.006092071533203125,
-0.01178741455078125,
-0.0201568603515625,
-0.01528167724609375,
0.01459503173828125,
0.05279541015625,
-0.0206146240234375,
-0.0034961700439453125,
-0.0196075439453125,
0.0225830078125,
-0.050994873046875,
0.017974853515625,
-0.029449462890625,
-0.0160064697265625,
-0.028076171875,
0.0291748046875,
-0.004322052001953125,
-0.0178375244140625,
0.008392333984375,
0.0277862548828125,
0.006427764892578125,
0.020721435546875,
-0.0237884521484375,
-0.0107421875,
0.0307769775390625,
0.0110321044921875,
-0.06097412109375,
0.0061187744140625,
0.08770751953125,
0.041168212890625,
0.03753662109375,
-0.0300445556640625,
0.056671142578125,
-0.0085296630859375,
0.00010466575622558594,
0.0027828216552734375,
0.0213165283203125,
-0.005115509033203125,
-0.01371002197265625,
0.007320404052734375,
0.037139892578125,
-0.01389312744140625,
0.0306243896484375,
0.050567626953125,
-0.006938934326171875,
-0.04425048828125,
0.076416015625,
-0.0027408599853515625,
0.0467529296875,
0.031097412109375,
-0.04241943359375,
0.0232391357421875,
0.031494140625,
-0.01276397705078125,
-0.05560302734375,
-0.054840087890625,
-0.044036865234375,
-0.00047898292541503906,
0.036102294921875,
-0.06951904296875,
-0.040252685546875,
0.0041961669921875,
0.0035228729248046875,
-0.0036029815673828125,
0.0233001708984375,
0.0271453857421875,
-0.006267547607421875,
-0.045440673828125,
0.007053375244140625,
0.0123138427734375,
-0.0163726806640625,
0.049163818359375,
0.006305694580078125,
0.0079498291015625,
-0.0016002655029296875,
0.017608642578125,
-0.0166473388671875,
-0.042327880859375,
0.0092926025390625,
-0.004863739013671875,
-0.01776123046875,
-0.003154754638671875,
0.01479339599609375,
0.0289154052734375,
0.00817108154296875,
0.0224609375,
0.0174102783203125,
-0.0092010498046875,
-0.03558349609375,
0.012176513671875,
0.0220184326171875,
-0.01374053955078125,
-0.00583648681640625,
-0.00978851318359375,
0.004482269287109375,
-0.0133514404296875,
0.02850341796875,
0.01461029052734375,
-0.007801055908203125,
-0.00212860107421875,
-0.060760498046875,
0.00797271728515625,
-0.0246124267578125,
0.022247314453125,
-0.040802001953125,
-0.00677490234375,
0.01605224609375,
-0.03350830078125,
-0.00269317626953125,
-0.0058135986328125,
0.0012712478637695312,
-0.008392333984375,
0.01206207275390625,
0.019622802734375,
-0.004055023193359375,
0.027679443359375,
0.004352569580078125,
-0.0277862548828125,
-0.007160186767578125,
0.01280975341796875,
0.006076812744140625,
-0.00716400146484375,
-0.036468505859375,
-0.0252685546875,
-0.04827880859375,
0.004009246826171875,
-0.057342529296875,
0.070556640625,
0.017730712890625,
0.03875732421875,
-0.0167694091796875,
-0.010772705078125,
0.01012420654296875,
-0.0406494140625,
0.00998687744140625,
0.0295257568359375,
0.033294677734375,
0.01113128662109375,
0.0089111328125,
-0.0108184814453125,
0.05419921875,
-0.035888671875,
0.024749755859375,
-0.025909423828125,
-0.0243377685546875,
0.009765625,
-0.004913330078125,
-0.0057525634765625,
0.0264739990234375,
-0.047149658203125,
-0.01163482666015625,
0.046051025390625,
-0.0161895751953125,
-0.0304412841796875,
-0.0001386404037475586,
0.041168212890625,
-0.00400543212890625,
0.01200103759765625,
0.00460052490234375,
0.00768280029296875,
0.0301971435546875,
-0.0013227462768554688,
0.030181884765625,
0.0245513916015625,
-0.029052734375,
0.0009365081787109375,
0.0213623046875,
0.0109100341796875,
0.01105499267578125,
0.024871826171875,
-0.0261688232421875,
-0.00015020370483398438,
-0.0267791748046875,
0.0238800048828125,
-0.0020503997802734375,
-0.016357421875,
-0.00357818603515625,
0.04620361328125,
0.0283203125,
-0.010528564453125,
0.012908935546875,
-0.047882080078125,
0.00983428955078125,
-0.01442718505859375,
-0.00945281982421875,
-0.03515625,
0.01126861572265625,
0.00931549072265625,
-0.028961181640625,
0.0217742919921875,
-0.00440216064453125,
-0.035369873046875,
0.009307861328125,
-0.01084136962890625,
0.034912109375,
-0.0078277587890625,
0.0338134765625,
0.05419921875,
-0.035125732421875,
0.0291900634765625,
0.0009918212890625,
0.0036106109619140625,
-0.0019397735595703125,
-0.00839996337890625,
-0.016387939453125,
-0.0009212493896484375,
-0.017303466796875,
0.053741455078125,
0.00910186767578125,
0.02001953125,
-0.051422119140625,
-0.046356201171875,
-0.058013916015625,
-0.01485443115234375,
-0.03875732421875,
0.01387786865234375,
0.035491943359375,
-0.0859375,
-0.047027587890625,
0.0132293701171875,
-0.068359375,
0.0135650634765625,
0.0545654296875,
-0.004482269287109375,
0.0457763671875,
-0.05670166015625,
-0.023773193359375,
-0.050262451171875,
-0.050628662109375,
-0.00832366943359375,
0.022247314453125,
-0.00010097026824951172,
0.002117156982421875,
0.1187744140625,
0.03240966796875,
-0.03619384765625,
0.01885986328125,
-0.020599365234375,
-0.027862548828125,
0.0292816162109375,
-0.01861572265625,
-0.05059814453125,
-0.0240478515625,
-0.009490966796875,
-0.04449462890625,
-0.03759765625,
0.04559326171875,
0.00156402587890625,
-0.022979736328125,
-0.000021517276763916016,
-0.01139068603515625,
0.03485107421875,
0.026885986328125,
-0.0482177734375,
-0.007205963134765625,
-0.07281494140625,
-0.0286865234375,
0.025543212890625,
-0.03485107421875,
-0.0341796875,
-0.005283355712890625,
-0.002231597900390625,
-0.013885498046875,
0.0164642333984375,
-0.0231781005859375,
-0.01898193359375,
0.03564453125,
-0.0634765625,
0.00939178466796875,
0.006221771240234375,
-0.018890380859375,
-0.01422882080078125,
0.020721435546875,
-0.034912109375,
0.05255126953125,
0.0207061767578125,
-0.0007534027099609375,
0.01666259765625,
0.001476287841796875,
0.01910400390625,
-0.0014352798461914062,
0.01531219482421875,
-0.00896453857421875,
0.03173828125,
-0.0078582763671875,
-0.01425933837890625,
-0.01082611083984375,
0.044342041015625,
-0.0171051025390625,
-0.0165557861328125,
0.057525634765625,
0.017120361328125,
-0.014312744140625,
0.019805908203125,
-0.072265625,
-0.0239105224609375,
-0.07403564453125,
0.0120849609375,
-0.01049041748046875,
-0.03948974609375,
-0.0022182464599609375,
-0.0550537109375,
-0.04058837890625,
-0.053466796875,
0.0208740234375,
0.038421630859375,
0.0021419525146484375,
-0.004070281982421875,
-0.004581451416015625,
-0.007183074951171875,
0.005275726318359375,
-0.0189208984375,
-0.08843994140625,
-0.01465606689453125,
-0.0033740997314453125,
0.06890869140625,
-0.0004322528839111328,
0.00872039794921875,
-0.032806396484375,
0.042388916015625,
-0.04510498046875,
-0.07220458984375,
0.0293121337890625,
0.05499267578125,
-0.05096435546875,
0.023651123046875,
-0.0125274658203125,
-0.0242919921875,
0.0167694091796875,
0.028717041015625,
-0.06317138671875,
0.00983428955078125,
-0.00701904296875,
0.00850677490234375,
0.059295654296875,
-0.063232421875,
-0.0487060546875,
-0.0595703125,
0.034515380859375,
0.0199432373046875,
0.0416259765625,
-0.0148773193359375,
-0.058746337890625,
-0.00980377197265625,
0.0192718505859375,
-0.0037078857421875,
-0.0343017578125,
0.01568603515625,
0.05621337890625,
0.0196380615234375,
-0.01178741455078125,
-0.0096282958984375,
0.06390380859375,
0.04931640625,
0.0121612548828125,
-0.0139617919921875,
-0.01081085205078125,
-0.049896240234375,
0.0272369384765625,
0.023162841796875,
-0.003673553466796875,
-0.04559326171875,
0.09210205078125,
-0.034088134765625,
-0.0223236083984375,
0.0306854248046875,
-0.0599365234375,
0.00913238525390625,
0.0203704833984375,
0.001789093017578125,
0.006801605224609375,
0.0070953369140625,
-0.0181884765625,
0.012542724609375,
-0.0310516357421875,
-0.004791259765625,
0.0297088623046875,
-0.037445068359375,
0.06591796875,
0.03790283203125,
0.0290069580078125,
-0.0030059814453125,
-0.0232391357421875,
0.0227813720703125,
-0.010955810546875,
-0.021240234375,
-0.018646240234375,
-0.042022705078125,
-0.00838470458984375,
0.00969696044921875,
-0.039215087890625,
0.01180267333984375,
0.0098876953125,
-0.01361083984375,
0.019195556640625,
-0.0229949951171875,
-0.034912109375,
0.029937744140625,
-0.038726806640625,
-0.02685546875,
0.025604248046875,
0.043304443359375,
-0.03350830078125,
-0.00457763671875,
-0.01297760009765625,
-0.035858154296875,
-0.037384033203125,
-0.05206298828125,
0.040679931640625,
0.0021152496337890625,
-0.00977325439453125,
0.038787841796875,
-0.03302001953125,
0.0174713134765625,
-0.0215301513671875,
0.01288604736328125,
-0.035064697265625,
-0.030731201171875,
0.046478271484375,
0.01262664794921875,
-0.03509521484375,
0.03204345703125,
0.02508544921875,
0.06640625,
-0.039276123046875,
-0.0242156982421875,
0.0211639404296875,
0.0557861328125,
-0.0033817291259765625,
-0.0155792236328125,
0.00457000732421875,
-0.019989013671875,
0.0113677978515625,
-0.017608642578125,
-0.076416015625,
-0.029266357421875,
-0.0214385986328125,
-0.006908416748046875,
0.0276947021484375,
-0.04010009765625,
-0.0190887451171875,
0.001251220703125,
-0.03436279296875,
0.005279541015625,
0.0626220703125,
-0.045318603515625,
-0.00327301025390625,
-0.006771087646484375,
0.0174560546875,
-0.019622802734375,
-0.035400390625,
-0.03564453125,
0.0026397705078125,
-0.0031147003173828125,
0.004863739013671875,
0.0162811279296875,
-0.052398681640625,
0.031280517578125,
-0.055389404296875,
0.040985107421875,
-0.0863037109375,
0.02105712890625,
0.005893707275390625,
0.01239013671875,
0.025848388671875,
-0.0233917236328125,
-0.039398193359375,
-0.03533935546875,
-0.00014889240264892578,
-0.0262603759765625,
-0.017852783203125,
-0.0103302001953125,
0.0183868408203125,
0.0281219482421875,
-0.0213775634765625,
-0.045989990234375,
-0.03033447265625,
-0.010833740234375,
0.044189453125,
0.03515625,
-0.01165008544921875,
0.0069732666015625,
0.0289154052734375,
-0.0024471282958984375,
0.0195465087890625,
-0.0029754638671875,
-0.016937255859375,
-0.005779266357421875,
0.0121002197265625,
-0.0009312629699707031,
-0.035736083984375,
-0.007366180419921875,
-0.046630859375,
0.005523681640625,
0.06585693359375,
-0.01433563232421875,
0.0203094482421875,
0.0032367706298828125,
-0.0097198486328125,
-0.01038360595703125,
0.024261474609375,
-0.013763427734375,
0.0306243896484375,
-0.00045561790466308594,
0.0361328125,
0.07666015625,
-0.019561767578125,
-0.048431396484375,
0.0141143798828125,
0.01128387451171875,
0.0421142578125,
-0.0036830902099609375,
-0.0007882118225097656,
0.0111083984375,
0.006381988525390625,
-0.0269012451171875,
0.0179595947265625,
0.0177001953125,
0.0007662773132324219,
-0.007068634033203125,
0.0013494491577148438,
0.0265350341796875,
0.007450103759765625,
0.07086181640625,
0.0041046142578125,
-0.01227569580078125,
0.053619384765625,
-0.040740966796875,
0.0123443603515625,
0.0679931640625,
0.06341552734375,
-0.05413818359375,
-0.028411865234375,
-0.0139617919921875,
-0.0394287109375,
0.041046142578125,
-0.01338958740234375,
-0.01242828369140625,
-0.0211181640625,
0.05120849609375,
0.000743865966796875,
-0.01500701904296875,
0.0110931396484375,
0.0023250579833984375,
-0.01837158203125,
-0.0030612945556640625,
0.01873779296875,
0.0222625732421875,
-0.01175689697265625,
-0.0071563720703125,
-0.00589752197265625,
-0.0019140243530273438,
-0.0037860870361328125,
0.0037746429443359375,
-0.0225372314453125,
-0.028076171875,
-0.039764404296875,
-0.022247314453125,
-0.0164947509765625,
-0.01678466796875,
0.0299530029296875,
-0.007843017578125,
0.00513458251953125,
0.0184326171875,
-0.0290374755859375,
0.039398193359375,
-0.03143310546875,
0.02349853515625,
-0.038177490234375,
-0.00970458984375,
-0.01029205322265625,
-0.002979278564453125,
-0.02252197265625,
0.0155181884765625,
-0.0609130859375,
0.009765625,
-0.0101318359375,
-0.036285400390625,
0.0845947265625,
-0.0806884765625,
0.011260986328125,
0.0186004638671875,
0.029510498046875,
-0.0014257431030273438,
-0.034698486328125,
0.03790283203125,
-0.05517578125,
-0.029449462890625,
-0.002262115478515625,
-0.03924560546875,
-0.0242919921875,
-0.04388427734375,
-0.06829833984375,
0.06182861328125,
-0.01546478271484375,
0.032501220703125,
0.037322998046875,
0.01026153564453125,
-0.06683349609375,
-0.04302978515625,
0.016326904296875,
0.002429962158203125,
0.01318359375,
-0.057220458984375,
0.03314208984375,
0.00662994384765625,
-0.03009033203125,
0.022705078125,
0.01357269287109375,
0.0009918212890625,
-0.00778961181640625,
-0.0122222900390625,
0.06817626953125,
0.047454833984375,
0.019805908203125,
-0.003093719482421875,
-0.03302001953125,
-0.00743865966796875,
-0.023590087890625,
-0.0188140869140625,
0.0253143310546875,
-0.04083251953125,
-0.06048583984375,
-0.0244598388671875,
0.0001456737518310547,
0.00131988525390625,
0.005847930908203125,
0.028594970703125,
-0.00714874267578125,
-0.00798797607421875,
0.006618499755859375,
0.004680633544921875,
0.0345458984375,
0.0301513671875,
0.035430908203125,
-0.0091552734375,
-0.0166778564453125,
-0.0139312744140625,
0.054656982421875,
-0.003753662109375,
0.00604248046875,
0.0177764892578125,
0.0011882781982421875,
0.048004150390625,
-0.01262664794921875,
-0.004665374755859375,
0.005031585693359375,
0.0124053955078125,
-0.008819580078125,
0.014373779296875,
0.024383544921875,
-0.013427734375,
-0.005229949951171875,
0.016510009765625,
0.0008044242858886719,
-0.0058441162109375,
0.001415252685546875,
0.0187835693359375,
-0.00832366943359375,
-0.01314544677734375,
-0.049468994140625,
-0.035430908203125,
-0.06903076171875,
-0.055511474609375,
-0.03131103515625,
-0.024810791015625,
0.01009368896484375,
0.0175018310546875,
-0.00574493408203125,
-0.02142333984375,
0.0198211669921875,
-0.01045989990234375,
-0.0120391845703125,
-0.021697998046875,
0.01123046875,
0.020477294921875,
0.007305145263671875,
0.03399658203125,
0.0090484619140625,
-0.0020122528076171875,
-0.07061767578125,
0.0160980224609375,
0.007061004638671875,
0.070068359375,
-0.0777587890625,
0.01038360595703125,
0.0283966064453125,
0.0469970703125,
-0.004421234130859375,
-0.0120849609375,
0.0256805419921875,
-0.005123138427734375,
-0.05584716796875,
-0.019378662109375,
-0.00594329833984375,
-0.032318115234375,
-0.0117034912109375,
-0.0545654296875,
0.0015993118286132812,
0.0391845703125,
-0.00234222412109375,
0.03839111328125,
-0.034454345703125,
0.057586669921875,
-0.0081634521484375,
-0.0301666259765625,
0.00516510009765625,
-0.027984619140625,
-0.020965576171875,
-0.0188140869140625,
-0.0328369140625,
0.00989532470703125,
-0.05242919921875,
-0.0229339599609375,
-0.0222625732421875,
-0.0202484130859375,
0.0289459228515625,
0.040130615234375,
0.0031566619873046875,
0.005123138427734375,
0.0218048095703125,
-0.0288543701171875,
-0.01187896728515625,
0.014678955078125,
0.03363037109375,
-0.0006122589111328125,
0.0029659271240234375,
-0.0077972412109375,
-0.038604736328125,
-0.0369873046875,
-0.052459716796875,
0.0638427734375,
0.036224365234375,
0.055084228515625,
-0.0207672119140625,
0.05413818359375,
0.01181793212890625,
-0.038665771484375,
0.028594970703125,
0.0081024169921875,
-0.0170745849609375,
-0.01543426513671875,
-0.00981903076171875,
-0.0187835693359375,
-0.01232147216796875,
0.00978851318359375,
0.052825927734375,
-0.036529541015625,
0.0250701904296875,
-0.0203094482421875,
0.008575439453125,
-0.037200927734375,
0.053497314453125,
-0.0175628662109375,
-0.033477783203125,
-0.039276123046875,
0.004627227783203125,
0.016571044921875,
0.006771087646484375,
-0.0087738037109375,
0.0202178955078125,
0.0246734619140625,
-0.028717041015625,
0.0401611328125,
-0.02886962890625,
0.06121826171875,
0.0233306884765625,
0.0274810791015625,
-0.00701141357421875,
-0.01239776611328125,
-0.0159912109375,
-0.00032901763916015625,
0.0259857177734375,
-0.02581787109375,
0.0179290771484375,
-0.06195068359375,
-0.023345947265625,
0.00850677490234375,
0.01285552978515625,
-0.026885986328125,
0.00405120849609375,
-0.005222320556640625,
-0.021942138671875,
0.0002281665802001953,
0.032867431640625,
0.0006604194641113281,
-0.0244598388671875,
-0.0137939453125,
0.0182342529296875,
-0.0256500244140625,
-0.004413604736328125,
-0.06396484375,
0.00804901123046875,
0.049407958984375,
0.0204620361328125,
-0.05322265625,
0.0433349609375,
-0.01561737060546875,
0.01268768310546875,
0.02764892578125,
0.00839996337890625,
-0.02825927734375,
-0.01325225830078125,
-0.0400390625,
-0.078125,
-0.055511474609375,
0.05828857421875,
-0.0687255859375,
0.006961822509765625,
0.0175628662109375,
-0.00409698486328125,
0.0625,
-0.00498199462890625,
0.0115203857421875,
0.058990478515625,
-0.086181640625,
-0.040863037109375,
0.029205322265625,
-0.00876617431640625,
0.0005941390991210938,
-0.034759521484375,
-0.0286712646484375,
-0.03515625,
0.027130126953125,
0.0264892578125,
-0.032867431640625,
0.005615234375,
-0.0462646484375,
-0.07275390625,
0.002567291259765625,
0.025482177734375,
-0.045654296875,
-0.01323699951171875,
0.05633544921875,
-0.0103759765625,
-0.0223388671875,
0.00638580322265625,
-0.003604888916015625,
0.042633056640625,
0.003269195556640625,
0.01898193359375,
0.0179901123046875,
0.0278167724609375,
0.00551605224609375,
0.010894775390625,
0.0218048095703125,
0.028228759765625,
-0.000644683837890625,
0.007137298583984375,
-0.01300811767578125,
0.0284271240234375,
0.029876708984375,
-0.030731201171875,
-0.01430511474609375,
-0.0002846717834472656,
0.007904052734375,
0.0083160400390625,
-0.036956787109375,
-0.00385284423828125,
-0.023956298828125,
0.002964019775390625,
-0.00466156005859375,
-0.00402069091796875,
0.01462554931640625,
-0.01392364501953125,
0.0252532958984375,
0.046844482421875,
-0.006519317626953125,
0.0012102127075195312,
-0.056915283203125,
-0.033447265625,
-0.00018894672393798828,
-0.01371002197265625,
-0.01395416259765625,
-0.02154541015625,
-0.046539306640625,
-0.0106353759765625,
-0.0633544921875,
-0.0263824462890625,
-0.0152435302734375,
0.0222930908203125,
0.051116943359375,
-0.025299072265625,
0.0255126953125,
-0.0174407958984375,
-0.0079345703125,
0.040985107421875,
-0.01313018798828125,
0.02777099609375,
0.052337646484375,
-0.09149169921875,
-0.0260009765625,
0.02459716796875,
0.040740966796875,
-0.0271453857421875,
-0.027923583984375,
0.006633758544921875,
-0.0100555419921875,
-0.005035400390625,
-0.0078125,
0.0318603515625,
-0.0107879638671875,
-0.00983428955078125,
0.006267547607421875,
0.019500732421875,
0.0188140869140625,
0.0030574798583984375,
0.050079345703125,
-0.0059814453125,
-0.043182373046875,
0.01552581787109375,
-0.06439208984375,
-0.007236480712890625,
0.01441192626953125,
-0.0061187744140625,
-0.08172607421875,
0.04315185546875,
-0.004390716552734375,
0.0362548828125,
0.023834228515625
] |
84af85f1eacaecb19763319635e1dccd60e39485
|
Wordpress Stackexchange
Q: User Without Email? When creating a user in Wordpress an email address is required for that user. The website I'm working on requires that users remain anonymous (it's part of a research study) and I'd consider email to be an identifying piece of data. Users will be added manually, so email is not required to confirm accounts or prevent spam sign-ups.
Am I going to have to provide a fake email address for each account, or is there a way to leave this field blank?
A: It's possible, just not so easily via the Users page without some hackery.
The WordPress Function wp_create_user will let you insert users without email addresses, so a little custom plugin to accept a login name and password, and a call to wp_insert_user or wp_update_user should work for you. Unfortunately I don't have time to code it up for you, but perhaps this will point you in a direction.
$userdata = array ('user_login' => 'someuser', 'user_pass' => 'swordfish');
$new_user_id = wp_update_user( $userdata );
Update for people looking for a solution with the REST-API:
Unfortunately, this is not possible by the rest-api. the email is required there. see: https://developer.wordpress.org/rest-api/reference/users/#create-a-user
|
Q: User Without Email? When creating a user in Wordpress an email address is required for that user. The website I'm working on requires that users remain anonymous (it's part of a research study) and I'd consider email to be an identifying piece of data. Users will be added manually, so email is not required to confirm accounts or prevent spam sign-ups.
Am I going to have to provide a fake email address for each account, or is there a way to leave this field blank?
A: It's possible, just not so easily via the Users page without some hackery.
The WordPress Function wp_create_user will let you insert users without email addresses, so a little custom plugin to accept a login name and password, and a call to wp_insert_user or wp_update_user should work for you. Unfortunately I don't have time to code it up for you, but perhaps this will point you in a direction.
$userdata = array ('user_login' => 'someuser', 'user_pass' => 'swordfish');
$new_user_id = wp_update_user( $userdata );
Update for people looking for a solution with the REST-API:
Unfortunately, this is not possible by the rest-api. the email is required there. see: https://developer.wordpress.org/rest-api/reference/users/#create-a-user
A: Using Wordpress 4.7.2, I solved this with the following hooks:
// This will suppress empty email errors when submitting the user form
add_action('user_profile_update_errors', 'my_user_profile_update_errors', 10, 3 );
function my_user_profile_update_errors($errors, $update, $user) {
$errors->remove('empty_email');
}
// This will remove javascript required validation for email input
// It will also remove the '(required)' text in the label
// Works for new user, user profile and edit user forms
add_action('user_new_form', 'my_user_new_form', 10, 1);
add_action('show_user_profile', 'my_user_new_form', 10, 1);
add_action('edit_user_profile', 'my_user_new_form', 10, 1);
function my_user_new_form($form_type) {
?>
<script type="text/javascript">
jQuery('#email').closest('tr').removeClass('form-required').find('.description').remove();
// Uncheck send new user email option by default
<?php if (isset($form_type) && $form_type === 'add-new-user') : ?>
jQuery('#send_user_notification').removeAttr('checked');
<?php endif; ?>
</script>
<?php
}
A: According to WordPress' documentation, wp_create_user also let's you insert users without e-mail, as it is an optional parameter. All you need to do is provide a unique username and a password.
A: This is a pretty old question, but is still relevant.
Anyway, @Milo definitely had the right idea.
Here is what I use and it works great. This is very convenient when you want to create users, but prefer to keep your wordpress backend on lockdown. For example if you have a blog and prefer your content authors submit their work to you, this enables you create a user for them while not actually giving them access. Or if you prefer to blog under an alias. Or it's even useful for testing purposes or I guess those "sketchy" people who want to make up a bunch of fake users for their site (you know who you are).
Add this to functions.php temporarily or use it with a useful plugin like code snippets.
function wpse_22754_insert_new_user() {
$user_data = array(
'ID' => '', // automatically created
'user_pass' => 'swordfish',
'user_login' => 'someuser',
'user_nicename' => 'Some User',
'user_email' => '',
'display_name' => 'John',
'nickname' => 'jsmith',
'first_name' => 'John',
'last_name' => 'John',
'user_url' => '',
'user_registered' => '2015-06-26 10:55:55', // leave empty for auto
'role' => get_option('default_role') // administrator, editor, subscriber, author, etc
);
$user_id = wp_insert_user( $user_data );
}
add_action( 'admin_init', 'wpse_22754_insert_new_user' );
If you are looking to update users from the backend after creating them, add this and you'll avoid getting the error/warning notification.
function wpse_22754_empty_email_error( $arg ) {
if ( !empty( $arg->errors['empty_email'] ) ) unset( $arg->errors['empty_email'] );
}
add_action( 'user_profile_update_errors', 'wpse_22754_empty_email_error' );
If you'd rather use a plugin this one will do the job most likely:
https://wordpress.org/plugins/allow-multiple-accounts/
A: The "Import Users from CSV" plugin will allow you to create users with no email address. I added them with...
last_name,first_name,display_name,user_login
Gamble,Bill,Bill Gamble,BillGamble
Our club leverages the Wordpress wp_users database, but we need to have on file even those members who have no email
A: I find a way on youtube , when I search "how to create users without email in wordpress" !
*
*install "code snippets" plugin
*choose "add new" in this plugin
*choose a name for that. for example "Email not required code"
4.Enter this code:
// This will suppress empty email errors when submitting the user form
add_action('user profile_update_errors' , 'my_user_profile_update_errors', 10, 3);
function my_user_profile_update_errors($errors, $$update, $user){
$errors->remove('empty_email');
}
// This will remove javascript required validation for email input
// It will remove the '(required)' textin the label
// Work for new user , user profile and edit user forms
add_action('user_new_form', 'my_user_new_form', 10, 1);
add_action('show_user_profile', 'my_user_new_form', 10, 1);
add_action('edit_user_profile', 'my_user_new_form', 10, 1);
function my_user_new_form($form_type) {
?>
<script type= "text/javascript">
jQuary('#email').closest('tr').removeClass('form-required').find('.description').remove();
// Uncheck send new user email option by default
<?php if (isset($form_type) $$ $form_type === 'add-new-user') : ?>
jQuery '#send_user_notification').removeAttr('checked');
<?php endif; ?>
</script>
<?php
}
*select "only run in administrayion area and choose "save changes and activate
*now check , it works!
|
wordpress
|
{
"language": "en",
"length": 802,
"provenance": "stackexchange_00019.jsonl.gz:411236",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22754"
}
|
[
0.06939697265625,
0.00119781494140625,
-0.006771087646484375,
-0.034942626953125,
0.029541015625,
-0.05523681640625,
0.0518798828125,
-0.018829345703125,
0.01024627685546875,
0.006351470947265625,
-0.023681640625,
-0.00011396408081054688,
0.009185791015625,
-0.040313720703125,
0.025543212890625,
-0.0180511474609375,
-0.0106201171875,
0.0360107421875,
-0.0043182373046875,
-0.022796630859375,
0.0256500244140625,
-0.0296478271484375,
-0.0045623779296875,
0.0200653076171875,
-0.01187896728515625,
0.031341552734375,
0.0460205078125,
-0.035369873046875,
-0.0008616447448730469,
-0.0048980712890625,
-0.001911163330078125,
-0.02349853515625,
0.002590179443359375,
0.054931640625,
-0.060760498046875,
-0.011322021484375,
0.0263519287109375,
0.01161956787109375,
0.00701141357421875,
0.031219482421875,
0.035369873046875,
-0.0042724609375,
-0.025970458984375,
-0.0099639892578125,
-0.02801513671875,
-0.0396728515625,
0.03515625,
-0.006488800048828125,
0.050384521484375,
0.034210205078125,
0.006103515625,
0.0343017578125,
0.01020050048828125,
0.0089111328125,
-0.00426483154296875,
0.010955810546875,
0.0233154296875,
-0.0638427734375,
0.0152435302734375,
-0.05560302734375,
-0.0321044921875,
-0.02008056640625,
0.05889892578125,
0.035491943359375,
0.0293426513671875,
-0.020294189453125,
0.0139007568359375,
0.040679931640625,
-0.02423095703125,
0.0197601318359375,
0.018646240234375,
-0.0093536376953125,
-0.01120758056640625,
-0.00804901123046875,
0.00009554624557495117,
0.0167999267578125,
0.00704193115234375,
0.015869140625,
0.017059326171875,
0.025726318359375,
0.0159149169921875,
-0.0330810546875,
-0.0134735107421875,
-0.009368896484375,
-0.0076141357421875,
-0.0176849365234375,
0.00403594970703125,
0.007099151611328125,
-0.030120849609375,
-0.0035686492919921875,
-0.031158447265625,
-0.0634765625,
-0.00037980079650878906,
0.01959228515625,
-0.01088714599609375,
-0.007843017578125,
-0.006374359130859375,
0.003170013427734375,
0.0166473388671875,
0.036651611328125,
0.01044464111328125,
-0.0382080078125,
0.0303192138671875,
-0.034698486328125,
0.0017557144165039062,
0.0286407470703125,
0.0157318115234375,
-0.035797119140625,
-0.0109405517578125,
-0.00592803955078125,
-0.01558685302734375,
0.0258331298828125,
0.01194000244140625,
-0.0008993148803710938,
-0.0104827880859375,
0.016845703125,
-0.005100250244140625,
0.01165771484375,
-0.0265960693359375,
0.03857421875,
-0.03338623046875,
-0.0102386474609375,
-0.0135040283203125,
0.021240234375,
0.01470184326171875,
0.003208160400390625,
-0.004131317138671875,
0.003936767578125,
-0.032684326171875,
-0.00499725341796875,
-0.026214599609375,
0.050750732421875,
0.07421875,
0.013916015625,
-0.01351165771484375,
-0.01020050048828125,
-0.010711669921875,
0.003086090087890625,
-0.017181396484375,
0.02130126953125,
-0.00817108154296875,
-0.0206298828125,
0.0178070068359375,
-0.01015472412109375,
0.0413818359375,
0.0194091796875,
0.0154266357421875,
-0.0029582977294921875,
0.01027679443359375,
0.0184173583984375,
-0.0196075439453125,
-0.00989532470703125,
-0.0213470458984375,
0.017730712890625,
0.055206298828125,
0.0232086181640625,
0.0133514404296875,
0.00809478759765625,
-0.002166748046875,
0.038360595703125,
0.02691650390625,
-0.0146636962890625,
0.01372528076171875,
0.00023949146270751953,
-0.032958984375,
0.0192718505859375,
-0.054168701171875,
-0.0204925537109375,
0.0228729248046875,
-0.002044677734375,
0.042755126953125,
0.003719329833984375,
0.044342041015625,
0.00640106201171875,
0.003650665283203125,
-0.0030384063720703125,
0.009735107421875,
0.0399169921875,
0.01091766357421875,
0.0021419525146484375,
-0.0070648193359375,
-0.0306396484375,
0.076904296875,
-0.02294921875,
-0.023284912109375,
0.057952880859375,
0.01258087158203125,
0.06732177734375,
-0.00316619873046875,
0.0282745361328125,
-0.004657745361328125,
0.045501708984375,
-0.001155853271484375,
-0.017120361328125,
0.0020580291748046875,
-0.057281494140625,
0.0234832763671875,
-0.041015625,
-0.007144927978515625,
0.07061767578125,
0.027740478515625,
-0.0218353271484375,
0.033050537109375,
-0.0201568603515625,
-0.04681396484375,
-0.005405426025390625,
-0.0294647216796875,
0.01105499267578125,
-0.06103515625,
0.01302337646484375,
0.03765869140625,
-0.021087646484375,
-0.03814697265625,
0.031219482421875,
0.0100860595703125,
-0.039215087890625,
-0.0171661376953125,
0.048004150390625,
-0.00872802734375,
0.08441162109375,
-0.0106048583984375,
-0.056793212890625,
0.0118560791015625,
-0.016448974609375,
0.0462646484375,
-0.064697265625,
0.018585205078125,
-0.061126708984375,
0.051910400390625,
-0.044219970703125,
0.0298614501953125,
0.053466796875,
0.01180267333984375,
0.0182342529296875,
-0.053314208984375,
0.006053924560546875,
-0.0161590576171875,
0.0193023681640625,
0.00632476806640625,
0.031585693359375,
0.0201873779296875,
-0.0018510818481445312,
-0.0039825439453125,
0.02679443359375,
-0.0079193115234375,
-0.0194549560546875,
0.0293121337890625,
-0.016876220703125,
0.00811767578125,
0.054534912109375,
-0.00910186767578125,
-0.0052490234375,
-0.0065765380859375,
-0.08935546875,
-0.01275634765625,
0.022430419921875,
-0.01385498046875,
-0.0154876708984375,
-0.00905609130859375,
-0.0215911865234375,
0.0245208740234375,
-0.044219970703125,
-0.026336669921875,
-0.0118560791015625,
-0.02801513671875,
0.0136566162109375,
0.0016145706176757812,
0.0149688720703125,
-0.0025691986083984375,
-0.02777099609375,
0.01290130615234375,
0.01406097412109375,
0.0059967041015625,
0.0345458984375,
0.0543212890625,
0.046356201171875,
-0.034393310546875,
-0.023162841796875,
0.037384033203125,
0.040435791015625,
-0.023040771484375,
-0.039276123046875,
0.047210693359375,
0.00897979736328125,
0.03857421875,
-0.01568603515625,
0.05035400390625,
-0.03387451171875,
0.00890350341796875,
0.0057830810546875,
0.0299530029296875,
0.01629638671875,
-0.0193634033203125,
0.033203125,
0.00428009033203125,
-0.025421142578125,
-0.02655029296875,
0.01026153564453125,
-0.0085296630859375,
-0.02203369140625,
-0.00977325439453125,
0.0455322265625,
0.018890380859375,
-0.038818359375,
-0.003620147705078125,
-0.0153045654296875,
-0.027496337890625,
0.033935546875,
0.0255126953125,
-0.05755615234375,
0.06231689453125,
0.09326171875,
0.007537841796875,
0.006687164306640625,
-0.0224456787109375,
-0.045654296875,
-0.0277862548828125,
-0.00489044189453125,
-0.0633544921875,
-0.00476837158203125,
0.0313720703125,
-0.03399658203125,
-0.01715087890625,
0.003917694091796875,
-0.031646728515625,
-0.0014514923095703125,
0.01186370849609375,
-0.010986328125,
-0.0252532958984375,
-0.0266571044921875,
-0.0191650390625,
-0.06964111328125,
-0.05560302734375,
-0.018524169921875,
0.00795745849609375,
0.01025390625,
0.0024204254150390625,
0.0198516845703125,
0.005146026611328125,
-0.009490966796875,
0.001697540283203125,
0.0521240234375,
-0.00109100341796875,
-0.034149169921875,
-0.02001953125,
-0.006107330322265625,
0.017120361328125,
0.00042939186096191406,
0.0288543701171875,
0.02752685546875,
-0.0125579833984375,
-0.006824493408203125,
0.0162506103515625,
-0.02069091796875,
0.0176849365234375,
0.0428466796875,
-0.0006108283996582031,
-0.0105133056640625,
0.0276031494140625,
-0.038360595703125,
-0.004924774169921875,
0.027435302734375,
-0.0160369873046875,
-0.003925323486328125,
-0.010833740234375,
-0.024078369140625,
0.004817962646484375,
0.0208282470703125,
-0.0029582977294921875,
0.00862884521484375,
0.0009622573852539062,
0.0271453857421875,
-0.043487548828125,
-0.0258636474609375,
-0.040740966796875,
-0.00518035888671875,
0.051666259765625,
-0.00870513916015625,
-0.08135986328125,
-0.0181884765625,
-0.013427734375,
-0.0299530029296875,
-0.004352569580078125,
-0.042724609375,
-0.07879638671875,
0.05584716796875,
-0.0015783309936523438,
0.0052642822265625,
-0.035675048828125,
-0.02197265625,
0.0032405853271484375,
0.09637451171875,
0.0228424072265625,
-0.00893402099609375,
0.0119171142578125,
0.011077880859375,
-0.06292724609375,
-0.01090240478515625,
-0.051788330078125,
0.018463134765625,
0.06561279296875,
-0.00041103363037109375,
-0.005558013916015625,
0.03497314453125,
-0.0020580291748046875,
-0.03424072265625,
0.05865478515625,
-0.00347137451171875,
-0.0070953369140625,
-0.00970458984375,
0.02691650390625,
-0.0311126708984375,
0.017852783203125,
-0.03961181640625,
0.032073974609375,
-0.03289794921875,
-0.049560546875,
-0.005023956298828125,
-0.0248565673828125,
0.03948974609375,
-0.01068878173828125,
0.045684814453125,
-0.035003662109375,
0.01290130615234375,
-0.00801849365234375,
0.000036597251892089844,
0.00540924072265625,
0.0222625732421875,
-0.0218048095703125,
-0.01291656494140625,
-0.0018787384033203125,
-0.034912109375,
-0.0159149169921875,
-0.01690673828125,
-0.0050506591796875,
0.0190582275390625,
-0.02911376953125,
0.024505615234375,
-0.006603240966796875,
-0.00026917457580566406,
-0.0288543701171875,
-0.027496337890625,
-0.006977081298828125,
0.038055419921875,
-0.00765228271484375,
0.00586700439453125,
-0.05645751953125,
-0.037322998046875,
0.020355224609375,
-0.0203094482421875,
0.0084228515625,
0.0093231201171875,
0.07354736328125,
0.01971435546875,
0.001617431640625,
-0.02325439453125,
0.0006632804870605469,
0.058074951171875,
0.009552001953125,
0.01491546630859375,
0.0282135009765625,
-0.042144775390625,
0.0311126708984375,
0.037933349609375,
0.01125335693359375,
0.01081085205078125,
0.00644683837890625,
-0.0006661415100097656,
-0.051239013671875,
0.04010009765625,
0.0033969879150390625,
-0.03253173828125,
0.009674072265625,
0.0140380859375,
-0.0163726806640625,
0.06915283203125,
0.0009617805480957031,
-0.035919189453125,
0.021087646484375,
0.0270233154296875,
-0.043212890625,
0.029815673828125,
-0.0455322265625,
-0.043426513671875,
-0.02001953125,
0.0040130615234375,
-0.046783447265625,
-0.038787841796875,
-0.00627899169921875,
-0.06146240234375,
-0.06707763671875,
-0.0206756591796875,
0.01483917236328125,
-0.06488037109375,
-0.0090179443359375,
-0.006961822509765625,
-0.028472900390625,
0.103515625,
-0.0005311965942382812,
-0.038726806640625,
0.0212554931640625,
-0.04541015625,
0.039642333984375,
0.03271484375,
0.019622802734375,
0.059722900390625,
-0.0023708343505859375,
-0.01678466796875,
-0.0110015869140625,
-0.0169830322265625,
-0.01320648193359375,
-0.05255126953125,
0.06201171875,
0.0081024169921875,
-0.00726318359375,
-0.0029277801513671875,
0.042022705078125,
-0.0095672607421875,
0.02081298828125,
-0.0028972625732421875,
0.037200927734375,
0.043670654296875,
0.0164337158203125,
0.016021728515625,
0.019134521484375,
-0.03558349609375,
0.017333984375,
-0.00792694091796875,
-0.031646728515625,
0.00910186767578125,
0.046722412109375,
0.054962158203125,
0.0085906982421875,
-0.0262298583984375,
-0.0211029052734375,
-0.042633056640625,
-0.018524169921875,
-0.0121002197265625,
-0.044189453125,
-0.022491455078125,
-0.035797119140625,
-0.010009765625,
0.01433563232421875,
-0.00743865966796875,
0.01439666748046875,
-0.00249481201171875,
0.0246124267578125,
0.005878448486328125,
0.012969970703125,
-0.005161285400390625,
-0.0275421142578125,
-0.0197601318359375,
0.028839111328125,
-0.0264892578125,
-0.025238037109375,
0.041900634765625,
0.0301055908203125,
-0.0202484130859375,
-0.030426025390625,
0.050384521484375,
-0.008544921875,
0.0201416015625,
-0.054351806640625,
0.0274658203125,
-0.0751953125,
-0.00047898292541503906,
0.0367431640625,
0.018341064453125,
0.01319122314453125,
-0.016143798828125,
-0.0357666015625,
-0.0272216796875,
0.01361846923828125,
0.00637054443359375,
-0.0088958740234375,
-0.002223968505859375,
0.0252838134765625,
0.037841796875,
-0.00882720947265625,
-0.0197906494140625,
-0.00397491455078125,
0.009033203125,
0.0085906982421875,
0.0533447265625,
-0.019744873046875,
0.040252685546875,
-0.00860595703125,
0.053985595703125,
0.006549835205078125,
0.00731658935546875,
-0.0168304443359375,
-0.0224456787109375,
-0.0006847381591796875,
-0.0303497314453125,
-0.0256805419921875,
-0.0250091552734375,
-0.01541900634765625,
0.0270538330078125,
0.048828125,
-0.00846099853515625,
-0.0019140243530273438,
-0.0081787109375,
-0.01183319091796875,
-0.0185394287109375,
0.060577392578125,
0.0382080078125,
0.011871337890625,
0.02362060546875,
0.01291656494140625,
0.0249786376953125,
-0.0268402099609375,
0.0011873245239257812,
-0.00007289648056030273,
-0.010406494140625,
0.01029205322265625,
-0.0033092498779296875,
-0.0262603759765625,
0.054779052734375,
0.0692138671875,
-0.0245361328125,
0.0352783203125,
0.02728271484375,
-0.006778717041015625,
0.034210205078125,
-0.007354736328125,
-0.0458984375,
-0.038238525390625,
0.016998291015625,
0.00927734375,
-0.032379150390625,
0.03375244140625,
-0.0233306884765625,
0.0404052734375,
0.0760498046875,
0.07373046875,
-0.09991455078125,
0.0099334716796875,
-0.0191192626953125,
-0.0212554931640625,
0.045623779296875,
0.0024127960205078125,
-0.031402587890625,
-0.054718017578125,
0.04522705078125,
-0.03253173828125,
-0.017730712890625,
0.007518768310546875,
-0.00702667236328125,
-0.019927978515625,
-0.0245819091796875,
0.0433349609375,
0.0267181396484375,
0.039093017578125,
0.013275146484375,
-0.035614013671875,
0.032928466796875,
-0.0218505859375,
-0.0107879638671875,
0.0628662109375,
-0.049285888671875,
-0.07891845703125,
0.0204925537109375,
0.0032749176025390625,
-0.037994384765625,
-0.01348876953125,
0.00803375244140625,
0.080322265625,
0.0228729248046875,
0.0166168212890625,
-0.0352783203125,
0.009368896484375,
0.0166778564453125,
-0.007099151611328125,
-0.05511474609375,
0.0002046823501586914,
0.028961181640625,
-0.00920867919921875,
0.0308685302734375,
0.026519775390625,
-0.043975830078125,
0.0035991668701171875,
-0.01325225830078125,
0.04705810546875,
-0.033355712890625,
-0.01213836669921875,
0.020721435546875,
-0.0216522216796875,
0.0096282958984375,
-0.01433563232421875,
-0.00323486328125,
-0.0345458984375,
-0.006130218505859375,
-0.01068878173828125,
-0.037109375,
0.008056640625,
-0.0143890380859375,
-0.04345703125,
0.10113525390625,
-0.011322021484375,
0.017547607421875,
0.0025691986083984375,
0.036407470703125,
-0.0060272216796875,
0.0261688232421875,
-0.0205841064453125,
0.0440673828125,
0.0318603515625,
0.0145263671875,
-0.01372528076171875,
-0.00902557373046875,
0.00881195068359375,
0.0259552001953125,
0.1007080078125,
0.02996826171875,
-0.0159454345703125,
-0.0065155029296875,
0.004852294921875,
-0.0202178955078125,
-0.069091796875,
0.051483154296875,
0.00865936279296875,
0.038604736328125,
0.059967041015625,
-0.045135498046875,
0.02362060546875,
-0.0008420944213867188,
0.00734710693359375,
0.03668212890625,
0.0152740478515625,
0.0265350341796875,
-0.006351470947265625,
0.06414794921875,
-0.0010442733764648438,
-0.0184478759765625,
0.020294189453125,
-0.00974273681640625,
-0.009613037109375,
0.026519775390625,
0.0169830322265625,
-0.033721923828125,
0.049957275390625,
-0.04180908203125,
0.06097412109375,
-0.0091552734375,
0.00820159912109375,
0.03338623046875,
0.03375244140625,
0.013153076171875,
0.0173187255859375,
0.0135345458984375,
0.02703857421875,
-0.0135345458984375,
0.0408935546875,
0.0211639404296875,
0.032623291015625,
-0.05120849609375,
-0.043853759765625,
0.050567626953125,
0.0750732421875,
-0.029022216796875,
0.0023784637451171875,
0.00855255126953125,
0.037933349609375,
0.037139892578125,
-0.004039764404296875,
0.09881591796875,
-0.01528167724609375,
0.002346038818359375,
-0.055023193359375,
0.043914794921875,
0.0303497314453125,
0.0095367431640625,
-0.0084228515625,
-0.0034008026123046875,
-0.038604736328125,
0.03363037109375,
-0.01291656494140625,
0.00847625732421875,
0.0247650146484375,
0.005977630615234375,
-0.00183868408203125,
0.01143646240234375,
0.03594970703125,
-0.00244140625,
-0.0135955810546875,
0.00769805908203125,
0.03289794921875,
-0.0170135498046875,
0.034820556640625,
0.03265380859375,
-0.002880096435546875,
-0.003753662109375,
-0.00872039794921875,
0.0504150390625,
0.07025146484375,
0.038665771484375,
-0.048492431640625,
-0.0250244140625,
-0.0263671875,
-0.055816650390625,
0.01387786865234375,
-0.01335906982421875,
-0.018463134765625,
-0.012847900390625,
-0.0211639404296875,
-0.0007710456848144531,
0.00882720947265625,
0.0264129638671875,
-0.0178070068359375,
0.04888916015625,
-0.01493072509765625,
-0.030975341796875,
0.054931640625,
-0.0006728172302246094,
0.0936279296875,
0.007518768310546875,
-0.03863525390625,
-0.007160186767578125,
-0.00876617431640625,
-0.006900787353515625,
-0.000972747802734375,
0.0260467529296875,
-0.03692626953125,
0.06488037109375,
0.0158538818359375,
-0.0035190582275390625,
0.0131988525390625,
-0.0196380615234375,
0.007022857666015625,
0.01439666748046875,
0.0265350341796875,
0.010833740234375,
-0.0227813720703125,
0.005889892578125,
-0.006988525390625,
0.0035953521728515625,
-0.01438140869140625,
0.07525634765625,
-0.026458740234375,
-0.0026988983154296875,
-0.055389404296875,
0.032958984375,
-0.0670166015625,
-0.030792236328125,
-0.0174407958984375,
0.0144805908203125,
0.00848388671875,
0.0242919921875,
-0.0318603515625,
0.0283203125,
0.0102691650390625,
-0.0033740997314453125,
0.027435302734375,
-0.0267181396484375,
-0.0011501312255859375,
0.01113128662109375,
0.0216064453125,
-0.0257720947265625,
-0.041412353515625,
-0.0263519287109375,
0.0217132568359375,
0.01116180419921875,
0.0206756591796875,
-0.03228759765625,
0.035980224609375,
-0.0187530517578125,
-0.01387786865234375,
-0.01331329345703125,
-0.040130615234375,
-0.0210113525390625,
0.007289886474609375,
-0.0007987022399902344,
0.0296630859375,
-0.037353515625,
-0.034881591796875,
0.0117950439453125,
-0.01430511474609375,
-0.0237579345703125,
-0.0086669921875,
0.02947998046875,
-0.00484466552734375,
0.03265380859375,
0.045684814453125,
0.01084136962890625,
0.01497650146484375,
-0.0004024505615234375,
-0.01207733154296875,
-0.02459716796875,
-0.0251312255859375,
-0.01444244384765625,
-0.056671142578125,
0.0109710693359375,
0.03662109375,
-0.033233642578125,
0.00440216064453125,
-0.06854248046875,
0.008697509765625,
0.003246307373046875,
-0.0100555419921875,
-0.0292816162109375,
0.01192474365234375,
-0.0019931793212890625,
0.0367431640625,
-0.0447998046875,
0.0048370361328125,
0.01471710205078125,
0.0472412109375,
-0.045379638671875,
0.003021240234375,
-0.006710052490234375,
-0.00888824462890625,
0.0086517333984375,
-0.031219482421875,
0.00391387939453125,
0.0209503173828125,
-0.057525634765625,
-0.03497314453125,
-0.0296783447265625,
-0.0063323974609375,
-0.0303192138671875,
-0.003810882568359375,
0.0273895263671875,
-0.0201568603515625,
-0.03021240234375,
-0.0288848876953125,
0.0182037353515625,
-0.06329345703125,
-0.02105712890625,
-0.045867919921875,
0.041015625,
0.047027587890625,
-0.03399658203125,
-0.114990234375,
0.0634765625,
-0.056182861328125,
-0.0301971435546875,
-0.0160980224609375,
-0.0264739990234375,
-0.00862884521484375,
0.024810791015625,
-0.0122222900390625,
-0.018646240234375,
-0.037811279296875,
0.039031982421875,
0.005767822265625,
-0.0192413330078125,
0.02655029296875,
-0.0289459228515625,
-0.05206298828125,
0.006671905517578125,
0.0220489501953125,
-0.0083160400390625,
0.0127410888671875,
0.00044083595275878906,
0.04266357421875,
0.06005859375,
-0.025909423828125,
0.0662841796875,
-0.00946044921875,
-0.032989501953125,
-0.051361083984375,
-0.034820556640625,
-0.00868988037109375,
0.0140380859375,
0.11492919921875,
0.08099365234375,
0.013763427734375,
-0.07073974609375,
-0.03192138671875,
-0.032196044921875,
0.023895263671875,
-0.0105133056640625,
-0.0144805908203125,
-0.0252685546875,
0.0125885009765625,
-0.0228271484375,
0.00968170166015625,
-0.001316070556640625,
-0.05291748046875,
-0.00896453857421875,
-0.01751708984375,
-0.00012481212615966797,
-0.013153076171875,
0.05206298828125,
-0.00876617431640625,
-0.0013370513916015625,
-0.02130126953125,
-0.034881591796875,
-0.01165771484375,
0.0215301513671875,
-0.039031982421875,
0.0052642822265625,
-0.0181427001953125,
-0.040283203125,
-0.01226806640625,
0.03350830078125,
-0.0159454345703125,
0.036102294921875,
-0.03961181640625,
-0.018707275390625,
-0.0184173583984375,
0.017333984375,
0.00020170211791992188,
0.004970550537109375,
-0.010040283203125,
0.04742431640625,
0.018218994140625,
0.055023193359375,
-0.0289764404296875,
-0.055389404296875,
-0.051116943359375,
0.0237579345703125,
0.00858306884765625,
-0.004215240478515625,
0.048583984375,
-0.01068115234375,
0.006282806396484375,
0.0286407470703125,
0.0233612060546875,
-0.0234375,
0.004261016845703125,
-0.004726409912109375,
0.0207366943359375,
-0.00475311279296875
] |
6eaff4ebaccfa92bee81f518125e7afab24d14e5
|
Wordpress Stackexchange
Q: How to alter the text of the post "Excerpt" box label in WordPress post editor? My theme gives the site owner the option of using each post's "Excerpt" field to fill in the "meta description" tag for each page.
It would be helpful if I can filter the text label and description text that appears on the default Excerpt input control when viewed inside the post editor.
Does a filter or hook exist for this?
Alternately, I suppose I could use jQuery to do something via the DOM.
A: if anyone trying to add for a specific post type you can try this code
add_filter('gettext', 'wp_video_link_excerpt_rename', 10, 2);
function wp_video_link_excerpt_rename($translation, $original)
{
if (get_post_type( ) == 'video_link') {
if ('Excerpt' == $original) {
return 'Add Video Link';
} else {
$pos = strpos($original, 'Excerpts are optional hand-crafted summaries of your');
if ($pos !== false) {
return 'Add any video link in the box above';
}
}
}
return $translation;
}
|
Q: How to alter the text of the post "Excerpt" box label in WordPress post editor? My theme gives the site owner the option of using each post's "Excerpt" field to fill in the "meta description" tag for each page.
It would be helpful if I can filter the text label and description text that appears on the default Excerpt input control when viewed inside the post editor.
Does a filter or hook exist for this?
Alternately, I suppose I could use jQuery to do something via the DOM.
A: if anyone trying to add for a specific post type you can try this code
add_filter('gettext', 'wp_video_link_excerpt_rename', 10, 2);
function wp_video_link_excerpt_rename($translation, $original)
{
if (get_post_type( ) == 'video_link') {
if ('Excerpt' == $original) {
return 'Add Video Link';
} else {
$pos = strpos($original, 'Excerpts are optional hand-crafted summaries of your');
if ($pos !== false) {
return 'Add any video link in the box above';
}
}
}
return $translation;
}
A: there is a filter hook you can use and it is gettext
here:
add_filter( 'gettext', 'wpse22764_gettext', 10, 2 );
function wpse22764_gettext( $translation, $original )
{
if ( 'Excerpt' == $original ) {
return 'My Excerpt label';
}else{
$pos = strpos($original, 'Excerpts are optional hand-crafted summaries of your');
if ($pos !== false) {
return 'My Excerpt description';
}
}
return $translation;
}
A: I used the original answer and modified it to handle different post types:
// Customise the Excerpt field title and description via WP translation.
// Change the $post_types array to change the default Excerpt metabox title and description. The description is generic but substitutes the post_type to make it specific to the current post type.
add_filter( 'gettext', 'change_excerpt_info', 10, 2 );
function change_excerpt_info ( $translation, $original ) {
$post_types = array( "service", "workshop", 'team' );
$post = get_post( $post );
$posttype = '';
if ( $post ) {
$posttype = $post->post_type;
}
if ( in_array($posttype, $post_types) ) {
if ( 'Excerpt' == $original ) {
return ucfirst($posttype) . ' Teaser'; // Will appear as Service Teaser, Team Teaser, etc.
} else $pos = strpos($original, 'Excerpts are optional hand-crafted summaries');
if ($pos !== false) {
// The Summary will incorporate the post_type into the description.
$summary = 'This field will be displayed as a teaser or summary of anywhere this ' . $posttype . ' appears in a grid layout. You should always write a teaser of about 30 words. It will never be displayed on the actual ' . $posttype . ' page, so you can repeat content from other fields on this editing screen if you want.';
return $summary;
}
}
return $translation;
}
|
wordpress
|
{
"language": "en",
"length": 439,
"provenance": "stackexchange_00019.jsonl.gz:411240",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22764"
}
|
[
0.0119171142578125,
-0.024749755859375,
0.0260162353515625,
0.04876708984375,
-0.0224456787109375,
-0.026214599609375,
0.06903076171875,
-0.039031982421875,
-0.023284912109375,
0.054962158203125,
0.025360107421875,
-0.024139404296875,
0.0260162353515625,
-0.032745361328125,
-0.03424072265625,
-0.0189208984375,
-0.004451751708984375,
0.0196685791015625,
0.019683837890625,
-0.0122222900390625,
0.003021240234375,
-0.0255584716796875,
0.024200439453125,
-0.0384521484375,
0.002780914306640625,
-0.014984130859375,
0.096923828125,
-0.0173187255859375,
0.01172637939453125,
-0.0098419189453125,
0.01593017578125,
-0.04010009765625,
0.038818359375,
0.01526641845703125,
-0.056854248046875,
0.004825592041015625,
0.0080718994140625,
-0.009368896484375,
-0.01470947265625,
0.037841796875,
0.0164947509765625,
0.011260986328125,
-0.027313232421875,
-0.00662994384765625,
-0.0296173095703125,
-0.0264739990234375,
0.01512908935546875,
-0.02166748046875,
0.0220794677734375,
-0.0097198486328125,
-0.007091522216796875,
0.030029296875,
0.011444091796875,
-0.046478271484375,
0.0017499923706054688,
0.0164031982421875,
-0.0306243896484375,
0.037750244140625,
0.018707275390625,
0.007343292236328125,
-0.004215240478515625,
0.0185394287109375,
0.001323699951171875,
0.0010614395141601562,
0.00991058349609375,
-0.01485443115234375,
-0.007724761962890625,
0.0298614501953125,
-0.025360107421875,
0.0034694671630859375,
0.0295257568359375,
-0.025787353515625,
0.0010538101196289062,
-0.08612060546875,
0.036102294921875,
0.051544189453125,
-0.032928466796875,
-0.0154571533203125,
-0.00547027587890625,
-0.004405975341796875,
0.039794921875,
-0.0025005340576171875,
0.05279541015625,
-0.018096923828125,
0.00833892822265625,
-0.01142120361328125,
-0.0135498046875,
-0.016937255859375,
-0.0308990478515625,
-0.035888671875,
-0.00624847412109375,
-0.061065673828125,
-0.050872802734375,
-0.004238128662109375,
0.00406646728515625,
-0.0355224609375,
0.0189971923828125,
0.018310546875,
-0.007434844970703125,
-0.00554656982421875,
0.0233001708984375,
-0.040130615234375,
0.041015625,
-0.021209716796875,
0.032867431640625,
-0.003902435302734375,
-0.01338958740234375,
-0.02899169921875,
0.04815673828125,
0.033416748046875,
-0.0227203369140625,
0.07208251953125,
-0.005840301513671875,
-0.01302337646484375,
-0.047515869140625,
0.0240325927734375,
-0.0008544921875,
-0.036712646484375,
0.0001506805419921875,
-0.031402587890625,
0.01464080810546875,
0.005615234375,
0.00002384185791015625,
-0.0160980224609375,
0.0137786865234375,
-0.011138916015625,
-0.021942138671875,
-0.003475189208984375,
0.037078857421875,
-0.025604248046875,
-0.0307464599609375,
0.025634765625,
0.072021484375,
0.033966064453125,
0.0135345458984375,
-0.00910186767578125,
0.0014352798461914062,
-0.005767822265625,
-0.0081939697265625,
-0.002338409423828125,
-0.0035610198974609375,
-0.0080108642578125,
0.0192413330078125,
-0.0096282958984375,
-0.01473236083984375,
0.041595458984375,
0.0033626556396484375,
-0.01532745361328125,
0.007389068603515625,
-0.054473876953125,
-0.028106689453125,
-0.0350341796875,
0.055389404296875,
0.0148773193359375,
0.006561279296875,
-0.04901123046875,
0.10101318359375,
-0.0694580078125,
-0.022186279296875,
-0.07977294921875,
0.06610107421875,
-0.00933837890625,
-0.0120697021484375,
0.01885986328125,
-0.01421356201171875,
0.0214996337890625,
-0.048187255859375,
-0.01001739501953125,
0.0195465087890625,
0.059661865234375,
-0.00945281982421875,
-0.0017442703247070312,
0.022674560546875,
-0.0139007568359375,
-0.0290985107421875,
-0.00904083251953125,
-0.00923919677734375,
-0.011016845703125,
0.00974273681640625,
0.0253753662109375,
-0.004131317138671875,
-0.0158233642578125,
0.0279083251953125,
-0.00786590576171875,
-0.048797607421875,
0.00531005859375,
0.0169219970703125,
0.045074462890625,
0.0269775390625,
0.019744873046875,
0.036407470703125,
-0.0114288330078125,
-0.0426025390625,
-0.02618408203125,
-0.00019884109497070312,
-0.021820068359375,
0.03497314453125,
-0.013092041015625,
0.011627197265625,
0.04345703125,
0.04058837890625,
-0.01342010498046875,
0.028533935546875,
-0.01108551025390625,
-0.050994873046875,
0.003940582275390625,
-0.0246429443359375,
0.031036376953125,
-0.0174407958984375,
-0.0007481575012207031,
0.01099395751953125,
-0.035797119140625,
0.01090240478515625,
0.0037212371826171875,
-0.0110626220703125,
0.0106353759765625,
-0.0135040283203125,
0.021514892578125,
0.00215911865234375,
0.0157470703125,
0.03302001953125,
-0.00716400146484375,
0.0271759033203125,
0.02001953125,
0.047821044921875,
-0.0247039794921875,
-0.007472991943359375,
-0.0276947021484375,
0.056793212890625,
-0.0126800537109375,
0.01413726806640625,
0.0268402099609375,
0.050689697265625,
0.01535797119140625,
-0.04010009765625,
0.0027370452880859375,
-0.01450347900390625,
-0.050689697265625,
-0.0124969482421875,
0.058929443359375,
0.038970947265625,
0.0498046875,
0.000988006591796875,
-0.006134033203125,
0.07586669921875,
-0.015716552734375,
0.0240936279296875,
-0.0281982421875,
0.01097869873046875,
0.045318603515625,
-0.027496337890625,
0.0028209686279296875,
0.0240631103515625,
-0.051513671875,
0.01074981689453125,
0.0484619140625,
-0.000017881393432617188,
-0.0018892288208007812,
0.0022258758544921875,
-0.0023956298828125,
-0.0028591156005859375,
-0.0068817138671875,
-0.011962890625,
-0.0014238357543945312,
0.0660400390625,
0.0276031494140625,
0.0675048828125,
0.0660400390625,
-0.0528564453125,
0.0277099609375,
0.00402069091796875,
0.05438232421875,
-0.00446319580078125,
-0.003353118896484375,
-0.007366180419921875,
-0.0177154541015625,
-0.03466796875,
0.0269775390625,
-0.01512908935546875,
-0.038848876953125,
-0.006336212158203125,
-0.00408935546875,
-0.01458740234375,
-0.0111541748046875,
0.043060302734375,
-0.05914306640625,
-0.004642486572265625,
-0.017852783203125,
-0.024932861328125,
-0.03472900390625,
0.012969970703125,
-0.0243377685546875,
-0.058013916015625,
0.014678955078125,
-0.0117034912109375,
-0.045928955078125,
0.061309814453125,
-0.037506103515625,
0.052490234375,
-0.0338134765625,
0.07257080078125,
0.0640869140625,
-0.0594482421875,
0.04681396484375,
0.00417327880859375,
-0.0130767822265625,
-0.0307464599609375,
0.0283203125,
-0.0091552734375,
-0.01236724853515625,
-0.0731201171875,
0.0140533447265625,
0.000835418701171875,
0.0212249755859375,
-0.0305938720703125,
-0.04730224609375,
-0.028839111328125,
-0.0013666152954101562,
-0.0784912109375,
-0.0233001708984375,
0.00567626953125,
-0.07763671875,
-0.01480865478515625,
0.0240631103515625,
-0.055023193359375,
-0.00556182861328125,
0.06976318359375,
-0.00926971435546875,
0.0161285400390625,
0.000027954578399658203,
-0.03875732421875,
-0.01345062255859375,
-0.0701904296875,
-0.03594970703125,
-0.00609588623046875,
0.01531219482421875,
0.016632080078125,
0.027740478515625,
0.0135955810546875,
-0.044708251953125,
0.03826904296875,
0.060150146484375,
0.0006837844848632812,
0.03936767578125,
0.046875,
-0.0550537109375,
0.00023734569549560547,
0.007411956787109375,
0.007762908935546875,
0.023162841796875,
-0.01175689697265625,
-0.0128173828125,
-0.0123443603515625,
0.01824951171875,
0.0298004150390625,
-0.0118408203125,
-0.0023555755615234375,
0.041107177734375,
0.028289794921875,
-0.020294189453125,
-0.0073394775390625,
-0.01421356201171875,
-0.03045654296875,
-0.01015472412109375,
0.0008106231689453125,
0.0178070068359375,
-0.0232391357421875,
0.032135009765625,
0.002948760986328125,
-0.0017824172973632812,
0.0699462890625,
-0.0272979736328125,
-0.007450103759765625,
-0.01983642578125,
-0.027252197265625,
-0.043182373046875,
0.01380157470703125,
-0.0022125244140625,
0.03704833984375,
0.00469970703125,
0.043182373046875,
-0.0100555419921875,
0.03680419921875,
-0.06549072265625,
-0.0343017578125,
0.032623291015625,
-0.04339599609375,
-0.02044677734375,
-0.0199127197265625,
-0.026641845703125,
0.00955963134765625,
0.05389404296875,
-0.043243408203125,
-0.038604736328125,
0.013427734375,
0.005817413330078125,
0.05523681640625,
0.004077911376953125,
0.02215576171875,
-0.039031982421875,
-0.06353759765625,
0.0150299072265625,
0.001857757568359375,
-0.0270843505859375,
-0.035400390625,
0.03851318359375,
-0.0653076171875,
-0.01702880859375,
0.05999755859375,
-0.01367950439453125,
-0.0102996826171875,
0.03497314453125,
-0.004642486572265625,
-0.0024852752685546875,
-0.052734375,
0.00580596923828125,
-0.0687255859375,
-0.0209503173828125,
0.006443023681640625,
0.05474853515625,
-0.009307861328125,
-0.005611419677734375,
-0.0211944580078125,
0.046844482421875,
0.0174102783203125,
0.007297515869140625,
0.005340576171875,
-0.033660888671875,
0.0305938720703125,
0.0227813720703125,
0.0171356201171875,
-0.01174163818359375,
-0.00656890869140625,
-0.01154327392578125,
-0.051605224609375,
0.05584716796875,
-0.00461578369140625,
0.0258331298828125,
0.036895751953125,
-0.0204010009765625,
-0.08270263671875,
-0.061737060546875,
-0.0233001708984375,
-0.01336669921875,
-0.0251312255859375,
-0.00567626953125,
-0.051666259765625,
-0.08819580078125,
0.04595947265625,
0.0193328857421875,
-0.031646728515625,
0.00461578369140625,
0.04541015625,
0.0193023681640625,
-0.040313720703125,
-0.04608154296875,
0.01285552978515625,
0.038360595703125,
0.003101348876953125,
0.0260162353515625,
0.0182342529296875,
-0.019775390625,
0.056304931640625,
0.005001068115234375,
-0.01273345947265625,
0.0019054412841796875,
-0.004444122314453125,
0.0174102783203125,
-0.01715087890625,
0.00438690185546875,
-0.0089111328125,
0.062286376953125,
0.007778167724609375,
-0.010772705078125,
-0.0005602836608886719,
0.0172119140625,
0.0217132568359375,
-0.014068603515625,
0.0133514404296875,
-0.012664794921875,
0.0086822509765625,
-0.00884246826171875,
0.034942626953125,
0.0244903564453125,
0.023651123046875,
0.015472412109375,
-0.01027679443359375,
0.0170440673828125,
0.022491455078125,
-0.03729248046875,
-0.04052734375,
-0.0457763671875,
0.005916595458984375,
-0.006565093994140625,
-0.01340484619140625,
0.02105712890625,
-0.004772186279296875,
0.0209503173828125,
-0.0215911865234375,
-0.05120849609375,
-0.002033233642578125,
0.0001569986343383789,
0.0330810546875,
0.05401611328125,
0.025360107421875,
0.01313018798828125,
0.026641845703125,
-0.01107025146484375,
0.024017333984375,
0.0312042236328125,
0.00921630859375,
-0.03094482421875,
0.0146484375,
0.002193450927734375,
-0.0010852813720703125,
0.0182952880859375,
0.069091796875,
-0.0224609375,
0.04827880859375,
-0.0218505859375,
0.03240966796875,
-0.01253509521484375,
0.037109375,
0.0190277099609375,
-0.007724761962890625,
-0.00957489013671875,
0.0197906494140625,
-0.027557373046875,
-0.0162353515625,
-0.011383056640625,
0.020782470703125,
0.0179443359375,
-0.0290985107421875,
-0.01983642578125,
0.0220947265625,
-0.031097412109375,
-0.01306915283203125,
0.018524169921875,
0.005420684814453125,
-0.036529541015625,
-0.00933837890625,
0.005947113037109375,
0.018157958984375,
-0.00151824951171875,
-0.007549285888671875,
-0.016265869140625,
-0.0191497802734375,
0.0023784637451171875,
0.00814056396484375,
-0.0235137939453125,
-0.011322021484375,
-0.0045166015625,
0.0090179443359375,
-0.02862548828125,
-0.0263214111328125,
0.01259613037109375,
0.00902557373046875,
-0.0164794921875,
0.0038909912109375,
0.06463623046875,
-0.01032257080078125,
0.00884246826171875,
-0.0201568603515625,
0.009521484375,
-0.051422119140625,
0.0160675048828125,
0.024688720703125,
-0.01125335693359375,
-0.03912353515625,
0.008331298828125,
-0.04266357421875,
-0.0121002197265625,
-0.045196533203125,
-0.0784912109375,
-0.045074462890625,
-0.0256500244140625,
-0.044403076171875,
0.0142059326171875,
-0.0270538330078125,
0.023651123046875,
-0.0009131431579589844,
0.0230712890625,
-0.023223876953125,
0.02947998046875,
-0.01788330078125,
0.03277587890625,
0.00763702392578125,
0.038360595703125,
-0.0033740997314453125,
0.00858306884765625,
-0.01502227783203125,
-0.012847900390625,
-0.0175018310546875,
-0.0188446044921875,
-0.00110626220703125,
0.003177642822265625,
-0.0089874267578125,
0.032958984375,
0.057952880859375,
-0.0029315948486328125,
0.00408172607421875,
-0.0067901611328125,
-0.0027027130126953125,
-0.013763427734375,
0.0291900634765625,
-0.0017566680908203125,
-0.016937255859375,
0.0411376953125,
0.00034356117248535156,
0.061767578125,
-0.0154876708984375,
0.01378631591796875,
0.0048980712890625,
-0.03204345703125,
0.015350341796875,
0.04388427734375,
-0.0268402099609375,
0.00957489013671875,
0.024261474609375,
-0.0013828277587890625,
0.040924072265625,
-0.0079193115234375,
0.019927978515625,
0.05926513671875,
-0.01325225830078125,
-0.0148773193359375,
0.057464599609375,
0.039398193359375,
-0.00740814208984375,
0.01556396484375,
0.0238494873046875,
-0.002655029296875,
0.00670623779296875,
0.00323486328125,
0.057037353515625,
-0.01494598388671875,
0.0104522705078125,
0.0276336669921875,
-0.0185089111328125,
0.0276641845703125,
0.0018701553344726562,
0.0164642333984375,
0.0113525390625,
0.015228271484375,
-0.037506103515625,
-0.0213165283203125,
0.0031890869140625,
-0.00984954833984375,
-0.005268096923828125,
-0.0132598876953125,
0.0182647705078125,
0.0020656585693359375,
-0.050384521484375,
0.008697509765625,
0.0188140869140625,
-0.01238250732421875,
-0.032501220703125,
-0.01291656494140625,
0.0106353759765625,
-0.0288848876953125,
-0.0751953125,
-0.004085540771484375,
-0.01187896728515625,
0.0091552734375,
-0.010162353515625,
0.030181884765625,
0.0635986328125,
0.05206298828125,
0.00917816162109375,
-0.025848388671875,
0.039398193359375,
-0.0201873779296875,
-0.0132293701171875,
-0.0298309326171875,
-0.021881103515625,
0.03753662109375,
0.01401519775390625,
0.0281829833984375,
0.009552001953125,
-0.027313232421875,
-0.0224151611328125,
-0.04827880859375,
0.07586669921875,
0.00626373291015625,
-0.039093017578125,
0.0201568603515625,
-0.0093231201171875,
-0.0241546630859375,
-0.00390625,
0.0199737548828125,
-0.05438232421875,
-0.039459228515625,
-0.0027618408203125,
-0.07843017578125,
-0.0010118484497070312,
-0.031982421875,
-0.06976318359375,
0.08880615234375,
0.031982421875,
0.019775390625,
-0.008026123046875,
0.03558349609375,
-0.037994384765625,
0.01480865478515625,
-0.020416259765625,
0.021331787109375,
0.0143890380859375,
0.0259246826171875,
-0.008514404296875,
-0.006824493408203125,
0.016510009765625,
0.036376953125,
0.0200042724609375,
0.00022935867309570312,
0.052520751953125,
-0.0041656494140625,
0.03643798828125,
0.043975830078125,
-0.0101776123046875,
-0.0197296142578125,
0.038848876953125,
0.078125,
0.037567138671875,
-0.044097900390625,
0.04095458984375,
-0.05145263671875,
-0.002193450927734375,
0.0528564453125,
0.0264129638671875,
0.031280517578125,
0.005229949951171875,
0.0299224853515625,
-0.0187835693359375,
-0.0149383544921875,
0.037261962890625,
-0.08734130859375,
-0.0269622802734375,
0.051055908203125,
0.03717041015625,
-0.062408447265625,
-0.01450347900390625,
-0.044769287109375,
0.04510498046875,
0.02374267578125,
0.0246429443359375,
0.0333251953125,
0.01200103759765625,
0.051544189453125,
0.007472991943359375,
0.0027027130126953125,
0.0202178955078125,
0.009674072265625,
-0.02288818359375,
-0.016815185546875,
-0.00919342041015625,
-0.037750244140625,
0.0247955322265625,
0.040283203125,
-0.017913818359375,
-0.0275726318359375,
-0.021514892578125,
0.0032444000244140625,
-0.005161285400390625,
-0.0220489501953125,
-0.0297393798828125,
-0.019866943359375,
-0.015899658203125,
0.01194000244140625,
0.0025806427001953125,
-0.017120361328125,
0.0165252685546875,
0.019256591796875,
0.0125732421875,
0.020965576171875,
-0.0159454345703125,
-0.0150909423828125,
-0.051788330078125,
0.01560211181640625,
0.0289154052734375,
0.0295562744140625,
0.0009021759033203125,
0.06329345703125,
0.04571533203125,
-0.002346038818359375,
0.00014066696166992188,
0.05145263671875,
0.01442718505859375,
-0.01450347900390625,
0.005619049072265625,
-0.0262298583984375,
0.00579071044921875,
0.0005393028259277344,
0.010955810546875,
0.032562255859375,
0.033721923828125,
0.01505279541015625,
-0.033294677734375,
-0.00342559814453125,
0.0196075439453125,
-0.03302001953125,
0.002410888671875,
-0.0516357421875,
0.022430419921875,
0.0170135498046875,
-0.00247955322265625,
-0.00397491455078125,
0.00966644287109375,
0.0382080078125,
-0.009307861328125,
0.01708984375,
0.003582000732421875,
0.0013427734375,
0.01372528076171875,
0.0240020751953125,
-0.00820159912109375,
0.0254058837890625,
-0.04864501953125,
-0.0052947998046875,
-0.0123443603515625,
-0.047027587890625,
0.01296234130859375,
0.03814697265625,
-0.02484130859375,
0.005290985107421875,
-0.0106201171875,
0.0118255615234375,
0.01580810546875,
-0.04034423828125,
0.0038661956787109375,
0.022705078125,
0.0020275115966796875,
0.0011262893676757812,
-0.0150909423828125,
0.0009851455688476562,
0.0111236572265625,
0.015594482421875,
0.02520751953125,
0.033721923828125,
0.0160064697265625,
0.026763916015625,
-0.030426025390625,
0.019744873046875,
-0.06390380859375,
-0.045867919921875,
0.021240234375,
-0.0062255859375,
0.006000518798828125,
0.004638671875,
-0.01171112060546875,
0.059173583984375,
0.020263671875,
-0.003292083740234375,
0.056976318359375,
-0.022491455078125,
-0.007411956787109375,
-0.04327392578125,
0.0136260986328125,
-0.019805908203125,
-0.032440185546875,
0.00023496150970458984,
0.007610321044921875,
0.01090240478515625,
0.04193115234375,
0.033599853515625,
0.0232391357421875,
0.01611328125,
0.03466796875,
0.007564544677734375,
0.028564453125,
0.01531219482421875,
0.0306549072265625,
-0.06707763671875,
-0.0013856887817382812,
0.0280914306640625,
-0.0249176025390625,
0.03021240234375,
-0.00040435791015625,
0.043975830078125,
0.01218414306640625,
-0.06988525390625,
-0.055145263671875,
-0.0074310302734375,
0.037811279296875,
0.01068878173828125,
0.0174407958984375,
-0.023956298828125,
-0.0112457275390625,
-0.029632568359375,
0.000621795654296875,
-0.0218658447265625,
-0.0574951171875,
-0.015655517578125,
0.005527496337890625,
-0.0452880859375,
-0.056610107421875,
-0.07342529296875,
-0.006862640380859375,
-0.0018358230590820312,
-0.0160675048828125,
-0.02392578125,
0.0249176025390625,
-0.00843048095703125,
0.0032176971435546875,
-0.0295257568359375,
-0.006183624267578125,
-0.0018405914306640625,
0.0416259765625,
-0.03179931640625,
-0.042388916015625,
-0.05609130859375,
0.029266357421875,
-0.06744384765625,
0.024993896484375,
0.0660400390625,
-0.020294189453125,
-0.07086181640625,
0.0333251953125,
0.01751708984375,
0.0626220703125,
-0.0180816650390625,
-0.028167724609375,
-0.0271148681640625,
0.06146240234375,
0.00330352783203125,
-0.09002685546875,
-0.0134124755859375,
-0.0278167724609375,
0.034576416015625,
0.053924560546875,
-0.054595947265625,
-0.0306396484375,
-0.057098388671875,
-0.06500244140625,
0.0399169921875,
0.023040771484375,
-0.042022705078125,
-0.0219573974609375,
-0.0014972686767578125,
-0.0237884521484375,
0.051422119140625,
0.01058197021484375,
-0.0233306884765625,
-0.01056671142578125,
0.01318359375,
0.004306793212890625,
0.0384521484375,
0.03302001953125,
-0.0108642578125,
-0.040863037109375,
-0.0243377685546875,
-0.0263519287109375,
0.01210784912109375,
-0.003116607666015625,
0.001949310302734375,
-0.039794921875,
-0.0007781982421875,
-0.07635498046875,
-0.08367919921875,
-0.036376953125,
0.02618408203125,
0.005100250244140625,
-0.0667724609375,
-0.035186767578125,
-0.038055419921875,
0.0305938720703125,
0.0230865478515625,
-0.00115966796875,
-0.0099029541015625,
-0.01049041748046875,
-0.0286712646484375,
0.0037670135498046875,
-0.008819580078125,
-0.0115966796875,
-0.037841796875,
-0.00530242919921875,
-0.0027313232421875,
-0.0126953125,
0.0118408203125,
-0.0235748291015625,
-0.050323486328125,
-0.0172882080078125,
-0.033599853515625,
0.0241241455078125,
-0.07171630859375,
-0.055938720703125,
0.09381103515625,
-0.065185546875,
-0.03692626953125,
0.026031494140625,
0.0284271240234375,
0.00921630859375,
-0.0241241455078125,
-0.024169921875,
-0.047119140625,
-0.023406982421875,
0.034637451171875,
-0.0275421142578125,
0.06097412109375,
-0.03753662109375,
-0.026702880859375,
-0.033966064453125,
0.0110321044921875,
-0.00278472900390625,
0.01039886474609375,
-0.022918701171875,
0.0189208984375,
-0.0024547576904296875,
0.052337646484375,
-0.05096435546875,
0.0166473388671875,
-0.03314208984375,
0.007503509521484375,
-0.004863739013671875,
0.0400390625,
0.036651611328125,
0.0155029296875,
0.025543212890625,
0.01398468017578125,
-0.007778167724609375,
0.005092620849609375,
-0.005931854248046875,
-0.06884765625,
-0.01824951171875,
-0.0001850128173828125
] |
46b58bd860ae9b5659e780b1519bc5dd59333cf6
|
Wordpress Stackexchange
Q: Get taxonomy name of current post Hierarchical taxonomy of custom post type 'projects' > 'projects_category'.
Two example 'projects_category' hierarchies would be:
Big Corporates > 1st Company Name > A Post Title
Small Business > 2nd Company Name > Another Post Title
I can get '1st Company Name' with the following:
<?php $terms = get_the_terms($post->ID, 'projects_category');foreach($terms as $term){echo $term->name;} ?>
How can I display 'Big Corporates' or 'Small Business' as appropriate in single.php ?
A: get_ancestors() should do what you need:
So, you should do something like this:
$ancestors = get_ancestors($term_id, 'projects_category)
|
Q: Get taxonomy name of current post Hierarchical taxonomy of custom post type 'projects' > 'projects_category'.
Two example 'projects_category' hierarchies would be:
Big Corporates > 1st Company Name > A Post Title
Small Business > 2nd Company Name > Another Post Title
I can get '1st Company Name' with the following:
<?php $terms = get_the_terms($post->ID, 'projects_category');foreach($terms as $term){echo $term->name;} ?>
How can I display 'Big Corporates' or 'Small Business' as appropriate in single.php ?
A: get_ancestors() should do what you need:
So, you should do something like this:
$ancestors = get_ancestors($term_id, 'projects_category)
A: If you read this article on custom post types it should help: Revisiting Custom Post Types, Custom Taxonomies, and Permalinks
A: I've marked up anu's answer and get_ancestors explanation, however this is how I solved it:
<?php
$terms = wp_get_object_terms($post->ID, 'projects_category', array('orderby' => 'term_id', 'order' => 'ASC') );
if ( !empty( $terms ) ) :
$project = array();
foreach ( $terms as $term ) {
$project[] = $term->name;
}
echo '<h1>'.$project[0].'</h1>';
echo '<h2>'.$project[1].'</h2>';
endif;
?>
A: This is very good code for get taxonomy title in detail page or single page in custom post type in WordPress,
<?php $terms = get_the_terms($post->ID, 'projects_category');foreach($terms as $term){echo $term->name;} ?>
|
wordpress
|
{
"language": "en",
"length": 199,
"provenance": "stackexchange_00019.jsonl.gz:411251",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22802"
}
|
[
0.0016393661499023438,
-0.01523590087890625,
-0.0287628173828125,
-0.0191192626953125,
-0.007442474365234375,
-0.009185791015625,
-0.0070037841796875,
-0.0011243820190429688,
0.012908935546875,
0.0218048095703125,
-0.030975341796875,
0.0092315673828125,
-0.007404327392578125,
-0.0233612060546875,
-0.0080413818359375,
-0.018768310546875,
0.0474853515625,
-0.0345458984375,
0.03515625,
0.00017631053924560547,
-0.0023441314697265625,
0.035308837890625,
0.0172119140625,
-0.0033893585205078125,
0.0379638671875,
-0.03839111328125,
0.023712158203125,
-0.0307464599609375,
0.024383544921875,
-0.0312042236328125,
0.017730712890625,
0.00214385986328125,
0.0037174224853515625,
-0.032257080078125,
0.081787109375,
0.0094451904296875,
0.0296478271484375,
-0.005390167236328125,
0.051971435546875,
-0.007236480712890625,
0.029083251953125,
-0.01303863525390625,
0.007843017578125,
-0.00437164306640625,
0.01055145263671875,
-0.0638427734375,
0.04888916015625,
-0.037322998046875,
0.0146636962890625,
-0.042694091796875,
0.01904296875,
-0.0121307373046875,
0.0279693603515625,
-0.038726806640625,
-0.0316162109375,
0.00033783912658691406,
-0.0005540847778320312,
-0.019775390625,
0.037017822265625,
-0.038330078125,
-0.02801513671875,
-0.03436279296875,
0.052459716796875,
-0.002544403076171875,
-0.0247802734375,
0.0131683349609375,
0.01241302490234375,
-0.0116119384765625,
-0.005268096923828125,
-0.0275115966796875,
0.0038547515869140625,
0.006809234619140625,
0.0215301513671875,
0.0065155029296875,
-0.004146575927734375,
-0.07379150390625,
0.00855255126953125,
-0.057769775390625,
0.005588531494140625,
0.021575927734375,
-0.0164031982421875,
-0.0025997161865234375,
-0.050537109375,
0.002567291259765625,
-0.006389617919921875,
0.0194549560546875,
-0.01494598388671875,
-0.0239105224609375,
-0.029754638671875,
-0.0064544677734375,
-0.0275726318359375,
-0.0271148681640625,
-0.04864501953125,
0.050262451171875,
0.015655517578125,
-0.018707275390625,
0.032012939453125,
0.051116943359375,
-0.038818359375,
-0.01702880859375,
-0.03302001953125,
-0.0254669189453125,
-0.01320648193359375,
-0.02764892578125,
0.02740478515625,
-0.0008454322814941406,
-0.018585205078125,
-0.02471923828125,
0.0789794921875,
0.037750244140625,
0.00481414794921875,
0.0775146484375,
-0.0019235610961914062,
-0.0400390625,
0.01517486572265625,
0.046966552734375,
0.00921630859375,
0.041900634765625,
0.025146484375,
0.0218048095703125,
0.01273345947265625,
0.046295166015625,
0.0124969482421875,
-0.0138702392578125,
0.018768310546875,
0.04248046875,
-0.0185089111328125,
-0.05108642578125,
0.0196685791015625,
-0.0131683349609375,
-0.0322265625,
0.01336669921875,
0.04290771484375,
0.0252532958984375,
0.0079803466796875,
-0.003673553466796875,
-0.022857666015625,
0.0196075439453125,
0.00518035888671875,
-0.0219573974609375,
0.01715087890625,
0.017486572265625,
0.0458984375,
-0.014190673828125,
-0.010589599609375,
-0.0128631591796875,
0.0285797119140625,
0.02783203125,
-0.02734375,
-0.0017070770263671875,
0.020599365234375,
0.014251708984375,
0.02191162109375,
0.01544952392578125,
-0.054840087890625,
-0.0179290771484375,
-0.005329132080078125,
-0.0309600830078125,
0.0010528564453125,
-0.04925537109375,
0.0161590576171875,
-0.004627227783203125,
0.00666046142578125,
-0.01009368896484375,
-0.01739501953125,
0.0011444091796875,
-0.02960205078125,
0.00299835205078125,
0.0106201171875,
-0.04046630859375,
0.048095703125,
0.007659912109375,
0.0230255126953125,
-0.02374267578125,
-0.00386810302734375,
-0.0201873779296875,
-0.036376953125,
-0.00347137451171875,
0.0207977294921875,
0.040618896484375,
-0.005062103271484375,
-0.043975830078125,
-0.024627685546875,
0.0179290771484375,
-0.032806396484375,
0.00281524658203125,
0.00965118408203125,
0.0276336669921875,
0.003490447998046875,
0.0112152099609375,
0.03875732421875,
0.01227569580078125,
-0.08587646484375,
0.047119140625,
0.01409149169921875,
-0.00612640380859375,
-0.005222320556640625,
-0.001255035400390625,
-0.0013332366943359375,
-0.03973388671875,
-0.0180816650390625,
-0.0033740997314453125,
0.00708770751953125,
0.01103973388671875,
-0.007755279541015625,
0.0173492431640625,
-0.00868988037109375,
0.0207672119140625,
0.03375244140625,
0.0156402587890625,
0.0004169940948486328,
-0.007843017578125,
-0.0036182403564453125,
-0.05694580078125,
-0.06439208984375,
-0.01233673095703125,
-0.01297760009765625,
-0.03302001953125,
-0.008148193359375,
-0.01464080810546875,
-0.006992340087890625,
0.0306243896484375,
-0.0197296142578125,
0.0239410400390625,
0.043121337890625,
0.0245361328125,
-0.0218353271484375,
0.0016355514526367188,
0.036956787109375,
0.04058837890625,
-0.034759521484375,
-0.033416748046875,
0.031585693359375,
0.02655029296875,
-0.0149993896484375,
0.01456451416015625,
0.0093536376953125,
-0.03729248046875,
-0.004489898681640625,
0.03717041015625,
0.0198974609375,
0.033721923828125,
-0.0167388916015625,
0.01004791259765625,
0.054840087890625,
-0.043182373046875,
-0.026611328125,
0.005367279052734375,
0.00888824462890625,
0.03582763671875,
0.0300140380859375,
0.01494598388671875,
0.0009908676147460938,
0.02655029296875,
0.031341552734375,
0.0228424072265625,
-0.0219268798828125,
-0.044921875,
0.00033164024353027344,
0.0145721435546875,
0.0161895751953125,
-0.059783935546875,
-0.032379150390625,
-0.024810791015625,
0.058258056640625,
0.041595458984375,
0.035186767578125,
0.032684326171875,
-0.0633544921875,
0.024261474609375,
0.035003662109375,
0.03118896484375,
-0.00927734375,
0.0272979736328125,
0.060943603515625,
-0.006237030029296875,
-0.0182342529296875,
-0.0323486328125,
0.009521484375,
0.0122833251953125,
0.00336456298828125,
0.04754638671875,
-0.0222015380859375,
-0.01318359375,
-0.04718017578125,
-0.04156494140625,
0.00556182861328125,
0.052490234375,
-0.028656005859375,
-0.0275726318359375,
-0.00902557373046875,
0.030487060546875,
-0.0159454345703125,
0.019012451171875,
-0.030242919921875,
-0.0025920867919921875,
-0.04827880859375,
-0.032928466796875,
0.04443359375,
-0.025115966796875,
-0.005413055419921875,
0.05389404296875,
0.0004901885986328125,
0.02752685546875,
-0.00844573974609375,
0.006610870361328125,
-0.01343536376953125,
-0.0164337158203125,
-0.0247344970703125,
0.0064697265625,
-0.042449951171875,
0.036712646484375,
0.0200042724609375,
0.052459716796875,
-0.018096923828125,
-0.045196533203125,
0.00640869140625,
0.030548095703125,
-0.0687255859375,
-0.048797607421875,
-0.00890350341796875,
-0.055511474609375,
-0.015106201171875,
-0.01476287841796875,
-0.02911376953125,
0.008758544921875,
0.006134033203125,
-0.0016355514526367188,
0.052764892578125,
-0.0443115234375,
-0.07952880859375,
-0.05908203125,
-0.09307861328125,
-0.00826263427734375,
0.003421783447265625,
-0.0054168701171875,
0.007450103759765625,
0.0611572265625,
0.0134124755859375,
-0.047821044921875,
0.01184844970703125,
0.04473876953125,
-0.035369873046875,
0.0166015625,
-0.0116729736328125,
-0.01534271240234375,
0.01279449462890625,
0.010711669921875,
-0.037139892578125,
0.0032749176025390625,
0.00775909423828125,
-0.0082244873046875,
-0.009429931640625,
0.02593994140625,
0.0254974365234375,
-0.0020465850830078125,
-0.0005273818969726562,
0.039276123046875,
0.02880859375,
-0.0242767333984375,
-0.024322509765625,
-0.0269775390625,
-0.0362548828125,
0.002796173095703125,
0.0005316734313964844,
0.0181121826171875,
-0.0152587890625,
0.04315185546875,
-0.02813720703125,
0.0093231201171875,
-0.0347900390625,
-0.026031494140625,
0.0455322265625,
0.00616455078125,
0.005764007568359375,
0.033203125,
-0.01282501220703125,
-0.04217529296875,
0.0246124267578125,
-0.0100250244140625,
0.004497528076171875,
0.0007228851318359375,
0.00528717041015625,
0.00867462158203125,
-0.04815673828125,
0.007785797119140625,
-0.0958251953125,
0.01355743408203125,
-0.05169677734375,
0.0122528076171875,
-0.0011911392211914062,
0.074462890625,
-0.068359375,
-0.009124755859375,
-0.0116119384765625,
0.0007162094116210938,
-0.0118865966796875,
-0.052947998046875,
-0.066650390625,
-0.0208740234375,
-0.103759765625,
0.003143310546875,
0.01216888427734375,
-0.055816650390625,
-0.0089569091796875,
0.0258331298828125,
-0.084228515625,
-0.0196075439453125,
0.032073974609375,
-0.05230712890625,
0.0224151611328125,
-0.00572967529296875,
-0.0185089111328125,
0.00943756103515625,
-0.0254974365234375,
-0.033294677734375,
-0.07623291015625,
-0.00809478759765625,
0.01088714599609375,
0.012939453125,
-0.041717529296875,
0.023101806640625,
-0.016082763671875,
0.0494384765625,
0.01058197021484375,
0.03289794921875,
-0.0157928466796875,
0.0035915374755859375,
0.0027179718017578125,
-0.0105133056640625,
-0.01302337646484375,
-0.0186767578125,
-0.0201568603515625,
-0.035919189453125,
-0.017578125,
-0.0105438232421875,
-0.022308349609375,
0.0022373199462890625,
-0.0129852294921875,
0.001766204833984375,
-0.07049560546875,
-0.041900634765625,
-0.045928955078125,
-0.011505126953125,
-0.036651611328125,
0.005100250244140625,
-0.040618896484375,
-0.0888671875,
0.034332275390625,
0.024993896484375,
-0.01300811767578125,
0.0018301010131835938,
0.05157470703125,
0.0120697021484375,
-0.0278472900390625,
-0.0478515625,
0.02227783203125,
0.03143310546875,
0.00771331787109375,
0.033935546875,
-0.0013570785522460938,
-0.0310821533203125,
0.06854248046875,
0.00214385986328125,
0.01325225830078125,
0.03631591796875,
-0.0003771781921386719,
0.018035888671875,
-0.01125335693359375,
0.00372314453125,
0.0197601318359375,
-0.024658203125,
0.0095367431640625,
-0.049591064453125,
-0.01554107666015625,
-0.042083740234375,
0.06787109375,
-0.027679443359375,
0.052490234375,
-0.0509033203125,
-0.03546142578125,
0.029083251953125,
0.02349853515625,
-0.0155792236328125,
0.01291656494140625,
-0.010101318359375,
-0.003261566162109375,
-0.0285797119140625,
0.002994537353515625,
-0.029754638671875,
0.0004527568817138672,
0.0115203857421875,
0.03399658203125,
-0.04925537109375,
0.00470733642578125,
-0.0247039794921875,
-0.005340576171875,
0.03021240234375,
0.0021419525146484375,
-0.0347900390625,
0.01308441162109375,
-0.01308441162109375,
0.033111572265625,
0.01322174072265625,
0.00998687744140625,
0.031341552734375,
0.0187225341796875,
0.01218414306640625,
0.0073089599609375,
-0.04888916015625,
0.022552490234375,
-0.01407623291015625,
0.003337860107421875,
0.0264434814453125,
-0.016510009765625,
-0.007476806640625,
0.0623779296875,
0.0318603515625,
0.016571044921875,
-0.033935546875,
0.0225677490234375,
-0.0123291015625,
0.027252197265625,
0.0126953125,
-0.00785064697265625,
-0.001956939697265625,
0.01197052001953125,
0.00433349609375,
-0.04656982421875,
0.0017337799072265625,
-0.003650665283203125,
0.057525634765625,
-0.0022335052490234375,
-0.041046142578125,
0.0347900390625,
-0.028961181640625,
-0.00557708740234375,
0.002162933349609375,
0.00923919677734375,
0.0009274482727050781,
-0.01812744140625,
0.00876617431640625,
0.026580810546875,
0.01230621337890625,
-0.044403076171875,
0.053558349609375,
-0.0277099609375,
0.050018310546875,
-0.006439208984375,
-0.01519012451171875,
0.0176544189453125,
0.032470703125,
-0.052154541015625,
-0.0213165283203125,
0.014129638671875,
-0.042510986328125,
-0.0143890380859375,
-0.00200653076171875,
-0.037841796875,
0.0173492431640625,
-0.0037479400634765625,
0.08404541015625,
-0.03533935546875,
-0.051300048828125,
-0.0005106925964355469,
-0.0114593505859375,
0.07635498046875,
0.056915283203125,
-0.0518798828125,
0.014862060546875,
-0.06207275390625,
-0.005352020263671875,
0.004825592041015625,
-0.048065185546875,
-0.036407470703125,
-0.0175628662109375,
-0.0017337799072265625,
0.0138092041015625,
0.04461669921875,
0.060089111328125,
-0.014984130859375,
0.04583740234375,
-0.0260009765625,
0.04022216796875,
-0.0178680419921875,
0.08056640625,
-0.01142120361328125,
0.07586669921875,
-0.0012331008911132812,
0.02374267578125,
-0.03460693359375,
0.00013363361358642578,
0.006103515625,
-0.0894775390625,
-0.0077667236328125,
0.007785797119140625,
-0.032470703125,
0.0188140869140625,
-0.0028705596923828125,
0.00966644287109375,
0.0200347900390625,
-0.0003762245178222656,
0.01174163818359375,
0.004093170166015625,
-0.057525634765625,
0.0199737548828125,
-0.051025390625,
0.06683349609375,
-0.01313018798828125,
0.0171051025390625,
-0.001880645751953125,
-0.040191650390625,
0.03509521484375,
-0.00022649765014648438,
0.0215606689453125,
0.03466796875,
0.0010900497436523438,
-0.01230621337890625,
0.025299072265625,
0.04815673828125,
0.050750732421875,
0.0251007080078125,
0.044769287109375,
0.001827239990234375,
0.0111541748046875,
-0.017547607421875,
-0.018218994140625,
0.051361083984375,
0.00994873046875,
0.004619598388671875,
0.036834716796875,
-0.025543212890625,
-0.035614013671875,
-0.036163330078125,
0.0227203369140625,
0.0265655517578125,
0.006591796875,
0.041015625,
-0.0203094482421875,
-0.03759765625,
0.036285400390625,
-0.0423583984375,
-0.0391845703125,
-0.0193023681640625,
-0.009002685546875,
-0.00984954833984375,
-0.00495147705078125,
0.019500732421875,
0.003021240234375,
-0.0128021240234375,
0.063232421875,
0.00052642822265625,
0.00862884521484375,
-0.0306854248046875,
-0.022674560546875,
0.01189422607421875,
-0.04559326171875,
-0.00653839111328125,
0.0017042160034179688,
0.00445556640625,
-0.058563232421875,
0.036651611328125,
-0.03778076171875,
0.03057861328125,
0.04931640625,
-0.0142822265625,
-0.01561737060546875,
0.03228759765625,
-0.0272674560546875,
0.03466796875,
-0.00278472900390625,
-0.07623291015625,
0.0299072265625,
-0.002758026123046875,
-0.000339508056640625,
0.016448974609375,
-0.03271484375,
0.0003039836883544922,
-0.029266357421875,
0.0227203369140625,
-0.023956298828125,
-0.04168701171875,
0.06988525390625,
0.0005440711975097656,
-0.0293731689453125,
0.01461029052734375,
0.0156402587890625,
-0.007617950439453125,
0.035125732421875,
0.027923583984375,
-0.034637451171875,
-0.0294342041015625,
0.042388916015625,
-0.0290374755859375,
-0.0217437744140625,
0.03515625,
-0.057342529296875,
0.0714111328125,
0.020294189453125,
0.0175018310546875,
0.00846099853515625,
0.02606201171875,
-0.03680419921875,
-0.01203155517578125,
-0.045379638671875,
0.001415252685546875,
0.01366424560546875,
0.035980224609375,
-0.038238525390625,
-0.001216888427734375,
-0.0131988525390625,
0.0196990966796875,
0.036376953125,
0.00443267822265625,
-0.0272216796875,
-0.02410888671875,
0.00927734375,
0.046539306640625,
-0.01457977294921875,
0.029632568359375,
0.0189666748046875,
0.0028362274169921875,
0.04168701171875,
0.01052093505859375,
0.041229248046875,
-0.0038204193115234375,
-0.00795745849609375,
0.04827880859375,
0.018707275390625,
0.022918701171875,
-0.0206756591796875,
-0.01522064208984375,
-0.0286865234375,
-0.01580810546875,
0.040618896484375,
-0.024810791015625,
0.003147125244140625,
0.056671142578125,
0.04437255859375,
-0.01151275634765625,
-0.00070953369140625,
-0.0162200927734375,
0.048431396484375,
-0.0016469955444335938,
0.0221405029296875,
0.028900146484375,
0.0232086181640625,
0.008758544921875,
0.00737762451171875,
0.018798828125,
0.0169525146484375,
-0.0129547119140625,
0.07110595703125,
0.0123748779296875,
0.0196533203125,
-0.041595458984375,
0.002338409423828125,
0.0230255126953125,
0.0694580078125,
-0.04974365234375,
-0.051727294921875,
0.00872802734375,
0.0208740234375,
0.03814697265625,
0.0205535888671875,
0.042449951171875,
0.0765380859375,
0.099853515625,
-0.0706787109375,
-0.0132293701171875,
0.041107177734375,
0.042510986328125,
-0.0171661376953125,
-0.034149169921875,
-0.030487060546875,
-0.045806884765625,
-0.0152130126953125,
-0.00432586669921875,
0.04388427734375,
0.0533447265625,
-0.0025787353515625,
0.041748046875,
-0.038818359375,
-0.0145263671875,
0.031494140625,
-0.02239990234375,
0.015869140625,
-0.0546875,
0.01497650146484375,
-0.01132965087890625,
-0.000023424625396728516,
0.017425537109375,
0.0367431640625,
0.0303802490234375,
0.06640625,
0.049346923828125,
-0.02734375,
-0.006168365478515625,
0.057098388671875,
-0.0169219970703125,
0.0092315673828125,
-0.0496826171875,
-0.01232147216796875,
-0.0023651123046875,
-0.019927978515625,
0.0103607177734375,
-0.017669677734375,
0.022979736328125,
-0.003139495849609375,
0.043182373046875,
0.005764007568359375,
0.005634307861328125,
0.049835205078125,
-0.0294189453125,
0.039276123046875,
0.00391387939453125,
-0.0699462890625,
-0.004261016845703125,
-0.033935546875,
-0.006336212158203125,
0.016082763671875,
0.019317626953125,
-0.010345458984375,
0.0194091796875,
0.01641845703125,
-0.0177764892578125,
0.00026702880859375,
0.031494140625,
0.00852203369140625,
0.061126708984375,
0.0202178955078125,
0.0305328369140625,
0.01557159423828125,
0.00740814208984375,
0.036285400390625,
0.01491546630859375,
-0.013427734375,
0.0426025390625,
-0.02410888671875,
0.00039124488830566406,
-0.033172607421875,
0.041229248046875,
-0.07562255859375,
-0.052734375,
0.0506591796875,
-0.0010728836059570312,
-0.008453369140625,
0.00139617919921875,
-0.049346923828125,
0.0069580078125,
0.0576171875,
-0.03411865234375,
0.02044677734375,
0.005725860595703125,
0.009002685546875,
-0.05303955078125,
0.032318115234375,
-0.0160675048828125,
-0.0176239013671875,
-0.042633056640625,
-0.03656005859375,
0.050628662109375,
0.043731689453125,
-0.0013837814331054688,
-0.01409912109375,
0.02276611328125,
-0.026123046875,
0.042266845703125,
0.008270263671875,
0.065673828125,
0.01995849609375,
-0.0190277099609375,
-0.04559326171875,
0.024749755859375,
-0.0028209686279296875,
-0.00749969482421875,
0.035308837890625,
0.018798828125,
0.025054931640625,
-0.03369140625,
0.0288543701171875,
-0.01276397705078125,
0.049468994140625,
-0.006443023681640625,
0.0007152557373046875,
-0.011199951171875,
0.0107574462890625,
-0.025665283203125,
-0.0259552001953125,
-0.03167724609375,
-0.019989013671875,
0.01158905029296875,
0.0135040283203125,
0.008026123046875,
-0.01020050048828125,
-0.036346435546875,
-0.0261688232421875,
0.04376220703125,
0.006687164306640625,
0.0118408203125,
-0.0006308555603027344,
-0.027313232421875,
-0.038848876953125,
0.046875,
-0.03143310546875,
0.0032939910888671875,
0.019775390625,
-0.01678466796875,
0.01393890380859375,
-0.0273284912109375,
-0.0189208984375,
-0.008544921875,
0.00998687744140625,
0.0175933837890625,
-0.0089263916015625,
-0.03192138671875,
0.016845703125,
0.009674072265625,
0.060516357421875,
0.0136871337890625,
-0.004261016845703125,
-0.006786346435546875,
-0.00635528564453125,
-0.049591064453125,
-0.052581787109375,
0.058197021484375,
-0.0819091796875,
-0.054443359375,
-0.00103759765625,
0.01499176025390625,
0.031829833984375,
-0.02545166015625,
-0.0310211181640625,
0.034912109375,
0.0008492469787597656,
-0.042083740234375,
0.00351715087890625,
-0.01004791259765625,
-0.007633209228515625,
0.0087127685546875,
0.01209259033203125,
-0.037384033203125,
-0.01212310791015625,
0.01035308837890625,
0.004154205322265625,
0.06488037109375,
0.005828857421875,
0.01380157470703125,
-0.02801513671875,
-0.0068511962890625,
-0.030548095703125,
-0.0160980224609375,
0.01407623291015625,
0.0164337158203125,
-0.006866455078125,
0.02166748046875,
-0.04913330078125,
0.00457763671875,
-0.0127716064453125,
0.026641845703125,
0.021331787109375,
-0.054962158203125,
-0.035614013671875,
-0.059295654296875,
0.0253448486328125,
-0.007534027099609375,
0.01187896728515625,
0.01276397705078125,
-0.041412353515625,
-0.024810791015625,
-0.062164306640625,
-0.007808685302734375,
0.041595458984375,
-0.06890869140625,
0.00499725341796875,
0.0091705322265625,
-0.0035572052001953125,
0.0015716552734375,
0.0067596435546875,
-0.0243377685546875,
-0.01004791259765625,
0.00262451171875,
-0.01509857177734375,
-0.045440673828125,
0.0160064697265625,
-0.0384521484375,
-0.004657745361328125,
-0.0732421875,
-0.006404876708984375,
0.0032978057861328125,
-0.07989501953125,
-0.0297088623046875,
-0.0311737060546875,
0.0185699462890625,
0.007686614990234375,
-0.01047515869140625,
0.0186920166015625,
-0.018402099609375,
0.0433349609375,
0.032806396484375,
-0.012420654296875,
0.00461578369140625,
0.0032405853271484375,
-0.005401611328125,
-0.037994384765625,
0.05712890625,
0.0126190185546875,
0.048675537109375,
0.014984130859375,
0.041748046875,
-0.002346038818359375,
0.04339599609375,
-0.0144500732421875,
-0.03216552734375,
0.0032367706298828125,
-0.035797119140625,
-0.0103607177734375,
-0.01739501953125,
-0.049072265625,
-0.039947509765625,
0.0032444000244140625,
0.052490234375,
-0.02362060546875,
0.02081298828125
] |
776ac9bbb75645c191482b749e8c82610220199e
|
Wordpress Stackexchange
Q: wp_nav_menu, add class to every nth item? is there a way to add a class to every nth item in a menu using wp_nav_menu?
Trying to create columns but need to add a 'last' class to the 3rd item.
cheers! Dc
A: You can use jQuery to do that. Try this in your header :
$(document).ready(function() {
$("#mymenu li:nth-child(3n+3)").addClass("last");
});
Note : for this to work you need to have enqueued jQuery.
|
Q: wp_nav_menu, add class to every nth item? is there a way to add a class to every nth item in a menu using wp_nav_menu?
Trying to create columns but need to add a 'last' class to the 3rd item.
cheers! Dc
A: You can use jQuery to do that. Try this in your header :
$(document).ready(function() {
$("#mymenu li:nth-child(3n+3)").addClass("last");
});
Note : for this to work you need to have enqueued jQuery.
A: Nth is already a class, it's a pseudo class.
Why don't you just change whatever css applied to .last and apply it to #nav li:nth-child(3). If you need to target every third menu item it would be #nav li:nth-child(3n+3)
Edit:
Oh yah I forgot to mention support for those pesky stone age browsers.
Luckily there are some good javascript libraries and jQuery plugins that add css3 support to IE < 9
*
*jQuery Extended Selectors
*Selecivizr
*ie7js
A: got this working like this in the end...
function add_nthclass($items, $args){
$scb = get_object_vars($args);
switch($scb['menu']) {
case 'mainpages':
$nth = 2;
$items = explode('</li>',$items);
$newitems = array();
// loop through the menu items, and add the new link at the right position
foreach($items as $index => $item) {
if(($index+1) % $nth == 0){
$newitems[] = str_replace('class="', 'class="last ', $item);
}else{
$newitems[]= $item;
}
}
// finally put all the menu items back together into a string using the ending <li> tag and return
$newitems = implode('</li>',$newitems);
case 'footer':
// footer menu nth funcs...
default:
$newitems = $items;
} // End switch
return $newitems;
}
add_filter('wp_nav_menu_items', 'add_nthclass', 10, 2);
A: If you just want to add class .last to the last menu item, this is a much shorter way to do it:
/**********************************************************/
/* add .last to last menu item */
/**********************************************************/
add_filter('wp_nav_menu', 'add_last');
function add_last($output) {
$output = substr_replace($output, 'class="last menu-item', strripos($output, 'class="menu-item'), strlen('class="menu-item'));
return $output;
};
If you also have submenus, you can use the following code (thanks to this article).
add_filter('wp_nav_menu', 'add_last');
function add_last($menuHTML) {
$last_items_ids = array();
// Get all custom menus
$menus = wp_get_nav_menus();
// For each menu find last items
foreach ( $menus as $menu_maybe ) {
// Get items of specific menu
if ( $menu_items = wp_get_nav_menu_items($menu_maybe->term_id) ) {
$items = array();
foreach ( $menu_items as $menu_item ) {
$items[$menu_item->menu_item_parent][] .= $menu_item->ID;
}
// Find IDs of last items
foreach ( $items as $item ) {
$last_items_ids[] .= end($item);
}
}
}
foreach( $last_items_ids as $last_item_id ) {
$items_add_class[] .= ' menu-item-'.$last_item_id;
$replacement[] .= ' menu-item-'.$last_item_id . ' last';
}
$menuHTML = str_replace($items_add_class, $replacement, $menuHTML);
return $menuHTML;
};
|
wordpress
|
{
"language": "en",
"length": 426,
"provenance": "stackexchange_00019.jsonl.gz:411254",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22809"
}
|
[
0.05535888671875,
0.0171051025390625,
-0.016937255859375,
-0.04193115234375,
0.045166015625,
-0.0360107421875,
0.043365478515625,
-0.0328369140625,
-0.01340484619140625,
0.00394439697265625,
-0.056793212890625,
0.006603240966796875,
-0.0216522216796875,
-0.00046563148498535156,
-0.012176513671875,
-0.06695556640625,
0.036102294921875,
-0.03411865234375,
0.0142974853515625,
0.0068359375,
-0.01934814453125,
0.0235443115234375,
0.04632568359375,
0.0577392578125,
0.020904541015625,
-0.04266357421875,
0.0015583038330078125,
-0.006275177001953125,
0.02178955078125,
0.007022857666015625,
0.0177001953125,
-0.01056671142578125,
-0.00751495361328125,
0.040771484375,
0.0159912109375,
-0.005352020263671875,
0.04345703125,
0.0012226104736328125,
0.033416748046875,
0.0184478759765625,
0.0214385986328125,
0.0037059783935546875,
-0.012054443359375,
0.034454345703125,
-0.038330078125,
-0.03887939453125,
0.0132598876953125,
-0.0204925537109375,
0.0258941650390625,
-0.04022216796875,
0.005970001220703125,
0.0157928466796875,
0.00965118408203125,
-0.0294189453125,
0.00443267822265625,
0.04052734375,
-0.031707763671875,
-0.016845703125,
0.017242431640625,
0.02349853515625,
0.0013580322265625,
-0.007625579833984375,
0.011199951171875,
-0.0177459716796875,
-0.007198333740234375,
0.00005340576171875,
0.0024662017822265625,
0.0206298828125,
-0.0550537109375,
-0.0148773193359375,
0.031982421875,
-0.02740478515625,
-0.0102386474609375,
-0.0171051025390625,
-0.00998687744140625,
-0.0308074951171875,
0.0127410888671875,
-0.02899169921875,
0.00606536865234375,
0.0274810791015625,
-0.0169525146484375,
0.0157012939453125,
-0.0301513671875,
-0.0284271240234375,
0.0094146728515625,
-0.01520538330078125,
-0.02587890625,
-0.00006139278411865234,
0.006298065185546875,
-0.031158447265625,
-0.007091522216796875,
0.0109710693359375,
0.02203369140625,
-0.004573822021484375,
-0.036956787109375,
-0.031158447265625,
-0.022064208984375,
0.03143310546875,
-0.00817108154296875,
0.033538818359375,
-0.014007568359375,
-0.0306854248046875,
0.051177978515625,
-0.0599365234375,
-0.011962890625,
0.04791259765625,
0.0242462158203125,
-0.003017425537109375,
0.00891876220703125,
0.00800323486328125,
-0.01174163818359375,
0.033905029296875,
0.01605224609375,
-0.0142364501953125,
-0.01885986328125,
-0.00733184814453125,
-0.0259857177734375,
0.026885986328125,
0.01151275634765625,
-0.0016880035400390625,
-0.007587432861328125,
-0.0024394989013671875,
-0.004886627197265625,
0.0237579345703125,
-0.025421142578125,
-0.01380157470703125,
-0.01406097412109375,
-0.0027065277099609375,
0.018707275390625,
-0.01421356201171875,
-0.0280609130859375,
0.037567138671875,
0.043853759765625,
0.00955963134765625,
-0.002353668212890625,
0.0027866363525390625,
0.0408935546875,
-0.026824951171875,
0.0025882720947265625,
-0.0015850067138671875,
-0.00009882450103759766,
0.009613037109375,
0.0171661376953125,
-0.019439697265625,
0.039337158203125,
0.0272064208984375,
0.016937255859375,
-0.0165863037109375,
0.0191802978515625,
0.0006208419799804688,
-0.0090789794921875,
-0.0205841064453125,
0.033477783203125,
0.026397705078125,
-0.06793212890625,
0.03228759765625,
-0.0006618499755859375,
-0.006153106689453125,
-0.0489501953125,
-0.0251312255859375,
-0.038177490234375,
-0.01049041748046875,
0.0299224853515625,
-0.06658935546875,
-0.0736083984375,
0.02276611328125,
-0.047210693359375,
-0.027679443359375,
0.03326416015625,
-0.0307159423828125,
-0.03472900390625,
-0.036407470703125,
0.0567626953125,
0.0140228271484375,
-0.0182037353515625,
0.07635498046875,
0.02276611328125,
0.01157379150390625,
0.006866455078125,
0.016845703125,
-0.0340576171875,
-0.05694580078125,
0.009124755859375,
-0.015045166015625,
-0.03826904296875,
-0.00930023193359375,
0.021728515625,
0.07861328125,
0.0254058837890625,
0.0340576171875,
0.01947021484375,
-0.039031982421875,
-0.053497314453125,
-0.005184173583984375,
0.0245361328125,
-0.0013608932495117188,
-0.035797119140625,
-0.00948333740234375,
-0.001537322998046875,
-0.0037841796875,
-0.01508331298828125,
0.01242828369140625,
-0.01351165771484375,
0.034698486328125,
-0.02276611328125,
-0.00010842084884643555,
-0.0084228515625,
0.035888671875,
-0.01088714599609375,
-0.018310546875,
0.0041656494140625,
-0.006549835205078125,
0.010284423828125,
-0.0843505859375,
-0.05267333984375,
0.0216217041015625,
-0.0075836181640625,
0.0189971923828125,
-0.04052734375,
0.00672149658203125,
-0.0404052734375,
-0.027252197265625,
-0.025726318359375,
0.03179931640625,
0.01513671875,
-0.01320648193359375,
-0.021636962890625,
-0.021209716796875,
0.006328582763671875,
0.015838623046875,
-0.0196075439453125,
0.020111083984375,
-0.0006303787231445312,
0.036376953125,
-0.012451171875,
0.0182952880859375,
-0.01062774658203125,
-0.007354736328125,
-0.00702667236328125,
0.01837158203125,
0.042510986328125,
-0.0020084381103515625,
0.0084075927734375,
-0.0285797119140625,
0.00756072998046875,
-0.04803466796875,
0.036529541015625,
-0.046173095703125,
-0.0290374755859375,
0.0266265869140625,
0.06494140625,
0.034576416015625,
-0.0150604248046875,
0.0214996337890625,
0.004199981689453125,
0.0287322998046875,
0.02227783203125,
0.0196685791015625,
0.0020198822021484375,
0.0016040802001953125,
-0.0010280609130859375,
0.0198211669921875,
-0.0168304443359375,
0.00728607177734375,
0.016998291015625,
-0.0156707763671875,
0.0219268798828125,
0.007602691650390625,
-0.01267242431640625,
-0.0252685546875,
0.0255126953125,
0.015380859375,
0.0224151611328125,
-0.0036258697509765625,
-0.07928466796875,
0.0394287109375,
0.002685546875,
0.0114288330078125,
0.027099609375,
-0.00403594970703125,
-0.0167388916015625,
0.060333251953125,
0.031036376953125,
-0.032928466796875,
-0.01412200927734375,
-0.035980224609375,
-0.0007572174072265625,
-0.06072998046875,
-0.025299072265625,
-0.031890869140625,
0.01788330078125,
0.0223236083984375,
-0.01580810546875,
0.00328826904296875,
0.0025653839111328125,
-0.0240325927734375,
0.0244903564453125,
0.05596923828125,
-0.007415771484375,
-0.0068206787109375,
-0.030303955078125,
0.0006852149963378906,
-0.032196044921875,
-0.004741668701171875,
0.00754547119140625,
0.0206298828125,
0.0034656524658203125,
0.0222625732421875,
0.00678253173828125,
-0.0169677734375,
-0.00838470458984375,
0.033599853515625,
0.023773193359375,
0.030242919921875,
0.017120361328125,
-0.04461669921875,
0.0038814544677734375,
0.0090789794921875,
-0.0755615234375,
-0.10809326171875,
0.08184814453125,
-0.02685546875,
0.006988525390625,
0.01554107666015625,
-0.03076171875,
-0.038665771484375,
0.04754638671875,
-0.0113983154296875,
-0.0031147003173828125,
-0.004467010498046875,
-0.003253936767578125,
-0.020050048828125,
-0.01233673095703125,
0.005138397216796875,
0.001445770263671875,
-0.00823211669921875,
0.004604339599609375,
0.05291748046875,
-0.006511688232421875,
-0.03759765625,
0.0006284713745117188,
0.0104827880859375,
0.01215362548828125,
0.018463134765625,
0.049591064453125,
-0.049072265625,
-0.01515960693359375,
0.0007176399230957031,
-0.027252197265625,
0.00576019287109375,
-0.01092529296875,
-0.0059814453125,
-0.03448486328125,
0.020904541015625,
-0.001148223876953125,
0.028564453125,
0.03570556640625,
0.038482666015625,
0.038055419921875,
-0.00626373291015625,
-0.02789306640625,
0.00406646728515625,
-0.011505126953125,
0.022308349609375,
0.0006055831909179688,
-0.005527496337890625,
-0.03082275390625,
0.0254669189453125,
-0.0136566162109375,
-0.0128173828125,
-0.01158905029296875,
-0.021392822265625,
0.015899658203125,
-0.01073455810546875,
-0.0129547119140625,
0.006397247314453125,
0.05438232421875,
-0.00433349609375,
-0.027374267578125,
0.0164337158203125,
0.0137786865234375,
-0.0001474618911743164,
-0.00925445556640625,
-0.07757568359375,
-0.002971649169921875,
0.0150299072265625,
-0.0203399658203125,
0.055206298828125,
-0.0161895751953125,
-0.0151824951171875,
0.00446319580078125,
0.07568359375,
-0.04791259765625,
-0.03900146484375,
-0.01551055908203125,
0.0242919921875,
-0.0021991729736328125,
-0.031768798828125,
0.00792694091796875,
-0.04241943359375,
-0.049407958984375,
0.027862548828125,
-0.00795745849609375,
-0.0091094970703125,
-0.01137542724609375,
0.007488250732421875,
-0.02581787109375,
-0.032318115234375,
0.0299072265625,
-0.032440185546875,
-0.02239990234375,
0.042938232421875,
-0.0163726806640625,
0.0035400390625,
-0.00951385498046875,
-0.0167694091796875,
-0.075439453125,
-0.00984954833984375,
-0.060791015625,
0.087646484375,
0.0164642333984375,
0.0030765533447265625,
-0.00548553466796875,
0.059783935546875,
0.050048828125,
0.0107574462890625,
0.034454345703125,
-0.00768280029296875,
0.018218994140625,
-0.01111602783203125,
0.0179901123046875,
-0.034698486328125,
0.017333984375,
-0.020965576171875,
-0.052276611328125,
-0.0238189697265625,
-0.04327392578125,
0.00445556640625,
0.005870819091796875,
-0.0189056396484375,
-0.01708984375,
-0.04571533203125,
0.012359619140625,
0.036895751953125,
0.0098724365234375,
0.028167724609375,
-0.0628662109375,
-0.0283050537109375,
-0.019744873046875,
-0.0163726806640625,
-0.007190704345703125,
0.0273590087890625,
0.0255279541015625,
0.0308380126953125,
-0.0096893310546875,
0.0025348663330078125,
0.01332855224609375,
0.021453857421875,
0.0023670196533203125,
0.044952392578125,
-0.020416259765625,
-0.021270751953125,
0.0970458984375,
-0.0090484619140625,
0.00531768798828125,
0.00360870361328125,
0.0262298583984375,
0.0140380859375,
-0.038818359375,
0.032806396484375,
-0.0069580078125,
-0.0205535888671875,
-0.001567840576171875,
0.0006413459777832031,
-0.0146636962890625,
-0.007244110107421875,
0.039337158203125,
0.0290374755859375,
-0.018280029296875,
-0.05328369140625,
-0.0311126708984375,
0.0013895034790039062,
-0.005283355712890625,
0.0604248046875,
0.050506591796875,
-0.0154266357421875,
0.052093505859375,
0.030975341796875,
-0.002536773681640625,
-0.0021800994873046875,
-0.0131378173828125,
-0.0218658447265625,
0.023681640625,
-0.01558685302734375,
-0.01355743408203125,
0.0066680908203125,
-0.01544952392578125,
0.10418701171875,
0.046600341796875,
0.004673004150390625,
-0.024078369140625,
-0.005126953125,
0.0523681640625,
-0.04046630859375,
-0.03875732421875,
0.033935546875,
0.004547119140625,
-0.00649261474609375,
-0.00115966796875,
-0.08056640625,
-0.0132904052734375,
-0.053192138671875,
0.0347900390625,
0.050018310546875,
-0.02734375,
-0.02166748046875,
0.0290374755859375,
0.06793212890625,
-0.036041259765625,
-0.01268768310546875,
-0.0027217864990234375,
-0.00775909423828125,
0.035552978515625,
0.021942138671875,
0.011199951171875,
0.003528594970703125,
0.01389312744140625,
0.0294342041015625,
-0.0143890380859375,
0.00653839111328125,
0.01611328125,
0.0196380615234375,
0.03753662109375,
0.00785064697265625,
-0.0146026611328125,
-0.0188140869140625,
-0.0008435249328613281,
0.00247955322265625,
-0.01000213623046875,
-0.0249786376953125,
0.0054779052734375,
0.006443023681640625,
0.0035190582275390625,
-0.011016845703125,
0.0075836181640625,
-0.04510498046875,
-0.005084991455078125,
-0.012481689453125,
0.0011930465698242188,
-0.021148681640625,
0.01337432861328125,
-0.00795745849609375,
-0.062347412109375,
-0.017974853515625,
0.003093719482421875,
-0.0865478515625,
-0.033599853515625,
0.0007700920104980469,
-0.026885986328125,
-0.00966644287109375,
-0.0692138671875,
0.040679931640625,
-0.0161590576171875,
0.0191802978515625,
-0.0233306884765625,
0.04461669921875,
-0.003147125244140625,
0.0211944580078125,
0.059661865234375,
-0.013092041015625,
-0.01837158203125,
-0.033721923828125,
-0.006870269775390625,
-0.024322509765625,
-0.00138092041015625,
-0.017547607421875,
0.028961181640625,
-0.005283355712890625,
0.002689361572265625,
-0.048095703125,
-0.044281005859375,
0.016754150390625,
0.06622314453125,
-0.040008544921875,
-0.0022125244140625,
0.060211181640625,
0.00566864013671875,
0.0283660888671875,
0.0178070068359375,
0.02008056640625,
-0.0253143310546875,
-0.01074981689453125,
0.033721923828125,
0.005474090576171875,
-0.036285400390625,
-0.0226593017578125,
-0.052398681640625,
-0.036468505859375,
0.048553466796875,
-0.0260772705078125,
0.038299560546875,
0.001255035400390625,
0.016021728515625,
-0.0079345703125,
-0.003093719482421875,
-0.025543212890625,
-0.0243682861328125,
0.08648681640625,
0.03265380859375,
0.08184814453125,
0.00438690185546875,
-0.02288818359375,
-0.005153656005859375,
0.0099029541015625,
0.049072265625,
-0.016571044921875,
-0.05694580078125,
0.04827880859375,
0.0111083984375,
0.00927734375,
0.0255584716796875,
-0.0014600753784179688,
0.0296630859375,
-0.0192108154296875,
-0.036865234375,
0.0223541259765625,
0.06988525390625,
0.058502197265625,
-0.02935791015625,
0.000014007091522216797,
0.01239776611328125,
-0.0306396484375,
0.0234375,
0.00568389892578125,
0.044281005859375,
-0.041473388671875,
0.0127410888671875,
-0.006832122802734375,
-0.019622802734375,
0.06011962890625,
0.027435302734375,
0.0036525726318359375,
-0.00588226318359375,
0.0203704833984375,
-0.01331329345703125,
0.01291656494140625,
0.0408935546875,
-0.008026123046875,
-0.000598907470703125,
-0.0222930908203125,
0.01079559326171875,
-0.009613037109375,
0.02166748046875,
-0.061126708984375,
-0.00399017333984375,
-0.024200439453125,
-0.045166015625,
0.0003104209899902344,
0.01068878173828125,
-0.00362396240234375,
-0.03533935546875,
0.03753662109375,
-0.027099609375,
0.0233306884765625,
0.01461029052734375,
0.037139892578125,
-0.02569580078125,
0.03515625,
-0.01322174072265625,
0.0220184326171875,
0.0196685791015625,
-0.06787109375,
-0.045379638671875,
-0.0170745849609375,
0.0276336669921875,
-0.00946044921875,
-0.033050537109375,
0.03350830078125,
-0.01629638671875,
-0.04449462890625,
0.0098876953125,
0.0071868896484375,
0.07135009765625,
-0.057586669921875,
-0.0018053054809570312,
0.0482177734375,
-0.016204833984375,
-0.032806396484375,
0.01432037353515625,
0.0218048095703125,
-0.06646728515625,
-0.0254974365234375,
0.0204010009765625,
-0.023101806640625,
-0.0128631591796875,
0.0240478515625,
-0.007404327392578125,
0.087646484375,
-0.060699462890625,
-0.01090240478515625,
0.041717529296875,
0.0450439453125,
-0.0142364501953125,
0.03912353515625,
-0.0137939453125,
0.035675048828125,
0.0003559589385986328,
0.00554656982421875,
-0.0234222412109375,
-0.005138397216796875,
0.002895355224609375,
0.040496826171875,
-0.0838623046875,
-0.029205322265625,
-0.0487060546875,
0.004611968994140625,
0.056976318359375,
0.0816650390625,
0.088623046875,
0.0003724098205566406,
-0.0260162353515625,
-0.0322265625,
0.0193634033203125,
-0.00450897216796875,
0.042205810546875,
-0.033050537109375,
-0.02764892578125,
-0.0259857177734375,
0.00838470458984375,
-0.0018062591552734375,
-0.0034923553466796875,
0.035125732421875,
-0.0738525390625,
0.0112762451171875,
0.031524658203125,
0.02239990234375,
0.00087738037109375,
0.038482666015625,
0.0098114013671875,
-0.0131988525390625,
-0.04058837890625,
-0.02630615234375,
0.026092529296875,
-0.021759033203125,
0.0141143798828125,
0.036468505859375,
0.0104217529296875,
0.034423828125,
0.038787841796875,
0.01959228515625,
0.037689208984375,
-0.0127410888671875,
0.059173583984375,
0.0205841064453125,
0.055450439453125,
-0.03558349609375,
-0.0552978515625,
-0.0014896392822265625,
0.07513427734375,
-0.0282135009765625,
-0.042816162109375,
0.004428863525390625,
-0.004329681396484375,
0.0257568359375,
0.0166778564453125,
0.05615234375,
-0.0207672119140625,
0.00437164306640625,
-0.005706787109375,
0.01345062255859375,
0.027587890625,
0.0404052734375,
0.01275634765625,
0.05084228515625,
-0.08355712890625,
-0.0245819091796875,
-0.0364990234375,
0.027099609375,
0.039642333984375,
0.058990478515625,
-0.01242828369140625,
0.0648193359375,
-0.0279388427734375,
-0.01273345947265625,
0.0013742446899414062,
0.0220794677734375,
0.01561737060546875,
-0.00589752197265625,
0.0305328369140625,
-0.006214141845703125,
-0.0019626617431640625,
-0.00977325439453125,
0.026824951171875,
0.04644775390625,
0.07928466796875,
0.03460693359375,
-0.03338623046875,
-0.006439208984375,
0.0157928466796875,
-0.0318603515625,
-0.030975341796875,
-0.01493072509765625,
0.0323486328125,
0.0518798828125,
0.01216888427734375,
0.00800323486328125,
-0.0015745162963867188,
0.070068359375,
-0.0006570816040039062,
-0.012481689453125,
0.009429931640625,
-0.0181427001953125,
0.01221466064453125,
0.005096435546875,
0.012542724609375,
0.039886474609375,
-0.10546875,
-0.0311126708984375,
-0.02618408203125,
-0.0217132568359375,
0.061279296875,
0.04730224609375,
-0.03680419921875,
0.0457763671875,
0.0628662109375,
-0.0419921875,
0.00461578369140625,
0.032745361328125,
0.02349853515625,
0.0218963623046875,
0.01934814453125,
0.0195770263671875,
-0.05865478515625,
-0.004314422607421875,
-0.039703369140625,
0.0065765380859375,
0.0589599609375,
-0.034820556640625,
0.0694580078125,
0.046478271484375,
-0.0125732421875,
0.0011205673217773438,
-0.003726959228515625,
-0.0186614990234375,
0.0139923095703125,
0.0127410888671875,
0.01519012451171875,
-0.016448974609375,
-0.04949951171875,
-0.01439666748046875,
0.045806884765625,
-0.056976318359375,
0.0114593505859375,
-0.0088958740234375,
0.01120758056640625,
-0.054595947265625,
0.036407470703125,
-0.0286102294921875,
0.016387939453125,
-0.0188751220703125,
-0.03875732421875,
0.04217529296875,
-0.008331298828125,
0.0018529891967773438,
0.0179290771484375,
0.033203125,
0.0009741783142089844,
0.0181884765625,
-0.0016422271728515625,
0.02069091796875,
0.0198211669921875,
0.00860595703125,
-0.0004200935363769531,
0.0307464599609375,
-0.01364898681640625,
0.01273345947265625,
0.015625,
-0.0014982223510742188,
0.03497314453125,
-0.08642578125,
0.040496826171875,
0.07672119140625,
0.06494140625,
-0.0254058837890625,
0.0416259765625,
0.060333251953125,
-0.02056884765625,
0.0183563232421875,
0.0030364990234375,
-0.045135498046875,
-0.048370361328125,
0.0207977294921875,
0.028656005859375,
-0.01360321044921875,
0.027740478515625,
-0.07989501953125,
0.0175933837890625,
0.020843505859375,
0.0112152099609375,
-0.0758056640625,
0.050933837890625,
-0.0126190185546875,
0.054107666015625,
-0.038543701171875,
0.02593994140625,
0.00142669677734375,
0.01422119140625,
-0.03472900390625,
-0.0207061767578125,
-0.016082763671875,
0.032073974609375,
-0.0236358642578125,
-0.007434844970703125,
-0.00865936279296875,
-0.00405120849609375,
0.022247314453125,
-0.0208587646484375,
0.00316619873046875,
0.0283660888671875,
0.034210205078125,
-0.01270294189453125,
0.013336181640625,
0.0051727294921875,
-0.00984954833984375,
-0.0419921875,
-0.0019817352294921875,
-0.04095458984375,
0.004810333251953125,
0.033599853515625,
-0.0364990234375,
-0.0055694580078125,
-0.049285888671875,
-0.03887939453125,
0.0750732421875,
0.00421905517578125,
-0.0252227783203125,
-0.018829345703125,
0.006587982177734375,
-0.02001953125,
-0.036865234375,
-0.022216796875,
0.013885498046875,
0.0239715576171875,
0.03326416015625,
-0.00762939453125,
0.09222412109375,
-0.0364990234375,
0.00290679931640625,
-0.005580902099609375,
0.025054931640625,
-0.0002815723419189453,
0.034881591796875,
-0.006992340087890625,
-0.0144805908203125,
0.015533447265625,
0.0281982421875,
-0.04449462890625,
-0.0127105712890625,
-0.004184722900390625,
0.0173187255859375,
0.0213165283203125,
-0.01043701171875,
-0.0374755859375,
-0.02978515625,
0.060028076171875,
-0.031402587890625,
0.0325927734375,
0.0018930435180664062,
0.0168609619140625,
0.009307861328125,
-0.0202178955078125,
0.0033550262451171875,
0.00835418701171875,
-0.0262298583984375,
-0.0206756591796875,
-0.0038585662841796875,
-0.0203857421875,
-0.026763916015625,
0.03399658203125,
-0.04522705078125,
0.0006155967712402344,
0.01678466796875,
0.0028324127197265625,
-0.06268310546875,
0.00908660888671875,
0.06695556640625,
-0.036407470703125,
-0.0033473968505859375,
0.00247955322265625,
0.0187835693359375,
0.0161895751953125,
-0.016510009765625,
-0.034423828125,
-0.0472412109375,
-0.027587890625,
0.0234832763671875,
-0.03399658203125,
0.033111572265625,
-0.039154052734375,
-0.01291656494140625,
-0.00502777099609375,
0.005035400390625,
0.0036830902099609375,
0.0262603759765625,
0.012847900390625,
-0.00788116455078125,
0.0093841552734375,
-0.0312042236328125,
0.0146636962890625,
0.037933349609375,
0.004756927490234375,
0.048919677734375,
0.0250701904296875,
-0.030120849609375,
0.02264404296875,
-0.0261077880859375,
-0.0007781982421875,
-0.0257415771484375,
-0.050445556640625,
-0.055267333984375,
0.0281524658203125,
0.022369384765625,
-0.02490234375,
0.030517578125
] |
08bfe76e80df2a91832c28e4462ed72e360e2a19
|
Wordpress Stackexchange
Q: Style the text before in single.php I'd like to style differently the content before the link, but in single.php.
To be more specific, all my posts on the homepage only have a summary, and the rest of the text is cut thanks to the use of the more tag. So when I click on "read more" I see the complete post, starting with the summary we previously seen on the homepage. I'd like to differentiate this summary from the rest of the text, adding it some bold for example, to show to the user what he as already read.
Unfortunately I think this is not possible. Is it ?
A: using: http://codex.wordpress.org/Function_Reference/the_content#Overriding_Archive.2FSingle_Page_Behavior
and the $strip_teaser parameter:
http://codex.wordpress.org/Function_Reference/the_content#Usage
in single.php, replace <?php the_content(); ?> with:
<?php if( strpos(get_the_content(), '<span id="more-') ) : ?>
<div class="before-more">
<?php global $more; $more=0; the_content(''); $more=1; ?>
</div>
<?php endif; ?>
<?php the_content('', true); ?>
|
Q: Style the text before in single.php I'd like to style differently the content before the link, but in single.php.
To be more specific, all my posts on the homepage only have a summary, and the rest of the text is cut thanks to the use of the more tag. So when I click on "read more" I see the complete post, starting with the summary we previously seen on the homepage. I'd like to differentiate this summary from the rest of the text, adding it some bold for example, to show to the user what he as already read.
Unfortunately I think this is not possible. Is it ?
A: using: http://codex.wordpress.org/Function_Reference/the_content#Overriding_Archive.2FSingle_Page_Behavior
and the $strip_teaser parameter:
http://codex.wordpress.org/Function_Reference/the_content#Usage
in single.php, replace <?php the_content(); ?> with:
<?php if( strpos(get_the_content(), '<span id="more-') ) : ?>
<div class="before-more">
<?php global $more; $more=0; the_content(''); $more=1; ?>
</div>
<?php endif; ?>
<?php the_content('', true); ?>
A: I solved this by creating 2 functions to split the_content() in a before and after-function:
class MyClass
{
/**
* Echo the content before the <!--more--> tag
*/
public static function getContentBeforeMore()
{
global $more;
$more = false;
the_content(false);
$more = true;
}
/**
* Echo the content after the <!--more--> tag
*/
public static function getContentAfterMore($removeMoreTag = true)
{
$content = get_the_content(null, true);
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]>', $content );
// Remove the empty paragraph with the <span id="more-.."></span>-tag:
if($removeMoreTag)
{
$content = preg_replace('/<p><span id="more-\d+"><\/span><\/p>/m', '', $content);
}
echo $content;
}
}
In a template it can be used like this:
<p class="intro"><?php MyClass::getContentBeforeMore(); ?></p>
... some other styling, like date or something ...
<?php MyClass::getContentAfterMore(); ?>
|
wordpress
|
{
"language": "en",
"length": 275,
"provenance": "stackexchange_00019.jsonl.gz:411255",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22810"
}
|
[
0.027313232421875,
-0.00732421875,
0.0031032562255859375,
-0.021026611328125,
0.0005106925964355469,
-0.032196044921875,
0.0193634033203125,
-0.0289459228515625,
-0.0258636474609375,
0.022857666015625,
-0.05035400390625,
0.009246826171875,
-0.01457977294921875,
-0.0110931396484375,
0.045196533203125,
-0.0478515625,
0.03680419921875,
-0.0135955810546875,
0.03631591796875,
0.0068817138671875,
-0.02362060546875,
0.0274810791015625,
0.047882080078125,
0.041900634765625,
0.032135009765625,
-0.044647216796875,
0.11834716796875,
-0.0235595703125,
0.043182373046875,
-0.014373779296875,
0.029510498046875,
-0.04290771484375,
0.046478271484375,
0.032501220703125,
-0.07037353515625,
0.0203704833984375,
-0.019500732421875,
-0.0066986083984375,
-0.0052337646484375,
0.004913330078125,
0.01444244384765625,
0.001224517822265625,
0.0021076202392578125,
0.02899169921875,
-0.0130767822265625,
-0.03997802734375,
0.0310516357421875,
-0.055389404296875,
0.0009899139404296875,
0.0017538070678710938,
-0.005615234375,
-0.0020771026611328125,
-0.003238677978515625,
-0.039093017578125,
0.000835418701171875,
0.034454345703125,
-0.0309906005859375,
-0.006381988525390625,
0.034454345703125,
-0.02001953125,
-0.01522064208984375,
-0.02374267578125,
0.037261962890625,
0.01241302490234375,
-0.021453857421875,
0.01129150390625,
0.023834228515625,
0.0020008087158203125,
-0.03253173828125,
-0.0225067138671875,
0.00913238525390625,
-0.00897216796875,
-0.01116943359375,
-0.0626220703125,
-0.00969696044921875,
0.053985595703125,
-0.050079345703125,
-0.0406494140625,
0.0253753662109375,
-0.0239410400390625,
0.001190185546875,
0.0165252685546875,
-0.042510986328125,
-0.0523681640625,
0.02874755859375,
-0.0380859375,
-0.0231170654296875,
-0.001434326171875,
-0.0292205810546875,
-0.019317626953125,
-0.0301513671875,
-0.0203857421875,
0.022705078125,
-0.035858154296875,
-0.0458984375,
-0.0176239013671875,
0.00891876220703125,
0.05792236328125,
0.005859375,
-0.001110076904296875,
0.0153350830078125,
-0.036895751953125,
0.00690460205078125,
-0.033416748046875,
0.01332855224609375,
-0.01200103759765625,
-0.007434844970703125,
-0.00629425048828125,
0.058502197265625,
0.036285400390625,
-0.0185089111328125,
0.020538330078125,
-0.021392822265625,
0.006740570068359375,
-0.03045654296875,
0.0280609130859375,
-0.0303192138671875,
-0.0034923553466796875,
-0.014129638671875,
0.03314208984375,
0.00243377685546875,
0.022430419921875,
0.02862548828125,
-0.0430908203125,
-0.0028438568115234375,
0.0080108642578125,
-0.0060272216796875,
-0.068115234375,
0.01922607421875,
0.0162506103515625,
-0.015472412109375,
-0.0188751220703125,
-0.00597381591796875,
0.0589599609375,
0.017913818359375,
-0.0132293701171875,
-0.0080718994140625,
0.00811004638671875,
-0.0238189697265625,
0.03106689453125,
-0.0108795166015625,
-0.039581298828125,
0.004589080810546875,
-0.0297698974609375,
-0.01335906982421875,
0.027191162109375,
0.0081634521484375,
0.0028400421142578125,
-0.0243988037109375,
-0.09161376953125,
0.05426025390625,
-0.0460205078125,
0.07208251953125,
-0.018035888671875,
-0.07159423828125,
-0.03387451171875,
0.0030345916748046875,
-0.03411865234375,
-0.035614013671875,
-0.05743408203125,
0.043853759765625,
-0.00771331787109375,
-0.024200439453125,
-0.0216217041015625,
-0.0562744140625,
-0.01203155517578125,
-0.031707763671875,
-0.016143798828125,
0.0142364501953125,
-0.022369384765625,
-0.0240936279296875,
0.0002359151840209961,
0.037017822265625,
-0.0063018798828125,
-0.0106048583984375,
0.03228759765625,
-0.0039043426513671875,
0.0186920166015625,
0.0259552001953125,
0.0244903564453125,
-0.0223236083984375,
-0.034393310546875,
0.05816650390625,
-0.03936767578125,
-0.063232421875,
0.0166015625,
0.012603759765625,
0.0711669921875,
0.04364013671875,
0.0254669189453125,
0.014190673828125,
-0.02313232421875,
-0.036407470703125,
0.006931304931640625,
-0.011383056640625,
-0.01309967041015625,
-0.0032329559326171875,
-0.0041961669921875,
-0.01715087890625,
0.0108489990234375,
0.0185546875,
-0.005565643310546875,
-0.00777435302734375,
-0.01885986328125,
-0.0462646484375,
-0.0286407470703125,
-0.0175933837890625,
0.029144287109375,
-0.060638427734375,
0.00023448467254638672,
0.0279388427734375,
0.005950927734375,
0.00937652587890625,
-0.08941650390625,
-0.01416778564453125,
-0.008636474609375,
0.035003662109375,
0.01419830322265625,
0.0229949951171875,
0.0177459716796875,
0.057769775390625,
-0.02099609375,
0.018096923828125,
0.0523681640625,
0.0654296875,
-0.01277923583984375,
-0.01293182373046875,
-0.0225372314453125,
0.0075225830078125,
0.01078033447265625,
-0.056854248046875,
0.01319122314453125,
0.0589599609375,
0.036102294921875,
-0.03436279296875,
0.01528167724609375,
0.02117919921875,
-0.01849365234375,
-0.01274871826171875,
0.0285797119140625,
0.0369873046875,
0.062469482421875,
0.0029773712158203125,
0.00218963623046875,
0.07952880859375,
0.0081634521484375,
0.03521728515625,
-0.043487548828125,
0.0114898681640625,
0.032379150390625,
-0.006008148193359375,
0.00963592529296875,
0.017333984375,
-0.043975830078125,
0.0214691162109375,
0.039154052734375,
0.002628326416015625,
0.0299835205078125,
-0.05108642578125,
0.037353515625,
0.0014553070068359375,
0.0662841796875,
0.021270751953125,
0.0062103271484375,
0.02789306640625,
0.0103607177734375,
0.03173828125,
0.0281524658203125,
-0.00916290283203125,
-0.011474609375,
0.00946044921875,
0.037872314453125,
-0.0273590087890625,
0.00473785400390625,
-0.0029773712158203125,
-0.03350830078125,
-0.03863525390625,
0.0205841064453125,
-0.0254669189453125,
-0.017364501953125,
-0.004352569580078125,
0.0185546875,
-0.005115509033203125,
-0.004962921142578125,
0.00774383544921875,
-0.05718994140625,
0.0009026527404785156,
0.0113067626953125,
0.040130615234375,
0.0038318634033203125,
0.025634765625,
0.019378662109375,
-0.04833984375,
0.057373046875,
-0.009552001953125,
-0.028167724609375,
-0.0302734375,
-0.049072265625,
0.03936767578125,
-0.0338134765625,
0.048858642578125,
0.0780029296875,
-0.00013935565948486328,
0.005130767822265625,
0.0029506683349609375,
0.005023956298828125,
0.01459503173828125,
-0.017059326171875,
-0.0255889892578125,
0.00913238525390625,
-0.06988525390625,
-0.00506591796875,
0.03515625,
0.037139892578125,
0.01690673828125,
-0.0278472900390625,
-0.0028018951416015625,
0.0270843505859375,
-0.0294647216796875,
-0.041748046875,
0.0111083984375,
-0.08245849609375,
0.0072174072265625,
0.0012416839599609375,
-0.03704833984375,
-0.021240234375,
0.051513671875,
-0.003589630126953125,
-0.0175323486328125,
-0.03936767578125,
-0.04254150390625,
-0.055694580078125,
-0.0845947265625,
0.0023136138916015625,
-0.001110076904296875,
0.0223236083984375,
0.0171356201171875,
-0.0008139610290527344,
0.0193328857421875,
-0.01142120361328125,
0.015838623046875,
0.030792236328125,
-0.02935791015625,
-0.0308074951171875,
0.002735137939453125,
-0.005260467529296875,
-0.05218505859375,
0.01447296142578125,
-0.0014667510986328125,
0.00916290283203125,
-0.01026153564453125,
-0.00337982177734375,
-0.0182342529296875,
0.03485107421875,
0.0007219314575195312,
0.061553955078125,
0.0438232421875,
0.029571533203125,
0.0293731689453125,
-0.0250244140625,
-0.037261962890625,
0.0276031494140625,
-0.049774169921875,
0.0182647705078125,
0.059173583984375,
-0.039215087890625,
-0.0159149169921875,
0.01190185546875,
-0.0134124755859375,
-0.002346038818359375,
0.005077362060546875,
-0.01812744140625,
0.00464630126953125,
-0.00965118408203125,
-0.0300750732421875,
0.0067596435546875,
-0.01708984375,
-0.01189422607421875,
0.0069732666015625,
-0.01537322998046875,
0.03778076171875,
-0.00482177734375,
0.00034046173095703125,
-0.037994384765625,
-0.037384033203125,
0.0210418701171875,
-0.04046630859375,
0.02850341796875,
-0.054901123046875,
-0.0162200927734375,
-0.02777099609375,
0.0606689453125,
-0.060455322265625,
-0.00958251953125,
0.005733489990234375,
0.0168304443359375,
-0.0234832763671875,
-0.01018524169921875,
-0.040252685546875,
0.0021839141845703125,
-0.08953857421875,
0.04150390625,
-0.0072174072265625,
-0.005855560302734375,
-0.043060302734375,
0.039337158203125,
-0.0662841796875,
-0.0278167724609375,
0.0355224609375,
-0.023193359375,
-0.021636962890625,
0.041961669921875,
-0.04559326171875,
0.0203094482421875,
-0.02386474609375,
-0.0450439453125,
-0.05364990234375,
-0.0211334228515625,
-0.0106048583984375,
0.055999755859375,
0.01861572265625,
0.007022857666015625,
-0.00611114501953125,
0.057525634765625,
0.0264739990234375,
-0.0031032562255859375,
0.025177001953125,
-0.030426025390625,
0.038848876953125,
0.00506591796875,
0.0042572021484375,
-0.0276947021484375,
-0.0157623291015625,
0.0029754638671875,
-0.0261993408203125,
0.0711669921875,
-0.00958251953125,
0.0031299591064453125,
0.0245361328125,
-0.0027561187744140625,
-0.03826904296875,
-0.042449951171875,
-0.0024700164794921875,
0.04156494140625,
-0.01837158203125,
0.02532958984375,
-0.04888916015625,
-0.062164306640625,
0.00826263427734375,
0.01373291015625,
-0.0311431884765625,
0.0120697021484375,
0.025177001953125,
0.031341552734375,
-0.01403045654296875,
-0.0228729248046875,
-0.01203155517578125,
0.044921875,
0.002506256103515625,
-0.003635406494140625,
-0.0247802734375,
-0.053497314453125,
0.10357666015625,
0.00894927978515625,
0.019744873046875,
0.005283355712890625,
0.05181884765625,
-0.0022335052490234375,
-0.0377197265625,
0.044891357421875,
0.0147857666015625,
-0.0309906005859375,
-0.01806640625,
0.0084686279296875,
0.0019683837890625,
0.046295166015625,
0.004741668701171875,
-0.0088043212890625,
0.0259552001953125,
0.0103302001953125,
-0.005096435546875,
-0.00836944580078125,
0.05328369140625,
0.026123046875,
0.027374267578125,
0.01464080810546875,
0.01202392578125,
0.0440673828125,
-0.007526397705078125,
-0.0043792724609375,
-0.004787445068359375,
-0.01351165771484375,
0.011993408203125,
-0.003223419189453125,
-0.01800537109375,
-0.005397796630859375,
-0.01885986328125,
0.0943603515625,
0.048004150390625,
-0.032928466796875,
0.01271820068359375,
-0.01058197021484375,
0.02630615234375,
-0.037261962890625,
0.033966064453125,
0.01102447509765625,
-0.02593994140625,
0.0093994140625,
0.0103607177734375,
0.0047607421875,
-0.01123046875,
-0.01224517822265625,
0.0032024383544921875,
0.0301971435546875,
-0.0279083251953125,
0.03289794921875,
0.010955810546875,
-0.03509521484375,
0.040008544921875,
-0.005054473876953125,
0.0041961669921875,
-0.000043511390686035156,
0.012451171875,
0.01139068603515625,
0.0301513671875,
0.0066375732421875,
-0.0184173583984375,
0.03369140625,
-0.03271484375,
-0.024169921875,
0.041290283203125,
0.0242767333984375,
-0.03253173828125,
-0.01157379150390625,
0.005878448486328125,
-0.0008563995361328125,
-0.0051116943359375,
-0.0040740966796875,
0.039642333984375,
-0.01425933837890625,
0.011444091796875,
0.051177978515625,
0.0124359130859375,
0.03802490234375,
-0.00699615478515625,
0.01389312744140625,
-0.00788116455078125,
0.0160675048828125,
0.0175018310546875,
-0.0213775634765625,
-0.004520416259765625,
-0.01055145263671875,
0.00994873046875,
-0.0253753662109375,
-0.03143310546875,
0.010406494140625,
-0.0013513565063476562,
-0.021881103515625,
-0.006877899169921875,
0.033843994140625,
0.0006031990051269531,
0.05938720703125,
-0.043304443359375,
-0.02752685546875,
-0.0985107421875,
0.00655364990234375,
0.021026611328125,
0.01552581787109375,
-0.031707763671875,
0.03448486328125,
-0.057769775390625,
-0.0165252685546875,
-0.04412841796875,
-0.0701904296875,
-0.04156494140625,
-0.0265960693359375,
0.007266998291015625,
-0.01030731201171875,
-0.01064300537109375,
-0.0253143310546875,
-0.05023193359375,
0.044586181640625,
0.043548583984375,
0.044708251953125,
-0.02398681640625,
0.0640869140625,
0.047393798828125,
0.04730224609375,
0.028289794921875,
0.0391845703125,
-0.0024623870849609375,
-0.013427734375,
-0.0038814544677734375,
-0.0238037109375,
-0.01470184326171875,
-0.002170562744140625,
0.0260467529296875,
0.02679443359375,
0.034515380859375,
0.008026123046875,
0.0196380615234375,
0.0046539306640625,
0.0018835067749023438,
-0.02593994140625,
-0.02960205078125,
-0.0052642822265625,
-0.0177154541015625,
0.01071929931640625,
-0.0014772415161132812,
0.020263671875,
-0.005466461181640625,
-0.031097412109375,
0.00505828857421875,
0.00836181640625,
0.01526641845703125,
0.017242431640625,
-0.0174102783203125,
0.019317626953125,
0.0679931640625,
-0.026397705078125,
0.0452880859375,
0.01806640625,
0.007152557373046875,
0.07501220703125,
-0.0262451171875,
0.02044677734375,
0.00930023193359375,
0.050811767578125,
-0.006565093994140625,
0.02838134765625,
0.054931640625,
0.0003616809844970703,
0.033111572265625,
0.04840087890625,
0.08172607421875,
-0.0771484375,
0.0052032470703125,
0.0210113525390625,
-0.0179290771484375,
0.04638671875,
0.01491546630859375,
-0.0078582763671875,
-0.02276611328125,
0.05853271484375,
-0.038543701171875,
0.018798828125,
0.0235748291015625,
-0.03485107421875,
0.00554656982421875,
-0.0197296142578125,
0.0083465576171875,
0.0052032470703125,
-0.07110595703125,
0.0206756591796875,
0.035003662109375,
0.00955963134765625,
-0.0321044921875,
-0.0168304443359375,
0.00756072998046875,
-0.041778564453125,
-0.0523681640625,
-0.008056640625,
-0.0005168914794921875,
-0.0011386871337890625,
0.0034046173095703125,
-0.00157928466796875,
-0.021270751953125,
0.0260009765625,
-0.024627685546875,
0.0178070068359375,
-0.00748443603515625,
-0.031402587890625,
-0.0023021697998046875,
-0.0206146240234375,
0.01244354248046875,
0.001354217529296875,
-0.03350830078125,
0.023223876953125,
-0.0140228271484375,
-0.0231781005859375,
-0.01175689697265625,
0.0096435546875,
0.0670166015625,
-0.04144287109375,
-0.030181884765625,
0.0208282470703125,
0.0162811279296875,
-0.0027790069580078125,
-0.0216522216796875,
0.0257415771484375,
-0.05987548828125,
-0.01383209228515625,
0.00460052490234375,
-0.017974853515625,
-0.0009350776672363281,
-0.043487548828125,
-0.0880126953125,
0.076904296875,
-0.0094451904296875,
0.04754638671875,
0.01073455810546875,
0.01678466796875,
-0.035888671875,
-0.02264404296875,
-0.03314208984375,
0.060577392578125,
-0.0186767578125,
0.018157958984375,
-0.05926513671875,
-0.007434844970703125,
-0.0034427642822265625,
0.0246734619140625,
0.041900634765625,
0.00907135009765625,
-0.026519775390625,
0.01580810546875,
0.06903076171875,
0.0330810546875,
0.00556182861328125,
0.01374053955078125,
-0.005687713623046875,
0.01288604736328125,
-0.0008721351623535156,
-0.03607177734375,
0.020263671875,
-0.028900146484375,
-0.015899658203125,
0.03021240234375,
0.037353515625,
0.0307769775390625,
0.043548583984375,
0.02880859375,
-0.09027099609375,
0.0338134765625,
0.0802001953125,
-0.0295562744140625,
-0.00775146484375,
0.08856201171875,
0.0242462158203125,
-0.01776123046875,
0.01416778564453125,
-0.046966552734375,
0.04937744140625,
-0.0098114013671875,
0.020355224609375,
0.030242919921875,
0.007518768310546875,
0.034759521484375,
0.0242156982421875,
0.0018405914306640625,
0.0113677978515625,
0.036041259765625,
0.0155029296875,
0.028717041015625,
0.0016317367553710938,
-0.038330078125,
-0.0146636962890625,
0.0282135009765625,
0.044586181640625,
-0.0221099853515625,
0.042999267578125,
0.0212554931640625,
-0.01186370849609375,
-0.02960205078125,
-0.0780029296875,
-0.01448822021484375,
0.00519561767578125,
-0.035491943359375,
-0.0306854248046875,
-0.04144287109375,
0.04815673828125,
0.0256500244140625,
0.01763916015625,
0.0131988525390625,
-0.003993988037109375,
-0.0618896484375,
-0.03955078125,
0.01116180419921875,
0.0298309326171875,
0.019805908203125,
-0.00811767578125,
0.0467529296875,
0.0174713134765625,
0.00865936279296875,
0.0230560302734375,
-0.01071929931640625,
-0.0178985595703125,
-0.0285797119140625,
0.009918212890625,
-0.004520416259765625,
-0.024444580078125,
0.015777587890625,
0.0088958740234375,
-0.004863739013671875,
0.0243377685546875,
0.0299835205078125,
-0.01110076904296875,
-0.0137176513671875,
0.0135498046875,
-0.020660400390625,
-0.004955291748046875,
-0.028778076171875,
-0.00940704345703125,
0.00708770751953125,
-0.0108642578125,
0.02716064453125,
0.004230499267578125,
0.0266571044921875,
0.00341796875,
0.060516357421875,
0.00040030479431152344,
-0.0030193328857421875,
-0.024749755859375,
-0.01146697998046875,
0.0205230712890625,
0.006175994873046875,
-0.0555419921875,
0.0024814605712890625,
-0.042144775390625,
-0.03619384765625,
0.031494140625,
0.03887939453125,
-0.023651123046875,
0.0292816162109375,
-0.0157623291015625,
0.0237884521484375,
-0.0011262893676757812,
-0.06353759765625,
0.0221710205078125,
0.03533935546875,
0.0025386810302734375,
0.0244293212890625,
-0.06390380859375,
-0.038818359375,
-0.0034427642822265625,
0.046875,
-0.0013332366943359375,
0.0413818359375,
0.013763427734375,
0.031829833984375,
-0.00513458251953125,
0.034027099609375,
-0.04705810546875,
-0.06103515625,
0.06787109375,
0.0016422271728515625,
0.0244293212890625,
-0.00791168212890625,
-0.0281524658203125,
0.01467132568359375,
0.036376953125,
0.0004723072052001953,
0.041351318359375,
-0.0153045654296875,
-0.0011415481567382812,
-0.05560302734375,
0.0209503173828125,
-0.0229644775390625,
-0.007598876953125,
-0.0259552001953125,
-0.022186279296875,
0.0243682861328125,
0.003734588623046875,
0.002666473388671875,
0.030242919921875,
0.042999267578125,
-0.003284454345703125,
0.0160064697265625,
0.01148223876953125,
0.0258941650390625,
0.031463623046875,
0.0312042236328125,
-0.01324462890625,
0.0225372314453125,
-0.00794219970703125,
-0.0002923011779785156,
0.0311737060546875,
0.013427734375,
0.014801025390625,
-0.038787841796875,
0.0149993896484375,
0.01421356201171875,
0.05438232421875,
-0.00312042236328125,
0.0148468017578125,
0.0254974365234375,
-0.0136871337890625,
-0.00688934326171875,
-0.007663726806640625,
-0.0293731689453125,
-0.049957275390625,
0.0093536376953125,
0.00313568115234375,
-0.0163421630859375,
-0.038543701171875,
-0.06414794921875,
0.00739288330078125,
0.00772857666015625,
-0.00691986083984375,
-0.042938232421875,
0.0111083984375,
-0.0234527587890625,
0.041412353515625,
-0.034515380859375,
0.00572967529296875,
-0.0146484375,
-0.0001150965690612793,
-0.031341552734375,
-0.034149169921875,
-0.07086181640625,
0.026763916015625,
-0.053375244140625,
0.008697509765625,
0.051116943359375,
-0.0149383544921875,
-0.01499176025390625,
-0.01137542724609375,
-0.00945281982421875,
0.048797607421875,
-0.050201416015625,
-0.01120758056640625,
0.00901031494140625,
-0.0007176399230957031,
-0.01390838623046875,
-0.04498291015625,
0.022613525390625,
-0.040802001953125,
-0.0169677734375,
0.0167999267578125,
-0.0212249755859375,
-0.02001953125,
-0.052886962890625,
-0.07550048828125,
0.03460693359375,
-0.0038547515869140625,
-0.041473388671875,
0.00907135009765625,
-0.0281219482421875,
-0.008148193359375,
-0.046356201171875,
-0.016510009765625,
0.00005513429641723633,
-0.0230560302734375,
0.0244293212890625,
0.00554656982421875,
0.024749755859375,
0.0152587890625,
-0.021270751953125,
-0.05133056640625,
0.00783538818359375,
0.0183868408203125,
0.032135009765625,
-0.0303497314453125,
-0.0021495819091796875,
0.00347900390625,
-0.00446319580078125,
-0.042388916015625,
-0.0161895751953125,
0.0288848876953125,
0.0592041015625,
-0.01739501953125,
-0.00875091552734375,
-0.01904296875,
-0.00832366943359375,
0.04962158203125,
0.03912353515625,
0.0027713775634765625,
-0.0293121337890625,
0.0283660888671875,
0.0219879150390625,
-0.0160980224609375,
0.00540924072265625,
0.00579071044921875,
-0.04571533203125,
-0.0433349609375,
0.005031585693359375,
-0.043212890625,
0.0016651153564453125,
0.0185546875,
-0.07122802734375,
0.01418304443359375,
-0.004791259765625,
0.0250396728515625,
-0.0894775390625,
-0.04144287109375,
0.09442138671875,
-0.042633056640625,
-0.0006203651428222656,
0.013671875,
0.0146026611328125,
0.046783447265625,
0.0189971923828125,
0.019622802734375,
-0.0032749176025390625,
-0.008056640625,
0.00875091552734375,
0.028839111328125,
0.0096893310546875,
0.003826141357421875,
-0.020965576171875,
-0.0204315185546875,
-0.00975799560546875,
0.0090179443359375,
-0.01148223876953125,
-0.0013532638549804688,
-0.044097900390625,
-0.034271240234375,
0.0440673828125,
-0.0164794921875,
0.025177001953125,
-0.0041656494140625,
0.0173187255859375,
-0.0015001296997070312,
-0.005645751953125,
0.0195770263671875,
-0.004535675048828125,
0.0185394287109375,
-0.028472900390625,
0.024566650390625,
-0.045623779296875,
0.003070831298828125,
0.014251708984375,
0.017669677734375,
0.027557373046875
] |
ad01da159556d559138a51fad81e5b772de9b5f1
|
Wordpress Stackexchange
Q: Suggestion for Calendar of Events Plugin I am searching for a plugin with the following properties, any suggestions would be appreciated:
*
*All events should able to be organised either by date or subject, searchable by visiting users
and should include the capability to auto-expire.
*Each event should include a general description, venue details (date / time / area etc) and related images or videos.
*Users must be able to subscribe to an email notification mechanism which informs them about upcoming events.
*Calendar must also provide an approval workflow process prior the publishing of an event.
A: I'll give various types of calendar's, you choose any one of them as your needs.
Sample Calendar. I think some combination is too good. :)
|
Q: Suggestion for Calendar of Events Plugin I am searching for a plugin with the following properties, any suggestions would be appreciated:
*
*All events should able to be organised either by date or subject, searchable by visiting users
and should include the capability to auto-expire.
*Each event should include a general description, venue details (date / time / area etc) and related images or videos.
*Users must be able to subscribe to an email notification mechanism which informs them about upcoming events.
*Calendar must also provide an approval workflow process prior the publishing of an event.
A: I'll give various types of calendar's, you choose any one of them as your needs.
Sample Calendar. I think some combination is too good. :)
|
wordpress
|
{
"language": "en",
"length": 123,
"provenance": "stackexchange_00019.jsonl.gz:411259",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22830"
}
|
[
0.056549072265625,
0.01474761962890625,
-0.0089569091796875,
-0.05511474609375,
0.032135009765625,
-0.0201263427734375,
-0.001415252685546875,
-0.014923095703125,
0.0184478759765625,
0.0285186767578125,
0.039459228515625,
0.0098876953125,
0.00421905517578125,
-0.048248291015625,
-0.0261077880859375,
0.0006022453308105469,
0.03143310546875,
-0.0274810791015625,
-0.027496337890625,
-0.038726806640625,
0.013092041015625,
-0.01092529296875,
-0.01031494140625,
0.09979248046875,
0.051025390625,
0.005146026611328125,
0.07855224609375,
0.0030460357666015625,
0.05621337890625,
0.0250091552734375,
0.03369140625,
-0.0963134765625,
-0.005023956298828125,
0.007083892822265625,
0.04266357421875,
0.0069580078125,
0.01488494873046875,
0.009918212890625,
0.038726806640625,
-0.00737762451171875,
0.0235748291015625,
-0.0029544830322265625,
0.0021915435791015625,
0.06292724609375,
-0.00974273681640625,
-0.032989501953125,
0.0196380615234375,
-0.03466796875,
-0.005290985107421875,
-0.031646728515625,
0.0165252685546875,
-0.0226593017578125,
0.0272979736328125,
-0.05352783203125,
-0.01221466064453125,
-0.0009775161743164062,
-0.01145172119140625,
0.0100250244140625,
0.0208282470703125,
-0.0211181640625,
-0.02044677734375,
0.00756072998046875,
0.034423828125,
0.026519775390625,
-0.04144287109375,
-0.0200042724609375,
-0.042694091796875,
0.01497650146484375,
0.004749298095703125,
-0.0340576171875,
0.031097412109375,
0.0124359130859375,
-0.032379150390625,
-0.018157958984375,
0.0309600830078125,
0.0206756591796875,
-0.007640838623046875,
-0.0056915283203125,
0.0030155181884765625,
0.0347900390625,
-0.009613037109375,
0.00653839111328125,
0.0013265609741210938,
-0.0218658447265625,
0.01580810546875,
-0.006511688232421875,
-0.017791748046875,
-0.01236724853515625,
-0.0214996337890625,
-0.01168060302734375,
-0.0230865478515625,
-0.0174560546875,
-0.0526123046875,
0.019073486328125,
-0.00860595703125,
-0.01061248779296875,
0.033599853515625,
0.04827880859375,
-0.0340576171875,
-0.025299072265625,
-0.0194244384765625,
-0.0014677047729492188,
-0.076171875,
0.00464630126953125,
-0.01369476318359375,
0.0447998046875,
0.017852783203125,
0.0168609619140625,
0.003635406494140625,
0.016021728515625,
-0.0007343292236328125,
-0.007678985595703125,
0.045166015625,
0.040374755859375,
-0.0289459228515625,
-0.042938232421875,
-0.0092010498046875,
0.044403076171875,
-0.01277923583984375,
0.046112060546875,
0.020263671875,
0.029876708984375,
-0.0213470458984375,
0.0307464599609375,
-0.042724609375,
-0.013153076171875,
-0.0125885009765625,
-0.023468017578125,
-0.027374267578125,
-0.03411865234375,
-0.0269775390625,
0.044952392578125,
0.03509521484375,
0.01265716552734375,
-0.0191497802734375,
0.00763702392578125,
-0.0036773681640625,
-0.006786346435546875,
-0.0269927978515625,
0.0013885498046875,
0.01287841796875,
0.037261962890625,
0.044036865234375,
-0.007671356201171875,
0.00960540771484375,
-0.0247039794921875,
0.00267791748046875,
0.03619384765625,
0.0271759033203125,
-0.004558563232421875,
0.0104827880859375,
-0.0013456344604492188,
0.024017333984375,
-0.01025390625,
0.0185089111328125,
-0.00958251953125,
0.01097869873046875,
-0.0104522705078125,
-0.006969451904296875,
0.00508880615234375,
0.02154541015625,
0.01058197021484375,
-0.0008726119995117188,
-0.032470703125,
-0.0304412841796875,
-0.024505615234375,
-0.04345703125,
0.00666046142578125,
0.017486572265625,
-0.021026611328125,
0.0253448486328125,
0.02947998046875,
0.008056640625,
0.0169830322265625,
0.0230712890625,
-0.00997161865234375,
0.0226593017578125,
-0.035003662109375,
0.0255584716796875,
0.047149658203125,
-0.00835418701171875,
-0.007656097412109375,
0.031158447265625,
-0.03472900390625,
-0.0230865478515625,
0.00893402099609375,
-0.0032367706298828125,
-0.0145263671875,
0.00885009765625,
-0.0018701553344726562,
0.027801513671875,
0.04638671875,
0.005092620849609375,
-0.032989501953125,
-0.049468994140625,
0.0088348388671875,
0.022918701171875,
0.04742431640625,
-0.0230712890625,
-0.0018262863159179688,
0.016265869140625,
0.01336669921875,
-0.031463623046875,
-0.0003361701965332031,
-0.0254364013671875,
-0.0173797607421875,
0.0140838623046875,
0.018096923828125,
0.0177001953125,
0.0280303955078125,
-0.00800323486328125,
0.01136016845703125,
-0.005458831787109375,
-0.0295867919921875,
-0.01546478271484375,
0.01251220703125,
0.040069580078125,
0.0052642822265625,
-0.0017690658569335938,
0.0175933837890625,
0.000911712646484375,
-0.014739990234375,
-0.0145721435546875,
0.051788330078125,
0.049072265625,
0.00870513916015625,
-0.01348114013671875,
-0.0154876708984375,
0.04144287109375,
0.0174407958984375,
-0.0222015380859375,
0.00826263427734375,
0.0059814453125,
0.02117919921875,
-0.01119232177734375,
0.0181121826171875,
0.03546142578125,
-0.02935791015625,
0.0048370361328125,
0.0176239013671875,
0.008392333984375,
0.03692626953125,
0.0014600753784179688,
0.03570556640625,
0.08367919921875,
0.01189422607421875,
0.00949859619140625,
0.0233001708984375,
-0.006130218505859375,
0.02130126953125,
-0.01074981689453125,
0.01233673095703125,
0.0260009765625,
0.0255584716796875,
-0.0197906494140625,
0.049591064453125,
0.01275634765625,
-0.01953125,
-0.003398895263671875,
0.0164642333984375,
-0.0010652542114257812,
-0.00681304931640625,
-0.02789306640625,
0.001373291015625,
-0.016632080078125,
0.0161285400390625,
0.0190887451171875,
0.03265380859375,
0.01381683349609375,
-0.0036220550537109375,
0.0003726482391357422,
-0.0240325927734375,
-0.0023899078369140625,
0.058349609375,
0.02783203125,
0.0262908935546875,
-0.031829833984375,
-0.036376953125,
0.01236724853515625,
0.047088623046875,
-0.0193023681640625,
0.0027637481689453125,
-0.050506591796875,
-0.0161285400390625,
-0.00630950927734375,
-0.04718017578125,
-0.005764007568359375,
0.00701904296875,
-0.0124359130859375,
-0.034149169921875,
0.025360107421875,
-0.0166168212890625,
-0.055694580078125,
0.038787841796875,
-0.0191497802734375,
-0.055206298828125,
-0.0421142578125,
-0.03857421875,
0.049346923828125,
-0.058837890625,
0.00856781005859375,
0.055206298828125,
-0.0115814208984375,
0.0251312255859375,
-0.007297515869140625,
-0.004062652587890625,
-0.00969696044921875,
-0.0236358642578125,
-0.0491943359375,
0.035369873046875,
-0.10504150390625,
0.0131072998046875,
0.0287933349609375,
0.08404541015625,
-0.0187835693359375,
-0.059478759765625,
0.0045166015625,
0.03875732421875,
-0.031890869140625,
-0.041778564453125,
-0.041015625,
0.017852783203125,
0.003345489501953125,
0.01369476318359375,
0.0238800048828125,
-0.00676727294921875,
0.0044097900390625,
0.006481170654296875,
-0.040283203125,
-0.01253509521484375,
-0.013671875,
-0.04876708984375,
-0.020843505859375,
0.030426025390625,
-0.0036106109619140625,
0.005039215087890625,
-0.001739501953125,
0.09417724609375,
0.01522064208984375,
-0.09014892578125,
-0.0247650146484375,
0.0400390625,
-0.014923095703125,
0.0020275115966796875,
0.033233642578125,
0.0055389404296875,
-0.02142333984375,
0.0180511474609375,
0.032012939453125,
0.04364013671875,
-0.0706787109375,
0.0030879974365234375,
-0.0195159912109375,
-0.01212310791015625,
0.008544921875,
0.01502227783203125,
0.010894775390625,
0.039337158203125,
0.03375244140625,
-0.0235137939453125,
0.058349609375,
0.0076751708984375,
-0.013214111328125,
-0.0462646484375,
0.0019073486328125,
-0.0256805419921875,
0.01422882080078125,
-0.06817626953125,
0.001888275146484375,
0.00469207763671875,
0.008697509765625,
-0.00493621826171875,
0.0124359130859375,
-0.03009033203125,
-0.024017333984375,
-0.01065826416015625,
0.0212554931640625,
-0.00455474853515625,
0.00933074951171875,
-0.0021076202392578125,
0.0179595947265625,
0.00008213520050048828,
0.0296630859375,
-0.0305023193359375,
-0.050262451171875,
0.047393798828125,
-0.01395416259765625,
0.0265655517578125,
-0.04156494140625,
-0.0300445556640625,
-0.0094146728515625,
0.10113525390625,
0.01557159423828125,
-0.025177001953125,
-0.0119171142578125,
0.0023288726806640625,
-0.03289794921875,
-0.00428009033203125,
-0.024566650390625,
-0.0074310302734375,
-0.0809326171875,
0.02386474609375,
0.004085540771484375,
-0.0184326171875,
-0.01629638671875,
0.03411865234375,
-0.029296875,
-0.032501220703125,
0.00653076171875,
0.03948974609375,
-0.0257415771484375,
0.007549285888671875,
-0.02789306640625,
0.0134429931640625,
0.015533447265625,
-0.01396942138671875,
-0.040191650390625,
-0.0224761962890625,
-0.020904541015625,
0.055572509765625,
0.057403564453125,
-0.065673828125,
-0.00006771087646484375,
0.0274658203125,
0.006183624267578125,
0.016693115234375,
0.016357421875,
-0.007724761962890625,
0.03863525390625,
0.01241302490234375,
0.01486968994140625,
-0.01971435546875,
0.004070281982421875,
-0.0111083984375,
-0.03387451171875,
0.01148223876953125,
-0.0168914794921875,
-0.0028057098388671875,
0.01085662841796875,
-0.0313720703125,
0.032958984375,
0.0207977294921875,
0.00821685791015625,
0.007686614990234375,
0.010284423828125,
-0.025177001953125,
0.0179901123046875,
0.01433563232421875,
0.0260467529296875,
0.02349853515625,
-0.0245208740234375,
0.01186370849609375,
0.042266845703125,
0.0150146484375,
-0.02191162109375,
-0.064453125,
0.0135040283203125,
0.01500701904296875,
0.0235443115234375,
-0.027313232421875,
-0.0721435546875,
-0.033599853515625,
0.046783447265625,
-0.044281005859375,
0.0192108154296875,
-0.0142822265625,
0.0108184814453125,
0.0026874542236328125,
-0.024078369140625,
0.037078857421875,
0.0107879638671875,
0.023681640625,
-0.0015115737915039062,
-0.0184173583984375,
-0.007049560546875,
-0.0457763671875,
0.030914306640625,
-0.00931549072265625,
0.0404052734375,
-0.0279541015625,
-0.01139068603515625,
0.02288818359375,
0.07098388671875,
-0.037567138671875,
-0.003932952880859375,
0.00028395652770996094,
-0.026336669921875,
-0.03289794921875,
-0.0089111328125,
-0.01308441162109375,
0.013397216796875,
-0.005443572998046875,
0.016021728515625,
0.036529541015625,
0.00817108154296875,
-0.0360107421875,
-0.0003826618194580078,
0.05047607421875,
0.0021915435791015625,
-0.012420654296875,
-0.046844482421875,
-0.006805419921875,
0.021331787109375,
0.01105499267578125,
-0.0645751953125,
0.020111083984375,
0.0704345703125,
0.0166778564453125,
0.01471710205078125,
-0.05682373046875,
0.06298828125,
-0.027130126953125,
-0.0521240234375,
-0.036956787109375,
-0.025054931640625,
0.0220184326171875,
0.0019779205322265625,
-0.055938720703125,
0.013580322265625,
0.007236480712890625,
0.05780029296875,
0.0623779296875,
0.01386260986328125,
0.0215606689453125,
-0.015960693359375,
-0.0230255126953125,
-0.00537109375,
-0.02520751953125,
-0.015655517578125,
-0.00484466552734375,
-0.004604339599609375,
-0.00971221923828125,
-0.037109375,
-0.00647735595703125,
0.07171630859375,
0.01995849609375,
-0.04449462890625,
0.009490966796875,
0.05438232421875,
0.0289459228515625,
-0.0236053466796875,
-0.0172576904296875,
0.01528167724609375,
0.0704345703125,
-0.01467132568359375,
-0.0018787384033203125,
-0.056365966796875,
-0.0217437744140625,
0.05419921875,
-0.049224853515625,
-0.00830078125,
-0.01560211181640625,
-0.0249481201171875,
0.004253387451171875,
0.01361846923828125,
-0.06353759765625,
-0.0482177734375,
0.008941650390625,
-0.0005016326904296875,
0.0169525146484375,
-0.03924560546875,
0.0256195068359375,
-0.050048828125,
0.040435791015625,
-0.052276611328125,
0.0178985595703125,
0.006084442138671875,
0.010040283203125,
-0.0654296875,
-0.0231170654296875,
-0.035552978515625,
-0.03765869140625,
-0.101318359375,
-0.019866943359375,
-0.06103515625,
0.042327880859375,
0.0254058837890625,
0.02825927734375,
-0.0189208984375,
-0.041473388671875,
0.0003554821014404297,
-0.00789642333984375,
-0.00004744529724121094,
0.026947021484375,
0.0113983154296875,
0.0230865478515625,
0.00809478759765625,
0.034393310546875,
0.0008649826049804688,
-0.0142669677734375,
-0.052093505859375,
-0.003795623779296875,
-0.0012121200561523438,
-0.016265869140625,
-0.0113983154296875,
0.0203704833984375,
-0.043243408203125,
-0.01322174072265625,
0.03948974609375,
-0.00043582916259765625,
0.01140594482421875,
-0.034027099609375,
-0.00728607177734375,
-0.02783203125,
0.08197021484375,
-0.03619384765625,
0.0030269622802734375,
0.01800537109375,
-0.04254150390625,
0.0276641845703125,
0.0018396377563476562,
0.0218353271484375,
0.01094818115234375,
-0.0469970703125,
0.020263671875,
0.0165252685546875,
0.04156494140625,
-0.002716064453125,
0.00830078125,
-0.012786865234375,
0.044036865234375,
0.023193359375,
0.054229736328125,
0.044189453125,
0.003223419189453125,
0.031829833984375,
-0.035247802734375,
0.0413818359375,
-0.00936126708984375,
-0.04461669921875,
0.003753662109375,
-0.056549072265625,
-0.01224517822265625,
-0.0227508544921875,
0.005619049072265625,
-0.037384033203125,
0.036529541015625,
0.004428863525390625,
0.018890380859375,
0.028289794921875,
0.0015716552734375,
0.02435302734375,
0.042327880859375,
-0.0114898681640625,
-0.027984619140625,
-0.035003662109375,
-0.0108489990234375,
-0.0089263916015625,
0.00827789306640625,
0.01177215576171875,
0.032684326171875,
0.00002491474151611328,
-0.07611083984375,
-0.007434844970703125,
0.04150390625,
0.00029969215393066406,
-0.0242156982421875,
0.0287017822265625,
0.030181884765625,
-0.01291656494140625,
-0.07745361328125,
0.0122833251953125,
0.01160430908203125,
-0.02862548828125,
-0.01023101806640625,
-0.00064849853515625,
0.011444091796875,
0.046600341796875,
-0.0284423828125,
0.0229339599609375,
0.009368896484375,
-0.0163421630859375,
0.0263824462890625,
0.00021219253540039062,
0.0055389404296875,
0.037994384765625,
-0.035858154296875,
0.006343841552734375,
-0.0234527587890625,
0.0240936279296875,
-0.009857177734375,
-0.004680633544921875,
0.07171630859375,
-0.0447998046875,
-0.006153106689453125,
0.03326416015625,
-0.0028476715087890625,
-0.00803375244140625,
0.00197601318359375,
0.0216064453125,
-0.041595458984375,
0.006816864013671875,
0.0012187957763671875,
0.0203704833984375,
0.0142059326171875,
0.007720947265625,
-0.04644775390625,
0.07940673828125,
-0.0162811279296875,
0.013671875,
0.0207366943359375,
0.0207366943359375,
-0.0140533447265625,
0.0118255615234375,
-0.0160980224609375,
0.06451416015625,
-0.0291748046875,
0.0167694091796875,
-0.027069091796875,
0.0002665519714355469,
0.0011882781982421875,
0.011322021484375,
0.07989501953125,
0.013336181640625,
-0.007373809814453125,
0.030487060546875,
0.0484619140625,
-0.0239410400390625,
-0.05401611328125,
0.049957275390625,
0.007091522216796875,
-0.01461029052734375,
0.04571533203125,
0.0240020751953125,
0.049102783203125,
-0.04071044921875,
-0.004955291748046875,
0.0037384033203125,
-0.0399169921875,
-0.039642333984375,
-0.03656005859375,
0.00421142578125,
0.0340576171875,
-0.037841796875,
-0.038604736328125,
-0.046600341796875,
0.042816162109375,
0.016204833984375,
0.05609130859375,
-0.06689453125,
-0.001338958740234375,
-0.01372528076171875,
0.05615234375,
-0.003955841064453125,
-0.0233612060546875,
0.0310516357421875,
-0.0027027130126953125,
-0.01910400390625,
-0.006488800048828125,
-0.019378662109375,
-0.0045013427734375,
0.0045013427734375,
0.0013217926025390625,
-0.043792724609375,
0.0110626220703125,
-0.10321044921875,
-0.0711669921875,
0.033172607421875,
0.042938232421875,
0.00046563148498535156,
-0.08660888671875,
0.00357818603515625,
0.0220794677734375,
0.049346923828125,
0.04010009765625,
0.038482666015625,
-0.0609130859375,
0.044525146484375,
0.013458251953125,
0.0174560546875,
0.0177459716796875,
-0.006805419921875,
0.024169921875,
0.057373046875,
-0.051177978515625,
0.028289794921875,
-0.00507354736328125,
0.031890869140625,
-0.00102996826171875,
-0.02081298828125,
-0.0201568603515625,
0.0099029541015625,
0.0037708282470703125,
0.0149078369140625,
0.0144195556640625,
0.0440673828125,
0.0328369140625,
-0.034576416015625,
0.0257568359375,
-0.01593017578125,
-0.0181884765625,
-0.001667022705078125,
0.00922393798828125,
-0.00592041015625,
0.03936767578125,
0.04437255859375,
-0.01319122314453125,
-0.004016876220703125,
0.005809783935546875,
-0.01303863525390625,
0.034088134765625,
-0.0372314453125,
0.0364990234375,
-0.0019683837890625,
-0.019195556640625,
-0.026397705078125,
0.018646240234375,
0.03118896484375,
-0.006072998046875,
0.00019860267639160156,
-0.004528045654296875,
-0.022918701171875,
0.016326904296875,
-0.04608154296875,
0.01081085205078125,
-0.01485443115234375,
-0.055938720703125,
-0.00865936279296875,
-0.0282135009765625,
-0.015625,
0.01015472412109375,
0.0236968994140625,
0.0015783309936523438,
0.01849365234375,
-0.0184478759765625,
0.0246429443359375,
0.03802490234375,
-0.059814453125,
-0.0208740234375,
0.0129852294921875,
0.0218658447265625,
-0.006412506103515625,
-0.018402099609375,
-0.0225677490234375,
-0.0237274169921875,
0.04656982421875,
0.006366729736328125,
0.08392333984375,
-0.036041259765625,
0.020904541015625,
0.049285888671875,
-0.044281005859375,
0.0158843994140625,
0.034088134765625,
-0.003520965576171875,
-0.053619384765625,
-0.0289154052734375,
0.001140594482421875,
-0.0277862548828125,
-0.02734375,
0.05841064453125,
-0.04205322265625,
0.0012350082397460938,
-0.0186614990234375,
0.017547607421875,
-0.03302001953125,
0.021759033203125,
-0.0205230712890625,
-0.00014412403106689453,
0.0037746429443359375,
-0.0254364013671875,
0.021331787109375,
-0.00699615478515625,
-0.0033931732177734375,
0.00873565673828125,
-0.0164031982421875,
-0.0093231201171875,
0.00336456298828125,
-0.007694244384765625,
-0.00797271728515625,
0.0212249755859375,
-0.00885009765625,
-0.004497528076171875,
0.007144927978515625,
-0.0164031982421875,
0.033203125,
-0.007503509521484375,
0.05059814453125,
-0.002471923828125,
0.05078125,
-0.02386474609375,
0.00568389892578125,
0.01126861572265625,
-0.01517486572265625,
-0.0006899833679199219,
0.00232696533203125,
-0.002094268798828125,
-0.02911376953125,
-0.047698974609375,
-0.033935546875,
-0.05865478515625,
-0.002704620361328125,
0.012176513671875,
-0.04449462890625,
-0.041259765625,
-0.052154541015625,
-0.0037994384765625,
0.033355712890625,
0.0038700103759765625,
-0.0262298583984375,
0.015625,
-0.0273895263671875,
-0.014312744140625,
0.00800323486328125,
-0.04010009765625,
0.0046234130859375,
-0.00913238525390625,
0.0020771026611328125,
-0.041412353515625,
-0.054962158203125,
0.039398193359375,
-0.0280914306640625,
-0.00014197826385498047,
0.011688232421875,
-0.010009765625,
-0.037811279296875,
0.0133209228515625,
0.01088714599609375,
0.057891845703125,
0.035125732421875,
-0.0167083740234375,
0.035888671875,
-0.0071258544921875,
-0.03729248046875,
-0.0036296844482421875,
0.0251922607421875,
0.00699615478515625,
-0.0479736328125,
0.011322021484375,
-0.0292205810546875,
-0.0160369873046875,
-0.052459716796875,
-0.07940673828125,
0.09454345703125,
-0.0013294219970703125,
-0.02252197265625,
-0.0143280029296875,
0.032196044921875,
-0.00672149658203125,
-0.0012149810791015625,
-0.002651214599609375,
0.013916015625,
0.0034580230712890625,
-0.01287841796875,
0.001636505126953125,
-0.006011962890625,
0.0255279541015625,
-0.021087646484375,
-0.09228515625,
-0.0296478271484375,
-0.030181884765625,
0.0018835067749023438,
0.00286865234375,
-0.0092315673828125,
-0.0157928466796875,
0.00992584228515625,
-0.04522705078125,
-0.0921630859375,
-0.038299560546875,
-0.002483367919921875,
-0.01244354248046875,
0.0219573974609375,
-0.03826904296875,
0.03399658203125,
0.05755615234375,
0.111328125,
0.0372314453125,
-0.08538818359375,
0.020050048828125,
-0.04095458984375,
-0.026214599609375,
-0.0171356201171875,
-0.01302337646484375,
-0.0030002593994140625,
0.01788330078125,
-0.03863525390625,
-0.020294189453125,
-0.0011720657348632812,
0.046173095703125,
-0.05084228515625,
-0.00003159046173095703,
0.02099609375,
-0.00506591796875,
-0.10052490234375,
0.058074951171875,
0.040069580078125,
-0.04241943359375,
0.0003948211669921875,
0.00484466552734375,
-0.0297088623046875,
0.01194000244140625,
-0.00843048095703125,
0.005153656005859375,
0.0027675628662109375,
-0.03839111328125,
0.0224151611328125,
-0.00185394287109375,
0.006221771240234375,
-0.0308685302734375,
-0.017547607421875,
-0.02203369140625,
0.0272369384765625,
0.0079498291015625,
0.036102294921875,
-0.0218353271484375,
0.054779052734375,
0.033599853515625,
0.027679443359375,
0.03741455078125,
-0.06976318359375,
-0.02972412109375,
0.06732177734375,
-0.01085662841796875,
-0.051116943359375,
-0.0218505859375,
-0.037750244140625,
0.00879669189453125,
0.043853759765625,
-0.0183258056640625,
-0.0170440673828125,
-0.0018901824951171875,
-0.0672607421875,
-0.005489349365234375,
-0.0017118453979492188
] |
49c4273f08b50d49e624b47c29ac8504786ca28a
|
Wordpress Stackexchange
Q: How to properly sanitize strings for update_option() I've tried to import an option value via update_options($name, $value) where $value has special characters (like apostrophe's for example) and I've noticed that the apostrophe gets stripped out of the text before it reaches the database.
What is the suggested sanitization of strings prior to sending them to update_options()?
A: Try esc_html( $string ) (Codex ref), which among other things encodes single- and double-quotes.
For further reference, see the Data Validation entry in the Codex.
|
Q: How to properly sanitize strings for update_option() I've tried to import an option value via update_options($name, $value) where $value has special characters (like apostrophe's for example) and I've noticed that the apostrophe gets stripped out of the text before it reaches the database.
What is the suggested sanitization of strings prior to sending them to update_options()?
A: Try esc_html( $string ) (Codex ref), which among other things encodes single- and double-quotes.
For further reference, see the Data Validation entry in the Codex.
A: You should not use esc functions for data that's going into the database. esc functions are for output only.
The update_option() function sanitizes for you, so there's no need to run any extra san functions.
A: I can't comment on Chris Flannagans answers so... update_options() does not sanitize all options. Some core options are sanitized, but custom option are not. You must sanitize the input yourself.
https://www.wordfence.com/blog/2018/11/xss-injection-campaign-exploits-wordpress-amp-plugin/
|
wordpress
|
{
"language": "en",
"length": 151,
"provenance": "stackexchange_00019.jsonl.gz:411271",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22850"
}
|
[
0.0302276611328125,
0.0032215118408203125,
-0.0181884765625,
-0.03472900390625,
0.02764892578125,
-0.025787353515625,
0.037139892578125,
-0.0008664131164550781,
0.0211029052734375,
0.050811767578125,
-0.0011501312255859375,
-0.01561737060546875,
-0.01023101806640625,
-0.0185546875,
-0.0562744140625,
-0.02471923828125,
0.004924774169921875,
-0.002811431884765625,
0.0024509429931640625,
-0.0245513916015625,
0.01007843017578125,
-0.0237579345703125,
-0.02099609375,
-0.033905029296875,
0.0164337158203125,
-0.036224365234375,
0.06976318359375,
-0.0258941650390625,
0.04180908203125,
0.0054931640625,
0.017974853515625,
-0.042236328125,
0.036529541015625,
-0.0011272430419921875,
-0.00951385498046875,
0.042144775390625,
0.00197601318359375,
-0.0087738037109375,
-0.000014543533325195312,
0.0193328857421875,
0.040771484375,
-0.044677734375,
0.06683349609375,
0.041839599609375,
0.0251007080078125,
-0.0221405029296875,
0.051544189453125,
-0.045013427734375,
-0.0018596649169921875,
0.02044677734375,
0.0219573974609375,
-0.0012540817260742188,
0.03240966796875,
-0.01227569580078125,
-0.0032196044921875,
0.00667572021484375,
-0.04876708984375,
0.058380126953125,
0.0012598037719726562,
0.0791015625,
0.00791168212890625,
0.042236328125,
-0.036102294921875,
-0.055572509765625,
0.0216827392578125,
-0.01131439208984375,
0.03326416015625,
0.0246429443359375,
-0.06689453125,
-0.0007262229919433594,
0.03521728515625,
-0.0298614501953125,
0.0189208984375,
-0.059051513671875,
0.0276336669921875,
0.02081298828125,
-0.02410888671875,
-0.0010824203491210938,
0.030609130859375,
-0.014495849609375,
0.010955810546875,
-0.01070404052734375,
-0.004543304443359375,
-0.042938232421875,
0.043914794921875,
0.000013828277587890625,
-0.004138946533203125,
-0.0158233642578125,
0.007633209228515625,
-0.0139923095703125,
-0.01251220703125,
0.024383544921875,
0.030731201171875,
0.0090484619140625,
-0.0390625,
-0.0014028549194335938,
0.003841400146484375,
0.0165252685546875,
-0.0017137527465820312,
0.03314208984375,
0.04302978515625,
-0.06103515625,
0.08184814453125,
-0.040283203125,
-0.007434844970703125,
0.021209716796875,
0.033966064453125,
-0.0028247833251953125,
0.01067352294921875,
-0.0025539398193359375,
-0.02203369140625,
0.036651611328125,
-0.03753662109375,
-0.035797119140625,
-0.0311126708984375,
0.030242919921875,
-0.03515625,
-0.0043487548828125,
0.01467132568359375,
-0.01131439208984375,
-0.00762176513671875,
0.007213592529296875,
-0.037750244140625,
-0.06573486328125,
-0.01995849609375,
-0.0726318359375,
-0.026031494140625,
0.03955078125,
-0.04132080078125,
0.08203125,
-0.038421630859375,
-0.0309906005859375,
0.046295166015625,
0.0291290283203125,
0.0064697265625,
-0.0467529296875,
-0.0283660888671875,
-0.036712646484375,
-0.0238189697265625,
0.0335693359375,
-0.0073699951171875,
-0.03436279296875,
0.0162506103515625,
-0.0160369873046875,
0.037384033203125,
-0.0026226043701171875,
0.0177459716796875,
0.0225677490234375,
0.00684356689453125,
-0.0097503662109375,
0.0078582763671875,
0.025482177734375,
0.048065185546875,
-0.00027370452880859375,
-0.043426513671875,
-0.041778564453125,
0.00894927978515625,
-0.0391845703125,
-0.0189971923828125,
-0.054168701171875,
-0.0165252685546875,
-0.0211334228515625,
0.00797271728515625,
0.00589752197265625,
-0.0211639404296875,
0.03253173828125,
-0.00374603271484375,
-0.007381439208984375,
0.01232147216796875,
0.005535125732421875,
-0.0167694091796875,
0.01454925537109375,
-0.01523590087890625,
-0.018341064453125,
-0.0179443359375,
-0.00406646728515625,
-0.04559326171875,
-0.014312744140625,
0.04266357421875,
-0.0206298828125,
-0.018707275390625,
-0.023834228515625,
-0.00592803955078125,
0.024078369140625,
-0.05059814453125,
0.00833892822265625,
0.0140838623046875,
0.07342529296875,
0.01788330078125,
0.00799560546875,
0.03607177734375,
-0.022491455078125,
0.018310546875,
0.0007848739624023438,
-0.00936126708984375,
-0.026275634765625,
0.004985809326171875,
0.01198577880859375,
-0.008636474609375,
-0.0027866363525390625,
0.0029315948486328125,
-0.005767822265625,
0.0361328125,
-0.016510009765625,
-0.0218658447265625,
-0.0022563934326171875,
-0.02740478515625,
0.0282440185546875,
-0.0283660888671875,
0.041839599609375,
0.036865234375,
0.01114654541015625,
-0.0673828125,
0.061431884765625,
0.0167694091796875,
-0.01335906982421875,
-0.007843017578125,
0.0535888671875,
-0.01140594482421875,
0.040924072265625,
0.0015096664428710938,
-0.05523681640625,
-0.006740570068359375,
0.01177978515625,
-0.03717041015625,
0.00005882978439331055,
-0.0120086669921875,
0.0167388916015625,
0.0125885009765625,
-0.0208740234375,
0.10302734375,
0.02435302734375,
0.02899169921875,
0.0189666748046875,
-0.0277557373046875,
-0.0020751953125,
-0.0266265869140625,
-0.07452392578125,
-0.0019168853759765625,
0.05657958984375,
0.014801025390625,
0.02496337890625,
-0.0219268798828125,
-0.0276641845703125,
0.04290771484375,
-0.01434326171875,
0.01221466064453125,
-0.0234527587890625,
-0.00278472900390625,
0.0274200439453125,
-0.0010652542114257812,
-0.0097503662109375,
0.0163421630859375,
-0.08843994140625,
-0.01245880126953125,
0.033172607421875,
-0.08270263671875,
-0.0187225341796875,
0.01078033447265625,
-0.0139617919921875,
-0.01302337646484375,
-0.0594482421875,
0.049530029296875,
-0.055450439453125,
0.0289459228515625,
-0.016815185546875,
0.00531768798828125,
-0.00699615478515625,
-0.0080108642578125,
0.01611328125,
0.0078887939453125,
-0.06732177734375,
-0.0247802734375,
0.04388427734375,
-0.0207061767578125,
-0.0311431884765625,
-0.01023101806640625,
0.017364501953125,
-0.045013427734375,
-0.003345489501953125,
0.006877899169921875,
0.01532745361328125,
0.0256500244140625,
-0.01044464111328125,
0.01080322265625,
0.006923675537109375,
0.04296875,
0.0011796951293945312,
-0.028839111328125,
-0.0261383056640625,
0.011077880859375,
0.018157958984375,
-0.0304718017578125,
0.0197906494140625,
0.0170135498046875,
-0.028472900390625,
0.05926513671875,
-0.0038089752197265625,
0.0027313232421875,
0.00666046142578125,
0.0224456787109375,
0.051483154296875,
0.017120361328125,
-0.017852783203125,
0.013458251953125,
0.00795745849609375,
0.019195556640625,
0.0177154541015625,
0.0119476318359375,
-0.0279083251953125,
-0.02227783203125,
0.0167236328125,
0.00992584228515625,
0.04522705078125,
-0.0391845703125,
-0.054168701171875,
-0.01540374755859375,
0.01102447509765625,
-0.07440185546875,
-0.046875,
-0.01325225830078125,
-0.004680633544921875,
-0.031982421875,
0.0169219970703125,
-0.00846099853515625,
0.01568603515625,
0.0018339157104492188,
-0.0048828125,
0.007720947265625,
-0.0304718017578125,
-0.06597900390625,
-0.042877197265625,
-0.046783447265625,
0.041351318359375,
0.004627227783203125,
0.01239013671875,
0.00347137451171875,
0.026153564453125,
-0.00615692138671875,
-0.043060302734375,
0.0217437744140625,
-0.0094146728515625,
0.0013303756713867188,
0.04608154296875,
0.003574371337890625,
-0.0157012939453125,
-0.0076904296875,
-0.00698089599609375,
0.044586181640625,
0.022308349609375,
-0.0259246826171875,
0.007457733154296875,
0.019256591796875,
0.03765869140625,
0.044342041015625,
-0.01690673828125,
-0.022613525390625,
0.0460205078125,
0.011627197265625,
-0.019927978515625,
-0.0248870849609375,
0.0195159912109375,
-0.00952911376953125,
-0.02734375,
-0.03167724609375,
-0.0018291473388671875,
-0.0294036865234375,
0.051666259765625,
-0.001926422119140625,
0.0206146240234375,
0.04595947265625,
-0.018463134765625,
-0.01404571533203125,
-0.0201873779296875,
-0.0300750732421875,
-0.01824951171875,
-0.02508544921875,
-0.01483154296875,
0.029754638671875,
-0.01052093505859375,
0.0280914306640625,
-0.0002803802490234375,
0.0576171875,
-0.0205535888671875,
-0.048980712890625,
0.052154541015625,
-0.005413055419921875,
0.015899658203125,
-0.04742431640625,
-0.028839111328125,
-0.012298583984375,
0.09716796875,
-0.0099945068359375,
-0.020172119140625,
0.01027679443359375,
0.033721923828125,
-0.0511474609375,
-0.0300750732421875,
-0.007488250732421875,
0.006580352783203125,
-0.04949951171875,
0.005107879638671875,
0.00792694091796875,
-0.049957275390625,
-0.006565093994140625,
-0.0302886962890625,
-0.0330810546875,
-0.021942138671875,
0.03570556640625,
-0.059356689453125,
0.054962158203125,
-0.0014619827270507812,
0.050628662109375,
-0.036346435546875,
-0.01470184326171875,
-0.046295166015625,
-0.074462890625,
-0.0166473388671875,
0.00850677490234375,
0.034027099609375,
-0.0023136138916015625,
-0.0142364501953125,
-0.0298004150390625,
0.03741455078125,
-0.01412200927734375,
-0.04345703125,
0.0278167724609375,
0.037506103515625,
-0.021209716796875,
0.0237884521484375,
0.0030002593994140625,
-0.028350830078125,
-0.0168914794921875,
-0.0169830322265625,
-0.04754638671875,
-0.0301971435546875,
0.00885772705078125,
-0.0007224082946777344,
0.038726806640625,
-0.0357666015625,
-0.047882080078125,
-0.0029048919677734375,
-0.0160064697265625,
0.028045654296875,
-0.00751495361328125,
-0.00885009765625,
-0.01654052734375,
-0.08978271484375,
0.09344482421875,
-0.0027408599853515625,
-0.0006837844848632812,
-0.0174407958984375,
0.045196533203125,
0.0007548332214355469,
-0.049774169921875,
-0.016326904296875,
-0.0406494140625,
0.00040912628173828125,
-0.0019369125366210938,
0.0278472900390625,
0.00005900859832763672,
-0.0022125244140625,
0.02435302734375,
-0.025634765625,
0.01114654541015625,
-0.01558685302734375,
0.0197296142578125,
0.00217437744140625,
0.01123809814453125,
-0.0200042724609375,
0.005229949951171875,
0.035980224609375,
0.036865234375,
0.01139068603515625,
0.006618499755859375,
-0.01522064208984375,
-0.020843505859375,
-0.0018787384033203125,
-0.01995849609375,
0.005611419677734375,
-0.03363037109375,
0.01103973388671875,
-0.02069091796875,
0.0226593017578125,
0.0086212158203125,
0.000020325183868408203,
0.0010623931884765625,
-0.003864288330078125,
0.011138916015625,
-0.040740966796875,
-0.0195465087890625,
-0.056365966796875,
0.0421142578125,
-0.06683349609375,
-0.0279388427734375,
0.01374053955078125,
-0.0048065185546875,
0.021270751953125,
0.000423431396484375,
-0.0138092041015625,
-0.0262603759765625,
-0.0026493072509765625,
0.05267333984375,
0.0198211669921875,
0.07666015625,
-0.039581298828125,
-0.02001953125,
0.007282257080078125,
0.0105438232421875,
0.0704345703125,
0.0231475830078125,
0.017242431640625,
-0.0009670257568359375,
0.01436614990234375,
-0.01264190673828125,
0.0364990234375,
0.003833770751953125,
0.005298614501953125,
0.007171630859375,
-0.0213623046875,
0.0130615234375,
0.035919189453125,
0.01184844970703125,
0.0267791748046875,
-0.049530029296875,
0.00391387939453125,
-0.0213623046875,
-0.0137176513671875,
-0.0257415771484375,
-0.000957489013671875,
0.0217132568359375,
0.01511383056640625,
-0.0186004638671875,
-0.00832366943359375,
0.0237884521484375,
-0.01303863525390625,
-0.0230560302734375,
0.039947509765625,
-0.005084991455078125,
-0.05389404296875,
-0.0295562744140625,
0.00930023193359375,
0.027618408203125,
-0.012542724609375,
-0.0038738250732421875,
0.0028553009033203125,
-0.04150390625,
0.0216827392578125,
0.01751708984375,
0.0294342041015625,
-0.04876708984375,
-0.047393798828125,
0.03204345703125,
-0.0231781005859375,
-0.04296875,
-0.0006804466247558594,
0.00412750244140625,
-0.01434326171875,
-0.0107421875,
0.06524658203125,
-0.01132965087890625,
0.0261077880859375,
-0.0038604736328125,
-0.027557373046875,
0.0080413818359375,
0.010345458984375,
0.048553466796875,
0.006015777587890625,
-0.003047943115234375,
0.004497528076171875,
-0.042144775390625,
-0.017852783203125,
0.0029468536376953125,
-0.0211639404296875,
-0.032073974609375,
-0.0159912109375,
0.0014781951904296875,
0.034820556640625,
0.0011730194091796875,
0.003429412841796875,
0.01409149169921875,
0.01050567626953125,
-0.01132965087890625,
0.064697265625,
-0.04119873046875,
0.05206298828125,
0.0003936290740966797,
0.01009368896484375,
-0.004241943359375,
0.0325927734375,
0.0411376953125,
-0.005840301513671875,
-0.0361328125,
0.00009065866470336914,
0.034149169921875,
-0.002193450927734375,
0.07958984375,
0.006866455078125,
0.0297393798828125,
0.0195159912109375,
0.051422119140625,
-0.045806884765625,
-0.005725860595703125,
-0.008331298828125,
0.0521240234375,
-0.07403564453125,
0.004085540771484375,
0.05279541015625,
-0.033782958984375,
-0.030120849609375,
0.01727294921875,
-0.006626129150390625,
0.01052093505859375,
-0.005947113037109375,
-0.01580810546875,
0.0262603759765625,
-0.0138702392578125,
0.03497314453125,
0.04071044921875,
-0.00881195068359375,
0.006610870361328125,
0.004100799560546875,
-0.0029430389404296875,
0.0029125213623046875,
0.0009303092956542969,
-0.040802001953125,
0.02008056640625,
0.01290130615234375,
-0.0036869049072265625,
0.0222625732421875,
0.0004911422729492188,
0.0033397674560546875,
0.06207275390625,
0.08978271484375,
0.13720703125,
-0.112060546875,
0.011077880859375,
0.054473876953125,
-0.041961669921875,
0.019683837890625,
-0.00018990039825439453,
-0.00457763671875,
-0.0264739990234375,
0.03887939453125,
-0.042236328125,
-0.0137939453125,
0.006145477294921875,
-0.024688720703125,
-0.026397705078125,
-0.0474853515625,
0.0225982666015625,
0.0192108154296875,
-0.0282135009765625,
0.034393310546875,
0.0199737548828125,
-0.015380859375,
-0.01424407958984375,
-0.007167816162109375,
0.023651123046875,
-0.051788330078125,
-0.07769775390625,
-0.0222015380859375,
-0.0267486572265625,
-0.017852783203125,
-0.028839111328125,
0.021209716796875,
0.03912353515625,
0.03216552734375,
0.01177215576171875,
-0.0430908203125,
0.005039215087890625,
-0.006259918212890625,
0.047576904296875,
-0.03558349609375,
-0.02825927734375,
0.026885986328125,
-0.00959014892578125,
0.0006155967712402344,
0.0282135009765625,
-0.0194091796875,
-0.0228271484375,
-0.0181121826171875,
0.050201416015625,
0.016265869140625,
-0.0192108154296875,
0.03009033203125,
0.03662109375,
-0.01727294921875,
0.003742218017578125,
-0.0262603759765625,
-0.03851318359375,
-0.038848876953125,
-0.016357421875,
-0.0855712890625,
-0.006290435791015625,
0.003017425537109375,
-0.06982421875,
0.07403564453125,
0.043121337890625,
0.0241851806640625,
-0.0089874267578125,
0.033416748046875,
-0.055145263671875,
-0.01132965087890625,
-0.021148681640625,
0.01186370849609375,
0.0186004638671875,
0.005954742431640625,
-0.05511474609375,
-0.002468109130859375,
-0.0189361572265625,
0.026611328125,
-0.042724609375,
-0.0219573974609375,
0.0185394287109375,
0.032684326171875,
0.059539794921875,
0.048370361328125,
0.0250701904296875,
-0.01560211181640625,
0.0203704833984375,
0.017303466796875,
0.0650634765625,
-0.01076507568359375,
0.037750244140625,
-0.0160980224609375,
0.01311492919921875,
0.0282440185546875,
0.0218353271484375,
0.025848388671875,
-0.0213165283203125,
0.0023517608642578125,
0.01904296875,
-0.0001819133758544922,
-0.00653076171875,
-0.0002646446228027344,
-0.01983642578125,
0.0343017578125,
0.0177764892578125,
-0.01873779296875,
0.021942138671875,
-0.034210205078125,
0.0482177734375,
0.024322509765625,
0.022796630859375,
0.053680419921875,
0.01026153564453125,
0.050506591796875,
0.050048828125,
0.01255035400390625,
0.010223388671875,
0.048675537109375,
0.03692626953125,
0.0242156982421875,
0.0201416015625,
0.0161285400390625,
0.0298614501953125,
-0.005153656005859375,
0.0218048095703125,
-0.04364013671875,
0.027496337890625,
0.01373291015625,
0.036529541015625,
-0.01525115966796875,
-0.05279541015625,
0.00969696044921875,
-0.0264892578125,
-0.00009804964065551758,
-0.0022640228271484375,
-0.0005755424499511719,
0.0443115234375,
0.006458282470703125,
0.0169525146484375,
0.0123443603515625,
-0.04345703125,
0.00140380859375,
-0.040069580078125,
0.00832366943359375,
0.033233642578125,
0.0389404296875,
0.00582122802734375,
0.020111083984375,
0.00994873046875,
-0.0117034912109375,
-0.03192138671875,
0.0626220703125,
0.0300140380859375,
0.027008056640625,
-0.01187896728515625,
0.0007319450378417969,
-0.00384521484375,
0.0112762451171875,
0.01322174072265625,
0.04010009765625,
0.0589599609375,
0.05291748046875,
-0.02716064453125,
0.00472259521484375,
0.0648193359375,
-0.013763427734375,
-0.01654052734375,
-0.019866943359375,
0.0219573974609375,
0.021240234375,
0.006107330322265625,
-0.01218414306640625,
0.053192138671875,
0.0028667449951171875,
0.00235748291015625,
0.0171051025390625,
0.007648468017578125,
-0.00931549072265625,
0.020721435546875,
0.00612640380859375,
0.01232147216796875,
0.033843994140625,
0.060028076171875,
-0.005130767822265625,
0.05328369140625,
-0.00988006591796875,
-0.01245880126953125,
0.0272216796875,
-0.00112152099609375,
0.01110076904296875,
0.00702667236328125,
-0.0200653076171875,
-0.00893402099609375,
0.044921875,
-0.007080078125,
-0.01163482666015625,
0.017791748046875,
-0.005123138427734375,
0.00820159912109375,
0.01348114013671875,
0.035400390625,
0.0292816162109375,
0.0087127685546875,
-0.0015506744384765625,
0.00034117698669433594,
0.0268707275390625,
-0.00830841064453125,
0.027496337890625,
-0.045135498046875,
0.007564544677734375,
0.00601959228515625,
-0.0023326873779296875,
0.0157318115234375,
0.005001068115234375,
-0.0009737014770507812,
0.0401611328125,
0.02734375,
-0.0302276611328125,
0.003704071044921875,
0.0204620361328125,
0.01922607421875,
-0.0005278587341308594,
0.0672607421875,
-0.0131683349609375,
-0.0443115234375,
-0.01525115966796875,
0.0008382797241210938,
0.01076507568359375,
0.054901123046875,
0.0165863037109375,
0.0199737548828125,
0.0184326171875,
0.034820556640625,
0.0019483566284179688,
0.01396942138671875,
0.00988006591796875,
0.01389312744140625,
-0.0237274169921875,
0.0267486572265625,
0.0167694091796875,
-0.0255126953125,
0.0184173583984375,
0.01163482666015625,
0.0022716522216796875,
-0.01160430908203125,
0.036773681640625,
-0.046600341796875,
0.00665283203125,
0.0455322265625,
0.05133056640625,
0.01934814453125,
-0.05322265625,
-0.01300048828125,
-0.006656646728515625,
0.0161895751953125,
0.0024242401123046875,
-0.038360595703125,
-0.0283660888671875,
-0.0083770751953125,
-0.03326416015625,
-0.017364501953125,
0.00601959228515625,
-0.0352783203125,
0.02569580078125,
-0.0030040740966796875,
-0.0299072265625,
-0.03704833984375,
0.0081939697265625,
0.0531005859375,
-0.0143585205078125,
-0.0018682479858398438,
0.0010547637939453125,
0.0249481201171875,
-0.031494140625,
-0.03497314453125,
-0.0052947998046875,
0.046142578125,
-0.00911712646484375,
0.01261138916015625,
0.017669677734375,
0.00238800048828125,
-0.0244598388671875,
0.040618896484375,
-0.00884246826171875,
0.067626953125,
-0.0275726318359375,
-0.0231475830078125,
0.0193634033203125,
0.0168914794921875,
-0.0037097930908203125,
-0.1317138671875,
-0.0227813720703125,
-0.10260009765625,
0.0753173828125,
0.0180511474609375,
-0.0175323486328125,
0.006641387939453125,
-0.0458984375,
-0.08465576171875,
0.09185791015625,
-0.00609588623046875,
-0.0277557373046875,
0.030853271484375,
-0.0247344970703125,
-0.0086212158203125,
0.0318603515625,
0.0027980804443359375,
-0.0035610198974609375,
-0.02880859375,
0.00039649009704589844,
-0.0117950439453125,
0.061248779296875,
0.00806427001953125,
-0.01039886474609375,
-0.00017261505126953125,
-0.00608062744140625,
-0.007343292236328125,
-0.016082763671875,
-0.002777099609375,
-0.03045654296875,
0.0667724609375,
0.07177734375,
-0.00994873046875,
-0.004573822021484375,
0.02947998046875,
-0.052001953125,
-0.00252532958984375,
-0.031280517578125,
-0.039764404296875,
0.00609588623046875,
0.06573486328125,
0.053192138671875,
0.025604248046875,
-0.06060791015625,
0.01021575927734375,
-0.023681640625,
0.037445068359375,
0.00926971435546875,
0.00392913818359375,
-0.0467529296875,
-0.0118255615234375,
0.0496826171875,
0.0009326934814453125,
-0.004047393798828125,
-0.0005521774291992188,
0.0110626220703125,
-0.017425537109375,
0.0289154052734375,
-0.02569580078125,
0.038726806640625,
-0.043426513671875,
0.054412841796875,
-0.03564453125,
-0.0286865234375,
0.007556915283203125,
0.02777099609375,
-0.01136016845703125,
0.01105499267578125,
-0.0181121826171875,
-0.043212890625,
0.0286102294921875,
0.0149993896484375,
-0.0003712177276611328,
0.008392333984375,
0.00559234619140625,
-0.0169677734375,
-0.0001596212387084961,
-0.00539398193359375,
-0.002105712890625,
-0.0152587890625,
-0.0238800048828125,
0.06292724609375,
-0.0050201416015625,
0.0239105224609375,
-0.0767822265625,
0.01206207275390625,
-0.02392578125,
0.004627227783203125,
-0.00949859619140625,
0.044647216796875,
0.057220458984375,
-0.003574371337890625,
0.01290130615234375,
-0.03466796875,
0.0092010498046875,
-0.040283203125,
-0.004734039306640625,
-0.00653839111328125,
-0.0069427490234375,
0.0197906494140625
] |
c40eb82177a84afcae5d552b53977e0d4703639b
|
Wordpress Stackexchange
Q: CSS not pulling in for jQuery UI dialog I want to add a jQuery dialog modal to a form page. When the dialog box is triggered I see the the text content but with no CSS. I'm pulling in the jquery in the functions.php for the page:
wp_enqueue_script('jquery-ui-dialog');
The jquery css (jquery-ui-dialog.css) is under my wp-includes/css directory.
I tried adding
wp_enqueue_style('jquery-ui-dialog');
but it not work. Does anybody know the proper way to enable jQuery Dialog.
A: There is no jquery-ui-dialog style defined in WordPress Out of the box, you need to ue the stylesheets manually, when i needed to enqueue the jQuery-UI style i pulled it from google api CDN
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
but you can enqueue a local copy if you want like this:
wp_enqueue_style( 'myStylesheet', WP_PLUGIN_URL . '/path/stylesheet.css' );
|
Q: CSS not pulling in for jQuery UI dialog I want to add a jQuery dialog modal to a form page. When the dialog box is triggered I see the the text content but with no CSS. I'm pulling in the jquery in the functions.php for the page:
wp_enqueue_script('jquery-ui-dialog');
The jquery css (jquery-ui-dialog.css) is under my wp-includes/css directory.
I tried adding
wp_enqueue_style('jquery-ui-dialog');
but it not work. Does anybody know the proper way to enable jQuery Dialog.
A: There is no jquery-ui-dialog style defined in WordPress Out of the box, you need to ue the stylesheets manually, when i needed to enqueue the jQuery-UI style i pulled it from google api CDN
wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/themes/smoothness/jquery-ui.css');
but you can enqueue a local copy if you want like this:
wp_enqueue_style( 'myStylesheet', WP_PLUGIN_URL . '/path/stylesheet.css' );
A: You can include the jquery-ui-dialog style in frontend using:
wp_enqueue_style( 'wp-jquery-ui-dialog' );
|
wordpress
|
{
"language": "en",
"length": 144,
"provenance": "stackexchange_00019.jsonl.gz:411275",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22857"
}
|
[
0.0172576904296875,
0.01418304443359375,
-0.070556640625,
-0.011505126953125,
0.0154876708984375,
-0.070556640625,
0.0255889892578125,
0.004909515380859375,
-0.0173797607421875,
0.03179931640625,
-0.023773193359375,
0.03778076171875,
0.0010080337524414062,
-0.006275177001953125,
0.0017576217651367188,
-0.00543212890625,
0.0143585205078125,
-0.03955078125,
-0.029296875,
-0.0264434814453125,
0.0023784637451171875,
-0.0257568359375,
0.0032634735107421875,
0.03924560546875,
0.032257080078125,
0.012359619140625,
0.07598876953125,
0.01476287841796875,
0.04376220703125,
0.0253448486328125,
0.0382080078125,
-0.08251953125,
0.0175628662109375,
0.015777587890625,
-0.007076263427734375,
0.002071380615234375,
0.01114654541015625,
0.00795745849609375,
0.003875732421875,
0.0187835693359375,
0.036773681640625,
-0.019500732421875,
-0.02728271484375,
0.044891357421875,
-0.03363037109375,
-0.05303955078125,
0.0229949951171875,
-0.0131378173828125,
-0.00487518310546875,
-0.004547119140625,
0.0009675025939941406,
-0.0513916015625,
0.0245819091796875,
-0.060272216796875,
-0.00740814208984375,
-0.01386260986328125,
-0.051025390625,
-0.023468017578125,
0.02056884765625,
0.045562744140625,
0.0245513916015625,
-0.029510498046875,
0.005542755126953125,
-0.01407623291015625,
-0.0272064208984375,
0.0157928466796875,
-0.01983642578125,
-0.0126953125,
-0.028778076171875,
-0.0114593505859375,
0.021820068359375,
-0.037933349609375,
0.01136016845703125,
-0.03363037109375,
-0.015869140625,
0.0120697021484375,
-0.004901885986328125,
-0.01387786865234375,
0.028472900390625,
-0.0234375,
0.01898193359375,
0.007358551025390625,
-0.040740966796875,
-0.01165008544921875,
0.01544952392578125,
-0.0102386474609375,
-0.005756378173828125,
-0.0207061767578125,
-0.01103973388671875,
-0.0183563232421875,
-0.018218994140625,
0.007007598876953125,
-0.0465087890625,
0.01467132568359375,
-0.004375457763671875,
-0.006496429443359375,
0.054656982421875,
0.06463623046875,
0.01495361328125,
0.0181732177734375,
0.00543212890625,
-0.047210693359375,
0.0394287109375,
-0.040618896484375,
-0.01523590087890625,
0.0654296875,
0.034332275390625,
0.012115478515625,
-0.0007271766662597656,
-0.01373291015625,
0.001018524169921875,
0.0003936290740966797,
-0.0084381103515625,
-0.0088348388671875,
0.007045745849609375,
-0.00864410400390625,
-0.03509521484375,
0.0249481201171875,
-0.01174163818359375,
0.0009660720825195312,
0.005645751953125,
0.03961181640625,
-0.044769287109375,
0.004215240478515625,
-0.01055145263671875,
-0.00414276123046875,
0.039703369140625,
-0.0275421142578125,
0.02978515625,
0.01148223876953125,
-0.0220947265625,
0.0019159317016601562,
0.028411865234375,
0.029022216796875,
0.0198211669921875,
-0.01000213623046875,
0.046356201171875,
-0.0550537109375,
-0.005176544189453125,
-0.034332275390625,
0.03729248046875,
0.024261474609375,
0.01568603515625,
0.002460479736328125,
-0.06793212890625,
0.0219268798828125,
0.0267181396484375,
0.00800323486328125,
-0.04815673828125,
-0.088623046875,
0.0235137939453125,
-0.03839111328125,
0.0457763671875,
0.030426025390625,
-0.004215240478515625,
-0.0222320556640625,
0.1134033203125,
-0.07537841796875,
-0.035858154296875,
-0.09063720703125,
-0.041168212890625,
0.0011882781982421875,
0.02191162109375,
0.00817108154296875,
0.040374755859375,
-0.00853729248046875,
0.0129852294921875,
0.0242156982421875,
0.038665771484375,
0.055694580078125,
-0.03851318359375,
-0.0283355712890625,
0.06878662109375,
0.022247314453125,
-0.0267333984375,
0.041259765625,
0.03228759765625,
-0.0128173828125,
0.039093017578125,
0.0198974609375,
-0.035491943359375,
-0.037109375,
0.1041259765625,
-0.0777587890625,
-0.04058837890625,
0.01007843017578125,
0.0287017822265625,
0.057342529296875,
0.00004410743713378906,
0.0201873779296875,
0.06658935546875,
0.00982666015625,
-0.0088043212890625,
-0.034210205078125,
0.01096343994140625,
-0.02520751953125,
-0.007648468017578125,
-0.016632080078125,
0.00574493408203125,
0.03369140625,
0.0245819091796875,
-0.01473236083984375,
0.01392364501953125,
-0.0194549560546875,
-0.0618896484375,
-0.0076446533203125,
-0.033233642578125,
0.033477783203125,
-0.01910400390625,
-0.0037384033203125,
0.010406494140625,
0.01222991943359375,
-0.013671875,
-0.044952392578125,
-0.0237579345703125,
0.047332763671875,
-0.039306640625,
0.046356201171875,
-0.0003113746643066406,
0.03863525390625,
0.0160980224609375,
-0.05596923828125,
0.01273345947265625,
-0.00543212890625,
-0.0010805130004882812,
-0.0006113052368164062,
-0.02587890625,
-0.00946807861328125,
0.01031494140625,
-0.0138092041015625,
0.04681396484375,
0.04620361328125,
0.02081298828125,
0.05218505859375,
0.0020160675048828125,
-0.011474609375,
-0.00015079975128173828,
-0.052276611328125,
0.0229034423828125,
0.0238800048828125,
0.038299560546875,
0.018035888671875,
0.00798797607421875,
0.01690673828125,
0.0178070068359375,
-0.0092315673828125,
0.034271240234375,
-0.028076171875,
-0.0291595458984375,
-0.0167999267578125,
-0.00914764404296875,
0.0074462890625,
0.04449462890625,
-0.0604248046875,
-0.01012420654296875,
0.05133056640625,
-0.01096343994140625,
0.02154541015625,
-0.0203094482421875,
0.0242919921875,
-0.01444244384765625,
0.0018453598022460938,
0.0018596649169921875,
-0.01666259765625,
-0.0137176513671875,
0.018341064453125,
0.007305145263671875,
-0.000019609928131103516,
-0.00946807861328125,
-0.00007832050323486328,
0.019927978515625,
-0.0419921875,
0.00669097900390625,
0.003963470458984375,
0.025421142578125,
0.01094818115234375,
-0.04541015625,
-0.0224151611328125,
0.0648193359375,
0.0209197998046875,
0.00843048095703125,
0.0124053955078125,
0.00933837890625,
-0.0095672607421875,
0.0114593505859375,
-0.054534912109375,
0.0186309814453125,
0.0111846923828125,
0.0570068359375,
0.032196044921875,
0.06268310546875,
-0.0133819580078125,
-0.0100860595703125,
0.02593994140625,
0.002559661865234375,
-0.043792724609375,
0.0611572265625,
0.0242767333984375,
0.0078125,
-0.005603790283203125,
-0.0026226043701171875,
0.01522064208984375,
-0.00597381591796875,
-0.02471923828125,
0.01137542724609375,
-0.037017822265625,
-0.0173797607421875,
0.01806640625,
0.00010561943054199219,
0.0114593505859375,
-0.05859375,
0.046478271484375,
0.046112060546875,
0.0269927978515625,
0.04779052734375,
-0.0135345458984375,
0.0216217041015625,
0.048370361328125,
-0.0567626953125,
-0.11761474609375,
-0.0469970703125,
-0.07666015625,
0.0249481201171875,
-0.0260772705078125,
-0.024627685546875,
0.00927734375,
-0.004619598388671875,
0.019683837890625,
-0.050506591796875,
-0.01140594482421875,
-0.041229248046875,
-0.060516357421875,
-0.07525634765625,
0.004741668701171875,
0.006572723388671875,
0.03399658203125,
0.0144805908203125,
0.00518798828125,
0.00977325439453125,
-0.005962371826171875,
0.031341552734375,
0.0511474609375,
-0.0093536376953125,
-0.01241302490234375,
0.040771484375,
-0.030487060546875,
-0.01467132568359375,
0.01558685302734375,
-0.01435089111328125,
0.01181793212890625,
-0.02301025390625,
-0.0261688232421875,
-0.037109375,
-0.0272064208984375,
-0.026885986328125,
0.076904296875,
0.06439208984375,
-0.00829315185546875,
0.02069091796875,
-0.035247802734375,
-0.0341796875,
0.02618408203125,
-0.01192474365234375,
0.04144287109375,
0.0075836181640625,
-0.037872314453125,
-0.0004260540008544922,
0.0506591796875,
0.0213623046875,
-0.0251617431640625,
0.037353515625,
-0.019134521484375,
0.035614013671875,
-0.0016193389892578125,
0.0114898681640625,
-0.03900146484375,
0.041748046875,
-0.03521728515625,
0.043914794921875,
0.0290069580078125,
-0.03094482421875,
-0.001346588134765625,
-0.042999267578125,
-0.009613037109375,
-0.00128936767578125,
-0.0135498046875,
-0.048980712890625,
0.025543212890625,
-0.006366729736328125,
0.0211029052734375,
0.0051422119140625,
0.0325927734375,
-0.049835205078125,
-0.02423095703125,
0.014495849609375,
0.02130126953125,
-0.056915283203125,
-0.052520751953125,
-0.027618408203125,
-0.004619598388671875,
-0.075439453125,
0.0113677978515625,
0.002727508544921875,
-0.0286407470703125,
-0.0016536712646484375,
-0.01166534423828125,
-0.0599365234375,
-0.0328369140625,
0.05413818359375,
0.004180908203125,
0.01023101806640625,
0.0261993408203125,
0.01194000244140625,
-0.0014142990112304688,
-0.02862548828125,
-0.0047149658203125,
-0.11572265625,
-0.02996826171875,
-0.01459503173828125,
0.0804443359375,
0.01134490966796875,
-0.016357421875,
-0.0013942718505859375,
0.0765380859375,
0.0071563720703125,
-0.00412750244140625,
0.038970947265625,
0.01186370849609375,
-0.035003662109375,
0.01251983642578125,
0.0242462158203125,
-0.031768798828125,
0.0181121826171875,
0.0262298583984375,
-0.07110595703125,
0.0137481689453125,
-0.019256591796875,
-0.03118896484375,
0.045318603515625,
-0.05535888671875,
-0.036590576171875,
-0.01383209228515625,
-0.032806396484375,
-0.0217132568359375,
0.01424407958984375,
-0.0413818359375,
-0.01444244384765625,
-0.04168701171875,
-0.00861358642578125,
-0.01708984375,
0.0058746337890625,
0.00901031494140625,
0.001758575439453125,
0.0283660888671875,
-0.01247406005859375,
0.019073486328125,
0.00968170166015625,
0.0240478515625,
0.03741455078125,
-0.033233642578125,
-0.055877685546875,
-0.034698486328125,
0.0249176025390625,
-0.00370025634765625,
0.0283203125,
0.0262603759765625,
0.023773193359375,
0.0102691650390625,
-0.0302276611328125,
0.0263519287109375,
0.028564453125,
-0.072998046875,
0.0211944580078125,
0.007335662841796875,
0.01666259765625,
0.0726318359375,
-0.016571044921875,
-0.00849151611328125,
-0.061065673828125,
-0.0093536376953125,
-0.027191162109375,
-0.0017557144165039062,
-0.0225982666015625,
0.0716552734375,
0.0271148681640625,
-0.0037994384765625,
0.043243408203125,
0.048553466796875,
0.0011320114135742188,
0.04962158203125,
0.006221771240234375,
0.00995635986328125,
0.024505615234375,
0.053253173828125,
0.004741668701171875,
0.020721435546875,
0.0050048828125,
0.03546142578125,
0.0036258697509765625,
-0.004901885986328125,
-0.062286376953125,
0.0006256103515625,
0.04248046875,
-0.0184478759765625,
-0.007709503173828125,
0.0192718505859375,
0.038055419921875,
-0.0160980224609375,
-0.00142669677734375,
0.03125,
-0.0125579833984375,
-0.0261077880859375,
0.01410675048828125,
0.01132965087890625,
-0.0177154541015625,
-0.00984954833984375,
0.0160064697265625,
0.0428466796875,
-0.015655517578125,
-0.0170745849609375,
0.01218414306640625,
-0.01434326171875,
0.0191497802734375,
0.0174713134765625,
-0.0117034912109375,
0.0239715576171875,
-0.0141143798828125,
0.0185546875,
-0.0169525146484375,
-0.03717041015625,
0.0187225341796875,
0.00567626953125,
-0.0213775634765625,
0.0229339599609375,
0.0131378173828125,
0.0350341796875,
-0.04071044921875,
0.020233154296875,
0.02679443359375,
-0.020294189453125,
-0.02496337890625,
-0.022064208984375,
0.017303466796875,
0.045654296875,
0.0044708251953125,
0.0194549560546875,
0.0099639892578125,
0.01383209228515625,
0.02349853515625,
-0.025665283203125,
0.006481170654296875,
-0.0013332366943359375,
0.0016803741455078125,
0.0020008087158203125,
-0.00890350341796875,
-0.053497314453125,
-0.023834228515625,
-0.00821685791015625,
0.00014102458953857422,
0.02886962890625,
-0.03826904296875,
0.052947998046875,
-0.0245513916015625,
-0.0083465576171875,
-0.040863037109375,
0.0256500244140625,
0.03466796875,
0.046478271484375,
0.0220489501953125,
-0.006992340087890625,
-0.016326904296875,
-0.01873779296875,
-0.04388427734375,
-0.053314208984375,
-0.01369476318359375,
-0.02191162109375,
-0.028228759765625,
0.0163421630859375,
-0.0467529296875,
-0.01380157470703125,
-0.01641845703125,
0.032196044921875,
0.0210113525390625,
0.040435791015625,
-0.0289459228515625,
0.06744384765625,
0.006023406982421875,
0.0321044921875,
0.01409912109375,
0.0343017578125,
-0.01306915283203125,
-0.0151214599609375,
0.016937255859375,
-0.0312042236328125,
-0.021728515625,
-0.04742431640625,
0.0125274658203125,
0.02392578125,
0.0638427734375,
-0.00998687744140625,
0.0401611328125,
-0.001171112060546875,
0.01293182373046875,
-0.0263824462890625,
0.006561279296875,
-0.024658203125,
-0.00955963134765625,
0.04998779296875,
-0.0121002197265625,
0.03515625,
-0.03277587890625,
0.033172607421875,
-0.0015163421630859375,
-0.0504150390625,
0.01525115966796875,
0.00913238525390625,
-0.04510498046875,
0.036529541015625,
0.056121826171875,
0.02093505859375,
0.036529541015625,
0.007434844970703125,
0.00846099853515625,
0.0022563934326171875,
0.0260772705078125,
-0.036285400390625,
-0.07080078125,
0.038787841796875,
0.0117034912109375,
-0.004909515380859375,
0.04931640625,
-0.006809234619140625,
0.003849029541015625,
0.03424072265625,
0.047210693359375,
-0.059967041015625,
0.0027103424072265625,
-0.01369476318359375,
-0.0281524658203125,
0.0303802490234375,
-0.0221099853515625,
0.0208282470703125,
0.0097503662109375,
0.054473876953125,
0.036773681640625,
-0.00806427001953125,
0.041015625,
-0.0157470703125,
-0.0128021240234375,
-0.02783203125,
-0.048065185546875,
-0.006649017333984375,
-0.049224853515625,
0.01177215576171875,
0.0242156982421875,
-0.004215240478515625,
-0.0201263427734375,
-0.0172576904296875,
0.0183868408203125,
-0.0227203369140625,
-0.06060791015625,
0.01502227783203125,
-0.050537109375,
-0.0184173583984375,
0.06378173828125,
-0.01419830322265625,
0.0235595703125,
0.035247802734375,
-0.010650634765625,
0.039642333984375,
-0.0207061767578125,
0.0171051025390625,
0.062408447265625,
-0.02130126953125,
0.030487060546875,
-0.02606201171875,
-0.0675048828125,
0.004352569580078125,
-0.005619049072265625,
-0.0274658203125,
0.002506256103515625,
0.048095703125,
0.07720947265625,
-0.03094482421875,
-0.01473236083984375,
0.03399658203125,
0.0107879638671875,
-0.0128173828125,
0.003101348876953125,
0.0364990234375,
-0.051483154296875,
-0.044097900390625,
0.0205535888671875,
-0.05047607421875,
-0.052398681640625,
-0.035797119140625,
-0.0290985107421875,
0.06170654296875,
-0.0256805419921875,
-0.0167083740234375,
0.0338134765625,
0.0305938720703125,
-0.04034423828125,
0.0077972412109375,
0.004638671875,
0.004909515380859375,
-0.0250091552734375,
-0.0313720703125,
0.00350189208984375,
0.006134033203125,
-0.0220794677734375,
0.018096923828125,
-0.007106781005859375,
-0.00951385498046875,
0.0174407958984375,
-0.00128173828125,
0.029876708984375,
0.05584716796875,
0.00969696044921875,
-0.0284881591796875,
0.0032024383544921875,
-0.005207061767578125,
0.007488250732421875,
-0.0200347900390625,
0.03497314453125,
-0.060760498046875,
-0.0140380859375,
0.0048675537109375,
-0.01184844970703125,
-0.018341064453125,
0.02154541015625,
0.01050567626953125,
-0.0074615478515625,
0.007343292236328125,
0.001514434814453125,
-0.0164031982421875,
-0.0292205810546875,
0.0635986328125,
0.02117919921875,
0.006439208984375,
-0.04913330078125,
-0.0195770263671875,
0.0262603759765625,
-0.0030040740966796875,
-0.0027484893798828125,
-0.055999755859375,
0.00133514404296875,
-0.002315521240234375,
-0.03155517578125,
-0.033538818359375,
0.0292816162109375,
-0.02947998046875,
0.00565338134765625,
-0.004070281982421875,
0.01629638671875,
-0.03692626953125,
-0.0197296142578125,
-0.01947021484375,
0.0033664703369140625,
-0.017822265625,
-0.041351318359375,
0.0011129379272460938,
-0.0037384033203125,
0.01190948486328125,
-0.021392822265625,
0.0147552490234375,
-0.0189971923828125,
-0.005832672119140625,
-0.016510009765625,
0.00958251953125,
0.0030059814453125,
-0.012420654296875,
-0.024383544921875,
-0.00589752197265625,
0.016204833984375,
0.06396484375,
-0.01103973388671875,
0.01251220703125,
0.0015363693237304688,
0.024505615234375,
-0.006450653076171875,
0.025604248046875,
-0.045135498046875,
-0.006175994873046875,
-0.0259552001953125,
0.0249481201171875,
0.0250244140625,
0.0292510986328125,
0.0081787109375,
0.0382080078125,
0.0009751319885253906,
0.010528564453125,
0.0176544189453125,
0.00019872188568115234,
0.04144287109375,
0.0087738037109375,
-0.04412841796875,
-0.007099151611328125,
0.04681396484375,
-0.025726318359375,
0.0211944580078125,
-0.01800537109375,
0.06512451171875,
0.048828125,
0.016448974609375,
-0.0113983154296875,
0.04644775390625,
0.0625,
-0.0518798828125,
0.038238525390625,
-0.005680084228515625,
-0.0030059814453125,
0.05181884765625,
0.0272674560546875,
0.01380157470703125,
-0.0081024169921875,
-0.03216552734375,
-0.0306396484375,
0.015533447265625,
0.051116943359375,
-0.0020885467529296875,
0.0147705078125,
-0.00403594970703125,
0.046722412109375,
0.037750244140625,
-0.034332275390625,
-0.01221466064453125,
0.025604248046875,
0.01397705078125,
0.004367828369140625,
0.01116943359375,
0.01291656494140625,
-0.050689697265625,
-0.032562255859375,
-0.0205230712890625,
0.03509521484375,
0.0028553009033203125,
0.0188140869140625,
-0.01036834716796875,
0.014617919921875,
0.0435791015625,
0.0087127685546875,
0.0174560546875,
0.0035381317138671875,
0.03515625,
0.0024814605712890625,
0.00830078125,
-0.023345947265625,
-0.0257568359375,
0.0158233642578125,
-0.006866455078125,
0.0260467529296875,
-0.024261474609375,
-0.0204925537109375,
0.0311737060546875,
0.0614013671875,
0.04302978515625,
-0.046875,
-0.043304443359375,
-0.0523681640625,
-0.0200042724609375,
-0.004276275634765625,
-0.0009794235229492188,
0.0347900390625,
-0.0050506591796875,
0.0032100677490234375,
-0.0243377685546875,
0.040252685546875,
-0.000934600830078125,
0.03607177734375,
0.020751953125,
-0.0155487060546875,
-0.005825042724609375,
-0.0010318756103515625,
-0.01788330078125,
-0.00298309326171875,
0.006793975830078125,
0.01404571533203125,
-0.0170135498046875,
-0.024688720703125,
0.04278564453125,
0.03143310546875,
0.0294647216796875,
-0.01236724853515625,
-0.010498046875,
0.07232666015625,
-0.03741455078125,
-0.037811279296875,
0.01103973388671875,
-0.0222930908203125,
-0.040008544921875,
0.00772857666015625,
0.0255889892578125,
-0.005046844482421875,
0.00934600830078125,
-0.05853271484375,
0.010711669921875,
0.041229248046875,
0.02105712890625,
-0.0841064453125,
0.04327392578125,
-0.016815185546875,
0.07122802734375,
0.006229400634765625,
0.023223876953125,
0.01384735107421875,
0.0253448486328125,
-0.04327392578125,
-0.0176544189453125,
-0.00766754150390625,
0.018585205078125,
-0.0160064697265625,
0.01494598388671875,
0.0220794677734375,
-0.023193359375,
0.046051025390625,
0.004261016845703125,
0.039825439453125,
0.05419921875,
-0.00811767578125,
-0.01284027099609375,
-0.0162506103515625,
0.04608154296875,
-0.005290985107421875,
-0.060699462890625,
-0.0195159912109375,
-0.0086669921875,
0.040435791015625,
0.00691986083984375,
0.00846099853515625,
0.02203369140625,
-0.02911376953125,
-0.10308837890625,
0.034393310546875,
-0.006084442138671875,
-0.0367431640625,
-0.011627197265625,
0.004848480224609375,
0.006786346435546875,
-0.048309326171875,
-0.0201568603515625,
-0.0265045166015625,
-0.02374267578125,
0.0198974609375,
0.0008893013000488281,
0.03955078125,
0.0382080078125,
-0.0224761962890625,
-0.031158447265625,
-0.025390625,
-0.0256195068359375,
0.01100921630859375,
-0.036468505859375,
0.013885498046875,
0.006954193115234375,
0.0191497802734375,
-0.0184326171875,
-0.017578125,
0.0238494873046875,
0.010498046875,
0.00799560546875,
0.0207977294921875,
-0.01158905029296875,
-0.0166015625,
0.05908203125,
-0.022369384765625,
0.004833221435546875,
0.0124664306640625,
0.0276336669921875,
-0.035491943359375,
-0.0038776397705078125,
0.0011129379272460938,
-0.007381439208984375,
-0.023101806640625,
-0.00833892822265625,
0.011962890625,
-0.00958251953125,
-0.025970458984375,
-0.01360321044921875,
-0.035186767578125,
-0.0175323486328125,
-0.0294647216796875,
-0.00861358642578125,
-0.023712158203125,
-0.0218505859375,
0.088623046875,
-0.03216552734375,
0.0296783447265625,
0.0112152099609375,
0.0325927734375,
0.067138671875,
0.03253173828125,
-0.02783203125,
0.030731201171875,
-0.0653076171875,
0.01183319091796875,
-0.0209808349609375,
0.0281829833984375,
-0.056640625,
0.0259552001953125,
-0.01555633544921875,
-0.00235748291015625,
-0.007343292236328125,
0.0006256103515625,
0.02227783203125,
-0.0153045654296875,
-0.016357421875,
0.01483154296875,
-0.04974365234375,
-0.0171356201171875,
-0.02593994140625,
-0.01081085205078125,
0.039398193359375,
0.0133514404296875,
0.10760498046875,
-0.0195159912109375,
0.01345062255859375,
-0.0030612945556640625,
-0.0171661376953125,
-0.0164031982421875,
0.006988525390625,
-0.028900146484375,
-0.022613525390625,
0.00260162353515625
] |
e399de28cb9a71930d59108d6ffe830cc1f30899
|
Wordpress Stackexchange
Q: How would I create a different permalink structure for pages and posts? Right now I have pages like "about", "resources", etc and the urls are /about and /resources with a custom permalink structure as /%postname%. For "news" section it's the posts and it's at /news and that's great. The problem is I want the new stories to be /news/the-name-of-the-story not /the-name-of-the-story. Can that be accomplished in the wp admin area? Or is that a custom .htaccess trick? Also, news is in categories and /category/category-name lists the posts in that category and the story for those should be at /category/category-name/the-name-of-the-story. Is this even possible?
A: The custom permalink field on the settings->permalink screen only applies to Posts. Not to Pages.
WordPress Pages always live at the "top" of the URL tree. /about /whatever /etc. Posts live wherever the custom permalink string defines them to be.
So, in your case, your permalinks custom structure would be "/news/%postname%/" and would not affect your Pages permalinks of "/about" and "/resources".
For instance, to put all Posts under the sub-directory "/blog", your permalinks custom structure would be "/blog/%postname%/".
|
Q: How would I create a different permalink structure for pages and posts? Right now I have pages like "about", "resources", etc and the urls are /about and /resources with a custom permalink structure as /%postname%. For "news" section it's the posts and it's at /news and that's great. The problem is I want the new stories to be /news/the-name-of-the-story not /the-name-of-the-story. Can that be accomplished in the wp admin area? Or is that a custom .htaccess trick? Also, news is in categories and /category/category-name lists the posts in that category and the story for those should be at /category/category-name/the-name-of-the-story. Is this even possible?
A: The custom permalink field on the settings->permalink screen only applies to Posts. Not to Pages.
WordPress Pages always live at the "top" of the URL tree. /about /whatever /etc. Posts live wherever the custom permalink string defines them to be.
So, in your case, your permalinks custom structure would be "/news/%postname%/" and would not affect your Pages permalinks of "/about" and "/resources".
For instance, to put all Posts under the sub-directory "/blog", your permalinks custom structure would be "/blog/%postname%/".
|
wordpress
|
{
"language": "en",
"length": 184,
"provenance": "stackexchange_00019.jsonl.gz:411285",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22890"
}
|
[
0.036041259765625,
-0.025482177734375,
0.042938232421875,
0.001743316650390625,
-0.041900634765625,
-0.0037212371826171875,
0.037994384765625,
-0.0396728515625,
-0.04443359375,
0.005474090576171875,
0.0167999267578125,
0.00861358642578125,
-0.02862548828125,
-0.04278564453125,
0.03887939453125,
-0.0188140869140625,
0.0299072265625,
-0.0217742919921875,
0.0210723876953125,
-0.01861572265625,
0.0276947021484375,
-0.0190887451171875,
0.051971435546875,
0.00252532958984375,
0.0106201171875,
-0.0224609375,
0.0673828125,
-0.03814697265625,
0.009307861328125,
-0.03643798828125,
0.0224151611328125,
-0.003459930419921875,
-0.0006651878356933594,
0.002292633056640625,
0.040740966796875,
0.010467529296875,
0.0294647216796875,
-0.0015020370483398438,
0.037384033203125,
-0.0024509429931640625,
0.015716552734375,
-0.00760650634765625,
0.06463623046875,
0.05059814453125,
0.035125732421875,
-0.036590576171875,
0.0174713134765625,
-0.09521484375,
0.0294342041015625,
-0.03839111328125,
-0.002399444580078125,
0.02630615234375,
0.01910400390625,
-0.014404296875,
-0.042510986328125,
-0.041961669921875,
0.00844573974609375,
-0.040863037109375,
0.036895751953125,
-0.043731689453125,
-0.0236358642578125,
-0.03375244140625,
0.05218505859375,
0.0256195068359375,
-0.0159759521484375,
-0.01393890380859375,
0.0221099853515625,
0.0390625,
-0.040924072265625,
-0.02288818359375,
0.0263671875,
-0.0177154541015625,
-0.00434112548828125,
-0.059844970703125,
-0.032440185546875,
0.0325927734375,
-0.003871917724609375,
-0.03948974609375,
0.005947113037109375,
-0.0256805419921875,
0.017852783203125,
0.006290435791015625,
0.01055908203125,
-0.0469970703125,
0.0293121337890625,
-0.046600341796875,
0.00022292137145996094,
-0.0046844482421875,
-0.0238494873046875,
-0.04791259765625,
-0.0243988037109375,
-0.0296478271484375,
-0.03375244140625,
0.002254486083984375,
-0.0254058837890625,
-0.003482818603515625,
0.0146636962890625,
0.059326171875,
-0.0003864765167236328,
0.01514434814453125,
0.0034008026123046875,
-0.0235443115234375,
0.03167724609375,
-0.045654296875,
0.01885986328125,
-0.006317138671875,
-0.01035308837890625,
0.0123291015625,
0.07196044921875,
0.0282135009765625,
-0.0150146484375,
0.06536865234375,
-0.00281524658203125,
0.0035305023193359375,
-0.03253173828125,
0.044891357421875,
-0.0168304443359375,
-0.0021533966064453125,
-0.0071258544921875,
0.042510986328125,
-0.005542755126953125,
0.050262451171875,
-0.00589752197265625,
-0.00550079345703125,
-0.004207611083984375,
0.0079803466796875,
0.0114593505859375,
-0.050079345703125,
0.0039825439453125,
0.0540771484375,
-0.0193634033203125,
-0.0113372802734375,
0.027984619140625,
0.027618408203125,
0.00608062744140625,
-0.024017333984375,
0.0325927734375,
-0.031402587890625,
-0.0144195556640625,
0.00533294677734375,
0.0144805908203125,
0.00435638427734375,
0.006801605224609375,
-0.02716064453125,
-0.0014209747314453125,
0.011505126953125,
0.0111083984375,
0.0221099853515625,
0.00395965576171875,
-0.0115814208984375,
-0.03436279296875,
0.00928497314453125,
0.052886962890625,
-0.016021728515625,
0.0007171630859375,
-0.07025146484375,
0.031890869140625,
-0.04302978515625,
0.00841522216796875,
-0.049346923828125,
0.05023193359375,
0.00952911376953125,
0.0148773193359375,
-0.036834716796875,
-0.051788330078125,
-0.0226287841796875,
-0.0821533203125,
-0.009033203125,
0.02496337890625,
-0.0040435791015625,
0.015838623046875,
0.010406494140625,
-0.0311737060546875,
-0.0171966552734375,
0.004978179931640625,
-0.0205841064453125,
-0.001789093017578125,
0.024688720703125,
-0.021392822265625,
0.0728759765625,
0.0352783203125,
-0.020538330078125,
0.0002512931823730469,
0.020477294921875,
-0.041290283203125,
0.018157958984375,
0.03338623046875,
0.05523681640625,
-0.0253753662109375,
0.033905029296875,
0.033660888671875,
0.024658203125,
-0.054290771484375,
0.0232696533203125,
-0.0210723876953125,
-0.0225372314453125,
0.04541015625,
0.0252685546875,
0.0016584396362304688,
-0.0167388916015625,
-0.041290283203125,
0.0406494140625,
-0.005863189697265625,
0.045989990234375,
0.0290374755859375,
0.03802490234375,
0.0016078948974609375,
0.03619384765625,
-0.0022754669189453125,
0.0220184326171875,
0.01027679443359375,
0.004894256591796875,
-0.0009775161743164062,
-0.10174560546875,
-0.04254150390625,
0.01500701904296875,
0.006832122802734375,
-0.00800323486328125,
-0.0285186767578125,
0.01052093505859375,
0.00740814208984375,
-0.01934814453125,
-0.03057861328125,
0.03546142578125,
0.06512451171875,
-0.051239013671875,
-0.0008187294006347656,
-0.057220458984375,
-0.0099639892578125,
0.01418304443359375,
-0.1201171875,
0.042144775390625,
0.037994384765625,
0.0264434814453125,
-0.03363037109375,
0.00994873046875,
0.00464630126953125,
0.00366973876953125,
-0.0170745849609375,
0.0352783203125,
0.0234375,
0.029449462890625,
-0.0240478515625,
-0.006336212158203125,
0.022613525390625,
-0.0404052734375,
0.0014295578002929688,
0.0023021697998046875,
-0.00032806396484375,
0.057037353515625,
-0.004180908203125,
0.01556396484375,
0.006191253662109375,
-0.05242919921875,
-0.003482818603515625,
0.0543212890625,
-0.01044464111328125,
-0.0208892822265625,
0.01282501220703125,
0.0016145706176757812,
0.024200439453125,
0.04620361328125,
-0.030181884765625,
0.0126190185546875,
0.04315185546875,
0.01483154296875,
0.036376953125,
0.04315185546875,
-0.015380859375,
0.0018835067749023438,
0.0003428459167480469,
-0.00969696044921875,
-0.004665374755859375,
0.030120849609375,
0.027435302734375,
-0.03216552734375,
-0.032684326171875,
-0.00034546852111816406,
0.017730712890625,
0.007114410400390625,
-0.022674560546875,
0.04766845703125,
-0.0296478271484375,
-0.0171966552734375,
-0.038360595703125,
-0.0845947265625,
-0.0153350830078125,
0.00933074951171875,
0.0183258056640625,
0.001544952392578125,
0.031097412109375,
0.00995635986328125,
-0.01244354248046875,
0.02349853515625,
0.007171630859375,
-0.027679443359375,
0.00794219970703125,
-0.0643310546875,
0.062255859375,
-0.03582763671875,
0.031219482421875,
0.07373046875,
0.0090789794921875,
-0.0002696514129638672,
0.004302978515625,
0.0066986083984375,
0.003559112548828125,
0.00600433349609375,
-0.01043701171875,
-0.005489349365234375,
-0.032745361328125,
0.00942230224609375,
0.0316162109375,
0.0261383056640625,
0.0216217041015625,
-0.008941650390625,
0.0189971923828125,
0.0423583984375,
-0.033233642578125,
-0.0616455078125,
0.0235748291015625,
-0.031585693359375,
0.029998779296875,
0.0023326873779296875,
-0.00804901123046875,
-0.0537109375,
0.0213165283203125,
-0.0048980712890625,
-0.006259918212890625,
-0.015869140625,
-0.053680419921875,
-0.041046142578125,
-0.06884765625,
0.034698486328125,
-0.006908416748046875,
0.02008056640625,
0.00516510009765625,
0.0072021484375,
-0.0106658935546875,
-0.05828857421875,
-0.0048980712890625,
0.03485107421875,
-0.005889892578125,
-0.0110931396484375,
0.0040740966796875,
-0.0251312255859375,
0.0278778076171875,
-0.00998687744140625,
0.06707763671875,
0.0662841796875,
-0.040130615234375,
0.0128936767578125,
-0.029937744140625,
-0.019134521484375,
0.00860595703125,
0.0211029052734375,
0.04541015625,
-0.0004012584686279297,
0.018707275390625,
-0.0552978515625,
-0.073974609375,
-0.021514892578125,
-0.0810546875,
0.0171661376953125,
0.061614990234375,
0.014862060546875,
-0.029510498046875,
0.03173828125,
0.00032210350036621094,
0.0302886962890625,
0.04254150390625,
-0.027130126953125,
0.01444244384765625,
-0.01513671875,
-0.01204681396484375,
-0.04376220703125,
0.04180908203125,
-0.026702880859375,
0.028289794921875,
0.0186004638671875,
-0.030792236328125,
-0.020355224609375,
-0.003971099853515625,
-0.0222320556640625,
-0.05194091796875,
0.0258941650390625,
-0.0826416015625,
-0.03369140625,
-0.0294952392578125,
-0.0035533905029296875,
0.005054473876953125,
0.048187255859375,
-0.0379638671875,
-0.002025604248046875,
-0.005870819091796875,
0.003498077392578125,
-0.0243377685546875,
-0.035980224609375,
-0.04180908203125,
-0.0086517333984375,
-0.03875732421875,
-0.0124664306640625,
-0.03424072265625,
-0.02099609375,
-0.0038089752197265625,
0.02020263671875,
-0.00811767578125,
-0.030853271484375,
0.0192413330078125,
0.00807952880859375,
-0.01519775390625,
0.0088348388671875,
0.00047087669372558594,
-0.01898193359375,
-0.005855560302734375,
-0.007152557373046875,
-0.07611083984375,
-0.0226593017578125,
0.00751495361328125,
0.0509033203125,
0.0098419189453125,
-0.04559326171875,
0.0016736984252929688,
0.05731201171875,
-0.0205078125,
0.005733489990234375,
0.015716552734375,
0.0244598388671875,
0.0205078125,
-0.0003266334533691406,
0.0020999908447265625,
-0.0176849365234375,
0.0078277587890625,
-0.0133056640625,
-0.0289459228515625,
0.005176544189453125,
-0.03497314453125,
-0.005084991455078125,
-0.01503753662109375,
-0.0166778564453125,
-0.05859375,
0.003932952880859375,
-0.0220794677734375,
0.005550384521484375,
-0.0146026611328125,
-0.01264190673828125,
-0.00621795654296875,
-0.071044921875,
0.0308380126953125,
-0.0024089813232421875,
0.007472991943359375,
0.00881195068359375,
0.07855224609375,
0.0043487548828125,
-0.0186767578125,
-0.053466796875,
0.01293182373046875,
0.0401611328125,
0.002696990966796875,
0.0692138671875,
0.03271484375,
0.003589630126953125,
0.0128936767578125,
-0.0016984939575195312,
-0.021575927734375,
0.00647735595703125,
0.00977325439453125,
0.0015840530395507812,
-0.00799560546875,
-0.006275177001953125,
-0.03167724609375,
0.04071044921875,
0.032928466796875,
-0.006839752197265625,
-0.00994873046875,
-0.04608154296875,
0.040496826171875,
-0.0138397216796875,
0.038238525390625,
-0.0313720703125,
-0.02392578125,
0.0159149169921875,
0.01141357421875,
0.053741455078125,
0.00948333740234375,
-0.00978851318359375,
0.036529541015625,
0.006015777587890625,
-0.0079345703125,
0.0251922607421875,
0.0176239013671875,
0.0228424072265625,
0.020965576171875,
0.0223541259765625,
-0.009063720703125,
-0.0186920166015625,
-0.00644683837890625,
0.03912353515625,
0.0269012451171875,
0.0010118484497070312,
-0.00899505615234375,
-0.0173492431640625,
-0.0026226043701171875,
0.00440216064453125,
0.004199981689453125,
0.041473388671875,
0.0191650390625,
0.001102447509765625,
0.015411376953125,
-0.028167724609375,
0.0035247802734375,
-0.038604736328125,
0.031585693359375,
0.005672454833984375,
-0.005832672119140625,
-0.0203704833984375,
0.061859130859375,
0.01505279541015625,
0.0218353271484375,
-0.01372528076171875,
0.01161956787109375,
0.03778076171875,
0.0109710693359375,
0.0161285400390625,
0.01812744140625,
-0.01259613037109375,
-0.0165557861328125,
0.022247314453125,
-0.041046142578125,
-0.0179290771484375,
0.042266845703125,
0.0794677734375,
0.0001201629638671875,
-0.01250457763671875,
-0.033111572265625,
-0.04022216796875,
-0.0105438232421875,
0.0130767822265625,
-0.038116455078125,
-0.050689697265625,
-0.01425933837890625,
0.0038204193115234375,
0.01058197021484375,
-0.0257110595703125,
-0.0268707275390625,
-0.0020542144775390625,
-0.05023193359375,
-0.00522613525390625,
0.0423583984375,
-0.0093536376953125,
-0.01148223876953125,
-0.0307159423828125,
0.00032448768615722656,
-0.0006823539733886719,
0.0204620361328125,
-0.0293121337890625,
-0.001739501953125,
-0.0263671875,
-0.01192474365234375,
0.05987548828125,
-0.0292816162109375,
0.035247802734375,
-0.0192413330078125,
-0.018218994140625,
-0.004199981689453125,
0.0177001953125,
0.002864837646484375,
-0.00971221923828125,
-0.0726318359375,
0.02215576171875,
-0.0228118896484375,
0.00768280029296875,
-0.0241546630859375,
-0.0193939208984375,
-0.057159423828125,
-0.0219268798828125,
0.02001953125,
-0.0011510848999023438,
0.02447509765625,
0.0142059326171875,
-0.045166015625,
0.041107177734375,
0.019134521484375,
0.00548553466796875,
-0.04022216796875,
0.08465576171875,
0.00691986083984375,
0.0467529296875,
-0.002368927001953125,
0.03057861328125,
-0.0121612548828125,
-0.006282806396484375,
-0.005096435546875,
-0.0704345703125,
-0.033477783203125,
-0.0038623809814453125,
-0.045501708984375,
0.06744384765625,
0.076171875,
0.00904083251953125,
0.00966644287109375,
-0.0191650390625,
0.00475311279296875,
-0.02099609375,
-0.04254150390625,
-0.05999755859375,
-0.0126800537109375,
-0.01494598388671875,
0.0237884521484375,
0.07037353515625,
-0.0157470703125,
-0.0266571044921875,
0.004848480224609375,
-0.0005903244018554688,
0.0291748046875,
0.007572174072265625,
-0.047454833984375,
0.0328369140625,
0.06304931640625,
0.04559326171875,
0.044647216796875,
0.0028438568115234375,
0.0235748291015625,
-0.00908660888671875,
0.00675201416015625,
0.062744140625,
0.0184478759765625,
0.08099365234375,
0.0171661376953125,
0.00284576416015625,
0.059051513671875,
-0.039459228515625,
-0.020782470703125,
0.058990478515625,
0.0167999267578125,
-0.0899658203125,
0.0046539306640625,
-0.01044464111328125,
0.040557861328125,
0.0455322265625,
-0.01409912109375,
0.01132965087890625,
0.01447296142578125,
0.0018472671508789062,
-0.0070037841796875,
-0.035675048828125,
-0.0222625732421875,
-0.01702880859375,
-0.00897979736328125,
-0.0010709762573242188,
0.0232696533203125,
0.01235198974609375,
0.027740478515625,
-0.02880859375,
-0.0145721435546875,
0.01270294189453125,
-0.0038585662841796875,
-0.005596160888671875,
-0.0276336669921875,
-0.0301055908203125,
-0.0255889892578125,
-0.0018978118896484375,
-0.0251007080078125,
0.00478363037109375,
0.015960693359375,
-0.014617919921875,
0.0004546642303466797,
0.04931640625,
-0.04046630859375,
0.03173828125,
0.020111083984375,
-0.0286865234375,
-0.00269317626953125,
-0.002796173095703125,
-0.002063751220703125,
0.00820159912109375,
0.0005831718444824219,
-0.0008268356323242188,
-0.01812744140625,
-0.0157318115234375,
-0.00978851318359375,
-0.04681396484375,
0.09521484375,
-0.0616455078125,
-0.01026153564453125,
0.0198211669921875,
-0.019439697265625,
-0.009765625,
0.002223968505859375,
0.01788330078125,
-0.033294677734375,
-0.003070831298828125,
0.0017538070678710938,
-0.0089874267578125,
-0.00403594970703125,
0.00717926025390625,
-0.05712890625,
0.09375,
-0.030731201171875,
0.0606689453125,
0.054962158203125,
0.01251220703125,
-0.0341796875,
-0.01250457763671875,
-0.0290374755859375,
0.046630859375,
0.00506591796875,
0.032989501953125,
-0.041107177734375,
-0.0111541748046875,
0.01277923583984375,
0.031829833984375,
0.0748291015625,
0.03399658203125,
-0.0308685302734375,
-0.023529052734375,
0.024566650390625,
0.01568603515625,
-0.022613525390625,
0.038238525390625,
-0.016357421875,
0.053253173828125,
0.04010009765625,
-0.023040771484375,
0.0281524658203125,
0.0145721435546875,
-0.05426025390625,
0.00522613525390625,
0.0295257568359375,
0.041534423828125,
0.01181793212890625,
-0.01435089111328125,
-0.025390625,
0.0012216567993164062,
0.05364990234375,
-0.052886962890625,
0.00858306884765625,
0.028900146484375,
0.04998779296875,
-0.06201171875,
-0.0229034423828125,
-0.029266357421875,
0.052764892578125,
0.0140380859375,
0.017608642578125,
0.01233673095703125,
0.01210784912109375,
0.04071044921875,
0.01140594482421875,
0.01367950439453125,
0.0374755859375,
-0.00275421142578125,
0.0570068359375,
0.041656494140625,
0.01415252685546875,
-0.015106201171875,
0.00628662109375,
0.0465087890625,
0.06787109375,
-0.05633544921875,
-0.02099609375,
0.00504302978515625,
0.02264404296875,
0.021636962890625,
-0.0245819091796875,
0.01483917236328125,
0.0255584716796875,
0.03912353515625,
-0.03448486328125,
-0.0197601318359375,
0.0042724609375,
0.03009033203125,
-0.017303466796875,
-0.041168212890625,
-0.008209228515625,
-0.00875091552734375,
-0.04278564453125,
0.0167236328125,
0.034820556640625,
0.049072265625,
0.012451171875,
0.0301971435546875,
0.00576019287109375,
-0.0243682861328125,
0.034637451171875,
-0.01409912109375,
-0.0285797119140625,
-0.0208587646484375,
-0.01503753662109375,
-0.06524658203125,
0.0458984375,
0.032012939453125,
0.035858154296875,
0.0228271484375,
0.01568603515625,
-0.0024433135986328125,
0.0191802978515625,
0.01096343994140625,
-0.0164794921875,
-0.018096923828125,
0.0305328369140625,
-0.0275421142578125,
0.0201416015625,
-0.012420654296875,
-0.01922607421875,
-0.047119140625,
0.01535797119140625,
0.0184478759765625,
-0.0002720355987548828,
-0.0105438232421875,
0.00511932373046875,
-0.019744873046875,
0.052978515625,
-0.0243682861328125,
0.04644775390625,
0.0016756057739257812,
-0.02191162109375,
0.00914764404296875,
-0.060089111328125,
-0.07720947265625,
0.037750244140625,
0.046966552734375,
0.01263427734375,
-0.03228759765625,
0.0287017822265625,
0.0118255615234375,
0.0038127899169921875,
-0.0213470458984375,
0.0226287841796875,
0.047088623046875,
0.0135955810546875,
0.051055908203125,
-0.059722900390625,
-0.036956787109375,
-0.0199127197265625,
0.02099609375,
0.0125579833984375,
0.133056640625,
-0.0311279296875,
0.00655364990234375,
-0.01441192626953125,
0.00498199462890625,
-0.0225830078125,
-0.01427459716796875,
0.0180816650390625,
0.0015897750854492188,
0.00965118408203125,
-0.00927734375,
-0.00365447998046875,
0.004230499267578125,
0.0292205810546875,
-0.07177734375,
-0.00396728515625,
-0.040313720703125,
0.01517486572265625,
-0.03204345703125,
-0.018524169921875,
-0.045989990234375,
-0.054931640625,
-0.0570068359375,
-0.0029926300048828125,
0.00530242919921875,
-0.0023975372314453125,
-0.0215301513671875,
0.05340576171875,
-0.0125274658203125,
-0.0263214111328125,
0.0102996826171875,
-0.06573486328125,
0.0218048095703125,
0.044189453125,
0.00431060791015625,
-0.040496826171875,
0.0311431884765625,
-0.0049591064453125,
0.00759124755859375,
0.01678466796875,
0.034454345703125,
0.034149169921875,
-0.0247344970703125,
-0.02978515625,
-0.004634857177734375,
0.0121612548828125,
-0.0134735107421875,
0.0084228515625,
-0.024322509765625,
-0.0199737548828125,
0.02972412109375,
-0.0396728515625,
-0.026947021484375,
-0.0283966064453125,
0.003559112548828125,
0.031829833984375,
-0.01410675048828125,
-0.0265350341796875,
-0.0625,
0.0146484375,
0.038360595703125,
0.0010004043579101562,
-0.0572509765625,
0.0347900390625,
-0.026763916015625,
0.0699462890625,
-0.019378662109375,
-0.0047149658203125,
0.00652313232421875,
0.046875,
-0.0170135498046875,
-0.02099609375,
-0.0241546630859375,
0.004894256591796875,
-0.036895751953125,
-0.00176239013671875,
0.016021728515625,
-0.007965087890625,
-0.0225830078125,
0.00426483154296875,
-0.018646240234375,
0.055999755859375,
-0.007099151611328125,
-0.0108795166015625,
-0.0005254745483398438,
0.016845703125,
-0.022735595703125,
-0.038482666015625,
0.00658416748046875,
-0.0132598876953125,
-0.0073394775390625,
-0.00971221923828125,
-0.01983642578125,
-0.0034942626953125,
-0.0244598388671875,
-0.00780487060546875,
0.0240478515625,
0.013214111328125,
-0.01523590087890625,
-0.0401611328125,
-0.00363922119140625,
-0.0186309814453125,
0.05682373046875,
0.007518768310546875,
-0.0216522216796875,
-0.0232696533203125,
0.03271484375,
0.00859832763671875,
0.0533447265625,
-0.00659942626953125,
0.0296783447265625,
0.016021728515625,
0.047821044921875,
0.050628662109375,
-0.006134033203125,
0.041351318359375,
-0.0091705322265625,
0.0350341796875,
0.042877197265625,
-0.04254150390625,
0.028106689453125,
-0.03411865234375,
-0.0074615478515625,
0.0035247802734375,
-0.053558349609375,
-0.048187255859375,
-0.0303802490234375,
0.07916259765625,
0.02557373046875,
0.03076171875,
-0.0218658447265625,
-0.0166778564453125,
-0.046875,
-0.0204010009765625,
0.00011581182479858398,
0.0233612060546875,
-0.041961669921875,
0.032623291015625,
0.0115814208984375,
0.020751953125,
-0.01114654541015625,
-0.015899658203125,
0.00006383657455444336,
-0.015380859375,
0.0225067138671875,
0.0020618438720703125,
0.00846099853515625,
-0.006122589111328125,
0.05511474609375,
-0.04498291015625,
-0.01666259765625,
0.005954742431640625,
0.0150146484375,
0.00213623046875,
-0.019256591796875,
-0.0303497314453125,
-0.0035152435302734375,
-0.0033969879150390625,
0.0238037109375,
0.00286865234375,
0.034393310546875,
-0.015625,
0.0165863037109375,
-0.0046539306640625,
0.00963592529296875,
-0.00940704345703125,
0.0015001296997070312,
-0.0181732177734375,
0.037078857421875,
-0.0036182403564453125,
0.09765625,
0.0176239013671875,
0.004238128662109375,
0.0023784637451171875,
0.04595947265625,
-0.016021728515625,
-0.0209503173828125,
-0.01210784912109375,
-0.036407470703125,
-0.01038360595703125,
0.00879669189453125,
-0.02239990234375,
-0.04559326171875,
-0.007511138916015625,
-0.00052642822265625,
0.00571441650390625,
0.01006317138671875
] |
7bdcb6e3301a57cfffb2d8cb2fbd3d0a08c69ed5
|
Wordpress Stackexchange
Q: Calling static method in the Widget Class I have a widget
class Xwidget extends WP_Widget{
function cron_addB(){}
}
I want to run a cron job that calls that function from outside the class
function xxx_cron_activation() { ;
if ( !wp_next_scheduled( 'xxx_followers' ) ) {
wp_schedule_event(time(), 'hourly', 'xxx_followers');
}
}
add_action('wp', 'xxx_cron_activation');
add_action('xxx_followers',array('Xwidget',"cron_addB"));
Cron is being triggered but the function is not being executed
A: Try this instead:
$gloabl $myxclass;
$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );
or
add_action('xxx_followers', "init_xclass_and_cron");
function init_xclass_and_cron() {
$myxclass = new Xwidget();
$myxclass->cron_addB();
}
|
Q: Calling static method in the Widget Class I have a widget
class Xwidget extends WP_Widget{
function cron_addB(){}
}
I want to run a cron job that calls that function from outside the class
function xxx_cron_activation() { ;
if ( !wp_next_scheduled( 'xxx_followers' ) ) {
wp_schedule_event(time(), 'hourly', 'xxx_followers');
}
}
add_action('wp', 'xxx_cron_activation');
add_action('xxx_followers',array('Xwidget',"cron_addB"));
Cron is being triggered but the function is not being executed
A: Try this instead:
$gloabl $myxclass;
$myxclass = new Xwidget();
add_action( 'xxx_followers', array(&$myxclass, "cron_addB" ) );
or
add_action('xxx_followers', "init_xclass_and_cron");
function init_xclass_and_cron() {
$myxclass = new Xwidget();
$myxclass->cron_addB();
}
|
wordpress
|
{
"language": "en",
"length": 92,
"provenance": "stackexchange_00019.jsonl.gz:411291",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22918"
}
|
[
0.09014892578125,
-0.0008869171142578125,
0.0175323486328125,
-0.05242919921875,
0.022308349609375,
-0.0338134765625,
0.036651611328125,
-0.0227203369140625,
-0.00592041015625,
0.00623321533203125,
-0.0301971435546875,
0.033477783203125,
-0.024444580078125,
-0.0034885406494140625,
0.022979736328125,
-0.017364501953125,
0.04791259765625,
0.0224609375,
0.043609619140625,
0.00701904296875,
-0.0216522216796875,
0.03265380859375,
-0.0018434524536132812,
0.07391357421875,
-0.01258087158203125,
0.0052642822265625,
0.06610107421875,
0.0119171142578125,
-0.012603759765625,
-0.00812530517578125,
0.0113372802734375,
-0.0159454345703125,
0.00537872314453125,
0.032623291015625,
-0.0208282470703125,
0.01177978515625,
-0.011566162109375,
0.0198974609375,
0.0199127197265625,
0.0178985595703125,
0.005725860595703125,
-0.0018968582153320312,
-0.0156402587890625,
0.0259552001953125,
-0.0428466796875,
-0.06341552734375,
0.0341796875,
0.0003190040588378906,
0.01155853271484375,
0.061065673828125,
0.012176513671875,
-0.045166015625,
0.0257110595703125,
-0.0089569091796875,
-0.0223236083984375,
-0.034027099609375,
-0.0157318115234375,
-0.0013685226440429688,
0.0205230712890625,
0.02532958984375,
0.0100555419921875,
0.022918701171875,
-0.010955810546875,
-0.0189666748046875,
0.019622802734375,
-0.0216522216796875,
-0.0294036865234375,
0.01495361328125,
-0.02069091796875,
0.01081085205078125,
0.05316162109375,
-0.0241851806640625,
-0.004413604736328125,
0.01885986328125,
-0.0142364501953125,
-0.06341552734375,
0.02105712890625,
-0.0277862548828125,
0.0088653564453125,
0.03302001953125,
0.06536865234375,
0.05072021484375,
-0.012115478515625,
0.01139068603515625,
-0.00020694732666015625,
0.019195556640625,
-0.0008063316345214844,
-0.04827880859375,
-0.0132904052734375,
-0.0236358642578125,
-0.01352691650390625,
-0.004924774169921875,
0.0218963623046875,
-0.07073974609375,
-0.023193359375,
-0.07080078125,
0.04052734375,
0.03594970703125,
-0.01004791259765625,
0.0013227462768554688,
0.0081939697265625,
-0.041412353515625,
0.0197296142578125,
-0.0223541259765625,
-0.01544952392578125,
0.089599609375,
0.0239715576171875,
0.056304931640625,
-0.00440216064453125,
0.01421356201171875,
0.027252197265625,
-0.08984375,
0.073974609375,
-0.0233154296875,
0.0155029296875,
-0.060150146484375,
0.00453948974609375,
0.042266845703125,
0.03399658203125,
-0.0638427734375,
0.0187835693359375,
0.0059661865234375,
0.0226593017578125,
-0.00745391845703125,
0.005916595458984375,
0.01360321044921875,
-0.0238494873046875,
-0.035797119140625,
0.033477783203125,
-0.019195556640625,
-0.0273284912109375,
0.028533935546875,
-0.0009183883666992188,
-0.00753021240234375,
-0.016265869140625,
-0.012359619140625,
0.0418701171875,
-0.018890380859375,
-0.0032901763916015625,
0.0031585693359375,
0.0440673828125,
-0.0281524658203125,
-0.0455322265625,
0.034759521484375,
0.02783203125,
0.00789642333984375,
0.0192413330078125,
0.0212860107421875,
0.0014925003051757812,
0.00847625732421875,
-0.00550079345703125,
0.0138397216796875,
0.0014286041259765625,
0.0291595458984375,
0.01885986328125,
-0.0119171142578125,
0.02374267578125,
-0.018890380859375,
0.01763916015625,
-0.010833740234375,
-0.006046295166015625,
-0.0225067138671875,
0.00887298583984375,
-0.07220458984375,
-0.079345703125,
0.024871826171875,
-0.046722412109375,
-0.0089874267578125,
0.03399658203125,
-0.00988006591796875,
0.019317626953125,
-0.007801055908203125,
0.06396484375,
0.0183258056640625,
0.004390716552734375,
0.02301025390625,
-0.0124969482421875,
0.01308441162109375,
0.031982421875,
-0.0419921875,
-0.057586669921875,
-0.050262451171875,
0.041015625,
-0.0297698974609375,
-0.0369873046875,
0.005573272705078125,
0.0227203369140625,
0.0648193359375,
0.0157928466796875,
0.03131103515625,
-0.008026123046875,
-0.00841522216796875,
-0.0137176513671875,
0.035064697265625,
-0.01145172119140625,
-0.004650115966796875,
-0.0482177734375,
0.011810302734375,
-0.0211334228515625,
-0.012725830078125,
0.019866943359375,
0.0281524658203125,
-0.0194854736328125,
-0.017852783203125,
-0.047943115234375,
-0.00008398294448852539,
-0.007587432861328125,
0.0259246826171875,
0.01457977294921875,
0.0034313201904296875,
0.0150299072265625,
0.00820159912109375,
-0.0214080810546875,
-0.038818359375,
-0.04388427734375,
0.024932861328125,
-0.0011529922485351562,
0.08770751953125,
-0.00457000732421875,
0.0655517578125,
-0.047271728515625,
-0.0638427734375,
-0.0288543701171875,
-0.0126800537109375,
0.0360107421875,
-0.0225830078125,
-0.01702880859375,
-0.0322265625,
-0.0006213188171386719,
0.00634765625,
-0.038238525390625,
0.04620361328125,
-0.0196990966796875,
0.0250091552734375,
-0.0252227783203125,
-0.01494598388671875,
-0.010894775390625,
0.01235198974609375,
0.00995635986328125,
0.037994384765625,
0.0222015380859375,
0.0085906982421875,
-0.01751708984375,
0.00942230224609375,
0.01287841796875,
-0.0296783447265625,
0.010955810546875,
-0.017059326171875,
-0.031829833984375,
-0.00806427001953125,
0.0154876708984375,
-0.00600433349609375,
0.034576416015625,
-0.0081329345703125,
-0.05145263671875,
0.056243896484375,
0.031402587890625,
-0.034393310546875,
0.01387786865234375,
0.0229034423828125,
0.01331329345703125,
-0.04095458984375,
-0.0799560546875,
0.023162841796875,
-0.057769775390625,
0.005764007568359375,
-0.0223388671875,
-0.0163116455078125,
-0.0120849609375,
-0.01421356201171875,
0.047332763671875,
-0.01259613037109375,
-0.006793975830078125,
0.05267333984375,
0.00507354736328125,
-0.0086212158203125,
-0.027679443359375,
-0.002277374267578125,
-0.04193115234375,
0.00812530517578125,
0.01526641845703125,
0.06982421875,
0.01505279541015625,
-0.0181427001953125,
-0.0435791015625,
-0.016021728515625,
0.00797271728515625,
0.002513885498046875,
-0.0150909423828125,
-0.0020904541015625,
0.01409912109375,
0.052703857421875,
0.0038623809814453125,
0.012939453125,
-0.0026760101318359375,
0.0028781890869140625,
0.06121826171875,
0.01284027099609375,
0.01018524169921875,
0.0025424957275390625,
0.00475311279296875,
0.039215087890625,
-0.006786346435546875,
0.0074462890625,
-0.0026035308837890625,
-0.0085906982421875,
0.0181884765625,
0.00487518310546875,
-0.00318145751953125,
0.01812744140625,
-0.07635498046875,
0.042694091796875,
0.01099395751953125,
0.072509765625,
-0.007595062255859375,
-0.0504150390625,
0.0162811279296875,
0.0201263427734375,
-0.041534423828125,
-0.049896240234375,
-0.03594970703125,
-0.0433349609375,
0.026611328125,
-0.002521514892578125,
-0.0032901763916015625,
-0.0118560791015625,
0.005573272705078125,
0.0280303955078125,
-0.041839599609375,
0.01270294189453125,
-0.0224151611328125,
-0.0312347412109375,
-0.03765869140625,
0.01302337646484375,
-0.004970550537109375,
0.024261474609375,
0.007213592529296875,
0.042877197265625,
-0.01068878173828125,
-0.041534423828125,
0.0143280029296875,
0.002246856689453125,
-0.01139068603515625,
0.0206451416015625,
0.025604248046875,
-0.046722412109375,
0.00605010986328125,
-0.00699615478515625,
0.035797119140625,
0.0252838134765625,
-0.0164337158203125,
-0.0091400146484375,
0.022369384765625,
0.0226287841796875,
0.034942626953125,
0.05096435546875,
-0.01690673828125,
0.01163482666015625,
0.029449462890625,
-0.019195556640625,
0.01556396484375,
-0.01226806640625,
-0.0100555419921875,
0.0298309326171875,
-0.0003924369812011719,
-0.0117340087890625,
-0.007411956787109375,
0.00592041015625,
-0.00027561187744140625,
-0.00882720947265625,
0.039337158203125,
0.0160675048828125,
0.001331329345703125,
-0.0165557861328125,
-0.0247039794921875,
-0.0282440185546875,
0.00435638427734375,
-0.032958984375,
0.06396484375,
0.0062255859375,
-0.0084228515625,
-0.023223876953125,
-0.0033779144287109375,
-0.06536865234375,
0.0289764404296875,
0.0189971923828125,
-0.005336761474609375,
-0.0010766983032226562,
0.0372314453125,
-0.0036067962646484375,
0.027923583984375,
0.02764892578125,
-0.040771484375,
-0.0237579345703125,
-0.011444091796875,
0.0272979736328125,
-0.0716552734375,
-0.0950927734375,
-0.0167388916015625,
-0.01091766357421875,
-0.05755615234375,
0.019561767578125,
0.0014142990112304688,
-0.0133056640625,
-0.03558349609375,
0.013336181640625,
-0.0628662109375,
-0.0341796875,
0.0101776123046875,
0.00998687744140625,
0.0296478271484375,
-0.01374053955078125,
0.0211334228515625,
-0.01033782958984375,
0.0140838623046875,
-0.039886474609375,
-0.060546875,
-0.00426483154296875,
-0.050994873046875,
0.055877685546875,
0.03375244140625,
0.0061492919921875,
-0.0027942657470703125,
0.053955078125,
0.0308685302734375,
0.014312744140625,
0.025970458984375,
-0.004329681396484375,
0.0169219970703125,
0.022186279296875,
0.0159454345703125,
-0.005542755126953125,
0.0263214111328125,
0.002742767333984375,
-0.06976318359375,
0.01099395751953125,
-0.039459228515625,
0.02105712890625,
0.0009179115295410156,
-0.040313720703125,
0.0217132568359375,
-0.02142333984375,
-0.0211639404296875,
0.051513671875,
-0.02972412109375,
0.00594329833984375,
-0.040191650390625,
-0.01157379150390625,
-0.00627899169921875,
-0.06610107421875,
0.0009398460388183594,
0.02154541015625,
0.0662841796875,
0.020599365234375,
0.0160064697265625,
0.006587982177734375,
0.01055145263671875,
0.021209716796875,
0.0052337646484375,
0.0189056396484375,
-0.0048370361328125,
-0.00316619873046875,
-0.002429962158203125,
-0.00867462158203125,
0.005451202392578125,
-0.00249481201171875,
0.06390380859375,
-0.00021910667419433594,
-0.0254058837890625,
0.02569580078125,
-0.00556182861328125,
-0.0302734375,
0.0096588134765625,
-0.023284912109375,
0.00171661376953125,
0.029327392578125,
0.01458740234375,
-0.042449951171875,
0.0428466796875,
-0.0036773681640625,
0.004871368408203125,
0.01299285888671875,
-0.0692138671875,
0.033294677734375,
0.0124053955078125,
0.0178680419921875,
-0.046356201171875,
-0.0225677490234375,
0.016754150390625,
0.06744384765625,
0.06640625,
-0.0233154296875,
0.032684326171875,
0.062164306640625,
-0.0195465087890625,
-0.0081329345703125,
0.008941650390625,
0.03790283203125,
0.0279083251953125,
0.002933502197265625,
-0.0241241455078125,
0.01305389404296875,
-0.02227783203125,
-0.043670654296875,
-0.03955078125,
0.005157470703125,
-0.00542449951171875,
-0.0322265625,
0.001125335693359375,
-0.0174713134765625,
-0.038330078125,
-0.028900146484375,
0.03778076171875,
0.018890380859375,
-0.01464080810546875,
0.033935546875,
0.0156402587890625,
0.0225067138671875,
0.0083465576171875,
-0.017730712890625,
0.078857421875,
0.0179595947265625,
0.03704833984375,
0.01323699951171875,
-0.0035991668701171875,
-0.00406646728515625,
-0.008392333984375,
-0.046112060546875,
-0.01445770263671875,
-0.0140533447265625,
0.004558563232421875,
0.0252532958984375,
0.00864410400390625,
0.0189361572265625,
0.0227508544921875,
-0.00609588623046875,
-0.034454345703125,
0.03521728515625,
0.07073974609375,
0.02349853515625,
-0.033355712890625,
-0.044036865234375,
0.0232391357421875,
0.050079345703125,
-0.00444793701171875,
0.038909912109375,
0.0020771026611328125,
0.05023193359375,
-0.0318603515625,
0.039459228515625,
-0.037994384765625,
-0.024444580078125,
-0.040435791015625,
-0.018157958984375,
0.00386810302734375,
-0.047454833984375,
-0.043548583984375,
0.00476837158203125,
-0.006824493408203125,
0.01470184326171875,
-0.021759033203125,
0.06414794921875,
-0.0516357421875,
-0.011566162109375,
-0.0645751953125,
0.0142669677734375,
0.054534912109375,
0.041534423828125,
-0.03582763671875,
0.006397247314453125,
-0.0284423828125,
-0.0101165771484375,
-0.050994873046875,
-0.05767822265625,
-0.050933837890625,
-0.0222015380859375,
0.0081787109375,
0.0300140380859375,
-0.0340576171875,
-0.04962158203125,
0.017333984375,
0.01001739501953125,
0.007076263427734375,
0.0266265869140625,
0.0011186599731445312,
0.0701904296875,
-0.0024394989013671875,
0.0848388671875,
0.03790283203125,
0.034454345703125,
-0.024078369140625,
-0.02996826171875,
0.01505279541015625,
-0.00705718994140625,
-0.0000985264778137207,
0.005603790283203125,
-0.023193359375,
-0.0701904296875,
-0.0025272369384765625,
-0.01526641845703125,
0.00872802734375,
-0.003070831298828125,
-0.0020771026611328125,
-0.022796630859375,
0.00687408447265625,
-0.007808685302734375,
0.032989501953125,
-0.026153564453125,
-0.0261077880859375,
0.0174102783203125,
0.00885772705078125,
0.03173828125,
-0.01036834716796875,
-0.0269622802734375,
-0.0157470703125,
0.01561737060546875,
-0.0809326171875,
0.089599609375,
0.09912109375,
0.021026611328125,
0.065185546875,
-0.009552001953125,
0.01450347900390625,
0.0248260498046875,
0.054595947265625,
-0.006092071533203125,
-0.02862548828125,
0.0478515625,
-0.003253936767578125,
-0.0269317626953125,
-0.013336181640625,
-0.0340576171875,
0.038482666015625,
0.058135986328125,
0.0699462890625,
-0.043914794921875,
-0.00858306884765625,
0.0175323486328125,
-0.05279541015625,
0.0172119140625,
0.030029296875,
0.0105438232421875,
-0.031158447265625,
0.07110595703125,
-0.0059814453125,
0.0305938720703125,
0.0626220703125,
-0.01202392578125,
-0.0016307830810546875,
0.0005192756652832031,
-0.00481414794921875,
0.0281219482421875,
-0.052886962890625,
0.0496826171875,
0.0295867919921875,
0.038482666015625,
-0.05023193359375,
0.00984954833984375,
-0.00545501708984375,
0.018157958984375,
-0.03558349609375,
0.043609619140625,
-0.021392822265625,
0.048614501953125,
-0.0138397216796875,
-0.03607177734375,
0.0748291015625,
0.03155517578125,
0.01016998291015625,
0.004024505615234375,
0.0003902912139892578,
0.033050537109375,
-0.0282745361328125,
-0.0172882080078125,
0.0308074951171875,
0.0302276611328125,
-0.07379150390625,
0.0222320556640625,
-0.043670654296875,
-0.0107421875,
0.0057830810546875,
-0.0116729736328125,
0.0082855224609375,
0.0276947021484375,
-0.024627685546875,
0.02471923828125,
-0.005290985107421875,
-0.005519866943359375,
0.0095672607421875,
0.030914306640625,
-0.07354736328125,
-0.05609130859375,
0.024993896484375,
-0.048309326171875,
-0.004352569580078125,
0.0011091232299804688,
0.0265655517578125,
0.08245849609375,
-0.0328369140625,
-0.052032470703125,
0.0187225341796875,
0.07000732421875,
0.005462646484375,
0.061431884765625,
-0.032257080078125,
-0.002086639404296875,
-0.012481689453125,
0.0273590087890625,
-0.0160369873046875,
-0.004924774169921875,
-0.00008171796798706055,
0.019989013671875,
0.0263214111328125,
0.01136016845703125,
-0.0294647216796875,
-0.0119781494140625,
-0.0264892578125,
0.0102691650390625,
-0.023284912109375,
0.046234130859375,
0.0011272430419921875,
0.0151519775390625,
0.02191162109375,
0.00439453125,
0.04541015625,
-0.0298004150390625,
-0.026031494140625,
0.0271759033203125,
0.00536346435546875,
0.00786590576171875,
-0.005298614501953125,
0.034332275390625,
0.01371002197265625,
-0.0232696533203125,
-0.009735107421875,
0.0147857666015625,
0.012481689453125,
0.04736328125,
0.03558349609375,
0.01336669921875,
-0.00818634033203125,
-0.032745361328125,
0.05303955078125,
-0.015380859375,
0.01473236083984375,
0.0406494140625,
0.033447265625,
0.0120391845703125,
-0.058349609375,
-0.005657196044921875,
-0.0192718505859375,
-0.0309600830078125,
0.01812744140625,
0.03662109375,
0.055084228515625,
0.02740478515625,
-0.0013246536254882812,
-0.034912109375,
0.0062255859375,
-0.0187225341796875,
-0.0215911865234375,
0.00246429443359375,
0.02288818359375,
0.038330078125,
0.000579833984375,
0.0574951171875,
-0.03302001953125,
-0.004993438720703125,
-0.0125579833984375,
0.00028252601623535156,
0.0178375244140625,
0.00504302978515625,
0.00832366943359375,
0.01248931884765625,
-0.03045654296875,
-0.01395416259765625,
-0.021331787109375,
0.0176849365234375,
-0.008636474609375,
0.019805908203125,
-0.0205535888671875,
0.04730224609375,
0.018310546875,
0.0010614395141601562,
0.0154571533203125,
0.037567138671875,
0.026397705078125,
-0.027191162109375,
0.01094818115234375,
-0.01061248779296875,
0.01251220703125,
-0.0004668235778808594,
0.00969696044921875,
-0.011749267578125,
0.0232391357421875,
0.0191650390625,
0.0103607177734375,
-0.0010023117065429688,
0.052215576171875,
-0.002262115478515625,
-0.01509857177734375,
-0.014801025390625,
-0.0538330078125,
-0.0465087890625,
-0.0242767333984375,
0.00629425048828125,
0.0299530029296875,
-0.039581298828125,
-0.01189422607421875,
0.007633209228515625,
-0.0015401840209960938,
-0.0035686492919921875,
0.036163330078125,
0.006954193115234375,
0.0115203857421875,
0.009857177734375,
-0.0305328369140625,
0.0161590576171875,
0.009796142578125,
-0.09552001953125,
0.016754150390625,
0.038970947265625,
-0.045562744140625,
0.027252197265625,
0.017852783203125,
0.04144287109375,
-0.011474609375,
-0.0192413330078125,
-0.0193023681640625,
-0.040802001953125,
0.052337646484375,
-0.0011491775512695312,
-0.0160369873046875,
-0.025421142578125,
0.01125335693359375,
0.047119140625,
0.0204620361328125,
0.020294189453125,
-0.00620269775390625,
0.0215301513671875,
0.007099151611328125,
-0.00734710693359375,
0.00397491455078125,
0.006679534912109375,
-0.031341552734375,
0.0013380050659179688,
0.00389862060546875,
-0.00893402099609375,
-0.053863525390625,
0.0312042236328125,
0.0282440185546875,
0.00492095947265625,
0.0015716552734375,
0.0147552490234375,
0.0247650146484375,
0.028564453125,
0.004795074462890625,
-0.024200439453125,
-0.00765228271484375,
0.0079803466796875,
0.0068206787109375,
0.032440185546875,
0.0127716064453125,
-0.038604736328125,
-0.0037860870361328125,
0.008697509765625,
-0.03814697265625,
0.00893402099609375,
0.0035877227783203125,
-0.003986358642578125,
0.01934814453125,
0.003505706787109375,
-0.048675537109375,
0.004436492919921875,
0.0025386810302734375,
-0.03192138671875,
0.00897216796875,
0.01910400390625,
-0.0009560585021972656,
-0.035552978515625,
0.0195465087890625,
0.040618896484375,
0.016204833984375,
-0.033935546875,
0.006740570068359375,
0.07275390625,
-0.027557373046875,
0.0186309814453125,
-0.044952392578125,
-0.017578125,
-0.05224609375,
-0.008544921875,
0.0213623046875,
-0.053863525390625,
-0.046295166015625,
-0.08575439453125,
0.00937652587890625,
0.05267333984375,
0.024444580078125,
-0.06494140625,
0.057037353515625,
-0.035186767578125,
0.009490966796875,
0.00455474853515625,
-0.01105499267578125,
0.028839111328125,
0.047393798828125,
-0.03875732421875,
-0.0240325927734375,
-0.01953125,
0.002532958984375,
-0.036376953125,
0.012664794921875,
0.050872802734375,
-0.0055389404296875,
-0.0213165283203125,
-0.004283905029296875,
-0.014617919921875,
0.042816162109375,
-0.050140380859375,
-0.009552001953125,
0.037078857421875,
-0.0223388671875,
-0.0232696533203125,
-0.0294342041015625,
0.0158843994140625,
-0.040496826171875,
-0.037994384765625,
0.0325927734375,
-0.0281829833984375,
-0.00041675567626953125,
-0.01032257080078125,
-0.0169525146484375,
0.0924072265625,
0.01202392578125,
-0.002704620361328125,
-0.0894775390625,
0.034332275390625,
-0.0089111328125,
0.01229095458984375,
-0.0185394287109375,
-0.007083892822265625,
-0.0061492919921875,
0.0364990234375,
0.034759521484375,
-0.01204681396484375,
0.058441162109375,
0.027496337890625,
-0.0654296875,
0.0054779052734375,
-0.0280609130859375,
0.0105133056640625,
0.006183624267578125,
-0.0196380615234375,
0.026947021484375,
0.007740020751953125,
-0.045379638671875,
0.0255584716796875,
0.004123687744140625,
0.043182373046875,
-0.0213623046875,
-0.0487060546875,
-0.029815673828125,
-0.025360107421875,
0.07244873046875,
0.03753662109375,
0.01262664794921875,
-0.0301513671875,
-0.021484375,
-0.0121002197265625,
-0.01528167724609375,
-0.033782958984375,
0.0047149658203125,
-0.06396484375,
-0.01044464111328125,
-0.02032470703125,
0.00940704345703125,
-0.0003428459167480469,
0.040130615234375,
0.00099945068359375,
-0.01442718505859375,
0.04052734375,
-0.0232391357421875,
-0.0010671615600585938,
-0.017120361328125,
0.03509521484375,
-0.01387786865234375,
0.0672607421875,
-0.00434112548828125,
0.0105438232421875,
0.061798095703125,
0.091552734375,
0.0063018798828125,
0.01459503173828125,
-0.0175628662109375,
0.0216522216796875,
0.00791168212890625,
0.02703857421875,
-0.03765869140625,
-0.019378662109375,
-0.0010309219360351562,
0.0217742919921875,
-0.015289306640625,
0.0323486328125,
0.045623779296875,
0.019805908203125,
-0.007808685302734375,
0.0289154052734375,
-0.019866943359375,
0.058013916015625,
-0.01546478271484375,
0.02197265625,
0.0002887248992919922,
0.0108489990234375,
0.036956787109375,
-0.020599365234375,
0.01129913330078125,
-0.0054779052734375,
-0.0016031265258789062,
-0.032745361328125,
0.0016651153564453125,
-0.020660400390625,
-0.00826263427734375,
0.01250457763671875
] |
886e763ebce4f0b9aee142470555384bb6a0e0e6
|
Wordpress Stackexchange
Q: Plugin for automatic database backup? Is there a reliable plugin that I could use to automatically backup the WP database? It's really important that it's just the database and not the files.
I'd like it to automatically download a copy of the database and store it on my computer in a specified file.
Is there one out there that could do this?
A: BackWPup has a lot of flexibility in timing, what to backup (down to the DB table level), and it can store to DropBox which would put it on your computer.
|
Q: Plugin for automatic database backup? Is there a reliable plugin that I could use to automatically backup the WP database? It's really important that it's just the database and not the files.
I'd like it to automatically download a copy of the database and store it on my computer in a specified file.
Is there one out there that could do this?
A: BackWPup has a lot of flexibility in timing, what to backup (down to the DB table level), and it can store to DropBox which would put it on your computer.
A: Backup Buddy is my absolute favorite.
Features:
*
*db only backups
*full backups
*migration tool
*scheduled backups to email or remote server
*malware inspection
http://pluginbuddy.com/purchase/backupbuddy/
A: If you are looking for all in one plugin for WordPress backup, deliver and restore operations, then I would recommend you to take a look at HotBackup plugin. I could enable database backup only and connect it to your Dropbox account. Then backups will be created by a schedule and automatically uploads to your Dropbox account and then to your pc.
A: Useful Information. Just go through the link & you will get lot of details about backup plugin and more useful I submitted for you
|
wordpress
|
{
"language": "en",
"length": 207,
"provenance": "stackexchange_00019.jsonl.gz:411295",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22924"
}
|
[
0.0140838623046875,
-0.01318359375,
-0.023651123046875,
-0.0177001953125,
-0.00036334991455078125,
-0.0185089111328125,
0.029266357421875,
0.0163116455078125,
0.031402587890625,
0.00872802734375,
-0.048065185546875,
0.004604339599609375,
0.017303466796875,
-0.0200042724609375,
-0.004016876220703125,
-0.01006317138671875,
0.056121826171875,
-0.03497314453125,
0.030731201171875,
-0.003261566162109375,
-0.004974365234375,
0.038330078125,
0.0287628173828125,
0.05035400390625,
0.0238494873046875,
0.0273284912109375,
0.0606689453125,
-0.016021728515625,
0.0196075439453125,
0.01496124267578125,
0.033721923828125,
-0.06085205078125,
0.01345062255859375,
-0.01422882080078125,
0.0189971923828125,
-0.0159759521484375,
0.0048675537109375,
0.0031681060791015625,
0.0028972625732421875,
0.0029926300048828125,
0.032745361328125,
-0.00518798828125,
0.0109100341796875,
0.031402587890625,
-0.0204315185546875,
-0.04010009765625,
0.00992584228515625,
-0.047698974609375,
-0.0008749961853027344,
-0.01502227783203125,
-0.001842498779296875,
0.041534423828125,
0.024383544921875,
-0.00922393798828125,
0.027435302734375,
0.0231781005859375,
-0.01177978515625,
0.03668212890625,
0.03387451171875,
-0.0176544189453125,
-0.034027099609375,
-0.01157379150390625,
0.0124053955078125,
-0.0096282958984375,
-0.02911376953125,
-0.00991058349609375,
-0.01425933837890625,
0.004547119140625,
-0.0235137939453125,
-0.0010814666748046875,
0.036651611328125,
-0.0302734375,
-0.0028057098388671875,
0.0039215087890625,
-0.023681640625,
-0.013397216796875,
0.01467132568359375,
-0.0175018310546875,
0.01448822021484375,
0.0283966064453125,
0.00146484375,
0.00556182861328125,
0.0132904052734375,
-0.060882568359375,
0.0233612060546875,
-0.0235443115234375,
-0.00814056396484375,
0.0032825469970703125,
0.004642486572265625,
-0.03228759765625,
-0.0018568038940429688,
0.01038360595703125,
-0.044891357421875,
0.01467132568359375,
-0.0103302001953125,
-0.03955078125,
-0.0208740234375,
0.0132598876953125,
-0.0122833251953125,
0.03765869140625,
-0.0467529296875,
0.00492095947265625,
0.01462554931640625,
-0.0198516845703125,
-0.0106964111328125,
0.0266265869140625,
-0.0167388916015625,
-0.063232421875,
-0.0154876708984375,
0.02777099609375,
-0.020660400390625,
-0.056732177734375,
-0.00614166259765625,
-0.041961669921875,
0.00400543212890625,
0.01922607421875,
-0.0301513671875,
0.031646728515625,
0.0147857666015625,
-0.006786346435546875,
-0.0200042724609375,
0.01493072509765625,
-0.08502197265625,
-0.0286865234375,
-0.0289459228515625,
-0.07025146484375,
0.01166534423828125,
0.05706787109375,
-0.063720703125,
0.007106781005859375,
-0.0034885406494140625,
0.0217742919921875,
0.05859375,
0.0248565673828125,
-0.0044403076171875,
-0.0006785392761230469,
0.043731689453125,
-0.0060272216796875,
0.01568603515625,
0.004016876220703125,
-0.00914764404296875,
-0.035430908203125,
-0.0238189697265625,
-0.004596710205078125,
0.01288604736328125,
0.00717926025390625,
0.01739501953125,
0.0260009765625,
-0.005840301513671875,
-0.00806427001953125,
0.0308685302734375,
-0.00395965576171875,
-0.0005254745483398438,
-0.0209808349609375,
0.055572509765625,
-0.034088134765625,
-0.0159454345703125,
-0.007633209228515625,
0.0452880859375,
0.0186767578125,
-0.025909423828125,
-0.0171356201171875,
0.0083770751953125,
-0.03436279296875,
-0.03106689453125,
0.01047515869140625,
-0.004138946533203125,
0.00954437255859375,
0.0300445556640625,
-0.02935791015625,
0.009857177734375,
-0.020904541015625,
0.04388427734375,
-0.0014238357543945312,
-0.00861358642578125,
0.0235443115234375,
-0.02496337890625,
-0.0183258056640625,
0.04901123046875,
0.0116424560546875,
-0.002300262451171875,
0.0072479248046875,
0.06817626953125,
0.010101318359375,
-0.00009357929229736328,
0.01788330078125,
0.0017461776733398438,
0.06683349609375,
0.00591278076171875,
0.0469970703125,
-0.059814453125,
-0.0113677978515625,
-0.0543212890625,
0.036346435546875,
-0.033905029296875,
-0.01515960693359375,
0.01143646240234375,
0.0159759521484375,
-0.005268096923828125,
-0.0000037550926208496094,
-0.0266876220703125,
0.00745391845703125,
-0.017120361328125,
0.00249481201171875,
-0.07867431640625,
0.0034351348876953125,
-0.031646728515625,
0.036102294921875,
0.0008492469787597656,
0.023101806640625,
0.0101165771484375,
0.00438690185546875,
0.00707244873046875,
-0.060760498046875,
-0.035888671875,
-0.0171966552734375,
-0.04205322265625,
-0.0007762908935546875,
-0.01422882080078125,
0.01617431640625,
-0.037353515625,
0.01134490966796875,
-0.035675048828125,
-0.023345947265625,
-0.0157318115234375,
-0.0228271484375,
-0.0213470458984375,
-0.0294647216796875,
-0.054595947265625,
-0.0200347900390625,
0.006011962890625,
0.068603515625,
0.0128631591796875,
0.01068878173828125,
-0.01148223876953125,
-0.0179290771484375,
-0.00844573974609375,
-0.11956787109375,
0.017913818359375,
0.07861328125,
0.0294036865234375,
-0.005344390869140625,
-0.0251617431640625,
0.026214599609375,
0.00353240966796875,
-0.03643798828125,
0.01141357421875,
0.0210723876953125,
-0.0017518997192382812,
0.033477783203125,
-0.0081329345703125,
-0.01079559326171875,
0.0163726806640625,
-0.019439697265625,
-0.02557373046875,
0.03936767578125,
-0.0287322998046875,
0.0268096923828125,
-0.01102447509765625,
0.01096343994140625,
-0.01837158203125,
-0.019683837890625,
0.045562744140625,
-0.047760009765625,
0.06341552734375,
-0.0341796875,
0.0640869140625,
0.0447998046875,
0.0203399658203125,
-0.03857421875,
-0.00817108154296875,
0.0020503997802734375,
0.0167236328125,
0.049774169921875,
0.0097808837890625,
0.023651123046875,
-0.01480865478515625,
-0.048583984375,
0.0435791015625,
0.046966552734375,
-0.017242431640625,
0.03375244140625,
0.0149383544921875,
-0.0137786865234375,
-0.03173828125,
-0.02264404296875,
0.018646240234375,
-0.00012218952178955078,
-0.0419921875,
-0.04522705078125,
-0.003635406494140625,
0.028533935546875,
-0.02581787109375,
0.0173492431640625,
-0.01031494140625,
-0.00817108154296875,
0.04937744140625,
-0.004001617431640625,
0.006923675537109375,
-0.004833221435546875,
0.05755615234375,
0.04541015625,
0.003047943115234375,
-0.00164794921875,
-0.015869140625,
0.018798828125,
0.0187225341796875,
-0.035125732421875,
-0.05206298828125,
0.00925445556640625,
-0.1014404296875,
-0.042144775390625,
0.01413726806640625,
0.027099609375,
-0.0185394287109375,
-0.036376953125,
-0.01520538330078125,
0.0156097412109375,
-0.0970458984375,
-0.1014404296875,
-0.046722412109375,
-0.005260467529296875,
-0.01212310791015625,
-0.00907135009765625,
0.00751495361328125,
0.0022907257080078125,
0.00493621826171875,
0.015289306640625,
-0.0015430450439453125,
-0.06494140625,
-0.018402099609375,
-0.07281494140625,
-0.06402587890625,
-0.034881591796875,
0.0267486572265625,
-0.0023040771484375,
0.005279541015625,
0.06884765625,
0.004779815673828125,
-0.06268310546875,
-0.028076171875,
0.01442718505859375,
-0.0138702392578125,
0.007045745849609375,
0.0182037353515625,
-0.0303192138671875,
-0.0102691650390625,
0.006381988525390625,
0.011138916015625,
0.01045989990234375,
-0.002857208251953125,
-0.0169525146484375,
-0.0135040283203125,
0.0278472900390625,
0.00846099853515625,
-0.0023555755615234375,
0.014923095703125,
0.052764892578125,
-0.001007080078125,
-0.0160980224609375,
-0.00225067138671875,
0.019500732421875,
-0.0107574462890625,
0.00675201416015625,
-0.0272064208984375,
-0.01788330078125,
-0.0012502670288085938,
0.0296173095703125,
0.04693603515625,
0.030548095703125,
-0.005725860595703125,
0.049102783203125,
-0.049346923828125,
-0.01314544677734375,
-0.00626373291015625,
-0.00905609130859375,
0.0247344970703125,
-0.03302001953125,
0.0185546875,
0.007740020751953125,
-0.00159454345703125,
0.018951416015625,
-0.0194244384765625,
0.0167083740234375,
-0.069091796875,
0.033172607421875,
-0.04412841796875,
0.04119873046875,
-0.07318115234375,
-0.0263671875,
-0.0217742919921875,
0.11993408203125,
-0.06854248046875,
-0.0004830360412597656,
0.0296478271484375,
0.0174560546875,
-0.030853271484375,
-0.00836944580078125,
-0.081787109375,
-0.01079559326171875,
-0.0238494873046875,
-0.037994384765625,
-0.04351806640625,
-0.03790283203125,
0.0303955078125,
-0.055023193359375,
0.00783538818359375,
-0.04534912109375,
0.0245513916015625,
-0.078125,
0.02813720703125,
-0.017303466796875,
0.0196685791015625,
-0.044403076171875,
0.01435089111328125,
-0.07952880859375,
-0.061676025390625,
-0.009918212890625,
-0.051788330078125,
0.05419921875,
0.0232391357421875,
0.02069091796875,
-0.0226287841796875,
0.028350830078125,
-0.002666473388671875,
0.016693115234375,
0.0011529922485351562,
0.0289154052734375,
-0.031341552734375,
-0.0552978515625,
0.00705718994140625,
-0.051544189453125,
-0.0090789794921875,
-0.0718994140625,
-0.00872039794921875,
-0.0242767333984375,
-0.056060791015625,
0.0439453125,
-0.060760498046875,
0.03338623046875,
0.017578125,
-0.013519287109375,
-0.049774169921875,
0.019500732421875,
-0.03131103515625,
-0.006816864013671875,
-0.027740478515625,
-0.0067596435546875,
0.048248291015625,
0.004047393798828125,
-0.004177093505859375,
0.007228851318359375,
0.053131103515625,
0.02178955078125,
-0.018890380859375,
-0.044891357421875,
0.028228759765625,
0.043121337890625,
0.0245361328125,
0.04937744140625,
0.01959228515625,
-0.035888671875,
0.07373046875,
0.033721923828125,
-0.0009531974792480469,
-0.0491943359375,
0.0209197998046875,
-0.0037384033203125,
-0.016876220703125,
0.01528167724609375,
-0.0126953125,
0.04473876953125,
0.051300048828125,
0.0027141571044921875,
-0.00835418701171875,
-0.025115966796875,
0.0268096923828125,
-0.0168609619140625,
-0.005077362060546875,
-0.040618896484375,
-0.055999755859375,
0.03173828125,
-0.031707763671875,
0.022735595703125,
0.005069732666015625,
-0.006916046142578125,
0.036285400390625,
-0.006099700927734375,
-0.019683837890625,
0.011932373046875,
0.0128326416015625,
-0.0012369155883789062,
0.0262908935546875,
0.0213165283203125,
-0.007450103759765625,
-0.0018444061279296875,
-0.00897979736328125,
0.06292724609375,
0.01593017578125,
-0.0285186767578125,
0.00879669189453125,
-0.0256500244140625,
0.00327301025390625,
-0.003459930419921875,
-0.0295257568359375,
0.05938720703125,
0.056884765625,
-0.0506591796875,
-0.021759033203125,
-0.0218353271484375,
0.00429534912109375,
-0.07366943359375,
-0.03057861328125,
0.016754150390625,
-0.0213623046875,
0.037261962890625,
-0.01258087158203125,
-0.00782012939453125,
-0.003536224365234375,
-0.0146942138671875,
0.025726318359375,
0.02667236328125,
0.0057830810546875,
0.0196075439453125,
0.006256103515625,
0.04034423828125,
-0.059722900390625,
0.0290069580078125,
-0.057891845703125,
0.00891876220703125,
0.00646209716796875,
0.061370849609375,
-0.006866455078125,
-0.048736572265625,
0.0293731689453125,
-0.032012939453125,
-0.00882720947265625,
0.051605224609375,
0.040008544921875,
-0.0311431884765625,
-0.00821685791015625,
0.045623779296875,
0.053375244140625,
-0.0011529922485351562,
0.0061492919921875,
-0.0482177734375,
-0.031280517578125,
-0.0147857666015625,
0.023773193359375,
-0.032440185546875,
-0.00908660888671875,
-0.01483154296875,
-0.0006918907165527344,
-0.032562255859375,
-0.032470703125,
0.0209197998046875,
0.02117919921875,
-0.0281524658203125,
-0.0206451416015625,
0.04315185546875,
-0.0296478271484375,
0.0079498291015625,
-0.02691650390625,
0.013031005859375,
-0.04339599609375,
-0.00252532958984375,
0.037445068359375,
0.015869140625,
0.0084686279296875,
-0.0318603515625,
-0.006290435791015625,
-0.0295562744140625,
0.00007647275924682617,
-0.005001068115234375,
-0.035491943359375,
-0.01009368896484375,
-0.0176849365234375,
-0.005001068115234375,
-0.0200653076171875,
-0.0103912353515625,
-0.0257568359375,
0.0263519287109375,
0.0216064453125,
-0.016357421875,
-0.0000034570693969726562,
0.049407958984375,
-0.0316162109375,
0.041595458984375,
0.0039520263671875,
0.01116943359375,
-0.0377197265625,
-0.01020050048828125,
-0.00720977783203125,
-0.0241241455078125,
0.00753021240234375,
-0.0143585205078125,
0.0223388671875,
0.0167236328125,
0.0166015625,
0.0111846923828125,
-0.0006384849548339844,
0.0027790069580078125,
0.009002685546875,
-0.00004845857620239258,
0.04931640625,
0.0237579345703125,
0.008544921875,
0.0219573974609375,
-0.044677734375,
-0.022674560546875,
0.00202178955078125,
0.007335662841796875,
0.005283355712890625,
-0.0168304443359375,
-0.00783538818359375,
0.01111602783203125,
-0.046630859375,
0.048980712890625,
0.043243408203125,
0.005924224853515625,
0.038970947265625,
0.0160980224609375,
0.02001953125,
-0.001495361328125,
0.03302001953125,
-0.018280029296875,
-0.051727294921875,
0.028350830078125,
0.0140533447265625,
-0.024261474609375,
0.01520538330078125,
-0.0227813720703125,
0.0020313262939453125,
-0.0035343170166015625,
0.0188751220703125,
-0.01849365234375,
0.0133209228515625,
0.011871337890625,
-0.00994873046875,
-0.0028324127197265625,
-0.01467132568359375,
-0.006153106689453125,
-0.00215911865234375,
0.0257568359375,
-0.0025177001953125,
-0.029052734375,
-0.003265380859375,
0.00960540771484375,
0.005573272705078125,
-0.0105743408203125,
-0.00244140625,
-0.003498077392578125,
-0.009765625,
-0.0213470458984375,
0.00354766845703125,
-0.00637054443359375,
0.004596710205078125,
0.04150390625,
-0.006320953369140625,
-0.0283050537109375,
-0.02947998046875,
0.023345947265625,
0.03839111328125,
-0.03662109375,
-0.004489898681640625,
-0.018829345703125,
0.0682373046875,
0.032562255859375,
-0.003261566162109375,
-0.00748443603515625,
-0.00557708740234375,
0.04351806640625,
-0.0230712890625,
-0.02447509765625,
0.022979736328125,
-0.000560760498046875,
-0.068359375,
0.0242462158203125,
-0.037139892578125,
-0.01390838623046875,
-0.0075225830078125,
0.0013942718505859375,
0.07281494140625,
-0.020477294921875,
-0.023956298828125,
0.032012939453125,
-0.006420135498046875,
-0.0284576416015625,
-0.0282745361328125,
0.04473876953125,
-0.0704345703125,
0.000263214111328125,
-0.0019254684448242188,
0.0175933837890625,
-0.0310821533203125,
-0.01580810546875,
-0.032623291015625,
0.09161376953125,
0.0017538070678710938,
-0.01462554931640625,
-0.00968170166015625,
0.055755615234375,
-0.00621795654296875,
0.04296875,
-0.05596923828125,
0.06402587890625,
0.00774383544921875,
0.005863189697265625,
-0.06781005859375,
0.0091705322265625,
-0.03271484375,
-0.026641845703125,
0.01360321044921875,
0.0023860931396484375,
-0.052337646484375,
-0.00518798828125,
0.03448486328125,
-0.00525665283203125,
0.011138916015625,
0.07177734375,
0.0154876708984375,
0.037109375,
0.058135986328125,
-0.0482177734375,
0.02557373046875,
-0.0292816162109375,
0.0254669189453125,
0.0182037353515625,
-0.0006237030029296875,
-0.007457733154296875,
-0.04034423828125,
0.0285186767578125,
0.01441192626953125,
-0.0394287109375,
-0.01178741455078125,
0.0028476715087890625,
0.06365966796875,
-0.008697509765625,
0.0654296875,
-0.045867919921875,
0.0299224853515625,
-0.01116180419921875,
0.057403564453125,
-0.018035888671875,
-0.0247802734375,
0.0279083251953125,
0.0011682510375976562,
0.015777587890625,
-0.00018548965454101562,
-0.0165252685546875,
0.0253448486328125,
0.01497650146484375,
0.04718017578125,
0.018035888671875,
0.054473876953125,
-0.0294647216796875,
-0.03680419921875,
0.003765106201171875,
0.051666259765625,
-0.017059326171875,
-0.07794189453125,
0.022216796875,
0.01995849609375,
-0.006694793701171875,
0.025146484375,
-0.0177154541015625,
-0.027252197265625,
0.053131103515625,
-0.0124053955078125,
-0.011322021484375,
-0.003261566162109375,
-0.01416015625,
-0.00392913818359375,
0.018402099609375,
0.0421142578125,
0.01242828369140625,
0.02227783203125,
-0.01219940185546875,
0.00003147125244140625,
-0.0308380126953125,
-0.022430419921875,
0.01068878173828125,
0.01308441162109375,
0.022857666015625,
-0.0064849853515625,
0.039794921875,
-0.01812744140625,
0.03778076171875,
-0.0699462890625,
-0.0697021484375,
0.01226806640625,
0.05126953125,
-0.005290985107421875,
0.0179290771484375,
0.061676025390625,
0.0496826171875,
-0.0305633544921875,
-0.01953125,
-0.0163116455078125,
-0.0187225341796875,
0.03363037109375,
-0.05023193359375,
0.039794921875,
0.0201416015625,
0.01039886474609375,
-0.032989501953125,
0.03851318359375,
0.036285400390625,
-0.03875732421875,
0.0103912353515625,
-0.0168914794921875,
-0.0284271240234375,
0.0119781494140625,
-0.042083740234375,
-0.0006899833679199219,
-0.0343017578125,
-0.03997802734375,
-0.017333984375,
-0.013671875,
-0.0133819580078125,
0.00662994384765625,
0.0218963623046875,
0.0002856254577636719,
0.0261993408203125,
0.019866943359375,
-0.0164947509765625,
-0.0106048583984375,
0.018096923828125,
-0.00415802001953125,
-0.032501220703125,
0.00804901123046875,
-0.0180816650390625,
-0.039825439453125,
-0.039398193359375,
-0.0399169921875,
0.055694580078125,
0.00794219970703125,
0.0660400390625,
-0.0309906005859375,
0.035888671875,
0.0323486328125,
0.0026226043701171875,
-0.015777587890625,
0.019989013671875,
-0.04132080078125,
-0.0227203369140625,
0.019775390625,
-0.00670623779296875,
-0.0305633544921875,
0.0036792755126953125,
0.0204925537109375,
-0.02069091796875,
-0.00775146484375,
-0.02935791015625,
0.0300445556640625,
0.015289306640625,
0.00927734375,
-0.036407470703125,
-0.02490234375,
-0.037933349609375,
-0.035003662109375,
0.0263519287109375,
-0.0174102783203125,
-0.00868988037109375,
0.047698974609375,
0.005901336669921875,
0.0068359375,
0.0174560546875,
-0.029998779296875,
0.026885986328125,
0.020233154296875,
-0.040924072265625,
-0.0177154541015625,
0.031982421875,
-0.01483154296875,
-0.0091400146484375,
0.0172882080078125,
0.03424072265625,
0.01142120361328125,
-0.023529052734375,
-0.009063720703125,
0.02447509765625,
0.01800537109375,
-0.0268707275390625,
0.021697998046875,
-0.00974273681640625,
0.00920867919921875,
0.0196380615234375,
-0.0018014907836914062,
-0.022003173828125,
-0.032958984375,
-0.0174560546875,
-0.0010004043579101562,
-0.0306854248046875,
-0.06939697265625,
-0.0679931640625,
-0.002170562744140625,
0.04364013671875,
0.01617431640625,
-0.049896240234375,
0.01178741455078125,
-0.0204010009765625,
0.02532958984375,
0.01038360595703125,
0.0027828216552734375,
-0.020263671875,
0.0147552490234375,
0.003925323486328125,
-0.0718994140625,
-0.0592041015625,
0.08074951171875,
-0.045623779296875,
0.01088714599609375,
0.01438140869140625,
-0.030731201171875,
-0.0183563232421875,
0.0318603515625,
0.0281829833984375,
0.0618896484375,
0.0323486328125,
-0.0153350830078125,
0.03277587890625,
-0.0135650634765625,
0.006015777587890625,
-0.0285186767578125,
-0.029510498046875,
0.003849029541015625,
0.020965576171875,
-0.06622314453125,
0.033660888671875,
0.005344390869140625,
-0.034271240234375,
-0.0177001953125,
0.0219268798828125,
-0.00780487060546875,
-0.011810302734375,
0.0007433891296386719,
0.03466796875,
-0.006862640380859375,
-0.037933349609375,
-0.0104217529296875,
0.0230712890625,
0.0142364501953125,
0.007472991943359375,
0.0218048095703125,
0.027008056640625,
-0.002960205078125,
0.0272369384765625,
-0.05450439453125,
0.0232696533203125,
0.00017702579498291016,
0.01392364501953125,
0.034027099609375,
-0.017303466796875,
0.051910400390625,
0.0638427734375,
-0.0177764892578125,
-0.016845703125,
-0.0145721435546875,
-0.0523681640625,
0.0038394927978515625,
0.029083251953125,
-0.01393890380859375,
0.035308837890625,
0.04058837890625,
0.08636474609375,
0.012451171875,
-0.07501220703125,
-0.03826904296875,
-0.03460693359375,
0.00040078163146972656,
-0.00719451904296875,
0.0025272369384765625,
-0.050933837890625,
0.0168914794921875,
0.004177093505859375,
-0.008270263671875,
-0.006259918212890625,
0.0271453857421875,
-0.007598876953125,
0.004180908203125,
0.061737060546875,
-0.0253143310546875,
-0.028228759765625,
-0.007793426513671875,
0.05419921875,
-0.0289764404296875,
0.0006742477416992188,
0.044891357421875,
-0.01338958740234375,
0.027923583984375,
0.0755615234375,
0.004665374755859375,
0.03436279296875,
-0.054168701171875,
0.01605224609375,
0.004608154296875,
-0.003326416015625,
-0.041595458984375,
-0.000003039836883544922,
0.006572723388671875,
0.0245819091796875,
-0.0039005279541015625,
0.0364990234375,
-0.028076171875,
0.038726806640625,
0.00946044921875,
0.0135498046875,
0.00794219970703125,
-0.10552978515625,
-0.0380859375,
0.03033447265625,
-0.0404052734375,
-0.018951416015625,
-0.00823974609375,
-0.06610107421875,
0.01016998291015625,
0.01190948486328125,
-0.001190185546875,
-0.040374755859375,
0.0276641845703125,
-0.04266357421875,
0.000316619873046875,
0.023712158203125
] |
fea3a9be5dbf3b7d3a184dfedabc2a50e2b1025b
|
Wordpress Stackexchange
Q: Proper Way to Modify Plugin What is the best way to modify a plugin? I frequently want to make small changes to one or two functions within a large plugin. This is easily done, but I have to use comments to mark my changes and modify the plugin again after an update. Ideally I'd like to leave the plugin alone and make my changes elsewhere, much like we do with themes and child themes. Can I make a plugin that requires the parent plugin and will override it?
A: IMHO, the best approach is either to fork the Plugin to maintain your changes, or else submit patches to the Plugin developer, to have your changes made a part of the original Plugin.
Creating a "Child Plugin" really isn't easy. The "Child Theme" concept really applies to the template files that get used, moreso than the Theme functions (and in fact, the functions.php file from both Parent and Child get loaded, which does cause problems for improperly coded functions.php files in either the Child or Parent Theme).
|
Q: Proper Way to Modify Plugin What is the best way to modify a plugin? I frequently want to make small changes to one or two functions within a large plugin. This is easily done, but I have to use comments to mark my changes and modify the plugin again after an update. Ideally I'd like to leave the plugin alone and make my changes elsewhere, much like we do with themes and child themes. Can I make a plugin that requires the parent plugin and will override it?
A: IMHO, the best approach is either to fork the Plugin to maintain your changes, or else submit patches to the Plugin developer, to have your changes made a part of the original Plugin.
Creating a "Child Plugin" really isn't easy. The "Child Theme" concept really applies to the template files that get used, moreso than the Theme functions (and in fact, the functions.php file from both Parent and Child get loaded, which does cause problems for improperly coded functions.php files in either the Child or Parent Theme).
A: The best way would be to just clone it and change the Plugin Name in the header and change the directory name. This way you could also have the original installed but not activated so you will still get alerts when updates are released.
<?php
/*
Plugin Name: Name Of The Plugin
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: The Plugin's Version Number, e.g.: 1.0
Author: Name Of The Plugin Author
Author URI: http://URI_Of_The_Plugin_Author
License: A "Slug" license name e.g. GPL2
*/
?>
A: This is relatively easy if the plugin is under Git source control due to Git's distributed nature, but many WordPress plugins (and all of those in the official repository) are in Subversion. I use vendor branches and svn_load_dirs.php if I really need to modify a plugin, but this requires a reasonably high comfort level with Subversion.
If the plugin exposes no repository, I'd recommend turning it into a Git repository yourself and manually applying new versions.
In the end, version control systems are the only sane way to reapply changes to new upstream versions.
A: I agree with Annika Backstrom's answer, but I'd like to share my preferred solution.
Since most plugins are under svn, I use a tool called git-svn to make a git mirror.
Then, I just make a branch and commit my changes there.
When the plugin is updated upstream, I just pull from the svn repo and merge into my custom branch.
A: Since it hasn't been mentioned, you can replace any function that was made pluggable. Pluggable functions look like
if (! function_exists('function_name')) {
function function_name() {
//...
}
}
Then you can simply redefine the function yourself (in functions.php, Code Snippets, or your own plugin).
Unfortunately, most plugins don't make their functions pluggable; or at the best, only some of their functions are pluggable.
A: The "right" way obviously depends on the plugin. Some plugins are easier to edit than others, but most plugins can actually be modified by other plugins.
For example, if a plugin has a function hooked into WordPress with an action, then it's a simple matter for you to make another plugin that unhooks that function with remove_action, and then adds your replacement function in instead. This sort of method will let you replace individual functions in plugins with your own modified versions, without modifying the original plugin.
Same concept works with filters, obviously.
|
wordpress
|
{
"language": "en",
"length": 580,
"provenance": "stackexchange_00019.jsonl.gz:411297",
"question_score": "23",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22935"
}
|
[
0.0482177734375,
-0.0171966552734375,
0.0254974365234375,
-0.03277587890625,
-0.01004791259765625,
-0.005123138427734375,
-0.014556884765625,
-0.0281982421875,
-0.05462646484375,
0.0115203857421875,
0.01214599609375,
0.004810333251953125,
-0.05792236328125,
-0.04168701171875,
-0.0112152099609375,
-0.06915283203125,
0.026947021484375,
-0.032562255859375,
-0.0099029541015625,
-0.0302276611328125,
0.002452850341796875,
0.003780364990234375,
0.013092041015625,
0.11566162109375,
0.037994384765625,
-0.0704345703125,
0.046295166015625,
-0.024383544921875,
0.0325927734375,
-0.01305389404296875,
0.03167724609375,
0.0050201416015625,
0.0233917236328125,
0.01102447509765625,
-0.003875732421875,
-0.0203857421875,
0.029815673828125,
-0.01261138916015625,
-0.00772857666015625,
0.05584716796875,
0.033172607421875,
-0.0102386474609375,
-0.0439453125,
0.07135009765625,
-0.006999969482421875,
-0.08685302734375,
0.044708251953125,
-0.0428466796875,
-0.020233154296875,
-0.0416259765625,
0.038604736328125,
0.0277862548828125,
0.0643310546875,
-0.007381439208984375,
-0.0029811859130859375,
0.032958984375,
-0.0223236083984375,
0.01470184326171875,
0.01222991943359375,
-0.0040283203125,
-0.01117706298828125,
0.0033931732177734375,
0.017364501953125,
0.00916290283203125,
0.061004638671875,
-0.040740966796875,
-0.006473541259765625,
0.049468994140625,
-0.061248779296875,
0.060943603515625,
0.059844970703125,
-0.046722412109375,
0.0177154541015625,
-0.01141357421875,
-0.004486083984375,
-0.02996826171875,
0.018096923828125,
-0.0076141357421875,
0.020477294921875,
-0.014312744140625,
0.007030487060546875,
0.00612640380859375,
0.02203369140625,
-0.037384033203125,
0.016326904296875,
-0.01226043701171875,
-0.01027679443359375,
-0.0110626220703125,
-0.053863525390625,
0.01119232177734375,
-0.03314208984375,
-0.0186004638671875,
-0.053466796875,
0.0399169921875,
0.0096435546875,
0.017242431640625,
0.006778717041015625,
-0.033294677734375,
-0.004878997802734375,
0.01410675048828125,
0.0482177734375,
-0.06439208984375,
0.06744384765625,
-0.018035888671875,
0.0011501312255859375,
0.035125732421875,
0.021148681640625,
0.01137542724609375,
0.0202484130859375,
0.0201416015625,
0.0017557144165039062,
0.035400390625,
-0.003482818603515625,
-0.0290679931640625,
0.00806427001953125,
0.0291290283203125,
-0.0163116455078125,
0.049072265625,
-0.0013570785522460938,
0.044952392578125,
-0.00878143310546875,
-0.002780914306640625,
0.024261474609375,
-0.007411956787109375,
-0.0290679931640625,
-0.049560546875,
-0.0305938720703125,
-0.013458251953125,
0.0096435546875,
-0.01727294921875,
-0.059173583984375,
0.004230499267578125,
0.129150390625,
0.05181884765625,
0.03521728515625,
-0.01226043701171875,
0.00301361083984375,
-0.0014591217041015625,
0.02178955078125,
-0.0298004150390625,
-0.0108184814453125,
-0.003223419189453125,
0.04266357421875,
-0.00516510009765625,
0.00547027587890625,
-0.006328582763671875,
-0.0102081298828125,
0.0260162353515625,
0.026336669921875,
0.0021724700927734375,
0.031982421875,
-0.05230712890625,
0.0311126708984375,
-0.01629638671875,
0.0096893310546875,
-0.037017822265625,
-0.0006093978881835938,
-0.0235748291015625,
0.019012451171875,
-0.00927734375,
-0.01032257080078125,
0.0005316734313964844,
0.04840087890625,
-0.02197265625,
-0.037384033203125,
0.013397216796875,
-0.027008056640625,
-0.01253509521484375,
0.0222930908203125,
-0.03936767578125,
0.07196044921875,
-0.0147552490234375,
-0.0241241455078125,
0.0219879150390625,
0.0267486572265625,
0.0185089111328125,
-0.0238800048828125,
0.0200042724609375,
0.019561767578125,
0.0401611328125,
0.0260162353515625,
-0.019317626953125,
0.044525146484375,
0.0028400421142578125,
-0.04461669921875,
0.0009641647338867188,
-0.01013946533203125,
0.036102294921875,
0.040802001953125,
0.0240631103515625,
-0.01076507568359375,
-0.0058746337890625,
-0.06170654296875,
0.005859375,
-0.0201416015625,
0.01045989990234375,
0.0189666748046875,
0.03387451171875,
-0.006317138671875,
-0.004787445068359375,
-0.0275726318359375,
0.033905029296875,
-0.01763916015625,
0.018524169921875,
-0.0362548828125,
0.00494384765625,
-0.023284912109375,
0.047210693359375,
0.0289154052734375,
0.06048583984375,
-0.0117645263671875,
0.009063720703125,
0.0001951456069946289,
-0.0301361083984375,
-0.0036869049072265625,
0.01076507568359375,
-0.003635406494140625,
0.02783203125,
0.00232696533203125,
0.024871826171875,
0.0146942138671875,
-0.01422119140625,
0.0016565322875976562,
0.014251708984375,
0.01275634765625,
0.0063323974609375,
-0.01947021484375,
-0.011962890625,
-0.0114898681640625,
0.0216522216796875,
-0.04949951171875,
0.03948974609375,
0.0204925537109375,
0.0426025390625,
-0.003879547119140625,
-0.0152587890625,
-0.00800323486328125,
-0.061065673828125,
0.003383636474609375,
0.044342041015625,
0.01284027099609375,
0.0017919540405273438,
-0.0152740478515625,
0.056976318359375,
0.0169830322265625,
-0.034393310546875,
-0.01229095458984375,
0.032501220703125,
0.03253173828125,
0.025726318359375,
0.013153076171875,
-0.03411865234375,
0.029327392578125,
-0.033599853515625,
0.0457763671875,
0.01117706298828125,
-0.0303955078125,
-0.055694580078125,
-0.0185699462890625,
0.01183319091796875,
0.017059326171875,
-0.05926513671875,
-0.0489501953125,
-0.01026153564453125,
0.0261383056640625,
0.011993408203125,
0.017364501953125,
0.0220184326171875,
-0.01018524169921875,
-0.00229644775390625,
0.01432037353515625,
-0.016937255859375,
0.006855010986328125,
0.01253509521484375,
-0.0142669677734375,
0.0298919677734375,
-0.0269012451171875,
-0.0013523101806640625,
0.00777435302734375,
0.00479888916015625,
-0.01401519775390625,
0.0218048095703125,
-0.0065155029296875,
-0.0203094482421875,
-0.01641845703125,
-0.0190582275390625,
0.008697509765625,
-0.0084991455078125,
-0.0006265640258789062,
0.0131683349609375,
0.04205322265625,
-0.00855255126953125,
-0.033172607421875,
0.0251312255859375,
-0.01514434814453125,
-0.0279693603515625,
0.0196533203125,
-0.030853271484375,
0.033660888671875,
-0.0064239501953125,
0.049591064453125,
0.06475830078125,
0.016693115234375,
-0.0157623291015625,
-0.004154205322265625,
-0.0196075439453125,
0.0099029541015625,
-0.0165863037109375,
-0.014923095703125,
0.009429931640625,
-0.0574951171875,
0.01239013671875,
0.0193328857421875,
0.0870361328125,
-0.032684326171875,
-0.06378173828125,
-0.0221405029296875,
0.0279083251953125,
-0.0369873046875,
-0.019317626953125,
-0.035064697265625,
-0.04974365234375,
-0.01401519775390625,
-0.0010623931884765625,
-0.0230560302734375,
0.0079193115234375,
0.0139007568359375,
0.018310546875,
0.04437255859375,
-0.06353759765625,
-0.0269927978515625,
-0.047027587890625,
-0.07183837890625,
-0.017364501953125,
0.0213623046875,
0.006664276123046875,
-0.01369476318359375,
0.051910400390625,
-0.01116943359375,
-0.049407958984375,
-0.03271484375,
0.017669677734375,
-0.00408935546875,
-0.009063720703125,
0.041259765625,
-0.03302001953125,
-0.018402099609375,
0.01375579833984375,
0.003551483154296875,
0.0228729248046875,
-0.051055908203125,
-0.02276611328125,
-0.01324462890625,
-0.0247650146484375,
-0.004161834716796875,
-0.0022487640380859375,
0.0105743408203125,
0.006130218505859375,
0.01500701904296875,
-0.0380859375,
-0.01163482666015625,
0.00545501708984375,
-0.0217742919921875,
0.0281829833984375,
-0.0169830322265625,
-0.01812744140625,
0.007659912109375,
0.0207366943359375,
0.033203125,
0.0177459716796875,
0.0278778076171875,
-0.00951385498046875,
0.034149169921875,
-0.00994873046875,
0.0150299072265625,
-0.05535888671875,
0.02703857421875,
-0.022247314453125,
-0.028961181640625,
-0.0158843994140625,
0.01039886474609375,
0.007778167724609375,
-0.004047393798828125,
0.0022907257080078125,
-0.006275177001953125,
0.027679443359375,
-0.0035228729248046875,
0.031494140625,
-0.0309295654296875,
-0.0086669921875,
-0.036041259765625,
0.0540771484375,
-0.0105743408203125,
-0.01012420654296875,
0.0178680419921875,
0.0012331008911132812,
-0.034454345703125,
0.003326416015625,
-0.08355712890625,
-0.005321502685546875,
-0.0469970703125,
-0.004932403564453125,
0.00485992431640625,
-0.018798828125,
-0.014190673828125,
0.048248291015625,
-0.040985107421875,
-0.0083770751953125,
0.021148681640625,
-0.025177001953125,
-0.0295562744140625,
0.01210784912109375,
-0.01398468017578125,
-0.0212554931640625,
-0.00498199462890625,
-0.00897216796875,
-0.037200927734375,
-0.0084991455078125,
-0.064208984375,
0.057769775390625,
0.0653076171875,
-0.0645751953125,
-0.01050567626953125,
0.021240234375,
-0.0168609619140625,
0.0233154296875,
-0.01161956787109375,
0.01158905029296875,
0.0008254051208496094,
0.0254669189453125,
0.0045013427734375,
-0.0005002021789550781,
-0.0284881591796875,
-0.01502227783203125,
-0.035858154296875,
-0.01187896728515625,
0.0009760856628417969,
-0.0227508544921875,
0.036590576171875,
-0.0228729248046875,
-0.0618896484375,
-0.047576904296875,
-0.06988525390625,
-0.036590576171875,
-0.043212890625,
-0.007793426513671875,
-0.021697998046875,
-0.0693359375,
0.050933837890625,
0.005870819091796875,
-0.0159149169921875,
0.010650634765625,
0.09661865234375,
0.0132904052734375,
-0.0278167724609375,
-0.09210205078125,
-0.0124664306640625,
0.0172119140625,
0.0296630859375,
-0.0034389495849609375,
-0.008941650390625,
-0.01776123046875,
0.012359619140625,
0.00237274169921875,
0.001934051513671875,
0.00799560546875,
0.0667724609375,
0.0171966552734375,
-0.01849365234375,
0.020782470703125,
0.0280609130859375,
-0.031524658203125,
-0.03167724609375,
-0.033843994140625,
-0.005512237548828125,
-0.04547119140625,
0.019622802734375,
0.0177459716796875,
0.042755126953125,
-0.028045654296875,
-0.0635986328125,
0.024017333984375,
0.02032470703125,
-0.013397216796875,
0.0294036865234375,
-0.00974273681640625,
0.03009033203125,
-0.02093505859375,
0.0163726806640625,
0.00411224365234375,
0.04779052734375,
-0.0389404296875,
0.046630859375,
-0.0008115768432617188,
-0.0175628662109375,
-0.0213623046875,
-0.00632476806640625,
0.045257568359375,
0.006771087646484375,
-0.0142974853515625,
-0.056915283203125,
0.00921630859375,
0.010040283203125,
-0.02099609375,
0.046051025390625,
0.053955078125,
-0.0137176513671875,
-0.0013170242309570312,
-0.0222015380859375,
-0.02294921875,
0.00030040740966796875,
-0.042022705078125,
-0.033233642578125,
0.002552032470703125,
-0.03564453125,
-0.0035228729248046875,
-0.0165863037109375,
0.00434112548828125,
-0.0355224609375,
0.00408172607421875,
0.029571533203125,
-0.00518035888671875,
-0.0003612041473388672,
0.0187225341796875,
-0.0008606910705566406,
0.03472900390625,
-0.0633544921875,
0.0243072509765625,
0.00821685791015625,
-0.028076171875,
0.035614013671875,
0.0169525146484375,
0.00033855438232421875,
0.026214599609375,
-0.004299163818359375,
0.007312774658203125,
0.00023257732391357422,
-0.000263214111328125,
0.0209197998046875,
-0.001377105712890625,
0.0097503662109375,
0.025390625,
0.0264129638671875,
0.0092620849609375,
-0.0094757080078125,
-0.0120697021484375,
-0.0389404296875,
-0.019012451171875,
0.004444122314453125,
-0.03924560546875,
0.008209228515625,
0.0122222900390625,
-0.0009250640869140625,
0.007030487060546875,
-0.0144805908203125,
-0.036956787109375,
-0.0645751953125,
0.0078277587890625,
0.0223846435546875,
0.037017822265625,
-0.0282745361328125,
0.02935791015625,
-0.005794525146484375,
-0.01270294189453125,
0.0038909912109375,
0.004730224609375,
0.0626220703125,
0.039337158203125,
-0.08673095703125,
-0.0014867782592773438,
-0.045806884765625,
-0.0217742919921875,
-0.08856201171875,
-0.053680419921875,
-0.08294677734375,
0.019866943359375,
-0.0294189453125,
0.01009368896484375,
-0.0343017578125,
-0.0120849609375,
0.007694244384765625,
0.00795745849609375,
-0.01227569580078125,
-0.00870513916015625,
-0.01318359375,
0.0287322998046875,
-0.0141143798828125,
0.029266357421875,
-0.004791259765625,
0.0017461776733398438,
-0.002033233642578125,
-0.0166168212890625,
0.00341033935546875,
0.0204315185546875,
-0.00861358642578125,
-0.052947998046875,
0.0389404296875,
-0.016998291015625,
0.06109619140625,
-0.00978851318359375,
0.025909423828125,
-0.032867431640625,
-0.0023937225341796875,
-0.01558685302734375,
0.058135986328125,
-0.058502197265625,
-0.00739288330078125,
0.0195465087890625,
-0.0215606689453125,
-0.03143310546875,
-0.0114898681640625,
0.0094451904296875,
0.00878143310546875,
0.0056915283203125,
-0.002620697021484375,
-0.01078033447265625,
-0.04644775390625,
0.050750732421875,
-0.017913818359375,
-0.0274505615234375,
0.0008296966552734375,
-0.0174713134765625,
0.0185546875,
-0.00763702392578125,
0.0037708282470703125,
-0.0098876953125,
0.032470703125,
0.0621337890625,
0.00478363037109375,
-0.00991058349609375,
0.026092529296875,
-0.02484130859375,
0.005840301513671875,
0.016082763671875,
0.037689208984375,
-0.0684814453125,
0.034698486328125,
0.0009469985961914062,
0.02276611328125,
0.052825927734375,
0.0156707763671875,
-0.021881103515625,
-0.00738525390625,
0.028961181640625,
-0.05316162109375,
-0.0113677978515625,
0.021026611328125,
-0.01184844970703125,
-0.0198822021484375,
-0.0307769775390625,
0.031951904296875,
0.02105712890625,
0.0031585693359375,
0.03912353515625,
0.0004944801330566406,
0.030792236328125,
0.0031948089599609375,
0.00841522216796875,
0.0221710205078125,
-0.040985107421875,
-0.0279083251953125,
0.03082275390625,
-0.00885009765625,
-0.0172882080078125,
0.019866943359375,
-0.0115814208984375,
-0.0005583763122558594,
0.04754638671875,
-0.050048828125,
0.027069091796875,
0.01220703125,
0.006832122802734375,
-0.02410888671875,
-0.0223846435546875,
0.005008697509765625,
0.007080078125,
-0.0243072509765625,
0.0157012939453125,
-0.0213775634765625,
-0.027099609375,
-0.024505615234375,
-0.0557861328125,
0.0772705078125,
-0.049102783203125,
0.0015897750854492188,
0.01519775390625,
0.01212310791015625,
-0.00954437255859375,
-0.03216552734375,
-0.014862060546875,
-0.0618896484375,
-0.0179595947265625,
-0.0275726318359375,
-0.0191802978515625,
0.024505615234375,
-0.031585693359375,
-0.05670166015625,
0.1685791015625,
-0.00841522216796875,
0.005764007568359375,
0.007686614990234375,
0.08489990234375,
-0.06512451171875,
0.03076171875,
-0.0254974365234375,
0.0364990234375,
0.003787994384765625,
0.036407470703125,
-0.00948333740234375,
0.00577545166015625,
0.016387939453125,
0.01093292236328125,
0.06878662109375,
0.01461029052734375,
-0.056976318359375,
-0.0175933837890625,
0.05218505859375,
0.017852783203125,
-0.0003323554992675781,
0.07177734375,
0.01213836669921875,
-0.02423095703125,
0.0110626220703125,
0.0159759521484375,
0.05169677734375,
-0.03521728515625,
-0.004505157470703125,
0.04229736328125,
0.007144927978515625,
-0.005863189697265625,
-0.043304443359375,
0.038055419921875,
-0.0020275115966796875,
-0.02734375,
0.005115509033203125,
-0.0199127197265625,
0.013214111328125,
0.005710601806640625,
0.0028171539306640625,
0.015625,
0.012115478515625,
0.004383087158203125,
0.0322265625,
-0.01480865478515625,
0.01541900634765625,
-0.033966064453125,
-0.006557464599609375,
0.0080108642578125,
-0.04156494140625,
-0.016571044921875,
0.03680419921875,
-0.0374755859375,
-0.01099395751953125,
0.01233673095703125,
0.01439666748046875,
0.00452423095703125,
0.036468505859375,
0.0447998046875,
-0.0005278587341308594,
-0.0189361572265625,
-0.03082275390625,
0.013427734375,
0.00611114501953125,
0.0054779052734375,
0.00392913818359375,
0.03204345703125,
-0.0222625732421875,
-0.00469970703125,
-0.013916015625,
-0.0206451416015625,
0.0160064697265625,
-0.0020389556884765625,
0.0114593505859375,
-0.007587432861328125,
0.0171966552734375,
-0.010528564453125,
0.00010073184967041016,
-0.01239013671875,
-0.00048828125,
-0.010162353515625,
-0.00400543212890625,
0.01383209228515625,
0.0266265869140625,
0.0158233642578125,
0.0170745849609375,
0.0244598388671875,
-0.00848388671875,
-0.007568359375,
-0.004810333251953125,
-0.0501708984375,
0.01453399658203125,
0.03265380859375,
0.00873565673828125,
0.02008056640625,
0.03155517578125,
0.01727294921875,
-0.0306396484375,
-0.0076904296875,
-0.019744873046875,
-0.029876708984375,
0.00965118408203125,
-0.0296478271484375,
0.009185791015625,
-0.006988525390625,
-0.0205841064453125,
-0.003993988037109375,
0.002834320068359375,
0.022369384765625,
0.002559661865234375,
0.037384033203125,
0.003498077392578125,
0.0020904541015625,
0.049072265625,
-0.0268707275390625,
0.064697265625,
0.017364501953125,
-0.033966064453125,
-0.008880615234375,
-0.0017728805541992188,
-0.043212890625,
0.02215576171875,
0.0303955078125,
-0.01493072509765625,
0.020050048828125,
-0.02679443359375,
0.0087127685546875,
0.0234375,
-0.0308990478515625,
-0.01467132568359375,
-0.0025615692138671875,
0.01274871826171875,
-0.0017595291137695312,
0.01175689697265625,
-0.004703521728515625,
-0.042205810546875,
0.048309326171875,
0.0723876953125,
0.0653076171875,
-0.0401611328125,
0.048187255859375,
0.0026035308837890625,
-0.050079345703125,
-0.0032138824462890625,
0.01276397705078125,
-0.020477294921875,
-0.0567626953125,
-0.041229248046875,
0.028533935546875,
-0.029754638671875,
0.017852783203125,
0.0183258056640625,
-0.0128326416015625,
0.00806427001953125,
-0.007572174072265625,
0.01132965087890625,
-0.006809234619140625,
0.0091094970703125,
-0.010223388671875,
-0.02197265625,
0.0242156982421875,
0.009124755859375,
0.017059326171875,
0.026885986328125,
-0.01107025146484375,
-0.0255126953125,
0.01329803466796875,
0.001827239990234375,
-0.0227203369140625,
0.04364013671875,
-0.03704833984375,
0.02813720703125,
-0.039215087890625,
-0.07574462890625,
-0.0027256011962890625,
-0.0177764892578125,
0.00637054443359375,
-0.006221771240234375,
0.099853515625,
-0.006496429443359375,
-0.04486083984375,
0.0267791748046875,
0.01076507568359375,
0.0218048095703125,
-0.029937744140625,
0.01294708251953125,
0.01385498046875,
0.0109405517578125,
0.0200958251953125,
-0.018218994140625,
-0.016143798828125,
-0.04547119140625,
-0.001190185546875,
0.007328033447265625,
-0.0164642333984375,
-0.03253173828125,
-0.0229644775390625,
0.021759033203125,
0.0265960693359375,
0.01064300537109375,
-0.07342529296875,
0.038726806640625,
-0.0227813720703125,
0.04840087890625,
-0.0198822021484375,
-0.03839111328125,
0.0014238357543945312,
0.015350341796875,
0.0035839080810546875,
-0.037811279296875,
-0.044830322265625,
0.029998779296875,
-0.033447265625,
0.06536865234375,
0.0670166015625,
-0.035980224609375,
0.003692626953125,
0.06671142578125,
0.0543212890625,
0.1168212890625,
-0.024505615234375,
-0.0238037109375,
0.044769287109375,
-0.036163330078125,
-0.004573822021484375,
-0.02056884765625,
0.01540374755859375,
-0.07537841796875,
-0.0250091552734375,
-0.01080322265625,
-0.0033111572265625,
0.0170135498046875,
-0.039794921875,
-0.049285888671875,
0.08282470703125,
-0.01425933837890625,
-0.028076171875,
-0.0304412841796875,
-0.0172119140625,
-0.00745391845703125,
0.036468505859375,
-0.0152435302734375,
-0.01152801513671875,
-0.039947509765625,
0.035491943359375,
-0.0013170242309570312,
0.03741455078125,
-0.0131683349609375,
0.004116058349609375,
-0.0079345703125,
0.035400390625,
0.0252227783203125,
0.005641937255859375,
-0.048828125,
0.0040130615234375,
0.02667236328125,
0.031005859375,
-0.0164031982421875,
0.039764404296875,
0.047607421875,
0.0298004150390625,
-0.00189208984375,
-0.0236053466796875,
-0.0226898193359375,
0.015899658203125,
0.058929443359375,
0.051849365234375,
0.01161956787109375,
-0.047882080078125,
-0.0013828277587890625,
-0.013702392578125,
0.01096343994140625,
-0.003070831298828125,
0.004619598388671875,
-0.0548095703125,
-0.005176544189453125,
0.0167083740234375,
-0.0262298583984375,
-0.013427734375,
0.0174102783203125,
-0.033782958984375,
-0.0003879070281982422,
-0.005252838134765625,
-0.040679931640625,
0.0032100677490234375,
-0.0202484130859375,
0.076416015625,
-0.028594970703125,
0.04071044921875,
0.017852783203125,
0.01003265380859375,
0.06103515625,
0.062744140625,
0.0341796875,
0.0228424072265625,
-0.0697021484375,
-0.0028839111328125,
0.00730133056640625,
0.0290985107421875,
-0.03118896484375,
-0.06805419921875,
-0.0180206298828125,
0.0167236328125,
0.001094818115234375,
0.01079559326171875,
-0.033966064453125,
0.052459716796875,
0.018035888671875,
0.0684814453125,
-0.01305389404296875,
-0.005523681640625,
-0.044921875,
0.03985595703125,
-0.0032558441162109375,
0.00199127197265625,
0.0173797607421875,
-0.0016870498657226562,
0.0163421630859375,
0.01617431640625,
0.0253448486328125,
-0.01325225830078125,
0.02740478515625,
-0.08197021484375,
-0.0034198760986328125,
0.006381988525390625
] |
f882c8ecc364205d6508402e627ce8492e8701a0
|
Wordpress Stackexchange
Q: how do I get_sidebar into a varaible? I want to get a sidebar and save it in a Variable,
This is impossible with the get_sidebar function since it simply prints out
the sidebar, is there another function that I can use?
A: You probably need to use output buffering, if I understand your question correctly.
Try something like this:
ob_start();
dynamic_sidebar('sidebar-id');
$sidebar = ob_get_contents();
ob_end_clean();
That will put the output of the sidebar into the variable $sidebar, which you can then process and return from your filter on the page content.
|
Q: how do I get_sidebar into a varaible? I want to get a sidebar and save it in a Variable,
This is impossible with the get_sidebar function since it simply prints out
the sidebar, is there another function that I can use?
A: You probably need to use output buffering, if I understand your question correctly.
Try something like this:
ob_start();
dynamic_sidebar('sidebar-id');
$sidebar = ob_get_contents();
ob_end_clean();
That will put the output of the sidebar into the variable $sidebar, which you can then process and return from your filter on the page content.
A: The get_sidebar() function is an include function, used to include sidebar.php.
The function I think you're after is dynamic_sidebar() (Codex ref), assuming you know the ID of the dynamic sidebar you want to use.
|
wordpress
|
{
"language": "en",
"length": 127,
"provenance": "stackexchange_00019.jsonl.gz:411300",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22943"
}
|
[
0.026397705078125,
-0.0184783935546875,
0.01355743408203125,
-0.0247955322265625,
0.0013647079467773438,
-0.0166778564453125,
0.0284576416015625,
-0.009063720703125,
-0.0027027130126953125,
-0.00635528564453125,
-0.060638427734375,
0.01143646240234375,
-0.0631103515625,
-0.00963592529296875,
-0.0101165771484375,
-0.057281494140625,
0.058929443359375,
-0.0379638671875,
0.0252227783203125,
-0.0057830810546875,
-0.0166473388671875,
0.04364013671875,
0.0307769775390625,
0.0732421875,
0.04510498046875,
-0.01390838623046875,
0.03265380859375,
-0.021453857421875,
0.0306396484375,
-0.00878143310546875,
0.0360107421875,
-0.03070068359375,
0.024139404296875,
-0.0253753662109375,
0.048248291015625,
0.067626953125,
-0.01519012451171875,
0.00833892822265625,
0.04998779296875,
-0.037353515625,
0.042877197265625,
-0.035400390625,
-0.01934814453125,
0.0160064697265625,
-0.0249481201171875,
0.01320648193359375,
0.00801849365234375,
-0.0207366943359375,
0.01666259765625,
0.025299072265625,
0.01253509521484375,
0.0013933181762695312,
0.0164337158203125,
0.0517578125,
-0.0238037109375,
-0.02508544921875,
0.0311431884765625,
-0.053192138671875,
0.029876708984375,
0.01123046875,
-0.03326416015625,
-0.0221405029296875,
0.04449462890625,
-0.0257415771484375,
0.00203704833984375,
-0.006557464599609375,
-0.0203399658203125,
0.0243682861328125,
-0.05401611328125,
0.0200347900390625,
0.052703857421875,
-0.05322265625,
-0.007038116455078125,
-0.00830841064453125,
0.006694793701171875,
0.0016222000122070312,
0.00406646728515625,
0.020965576171875,
-0.006473541259765625,
0.022857666015625,
-0.0401611328125,
0.0194244384765625,
-0.09954833984375,
0.00824737548828125,
-0.01505279541015625,
0.0260162353515625,
-0.0290679931640625,
-0.011016845703125,
-0.02197265625,
0.00800323486328125,
-0.0160980224609375,
0.007343292236328125,
-0.019439697265625,
0.0094451904296875,
-0.00933074951171875,
-0.0229034423828125,
-0.0084075927734375,
0.016845703125,
-0.03216552734375,
0.026947021484375,
-0.035430908203125,
-0.0162506103515625,
0.0250091552734375,
-0.04095458984375,
-0.0008945465087890625,
0.0153350830078125,
-0.00968170166015625,
0.0149383544921875,
0.027130126953125,
0.03741455078125,
-0.001522064208984375,
-0.0321044921875,
-0.0183258056640625,
-0.01824951171875,
-0.0535888671875,
0.03619384765625,
-0.0143280029296875,
-0.0164947509765625,
0.01369476318359375,
0.0184326171875,
0.01276397705078125,
0.0180511474609375,
0.0117340087890625,
-0.002719879150390625,
0.02044677734375,
0.00690460205078125,
-0.03619384765625,
-0.0108642578125,
-0.00099945068359375,
0.0222015380859375,
-0.0305633544921875,
-0.0122528076171875,
0.0128936767578125,
0.0516357421875,
0.0210418701171875,
-0.0215911865234375,
0.04559326171875,
-0.07080078125,
0.0111083984375,
0.00310516357421875,
0.0086212158203125,
0.00605010986328125,
0.00966644287109375,
-0.0248565673828125,
-0.01959228515625,
-0.004108428955078125,
0.03228759765625,
0.0313720703125,
-0.0223236083984375,
-0.052398681640625,
0.018646240234375,
0.0076446533203125,
-0.0027790069580078125,
0.003650665283203125,
0.0345458984375,
-0.0147247314453125,
0.01220703125,
-0.0281219482421875,
0.0216217041015625,
0.001163482666015625,
0.010589599609375,
-0.0038127899169921875,
-0.00647735595703125,
0.026947021484375,
0.016448974609375,
0.013641357421875,
-0.0013189315795898438,
0.00547027587890625,
0.01146697998046875,
0.034637451171875,
-0.0012693405151367188,
0.0022373199462890625,
-0.036407470703125,
0.0186004638671875,
0.013885498046875,
0.022216796875,
-0.0341796875,
-0.03759765625,
0.0171356201171875,
0.0008153915405273438,
-0.0198516845703125,
-0.02740478515625,
-0.0282135009765625,
0.032745361328125,
-0.02142333984375,
-0.01290130615234375,
-0.0013341903686523438,
0.0241546630859375,
0.02972412109375,
0.0185394287109375,
-0.041412353515625,
0.0034389495849609375,
-0.05255126953125,
0.020599365234375,
-0.0132904052734375,
0.006137847900390625,
-0.005970001220703125,
-0.0009303092956542969,
-0.0280303955078125,
0.020233154296875,
0.046783447265625,
-0.026092529296875,
0.046722412109375,
-0.016143798828125,
-0.047882080078125,
-0.006549835205078125,
-0.0158538818359375,
0.0170440673828125,
0.0408935546875,
0.0631103515625,
-0.018463134765625,
0.00948333740234375,
0.0007386207580566406,
-0.004329681396484375,
-0.0232696533203125,
-0.00012159347534179688,
0.006130218505859375,
0.05010986328125,
-0.007568359375,
-0.01617431640625,
0.00958251953125,
-0.0180511474609375,
0.007537841796875,
0.01971435546875,
0.041107177734375,
-0.02325439453125,
-0.0099029541015625,
-0.029144287109375,
0.00783538818359375,
0.021514892578125,
-0.061798095703125,
0.037872314453125,
0.037689208984375,
0.0149383544921875,
-0.034027099609375,
-0.0210418701171875,
-0.01071929931640625,
-0.045745849609375,
0.004547119140625,
0.05364990234375,
0.043487548828125,
0.0222930908203125,
0.00872802734375,
-0.0088653564453125,
0.052001953125,
-0.04193115234375,
0.0091094970703125,
-0.0240478515625,
0.006160736083984375,
0.02069091796875,
-0.0184478759765625,
-0.03778076171875,
0.0146484375,
-0.08538818359375,
-0.01739501953125,
0.019439697265625,
0.0032329559326171875,
0.037841796875,
-0.01189422607421875,
0.010589599609375,
-0.02154541015625,
0.018157958984375,
0.020721435546875,
-0.0002472400665283203,
0.057586669921875,
0.0015020370483398438,
0.04315185546875,
0.03643798828125,
-0.0010347366333007812,
-0.00824737548828125,
-0.0017843246459960938,
-0.0157623291015625,
0.002452850341796875,
0.0306854248046875,
0.01306915283203125,
-0.037811279296875,
-0.01971435546875,
-0.0182037353515625,
0.018798828125,
0.006195068359375,
0.0031375885009765625,
0.041107177734375,
0.019866943359375,
-0.00958251953125,
0.003162384033203125,
-0.01551055908203125,
0.0177764892578125,
0.01474761962890625,
-0.0093841552734375,
-0.0191497802734375,
-0.0017423629760742188,
0.071044921875,
0.01139068603515625,
0.032318115234375,
-0.03717041015625,
0.0185394287109375,
0.09930419921875,
-0.039520263671875,
0.0247802734375,
-0.0004875659942626953,
0.07342529296875,
0.05572509765625,
-0.0213165283203125,
0.0213775634765625,
0.00789642333984375,
-0.0003821849822998047,
0.0221405029296875,
-0.014739990234375,
-0.01129913330078125,
-0.004741668701171875,
-0.05596923828125,
-0.00926971435546875,
0.0149383544921875,
0.038421630859375,
0.0189056396484375,
-0.03668212890625,
0.01448822021484375,
0.0307464599609375,
-0.031402587890625,
-0.037200927734375,
0.0287628173828125,
-0.040863037109375,
-0.049896240234375,
-0.00037932395935058594,
-0.043548583984375,
0.02154541015625,
0.00798797607421875,
-0.016021728515625,
0.061279296875,
-0.0212860107421875,
-0.053802490234375,
0.0018434524536132812,
-0.0711669921875,
0.01171112060546875,
-0.0037097930908203125,
0.01145172119140625,
-0.0014600753784179688,
0.051239013671875,
-0.0028400421142578125,
-0.04278564453125,
-0.000010669231414794922,
-0.0150909423828125,
-0.007808685302734375,
0.002017974853515625,
-0.01488494873046875,
0.00006979703903198242,
-0.0143585205078125,
-0.0078125,
0.034637451171875,
0.00034809112548828125,
-0.01568603515625,
0.006702423095703125,
-0.027557373046875,
-0.003757476806640625,
0.015655517578125,
-0.0241241455078125,
0.0242919921875,
0.0221405029296875,
0.0229339599609375,
-0.02850341796875,
-0.01519012451171875,
0.01461029052734375,
-0.02508544921875,
0.0125274658203125,
0.01393890380859375,
-0.020965576171875,
-0.00264739990234375,
0.0172576904296875,
-0.0240631103515625,
-0.004634857177734375,
0.0039043426513671875,
-0.036163330078125,
0.04864501953125,
-0.0036258697509765625,
-0.01189422607421875,
0.007213592529296875,
0.00424957275390625,
-0.0308685302734375,
0.03277587890625,
0.0175018310546875,
0.020477294921875,
0.0092010498046875,
0.0263824462890625,
0.0042572021484375,
-0.058502197265625,
0.059051513671875,
0.039093017578125,
0.0249786376953125,
-0.0095977783203125,
-0.055206298828125,
0.01806640625,
0.1083984375,
-0.006198883056640625,
-0.0311431884765625,
0.03265380859375,
0.036376953125,
-0.04541015625,
-0.04608154296875,
-0.0233612060546875,
-0.0203094482421875,
-0.0692138671875,
0.014617919921875,
-0.009918212890625,
-0.0162200927734375,
-0.019287109375,
-0.005092620849609375,
-0.03936767578125,
-0.03656005859375,
0.043182373046875,
-0.06024169921875,
0.036407470703125,
-0.0225830078125,
0.0130462646484375,
-0.04461669921875,
-0.0216064453125,
-0.036651611328125,
-0.043670654296875,
-0.015228271484375,
0.00991058349609375,
0.042572021484375,
0.0088348388671875,
-0.0256805419921875,
-0.00324249267578125,
0.021759033203125,
0.025909423828125,
-0.00937652587890625,
0.04608154296875,
0.005146026611328125,
-0.0153656005859375,
-0.0067596435546875,
0.0396728515625,
-0.045623779296875,
-0.0238800048828125,
-0.01953125,
0.01885986328125,
0.00820159912109375,
-0.0287017822265625,
-0.02642822265625,
-0.0160369873046875,
-0.0058746337890625,
-0.061370849609375,
-0.0201568603515625,
0.056396484375,
-0.005886077880859375,
0.004192352294921875,
0.0208282470703125,
0.006763458251953125,
-0.0208587646484375,
0.024383544921875,
0.030059814453125,
-0.009613037109375,
0.007049560546875,
0.06573486328125,
0.0225982666015625,
-0.0306854248046875,
-0.0284271240234375,
-0.0009813308715820312,
0.0440673828125,
-0.01294708251953125,
0.0300140380859375,
0.0340576171875,
-0.035614013671875,
0.0506591796875,
0.0177764892578125,
0.00760650634765625,
0.0105743408203125,
0.055023193359375,
0.0187225341796875,
0.01739501953125,
-0.005527496337890625,
0.006427764892578125,
-0.027069091796875,
0.012939453125,
-0.035003662109375,
0.01107025146484375,
-0.005645751953125,
0.017425537109375,
-0.0340576171875,
0.0245513916015625,
-0.035369873046875,
-0.01134490966796875,
0.0032062530517578125,
-0.040618896484375,
0.047637939453125,
0.026153564453125,
-0.00010794401168823242,
0.01543426513671875,
0.021820068359375,
-0.004192352294921875,
0.017486572265625,
-0.021575927734375,
0.0025653839111328125,
0.0355224609375,
-0.002468109130859375,
-0.003658294677734375,
0.049652099609375,
0.006378173828125,
-0.0042877197265625,
0.030242919921875,
-0.0003325939178466797,
-0.029510498046875,
0.0101318359375,
-0.007022857666015625,
-0.01473236083984375,
0.020904541015625,
0.02227783203125,
0.0347900390625,
-0.0290374755859375,
-0.00444793701171875,
0.00443267822265625,
0.0272674560546875,
-0.036346435546875,
0.0282135009765625,
-0.0279693603515625,
0.02471923828125,
-0.00676727294921875,
0.0927734375,
-0.0714111328125,
0.07464599609375,
-0.007648468017578125,
0.03009033203125,
0.05352783203125,
0.0019130706787109375,
0.0106353759765625,
0.0008993148803710938,
0.001918792724609375,
-0.028778076171875,
0.02313232421875,
-0.0382080078125,
0.01532745361328125,
0.03167724609375,
0.023468017578125,
0.003353118896484375,
-0.04150390625,
0.022491455078125,
-0.03070068359375,
-0.01276397705078125,
0.04779052734375,
-0.0021152496337890625,
-0.032928466796875,
-0.050689697265625,
-0.0233154296875,
0.05523681640625,
-0.0178375244140625,
0.0290679931640625,
-0.005420684814453125,
0.00519561767578125,
-0.0007786750793457031,
-0.0258026123046875,
0.0038623809814453125,
-0.0236053466796875,
-0.01403045654296875,
-0.0118865966796875,
-0.009613037109375,
0.046295166015625,
-0.039398193359375,
-0.012176513671875,
-0.0290679931640625,
-0.0156097412109375,
0.065673828125,
-0.045745849609375,
0.0256500244140625,
-0.039947509765625,
0.0153961181640625,
-0.03173828125,
-0.02410888671875,
0.10870361328125,
0.091796875,
-0.042999267578125,
-0.003177642822265625,
-0.0531005859375,
-0.016143798828125,
-0.0406494140625,
-0.022857666015625,
-0.035736083984375,
0.0023937225341796875,
-0.0160064697265625,
0.01210784912109375,
0.0128021240234375,
0.036224365234375,
-0.0204620361328125,
0.031768798828125,
-0.0118865966796875,
0.04547119140625,
-0.0038013458251953125,
0.05596923828125,
0.00030231475830078125,
0.04669189453125,
0.0134124755859375,
0.0226287841796875,
-0.0341796875,
-0.021514892578125,
-0.0018625259399414062,
-0.004489898681640625,
-0.00860595703125,
-0.0352783203125,
0.0295257568359375,
-0.0020618438720703125,
0.0537109375,
-0.00002181529998779297,
0.03387451171875,
-0.004909515380859375,
-0.00763702392578125,
-0.0003294944763183594,
-0.01093292236328125,
0.0005154609680175781,
0.02972412109375,
0.01436614990234375,
-0.040863037109375,
-0.04583740234375,
-0.01702880859375,
0.002674102783203125,
0.03094482421875,
-0.027069091796875,
0.00028252601623535156,
0.024261474609375,
-0.08001708984375,
0.08233642578125,
0.08197021484375,
0.0295257568359375,
0.046600341796875,
-0.0036983489990234375,
0.0159149169921875,
0.0079345703125,
0.0377197265625,
0.06610107421875,
-0.007781982421875,
0.062469482421875,
-0.0004420280456542969,
-0.033843994140625,
-0.0033245086669921875,
-0.06427001953125,
0.03314208984375,
0.07061767578125,
0.0936279296875,
-0.092529296875,
0.020904541015625,
0.028533935546875,
-0.028594970703125,
-0.0005030632019042969,
0.0094451904296875,
-0.040374755859375,
-0.048370361328125,
0.057220458984375,
-0.0167999267578125,
-0.01299285888671875,
0.0266571044921875,
0.02667236328125,
-0.01145172119140625,
-0.00504302978515625,
0.04962158203125,
0.0127716064453125,
-0.0270233154296875,
-0.00580596923828125,
0.029510498046875,
-0.0140533447265625,
-0.02874755859375,
0.025726318359375,
-0.00466156005859375,
-0.0126953125,
-0.05328369140625,
0.01763916015625,
0.0179901123046875,
0.0095672607421875,
0.03851318359375,
-0.016754150390625,
0.026031494140625,
0.019134521484375,
-0.008209228515625,
0.0223388671875,
-0.02862548828125,
-0.00708770751953125,
0.06658935546875,
0.007045745849609375,
0.01213836669921875,
-0.0009541511535644531,
-0.0338134765625,
-0.006366729736328125,
-0.0279388427734375,
-0.00885772705078125,
-0.005634307861328125,
0.024627685546875,
0.0836181640625,
-0.0294189453125,
-0.025909423828125,
0.0419921875,
0.0296783447265625,
-0.021759033203125,
-0.037017822265625,
0.039154052734375,
-0.077392578125,
-0.0108489990234375,
-0.0173187255859375,
0.0029010772705078125,
-0.0105133056640625,
-0.044097900390625,
-0.06964111328125,
0.09228515625,
0.039947509765625,
0.0168914794921875,
0.00847625732421875,
0.033935546875,
-0.07403564453125,
-0.018218994140625,
-0.04412841796875,
0.055694580078125,
0.02618408203125,
0.036834716796875,
-0.07781982421875,
-0.025421142578125,
-0.00440216064453125,
0.044464111328125,
0.0203094482421875,
0.003086090087890625,
0.01450347900390625,
-0.024139404296875,
0.0232696533203125,
0.03924560546875,
0.00722503662109375,
-0.00807952880859375,
0.022705078125,
0.075927734375,
0.045684814453125,
-0.06304931640625,
0.03729248046875,
-0.032257080078125,
0.00748443603515625,
0.040802001953125,
-0.00433349609375,
-0.007160186767578125,
0.0147552490234375,
-0.0182342529296875,
0.021728515625,
-0.0203704833984375,
-0.0217437744140625,
-0.055328369140625,
-0.001445770263671875,
0.04632568359375,
0.031768798828125,
-0.0084228515625,
0.031494140625,
-0.033233642578125,
0.052154541015625,
0.001110076904296875,
0.005374908447265625,
-0.0219268798828125,
-0.006832122802734375,
0.045013427734375,
-0.0041656494140625,
-0.020050048828125,
0.03240966796875,
0.02191162109375,
0.04437255859375,
0.04595947265625,
0.036407470703125,
-0.02825927734375,
-0.03143310546875,
0.03668212890625,
0.0657958984375,
-0.01837158203125,
-0.01456451416015625,
0.005290985107421875,
0.003749847412109375,
-0.007965087890625,
-0.0065155029296875,
0.0204010009765625,
0.046173095703125,
0.04931640625,
-0.033538818359375,
0.0194854736328125,
0.0298919677734375,
0.032318115234375,
0.0058441162109375,
0.01352691650390625,
-0.046722412109375,
0.0135040283203125,
-0.0496826171875,
-0.018707275390625,
0.020416259765625,
0.0650634765625,
0.052764892578125,
0.0189361572265625,
-0.0238494873046875,
-0.032012939453125,
-0.00514984130859375,
0.01091766357421875,
-0.00511932373046875,
0.021270751953125,
-0.0294342041015625,
-0.015838623046875,
-0.01241302490234375,
0.0184783935546875,
-0.0181884765625,
0.0213623046875,
0.0199127197265625,
0.035736083984375,
-0.0119781494140625,
-0.0215911865234375,
0.041229248046875,
-0.01322174072265625,
0.0156402587890625,
-0.04150390625,
-0.01296234130859375,
0.0006918907165527344,
-0.0179901123046875,
-0.007617950439453125,
-0.03619384765625,
0.04608154296875,
0.022125244140625,
0.03814697265625,
-0.004016876220703125,
0.00867462158203125,
0.044677734375,
-0.058074951171875,
0.038909912109375,
0.004451751708984375,
-0.06256103515625,
-0.004913330078125,
-0.00008565187454223633,
-0.0312042236328125,
-0.01427459716796875,
0.0250396728515625,
-0.0165557861328125,
0.0234832763671875,
-0.0016279220581054688,
-0.007568359375,
0.016754150390625,
0.0186309814453125,
-0.006580352783203125,
0.02239990234375,
0.0281219482421875,
0.0135345458984375,
-0.1361083984375,
-0.0645751953125,
-0.06365966796875,
0.022613525390625,
0.03594970703125,
-0.00888824462890625,
0.06402587890625,
0.0438232421875,
-0.0452880859375,
0.01050567626953125,
-0.058685302734375,
-0.01323699951171875,
-0.030364990234375,
0.01393890380859375,
0.0133514404296875,
-0.005352020263671875,
0.0248870849609375,
0.043792724609375,
0.040863037109375,
-0.045074462890625,
0.019683837890625,
-0.006809234619140625,
0.0018720626831054688,
-0.0276336669921875,
0.019500732421875,
-0.0059051513671875,
-0.03570556640625,
-0.0104522705078125,
0.01050567626953125,
0.033538818359375,
0.06427001953125,
-0.003376007080078125,
0.0003230571746826172,
0.04083251953125,
-0.0243682861328125,
0.0177459716796875,
-0.006374359130859375,
0.03497314453125,
0.026824951171875,
0.0065460205078125,
0.00875091552734375,
-0.0014905929565429688,
-0.0321044921875,
0.0308990478515625,
-0.004611968994140625,
0.046661376953125,
-0.0091552734375,
0.0274810791015625,
0.0174102783203125,
-0.00891876220703125,
0.050323486328125,
-0.0243072509765625,
0.0164947509765625,
-0.01885986328125,
0.035980224609375,
0.01212310791015625,
0.0277557373046875,
-0.01715087890625,
-0.037994384765625,
-0.0293426513671875,
0.00803375244140625,
-0.0276031494140625,
-0.0195159912109375,
-0.037933349609375,
-0.0255126953125,
0.061553955078125,
-0.00356292724609375,
-0.0423583984375,
0.0018749237060546875,
-0.0246429443359375,
0.024383544921875,
-0.006702423095703125,
0.00669097900390625,
0.0150604248046875,
0.025787353515625,
-0.054229736328125,
-0.0114593505859375,
-0.01605224609375,
0.004436492919921875,
-0.025390625,
0.0083465576171875,
0.00039958953857421875,
-0.01026153564453125,
0.058837890625,
0.019989013671875,
-0.00616455078125,
0.06988525390625,
-0.00765228271484375,
-0.00656890869140625,
0.0128936767578125,
0.0182952880859375,
-0.061004638671875,
-0.01104736328125,
0.03253173828125,
0.0011415481567382812,
0.0019702911376953125,
-0.01242828369140625,
-0.01201629638671875,
-0.00698089599609375,
-0.028228759765625,
-0.018096923828125,
0.00949859619140625,
0.005748748779296875,
-0.028656005859375,
-0.0206298828125,
0.01212310791015625,
-0.01213836669921875,
-0.020111083984375,
-0.01383209228515625,
-0.039520263671875,
-0.00681304931640625,
0.024444580078125,
0.032379150390625,
-0.0184478759765625,
0.039215087890625,
-0.00435638427734375,
-0.0986328125,
-0.00001913309097290039,
-0.007068634033203125,
0.0440673828125,
-0.03515625,
-0.0091552734375,
0.00899505615234375,
0.0205535888671875,
-0.0045318603515625,
-0.028656005859375,
0.039794921875,
-0.00513458251953125,
-0.016326904296875,
-0.00902557373046875,
-0.006542205810546875,
0.004924774169921875,
0.060211181640625,
0.04339599609375,
0.0167083740234375,
-0.049407958984375,
0.003719329833984375,
0.021942138671875,
-0.08111572265625,
0.01258087158203125,
0.0458984375,
-0.056854248046875,
-0.004436492919921875,
-0.0030918121337890625,
0.0216217041015625,
0.00473785400390625,
-0.0254974365234375,
-0.012237548828125,
-0.0160369873046875,
0.041259765625,
0.024200439453125,
-0.050079345703125,
-0.043487548828125,
0.0244140625,
-0.0140228271484375,
-0.001895904541015625,
-0.00510406494140625,
0.026702880859375,
-0.001827239990234375,
0.0260772705078125,
0.0048675537109375,
0.0406494140625,
-0.061004638671875,
-0.01397705078125,
0.004123687744140625,
0.07196044921875,
-0.0157012939453125,
-0.024078369140625,
-0.0266876220703125,
0.005138397216796875,
-0.0016050338745117188,
-0.0008535385131835938,
-0.0026111602783203125,
0.032196044921875,
0.019439697265625,
0.054595947265625,
-0.041168212890625,
0.04730224609375,
-0.00601959228515625,
0.022064208984375,
-0.03228759765625,
0.019989013671875,
0.038177490234375,
-0.048370361328125,
0.00008940696716308594,
-0.0104522705078125,
0.0005846023559570312,
-0.06500244140625,
0.048370361328125,
0.0025997161865234375,
0.0023193359375,
0.04327392578125
] |
2e110e561da0ddaa2902c81fe38e6e406aaf081e
|
Wordpress Stackexchange
Q: query_post by title? is it possible to create a loop of posts using WP_Query or query_posts using the title?
ie
$args = array('post_title'='LIKE '.$str.'% ');
$res = WP_Query($arg);
// the loop...
// trying this now...
$mypostids = $wpdb->get_col("select ID from $wpdb->posts where post_title like 'Abb%' ");
echo count($mypostids).", "; // works but can't echo out array of IDs for the next args?
$args = array(
'post__in'=> $mypostids
);
$res = WP_Query($args);
while( $res->have_posts() ) : $res->the_post(); ...
A: functions.php
<?php
add_filter( 'posts_where', 'title_like_posts_where', 10, 2 );
function title_like_posts_where( $where, $wp_query ) {
global $wpdb;
if ( $post_title_like = $wp_query->get( 'post_title_like' ) ) {
$where .= ' AND ' . $wpdb->posts . '.post_title LIKE \'%' . esc_sql( $wpdb->esc_like( $post_title_like ) ) . '%\'';
}
return $where;
}
?>
Then:
$args = array(
'post_title_like' => $str
);
$res = new WP_Query($args);
|
Q: query_post by title? is it possible to create a loop of posts using WP_Query or query_posts using the title?
ie
$args = array('post_title'='LIKE '.$str.'% ');
$res = WP_Query($arg);
// the loop...
// trying this now...
$mypostids = $wpdb->get_col("select ID from $wpdb->posts where post_title like 'Abb%' ");
echo count($mypostids).", "; // works but can't echo out array of IDs for the next args?
$args = array(
'post__in'=> $mypostids
);
$res = WP_Query($args);
while( $res->have_posts() ) : $res->the_post(); ...
A: functions.php
<?php
add_filter( 'posts_where', 'title_like_posts_where', 10, 2 );
function title_like_posts_where( $where, $wp_query ) {
global $wpdb;
if ( $post_title_like = $wp_query->get( 'post_title_like' ) ) {
$where .= ' AND ' . $wpdb->posts . '.post_title LIKE \'%' . esc_sql( $wpdb->esc_like( $post_title_like ) ) . '%\'';
}
return $where;
}
?>
Then:
$args = array(
'post_title_like' => $str
);
$res = new WP_Query($args);
A: got this working with the help from this post in the end. Cheers guys;
$finalArgs = array (
'posts_per_page'=>5,
'order' => 'ASC',
'post_type' => 'school'
);
// Create a new instance
$searchSchools = new WP_Query( $finalArgs );
$mypostids = $wpdb->get_col("select ID from $wpdb->posts where post_title LIKE '".$str."%' ");
$args = array(
'post__in'=> $mypostids,
'post_type'=>'school',
'orderby'=>'title',
'order'=>'asc'
);
$res = new WP_Query($args);
while( $res->have_posts() ) : $res->the_post();
global $post;
$EstablishmentNumber = get_post_meta($post->ID,'EstablishmentNumber', true);
$schl = array('id'=>$EstablishmentNumber, 'label'=>$post->post_title , 'value'=>$EstablishmentNumber );
$matchedSchools[] = $schl;
endwhile;
A: Get the title from another loop
$title = get_the_title();
and use the $title variable if you wish.
<?php
global $post, $current_post_id, $title;
function filter_where($where = ''){
global $title;
$where .= "AND post_title = '$title'";
return $where;
}
add_filter('posts_where', 'filter_where');
$query = new WP_Query(array('post_type' => 'sessions') );
if ( have_posts() ) : while ( $query->have_posts() ) : $query->the_post();
/* Loop here */
endwhile; endif;
wp_reset_query(); ?>
A: Yes it is possible....
global $wpdb;
$mypostids = $wpdb->get_col("select ID from $wpdb->posts where post_title like '%$str%' ");
$args = array('post__in' => $mypostids);
$res = WP_Query($arg);
A: These replies seem to me as trying to hack wordpress.
Refer to the same question on stack overflow:
https://stackoverflow.com/questions/25761593/wp-query-with-post-title-like-something-and-category
This works if you want to do a search query by title ordered by title:
$the_query = new WP_Query(
array(
'post_type' => 'watches',
'posts_per_page' => 5,
'orderby' => 'title',
's' => 'my title'
)
);
This example query is for a post type named watches and the 's' (search term) is where you can look for your post titles on the query
|
wordpress
|
{
"language": "en",
"length": 398,
"provenance": "stackexchange_00019.jsonl.gz:411302",
"question_score": "20",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22949"
}
|
[
0.04559326171875,
-0.00826263427734375,
0.03997802734375,
0.027496337890625,
0.0131683349609375,
-0.026031494140625,
0.0889892578125,
-0.041717529296875,
0.0274200439453125,
0.03350830078125,
-0.0689697265625,
0.00693511962890625,
-0.007598876953125,
0.0038166046142578125,
-0.03173828125,
-0.02520751953125,
0.017669677734375,
-0.032501220703125,
-0.007045745849609375,
-0.02069091796875,
0.004314422607421875,
-0.0150299072265625,
0.02880859375,
0.01268768310546875,
0.007297515869140625,
-0.040313720703125,
0.10467529296875,
-0.02215576171875,
0.033477783203125,
-0.00933074951171875,
0.018890380859375,
-0.03271484375,
0.02392578125,
0.00012373924255371094,
0.0021190643310546875,
0.005462646484375,
0.043121337890625,
-0.0230865478515625,
-0.005344390869140625,
0.046844482421875,
0.017791748046875,
-0.0064849853515625,
0.008941650390625,
0.0189361572265625,
-0.01546478271484375,
-0.027679443359375,
0.03668212890625,
-0.0008907318115234375,
0.0234375,
0.0199737548828125,
-0.0181427001953125,
-0.003086090087890625,
-0.01166534423828125,
-0.03741455078125,
-0.008209228515625,
-0.01177215576171875,
0.0018987655639648438,
-0.00330352783203125,
0.054412841796875,
-0.049468994140625,
-0.059234619140625,
-0.050994873046875,
0.04412841796875,
-0.0117034912109375,
-0.016571044921875,
0.0219573974609375,
0.039825439453125,
-0.01371002197265625,
0.00324249267578125,
-0.027191162109375,
0.007389068603515625,
-0.002132415771484375,
0.00019359588623046875,
0.001728057861328125,
-0.017608642578125,
-0.0209503173828125,
0.002246856689453125,
-0.024810791015625,
0.014434814453125,
0.0236968994140625,
0.000885009765625,
0.004032135009765625,
-0.036468505859375,
0.01485443115234375,
-0.01763916015625,
0.007568359375,
-0.0225830078125,
-0.01126861572265625,
-0.014129638671875,
-0.04290771484375,
-0.00618743896484375,
-0.0042572021484375,
-0.056854248046875,
-0.004817962646484375,
-0.0021877288818359375,
-0.041778564453125,
-0.00981903076171875,
0.0283966064453125,
-0.000946044921875,
0.033538818359375,
-0.0166168212890625,
-0.0247039794921875,
0.0271759033203125,
-0.04461669921875,
0.025238037109375,
0.044952392578125,
-0.00679779052734375,
0.0238189697265625,
0.048095703125,
0.0309295654296875,
0.025634765625,
0.0177001953125,
-0.0225372314453125,
0.0179595947265625,
-0.04803466796875,
0.0279388427734375,
-0.053924560546875,
-0.0209808349609375,
-0.016204833984375,
0.01522064208984375,
0.00772857666015625,
0.009857177734375,
0.0224456787109375,
-0.0281982421875,
0.0231170654296875,
0.017547607421875,
-0.0187530517578125,
-0.037628173828125,
-0.0428466796875,
0.053375244140625,
-0.0164642333984375,
-0.005401611328125,
0.06072998046875,
0.040313720703125,
-0.0100555419921875,
-0.033294677734375,
-0.001377105712890625,
-0.02203369140625,
-0.0011472702026367188,
-0.048736572265625,
0.056854248046875,
0.0083465576171875,
0.0037689208984375,
0.0249786376953125,
0.0206298828125,
0.0034923553466796875,
0.001140594482421875,
0.0124969482421875,
0.004535675048828125,
-0.01561737060546875,
-0.00830841064453125,
0.01181793212890625,
0.00577545166015625,
-0.003131866455078125,
-0.00652313232421875,
-0.0080413818359375,
-0.00460052490234375,
-0.0019588470458984375,
-0.0022907257080078125,
-0.0134735107421875,
0.035430908203125,
0.00634765625,
-0.0230255126953125,
-0.041534423828125,
-0.06878662109375,
-0.0086822509765625,
-0.0238494873046875,
-0.014862060546875,
0.01024627685546875,
0.04974365234375,
0.018646240234375,
-0.0245819091796875,
-0.00331878662109375,
0.0224456787109375,
-0.01007080078125,
-0.00653076171875,
0.0004608631134033203,
-0.018402099609375,
0.034332275390625,
0.023101806640625,
-0.010162353515625,
-0.018829345703125,
0.04437255859375,
-0.002521514892578125,
-0.054962158203125,
0.043853759765625,
0.01207733154296875,
0.041229248046875,
0.004421234130859375,
0.0093841552734375,
0.04620361328125,
0.0254364013671875,
-0.048797607421875,
0.064208984375,
-0.00893402099609375,
-0.062042236328125,
-0.0240325927734375,
-0.0295867919921875,
-0.015655517578125,
0.022125244140625,
0.03863525390625,
-0.01097869873046875,
0.009063720703125,
0.00876617431640625,
-0.04278564453125,
-0.01532745361328125,
-0.0120391845703125,
0.01287841796875,
0.04815673828125,
0.034271240234375,
0.0033588409423828125,
0.029541015625,
-0.0205078125,
-0.0161285400390625,
-0.0535888671875,
-0.01153564453125,
-0.0131683349609375,
-0.0092010498046875,
-0.006618499755859375,
-0.0111846923828125,
-0.0063018798828125,
0.0005807876586914062,
-0.003978729248046875,
0.03656005859375,
0.0810546875,
-0.047027587890625,
0.0184783935546875,
-0.042266845703125,
0.04638671875,
-0.0020542144775390625,
-0.05462646484375,
0.027130126953125,
0.05633544921875,
0.0732421875,
-0.0167388916015625,
-0.00856781005859375,
-0.019256591796875,
-0.039642333984375,
0.01776123046875,
0.0487060546875,
0.04168701171875,
0.0601806640625,
0.024078369140625,
0.0013990402221679688,
0.0484619140625,
-0.0511474609375,
0.0219268798828125,
-0.0295867919921875,
0.03399658203125,
0.0504150390625,
-0.00205230712890625,
-0.0080413818359375,
0.025665283203125,
0.00325775146484375,
0.018524169921875,
0.031768798828125,
-0.0163421630859375,
0.033416748046875,
-0.04656982421875,
0.00023818016052246094,
-0.0085601806640625,
-0.03509521484375,
0.007045745849609375,
-0.0167388916015625,
0.047698974609375,
-0.0038547515869140625,
0.045623779296875,
0.0225067138671875,
-0.02020263671875,
0.0035762786865234375,
0.001880645751953125,
-0.01067352294921875,
0.005870819091796875,
-0.01433563232421875,
-0.05181884765625,
0.0193634033203125,
-0.054412841796875,
0.04595947265625,
0.0283966064453125,
-0.03375244140625,
0.00803375244140625,
0.030120849609375,
-0.0096435546875,
-0.02191162109375,
-0.01520538330078125,
-0.02813720703125,
0.00759124755859375,
0.0119171142578125,
0.01849365234375,
0.00904083251953125,
0.0175628662109375,
0.03570556640625,
-0.0188446044921875,
0.068603515625,
0.0172576904296875,
-0.007778167724609375,
0.039581298828125,
-0.06597900390625,
0.036285400390625,
-0.04132080078125,
0.055511474609375,
0.068603515625,
0.00153350830078125,
-0.021331787109375,
0.008941650390625,
0.010772705078125,
0.003353118896484375,
0.025482177734375,
-0.0015583038330078125,
-0.003753662109375,
-0.060791015625,
0.00713348388671875,
0.039306640625,
0.076416015625,
0.03253173828125,
-0.0159454345703125,
0.037933349609375,
0.044952392578125,
-0.0616455078125,
-0.136962890625,
0.04400634765625,
-0.04412841796875,
-0.0203704833984375,
-0.0307769775390625,
-0.0297088623046875,
0.00594329833984375,
-0.015655517578125,
-0.0244598388671875,
0.0034542083740234375,
0.003971099853515625,
-0.07940673828125,
-0.0369873046875,
-0.07989501953125,
-0.0008807182312011719,
-0.0188751220703125,
0.036834716796875,
0.0126953125,
0.02447509765625,
0.00698089599609375,
-0.031646728515625,
0.03387451171875,
0.0278472900390625,
-0.03564453125,
-0.00818634033203125,
0.005451202392578125,
-0.02783203125,
-0.017913818359375,
-0.0096435546875,
0.0223388671875,
0.0147705078125,
-0.00652313232421875,
0.0128936767578125,
0.0134735107421875,
0.06805419921875,
0.039276123046875,
-0.020782470703125,
-0.0068511962890625,
0.11395263671875,
0.0217132568359375,
0.026092529296875,
-0.0270233154296875,
-0.01506805419921875,
-0.056884765625,
0.007671356201171875,
0.031280517578125,
0.0220947265625,
-0.001689910888671875,
0.006999969482421875,
0.049407958984375,
0.023834228515625,
-0.0122833251953125,
-0.037872314453125,
0.06591796875,
0.03717041015625,
0.0723876953125,
-0.02227783203125,
0.0038051605224609375,
-0.01169586181640625,
0.01367950439453125,
0.005275726318359375,
0.0364990234375,
0.007415771484375,
-0.0054779052734375,
-0.0555419921875,
-0.01168060302734375,
0.0433349609375,
0.035064697265625,
0.042694091796875,
-0.005191802978515625,
-0.0570068359375,
-0.01024627685546875,
0.07000732421875,
-0.051300048828125,
-0.034759521484375,
-0.003757476806640625,
0.0222930908203125,
-0.0233917236328125,
-0.016357421875,
-0.01030731201171875,
-0.0117950439453125,
-0.0633544921875,
0.0087890625,
-0.02490234375,
-0.0181121826171875,
0.0036773681640625,
-0.008270263671875,
-0.0281829833984375,
-0.03594970703125,
0.0413818359375,
-0.033905029296875,
0.055145263671875,
0.0081939697265625,
0.023956298828125,
0.00272369384765625,
-0.03997802734375,
-0.0205230712890625,
-0.11279296875,
-0.01406097412109375,
0.0177154541015625,
0.0665283203125,
-0.0273284912109375,
0.01605224609375,
-0.0360107421875,
0.044677734375,
0.01006317138671875,
0.0199432373046875,
0.0058135986328125,
-0.007030487060546875,
-0.004638671875,
0.0219268798828125,
0.0029773712158203125,
-0.01261138916015625,
-0.018890380859375,
-0.01184844970703125,
0.021392822265625,
0.0325927734375,
-0.03656005859375,
-0.01418304443359375,
-0.035186767578125,
-0.0085906982421875,
-0.015411376953125,
-0.0123443603515625,
0.0208740234375,
0.0277862548828125,
-0.016876220703125,
0.00807952880859375,
-0.0296783447265625,
-0.042144775390625,
0.08331298828125,
0.014617919921875,
0.007068634033203125,
-0.0015316009521484375,
0.09649658203125,
-0.0006575584411621094,
-0.044403076171875,
-0.06585693359375,
-0.039825439453125,
0.0240020751953125,
-0.0218048095703125,
0.058685302734375,
0.031341552734375,
-0.02545166015625,
0.06915283203125,
0.0033054351806640625,
-0.0018301010131835938,
0.016387939453125,
0.011627197265625,
0.003803253173828125,
-0.020263671875,
0.01262664794921875,
-0.0101470947265625,
-0.01263427734375,
0.06298828125,
-0.00782012939453125,
-0.0176544189453125,
-0.00803375244140625,
0.041107177734375,
-0.0236968994140625,
-0.0094146728515625,
-0.038299560546875,
-0.023529052734375,
0.00859832763671875,
-0.0018310546875,
0.0240478515625,
0.004650115966796875,
0.01012420654296875,
-0.00711822509765625,
0.01491546630859375,
-0.0010738372802734375,
0.02679443359375,
0.06304931640625,
0.0014944076538085938,
0.0552978515625,
0.0004818439483642578,
-0.01314544677734375,
-0.034942626953125,
-0.006824493408203125,
0.053375244140625,
0.01355743408203125,
-0.0172271728515625,
0.00791168212890625,
-0.0241546630859375,
0.0030059814453125,
0.007793426513671875,
0.03369140625,
0.027099609375,
0.048492431640625,
0.023895263671875,
0.0016384124755859375,
-0.0009560585021972656,
0.03326416015625,
-0.0178985595703125,
0.0203704833984375,
0.007747650146484375,
-0.00418853759765625,
-0.00325775146484375,
0.0816650390625,
-0.0236358642578125,
0.05694580078125,
-0.0275726318359375,
0.06707763671875,
0.0540771484375,
0.0174102783203125,
0.0013322830200195312,
-0.0027980804443359375,
0.0082550048828125,
0.01373291015625,
0.01218414306640625,
-0.046630859375,
-0.0245819091796875,
0.032012939453125,
0.04095458984375,
-0.01067352294921875,
-0.0104827880859375,
0.0161285400390625,
-0.000885009765625,
-0.033935546875,
0.04229736328125,
0.04046630859375,
-0.01271820068359375,
-0.04498291015625,
-0.022247314453125,
0.03277587890625,
0.02874755859375,
0.00004225969314575195,
-0.04522705078125,
-0.03497314453125,
-0.00852203369140625,
-0.037200927734375,
0.010467529296875,
-0.0020294189453125,
-0.013946533203125,
0.0117340087890625,
-0.005352020263671875,
-0.01157379150390625,
0.01114654541015625,
-0.0174560546875,
-0.0114898681640625,
-0.007411956787109375,
0.044525146484375,
-0.0130462646484375,
0.06085205078125,
-0.0283203125,
-0.03192138671875,
0.0122222900390625,
-0.01355743408203125,
0.08013916015625,
0.04638671875,
-0.0196990966796875,
0.00460052490234375,
-0.038116455078125,
-0.0148162841796875,
-0.01873779296875,
-0.0391845703125,
-0.0321044921875,
-0.0189666748046875,
-0.007564544677734375,
0.0183258056640625,
-0.013580322265625,
-0.00103759765625,
-0.033233642578125,
0.00731658935546875,
-0.0033969879150390625,
0.0242919921875,
-0.0093231201171875,
0.053863525390625,
-0.0161590576171875,
0.037078857421875,
-0.0018978118896484375,
0.007358551025390625,
-0.0247955322265625,
-0.0178680419921875,
0.00455474853515625,
-0.068603515625,
-0.0236053466796875,
-0.01015472412109375,
-0.021331787109375,
0.0230865478515625,
0.0256805419921875,
-0.0021457672119140625,
0.041748046875,
-0.015625,
-0.0118255615234375,
-0.0012149810791015625,
0.0018978118896484375,
-0.0246124267578125,
0.037689208984375,
0.053619384765625,
-0.038665771484375,
-0.056121826171875,
0.0081939697265625,
0.022125244140625,
-0.0225830078125,
-0.0107421875,
-0.042816162109375,
0.01393890380859375,
-0.016845703125,
0.0302886962890625,
0.047943115234375,
0.02532958984375,
0.031219482421875,
0.01371002197265625,
0.0173797607421875,
-0.00701141357421875,
-0.0091552734375,
0.0084075927734375,
0.01253509521484375,
0.07177734375,
-0.004802703857421875,
-0.0269622802734375,
0.03961181640625,
-0.053619384765625,
-0.007022857666015625,
-0.00919342041015625,
0.033203125,
0.0172576904296875,
-0.004207611083984375,
0.0159454345703125,
-0.0042724609375,
0.0116729736328125,
0.00485992431640625,
0.0175018310546875,
-0.030242919921875,
0.012481689453125,
0.004039764404296875,
-0.0186309814453125,
-0.01702880859375,
-0.013397216796875,
0.0169525146484375,
-0.04345703125,
0.058746337890625,
0.01195526123046875,
-0.059234619140625,
0.00647735595703125,
0.042694091796875,
-0.0196685791015625,
-0.033294677734375,
0.0012941360473632812,
0.01468658447265625,
-0.00942230224609375,
-0.0916748046875,
0.036529541015625,
-0.005527496337890625,
-0.002231597900390625,
0.016357421875,
0.02911376953125,
0.016204833984375,
0.058380126953125,
0.01358795166015625,
0.0129547119140625,
0.037872314453125,
-0.0255279541015625,
-0.056976318359375,
-0.0037899017333984375,
-0.022247314453125,
0.0733642578125,
-0.025421142578125,
0.0330810546875,
-0.0243072509765625,
0.0321044921875,
-0.00989532470703125,
-0.01806640625,
-0.002635955810546875,
0.003818511962890625,
-0.01407623291015625,
0.02911376953125,
0.06402587890625,
0.005706787109375,
0.007198333740234375,
-0.01366424560546875,
-0.031890869140625,
-0.016265869140625,
-0.01092529296875,
-0.05072021484375,
-0.0028820037841796875,
-0.01558685302734375,
-0.0254364013671875,
0.062255859375,
-0.0226593017578125,
-0.0251922607421875,
0.0241851806640625,
0.03436279296875,
-0.0217132568359375,
0.0138092041015625,
-0.0311126708984375,
0.040740966796875,
-0.035675048828125,
0.05084228515625,
-0.05084228515625,
-0.002117156982421875,
0.023956298828125,
0.0457763671875,
0.0443115234375,
-0.0096282958984375,
-0.00949859619140625,
-0.0146331787109375,
0.056549072265625,
0.060638427734375,
0.0103302001953125,
0.011322021484375,
0.01085662841796875,
0.074951171875,
0.079833984375,
-0.043975830078125,
0.044403076171875,
-0.00563812255859375,
-0.0021190643310546875,
0.0266876220703125,
0.017425537109375,
0.01511383056640625,
0.019134521484375,
-0.00643157958984375,
-0.0005474090576171875,
0.00606536865234375,
-0.0003342628479003906,
0.0064697265625,
-0.004741668701171875,
0.0400390625,
0.0269775390625,
-0.0545654296875,
-0.02374267578125,
-0.04473876953125,
0.041015625,
0.0238800048828125,
0.017852783203125,
0.037933349609375,
0.019439697265625,
0.0634765625,
-0.0215301513671875,
0.0086517333984375,
-0.00870513916015625,
-0.0071563720703125,
0.0499267578125,
0.0121307373046875,
0.0061798095703125,
-0.0704345703125,
0.0004544258117675781,
0.05767822265625,
0.076416015625,
-0.0633544921875,
-0.0122222900390625,
0.017852783203125,
0.0172576904296875,
-0.004852294921875,
-0.026885986328125,
-0.0064239501953125,
0.0367431640625,
0.0577392578125,
-0.031768798828125,
0.0161285400390625,
0.03802490234375,
0.00289154052734375,
-0.00872039794921875,
-0.025665283203125,
-0.01255035400390625,
0.02874755859375,
-0.0226287841796875,
0.004638671875,
0.02105712890625,
0.0750732421875,
0.0347900390625,
0.0183258056640625,
-0.06591796875,
-0.0270538330078125,
-0.010528564453125,
0.02337646484375,
0.0085601806640625,
0.0087432861328125,
-0.033111572265625,
-0.038055419921875,
0.00876617431640625,
0.042449951171875,
0.0280914306640625,
0.0017614364624023438,
0.04156494140625,
0.002765655517578125,
-0.03759765625,
-0.0023345947265625,
0.001491546630859375,
-0.0304107666015625,
-0.02520751953125,
0.0232391357421875,
-0.01507568359375,
0.0404052734375,
-0.007450103759765625,
0.0113067626953125,
0.058135986328125,
0.00995635986328125,
0.0279693603515625,
0.0027217864990234375,
0.0066070556640625,
-0.02166748046875,
-0.0018568038940429688,
-0.0128631591796875,
0.0072479248046875,
0.01534271240234375,
-0.08209228515625,
-0.01076507568359375,
-0.00807952880859375,
-0.09356689453125,
0.0210113525390625,
0.046051025390625,
-0.024749755859375,
0.00415802001953125,
0.0083160400390625,
0.007266998291015625,
0.0108489990234375,
0.0032405853271484375,
-0.0008797645568847656,
0.0232696533203125,
0.0380859375,
0.00901031494140625,
-0.05023193359375,
-0.0228118896484375,
0.019500732421875,
0.01114654541015625,
-0.005367279052734375,
-0.004425048828125,
0.009063720703125,
0.005779266357421875,
-0.005931854248046875,
0.0214385986328125,
-0.0007638931274414062,
-0.007572174072265625,
0.040740966796875,
0.0193634033203125,
0.008056640625,
-0.02899169921875,
0.0307769775390625,
0.0027713775634765625,
0.0302886962890625,
-0.01445770263671875,
-0.007080078125,
-0.057464599609375,
0.032257080078125,
0.0015869140625,
0.0241241455078125,
-0.025390625,
0.002140045166015625,
-0.046966552734375,
-0.0301971435546875,
0.065673828125,
0.025390625,
0.004413604736328125,
-0.0007882118225097656,
-0.007633209228515625,
-0.00247955322265625,
0.03179931640625,
0.00626373291015625,
0.034423828125,
0.0257720947265625,
-0.0311737060546875,
0.035675048828125,
-0.024139404296875,
-0.0188751220703125,
0.00443267822265625,
0.005496978759765625,
-0.02349853515625,
-0.01422119140625,
0.0137176513671875,
-0.02276611328125,
0.036102294921875,
0.051483154296875,
0.0014209747314453125,
0.028289794921875,
-0.00325775146484375,
-0.0233154296875,
-0.023101806640625,
-0.011077880859375,
-0.041107177734375,
-0.044281005859375,
-0.01117706298828125,
0.01317596435546875,
-0.017608642578125,
-0.0276641845703125,
-0.021270751953125,
0.00021374225616455078,
0.00315093994140625,
-0.00411224365234375,
-0.0160980224609375,
0.0124053955078125,
-0.0256500244140625,
0.006130218505859375,
-0.0238800048828125,
-0.0192718505859375,
0.0288238525390625,
0.0222930908203125,
-0.0177764892578125,
0.0004673004150390625,
-0.0002486705780029297,
0.006649017333984375,
0.0055389404296875,
-0.021728515625,
-0.0130157470703125,
-0.0017070770263671875,
-0.061065673828125,
0.0007023811340332031,
-0.0035610198974609375,
0.026580810546875,
0.06256103515625,
-0.0164794921875,
0.040924072265625,
0.0170440673828125,
-0.032470703125,
-0.07269287109375,
0.00418853759765625,
-0.053131103515625,
-0.002292633056640625,
-0.003932952880859375,
0.008575439453125,
0.021942138671875,
-0.0237579345703125,
-0.06884765625,
0.07537841796875,
-0.0279083251953125,
-0.021240234375,
-0.08221435546875,
0.021728515625,
0.030487060546875,
-0.03082275390625,
-0.027130126953125,
-0.0205230712890625,
-0.054107666015625,
0.01343536376953125,
-0.0006918907165527344,
0.00913238525390625,
0.0297393798828125,
0.006114959716796875,
-0.03289794921875,
0.0006299018859863281,
-0.016693115234375,
-0.029815673828125,
0.04052734375,
-0.0269775390625,
0.0213165283203125,
0.0233154296875,
-0.052154541015625,
-0.01358795166015625,
-0.048980712890625,
-0.0161590576171875,
-0.02178955078125,
-0.021453857421875,
-0.01140594482421875,
0.020721435546875,
0.051910400390625,
0.0623779296875,
0.0178070068359375,
-0.05108642578125,
0.009857177734375,
-0.0250701904296875,
-0.01165008544921875,
0.009552001953125,
0.00482177734375,
-0.020965576171875,
-0.0002294778823852539,
0.01413726806640625,
-0.0046844482421875,
-0.030487060546875,
-0.0031890869140625,
-0.0261688232421875,
-0.029022216796875,
-0.02392578125,
-0.01049041748046875,
0.01251983642578125,
0.0002903938293457031,
0.05224609375,
-0.0472412109375,
-0.0196533203125,
-0.0118408203125,
0.02667236328125,
-0.003337860107421875,
-0.04327392578125,
-0.0389404296875,
-0.01407623291015625,
0.048309326171875,
0.020843505859375,
0.01403045654296875,
-0.0309600830078125,
0.0229034423828125,
0.0251922607421875,
-0.035858154296875,
0.00299072265625,
0.032470703125,
-0.0196533203125,
-0.040283203125,
0.0265960693359375,
0.01447296142578125,
0.060791015625,
0.01531982421875,
0.01355743408203125,
0.0125579833984375,
0.038970947265625,
0.0032215118408203125,
-0.037872314453125,
0.03887939453125,
-0.05126953125,
-0.004150390625,
-0.011138916015625,
-0.04058837890625,
-0.026702880859375,
0.0076446533203125,
0.035980224609375,
-0.036224365234375,
0.01430511474609375
] |
8baf870393c1b0a844644542fa78051bdaa8db0b
|
Wordpress Stackexchange
Q: How to enqueue scripts on custom post add/edit pages? I'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this:
if (is_admin()){
wp_enqueue_script( 'my-script' );
}
But this loads it in every admin page, I'm assuming I need to hook it to a function but I hvae no idea what it'd be.
Thanks in advance!
A: You can do it like this (put in your functions.php) :
function add_admin_scripts( $hook ) {
global $post;
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
if ( 'recipes' === $post->post_type ) {
wp_enqueue_script( 'myscript', get_stylesheet_directory_uri().'/js/myscript.js' );
}
}
}
add_action( 'admin_enqueue_scripts', 'add_admin_scripts', 10, 1 );
|
Q: How to enqueue scripts on custom post add/edit pages? I'm trying to enqueue a JS script only when someone is adding or editing a custom post type I created called "recipes". Currently the script works ok when I do this:
if (is_admin()){
wp_enqueue_script( 'my-script' );
}
But this loads it in every admin page, I'm assuming I need to hook it to a function but I hvae no idea what it'd be.
Thanks in advance!
A: You can do it like this (put in your functions.php) :
function add_admin_scripts( $hook ) {
global $post;
if ( $hook == 'post-new.php' || $hook == 'post.php' ) {
if ( 'recipes' === $post->post_type ) {
wp_enqueue_script( 'myscript', get_stylesheet_directory_uri().'/js/myscript.js' );
}
}
}
add_action( 'admin_enqueue_scripts', 'add_admin_scripts', 10, 1 );
A: Rootstheme (which is based on Twitter Bootstrap) has a really elegant way of loading scripts depending on the page/post type as seen in the roots_scripts function which can be seen here on github.
Basically register all your scripts and styles then have conditional statements that wrap your wp_enqueue_script or wp_enqueue_style statements.
A: There's a hook for that, and it's dead-simple to use. See this tutorial for an example implementation.
Edit
Justin moved his tutorials from DevPress to his personal site. Here's the updated link for the tutorial.
|
wordpress
|
{
"language": "en",
"length": 214,
"provenance": "stackexchange_00019.jsonl.gz:411303",
"question_score": "27",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22951"
}
|
[
0.03753662109375,
0.0004856586456298828,
-0.004817962646484375,
-0.0261993408203125,
0.00843048095703125,
-0.035736083984375,
0.0299835205078125,
-0.01519775390625,
-0.0673828125,
0.0015363693237304688,
-0.00640106201171875,
0.0306854248046875,
-0.05462646484375,
-0.02301025390625,
0.0308837890625,
-0.047760009765625,
0.052276611328125,
-0.026275634765625,
0.0235595703125,
-0.0027599334716796875,
0.0294952392578125,
0.03033447265625,
0.00443267822265625,
0.07940673828125,
-0.00943756103515625,
-0.005184173583984375,
0.09002685546875,
0.0159454345703125,
-0.0069122314453125,
-0.005611419677734375,
0.0196075439453125,
-0.03436279296875,
0.0189971923828125,
0.022674560546875,
-0.0284576416015625,
0.0015916824340820312,
0.0023174285888671875,
0.0059356689453125,
0.004581451416015625,
0.032379150390625,
0.02252197265625,
-0.00994873046875,
0.0188140869140625,
0.05303955078125,
-0.01146697998046875,
-0.031951904296875,
0.00742340087890625,
-0.0394287109375,
-0.017364501953125,
0.01605224609375,
-0.0070648193359375,
-0.0243377685546875,
0.0028324127197265625,
0.0202789306640625,
0.00783538818359375,
0.01155853271484375,
-0.01094818115234375,
-0.0197601318359375,
0.0224609375,
0.034454345703125,
-0.0167083740234375,
-0.00878143310546875,
0.00881195068359375,
-0.035125732421875,
-0.019866943359375,
0.00469207763671875,
-0.0056915283203125,
0.004901885986328125,
-0.06500244140625,
-0.040069580078125,
0.028564453125,
-0.033660888671875,
0.002063751220703125,
-0.01788330078125,
-0.01155853271484375,
-0.0009202957153320312,
0.0082550048828125,
0.005496978759765625,
-0.005245208740234375,
0.008697509765625,
0.0112762451171875,
-0.00507354736328125,
0.0102386474609375,
-0.022674560546875,
0.0011081695556640625,
-0.00832366943359375,
-0.01270294189453125,
0.003604888916015625,
-0.0216522216796875,
-0.01209259033203125,
-0.025543212890625,
-0.045196533203125,
-0.0028285980224609375,
0.0000775456428527832,
-0.0059814453125,
-0.01332855224609375,
0.07977294921875,
0.065185546875,
0.026947021484375,
0.0299072265625,
0.0279998779296875,
-0.07806396484375,
0.088623046875,
-0.05230712890625,
-0.00421142578125,
0.045623779296875,
-0.0011510848999023438,
-0.00731658935546875,
0.0122833251953125,
0.005313873291015625,
0.0031795501708984375,
-0.03314208984375,
0.03704833984375,
0.0234375,
-0.0197296142578125,
-0.04254150390625,
-0.0109100341796875,
0.017730712890625,
-0.011962890625,
0.0242919921875,
-0.0017919540405273438,
0.0092926025390625,
-0.0091705322265625,
-0.034942626953125,
-0.002246856689453125,
-0.029998779296875,
-0.0220794677734375,
-0.0006041526794433594,
-0.01270294189453125,
0.027099609375,
-0.031402587890625,
-0.00604248046875,
0.08453369140625,
0.06365966796875,
0.034515380859375,
-0.0333251953125,
0.0222320556640625,
-0.038299560546875,
-0.0264129638671875,
0.003826141357421875,
-0.008148193359375,
-0.0194854736328125,
-0.0019483566284179688,
-0.048492431640625,
-0.040618896484375,
0.0198211669921875,
0.0007452964782714844,
0.00168609619140625,
0.00867462158203125,
-0.01380157470703125,
-0.04779052734375,
-0.0261993408203125,
0.0400390625,
0.0090484619140625,
-0.0181427001953125,
0.004428863525390625,
0.0296630859375,
-0.0110626220703125,
-0.03228759765625,
-0.0131683349609375,
-0.0257110595703125,
0.01393890380859375,
0.024444580078125,
-0.0242462158203125,
-0.03564453125,
-0.0230560302734375,
0.00504302978515625,
0.0034961700439453125,
0.021728515625,
0.007415771484375,
-0.01018524169921875,
-0.033966064453125,
0.01548004150390625,
-0.01702880859375,
-0.02020263671875,
0.0137176513671875,
0.0109405517578125,
0.01479339599609375,
0.034423828125,
0.038848876953125,
0.00675201416015625,
-0.026580810546875,
0.054229736328125,
-0.033447265625,
-0.04736328125,
0.002105712890625,
0.02685546875,
0.05328369140625,
0.00939178466796875,
0.0244140625,
0.07415771484375,
0.00951385498046875,
-0.0391845703125,
0.0164794921875,
-0.0014057159423828125,
-0.0125579833984375,
-0.01398468017578125,
-0.00843048095703125,
-0.0114898681640625,
0.0038928985595703125,
-0.0013370513916015625,
0.01016998291015625,
0.02166748046875,
-0.00901031494140625,
-0.035919189453125,
0.0247955322265625,
-0.032684326171875,
0.053070068359375,
0.016326904296875,
0.002849578857421875,
-0.025543212890625,
-0.0109100341796875,
0.020904541015625,
-0.04803466796875,
-0.033355712890625,
0.0258026123046875,
-0.0183563232421875,
0.09515380859375,
-0.011322021484375,
0.050567626953125,
0.005878448486328125,
-0.08367919921875,
0.0256195068359375,
-0.01560211181640625,
0.0264739990234375,
-0.002170562744140625,
-0.018829345703125,
-0.0116119384765625,
0.005397796630859375,
-0.0018377304077148438,
-0.01546478271484375,
0.064697265625,
0.02801513671875,
0.03778076171875,
-0.0155029296875,
-0.0155792236328125,
-0.01334381103515625,
-0.0325927734375,
0.014404296875,
0.0421142578125,
0.0301513671875,
0.06719970703125,
0.003070831298828125,
0.0078125,
0.036163330078125,
-0.04083251953125,
0.021026611328125,
-0.0217437744140625,
0.00012433528900146484,
0.03570556640625,
-0.0222320556640625,
0.022247314453125,
0.02642822265625,
-0.033966064453125,
-0.007091522216796875,
0.061126708984375,
0.005573272705078125,
0.0305023193359375,
0.0102081298828125,
-0.009185791015625,
-0.007068634033203125,
0.01548004150390625,
0.004360198974609375,
-0.00832366943359375,
0.0550537109375,
0.006740570068359375,
0.039306640625,
0.0236663818359375,
-0.043304443359375,
0.00397491455078125,
0.020782470703125,
0.0149688720703125,
0.001232147216796875,
-0.0093994140625,
0.04486083984375,
-0.030548095703125,
-0.044281005859375,
0.001140594482421875,
0.047210693359375,
-0.010467529296875,
0.020477294921875,
0.0279388427734375,
-0.036163330078125,
-0.0116424560546875,
0.01213836669921875,
-0.0670166015625,
-0.0090179443359375,
0.034423828125,
0.03643798828125,
-0.00557708740234375,
0.034759521484375,
0.00771331787109375,
0.0281982421875,
-0.0020751953125,
0.0423583984375,
-0.042510986328125,
0.06610107421875,
-0.0095672607421875,
0.032958984375,
-0.0025463104248046875,
0.043853759765625,
0.057281494140625,
-0.01557159423828125,
0.026397705078125,
-0.0020008087158203125,
0.0191650390625,
-0.007602691650390625,
0.023712158203125,
0.01788330078125,
-0.026641845703125,
-0.01385498046875,
0.0032520294189453125,
0.023345947265625,
0.06805419921875,
0.0008320808410644531,
-0.03564453125,
0.0149383544921875,
0.03369140625,
-0.0655517578125,
-0.1192626953125,
-0.0069122314453125,
-0.048095703125,
0.0625,
-0.04437255859375,
-0.0016756057739257812,
-0.022735595703125,
-0.0206451416015625,
0.0253753662109375,
-0.02606201171875,
-0.00438690185546875,
-0.015411376953125,
-0.02191162109375,
-0.0374755859375,
0.02325439453125,
-0.0009660720825195312,
0.007007598876953125,
0.011077880859375,
0.032562255859375,
0.0022830963134765625,
-0.0567626953125,
0.0223846435546875,
-0.02777099609375,
-0.02618408203125,
0.0246429443359375,
0.05328369140625,
-0.08343505859375,
0.013702392578125,
-0.0137939453125,
-0.021209716796875,
0.0208740234375,
0.00859832763671875,
-0.01067352294921875,
-0.034332275390625,
-0.017333984375,
0.0023059844970703125,
-0.0064697265625,
0.024169921875,
0.00569915771484375,
0.0231475830078125,
-0.042724609375,
-0.0254058837890625,
0.014404296875,
-0.024627685546875,
0.003383636474609375,
0.00865936279296875,
-0.0163726806640625,
-0.0056610107421875,
0.035491943359375,
0.04644775390625,
0.0109405517578125,
-0.006107330322265625,
0.0225982666015625,
0.017578125,
0.00666046142578125,
0.03662109375,
-0.032928466796875,
0.059967041015625,
-0.0018405914306640625,
0.0297698974609375,
0.035858154296875,
0.0202789306640625,
0.0098876953125,
-0.0180816650390625,
-0.05108642578125,
-0.00849151611328125,
0.006397247314453125,
-0.0482177734375,
0.048736572265625,
-0.035064697265625,
0.00443267822265625,
-0.00279998779296875,
0.0703125,
-0.04193115234375,
0.0040740966796875,
-0.008636474609375,
0.011566162109375,
-0.049713134765625,
-0.0511474609375,
-0.045654296875,
0.00211334228515625,
-0.06689453125,
0.0218048095703125,
-0.031707763671875,
-0.00965118408203125,
-0.02777099609375,
0.0084686279296875,
-0.0469970703125,
-0.041961669921875,
0.052978515625,
-0.1041259765625,
0.0301361083984375,
0.036834716796875,
-0.0024929046630859375,
-0.0113677978515625,
-0.045867919921875,
-0.044189453125,
-0.072265625,
-0.0003592967987060547,
-0.0265655517578125,
0.058624267578125,
0.04144287109375,
-0.04925537109375,
-0.0008502006530761719,
0.0290069580078125,
-0.0019006729125976562,
0.00710296630859375,
0.006603240966796875,
0.0139923095703125,
-0.0211181640625,
-0.018402099609375,
0.0035381317138671875,
-0.050018310546875,
-0.005634307861328125,
0.006214141845703125,
-0.036376953125,
0.002410888671875,
-0.0185089111328125,
-0.0268402099609375,
0.038421630859375,
-0.04351806640625,
-0.04388427734375,
-0.0355224609375,
0.00461578369140625,
-0.01061248779296875,
-0.0105438232421875,
0.00766754150390625,
-0.0209197998046875,
-0.031829833984375,
0.0084381103515625,
-0.03759765625,
-0.00400543212890625,
0.01129150390625,
0.05706787109375,
0.035552978515625,
0.0005373954772949219,
0.0282440185546875,
0.05523681640625,
0.0220794677734375,
0.0063323974609375,
0.057647705078125,
0.013763427734375,
-0.00493621826171875,
0.045196533203125,
0.010284423828125,
-0.0287322998046875,
-0.01332855224609375,
0.09967041015625,
0.028045654296875,
0.028594970703125,
-0.043365478515625,
-0.006679534912109375,
-0.00507354736328125,
-0.0235137939453125,
-0.043121337890625,
0.00873565673828125,
-0.00970458984375,
0.0384521484375,
-0.0254974365234375,
0.0321044921875,
-0.046966552734375,
-0.04388427734375,
-0.002471923828125,
-0.0235137939453125,
0.033203125,
0.028411865234375,
-0.0119781494140625,
0.040985107421875,
0.04302978515625,
0.0142822265625,
-0.018096923828125,
-0.0016345977783203125,
-0.0247955322265625,
0.03863525390625,
-0.004638671875,
0.018157958984375,
-0.01029205322265625,
-0.0052947998046875,
0.00787353515625,
0.00621795654296875,
-0.0352783203125,
-0.038665771484375,
0.0139007568359375,
0.045654296875,
-0.0008649826049804688,
0.01548004150390625,
0.01393890380859375,
0.0293121337890625,
-0.00722503662109375,
-0.0135040283203125,
0.0235137939453125,
0.0277099609375,
-0.02630615234375,
0.0280914306640625,
0.020782470703125,
-0.0290985107421875,
-0.0238800048828125,
0.0243682861328125,
0.024200439453125,
-0.01432037353515625,
-0.007228851318359375,
0.057464599609375,
0.00653839111328125,
0.060394287109375,
0.01953125,
-0.0265655517578125,
-0.0003859996795654297,
0.03314208984375,
-0.036224365234375,
-0.025909423828125,
0.0304107666015625,
0.0190887451171875,
0.030029296875,
0.00762939453125,
-0.0276336669921875,
0.0195465087890625,
-0.0279998779296875,
-0.0401611328125,
0.0179443359375,
0.041748046875,
-0.00047516822814941406,
-0.0142364501953125,
-0.034515380859375,
-0.015655517578125,
0.042816162109375,
0.0101165771484375,
-0.003223419189453125,
0.007663726806640625,
0.0139007568359375,
-0.007495880126953125,
0.005115509033203125,
-0.0232086181640625,
-0.0190887451171875,
-0.035552978515625,
0.01271820068359375,
0.0173492431640625,
-0.03814697265625,
-0.06494140625,
-0.0037593841552734375,
-0.016082763671875,
0.0256195068359375,
0.0010662078857421875,
-0.007068634033203125,
-0.01195526123046875,
-0.011810302734375,
0.0221710205078125,
0.01042938232421875,
0.0232086181640625,
-0.023223876953125,
-0.006053924560546875,
-0.0408935546875,
-0.056915283203125,
-0.022216796875,
-0.0394287109375,
-0.04656982421875,
0.005764007568359375,
0.015594482421875,
-0.015625,
0.0142059326171875,
-0.0303955078125,
-0.00684356689453125,
0.00537872314453125,
0.00875091552734375,
-0.0081329345703125,
0.031890869140625,
-0.045196533203125,
0.0841064453125,
0.0264892578125,
0.04351806640625,
0.002368927001953125,
0.042327880859375,
0.0270538330078125,
-0.01421356201171875,
-0.00978851318359375,
-0.07257080078125,
0.025054931640625,
0.006214141845703125,
-0.0024166107177734375,
0.00431060791015625,
0.0010814666748046875,
0.00850677490234375,
0.033233642578125,
0.0287933349609375,
0.01541900634765625,
-0.01103973388671875,
-0.04296875,
0.039306640625,
0.01406097412109375,
0.052978515625,
-0.00400543212890625,
0.040252685546875,
-0.003108978271484375,
-0.01045989990234375,
0.0241546630859375,
-0.0221099853515625,
0.028411865234375,
-0.0026493072509765625,
-0.028045654296875,
0.047943115234375,
0.037200927734375,
-0.0057830810546875,
0.019683837890625,
0.0008873939514160156,
0.0127410888671875,
0.001422882080078125,
-0.0126495361328125,
0.0025806427001953125,
-0.03155517578125,
-0.01189422607421875,
-0.0298004150390625,
0.01464080810546875,
-0.01116943359375,
0.004421234130859375,
-0.004009246826171875,
0.060211181640625,
0.0650634765625,
-0.0848388671875,
0.0038814544677734375,
0.005290985107421875,
-0.0224456787109375,
-0.025390625,
-0.0239105224609375,
0.028656005859375,
0.020355224609375,
0.051300048828125,
0.0234375,
-0.00920867919921875,
0.041900634765625,
-0.023895263671875,
-0.028289794921875,
-0.0262451171875,
-0.004795074462890625,
0.01397705078125,
0.0233154296875,
0.01983642578125,
-0.004383087158203125,
0.01214599609375,
-0.0032501220703125,
-0.0114288330078125,
0.0210113525390625,
-0.0209197998046875,
-0.044952392578125,
0.0032062530517578125,
-0.06396484375,
-0.002712249755859375,
0.00482177734375,
0.00852203369140625,
0.0189666748046875,
0.04168701171875,
-0.015411376953125,
0.004779815673828125,
0.0286712646484375,
-0.01450347900390625,
-0.00792694091796875,
-0.042755126953125,
-0.002643585205078125,
0.0251007080078125,
-0.043182373046875,
0.0182647705078125,
-0.0159759521484375,
-0.020751953125,
-0.01031494140625,
-0.040435791015625,
0.02911376953125,
-0.0163421630859375,
-0.010589599609375,
0.0203857421875,
0.00439453125,
-0.004253387451171875,
-0.019744873046875,
0.0362548828125,
-0.06756591796875,
-0.04693603515625,
0.01202392578125,
-0.07745361328125,
-0.041473388671875,
-0.033599853515625,
-0.03411865234375,
0.10888671875,
-0.0017261505126953125,
-0.02880859375,
0.010955810546875,
0.054046630859375,
-0.0277252197265625,
0.0303802490234375,
-0.036102294921875,
0.042144775390625,
0.01097869873046875,
0.061676025390625,
-0.054779052734375,
-0.011962890625,
0.0180511474609375,
0.0394287109375,
0.001659393310546875,
0.01122283935546875,
0.001132965087890625,
-0.0185699462890625,
-0.0115203857421875,
0.055572509765625,
0.0164337158203125,
-0.0184783935546875,
0.00582122802734375,
0.0190277099609375,
0.01209259033203125,
0.003170013427734375,
0.036376953125,
-0.0309600830078125,
-0.044677734375,
0.025787353515625,
-0.00018012523651123047,
0.01042938232421875,
-0.0087127685546875,
-0.004085540771484375,
-0.0206298828125,
0.0030841827392578125,
0.01096343994140625,
-0.0003409385681152344,
-0.037841796875,
0.046234130859375,
0.006107330322265625,
0.0134124755859375,
-0.07916259765625,
-0.006122589111328125,
0.0064849853515625,
0.0206298828125,
0.0094451904296875,
0.0000661015510559082,
0.0166015625,
-0.0308074951171875,
-0.007785797119140625,
-0.001049041748046875,
0.038848876953125,
-0.042999267578125,
0.01284027099609375,
0.0233154296875,
0.031341552734375,
-0.01450347900390625,
-0.0131988525390625,
0.00934600830078125,
0.0172576904296875,
-0.020294189453125,
0.01861572265625,
0.0208282470703125,
0.04296875,
-0.01190948486328125,
-0.021484375,
-0.012359619140625,
0.002658843994140625,
0.051025390625,
0.01953125,
-0.0017147064208984375,
0.005645751953125,
-0.0169677734375,
0.00502777099609375,
0.0311279296875,
-0.0044403076171875,
0.040679931640625,
-0.0679931640625,
0.0286712646484375,
-0.002986907958984375,
0.0811767578125,
0.0537109375,
0.035003662109375,
-0.02447509765625,
-0.04559326171875,
0.01482391357421875,
0.01507568359375,
-0.013641357421875,
0.0013170242309570312,
-0.03265380859375,
-0.046661376953125,
-0.01039886474609375,
0.041595458984375,
0.01316070556640625,
0.01291656494140625,
0.0306243896484375,
-0.002338409423828125,
-0.036773681640625,
-0.00026416778564453125,
0.0309600830078125,
-0.027191162109375,
0.0206146240234375,
0.0245208740234375,
0.01910400390625,
0.0369873046875,
-0.01512908935546875,
-0.036651611328125,
0.07012939453125,
0.04144287109375,
-0.044464111328125,
0.0199127197265625,
0.0017137527465820312,
-0.055816650390625,
0.039703369140625,
0.033905029296875,
0.10711669921875,
0.003383636474609375,
-0.00919342041015625,
-0.00881195068359375,
-0.0146942138671875,
-0.0323486328125,
0.0026721954345703125,
0.032379150390625,
-0.013763427734375,
0.025909423828125,
0.05474853515625,
-0.0175933837890625,
-0.0001995563507080078,
0.0496826171875,
0.0006918907165527344,
-0.02630615234375,
0.044921875,
0.00513458251953125,
-0.0190277099609375,
-0.02130126953125,
-0.004573822021484375,
0.04364013671875,
0.006378173828125,
0.00664520263671875,
-0.019134521484375,
0.002826690673828125,
0.054840087890625,
0.0176849365234375,
0.01055908203125,
0.0127410888671875,
0.0087432861328125,
-0.0215911865234375,
0.029876708984375,
-0.016357421875,
-0.0287628173828125,
0.01812744140625,
0.0150299072265625,
0.00040841102600097656,
-0.00653076171875,
0.0050201416015625,
0.025787353515625,
0.0080108642578125,
-0.021636962890625,
-0.052764892578125,
-0.028411865234375,
-0.00952911376953125,
0.0007610321044921875,
-0.0158233642578125,
-0.043243408203125,
0.0160980224609375,
0.007686614990234375,
0.0103607177734375,
-0.03271484375,
-0.0028057098388671875,
-0.0016565322875976562,
-0.00732421875,
0.0290374755859375,
0.00934600830078125,
0.0141143798828125,
0.0208892822265625,
-0.002658843994140625,
0.0077972412109375,
0.0190887451171875,
0.005153656005859375,
0.0199737548828125,
-0.0243377685546875,
-0.00213623046875,
0.036376953125,
0.039825439453125,
0.00441741943359375,
0.016204833984375,
0.005207061767578125,
-0.03082275390625,
-0.0032138824462890625,
-0.0006074905395507812,
-0.03765869140625,
-0.01212310791015625,
0.01110076904296875,
0.018157958984375,
0.0181121826171875,
-0.040802001953125,
-0.055633544921875,
0.023284912109375,
0.01438140869140625,
-0.017333984375,
-0.06512451171875,
0.05059814453125,
-0.059844970703125,
0.059417724609375,
-0.0416259765625,
0.0177459716796875,
0.01287078857421875,
0.048858642578125,
-0.05242919921875,
-0.0239105224609375,
-0.011016845703125,
0.025787353515625,
-0.0203094482421875,
0.026611328125,
0.052764892578125,
-0.036529541015625,
-0.0178680419921875,
0.029205322265625,
0.0223388671875,
0.0799560546875,
-0.031219482421875,
0.00505828857421875,
0.01488494873046875,
0.022705078125,
-0.02880859375,
-0.07421875,
-0.00580596923828125,
-0.0181427001953125,
0.01381683349609375,
-0.0045623779296875,
0.031982421875,
0.055511474609375,
-0.01409149169921875,
-0.08673095703125,
0.05474853515625,
-0.0168609619140625,
-0.041595458984375,
-0.0721435546875,
0.0167236328125,
0.01763916015625,
-0.0052642822265625,
-0.034912109375,
-0.0362548828125,
-0.0450439453125,
0.03472900390625,
0.0005407333374023438,
0.003185272216796875,
0.058197021484375,
-0.0185699462890625,
-0.052703857421875,
-0.0287322998046875,
-0.02984619140625,
0.0011949539184570312,
0.0224609375,
-0.029327392578125,
0.052459716796875,
0.05804443359375,
-0.00691986083984375,
0.0024204254150390625,
0.0006799697875976562,
-0.06475830078125,
-0.01125335693359375,
-0.0079803466796875,
-0.062469482421875,
-0.0233612060546875,
0.1029052734375,
0.045440673828125,
0.0343017578125,
-0.026641845703125,
-0.004825592041015625,
-0.0242767333984375,
-0.01387786865234375,
-0.0043487548828125,
-0.006740570068359375,
-0.009613037109375,
0.020599365234375,
-0.009765625,
-0.01007080078125,
-0.022064208984375,
-0.02593994140625,
-0.043548583984375,
-0.01453399658203125,
0.0018672943115234375,
0.022491455078125,
-0.0172882080078125,
-0.0276947021484375,
0.11614990234375,
-0.052642822265625,
0.0280914306640625,
0.0066680908203125,
0.035675048828125,
0.06646728515625,
-0.0026302337646484375,
0.0012359619140625,
0.004848480224609375,
-0.052947998046875,
0.019439697265625,
-0.0169525146484375,
0.0367431640625,
-0.052520751953125,
-0.0195159912109375,
-0.0011224746704101562,
0.03143310546875,
-0.0017032623291015625,
0.03045654296875,
-0.00482940673828125,
0.0316162109375,
-0.0031948089599609375,
0.032379150390625,
-0.07159423828125,
-0.0295562744140625,
-0.037689208984375,
-0.005893707275390625,
0.00311279296875,
0.038116455078125,
0.08697509765625,
-0.0169677734375,
-0.0180511474609375,
0.005069732666015625,
-0.044891357421875,
-0.05609130859375,
0.0119171142578125,
-0.041839599609375,
-0.004383087158203125,
0.018280029296875
] |
cc8b233caa79bf9d2992ec612753d9ce0c20a11e
|
Wordpress Stackexchange
Q: How to programmatically add a user to a role? I want to programmatically add the current user to a role and also remove the current user from a role in a php page i created . am really stuck. thanks in advance
A: You can do that like this :
$my_user = new WP_User( $user_id );
$my_user->set_role( "editor" );
|
Q: How to programmatically add a user to a role? I want to programmatically add the current user to a role and also remove the current user from a role in a php page i created . am really stuck. thanks in advance
A: You can do that like this :
$my_user = new WP_User( $user_id );
$my_user->set_role( "editor" );
A: Just fleshing out the previous answer using an example with my code.
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
global $wpdb;
$prefix = $wpdb->prefix;
echo "<pre>";
$umeta=$prefix.'usermeta';
$u=$prefix.'users';
$sql ="select ID, display_name from $u where ID=1";
$result = $wpdb->get_results($sql, ARRAY_A);
print_r($result);
foreach($result as $value){
print_r($value);
$user_id = $value['ID'];
$my_user = new WP_User($user_id );
$my_user->remove_role( "Ladder" );
print_r($my_user);
}
?>
|
wordpress
|
{
"language": "en",
"length": 119,
"provenance": "stackexchange_00019.jsonl.gz:411307",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22962"
}
|
[
0.07769775390625,
-0.0059051513671875,
0.0009589195251464844,
-0.0296173095703125,
0.01922607421875,
-0.050689697265625,
0.07586669921875,
-0.0034847259521484375,
0.005420684814453125,
0.0308685302734375,
0.0146484375,
-0.01073455810546875,
0.0117034912109375,
-0.035308837890625,
-0.0158538818359375,
-0.0012493133544921875,
-0.0009245872497558594,
0.006488800048828125,
0.0036029815673828125,
-0.021575927734375,
-0.0144805908203125,
-0.01422119140625,
0.035064697265625,
0.01226043701171875,
0.00527191162109375,
0.0129547119140625,
0.0307159423828125,
-0.03948974609375,
0.00519561767578125,
-0.0150299072265625,
0.00798797607421875,
0.0195159912109375,
-0.008209228515625,
0.0307159423828125,
-0.0012693405151367188,
0.006168365478515625,
0.01279449462890625,
0.0010738372802734375,
0.03375244140625,
-0.01477813720703125,
-0.00982666015625,
0.039031982421875,
-0.0269927978515625,
0.025665283203125,
-0.050567626953125,
-0.07928466796875,
0.0035839080810546875,
-0.008026123046875,
-0.0010690689086914062,
-0.0210113525390625,
0.053009033203125,
-0.0010328292846679688,
0.06781005859375,
-0.032989501953125,
-0.0052032470703125,
0.0223846435546875,
-0.0018339157104492188,
-0.006641387939453125,
0.0447998046875,
-0.0005884170532226562,
-0.0298004150390625,
-0.027435302734375,
0.0312042236328125,
-0.035614013671875,
-0.00254058837890625,
0.006683349609375,
0.0209503173828125,
0.0232086181640625,
-0.04241943359375,
-0.0275115966796875,
0.0037860870361328125,
-0.0178375244140625,
-0.02386474609375,
-0.01212310791015625,
-0.021942138671875,
-0.006038665771484375,
0.010284423828125,
-0.049163818359375,
0.01226043701171875,
0.024810791015625,
0.0294647216796875,
0.013916015625,
0.01497650146484375,
-0.0213775634765625,
0.0018091201782226562,
-0.02239990234375,
-0.0018739700317382812,
-0.0110015869140625,
-0.01690673828125,
-0.0235137939453125,
-0.0139312744140625,
-0.0040130615234375,
-0.00626373291015625,
-0.0268096923828125,
-0.0386962890625,
-0.0198516845703125,
0.040679931640625,
0.067626953125,
0.00801849365234375,
-0.01010894775390625,
0.022674560546875,
-0.05303955078125,
0.0142974853515625,
-0.040496826171875,
-0.021240234375,
0.0244903564453125,
-0.0176849365234375,
-0.0162200927734375,
-0.006175994873046875,
0.031280517578125,
-0.0022449493408203125,
-0.04937744140625,
0.0235595703125,
0.000698089599609375,
-0.0084075927734375,
0.007476806640625,
-0.006816864013671875,
0.0226593017578125,
-0.0139007568359375,
0.022735595703125,
-0.04150390625,
0.002185821533203125,
-0.030303955078125,
0.00183868408203125,
-0.018829345703125,
-0.0265960693359375,
0.002666473388671875,
0.0116119384765625,
-0.0173492431640625,
0.013824462890625,
-0.03851318359375,
0.0187530517578125,
0.08447265625,
0.028564453125,
0.00634765625,
-0.0183258056640625,
0.0296630859375,
-0.057830810546875,
-0.015625,
0.022186279296875,
0.031829833984375,
-0.035003662109375,
-0.036346435546875,
0.0187225341796875,
0.0071868896484375,
0.042938232421875,
-0.0003123283386230469,
0.0006661415100097656,
0.034759521484375,
-0.00612640380859375,
-0.0267486572265625,
-0.040771484375,
-0.06378173828125,
0.0452880859375,
0.10601806640625,
0.03350830078125,
0.03668212890625,
-0.004444122314453125,
0.07421875,
0.04974365234375,
0.029876708984375,
0.009735107421875,
0.0377197265625,
-0.018402099609375,
-0.03216552734375,
-0.0200042724609375,
-0.0648193359375,
-0.0104217529296875,
0.0227203369140625,
-0.039703369140625,
0.01107025146484375,
-0.0172576904296875,
0.01480865478515625,
0.005924224853515625,
0.0143280029296875,
0.0290985107421875,
-0.04833984375,
0.0171356201171875,
0.034912109375,
-0.005794525146484375,
-0.0013294219970703125,
-0.0290374755859375,
0.00853729248046875,
0.0303955078125,
-0.0180816650390625,
-0.0084991455078125,
-0.0004017353057861328,
-0.008270263671875,
0.0084075927734375,
0.0183868408203125,
0.004669189453125,
0.048004150390625,
0.0057525634765625,
-0.03704833984375,
0.01311492919921875,
-0.045013427734375,
0.01258087158203125,
-0.0284576416015625,
-0.0099334716796875,
0.0288543701171875,
0.048583984375,
-0.0167388916015625,
0.0177764892578125,
-0.01421356201171875,
-0.06427001953125,
-0.00760650634765625,
-0.020721435546875,
0.01328277587890625,
-0.0015869140625,
-0.0290069580078125,
-0.0010824203491210938,
-0.041168212890625,
0.0222320556640625,
-0.0726318359375,
-0.050872802734375,
0.04327392578125,
-0.01145172119140625,
0.0282745361328125,
0.00844573974609375,
0.043487548828125,
0.00443267822265625,
-0.002109527587890625,
0.0001239776611328125,
-0.01219940185546875,
0.0423583984375,
-0.025390625,
-0.009857177734375,
-0.0212554931640625,
0.035614013671875,
-0.014312744140625,
0.00437164306640625,
0.00772857666015625,
0.0333251953125,
0.007495880126953125,
-0.0249481201171875,
-0.002101898193359375,
-0.0160675048828125,
-0.08892822265625,
-0.01206207275390625,
0.0692138671875,
0.040435791015625,
0.034088134765625,
0.023040771484375,
0.034027099609375,
0.031585693359375,
-0.02337646484375,
0.02899169921875,
-0.011688232421875,
0.0190277099609375,
0.0970458984375,
-0.0019254684448242188,
0.042449951171875,
-0.0004639625549316406,
-0.031768798828125,
-0.01373291015625,
0.06256103515625,
-0.0066375732421875,
0.050872802734375,
-0.032257080078125,
-0.0098876953125,
-0.001194000244140625,
-0.053802490234375,
-0.00278472900390625,
-0.03167724609375,
0.0012445449829101562,
-0.007293701171875,
0.01410675048828125,
0.0092010498046875,
0.00019228458404541016,
-0.02874755859375,
0.021087646484375,
-0.0159759521484375,
0.0089111328125,
-0.0017232894897460938,
-0.0241241455078125,
-0.0374755859375,
-0.05908203125,
0.023773193359375,
0.03228759765625,
-0.0213165283203125,
-0.0096893310546875,
-0.01503753662109375,
0.01528167724609375,
0.00774383544921875,
0.022247314453125,
-0.0195770263671875,
0.0224151611328125,
0.007015228271484375,
0.0234222412109375,
-0.01506805419921875,
0.040435791015625,
-0.01346588134765625,
-0.031524658203125,
0.0380859375,
0.0033321380615234375,
-0.034637451171875,
0.0452880859375,
-0.0041351318359375,
0.01387786865234375,
-0.01125335693359375,
-0.039886474609375,
0.0308837890625,
0.01277923583984375,
-0.019439697265625,
0.0081329345703125,
-0.041534423828125,
-0.0236968994140625,
0.0369873046875,
0.023193359375,
0.00029397010803222656,
-0.03155517578125,
0.06256103515625,
0.0204620361328125,
-0.00482177734375,
0.0312042236328125,
-0.013153076171875,
0.0099029541015625,
0.0225830078125,
-0.04156494140625,
-0.05987548828125,
-0.016571044921875,
-0.042816162109375,
0.005588531494140625,
0.01303863525390625,
-0.0302734375,
-0.0060577392578125,
0.05419921875,
0.006328582763671875,
-0.0020275115966796875,
-0.006534576416015625,
-0.0054168701171875,
-0.007427215576171875,
-0.0234375,
0.0266265869140625,
0.0019969940185546875,
0.003314971923828125,
0.00241851806640625,
0.05767822265625,
0.01015472412109375,
-0.01123809814453125,
-0.0178985595703125,
-0.0161590576171875,
-0.01525115966796875,
-0.0224609375,
0.012786865234375,
-0.0134429931640625,
0.034027099609375,
-0.0008373260498046875,
-0.00902557373046875,
0.035400390625,
-0.024688720703125,
-0.01271820068359375,
-0.00592803955078125,
-0.017486572265625,
-0.0047149658203125,
-0.0017070770263671875,
0.00611114501953125,
0.026824951171875,
0.0234527587890625,
-0.0286865234375,
0.0124969482421875,
0.02154541015625,
-0.004840850830078125,
-0.022796630859375,
-0.05255126953125,
-0.01520538330078125,
0.01288604736328125,
0.0006461143493652344,
0.004962921142578125,
0.033721923828125,
-0.03924560546875,
0.028106689453125,
-0.01261138916015625,
-0.00408935546875,
-0.026214599609375,
0.03472900390625,
0.0303802490234375,
-0.0190277099609375,
0.0013246536254882812,
0.01480865478515625,
0.0119171142578125,
0.0017871856689453125,
-0.01172637939453125,
-0.027313232421875,
-0.054412841796875,
0.053497314453125,
-0.0021381378173828125,
0.00601959228515625,
-0.014404296875,
-0.027618408203125,
0.01654052734375,
0.1009521484375,
0.0003085136413574219,
-0.016693115234375,
-0.00569915771484375,
-0.0075531005859375,
-0.04168701171875,
0.0180816650390625,
-0.0509033203125,
-0.004657745361328125,
0.005649566650390625,
-0.0111541748046875,
-0.0246124267578125,
0.02008056640625,
-0.052520751953125,
0.04412841796875,
-0.027740478515625,
-0.006496429443359375,
0.05706787109375,
-0.11151123046875,
0.03851318359375,
0.014739990234375,
0.0144195556640625,
-0.03485107421875,
-0.0284271240234375,
-0.057342529296875,
-0.10601806640625,
0.00434112548828125,
-0.050018310546875,
0.08648681640625,
0.00731658935546875,
0.032684326171875,
-0.06280517578125,
0.0214691162109375,
0.00612640380859375,
-0.01800537109375,
0.022491455078125,
0.000014483928680419922,
0.0440673828125,
0.0222320556640625,
0.0144805908203125,
-0.0138397216796875,
-0.0249176025390625,
-0.0271453857421875,
0.0265045166015625,
0.0138702392578125,
-0.052001953125,
-0.0234832763671875,
-0.040496826171875,
0.0112457275390625,
-0.049560546875,
0.0017499923706054688,
-0.00319671630859375,
0.04656982421875,
-0.025543212890625,
0.0264892578125,
-0.01409149169921875,
-0.06378173828125,
0.05645751953125,
-0.06707763671875,
0.01247406005859375,
-0.0034637451171875,
0.118408203125,
0.01047515869140625,
0.00885009765625,
-0.01470184326171875,
0.0005593299865722656,
0.02313232421875,
0.014129638671875,
0.053192138671875,
0.022918701171875,
-0.00537872314453125,
0.0295257568359375,
0.001323699951171875,
0.03509521484375,
-0.0172576904296875,
0.024993896484375,
0.010986328125,
-0.0242767333984375,
0.032562255859375,
0.028228759765625,
-0.0305328369140625,
-0.0697021484375,
-0.025726318359375,
0.01274871826171875,
0.0265350341796875,
0.0142822265625,
-0.00839996337890625,
0.04150390625,
-0.002201080322265625,
-0.027252197265625,
0.0002968311309814453,
-0.0266571044921875,
-0.0025691986083984375,
0.0240020751953125,
-0.00017726421356201172,
-0.021148681640625,
-0.0259246826171875,
-0.01165771484375,
-0.020294189453125,
-0.045196533203125,
0.0269012451171875,
0.052276611328125,
-0.07928466796875,
0.0128631591796875,
-0.0186614990234375,
-0.0172882080078125,
0.0677490234375,
0.0120697021484375,
-0.036346435546875,
0.00421905517578125,
-0.0311737060546875,
0.055877685546875,
0.015869140625,
0.0060272216796875,
0.038726806640625,
0.031402587890625,
0.0021228790283203125,
0.004608154296875,
0.0072784423828125,
0.0001989603042602539,
-0.032684326171875,
0.004329681396484375,
0.0039520263671875,
-0.0137786865234375,
0.0019311904907226562,
0.05377197265625,
0.011810302734375,
0.023040771484375,
-0.0184326171875,
0.048004150390625,
0.06561279296875,
-0.003025054931640625,
0.0006794929504394531,
0.0201416015625,
-0.00046181678771972656,
-0.01520538330078125,
0.0183563232421875,
0.003276824951171875,
-0.006473541259765625,
0.0328369140625,
0.02349853515625,
-0.001461029052734375,
0.0018825531005859375,
-0.01947021484375,
-0.019866943359375,
0.006320953369140625,
0.037933349609375,
-0.048583984375,
-0.066162109375,
-0.023956298828125,
0.04058837890625,
0.051788330078125,
-0.05902099609375,
0.023193359375,
-0.004383087158203125,
-0.00007390975952148438,
0.0146636962890625,
0.0173187255859375,
0.00630950927734375,
-0.038421630859375,
-0.04278564453125,
-0.0457763671875,
-0.02435302734375,
-0.0010995864868164062,
-0.027984619140625,
0.0053558349609375,
-0.031524658203125,
-0.056610107421875,
0.061279296875,
0.01032257080078125,
0.0213775634765625,
-0.07666015625,
0.024627685546875,
-0.03717041015625,
-0.0267181396484375,
0.053741455078125,
0.01442718505859375,
-0.033447265625,
-0.01387786865234375,
-0.04534912109375,
-0.0177001953125,
-0.023193359375,
-0.0310211181640625,
-0.032257080078125,
-0.0017385482788085938,
0.032501220703125,
0.010498046875,
0.017852783203125,
-0.02923583984375,
0.0011310577392578125,
0.018829345703125,
0.0245513916015625,
0.035308837890625,
0.0286407470703125,
0.057220458984375,
-0.0177459716796875,
0.059722900390625,
0.041748046875,
0.03546142578125,
-0.0229034423828125,
-0.039215087890625,
0.0149993896484375,
-0.004940032958984375,
-0.016143798828125,
-0.017730712890625,
-0.0092926025390625,
-0.0194091796875,
0.035491943359375,
-0.021484375,
0.0147705078125,
-0.003765106201171875,
0.005458831787109375,
-0.035675048828125,
-0.02606201171875,
-0.0027141571044921875,
0.00542449951171875,
-0.00010710954666137695,
-0.0152587890625,
0.0139312744140625,
0.0199432373046875,
0.045745849609375,
-0.033782958984375,
-0.0178070068359375,
-0.0139617919921875,
0.0033721923828125,
-0.02337646484375,
0.0242156982421875,
0.03656005859375,
-0.02178955078125,
0.028472900390625,
0.003021240234375,
0.0118255615234375,
0.033233642578125,
-0.00437164306640625,
-0.034088134765625,
0.0212860107421875,
0.011474609375,
-0.005950927734375,
0.0080413818359375,
0.005893707275390625,
-0.0006847381591796875,
0.03350830078125,
0.08392333984375,
0.07965087890625,
-0.1048583984375,
0.018798828125,
-0.0149383544921875,
-0.033538818359375,
0.061798095703125,
-0.0115203857421875,
-0.0050506591796875,
-0.035614013671875,
0.06597900390625,
-0.0044403076171875,
-0.007495880126953125,
0.023681640625,
-0.01528167724609375,
-0.0210723876953125,
0.0020160675048828125,
0.00913238525390625,
0.023895263671875,
0.039306640625,
0.0221405029296875,
-0.042755126953125,
0.062286376953125,
0.0209503173828125,
0.0213165283203125,
0.006290435791015625,
-0.007022857666015625,
-0.032684326171875,
0.01505279541015625,
-0.035614013671875,
-0.0384521484375,
0.03924560546875,
-0.006103515625,
0.03961181640625,
0.0297088623046875,
0.01470184326171875,
0.0111846923828125,
0.01244354248046875,
-0.01153564453125,
-0.051971435546875,
-0.040985107421875,
0.005054473876953125,
0.00007176399230957031,
-0.06195068359375,
0.0170440673828125,
-0.053314208984375,
0.006351470947265625,
-0.0065460205078125,
-0.0095062255859375,
0.050933837890625,
-0.038055419921875,
-0.01036834716796875,
0.0216522216796875,
0.01422882080078125,
-0.008880615234375,
-0.02239990234375,
-0.0161590576171875,
-0.07208251953125,
-0.04498291015625,
-0.0192718505859375,
-0.046112060546875,
0.044403076171875,
-0.023590087890625,
-0.047210693359375,
0.07269287109375,
-0.0228424072265625,
0.0232696533203125,
0.000011324882507324219,
0.0279388427734375,
-0.002849578857421875,
-0.00048041343688964844,
-0.042236328125,
0.054901123046875,
0.006011962890625,
0.020660400390625,
-0.0289154052734375,
0.014434814453125,
-0.0063629150390625,
0.0036754608154296875,
0.08221435546875,
0.0168914794921875,
-0.032257080078125,
-0.0233001708984375,
0.0204010009765625,
0.0012617111206054688,
-0.033660888671875,
0.052703857421875,
-0.010894775390625,
0.00029206275939941406,
-0.01690673828125,
-0.00350189208984375,
0.024749755859375,
-0.0175323486328125,
-0.06500244140625,
0.018890380859375,
0.01537322998046875,
0.0019893646240234375,
0.00394439697265625,
0.062744140625,
-0.050079345703125,
0.0102081298828125,
0.0484619140625,
-0.00244140625,
-0.002231597900390625,
0.0181732177734375,
0.0034580230712890625,
0.02789306640625,
-0.0078582763671875,
-0.01242828369140625,
0.03314208984375,
0.019989013671875,
0.008880615234375,
-0.0122528076171875,
0.019317626953125,
-0.01180267333984375,
-0.008514404296875,
0.003093719482421875,
0.053192138671875,
-0.0572509765625,
0.059539794921875,
0.04296875,
0.02197265625,
-0.01226043701171875,
0.0355224609375,
0.0290069580078125,
0.061126708984375,
-0.053070068359375,
0.00011032819747924805,
0.0207061767578125,
0.01003265380859375,
0.01474761962890625,
-0.0009555816650390625,
0.048492431640625,
-0.043121337890625,
-0.02105712890625,
-0.066650390625,
0.007099151611328125,
0.00600433349609375,
-0.0171051025390625,
-0.01537322998046875,
0.0113983154296875,
-0.0012273788452148438,
0.00881195068359375,
-0.0266571044921875,
0.006267547607421875,
-0.0030612945556640625,
-0.005077362060546875,
0.0145263671875,
0.01641845703125,
0.057159423828125,
0.0082244873046875,
0.0032596588134765625,
0.020355224609375,
-0.00534820556640625,
-0.00623321533203125,
-0.02130126953125,
-0.039276123046875,
-0.01995849609375,
0.03509521484375,
-0.023712158203125,
-0.0014657974243164062,
-0.00537109375,
-0.0228118896484375,
-0.0261688232421875,
-0.02520751953125,
-0.0267181396484375,
-0.041473388671875,
-0.01010894775390625,
-0.01239776611328125,
0.015045166015625,
0.020599365234375,
0.00601959228515625,
-0.01265716552734375,
0.04742431640625,
0.029937744140625,
-0.022796630859375,
0.0209503173828125,
-0.01451873779296875,
-0.023834228515625,
0.0330810546875,
-0.0183868408203125,
0.03326416015625,
-0.00238037109375,
-0.0845947265625,
0.00807952880859375,
-0.055084228515625,
-0.050140380859375,
0.0313720703125,
0.032257080078125,
-0.0247955322265625,
0.03717041015625,
0.006439208984375,
-0.01080322265625,
0.0330810546875,
-0.01004791259765625,
-0.00519561767578125,
0.0115966796875,
0.0298004150390625,
-0.01001739501953125,
-0.04803466796875,
-0.0115509033203125,
-0.02301025390625,
0.0092010498046875,
0.0285186767578125,
0.0288543701171875,
0.016937255859375,
0.031585693359375,
-0.043853759765625,
0.0252838134765625,
-0.044921875,
-0.042083740234375,
0.048919677734375,
0.0287322998046875,
-0.00421142578125,
-0.0141143798828125,
-0.00897216796875,
0.03704833984375,
0.006641387939453125,
0.0286865234375,
0.01788330078125,
-0.0306854248046875,
0.01885986328125,
0.026763916015625,
0.046722412109375,
-0.01556396484375,
0.00931549072265625,
-0.04864501953125,
-0.038238525390625,
0.04150390625,
0.0165863037109375,
0.007965087890625,
0.03448486328125,
-0.01288604736328125,
-0.0230255126953125,
-0.020538330078125,
-0.0079193115234375,
-0.06048583984375,
0.0256500244140625,
0.01239776611328125,
-0.0202789306640625,
-0.01515960693359375,
-0.0190887451171875,
-0.0163421630859375,
0.004261016845703125,
-0.002201080322265625,
0.0188446044921875,
-0.034423828125,
0.0187835693359375,
0.043670654296875,
0.08221435546875,
0.021942138671875,
0.03125,
-0.01044464111328125,
-0.002849578857421875,
0.01363372802734375,
-0.0169525146484375,
-0.031463623046875,
-0.015960693359375,
-0.01123046875,
0.024688720703125,
-0.007266998291015625,
-0.05731201171875,
-0.0865478515625,
-0.004489898681640625,
0.006023406982421875,
0.01021575927734375,
-0.059967041015625,
0.0086822509765625,
0.0187835693359375,
0.04180908203125,
-0.0147552490234375,
-0.0487060546875,
0.037109375,
0.076904296875,
-0.05108642578125,
-0.0020542144775390625,
-0.0240020751953125,
-0.05645751953125,
-0.039947509765625,
0.00928497314453125,
0.0408935546875,
0.00074005126953125,
0.0048980712890625,
0.034942626953125,
-0.01074981689453125,
0.08465576171875,
-0.08160400390625,
0.0005431175231933594,
0.0181884765625,
-0.01580810546875,
-0.0235595703125,
-0.044219970703125,
0.0280303955078125,
-0.07916259765625,
-0.03399658203125,
-0.021392822265625,
0.033935546875,
0.05670166015625,
-0.005580902099609375,
-0.051605224609375,
0.060760498046875,
-0.0268707275390625,
-0.031524658203125,
-0.04229736328125,
0.0123138427734375,
-0.0011110305786132812,
-0.0169830322265625,
-0.01129913330078125,
-0.032684326171875,
0.002475738525390625,
0.0286407470703125,
0.006046295166015625,
0.004268646240234375,
0.0251922607421875,
0.01093292236328125,
-0.0289306640625,
0.0161590576171875,
0.0197296142578125,
-0.01349639892578125,
0.02142333984375,
-0.01165771484375,
0.037841796875,
0.039642333984375,
-0.0013141632080078125,
0.01751708984375,
0.0034923553466796875,
-0.054901123046875,
-0.03851318359375,
-0.04730224609375,
0.0157928466796875,
-0.00916290283203125,
0.062103271484375,
0.02734375,
0.0079193115234375,
-0.0260772705078125,
-0.047698974609375,
-0.043792724609375,
-0.02734375,
0.00907135009765625,
0.0188140869140625,
-0.04931640625,
0.034423828125,
0.0085296630859375,
-0.0225067138671875,
0.031646728515625,
-0.038299560546875,
-0.047607421875,
0.0165557861328125,
0.0034465789794921875,
0.01727294921875,
-0.053680419921875,
0.037506103515625,
0.045135498046875,
-0.049530029296875,
-0.02001953125,
0.0026760101318359375,
-0.012115478515625,
0.00032591819763183594,
-0.022125244140625,
0.0106964111328125,
0.00730133056640625,
-0.055877685546875,
0.0233612060546875,
-0.004741668701171875,
0.031951904296875,
-0.02716064453125,
-0.01322174072265625,
-0.00571441650390625,
0.050628662109375,
0.002628326416015625,
0.06390380859375,
0.00555419921875,
0.057281494140625,
0.0182037353515625,
0.0303955078125,
-0.019317626953125,
-0.01491546630859375,
-0.044036865234375,
0.032379150390625,
-0.006134033203125,
-0.006725311279296875,
0.0246734619140625,
-0.0099334716796875,
-0.0025234222412109375,
-0.0188751220703125,
-0.032012939453125,
-0.07000732421875,
0.043731689453125,
-0.0039825439453125,
-0.010955810546875,
0.0408935546875
] |
fa6f780b6a759a909e6ec678a5bff37578e49f39
|
Wordpress Stackexchange
Q: How to get Images included in Post is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the rest of imgs only render into hidden img tags (will be visible through lightbox slideshow).
So is there any function like get_post_attachments('type'=>'image') whose output I would be able to iterate over a loop?
Thanks for your help
A: You can use get_posts() (Codex ref for getting Post attachments).
<?php
$args = array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID
);
$attached_images = get_posts( $args );
?>
|
Q: How to get Images included in Post is possible to get images added to a post programmatically? I am working on custom template (my first) and I need to display Images added to a post in specific way.(first image as title image and the rest of imgs only render into hidden img tags (will be visible through lightbox slideshow).
So is there any function like get_post_attachments('type'=>'image') whose output I would be able to iterate over a loop?
Thanks for your help
A: You can use get_posts() (Codex ref for getting Post attachments).
<?php
$args = array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
'numberposts' => -1,
'post_status' => null,
'post_parent' => $post->ID
);
$attached_images = get_posts( $args );
?>
A: This gets all the images attached to a post :
$args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_mime_type' => 'image', 'post_parent' => $post->ID );
$attachments = get_posts( $args );
if ( $attachments ) {
foreach ( $attachments as $attachment ) {
...do stuff
}
}
Have a ’look at wp_get_attachment_image()’ as well as the related functions, it'll get you started.
|
wordpress
|
{
"language": "en",
"length": 185,
"provenance": "stackexchange_00019.jsonl.gz:411308",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22965"
}
|
[
0.074951171875,
0.003082275390625,
0.045654296875,
-0.00521087646484375,
0.01227569580078125,
-0.0180816650390625,
0.0775146484375,
-0.058197021484375,
-0.008941650390625,
0.0103759765625,
-0.053741455078125,
0.0118255615234375,
-0.032928466796875,
-0.01044464111328125,
-0.00594329833984375,
-0.053802490234375,
0.056793212890625,
-0.034637451171875,
0.0501708984375,
0.01215362548828125,
0.003025054931640625,
0.044281005859375,
0.051513671875,
0.02813720703125,
0.0004360675811767578,
0.048797607421875,
0.05908203125,
-0.023590087890625,
0.002811431884765625,
-0.0070037841796875,
0.0166168212890625,
-0.0128631591796875,
0.0223236083984375,
-0.0016918182373046875,
0.0087432861328125,
0.017791748046875,
0.00909423828125,
-0.0150909423828125,
-0.002353668212890625,
0.0196685791015625,
0.005401611328125,
0.00763702392578125,
0.051239013671875,
0.00450897216796875,
0.00640869140625,
0.01067352294921875,
-0.03546142578125,
-0.059234619140625,
-0.0008320808410644531,
-0.0262298583984375,
0.0264434814453125,
0.00014495849609375,
0.044830322265625,
-0.008575439453125,
-0.014312744140625,
0.003543853759765625,
-0.033416748046875,
0.033782958984375,
0.048492431640625,
-0.05438232421875,
-0.070068359375,
-0.042327880859375,
0.05487060546875,
-0.006237030029296875,
0.003849029541015625,
0.00850677490234375,
0.0258636474609375,
0.004550933837890625,
-0.0565185546875,
-0.032501220703125,
0.03680419921875,
-0.032867431640625,
-0.0181732177734375,
-0.03851318359375,
-0.00574493408203125,
0.0196380615234375,
-0.012725830078125,
-0.037506103515625,
0.005741119384765625,
0.00121307373046875,
0.044036865234375,
0.036895751953125,
-0.01169586181640625,
0.0078582763671875,
0.010772705078125,
0.02154541015625,
-0.0011854171752929688,
-0.044647216796875,
-0.016265869140625,
-0.0228271484375,
-0.0259857177734375,
-0.01508331298828125,
-0.024200439453125,
0.030029296875,
-0.01287841796875,
0.00014460086822509766,
0.0367431640625,
0.055633544921875,
-0.015106201171875,
0.03076171875,
-0.036224365234375,
-0.0364990234375,
0.061248779296875,
-0.05084228515625,
-0.0005350112915039062,
-0.0224151611328125,
-0.01006317138671875,
-0.009429931640625,
0.021270751953125,
0.050018310546875,
-0.0186920166015625,
0.02276611328125,
0.0214996337890625,
-0.00685882568359375,
-0.0095672607421875,
0.035675048828125,
0.00936126708984375,
0.0112152099609375,
-0.00959014892578125,
0.02813720703125,
-0.0035915374755859375,
0.01739501953125,
-0.0190887451171875,
-0.0038242340087890625,
-0.002185821533203125,
-0.0006575584411621094,
-0.025177001953125,
-0.011444091796875,
0.0111083984375,
0.03399658203125,
-0.050018310546875,
0.0186309814453125,
0.061859130859375,
-0.0081787109375,
0.003692626953125,
-0.027801513671875,
-0.02716064453125,
-0.04638671875,
-0.00783538818359375,
-0.00958251953125,
0.00981903076171875,
-0.0123748779296875,
0.022216796875,
-0.0062713623046875,
-0.0003368854522705078,
0.007537841796875,
-0.0112152099609375,
0.0185699462890625,
0.02154541015625,
-0.038299560546875,
0.025848388671875,
-0.0394287109375,
-0.00472259521484375,
0.0294647216796875,
0.0310516357421875,
0.0168914794921875,
0.040008544921875,
-0.010406494140625,
0.00501251220703125,
-0.01416778564453125,
0.0208740234375,
0.01488494873046875,
0.00737762451171875,
0.018829345703125,
0.01537322998046875,
-0.0145416259765625,
-0.0171966552734375,
-0.003040313720703125,
0.022125244140625,
0.010162353515625,
0.01273345947265625,
-0.0243682861328125,
-0.0034351348876953125,
-0.0013027191162109375,
-0.007411956787109375,
0.00682830810546875,
-0.016937255859375,
0.007457733154296875,
0.0303497314453125,
0.070068359375,
0.0202484130859375,
-0.0125732421875,
0.071044921875,
-0.0128173828125,
-0.054901123046875,
0.0224761962890625,
-0.007965087890625,
0.040618896484375,
0.043304443359375,
0.00893402099609375,
0.0129852294921875,
0.0021343231201171875,
0.0011930465698242188,
-0.0032138824462890625,
0.0139923095703125,
-0.0173187255859375,
-0.033660888671875,
-0.018280029296875,
-0.0152740478515625,
-0.0016994476318359375,
0.00888824462890625,
-0.01267242431640625,
0.0185394287109375,
0.01265716552734375,
0.0012331008911132812,
-0.0020694732666015625,
-0.01258087158203125,
0.01207733154296875,
-0.059539794921875,
0.01611328125,
0.030029296875,
-0.01422119140625,
-0.0172882080078125,
-0.0009975433349609375,
0.0215301513671875,
0.03955078125,
0.0022869110107421875,
0.005092620849609375,
-0.00464630126953125,
0.03143310546875,
-0.007297515869140625,
-0.02252197265625,
-0.0341796875,
0.02978515625,
0.06640625,
0.01198577880859375,
-0.0221099853515625,
-0.0097198486328125,
0.0265045166015625,
0.0396728515625,
-0.08770751953125,
0.0045013427734375,
-0.0501708984375,
-0.0229949951171875,
-0.017547607421875,
-0.0321044921875,
-0.0195770263671875,
-0.0819091796875,
0.036529541015625,
0.0643310546875,
0.03240966796875,
0.028961181640625,
0.0033416748046875,
0.0168304443359375,
0.09375,
0.0313720703125,
0.015838623046875,
-0.0081329345703125,
0.0263824462890625,
0.0308990478515625,
0.010986328125,
0.01139068603515625,
0.0196685791015625,
-0.046142578125,
0.04034423828125,
0.04022216796875,
0.00406646728515625,
0.0146484375,
-0.043914794921875,
0.027252197265625,
0.004596710205078125,
-0.0017156600952148438,
-0.011016845703125,
-0.01473236083984375,
0.0139007568359375,
0.035858154296875,
0.02099609375,
0.018035888671875,
-0.03863525390625,
0.0270843505859375,
0.0115966796875,
-0.0126800537109375,
0.01158905029296875,
0.0230255126953125,
-0.028411865234375,
0.0030612945556640625,
-0.035797119140625,
-0.0032138824462890625,
0.0380859375,
-0.004421234130859375,
-0.0005617141723632812,
-0.01360321044921875,
-0.0014190673828125,
0.0028133392333984375,
0.00634002685546875,
-0.050750732421875,
0.040069580078125,
0.0360107421875,
-0.022979736328125,
0.020050048828125,
0.02960205078125,
0.048095703125,
0.024810791015625,
-0.005680084228515625,
-0.00798797607421875,
0.0257720947265625,
0.0005702972412109375,
-0.058135986328125,
0.06414794921875,
-0.02960205078125,
0.025421142578125,
0.07647705078125,
-0.0127410888671875,
0.044158935546875,
-0.0034637451171875,
-0.006866455078125,
-0.020477294921875,
0.01448822021484375,
0.0013113021850585938,
-0.037933349609375,
-0.0195770263671875,
0.035552978515625,
0.0208740234375,
0.062744140625,
-0.0386962890625,
-0.055328369140625,
-0.01544952392578125,
0.01416778564453125,
-0.07855224609375,
-0.0692138671875,
-0.004215240478515625,
-0.064453125,
-0.0643310546875,
-0.01194000244140625,
-0.0428466796875,
0.029937744140625,
-0.005908966064453125,
-0.005847930908203125,
-0.0340576171875,
-0.003772735595703125,
-0.00936126708984375,
-0.031707763671875,
-0.038543701171875,
0.008453369140625,
0.004669189453125,
0.0175323486328125,
-0.00582122802734375,
0.083984375,
0.00958251953125,
-0.033355712890625,
0.019012451171875,
0.03485107421875,
-0.0033245086669921875,
0.01305389404296875,
0.00788116455078125,
0.000698089599609375,
0.02166748046875,
-0.004741668701171875,
-0.031219482421875,
0.03448486328125,
-0.0277557373046875,
-0.0084686279296875,
-0.040802001953125,
0.0037994384765625,
-0.01436614990234375,
0.037384033203125,
0.05206298828125,
0.01267242431640625,
0.024383544921875,
-0.027435302734375,
0.020233154296875,
-0.0379638671875,
-0.03173828125,
-0.01392364501953125,
0.01055145263671875,
0.01367950439453125,
-0.027740478515625,
0.01224517822265625,
0.01175689697265625,
0.00878143310546875,
0.01439666748046875,
-0.0248260498046875,
0.044158935546875,
-0.00559234619140625,
-0.0016260147094726562,
-0.0252532958984375,
0.01180267333984375,
-0.00496673583984375,
0.0142364501953125,
0.0007128715515136719,
0.0340576171875,
-0.03057861328125,
0.032684326171875,
-0.0662841796875,
-0.02734375,
0.035186767578125,
-0.007373809814453125,
0.038665771484375,
-0.0183258056640625,
-0.038665771484375,
0.0098419189453125,
0.08966064453125,
0.010894775390625,
-0.0369873046875,
-0.024932861328125,
0.01538848876953125,
-0.037139892578125,
-0.0638427734375,
0.02276611328125,
-0.0195159912109375,
-0.03936767578125,
-0.007205963134765625,
-0.006195068359375,
-0.031463623046875,
0.004413604736328125,
-0.0157318115234375,
-0.031402587890625,
-0.0159454345703125,
0.0243988037109375,
-0.005550384521484375,
0.002635955810546875,
0.0261077880859375,
-0.00839996337890625,
0.01544189453125,
-0.0164337158203125,
-0.0222015380859375,
-0.09527587890625,
-0.01556396484375,
0.015655517578125,
0.046051025390625,
-0.023284912109375,
0.0103607177734375,
-0.050628662109375,
0.041656494140625,
0.0020599365234375,
0.014862060546875,
0.007415771484375,
0.033477783203125,
-0.006053924560546875,
-0.05279541015625,
0.0025119781494140625,
-0.061614990234375,
-0.0364990234375,
-0.038330078125,
-0.0008687973022460938,
-0.00576019287109375,
-0.013916015625,
-0.022674560546875,
0.0004887580871582031,
0.005901336669921875,
0.00823974609375,
0.01090240478515625,
0.039520263671875,
0.059722900390625,
0.01092529296875,
-0.0023517608642578125,
-0.039794921875,
0.004756927490234375,
0.00519561767578125,
-0.00577545166015625,
0.0001220703125,
0.006378173828125,
0.0858154296875,
0.01088714599609375,
0.0015630722045898438,
-0.0660400390625,
-0.0013408660888671875,
0.033172607421875,
-0.011810302734375,
0.03668212890625,
0.01378631591796875,
-0.024200439453125,
0.050506591796875,
0.005649566650390625,
0.0181732177734375,
-0.0404052734375,
0.054962158203125,
0.0110321044921875,
-0.012939453125,
0.0186614990234375,
0.018310546875,
0.01003265380859375,
-0.004547119140625,
-0.050506591796875,
-0.0036029815673828125,
-0.024169921875,
0.042572021484375,
-0.038665771484375,
0.058929443359375,
-0.03326416015625,
-0.030548095703125,
-0.007228851318359375,
0.03485107421875,
0.01641845703125,
0.0228424072265625,
0.0011501312255859375,
-0.0006318092346191406,
0.01373291015625,
0.01480865478515625,
-0.00273895263671875,
-0.0236053466796875,
0.022125244140625,
0.036224365234375,
-0.006458282470703125,
0.014984130859375,
0.0089263916015625,
0.0054168701171875,
-0.0093994140625,
-0.01125335693359375,
-0.0343017578125,
-0.040008544921875,
0.0022983551025390625,
0.0421142578125,
0.008056640625,
0.00665283203125,
0.04937744140625,
0.0222625732421875,
0.006504058837890625,
-0.02154541015625,
-0.046539306640625,
0.015625,
-0.044921875,
0.007694244384765625,
-0.00608062744140625,
-0.006927490234375,
0.032623291015625,
0.01222991943359375,
-0.0288848876953125,
0.02728271484375,
-0.01065826416015625,
0.00511932373046875,
0.016876220703125,
0.035186767578125,
0.0097198486328125,
-0.006072998046875,
-0.0072174072265625,
0.0241851806640625,
0.0245513916015625,
-0.035430908203125,
0.0211181640625,
-0.0096282958984375,
0.0587158203125,
-0.006832122802734375,
-0.045135498046875,
0.031341552734375,
-0.058929443359375,
-0.0287933349609375,
0.041015625,
0.04803466796875,
-0.007579803466796875,
-0.0341796875,
-0.02166748046875,
0.03668212890625,
0.03839111328125,
-0.0193328857421875,
0.00652313232421875,
-0.009857177734375,
0.004032135009765625,
0.0006704330444335938,
-0.04949951171875,
0.0260467529296875,
0.041473388671875,
-0.05340576171875,
-0.051605224609375,
-0.0103912353515625,
0.0197906494140625,
0.019073486328125,
-0.0193634033203125,
-0.037506103515625,
0.0129547119140625,
0.0205535888671875,
0.01739501953125,
-0.0269622802734375,
-0.0251617431640625,
-0.000644683837890625,
-0.0008115768432617188,
0.0390625,
-0.01537322998046875,
-0.01168060302734375,
-0.0008168220520019531,
-0.05609130859375,
-0.0111541748046875,
0.01629638671875,
-0.034912109375,
-0.02862548828125,
-0.030487060546875,
0.006664276123046875,
0.041290283203125,
-0.006832122802734375,
-0.004116058349609375,
0.02410888671875,
0.007808685302734375,
-0.0198822021484375,
0.07330322265625,
0.041229248046875,
0.045928955078125,
-0.02471923828125,
0.0584716796875,
0.021942138671875,
0.015716552734375,
-0.0538330078125,
-0.02825927734375,
-0.025054931640625,
-0.07537841796875,
0.0170745849609375,
0.05206298828125,
0.007175445556640625,
0.0078125,
-0.0194091796875,
0.026123046875,
-0.030059814453125,
-0.0203857421875,
-0.01537322998046875,
-0.018035888671875,
0.044189453125,
0.022735595703125,
-0.016357421875,
0.0213623046875,
-0.0275421142578125,
0.0013980865478515625,
0.0184326171875,
-0.006862640380859375,
0.01971435546875,
-0.009521484375,
-0.0010976791381835938,
0.0202789306640625,
-0.00499725341796875,
0.0169525146484375,
0.074951171875,
0.0184478759765625,
0.0628662109375,
0.036651611328125,
0.034271240234375,
0.0267791748046875,
0.032073974609375,
-0.01422119140625,
-0.039337158203125,
0.051239013671875,
0.0190887451171875,
-0.01397705078125,
0.041046142578125,
-0.0306854248046875,
0.0153961181640625,
-0.027740478515625,
0.02386474609375,
0.013946533203125,
0.0250701904296875,
-0.00209808349609375,
-0.0199127197265625,
0.04803466796875,
0.0174713134765625,
-0.022552490234375,
-0.0109100341796875,
0.04205322265625,
-0.0355224609375,
-0.00637054443359375,
0.01654052734375,
-0.00023066997528076172,
0.0030364990234375,
-0.017608642578125,
0.012847900390625,
0.0013875961303710938,
-0.02691650390625,
-0.021087646484375,
0.032928466796875,
-0.0247955322265625,
-0.017364501953125,
0.01190185546875,
-0.03277587890625,
0.01678466796875,
-0.036285400390625,
0.01043701171875,
-0.035064697265625,
0.0279388427734375,
0.0160675048828125,
-0.0080718994140625,
0.01776123046875,
0.050048828125,
-0.004489898681640625,
0.015625,
0.0322265625,
-0.03887939453125,
0.005596160888671875,
-0.0005269050598144531,
0.0107421875,
0.036376953125,
-0.08331298828125,
0.006633758544921875,
-0.051177978515625,
0.05010986328125,
-0.0018777847290039062,
0.0218658447265625,
0.063232421875,
-0.03143310546875,
-0.0127410888671875,
0.038330078125,
0.05596923828125,
-0.018280029296875,
-0.01268768310546875,
0.006313323974609375,
-0.050445556640625,
-0.01248931884765625,
-0.007354736328125,
-0.023345947265625,
-0.0169677734375,
-0.03631591796875,
-0.08734130859375,
0.08135986328125,
-0.01506805419921875,
0.0423583984375,
-0.004032135009765625,
0.017974853515625,
-0.006114959716796875,
-0.02227783203125,
-0.0465087890625,
0.0556640625,
-0.0124359130859375,
0.0445556640625,
-0.0753173828125,
0.004299163818359375,
-0.00872802734375,
0.035186767578125,
0.07781982421875,
0.006298065185546875,
-0.01702880859375,
-0.046783447265625,
0.03546142578125,
0.0565185546875,
0.0029315948486328125,
0.00946807861328125,
0.0200958251953125,
0.01506805419921875,
0.064697265625,
-0.0277099609375,
0.03289794921875,
-0.00022029876708984375,
0.0193328857421875,
0.0364990234375,
-0.01511383056640625,
-0.01203155517578125,
0.00719451904296875,
-0.006824493408203125,
-0.02716064453125,
0.0027751922607421875,
0.0286102294921875,
-0.06365966796875,
-0.003307342529296875,
0.042724609375,
0.01593017578125,
0.004505157470703125,
-0.03936767578125,
-0.006763458251953125,
0.0260009765625,
0.01337432861328125,
0.03228759765625,
-0.0011692047119140625,
0.01428985595703125,
0.00830841064453125,
0.00939178466796875,
0.01629638671875,
0.045074462890625,
-0.03436279296875,
0.040679931640625,
-0.007244110107421875,
0.0028095245361328125,
-0.086181640625,
-0.0023651123046875,
0.0562744140625,
0.062408447265625,
-0.058807373046875,
-0.0147705078125,
0.01490020751953125,
0.00433349609375,
0.01523590087890625,
-0.0269775390625,
0.006191253662109375,
-0.03692626953125,
0.00440216064453125,
-0.033599853515625,
-0.0038547515869140625,
0.028289794921875,
0.0306549072265625,
0.00011944770812988281,
-0.01824951171875,
-0.026214599609375,
-0.0182342529296875,
-0.0255126953125,
0.01552581787109375,
-0.0021228790283203125,
0.0190887451171875,
0.0013217926025390625,
0.061492919921875,
-0.003932952880859375,
-0.01140594482421875,
-0.0030231475830078125,
-0.008544921875,
-0.01268768310546875,
0.027374267578125,
0.00911712646484375,
0.0001971721649169922,
-0.0144805908203125,
0.019378662109375,
0.0295562744140625,
-0.040618896484375,
0.038665771484375,
0.00820159912109375,
-0.08599853515625,
-0.0150604248046875,
0.0105133056640625,
-0.0196075439453125,
0.0018672943115234375,
-0.025909423828125,
0.005084991455078125,
0.05029296875,
-0.023040771484375,
0.0285491943359375,
-0.038299560546875,
0.07916259765625,
-0.03619384765625,
0.040069580078125,
-0.020233154296875,
-0.006053924560546875,
0.06536865234375,
-0.0175018310546875,
0.06353759765625,
-0.0122222900390625,
-0.0989990234375,
0.00392913818359375,
-0.034210205078125,
-0.069580078125,
0.0142669677734375,
0.0184326171875,
-0.06085205078125,
0.051513671875,
0.01149749755859375,
-0.00374603271484375,
0.016357421875,
-0.021759033203125,
0.01094818115234375,
-0.0034732818603515625,
0.02093505859375,
0.00038170814514160156,
-0.0391845703125,
-0.021392822265625,
-0.0284881591796875,
0.03448486328125,
0.03704833984375,
0.044281005859375,
0.002292633056640625,
0.0283660888671875,
-0.002979278564453125,
0.01302337646484375,
-0.041046142578125,
-0.00392913818359375,
0.01117706298828125,
-0.01522064208984375,
-0.0018672943115234375,
-0.01528167724609375,
0.01203155517578125,
0.011962890625,
0.03875732421875,
-0.031280517578125,
-0.01324462890625,
-0.0152587890625,
0.019805908203125,
-0.001129150390625,
0.035247802734375,
-0.01554107666015625,
0.005962371826171875,
-0.044647216796875,
-0.051422119140625,
0.04449462890625,
0.0247802734375,
0.035675048828125,
0.0355224609375,
0.04864501953125,
0.00762176513671875,
0.0374755859375,
-0.0245361328125,
0.05694580078125,
0.04290771484375,
-0.0179443359375,
-0.0283966064453125,
-0.0199432373046875,
-0.018157958984375,
0.00408935546875,
-0.012969970703125,
0.04620361328125,
-0.0182037353515625,
-0.0106964111328125,
-0.01474761962890625,
-0.01251220703125,
0.0384521484375,
-0.0262908935546875,
0.01377105712890625,
-0.01454925537109375,
0.0072784423828125,
-0.004123687744140625,
0.0006551742553710938,
-0.0197906494140625,
-0.05035400390625,
0.0014209747314453125,
0.0170745849609375,
-0.01922607421875,
-0.007694244384765625,
-0.0255279541015625,
-0.0172271728515625,
0.01084136962890625,
0.01497650146484375,
-0.0509033203125,
0.0290679931640625,
0.0080108642578125,
0.0007967948913574219,
-0.0179443359375,
-0.0240936279296875,
0.018310546875,
0.062744140625,
-0.00394439697265625,
-0.044403076171875,
-0.0142974853515625,
0.023223876953125,
-0.039581298828125,
0.05047607421875,
0.06268310546875,
-0.0518798828125,
0.0105438232421875,
0.06585693359375,
0.035888671875,
0.1068115234375,
-0.0274505615234375,
-0.0215301513671875,
-0.00603485107421875,
0.011505126953125,
-0.0293731689453125,
-0.029632568359375,
0.046783447265625,
-0.06854248046875,
-0.0185699462890625,
-0.01538848876953125,
0.02667236328125,
0.056549072265625,
-0.0114288330078125,
-0.085205078125,
0.04998779296875,
-0.02880859375,
-0.038177490234375,
-0.10174560546875,
0.055023193359375,
0.00107574462890625,
0.00659942626953125,
-0.020751953125,
-0.0138702392578125,
0.0310516357421875,
0.05035400390625,
-0.00992584228515625,
-0.01134490966796875,
0.0411376953125,
-0.022064208984375,
-0.06329345703125,
-0.026702880859375,
-0.016021728515625,
-0.0305938720703125,
0.0244598388671875,
-0.03692626953125,
0.057037353515625,
0.043853759765625,
-0.027923583984375,
-0.005901336669921875,
0.007843017578125,
-0.0159759521484375,
-0.033477783203125,
-0.054718017578125,
-0.00498199462890625,
0.01067352294921875,
0.07403564453125,
0.0526123046875,
0.02362060546875,
-0.056671142578125,
0.0233154296875,
-0.004955291748046875,
-0.06817626953125,
-0.0002008676528930664,
0.0300140380859375,
-0.0472412109375,
-0.006923675537109375,
0.003681182861328125,
-0.01532745361328125,
-0.018096923828125,
-0.0244903564453125,
-0.04864501953125,
-0.019866943359375,
-0.051605224609375,
0.016357421875,
-0.0430908203125,
0.04400634765625,
0.055938720703125,
-0.044464111328125,
0.01561737060546875,
-0.0093841552734375,
-0.0217132568359375,
0.033599853515625,
-0.00312042236328125,
0.0246124267578125,
0.00449371337890625,
-0.01560211181640625,
0.021148681640625,
0.01232147216796875,
0.0116729736328125,
-0.0178680419921875,
-0.0194244384765625,
0.0153961181640625,
0.027984619140625,
-0.0042266845703125,
0.0257568359375,
-0.004375457763671875,
0.055328369140625,
-0.007694244384765625,
0.054534912109375,
-0.019500732421875,
0.020355224609375,
-0.0115966796875,
0.020294189453125,
-0.01151275634765625,
0.00417327880859375,
0.03533935546875,
-0.031768798828125,
-0.0101470947265625,
0.00768280029296875,
-0.058441162109375,
-0.0234832763671875,
0.00551605224609375,
0.0057830810546875,
-0.020751953125,
0.002460479736328125
] |
7b3f2c49d0fdd4d86e9fa1b9f6b6c287edcb885b
|
Wordpress Stackexchange
Q: How can I have network sites not use year/month folders by default? When creating a new network site, by default the site option Uploads Use Yearmonth Folders is on (set to 1). I have to set it to 0 each time I create a new site. This isn't horrid, but is it possible to make this the default for newly created sites? Perhaps a hook or something I am overlooking?
A: You could just change the option after the blog is created:
add_action('wpmu_new_blog', function($blog_id){
switch_to_blog($blog_id);
update_option('uploads_use_yearmonth_folders', false);
restore_current_blog();
});
Drop this code into a .php file inside wp-content/mu-plugins
|
Q: How can I have network sites not use year/month folders by default? When creating a new network site, by default the site option Uploads Use Yearmonth Folders is on (set to 1). I have to set it to 0 each time I create a new site. This isn't horrid, but is it possible to make this the default for newly created sites? Perhaps a hook or something I am overlooking?
A: You could just change the option after the blog is created:
add_action('wpmu_new_blog', function($blog_id){
switch_to_blog($blog_id);
update_option('uploads_use_yearmonth_folders', false);
restore_current_blog();
});
Drop this code into a .php file inside wp-content/mu-plugins
A: I'm a little confused by your question. Are you referring to URLs? If so go to Settings > Permalinks and adjust from there.
|
wordpress
|
{
"language": "en",
"length": 123,
"provenance": "stackexchange_00019.jsonl.gz:411318",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/22994"
}
|
[
0.020294189453125,
-0.055328369140625,
-0.005062103271484375,
-0.01480865478515625,
-0.03326416015625,
-0.034027099609375,
0.051055908203125,
0.004535675048828125,
0.0670166015625,
-0.0095672607421875,
-0.042877197265625,
-0.0283050537109375,
0.0048370361328125,
-0.031585693359375,
-0.017242431640625,
-0.021820068359375,
0.039459228515625,
-0.020294189453125,
0.01149749755859375,
-0.0029392242431640625,
-0.01546478271484375,
0.023223876953125,
0.0068817138671875,
0.004863739013671875,
0.0186309814453125,
-0.0220947265625,
0.03594970703125,
-0.00720977783203125,
0.01227569580078125,
-0.03472900390625,
0.0230560302734375,
0.01422882080078125,
0.024993896484375,
-0.0270233154296875,
0.031097412109375,
0.042266845703125,
-0.00617218017578125,
0.005706787109375,
0.023773193359375,
-0.004276275634765625,
0.00122833251953125,
-0.01031494140625,
0.037872314453125,
-0.016815185546875,
0.005367279052734375,
-0.00791168212890625,
-0.0027294158935546875,
-0.045013427734375,
0.01155853271484375,
-0.004955291748046875,
-0.0194244384765625,
-0.018951416015625,
0.0032329559326171875,
-0.0108489990234375,
-0.039794921875,
-0.072509765625,
-0.01488494873046875,
0.0177154541015625,
0.01514434814453125,
0.005290985107421875,
-0.0137481689453125,
0.032440185546875,
0.0098724365234375,
0.00525665283203125,
0.006084442138671875,
-0.0032100677490234375,
0.025177001953125,
0.035736083984375,
-0.08648681640625,
-0.02789306640625,
0.036376953125,
-0.047119140625,
0.02197265625,
-0.0440673828125,
0.0168304443359375,
0.058349609375,
-0.03314208984375,
0.0227203369140625,
0.046966552734375,
-0.04144287109375,
-0.00215911865234375,
-0.00923919677734375,
-0.004596710205078125,
-0.06390380859375,
0.043731689453125,
-0.02386474609375,
0.00867462158203125,
0.0024356842041015625,
-0.0218658447265625,
0.01323699951171875,
-0.035491943359375,
0.0231475830078125,
-0.0059051513671875,
-0.006893157958984375,
-0.0211639404296875,
-0.01971435546875,
0.03765869140625,
0.10308837890625,
-0.0181732177734375,
-0.005596160888671875,
-0.046173095703125,
-0.002597808837890625,
-0.044891357421875,
-0.028564453125,
0.0308837890625,
0.0631103515625,
-0.0194854736328125,
-0.07733154296875,
0.040863037109375,
-0.002532958984375,
0.0084381103515625,
0.046051025390625,
-0.01030731201171875,
-0.0562744140625,
0.003078460693359375,
0.027130126953125,
-0.007457733154296875,
-0.006259918212890625,
0.023956298828125,
-0.031585693359375,
-0.0013103485107421875,
0.02606201171875,
-0.034637451171875,
-0.03173828125,
0.01184844970703125,
-0.02545166015625,
-0.03790283203125,
0.017822265625,
-0.059295654296875,
0.010772705078125,
-0.02349853515625,
0.0213165283203125,
0.03790283203125,
0.0271453857421875,
0.004276275634765625,
-0.0107879638671875,
0.03753662109375,
-0.036346435546875,
-0.056060791015625,
0.067138671875,
-0.023651123046875,
-0.031158447265625,
-0.0155792236328125,
-0.04278564453125,
-0.0029239654541015625,
0.042022705078125,
0.032562255859375,
0.0028839111328125,
-0.0196380615234375,
-0.03900146484375,
-0.03985595703125,
0.03131103515625,
0.0171051025390625,
0.0027484893798828125,
-0.02008056640625,
-0.06439208984375,
0.00013458728790283203,
-0.02679443359375,
0.0242919921875,
-0.04119873046875,
-0.00888824462890625,
-0.007572174072265625,
-0.0254058837890625,
-0.059356689453125,
-0.07110595703125,
0.001560211181640625,
0.0032958984375,
0.00586700439453125,
0.0216064453125,
-0.0021190643310546875,
-0.01273345947265625,
-0.0384521484375,
0.03533935546875,
-0.0123138427734375,
-0.0194244384765625,
0.040374755859375,
0.003223419189453125,
0.03179931640625,
-0.001293182373046875,
0.043853759765625,
0.010040283203125,
-0.046142578125,
0.048187255859375,
-0.007717132568359375,
-0.047515869140625,
-0.037261962890625,
0.0029754638671875,
-0.032135009765625,
0.041656494140625,
0.0001842975616455078,
0.084228515625,
0.00388336181640625,
-0.0408935546875,
-0.006256103515625,
0.0171051025390625,
0.01044464111328125,
-0.02362060546875,
-0.00127410888671875,
-0.00370025634765625,
-0.01171875,
-0.032623291015625,
0.01230621337890625,
-0.01049041748046875,
0.049163818359375,
0.041534423828125,
-0.01641845703125,
0.00778961181640625,
0.0066375732421875,
-0.00852203369140625,
-0.0103912353515625,
0.0299835205078125,
0.0061187744140625,
-0.01983642578125,
-0.045623779296875,
-0.0305633544921875,
0.04925537109375,
0.005672454833984375,
0.045196533203125,
0.0015544891357421875,
0.01332855224609375,
0.020111083984375,
-0.002178192138671875,
0.029327392578125,
0.04376220703125,
0.04742431640625,
-0.037445068359375,
-0.01708984375,
-0.039306640625,
0.0311737060546875,
-0.00713348388671875,
-0.0406494140625,
0.048370361328125,
-0.06427001953125,
0.01306915283203125,
-0.0016641616821289062,
0.0168609619140625,
0.0007119178771972656,
-0.0003762245178222656,
0.025665283203125,
0.012908935546875,
0.0293121337890625,
0.042083740234375,
0.01442718505859375,
0.01500701904296875,
0.01454925537109375,
-0.017791748046875,
0.0281524658203125,
-0.01554107666015625,
0.0037288665771484375,
0.034271240234375,
-0.0033168792724609375,
-0.007167816162109375,
-0.0033931732177734375,
-0.048431396484375,
0.002910614013671875,
0.0163726806640625,
-0.026153564453125,
-0.0640869140625,
0.041595458984375,
-0.03704833984375,
0.031768798828125,
-0.0015621185302734375,
-0.0294189453125,
0.023834228515625,
0.058258056640625,
-0.0143890380859375,
0.0369873046875,
0.0196380615234375,
-0.00550079345703125,
0.00556182861328125,
-0.00011646747589111328,
-0.0570068359375,
0.00403594970703125,
0.028350830078125,
0.06243896484375,
-0.036865234375,
-0.02252197265625,
-0.036407470703125,
0.03265380859375,
0.0305328369140625,
-0.0301361083984375,
0.0242156982421875,
-0.033416748046875,
-0.01245880126953125,
-0.0197296142578125,
-0.0157012939453125,
0.005855560302734375,
-0.0199432373046875,
-0.00992584228515625,
-0.01082611083984375,
0.046173095703125,
-0.03509521484375,
-0.0280914306640625,
-0.01090240478515625,
0.02154541015625,
-0.049468994140625,
-0.036956787109375,
-0.01209259033203125,
0.0202484130859375,
-0.0159149169921875,
0.007183074951171875,
0.05511474609375,
0.021209716796875,
0.0048675537109375,
-0.0095062255859375,
-0.014984130859375,
-0.0210723876953125,
0.04022216796875,
-0.0013275146484375,
-0.0081634521484375,
-0.06280517578125,
-0.0163116455078125,
-0.00811004638671875,
-0.033935546875,
-0.0159912109375,
-0.023712158203125,
-0.023101806640625,
-0.046875,
-0.0626220703125,
-0.008392333984375,
-0.00695037841796875,
-0.06719970703125,
0.03192138671875,
0.00399017333984375,
-0.0213623046875,
-0.037445068359375,
0.035491943359375,
0.0215606689453125,
-0.00363922119140625,
-0.04888916015625,
-0.006488800048828125,
-0.045318603515625,
-0.048004150390625,
-0.0076446533203125,
0.0210113525390625,
-0.0014352798461914062,
-0.0199737548828125,
0.044586181640625,
-0.01446533203125,
-0.046234130859375,
-0.036773681640625,
0.002300262451171875,
0.00328826904296875,
-0.0167083740234375,
0.036041259765625,
-0.00649261474609375,
-0.007610321044921875,
0.00609588623046875,
0.02325439453125,
0.0677490234375,
-0.053680419921875,
-0.0101318359375,
0.00554656982421875,
-0.00942230224609375,
-0.003498077392578125,
0.052947998046875,
-0.00797271728515625,
-0.031890869140625,
-0.00466156005859375,
-0.0628662109375,
-0.044677734375,
-0.001285552978515625,
-0.0645751953125,
-0.00174713134765625,
0.0056610107421875,
0.00821685791015625,
-0.011749267578125,
0.016632080078125,
-0.0187530517578125,
-0.01415252685546875,
0.033111572265625,
-0.062164306640625,
0.015289306640625,
-0.0189971923828125,
-0.0304107666015625,
-0.017059326171875,
0.0872802734375,
0.01415252685546875,
-0.0102996826171875,
0.035125732421875,
0.036346435546875,
0.0207061767578125,
-0.0199737548828125,
-0.038177490234375,
-0.04229736328125,
-0.002593994140625,
-0.130126953125,
0.01068878173828125,
-0.06549072265625,
0.0447998046875,
-0.01184844970703125,
0.046142578125,
-0.05401611328125,
-0.0092620849609375,
-0.0213775634765625,
0.0298919677734375,
-0.00090789794921875,
-0.072509765625,
0.0026721954345703125,
-0.016693115234375,
0.0186614990234375,
0.0052337646484375,
-0.027313232421875,
0.006175994873046875,
-0.00632476806640625,
-0.060394287109375,
0.018096923828125,
-0.038848876953125,
0.046234130859375,
0.0122833251953125,
0.0282440185546875,
-0.0232391357421875,
0.00959014892578125,
-0.0172119140625,
-0.0013265609741210938,
-0.0137786865234375,
-0.08404541015625,
-0.021881103515625,
-0.020782470703125,
0.062286376953125,
-0.00627899169921875,
0.01151275634765625,
-0.046905517578125,
0.041412353515625,
-0.019134521484375,
-0.01959228515625,
-0.0064239501953125,
0.0158538818359375,
0.0010986328125,
0.023773193359375,
-0.0062103271484375,
-0.0202789306640625,
0.014678955078125,
-0.026763916015625,
-0.06298828125,
0.015899658203125,
-0.02117919921875,
0.05572509765625,
0.0020999908447265625,
-0.0201416015625,
-0.0178680419921875,
-0.04119873046875,
-0.036834716796875,
0.0162353515625,
-0.0221405029296875,
0.00901031494140625,
-0.038787841796875,
-0.034271240234375,
0.043212890625,
-0.016754150390625,
-0.002788543701171875,
-0.00679779052734375,
0.0797119140625,
0.0137176513671875,
-0.0153350830078125,
-0.00862884521484375,
0.0323486328125,
0.007068634033203125,
-0.040008544921875,
0.0577392578125,
0.01311492919921875,
0.0106964111328125,
0.035552978515625,
-0.045867919921875,
0.0032558441162109375,
-0.0283660888671875,
0.0309906005859375,
-0.006183624267578125,
-0.0140228271484375,
0.0175018310546875,
-0.020965576171875,
0.027862548828125,
-0.0011434555053710938,
-0.00615692138671875,
0.01062774658203125,
-0.005634307861328125,
0.0304412841796875,
0.0174407958984375,
-0.0164031982421875,
-0.05169677734375,
-0.031646728515625,
0.02154541015625,
-0.037017822265625,
-0.0038356781005859375,
-0.00305938720703125,
0.00536346435546875,
0.007701873779296875,
0.0124053955078125,
-0.00945281982421875,
0.012786865234375,
-0.01248931884765625,
0.0007448196411132812,
0.02374267578125,
0.004596710205078125,
-0.027374267578125,
0.0180511474609375,
-0.01129150390625,
-0.0029354095458984375,
0.006488800048828125,
-0.0239410400390625,
0.0193939208984375,
-0.01495361328125,
0.0670166015625,
0.0180816650390625,
-0.0452880859375,
0.0478515625,
0.04345703125,
-0.00453948974609375,
0.00799560546875,
-0.07183837890625,
0.004924774169921875,
-0.05438232421875,
-0.0026454925537109375,
0.009490966796875,
-0.01233673095703125,
0.0303497314453125,
-0.00719451904296875,
0.00347137451171875,
0.007312774658203125,
-0.0199737548828125,
0.04278564453125,
0.035125732421875,
0.01519775390625,
0.006763458251953125,
0.00798797607421875,
-0.005039215087890625,
0.01303863525390625,
0.0211029052734375,
-0.0386962890625,
0.018463134765625,
0.020904541015625,
0.027587890625,
-0.0086212158203125,
-0.04150390625,
0.0364990234375,
-0.0229644775390625,
0.031280517578125,
-0.01357269287109375,
-0.03961181640625,
-0.0003173351287841797,
-0.023223876953125,
-0.02471923828125,
0.0249176025390625,
-0.0201873779296875,
-0.0028934478759765625,
-0.032012939453125,
-0.022735595703125,
-0.02227783203125,
0.0086517333984375,
-0.055633544921875,
-0.000043392181396484375,
0.01177978515625,
0.0242462158203125,
-0.0275726318359375,
0.016357421875,
-0.022125244140625,
0.046539306640625,
-0.0738525390625,
-0.0302886962890625,
0.1143798828125,
-0.04266357421875,
0.009613037109375,
-0.01444244384765625,
0.004119873046875,
0.0192413330078125,
0.029266357421875,
0.0298004150390625,
0.01824951171875,
-0.026123046875,
-0.019378662109375,
-0.0604248046875,
-0.04754638671875,
-0.01508331298828125,
0.017333984375,
-0.03497314453125,
-0.00571441650390625,
0.038726806640625,
0.03411865234375,
0.00550079345703125,
-0.0364990234375,
-0.0119781494140625,
0.0040283203125,
0.027923583984375,
0.04931640625,
-0.01374053955078125,
0.023223876953125,
0.051788330078125,
0.01480865478515625,
0.0269012451171875,
-0.01197052001953125,
-0.02056884765625,
-0.01168060302734375,
0.00566864013671875,
-0.053802490234375,
-0.0212554931640625,
0.007526397705078125,
-0.06805419921875,
0.0121307373046875,
0.048797607421875,
0.0017957687377929688,
0.0279541015625,
0.0015382766723632812,
0.0229644775390625,
-0.03851318359375,
-0.00981903076171875,
-0.05084228515625,
0.0249481201171875,
-0.037261962890625,
0.013275146484375,
0.06768798828125,
-0.003997802734375,
-0.0577392578125,
0.036407470703125,
0.0090789794921875,
0.05352783203125,
-0.00868988037109375,
-0.02142333984375,
0.041259765625,
0.005573272705078125,
-0.044342041015625,
0.00008046627044677734,
-0.0035877227783203125,
0.0003485679626464844,
-0.0130462646484375,
-0.01206207275390625,
0.0067596435546875,
0.0265045166015625,
0.0582275390625,
-0.00437164306640625,
0.0098724365234375,
0.0477294921875,
-0.007236480712890625,
0.0182952880859375,
0.0379638671875,
0.049163818359375,
-0.053802490234375,
0.0096282958984375,
0.0136566162109375,
0.00894927978515625,
0.060150146484375,
-0.045379638671875,
-0.006526947021484375,
-0.042022705078125,
0.061920166015625,
-0.01432037353515625,
-0.03900146484375,
-0.00995635986328125,
-0.00490570068359375,
-0.0140533447265625,
0.00728607177734375,
-0.0018558502197265625,
0.025421142578125,
0.024017333984375,
-0.034332275390625,
-0.00861358642578125,
0.0013952255249023438,
-0.0126953125,
0.01239776611328125,
-0.032073974609375,
0.0026702880859375,
-0.0665283203125,
-0.04156494140625,
-0.033416748046875,
-0.0001678466796875,
0.049407958984375,
-0.030059814453125,
0.00264739990234375,
0.0335693359375,
-0.028961181640625,
0.039398193359375,
0.00433349609375,
-0.0072174072265625,
-0.0294342041015625,
-0.0165557861328125,
0.027099609375,
0.0118255615234375,
-0.02130126953125,
0.02227783203125,
-0.0175933837890625,
-0.04107666015625,
0.018280029296875,
-0.034912109375,
0.0247955322265625,
-0.0269622802734375,
-0.0245513916015625,
0.015869140625,
-0.018798828125,
-0.00664520263671875,
-0.0223236083984375,
0.034637451171875,
-0.057861328125,
-0.0301666259765625,
-0.01297760009765625,
-0.042449951171875,
-0.015869140625,
-0.019775390625,
-0.03887939453125,
0.06390380859375,
-0.036590576171875,
-0.0022258758544921875,
0.0101165771484375,
0.022918701171875,
-0.0099945068359375,
0.013092041015625,
-0.048553466796875,
0.0291290283203125,
0.026824951171875,
-0.031707763671875,
-0.047698974609375,
0.007122039794921875,
-0.061065673828125,
-0.01253509521484375,
0.060546875,
0.0022335052490234375,
-0.02593994140625,
-0.0142669677734375,
0.07086181640625,
0.031158447265625,
-0.0032520294189453125,
0.034881591796875,
-0.0187530517578125,
-0.02392578125,
0.016845703125,
-0.020233154296875,
-0.0180511474609375,
0.06427001953125,
-0.026763916015625,
0.018707275390625,
0.016754150390625,
0.0119781494140625,
-0.0152587890625,
-0.0290374755859375,
-0.0379638671875,
-0.006221771240234375,
0.0216217041015625,
0.01409912109375,
0.000827789306640625,
0.04296875,
0.053314208984375,
-0.06634521484375,
-0.035491943359375,
-0.031982421875,
0.053131103515625,
0.010528564453125,
0.022735595703125,
0.032257080078125,
0.016082763671875,
0.0005807876586914062,
0.01715087890625,
0.019744873046875,
0.01395416259765625,
-0.0247039794921875,
0.002979278564453125,
-0.0226593017578125,
0.0194854736328125,
-0.043212890625,
-0.06927490234375,
0.035308837890625,
0.029205322265625,
0.01413726806640625,
-0.0167236328125,
0.026580810546875,
-0.00415802001953125,
-0.00890350341796875,
0.004032135009765625,
-0.001766204833984375,
-0.0289306640625,
0.004070281982421875,
-0.027862548828125,
0.01369476318359375,
0.0164947509765625,
0.0029354095458984375,
-0.00174713134765625,
0.02099609375,
-0.0266571044921875,
0.01776123046875,
-0.022247314453125,
0.03668212890625,
-0.00096893310546875,
0.0158233642578125,
-0.018280029296875,
0.03680419921875,
-0.03204345703125,
0.010040283203125,
0.0046539306640625,
0.01763916015625,
-0.006649017333984375,
-0.01036834716796875,
-0.024261474609375,
-0.03680419921875,
0.0113983154296875,
0.02728271484375,
0.044158935546875,
0.024749755859375,
0.063232421875,
0.0016241073608398438,
-0.035400390625,
0.00800323486328125,
-0.00021374225616455078,
-0.032135009765625,
-0.0285491943359375,
-0.029388427734375,
0.0187530517578125,
0.04583740234375,
0.0122833251953125,
0.01187896728515625,
-0.006275177001953125,
0.07952880859375,
-0.036865234375,
0.05010986328125,
-0.014404296875,
-0.03411865234375,
0.0215911865234375,
0.0047149658203125,
0.10528564453125,
-0.0082855224609375,
-0.00038886070251464844,
0.00464630126953125,
-0.06341552734375,
-0.02362060546875,
0.007053375244140625,
0.035675048828125,
0.031494140625,
0.0053863525390625,
-0.0095672607421875,
0.0218048095703125,
-0.00823211669921875,
-0.02166748046875,
-0.001895904541015625,
0.022918701171875,
0.031280517578125,
0.01467132568359375,
-0.047698974609375,
-0.024505615234375,
-0.0273590087890625,
0.02557373046875,
-0.00794219970703125,
0.119873046875,
-0.024322509765625,
0.00415802001953125,
0.058258056640625,
0.0159149169921875,
-0.00878143310546875,
0.0206756591796875,
-0.0021038055419921875,
-0.042816162109375,
0.0259857177734375,
-0.00400543212890625,
-0.0204010009765625,
-0.01556396484375,
0.020965576171875,
-0.040771484375,
-0.031524658203125,
-0.0130615234375,
0.0257568359375,
0.02490234375,
0.01812744140625,
-0.035980224609375,
-0.0193328857421875,
-0.034027099609375,
-0.013885498046875,
0.0138397216796875,
-0.0017271041870117188,
-0.0054779052734375,
0.0478515625,
-0.054962158203125,
-0.01473236083984375,
0.031341552734375,
-0.03533935546875,
0.0006213188171386719,
0.010528564453125,
-0.003536224365234375,
-0.00908660888671875,
-0.0082550048828125,
-0.01320648193359375,
0.0126800537109375,
-0.0013837814331054688,
-0.0129547119140625,
0.0286102294921875,
-0.037017822265625,
0.00435638427734375,
0.01255035400390625,
0.031341552734375,
-0.032196044921875,
0.01512908935546875,
0.001834869384765625,
0.0063323974609375,
0.0167083740234375,
-0.0277099609375,
-0.005374908447265625,
-0.03033447265625,
-0.01678466796875,
0.0218505859375,
-0.0194244384765625,
-0.012054443359375,
-0.0014963150024414062,
0.02081298828125,
0.04388427734375,
0.0222625732421875,
-0.0975341796875,
0.08026123046875,
-0.051177978515625,
0.063232421875,
-0.0139007568359375,
0.0185699462890625,
-0.0308074951171875,
-0.04364013671875,
-0.044525146484375,
-0.025604248046875,
-0.034576416015625,
0.04998779296875,
0.00785064697265625,
-0.009429931640625,
-0.0038242340087890625,
0.01389312744140625,
0.0286865234375,
-0.007740020751953125,
-0.0254974365234375,
0.046478271484375,
-0.048980712890625,
-0.020751953125,
0.0017251968383789062,
-0.014373779296875,
-0.00501251220703125,
-0.0310821533203125,
0.01070404052734375,
-0.058258056640625,
-0.0163421630859375,
0.0343017578125,
-0.06292724609375,
-0.0299072265625,
-0.06671142578125,
-0.0841064453125,
0.0306549072265625,
0.004932403564453125,
-0.051849365234375,
-0.0097503662109375,
0.01451873779296875,
-0.032958984375,
0.06219482421875,
0.006862640380859375,
-0.0107269287109375,
0.0250244140625,
0.0240631103515625,
-0.0009016990661621094,
-0.01445770263671875,
0.01055908203125,
-0.0204010009765625,
-0.0280303955078125,
0.01398468017578125,
0.030731201171875,
-0.01453399658203125,
0.047882080078125,
-0.0180816650390625,
0.057952880859375,
0.056182861328125,
-0.0193023681640625,
0.0250091552734375,
-0.0140533447265625,
-0.0594482421875,
-0.0233154296875,
-0.0068206787109375,
-0.045989990234375,
-0.0243988037109375,
0.0850830078125,
0.07647705078125,
0.01261138916015625,
-0.0198516845703125,
-0.02679443359375,
0.006683349609375,
-0.0202789306640625,
-0.01203155517578125,
0.0304412841796875,
-0.093017578125,
-0.0089263916015625,
0.0036468505859375,
-0.0265960693359375,
0.0016584396362304688,
-0.007232666015625,
-0.03228759765625,
0.0015506744384765625,
0.0008449554443359375,
-0.00589752197265625,
-0.03765869140625,
0.0263214111328125,
0.0086669921875,
-0.01534271240234375,
0.019378662109375,
-0.0245819091796875,
-0.0031948089599609375,
0.004241943359375,
-0.00011050701141357422,
-0.007595062255859375,
0.024993896484375,
-0.04010009765625,
-0.00936126708984375,
0.01474761962890625,
-0.00815582275390625,
-0.00853729248046875,
0.0011434555053710938,
0.033203125,
-0.0233306884765625,
-0.023101806640625,
-0.02325439453125,
0.0160064697265625,
-0.025482177734375,
-0.053863525390625,
0.006946563720703125,
-0.01219940185546875,
-0.00958251953125,
-0.01441192626953125,
0.027252197265625,
-0.04815673828125,
-0.00945281982421875,
-0.00984954833984375,
-0.045745849609375,
0.0006914138793945312,
-0.003749847412109375,
0.01398468017578125,
-0.04193115234375,
0.0239105224609375,
-0.063720703125,
-0.00007128715515136719,
0.009979248046875
] |
128ca4460a7a0edd7727534456f2348dc03761fd
|
Wordpress Stackexchange
Q: How do I remove dashboard access from specific user roles? I'd like to prevent certain user roles from accessing the dashboard http://www.openeye.net/wp-admin/ at all. I've moved and restyled user profiles to a new page that's viewable on the site. How would I go about doing this?
A: //If User Roll is Subscriber, It can not login in Dashboard
function wpse23007_redirect()
{
if( is_admin() && !defined('DOING_AJAX') && current_user_can('subscriber') )
{
wp_logout();
wp_redirect(home_url());
exit;
}
}
add_action('init','wpse23007_redirect');
|
Q: How do I remove dashboard access from specific user roles? I'd like to prevent certain user roles from accessing the dashboard http://www.openeye.net/wp-admin/ at all. I've moved and restyled user profiles to a new page that's viewable on the site. How would I go about doing this?
A: //If User Roll is Subscriber, It can not login in Dashboard
function wpse23007_redirect()
{
if( is_admin() && !defined('DOING_AJAX') && current_user_can('subscriber') )
{
wp_logout();
wp_redirect(home_url());
exit;
}
}
add_action('init','wpse23007_redirect');
A: To lock subscribers and contributors out of the admin:
function wpse23007_redirect(){
if( is_admin() && !defined('DOING_AJAX') && ( current_user_can('subscriber') || current_user_can('contributor') ) ){
wp_redirect(home_url());
exit;
}
}
add_action('init','wpse23007_redirect');
Hope that helps. All roles give the user a capability that is the name of that role, so you can use any role name as a capability.
A: Yes, you would need to use the current_user_can( $capability ) function. Here is the official WordPress reference:
https://codex.wordpress.org/Function_Reference/current_user_can
A: add_action('init', function(){
$redirect = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : home_url( '/' );
$user = wp_get_current_user();
if ( !defined('DOING_AJAX') && in_array( 'subscriber', (array) $user->roles ) ) {
wp_redirect($redirect);
exit();
}
});
|
wordpress
|
{
"language": "en",
"length": 182,
"provenance": "stackexchange_00019.jsonl.gz:411323",
"question_score": "13",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23007"
}
|
[
0.06951904296875,
0.028167724609375,
-0.006076812744140625,
-0.0012865066528320312,
0.040069580078125,
-0.05645751953125,
0.06201171875,
-0.05877685546875,
-0.027130126953125,
0.052520751953125,
0.052398681640625,
-0.0192108154296875,
-0.0005965232849121094,
-0.03179931640625,
-0.023590087890625,
-0.026397705078125,
0.0062408447265625,
-0.0295867919921875,
0.017059326171875,
-0.0178375244140625,
0.0086669921875,
-0.0243682861328125,
0.039306640625,
-0.01001739501953125,
-0.01312255859375,
0.007476806640625,
0.006549835205078125,
-0.005573272705078125,
-0.036773681640625,
-0.0224456787109375,
-0.005580902099609375,
0.0261383056640625,
-0.018585205078125,
0.053192138671875,
-0.0144195556640625,
-0.005306243896484375,
-0.0278167724609375,
0.038177490234375,
0.05706787109375,
-0.02996826171875,
0.0164031982421875,
-0.0022869110107421875,
-0.01556396484375,
0.0142364501953125,
-0.0229644775390625,
-0.0199432373046875,
0.01114654541015625,
-0.0169219970703125,
0.0286407470703125,
0.027252197265625,
0.025177001953125,
0.0211029052734375,
0.0357666015625,
-0.0104217529296875,
-0.017669677734375,
-0.01444244384765625,
-0.01027679443359375,
0.0193939208984375,
0.026458740234375,
0.0263214111328125,
-0.015655517578125,
-0.00862884521484375,
-0.006587982177734375,
-0.041717529296875,
0.0009751319885253906,
-0.01474761962890625,
0.01113128662109375,
0.030731201171875,
-0.058197021484375,
-0.02294921875,
0.0184173583984375,
-0.01535797119140625,
0.006137847900390625,
-0.00974273681640625,
-0.0260009765625,
-0.0127410888671875,
0.0166168212890625,
-0.022430419921875,
0.0126495361328125,
-0.00693511962890625,
-0.0178680419921875,
-0.0170440673828125,
-0.019378662109375,
0.02935791015625,
-0.01177978515625,
0.04150390625,
-0.03045654296875,
-0.0101776123046875,
-0.00511932373046875,
0.0028514862060546875,
-0.0140380859375,
-0.00988006591796875,
-0.0004925727844238281,
0.01367950439453125,
-0.0143280029296875,
-0.01029205322265625,
0.0521240234375,
0.07843017578125,
-0.01354217529296875,
-0.04449462890625,
-0.0012502670288085938,
-0.0160369873046875,
-0.07855224609375,
-0.0089263916015625,
0.0118408203125,
0.07049560546875,
-0.0096588134765625,
-0.0056610107421875,
0.0267181396484375,
0.01308441162109375,
0.025115966796875,
-0.020294189453125,
-0.0208282470703125,
-0.0088043212890625,
-0.048492431640625,
0.028411865234375,
-0.0237579345703125,
-0.03424072265625,
-0.01369476318359375,
0.00991058349609375,
-0.05096435546875,
-0.02227783203125,
-0.0197601318359375,
-0.04107666015625,
0.028076171875,
-0.027008056640625,
-0.04095458984375,
0.052642822265625,
-0.01447296142578125,
-0.0009775161743164062,
-0.0487060546875,
0.0118408203125,
0.07037353515625,
0.0347900390625,
0.0289306640625,
-0.0240020751953125,
0.054290771484375,
-0.01226806640625,
-0.006023406982421875,
0.034515380859375,
0.00030112266540527344,
-0.045867919921875,
-0.03082275390625,
-0.002681732177734375,
-0.0123291015625,
0.01412200927734375,
0.0223541259765625,
0.009063720703125,
-0.0171051025390625,
-0.01873779296875,
-0.034698486328125,
0.0081787109375,
0.0255126953125,
0.00745391845703125,
0.036834716796875,
-0.005290985107421875,
0.052703857421875,
-0.0177001953125,
-0.033782958984375,
-0.01934814453125,
0.033111572265625,
0.010345458984375,
0.0235137939453125,
-0.0205078125,
-0.034820556640625,
-0.0310516357421875,
-0.04022216796875,
-0.0023517608642578125,
0.0299835205078125,
-0.01494598388671875,
0.032867431640625,
-0.05255126953125,
0.0242462158203125,
0.0287933349609375,
0.0189361572265625,
0.06536865234375,
-0.0185699462890625,
0.016387939453125,
0.01219940185546875,
-0.0250701904296875,
-0.02838134765625,
-0.041717529296875,
0.01401519775390625,
0.01141357421875,
-0.059600830078125,
-0.0093231201171875,
0.004886627197265625,
0.0189971923828125,
0.022125244140625,
0.00733184814453125,
0.06207275390625,
0.0113677978515625,
-0.0020618438720703125,
-0.0167694091796875,
0.0036602020263671875,
-0.040008544921875,
-0.007251739501953125,
-0.0243988037109375,
-0.008941650390625,
0.041961669921875,
0.1156005859375,
0.01873779296875,
-0.01544952392578125,
-0.036712646484375,
-0.0560302734375,
-0.0246124267578125,
0.0024776458740234375,
0.0211334228515625,
-0.00264739990234375,
-0.00043964385986328125,
0.0179901123046875,
0.0038166046142578125,
-0.0267181396484375,
-0.007114410400390625,
-0.0188751220703125,
0.004154205322265625,
-0.03387451171875,
0.0455322265625,
0.001911163330078125,
0.037933349609375,
0.0165557861328125,
-0.063720703125,
0.0221099853515625,
-0.010284423828125,
0.0517578125,
0.0143585205078125,
-0.01788330078125,
0.00566864013671875,
0.0869140625,
0.009735107421875,
0.0162506103515625,
-0.0018186569213867188,
0.032318115234375,
0.018218994140625,
-0.00797271728515625,
0.0116729736328125,
0.0255584716796875,
-0.075927734375,
0.0012359619140625,
0.04168701171875,
0.0277099609375,
-0.0048828125,
-0.027435302734375,
0.0118255615234375,
-0.032684326171875,
-0.10107421875,
-0.01163482666015625,
0.0178375244140625,
-0.023101806640625,
0.049896240234375,
-0.0299224853515625,
0.05706787109375,
0.0106353759765625,
0.03839111328125,
-0.0254058837890625,
0.0560302734375,
-0.00865936279296875,
0.042816162109375,
-0.0105133056640625,
-0.022674560546875,
-0.00679779052734375,
-0.01476287841796875,
0.004055023193359375,
-0.029815673828125,
0.005039215087890625,
-0.043365478515625,
-0.00812530517578125,
-0.004505157470703125,
-0.003726959228515625,
-0.042083740234375,
0.035675048828125,
0.00008821487426757812,
-0.0144500732421875,
0.03558349609375,
0.05145263671875,
-0.03350830078125,
-0.049041748046875,
0.0010404586791992188,
-0.0119781494140625,
0.018585205078125,
0.0048828125,
0.030242919921875,
0.037109375,
-0.01551055908203125,
0.0224456787109375,
-0.0012264251708984375,
0.0225067138671875,
-0.01522064208984375,
0.03131103515625,
-0.0023250579833984375,
0.0244598388671875,
-0.0036602020263671875,
-0.01163482666015625,
0.0394287109375,
0.018035888671875,
-0.030609130859375,
-0.06378173828125,
-0.0634765625,
0.04400634765625,
-0.039215087890625,
0.017822265625,
0.0875244140625,
0.0228424072265625,
0.0146331787109375,
0.010345458984375,
-0.0277099609375,
-0.0175933837890625,
0.0283660888671875,
0.02069091796875,
-0.009735107421875,
-0.0089569091796875,
0.08367919921875,
0.027984619140625,
-0.023284912109375,
0.047332763671875,
0.008758544921875,
0.0162353515625,
0.0335693359375,
-0.006458282470703125,
0.0024051666259765625,
0.008148193359375,
-0.051788330078125,
0.0272979736328125,
-0.003574371337890625,
-0.0250244140625,
-0.0240478515625,
0.040740966796875,
0.0033588409423828125,
0.0294036865234375,
0.005054473876953125,
-0.051727294921875,
0.0061798095703125,
-0.034576416015625,
0.03271484375,
-0.014678955078125,
-0.003711700439453125,
0.00585174560546875,
0.0207977294921875,
-0.0104217529296875,
-0.0308990478515625,
-0.0025577545166015625,
0.004993438720703125,
0.009796142578125,
-0.00954437255859375,
-0.0279541015625,
-0.0091552734375,
0.0032329559326171875,
0.003032684326171875,
-0.0159759521484375,
-0.031646728515625,
0.04364013671875,
-0.0203399658203125,
0.00681304931640625,
-0.0201263427734375,
0.005268096923828125,
0.02252197265625,
-0.0136871337890625,
-0.0004825592041015625,
0.0316162109375,
-0.03875732421875,
0.042572021484375,
-0.029632568359375,
-0.023956298828125,
-0.0216217041015625,
0.0094757080078125,
-0.0160369873046875,
-0.007274627685546875,
-0.035308837890625,
0.0361328125,
0.0242767333984375,
-0.06097412109375,
0.019439697265625,
-0.0008549690246582031,
0.0245819091796875,
0.05755615234375,
0.0283050537109375,
0.02496337890625,
-0.0226593017578125,
-0.011688232421875,
-0.00591278076171875,
-0.0189971923828125,
-0.023162841796875,
-0.01427459716796875,
-0.012481689453125,
-0.0567626953125,
0.0467529296875,
-0.0400390625,
-0.024322509765625,
-0.0262603759765625,
-0.0096893310546875,
0.006183624267578125,
0.072265625,
-0.0274505615234375,
0.007568359375,
0.00894927978515625,
-0.00679779052734375,
-0.0209197998046875,
-0.0128326416015625,
-0.08538818359375,
-0.006412506103515625,
-0.08203125,
-0.0008034706115722656,
-0.00830841064453125,
-0.0205230712890625,
-0.0266265869140625,
-0.011016845703125,
-0.05853271484375,
-0.049652099609375,
0.0650634765625,
-0.01239776611328125,
0.0303802490234375,
-0.00226593017578125,
0.037750244140625,
-0.04425048828125,
-0.050140380859375,
0.004062652587890625,
-0.073974609375,
-0.02728271484375,
-0.0149078369140625,
0.06805419921875,
0.0156402587890625,
-0.00789642333984375,
-0.0012493133544921875,
0.052490234375,
-0.00788116455078125,
-0.0220184326171875,
-0.004764556884765625,
0.015869140625,
-0.0117034912109375,
-0.01776123046875,
-0.01493072509765625,
-0.01910400390625,
-0.0284271240234375,
-0.024139404296875,
0.0013570785522460938,
0.03436279296875,
-0.0282135009765625,
-0.01393890380859375,
-0.02349853515625,
-0.004848480224609375,
-0.042816162109375,
-0.024383544921875,
-0.01385498046875,
0.031829833984375,
-0.0029964447021484375,
0.011505126953125,
-0.044647216796875,
-0.0657958984375,
0.040863037109375,
0.033905029296875,
0.0003147125244140625,
0.00467681884765625,
0.021820068359375,
0.0086212158203125,
-0.045867919921875,
0.00484466552734375,
-0.0004076957702636719,
0.0298614501953125,
0.00290679931640625,
0.060760498046875,
0.0294952392578125,
-0.0194549560546875,
0.057037353515625,
0.004375457763671875,
-0.006893157958984375,
-0.01236724853515625,
0.04852294921875,
-0.00033402442932128906,
-0.04290771484375,
0.03472900390625,
-0.020172119140625,
-0.007602691650390625,
-0.01251220703125,
0.00360870361328125,
-0.01348876953125,
0.0269775390625,
0.0183868408203125,
-0.0020389556884765625,
0.000022649765014648438,
-0.009185791015625,
-0.00986480712890625,
-0.0005679130554199219,
-0.0291748046875,
0.012420654296875,
0.026123046875,
-0.0004012584686279297,
-0.01416015625,
0.0104217529296875,
0.014404296875,
0.0107879638671875,
0.01352691650390625,
-0.036285400390625,
0.040130615234375,
-0.0034770965576171875,
-0.007648468017578125,
-0.0028095245361328125,
-0.017425537109375,
0.048095703125,
0.00910186767578125,
-0.0736083984375,
0.03021240234375,
-0.0020580291748046875,
0.048065185546875,
0.0193328857421875,
0.0019550323486328125,
0.06500244140625,
0.0218658447265625,
-0.00433349609375,
-0.00864410400390625,
0.00217437744140625,
-0.01448822021484375,
-0.049102783203125,
-0.0184173583984375,
0.0113983154296875,
-0.022796630859375,
0.0298614501953125,
0.01348876953125,
0.0097503662109375,
0.0099639892578125,
-0.0264129638671875,
0.036651611328125,
0.02984619140625,
-0.00922393798828125,
-0.0242767333984375,
0.06939697265625,
-0.0018863677978515625,
-0.017822265625,
0.053436279296875,
-0.0213165283203125,
-0.0072174072265625,
0.034088134765625,
0.02862548828125,
0.0008368492126464844,
-0.0221099853515625,
-0.007080078125,
-0.0163421630859375,
0.011474609375,
0.06915283203125,
-0.0016622543334960938,
-0.053466796875,
-0.04766845703125,
0.0171051025390625,
0.060028076171875,
-0.0308074951171875,
0.0201873779296875,
-0.01372528076171875,
-0.01824951171875,
-0.023956298828125,
0.0791015625,
-0.04168701171875,
-0.031524658203125,
-0.0142974853515625,
-0.0229034423828125,
-0.007457733154296875,
-0.003437042236328125,
-0.006290435791015625,
-0.0202178955078125,
-0.0034427642822265625,
-0.035614013671875,
0.030517578125,
0.009307861328125,
0.040435791015625,
-0.0758056640625,
0.0101776123046875,
-0.0482177734375,
-0.02886962890625,
0.089111328125,
0.039947509765625,
-0.04248046875,
-0.01371002197265625,
-0.034088134765625,
-0.00919342041015625,
-0.051177978515625,
-0.059661865234375,
-0.020050048828125,
0.0104827880859375,
0.01418304443359375,
0.026092529296875,
0.009124755859375,
0.0028400421142578125,
0.004428863525390625,
0.01039886474609375,
0.004467010498046875,
0.0439453125,
-0.01441192626953125,
0.0838623046875,
-0.007579803466796875,
0.03668212890625,
0.0058441162109375,
0.049468994140625,
-0.011932373046875,
-0.0150604248046875,
-0.004741668701171875,
0.00440216064453125,
-0.006988525390625,
0.00560760498046875,
-0.010528564453125,
-0.002979278564453125,
0.05816650390625,
-0.0089569091796875,
-0.00566864013671875,
-0.00955963134765625,
0.02044677734375,
-0.034271240234375,
-0.01500701904296875,
-0.0335693359375,
-0.01085662841796875,
-0.03643798828125,
0.006549835205078125,
0.044952392578125,
-0.005146026611328125,
-0.0135040283203125,
0.0079193115234375,
-0.000027418136596679688,
0.020660400390625,
0.000004649162292480469,
-0.0265960693359375,
0.0390625,
0.08935546875,
-0.018951416015625,
0.05560302734375,
0.028594970703125,
0.003726959228515625,
0.0455322265625,
0.0089874267578125,
-0.038848876953125,
-0.0055999755859375,
0.0008196830749511719,
0.00665283203125,
-0.00629425048828125,
0.0007395744323730469,
-0.010772705078125,
0.01468658447265625,
0.072509765625,
0.04400634765625,
-0.10723876953125,
0.018890380859375,
-0.0120391845703125,
0.0328369140625,
0.07696533203125,
-0.015594482421875,
0.0007276535034179688,
-0.035552978515625,
0.0279693603515625,
0.0023097991943359375,
-0.033355712890625,
0.00017404556274414062,
-0.0150299072265625,
-0.018585205078125,
0.00693511962890625,
0.01654052734375,
-0.00432586669921875,
0.01099395751953125,
-0.0308837890625,
0.011199951171875,
-0.01493072509765625,
-0.026275634765625,
-0.017547607421875,
0.0203094482421875,
-0.043853759765625,
-0.100830078125,
-0.0293731689453125,
0.0013284683227539062,
-0.019683837890625,
0.04290771484375,
-0.00695037841796875,
0.0576171875,
0.041534423828125,
-0.0077362060546875,
0.02374267578125,
0.000621795654296875,
0.0200042724609375,
0.0162811279296875,
-0.03955078125,
0.024322509765625,
-0.019287109375,
-0.066650390625,
0.01015472412109375,
-0.025146484375,
-0.039703369140625,
-0.01381683349609375,
-0.04864501953125,
0.080322265625,
-0.0162506103515625,
-0.0185394287109375,
-0.005374908447265625,
-0.002277374267578125,
-0.002613067626953125,
0.0203094482421875,
0.013214111328125,
-0.03399658203125,
-0.040252685546875,
-0.0010509490966796875,
-0.06341552734375,
0.03912353515625,
0.03045654296875,
-0.063232421875,
0.053314208984375,
-0.025543212890625,
0.045745849609375,
0.0142059326171875,
-0.009521484375,
-0.0187835693359375,
-0.0236968994140625,
-0.0212249755859375,
0.05975341796875,
0.041259765625,
0.029876708984375,
0.0112457275390625,
-0.00848388671875,
0.017242431640625,
0.007045745849609375,
0.034332275390625,
0.030181884765625,
-0.033935546875,
-0.043792724609375,
-0.048126220703125,
0.03363037109375,
-0.00836181640625,
0.038848876953125,
0.00412750244140625,
0.0295867919921875,
-0.009918212890625,
-0.0594482421875,
0.02593994140625,
-0.06353759765625,
-0.027374267578125,
0.02581787109375,
0.01251220703125,
-0.01493072509765625,
-0.0044097900390625,
0.044219970703125,
-0.055267333984375,
0.0184173583984375,
0.0280303955078125,
0.005771636962890625,
0.0418701171875,
-0.028961181640625,
-0.0026702880859375,
-0.002902984619140625,
0.0067291259765625,
0.0024700164794921875,
0.0244598388671875,
0.01537322998046875,
-0.0043182373046875,
0.002410888671875,
0.02459716796875,
-0.0416259765625,
0.00074005126953125,
-0.00792694091796875,
0.0307159423828125,
-0.0261383056640625,
0.0173492431640625,
0.061614990234375,
0.024749755859375,
0.0157012939453125,
0.0089263916015625,
0.038177490234375,
0.0343017578125,
-0.0230255126953125,
-0.0185394287109375,
0.01079559326171875,
0.022857666015625,
0.0225372314453125,
0.002399444580078125,
0.04693603515625,
-0.0296478271484375,
0.006694793701171875,
-0.017333984375,
0.0121002197265625,
0.0078582763671875,
-0.00600433349609375,
-0.0127410888671875,
0.0308837890625,
0.003002166748046875,
0.0175323486328125,
0.01262664794921875,
-0.0498046875,
-0.002227783203125,
-0.00827789306640625,
0.03076171875,
-0.019256591796875,
0.020233154296875,
0.0185394287109375,
-0.01016998291015625,
0.0286102294921875,
-0.00487518310546875,
0.00214385986328125,
-0.06597900390625,
-0.079345703125,
0.0266571044921875,
0.06329345703125,
0.0065765380859375,
-0.05352783203125,
-0.0294952392578125,
0.01103973388671875,
0.01061248779296875,
-0.0131683349609375,
0.002655029296875,
0.0004482269287109375,
-0.004367828369140625,
-0.012725830078125,
-0.02056884765625,
0.01221466064453125,
-0.0211029052734375,
-0.007080078125,
0.0218963623046875,
0.0243988037109375,
-0.02642822265625,
0.02618408203125,
-0.0109710693359375,
-0.0269622802734375,
0.019622802734375,
-0.0345458984375,
0.00690460205078125,
-0.0221710205078125,
-0.06109619140625,
-0.01390838623046875,
-0.0006318092346191406,
-0.02618408203125,
-0.002269744873046875,
0.0220184326171875,
-0.0306396484375,
0.041534423828125,
-0.0175018310546875,
0.0287628173828125,
-0.007656097412109375,
-0.032623291015625,
-0.00013709068298339844,
-0.0210113525390625,
0.0156402587890625,
0.004039764404296875,
0.007495880126953125,
0.0023555755615234375,
0.0262298583984375,
0.033355712890625,
0.002002716064453125,
0.057281494140625,
-0.0237579345703125,
0.0251922607421875,
-0.0352783203125,
0.019195556640625,
-0.0277557373046875,
-0.01873779296875,
0.020294189453125,
0.021331787109375,
-0.00624847412109375,
-0.0135498046875,
-0.0694580078125,
0.044708251953125,
0.0016241073608398438,
0.0321044921875,
0.03887939453125,
-0.019287109375,
0.0170135498046875,
0.0211639404296875,
0.0231781005859375,
-0.0269012451171875,
-0.04656982421875,
-0.0643310546875,
-0.024749755859375,
0.020538330078125,
0.0292816162109375,
0.0088348388671875,
0.04388427734375,
-0.0494384765625,
-0.0157623291015625,
-0.004116058349609375,
-0.030487060546875,
-0.057708740234375,
-0.005954742431640625,
-0.00714874267578125,
0.0258026123046875,
0.01239013671875,
-0.0041961669921875,
0.0164947509765625,
0.01593017578125,
-0.0328369140625,
0.03277587890625,
0.01169586181640625,
-0.01763916015625,
-0.0007758140563964844,
0.03253173828125,
-0.01424407958984375,
0.0011663436889648438,
-0.00015091896057128906,
0.003993988037109375,
-0.032867431640625,
0.008148193359375,
-0.022979736328125,
0.0189056396484375,
-0.005947113037109375,
0.026580810546875,
0.0180511474609375,
-0.040008544921875,
-0.079833984375,
0.029205322265625,
0.0577392578125,
0.0312042236328125,
-0.1282958984375,
0.069580078125,
-0.0178375244140625,
0.08856201171875,
0.0014371871948242188,
-0.03839111328125,
0.01465606689453125,
0.027313232421875,
-0.0012674331665039062,
0.0186767578125,
-0.032928466796875,
-0.033843994140625,
-0.00775146484375,
-0.0185699462890625,
0.0099639892578125,
0.023284912109375,
0.0264129638671875,
-0.0242767333984375,
-0.06915283203125,
0.025360107421875,
-0.0787353515625,
-0.0245208740234375,
-0.01812744140625,
0.00836181640625,
0.003017425537109375,
-0.022430419921875,
0.00032901763916015625,
-0.00821685791015625,
-0.035919189453125,
0.013916015625,
-0.01641845703125,
-0.001209259033203125,
-0.022247314453125,
-0.01317596435546875,
0.0765380859375,
0.010223388671875,
-0.00891876220703125,
-0.042694091796875,
0.0286102294921875,
0.00901031494140625,
-0.0143280029296875,
-0.0219573974609375,
0.0183868408203125,
-0.0025272369384765625,
0.010589599609375,
0.038787841796875,
-0.05523681640625,
0.04351806640625,
0.018096923828125,
-0.034820556640625,
0.056427001953125,
0.06298828125,
0.00983428955078125,
-0.0458984375,
0.021728515625,
0.0171051025390625,
0.02545166015625,
0.003742218017578125,
0.026824951171875,
0.0278167724609375,
-0.0232086181640625,
-0.0193328857421875,
0.0083770751953125,
0.0380859375,
0.00954437255859375,
-0.019012451171875,
0.056884765625,
-0.021697998046875,
-0.00958251953125,
-0.043426513671875,
-0.029571533203125,
0.0015163421630859375,
-0.0443115234375,
0.0192108154296875,
-0.0865478515625,
-0.0118865966796875,
-0.0121917724609375,
-0.0013427734375,
-0.005828857421875,
-0.01513671875,
-0.0274810791015625,
-0.0152435302734375,
-0.00323486328125,
0.0107879638671875,
-0.0188751220703125,
0.04327392578125,
-0.005466461181640625,
-0.0312042236328125,
-0.0333251953125,
-0.032379150390625,
-0.0016546249389648438,
-0.036102294921875,
-0.07501220703125,
-0.01210784912109375,
-0.033355712890625,
-0.01174163818359375,
0.07025146484375,
-0.0269622802734375,
0.043426513671875,
-0.095947265625,
-0.01389312744140625,
-0.00865936279296875,
0.0386962890625,
0.0216064453125,
0.05712890625,
-0.0263824462890625,
0.0138397216796875,
0.0175323486328125,
-0.0123291015625,
-0.0163421630859375,
-0.005397796630859375,
-0.03692626953125,
0.019744873046875,
0.031402587890625,
-0.01116943359375,
0.07086181640625,
0.01226043701171875,
0.00925445556640625,
0.020111083984375,
0.0171051025390625,
-0.02532958984375,
0.011260986328125,
0.0011339187622070312,
0.0253143310546875,
0.002285003662109375
] |
a5b929dbecfd296f230bbceb65518a579d3c8480
|
Wordpress Stackexchange
Q: How to make wp-signup.php a 1-step process I'm developing a multisite for Real Estate agents. Wp-signup.php used the wrong page template from my theme (homepage instead of full width page template), so I took the meat and potatoes from wp-signup.php and created a page template out of it.
Here's the result: [http://thewebrockstar.com/realestate/signup/][1]
However now step 2 (after you hit Next) redirects away from my wp-signup page template to the original wp-signup.php.
Is there a solution to this? I was thinking it would be easiest to make wp-signup.php a 1-step process (everything on a single page) instead of this:
http://i.stack.imgur.com/PTP74.jpg
A: Create a custom wp-signup.php, then follow masonjames instruction on the link below:
http://premium.wpmudev.org/forums/topic/wp-signupphp#post-39782
|
Q: How to make wp-signup.php a 1-step process I'm developing a multisite for Real Estate agents. Wp-signup.php used the wrong page template from my theme (homepage instead of full width page template), so I took the meat and potatoes from wp-signup.php and created a page template out of it.
Here's the result: [http://thewebrockstar.com/realestate/signup/][1]
However now step 2 (after you hit Next) redirects away from my wp-signup page template to the original wp-signup.php.
Is there a solution to this? I was thinking it would be easiest to make wp-signup.php a 1-step process (everything on a single page) instead of this:
http://i.stack.imgur.com/PTP74.jpg
A: Create a custom wp-signup.php, then follow masonjames instruction on the link below:
http://premium.wpmudev.org/forums/topic/wp-signupphp#post-39782
|
wordpress
|
{
"language": "en",
"length": 114,
"provenance": "stackexchange_00019.jsonl.gz:411326",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23013"
}
|
[
0.0198211669921875,
0.00495147705078125,
-0.0176239013671875,
-0.0034427642822265625,
-0.0009889602661132812,
-0.0297088623046875,
0.015869140625,
-0.04290771484375,
0.0297698974609375,
-0.01294708251953125,
-0.0282440185546875,
0.02081298828125,
-0.042938232421875,
-0.0240020751953125,
0.04071044921875,
-0.029449462890625,
0.0039825439453125,
0.011505126953125,
-0.01209259033203125,
-0.0201416015625,
0.01094818115234375,
-0.01383209228515625,
-0.040618896484375,
0.054229736328125,
0.00423431396484375,
-0.032073974609375,
0.08837890625,
-0.01323699951171875,
-0.018280029296875,
-0.0343017578125,
0.009490966796875,
0.034515380859375,
0.0167694091796875,
0.0184783935546875,
-0.00588226318359375,
-0.02288818359375,
0.002246856689453125,
0.00443267822265625,
-0.005245208740234375,
0.035552978515625,
0.043487548828125,
-0.03814697265625,
-0.04583740234375,
-0.0177764892578125,
-0.0293426513671875,
0.002231597900390625,
0.0263824462890625,
-0.01454925537109375,
0.027069091796875,
0.0035762786865234375,
0.0082244873046875,
0.00017023086547851562,
0.0258331298828125,
-0.06573486328125,
-0.035308837890625,
-0.046112060546875,
-0.019073486328125,
-0.0098114013671875,
0.01203155517578125,
0.035919189453125,
0.00464630126953125,
0.0165252685546875,
0.00731658935546875,
-0.0222320556640625,
-0.04046630859375,
-0.00787353515625,
-0.1231689453125,
0.01251220703125,
-0.01406097412109375,
-0.061737060546875,
-0.01520538330078125,
-0.033416748046875,
-0.0004203319549560547,
-0.0626220703125,
-0.0267791748046875,
0.07781982421875,
-0.0038604736328125,
0.0087432861328125,
0.0003809928894042969,
-0.0172882080078125,
0.00008541345596313477,
-0.038421630859375,
-0.015716552734375,
-0.043670654296875,
0.04376220703125,
0.013397216796875,
-0.01134490966796875,
-0.0085296630859375,
-0.054229736328125,
-0.00986480712890625,
-0.0447998046875,
-0.005855560302734375,
-0.0306396484375,
-0.01319122314453125,
-0.0301666259765625,
0.00180816650390625,
-0.011505126953125,
0.0064697265625,
0.0037631988525390625,
0.003589630126953125,
0.0180816650390625,
-0.0228729248046875,
0.0164031982421875,
-0.019317626953125,
0.003208160400390625,
0.07177734375,
-0.002368927001953125,
0.0416259765625,
0.033233642578125,
0.005413055419921875,
0.042205810546875,
-0.0279693603515625,
-0.043304443359375,
-0.0186004638671875,
-0.03302001953125,
0.04229736328125,
-0.03472900390625,
-0.0268402099609375,
-0.01155853271484375,
-0.0023365020751953125,
-0.051788330078125,
-0.02191162109375,
0.047332763671875,
0.03131103515625,
0.00768280029296875,
0.0187530517578125,
0.0234832763671875,
-0.053497314453125,
-0.006481170654296875,
0.00600433349609375,
-0.057861328125,
0.01861572265625,
0.06524658203125,
0.036865234375,
0.0193939208984375,
-0.0184326171875,
0.0775146484375,
0.03125,
0.0157928466796875,
0.01800537109375,
0.01422119140625,
-0.04412841796875,
-0.05438232421875,
0.02978515625,
0.01227569580078125,
0.054779052734375,
0.0209503173828125,
0.0016546249389648438,
-0.01482391357421875,
-0.0498046875,
0.00872802734375,
-0.0151214599609375,
-0.0124969482421875,
-0.0022640228271484375,
0.06878662109375,
-0.01329803466796875,
0.045074462890625,
-0.01776123046875,
0.024169921875,
0.0185546875,
0.0233001708984375,
-0.016021728515625,
-0.0010538101196289062,
-0.0149383544921875,
-0.00460052490234375,
0.0057525634765625,
-0.055877685546875,
0.00801849365234375,
0.02496337890625,
0.0191192626953125,
0.03125,
-0.0325927734375,
0.01971435546875,
0.01290130615234375,
-0.0008764266967773438,
0.021453857421875,
-0.01207733154296875,
0.033782958984375,
0.0241241455078125,
0.0168304443359375,
0.008453369140625,
-0.04461669921875,
0.061676025390625,
-0.019287109375,
-0.036956787109375,
0.028411865234375,
0.00966644287109375,
0.0292205810546875,
-0.00331878662109375,
0.0191802978515625,
0.0288238525390625,
0.02801513671875,
-0.03912353515625,
0.029144287109375,
0.013671875,
-0.0011444091796875,
-0.04071044921875,
-0.01438140869140625,
-0.007167816162109375,
-0.00830078125,
-0.0219268798828125,
-0.0114898681640625,
0.0277099609375,
0.0296173095703125,
0.0621337890625,
-0.0107879638671875,
0.00911712646484375,
-0.00875091552734375,
-0.0275115966796875,
0.009185791015625,
0.026031494140625,
0.017425537109375,
-0.01617431640625,
-0.05084228515625,
0.005748748779296875,
0.039581298828125,
0.034210205078125,
0.04351806640625,
0.0027103424072265625,
0.003086090087890625,
0.018585205078125,
-0.018585205078125,
0.00777435302734375,
0.042327880859375,
0.05560302734375,
-0.0079803466796875,
-0.045013427734375,
-0.0242919921875,
-0.007080078125,
-0.01522064208984375,
-0.07147216796875,
0.099365234375,
-0.0322265625,
-0.0222625732421875,
-0.06439208984375,
0.00394439697265625,
-0.01473236083984375,
0.026458740234375,
0.004802703857421875,
0.0274810791015625,
0.0101776123046875,
0.04473876953125,
-0.0084075927734375,
0.034393310546875,
-0.006561279296875,
-0.036834716796875,
0.02569580078125,
0.0024280548095703125,
0.01284027099609375,
0.0423583984375,
-0.0299072265625,
-0.01213836669921875,
0.0271453857421875,
-0.049896240234375,
-0.039398193359375,
0.05450439453125,
-0.025482177734375,
-0.0247955322265625,
0.0014619827270507812,
-0.0020599365234375,
0.0139312744140625,
-0.058837890625,
-0.0380859375,
-0.021636962890625,
-0.0214691162109375,
0.00009459257125854492,
0.00699615478515625,
0.00665283203125,
-0.0260162353515625,
-0.012847900390625,
0.029266357421875,
0.031005859375,
0.00537872314453125,
0.02679443359375,
-0.01428985595703125,
-0.0231475830078125,
-0.004337310791015625,
0.005550384521484375,
-0.0033168792724609375,
-0.00846099853515625,
-0.0245208740234375,
0.018707275390625,
-0.03948974609375,
-0.0251922607421875,
-0.003894805908203125,
-0.06402587890625,
-0.00841522216796875,
0.00830841064453125,
0.01502227783203125,
0.0032787322998046875,
0.0526123046875,
-0.010711669921875,
-0.047637939453125,
0.0311431884765625,
0.007228851318359375,
-0.037872314453125,
0.0491943359375,
-0.0029697418212890625,
0.01065826416015625,
-0.0024852752685546875,
0.0267486572265625,
0.049102783203125,
-0.00102996826171875,
-0.00826263427734375,
-0.01091766357421875,
0.015289306640625,
-0.005672454833984375,
0.0018281936645507812,
-0.0280609130859375,
-0.0372314453125,
-0.022979736328125,
-0.0299224853515625,
0.03155517578125,
0.0190887451171875,
0.039306640625,
-0.0005564689636230469,
0.0139617919921875,
0.037200927734375,
0.0003871917724609375,
-0.01885986328125,
-0.0321044921875,
-0.057525634765625,
0.040008544921875,
-0.01461029052734375,
-0.007476806640625,
-0.00647735595703125,
0.005634307861328125,
0.0212249755859375,
-0.0236663818359375,
-0.0125274658203125,
-0.041534423828125,
-0.056671142578125,
-0.053802490234375,
-0.032623291015625,
0.0036449432373046875,
0.0006852149963378906,
0.0035648345947265625,
0.01290130615234375,
-0.0004987716674804688,
-0.0009284019470214844,
0.0156402587890625,
0.0298614501953125,
-0.00894927978515625,
-0.0517578125,
-0.02313232421875,
-0.036834716796875,
0.0020923614501953125,
-0.01274871826171875,
-0.03448486328125,
-0.015716552734375,
0.034942626953125,
-0.004291534423828125,
-0.01947021484375,
-0.020782470703125,
-0.00954437255859375,
0.025115966796875,
0.029754638671875,
-0.04071044921875,
-0.00525665283203125,
-0.049896240234375,
0.0237274169921875,
0.0101318359375,
0.01001739501953125,
-0.033203125,
0.00794219970703125,
-0.043212890625,
-0.0162506103515625,
-0.02056884765625,
0.0057220458984375,
0.0033626556396484375,
0.010498046875,
-0.012115478515625,
0.001171112060546875,
-0.00888824462890625,
-0.008270263671875,
-0.0005278587341308594,
0.01898193359375,
-0.017608642578125,
-0.017730712890625,
-0.00545501708984375,
-0.021087646484375,
-0.0191497802734375,
-0.0287322998046875,
-0.0548095703125,
-0.07818603515625,
0.05908203125,
-0.033966064453125,
0.03253173828125,
-0.08465576171875,
-0.036468505859375,
-0.03948974609375,
0.1260986328125,
-0.0161590576171875,
-0.00604248046875,
0.004688262939453125,
0.01708984375,
-0.04400634765625,
-0.032196044921875,
-0.034912109375,
-0.002315521240234375,
-0.05340576171875,
0.0219879150390625,
0.00878143310546875,
-0.033416748046875,
0.012908935546875,
-0.06939697265625,
-0.0240325927734375,
-0.04229736328125,
0.0297393798828125,
-0.020111083984375,
-0.002086639404296875,
0.024566650390625,
-0.0023479461669921875,
-0.0347900390625,
-0.00307464599609375,
-0.0185546875,
-0.07904052734375,
-0.008453369140625,
0.0035190582275390625,
0.0535888671875,
0.00426483154296875,
-0.034149169921875,
-0.032379150390625,
0.0309600830078125,
-0.0229339599609375,
0.01800537109375,
0.0064239501953125,
0.0386962890625,
0.00510406494140625,
-0.007904052734375,
-0.0029144287109375,
-0.02252197265625,
-0.021453857421875,
-0.04571533203125,
0.0029296875,
0.03643798828125,
-0.04150390625,
0.034393310546875,
-0.03509521484375,
0.018096923828125,
-0.033905029296875,
-0.040069580078125,
0.0012540817260742188,
0.0267333984375,
-0.004222869873046875,
0.00556182861328125,
-0.045318603515625,
-0.0219879150390625,
0.00037980079650878906,
-0.01453399658203125,
-0.0003235340118408203,
0.0082244873046875,
0.0287628173828125,
0.012359619140625,
-0.005458831787109375,
-0.018524169921875,
-0.010589599609375,
0.036956787109375,
-0.01377105712890625,
0.030181884765625,
0.01727294921875,
-0.0206756591796875,
0.0618896484375,
-0.005550384521484375,
-0.0229644775390625,
0.0545654296875,
0.0234832763671875,
0.026153564453125,
-0.032440185546875,
0.0194091796875,
0.024383544921875,
-0.056732177734375,
0.044708251953125,
0.005329132080078125,
-0.00841522216796875,
0.0460205078125,
0.0038089752197265625,
-0.0055084228515625,
-0.041259765625,
-0.01198577880859375,
-0.00577545166015625,
-0.0062255859375,
0.0037403106689453125,
-0.003475189208984375,
0.006214141845703125,
0.0006566047668457031,
-0.0352783203125,
-0.00826263427734375,
-0.00568389892578125,
-0.0105743408203125,
-0.035308837890625,
0.0272674560546875,
0.0197296142578125,
-0.00885772705078125,
0.0129852294921875,
0.0010461807250976562,
-0.005184173583984375,
0.042694091796875,
0.0321044921875,
-0.0291290283203125,
-0.0242919921875,
-0.01461029052734375,
0.029022216796875,
-0.01544952392578125,
-0.00553131103515625,
0.031829833984375,
0.01540374755859375,
-0.01824951171875,
0.0015306472778320312,
-0.0209808349609375,
-0.0154876708984375,
-0.041748046875,
-0.030059814453125,
-0.005481719970703125,
-0.0177001953125,
0.0225067138671875,
0.0303802490234375,
-0.0033359527587890625,
0.0292205810546875,
-0.0184783935546875,
0.04595947265625,
0.05413818359375,
-0.005645751953125,
0.0158843994140625,
0.01995849609375,
0.006137847900390625,
-0.04254150390625,
-0.00705718994140625,
-0.0272674560546875,
0.004840850830078125,
0.022918701171875,
0.02935791015625,
0.0010423660278320312,
-0.0278472900390625,
0.020172119140625,
-0.022369384765625,
-0.0119781494140625,
0.042755126953125,
-0.0185089111328125,
-0.0528564453125,
-0.0377197265625,
-0.01000213623046875,
0.04852294921875,
-0.01885986328125,
-0.0167694091796875,
0.0034313201904296875,
-0.05078125,
0.00771331787109375,
0.042236328125,
-0.005992889404296875,
-0.0152435302734375,
-0.024932861328125,
0.00868988037109375,
-0.022003173828125,
-0.0017824172973632812,
-0.05279541015625,
0.0189666748046875,
-0.04058837890625,
-0.013641357421875,
0.045928955078125,
-0.04693603515625,
0.00536346435546875,
-0.028717041015625,
0.026947021484375,
-0.024566650390625,
0.0195159912109375,
0.021026611328125,
0.01123046875,
0.01702880859375,
-0.035797119140625,
-0.0208587646484375,
-0.03863525390625,
-0.013916015625,
-0.0114288330078125,
-0.017669677734375,
0.0271148681640625,
-0.019439697265625,
0.0057830810546875,
0.00836944580078125,
0.020172119140625,
-0.020111083984375,
0.0309600830078125,
-0.006732940673828125,
0.00933837890625,
-0.02581787109375,
0.032623291015625,
0.006649017333984375,
0.010986328125,
-0.0036907196044921875,
0.03570556640625,
0.0296173095703125,
-0.01189422607421875,
0.033782958984375,
-0.003421783447265625,
-0.031585693359375,
-0.05206298828125,
-0.034637451171875,
-0.0016021728515625,
0.07208251953125,
-0.024139404296875,
0.00164031982421875,
-0.0034809112548828125,
0.0019197463989257812,
-0.0134429931640625,
0.0188446044921875,
0.0079803466796875,
-0.01486968994140625,
0.01210784912109375,
-0.04541015625,
0.0130615234375,
0.03558349609375,
0.0430908203125,
-0.00455474853515625,
-0.04693603515625,
0.00243377685546875,
0.0156707763671875,
-0.00807952880859375,
0.00586700439453125,
0.0161590576171875,
-0.001331329345703125,
0.042236328125,
-0.005100250244140625,
0.0180511474609375,
0.048828125,
0.0278778076171875,
-0.033538818359375,
-0.0253448486328125,
0.04449462890625,
0.0022335052490234375,
-0.017913818359375,
0.031524658203125,
-0.01155853271484375,
0.0191650390625,
0.10076904296875,
0.0816650390625,
-0.132568359375,
0.0258941650390625,
0.0187225341796875,
0.03173828125,
0.06396484375,
0.003459930419921875,
0.006015777587890625,
0.0016565322875976562,
-0.00566864013671875,
0.032867431640625,
-0.016571044921875,
0.0069732666015625,
0.031890869140625,
0.01520538330078125,
-0.0300140380859375,
0.08148193359375,
0.0185089111328125,
-0.0606689453125,
0.0300445556640625,
0.0218048095703125,
0.032440185546875,
-0.037261962890625,
-0.01345062255859375,
0.0280609130859375,
-0.0055694580078125,
-0.0289459228515625,
0.06475830078125,
-0.026611328125,
0.0128021240234375,
0.0290985107421875,
-0.017974853515625,
0.053436279296875,
0.0207366943359375,
-0.003940582275390625,
0.00977325439453125,
-0.0202484130859375,
0.0020198822021484375,
-0.0200958251953125,
-0.023529052734375,
0.0035572052001953125,
0.00347900390625,
-0.033172607421875,
0.035614013671875,
-0.0137176513671875,
-0.032989501953125,
0.001735687255859375,
0.01194000244140625,
0.0692138671875,
-0.00310516357421875,
-0.027801513671875,
0.04681396484375,
-0.04864501953125,
-0.038787841796875,
-0.0204925537109375,
0.009979248046875,
-0.0626220703125,
-0.05169677734375,
-0.005115509033203125,
-0.0640869140625,
-0.00012624263763427734,
-0.0293731689453125,
-0.02215576171875,
0.07952880859375,
-0.00722503662109375,
-0.00463104248046875,
0.028656005859375,
0.041595458984375,
-0.0304412841796875,
0.029815673828125,
-0.03076171875,
0.0303192138671875,
-0.00738525390625,
0.0777587890625,
-0.0172271728515625,
0.0014867782592773438,
0.04803466796875,
0.0179443359375,
0.046722412109375,
0.0260009765625,
-0.024627685546875,
-0.003894805908203125,
0.030731201171875,
-0.00568389892578125,
-0.031402587890625,
0.06329345703125,
-0.0124969482421875,
-0.0011777877807617188,
0.00513458251953125,
-0.034027099609375,
0.0173187255859375,
-0.00814056396484375,
-0.03131103515625,
0.0009393692016601562,
0.01169586181640625,
-0.01238250732421875,
0.035491943359375,
-0.0141143798828125,
-0.0716552734375,
0.0256195068359375,
0.036163330078125,
0.0174407958984375,
-0.006351470947265625,
-0.0076751708984375,
-0.063720703125,
0.0648193359375,
0.09283447265625,
-0.0312042236328125,
0.0175933837890625,
-0.0226287841796875,
0.03515625,
0.0372314453125,
0.00839996337890625,
0.05841064453125,
-0.0025043487548828125,
0.005634307861328125,
0.0230865478515625,
-0.00775146484375,
0.0247650146484375,
0.02252197265625,
0.02716064453125,
-0.049560546875,
-0.01139068603515625,
0.042694091796875,
0.050811767578125,
-0.033111572265625,
-0.0295867919921875,
-0.006832122802734375,
0.00431060791015625,
0.0230255126953125,
-0.003070831298828125,
0.04681396484375,
-0.020904541015625,
-0.0261383056640625,
-0.044830322265625,
0.00591278076171875,
0.04339599609375,
-0.0005731582641601562,
-0.014068603515625,
-0.02020263671875,
0.0052642822265625,
0.0211944580078125,
-0.042022705078125,
0.03631591796875,
0.033966064453125,
0.036102294921875,
-0.0124969482421875,
0.044677734375,
0.0207366943359375,
-0.003299713134765625,
-0.0173187255859375,
0.0352783203125,
-0.0008211135864257812,
-0.0077362060546875,
-0.00814056396484375,
-0.0157470703125,
-0.00946044921875,
0.01934814453125,
-0.0201568603515625,
0.011993408203125,
0.0227813720703125,
0.038238525390625,
-0.01593017578125,
-0.038177490234375,
0.0223541259765625,
-0.034027099609375,
-0.040557861328125,
-0.03179931640625,
-0.0288238525390625,
0.0214691162109375,
-0.0099945068359375,
0.0223236083984375,
-0.012542724609375,
0.0186309814453125,
0.01229095458984375,
0.043792724609375,
0.00530242919921875,
-0.017333984375,
0.0159759521484375,
-0.01407623291015625,
0.067626953125,
0.024627685546875,
-0.108154296875,
-0.01068115234375,
-0.0275115966796875,
-0.035186767578125,
0.02838134765625,
0.040740966796875,
-0.0195465087890625,
0.01404571533203125,
0.010284423828125,
0.0380859375,
0.0036258697509765625,
-0.05047607421875,
0.028656005859375,
0.0027446746826171875,
0.02435302734375,
0.0197906494140625,
-0.0986328125,
-0.040985107421875,
-0.043212890625,
0.022186279296875,
0.008819580078125,
0.1435546875,
-0.04595947265625,
0.006977081298828125,
-0.003021240234375,
0.0136566162109375,
-0.01302337646484375,
-0.0271453857421875,
0.0237884521484375,
-0.0284423828125,
0.006885528564453125,
0.006954193115234375,
-0.044403076171875,
0.0039215087890625,
0.0271148681640625,
-0.046600341796875,
0.01557159423828125,
0.0081024169921875,
0.01148223876953125,
-0.01763916015625,
0.043304443359375,
-0.0238800048828125,
-0.052734375,
-0.058013916015625,
0.0016536712646484375,
0.01141357421875,
0.060394287109375,
0.0233001708984375,
0.0699462890625,
-0.036407470703125,
-0.048370361328125,
0.00676727294921875,
-0.10107421875,
-0.02398681640625,
0.0258941650390625,
0.0267333984375,
0.020355224609375,
0.02569580078125,
-0.005397796630859375,
-0.01229095458984375,
0.0360107421875,
-0.0330810546875,
0.038787841796875,
-0.01059722900390625,
0.047271728515625,
0.01494598388671875,
0.021026611328125,
-0.043426513671875,
-0.0008554458618164062,
0.06744384765625,
-0.0015287399291992188,
0.004436492919921875,
-0.0421142578125,
-0.0201416015625,
-0.009246826171875,
0.0185089111328125,
0.039154052734375,
0.027130126953125,
0.01326751708984375,
-0.01097869873046875,
-0.0009331703186035156,
0.0295867919921875,
0.00147247314453125,
-0.0134124755859375,
0.00783538818359375,
-0.04132080078125,
0.01763916015625,
0.01323699951171875,
0.0092620849609375,
0.004093170166015625,
0.02960205078125,
-0.053375244140625,
-0.0290985107421875,
-0.0305023193359375,
0.027557373046875,
-0.03985595703125,
-0.01227569580078125,
0.0281982421875,
-0.0168304443359375,
0.00518798828125,
-0.031036376953125,
0.01203155517578125,
0.016998291015625,
-0.01007080078125,
-0.031951904296875,
0.0206298828125,
-0.014892578125,
0.00707244873046875,
-0.0173797607421875,
-0.01446533203125,
-0.0224761962890625,
0.015625,
0.004154205322265625,
0.02447509765625,
0.044586181640625,
-0.033966064453125,
-0.1231689453125,
0.0679931640625,
-0.03021240234375,
-0.043975830078125,
-0.05859375,
-0.0152435302734375,
0.004413604736328125,
-0.0265960693359375,
-0.035308837890625,
0.0185699462890625,
-0.018341064453125,
0.0648193359375,
0.0274505615234375,
0.066162109375,
0.0255889892578125,
0.031005859375,
-0.01495361328125,
0.0280609130859375,
-0.0157012939453125,
0.0264739990234375,
0.009796142578125,
-0.024322509765625,
0.058837890625,
0.052734375,
-0.00846099853515625,
0.007785797119140625,
0.021697998046875,
-0.017974853515625,
-0.0024089813232421875,
-0.0036869049072265625,
-0.004909515380859375,
-0.01227569580078125,
-0.006740570068359375,
0.031768798828125,
0.003376007080078125,
0.0009036064147949219,
0.011688232421875,
-0.009552001953125,
-0.0345458984375,
0.0014429092407226562,
0.0097198486328125,
-0.041656494140625,
-0.0079193115234375,
0.00434112548828125,
-0.002422332763671875,
0.0038318634033203125,
0.0022220611572265625,
-0.017669677734375,
-0.0211181640625,
0.0010576248168945312,
-0.009735107421875,
-0.0233306884765625,
-0.01537322998046875,
0.0494384765625,
-0.0265350341796875,
-0.033905029296875,
0.0014429092407226562,
0.0212249755859375,
-0.00896453857421875,
-0.0188140869140625,
-0.001567840576171875,
0.047149658203125,
-0.07879638671875,
-0.02606201171875,
-0.00936126708984375,
-0.0172119140625,
-0.0234832763671875,
-0.00788116455078125,
-0.008880615234375,
0.040069580078125,
0.01386260986328125,
0.044097900390625,
-0.038116455078125,
0.058380126953125,
0.0122528076171875,
-0.00920867919921875,
-0.0202178955078125,
0.00496673583984375,
-0.042938232421875,
0.05389404296875,
-0.00296783447265625,
-0.0092926025390625,
0.0367431640625,
0.01458740234375,
0.0103607177734375,
-0.0018281936645507812,
0.0404052734375,
-0.01343536376953125,
0.0179901123046875,
0.015472412109375,
0.009002685546875,
0.0014667510986328125
] |
bc00b759ec2aec2acba7213b14d9ba992a3d0572
|
Wordpress Stackexchange
Q: Duplicate settings of master blog to slave blogs in WP multi-site installation Is there any smart way to set a site (blog) as a master, which settings are replicated to the rest of the sites in the network?
There are plugins like this one: YD Network-wide WPML that attempt to accomplish this, but they don't support all settings.
A: There are two options I'm aware of, and neither are free:
http://premium.wpmudev.org/project/new-blog-template
http://wpebooks.com/replicator/
I haven't actually tried either of them yet, so can't recommend one over the other.
|
Q: Duplicate settings of master blog to slave blogs in WP multi-site installation Is there any smart way to set a site (blog) as a master, which settings are replicated to the rest of the sites in the network?
There are plugins like this one: YD Network-wide WPML that attempt to accomplish this, but they don't support all settings.
A: There are two options I'm aware of, and neither are free:
http://premium.wpmudev.org/project/new-blog-template
http://wpebooks.com/replicator/
I haven't actually tried either of them yet, so can't recommend one over the other.
A: there is http://wordpress.org/extend/plugins/default-blog-options/ too.. but its not working for custom post type or taxonomies..
A: With this plugin it's possible to duplicate everything from a site of the network to a new one.
http://wordpress.org/extend/plugins/add-cloned-sites-for-wpmu-batch/
I use it like this:
*
*configure one or more template sites (settings, plugins, theme, menus, widgets)
*archive them
*when a new site is needed, activate the template and clone
*archive template
A: Yet another option to consider:
http://wordpress.org/extend/plugins/blog-copier/
|
wordpress
|
{
"language": "en",
"length": 162,
"provenance": "stackexchange_00019.jsonl.gz:411327",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23015"
}
|
[
0.0005674362182617188,
0.00890350341796875,
0.020721435546875,
0.053558349609375,
-0.003749847412109375,
-0.0164642333984375,
0.049163818359375,
-0.061737060546875,
-0.004787445068359375,
0.00748443603515625,
-0.0149688720703125,
0.00458526611328125,
0.0102081298828125,
-0.0384521484375,
0.0245819091796875,
-0.0202484130859375,
0.0211944580078125,
-0.007709503173828125,
0.01178741455078125,
-0.00678253173828125,
0.01213836669921875,
0.0109710693359375,
-0.0110015869140625,
0.002197265625,
0.029541015625,
-0.01207733154296875,
0.004703521728515625,
-0.01511383056640625,
0.036468505859375,
0.004062652587890625,
0.0240478515625,
-0.041595458984375,
0.049591064453125,
-0.0374755859375,
-0.0135955810546875,
-0.06866455078125,
-0.00479888916015625,
-0.037567138671875,
-0.04150390625,
0.0232696533203125,
-0.00933074951171875,
0.0008697509765625,
0.00978851318359375,
-0.0003371238708496094,
-0.01371002197265625,
-0.0457763671875,
-0.0022602081298828125,
-0.042144775390625,
0.0171051025390625,
0.0035266876220703125,
0.0007567405700683594,
-0.0262603759765625,
0.02496337890625,
0.00655364990234375,
-0.031707763671875,
-0.048126220703125,
0.0516357421875,
-0.0220184326171875,
0.0572509765625,
-0.06927490234375,
-0.059661865234375,
-0.0176239013671875,
0.04901123046875,
0.013946533203125,
0.03497314453125,
-0.0157012939453125,
0.0164337158203125,
0.02880859375,
-0.0200347900390625,
0.0443115234375,
0.032318115234375,
-0.03692626953125,
0.00399017333984375,
-0.00815582275390625,
-0.017547607421875,
-0.004119873046875,
-0.0149383544921875,
-0.0173187255859375,
0.042083740234375,
-0.00234222412109375,
0.0117645263671875,
-0.0158843994140625,
-0.018829345703125,
-0.0472412109375,
0.0186767578125,
-0.0193023681640625,
-0.00600433349609375,
-0.0029048919677734375,
-0.0380859375,
-0.004764556884765625,
-0.009765625,
-0.037078857421875,
-0.0504150390625,
0.033294677734375,
0.0154571533203125,
-0.01227569580078125,
0.004642486572265625,
0.0823974609375,
-0.045562744140625,
0.006381988525390625,
-0.054962158203125,
0.0113983154296875,
-0.038238525390625,
-0.028778076171875,
0.0016632080078125,
0.01806640625,
0.01432037353515625,
-0.0188751220703125,
0.0309295654296875,
0.0116424560546875,
-0.01416778564453125,
0.04852294921875,
0.0156402587890625,
-0.021728515625,
-0.033355712890625,
-0.0124359130859375,
-0.0318603515625,
0.01023101806640625,
0.01641845703125,
-0.017730712890625,
-0.007450103759765625,
0.0313720703125,
-0.023773193359375,
0.0098419189453125,
-0.021087646484375,
-0.018310546875,
0.01224517822265625,
-0.034912109375,
-0.041168212890625,
-0.01788330078125,
0.0053863525390625,
0.03564453125,
0.03778076171875,
0.040924072265625,
-0.0199432373046875,
0.0053558349609375,
0.03741455078125,
-0.02362060546875,
-0.006008148193359375,
0.00963592529296875,
0.004978179931640625,
-0.01493072509765625,
-0.009765625,
0.001491546630859375,
0.002368927001953125,
0.0205841064453125,
0.03729248046875,
0.035614013671875,
-0.00878143310546875,
-0.0266265869140625,
0.004055023193359375,
0.039306640625,
-0.02337646484375,
-0.019073486328125,
0.0557861328125,
-0.06524658203125,
-0.05291748046875,
-0.007404327392578125,
0.0977783203125,
0.034942626953125,
0.00913238525390625,
0.0171051025390625,
0.037994384765625,
0.0303802490234375,
0.004482269287109375,
-0.023468017578125,
-0.02020263671875,
-0.0130157470703125,
0.0259552001953125,
0.0206298828125,
-0.01473236083984375,
-0.052459716796875,
-0.00377655029296875,
0.00798797607421875,
-0.011138916015625,
0.053375244140625,
0.00007998943328857422,
0.00756072998046875,
0.019317626953125,
0.0024929046630859375,
-0.011322021484375,
-0.035003662109375,
0.0216064453125,
-0.001453399658203125,
-0.0286407470703125,
-0.0210723876953125,
-0.004638671875,
0.046966552734375,
0.0552978515625,
0.0261077880859375,
-0.00567626953125,
-0.055145263671875,
-0.0277099609375,
0.07373046875,
-0.0167999267578125,
-0.034912109375,
0.007354736328125,
0.033355712890625,
-0.018829345703125,
-0.0863037109375,
-0.032684326171875,
0.01303863525390625,
-0.00027298927307128906,
0.04278564453125,
-0.0001137852668762207,
0.01265716552734375,
-0.01123046875,
0.009185791015625,
0.0005540847778320312,
0.00029730796813964844,
0.00772857666015625,
-0.01128387451171875,
0.029876708984375,
-0.082275390625,
-0.052276611328125,
-0.011810302734375,
-0.0251312255859375,
0.02783203125,
0.01142120361328125,
0.00882720947265625,
0.005680084228515625,
-0.00997161865234375,
0.0045318603515625,
-0.017578125,
0.0362548828125,
0.00975799560546875,
-0.040771484375,
-0.01544952392578125,
-0.01611328125,
0.023345947265625,
-0.041168212890625,
0.04595947265625,
-0.004474639892578125,
0.02325439453125,
0.0027923583984375,
-0.00015413761138916016,
0.0237274169921875,
-0.044097900390625,
0.0189666748046875,
0.0270233154296875,
0.021514892578125,
-0.002933502197265625,
-0.0029621124267578125,
0.032501220703125,
0.011383056640625,
-0.03240966796875,
0.0150604248046875,
0.0323486328125,
0.0308074951171875,
0.055328369140625,
-0.03155517578125,
-0.0631103515625,
0.0230255126953125,
-0.047607421875,
-0.007171630859375,
0.01403045654296875,
-0.035888671875,
0.0116424560546875,
-0.03448486328125,
0.0241241455078125,
-0.01055145263671875,
0.021484375,
0.01485443115234375,
0.01195526123046875,
0.07177734375,
0.031280517578125,
0.0355224609375,
0.0230255126953125,
-0.05767822265625,
0.069580078125,
0.0012807846069335938,
-0.049560546875,
0.0265350341796875,
0.00870513916015625,
0.041473388671875,
0.04620361328125,
-0.0084075927734375,
-0.024200439453125,
-0.00772857666015625,
0.01018524169921875,
-0.023040771484375,
0.03704833984375,
-0.0811767578125,
-0.032867431640625,
-0.0262298583984375,
-0.0289306640625,
-0.03790283203125,
-0.005462646484375,
-0.0197906494140625,
-0.03424072265625,
0.005950927734375,
0.017608642578125,
-0.039031982421875,
0.047760009765625,
0.0064849853515625,
-0.0310211181640625,
-0.038238525390625,
-0.07403564453125,
0.030731201171875,
-0.0491943359375,
0.05859375,
0.083251953125,
0.01114654541015625,
0.0038909912109375,
-0.0190582275390625,
0.002758026123046875,
0.0149688720703125,
-0.0188140869140625,
-0.032135009765625,
0.0015087127685546875,
-0.08245849609375,
-0.0305328369140625,
0.000011026859283447266,
0.0029315948486328125,
-0.0184326171875,
-0.040802001953125,
-0.0203094482421875,
-0.0284576416015625,
-0.040252685546875,
-0.003223419189453125,
-0.00934600830078125,
-0.0303192138671875,
0.009796142578125,
-0.00792694091796875,
-0.005947113037109375,
-0.031524658203125,
0.0290679931640625,
0.01336669921875,
0.04705810546875,
-0.0401611328125,
-0.040863037109375,
-0.04693603515625,
-0.0782470703125,
-0.041168212890625,
0.0002448558807373047,
-0.0025730133056640625,
-0.01111602783203125,
0.0268096923828125,
-0.019378662109375,
-0.033721923828125,
0.00122833251953125,
-0.00026869773864746094,
0.01910400390625,
0.0092010498046875,
0.01488494873046875,
0.018707275390625,
-0.0167694091796875,
0.02337646484375,
-0.01800537109375,
0.025543212890625,
-0.051116943359375,
-0.018585205078125,
-0.01079559326171875,
0.005344390869140625,
-0.002834320068359375,
-0.028076171875,
0.006687164306640625,
0.01641845703125,
-0.01983642578125,
-0.03399658203125,
-0.036529541015625,
-0.003795623779296875,
-0.053009033203125,
0.0246124267578125,
0.039886474609375,
-0.01078033447265625,
0.0137939453125,
-0.0041046142578125,
0.00038623809814453125,
0.0119476318359375,
0.022918701171875,
-0.019195556640625,
0.0179901123046875,
-0.00579833984375,
-0.027069091796875,
-0.0289459228515625,
-0.0325927734375,
-0.044158935546875,
-0.034759521484375,
-0.052978515625,
-0.0043487548828125,
-0.030181884765625,
0.034515380859375,
-0.0174102783203125,
-0.03192138671875,
0.0091094970703125,
-0.056610107421875,
0.049224853515625,
-0.06939697265625,
-0.0188751220703125,
-0.0516357421875,
0.09149169921875,
-0.07073974609375,
-0.00543975830078125,
0.00823211669921875,
0.0271453857421875,
0.00043129920959472656,
-0.030364990234375,
-0.058837890625,
-0.0270538330078125,
-0.038726806640625,
0.01837158203125,
-0.00565338134765625,
-0.00801849365234375,
0.017425537109375,
-0.0275421142578125,
-0.0018444061279296875,
-0.03350830078125,
0.03619384765625,
0.0201568603515625,
0.01435089111328125,
-0.0019445419311523438,
0.005096435546875,
-0.002109527587890625,
-0.007366180419921875,
-0.00638580322265625,
-0.05804443359375,
-0.01140594482421875,
-0.06390380859375,
0.07061767578125,
0.039642333984375,
-0.006778717041015625,
-0.0097198486328125,
0.033782958984375,
-0.032073974609375,
-0.0136260986328125,
-0.0016469955444335938,
0.008575439453125,
0.01073455810546875,
-0.003875732421875,
-0.0374755859375,
-0.0248260498046875,
-0.032073974609375,
-0.020233154296875,
-0.078125,
-0.0030002593994140625,
0.05133056640625,
0.046112060546875,
0.08648681640625,
-0.0225982666015625,
-0.09033203125,
-0.05535888671875,
0.01364898681640625,
0.0084228515625,
-0.0013904571533203125,
0.0123138427734375,
-0.045135498046875,
-0.04217529296875,
-0.0214385986328125,
-0.01715087890625,
-0.031494140625,
0.0178070068359375,
0.0283050537109375,
0.022308349609375,
0.0093536376953125,
-0.0239105224609375,
-0.028900146484375,
0.00079345703125,
0.00547027587890625,
0.0156402587890625,
0.0027923583984375,
0.013458251953125,
-0.01537322998046875,
-0.01424407958984375,
-0.0016946792602539062,
-0.0053863525390625,
0.0096893310546875,
-0.005123138427734375,
-0.023406982421875,
0.0074920654296875,
-0.01425933837890625,
0.00940704345703125,
0.040924072265625,
-0.0127410888671875,
-0.012176513671875,
0.002277374267578125,
0.0506591796875,
-0.0281982421875,
-0.0136566162109375,
-0.055389404296875,
-0.01097869873046875,
0.0177154541015625,
-0.06427001953125,
0.02239990234375,
0.0102386474609375,
0.002323150634765625,
-0.0165557861328125,
-0.0171966552734375,
-0.01349639892578125,
0.0178375244140625,
0.0430908203125,
0.01377105712890625,
0.03466796875,
-0.0208282470703125,
-0.0288543701171875,
-0.0252685546875,
-0.0216522216796875,
0.0809326171875,
0.0253448486328125,
-0.05657958984375,
0.05194091796875,
-0.0037517547607421875,
-0.031585693359375,
-0.0038909912109375,
-0.0345458984375,
0.0550537109375,
0.029632568359375,
-0.054046630859375,
-0.0228424072265625,
-0.0283660888671875,
-0.0323486328125,
-0.08282470703125,
0.04620361328125,
0.0020580291748046875,
0.006175994873046875,
0.026397705078125,
0.03253173828125,
-0.020599365234375,
0.036865234375,
-0.01788330078125,
0.017120361328125,
0.045196533203125,
-0.01470947265625,
0.033447265625,
-0.0021152496337890625,
-0.01861572265625,
-0.0187225341796875,
0.0012350082397460938,
-0.0013551712036132812,
0.00789642333984375,
0.029388427734375,
0.0162353515625,
0.06427001953125,
0.007293701171875,
-0.0302886962890625,
-0.018890380859375,
-0.005039215087890625,
0.0006022453308105469,
-0.043365478515625,
-0.04473876953125,
0.015625,
0.031341552734375,
0.0174560546875,
-0.0333251953125,
0.01525115966796875,
-0.0699462890625,
-0.04034423828125,
-0.0489501953125,
0.00510406494140625,
-0.04547119140625,
0.00031185150146484375,
0.003215789794921875,
-0.04742431640625,
-0.0183868408203125,
0.0182342529296875,
-0.08648681640625,
-0.03033447265625,
-0.00946044921875,
0.025115966796875,
0.01702880859375,
-0.04046630859375,
0.0243682861328125,
-0.06146240234375,
0.032318115234375,
-0.06689453125,
0.00814056396484375,
0.05462646484375,
0.051300048828125,
0.0225830078125,
-0.011566162109375,
-0.043548583984375,
-0.043212890625,
-0.040130615234375,
-0.0234222412109375,
-0.047943115234375,
0.01343536376953125,
-0.00131988525390625,
0.007663726806640625,
-0.02557373046875,
-0.053070068359375,
0.005146026611328125,
0.00435638427734375,
0.0152587890625,
-0.04107666015625,
-0.0160675048828125,
0.060089111328125,
-0.035186767578125,
0.0625,
-0.00921630859375,
0.0182647705078125,
-0.031707763671875,
0.00042510032653808594,
0.00382232666015625,
-0.0200958251953125,
-0.0257568359375,
0.002040863037109375,
-0.028228759765625,
0.0277557373046875,
0.0718994140625,
-0.01235198974609375,
0.03253173828125,
-0.01224517822265625,
0.0165863037109375,
-0.044403076171875,
-0.044769287109375,
-0.068115234375,
0.0006184577941894531,
-0.00970458984375,
-0.02130126953125,
0.04193115234375,
0.0010509490966796875,
-0.00012731552124023438,
0.00823974609375,
-0.0215301513671875,
0.0216064453125,
0.01045989990234375,
0.0299530029296875,
-0.0274200439453125,
0.038299560546875,
0.0085601806640625,
0.05401611328125,
0.03643798828125,
0.030914306640625,
0.02105712890625,
0.01543426513671875,
-0.04339599609375,
-0.04962158203125,
-0.01467132568359375,
-0.003063201904296875,
0.001178741455078125,
0.0039825439453125,
-0.0100555419921875,
-0.0186004638671875,
-0.00039458274841308594,
0.02630615234375,
-0.005069732666015625,
0.0011606216430664062,
0.0017805099487304688,
-0.00510406494140625,
0.0011386871337890625,
-0.004638671875,
-0.0024242401123046875,
-0.0171661376953125,
0.01102447509765625,
0.02923583984375,
-0.017852783203125,
0.01029205322265625,
0.004093170166015625,
-0.01456451416015625,
-0.0150146484375,
0.004367828369140625,
0.033905029296875,
0.01505279541015625,
0.0308990478515625,
0.0089111328125,
0.0614013671875,
-0.0167236328125,
-0.000782012939453125,
0.0164642333984375,
-0.0113067626953125,
-0.058380126953125,
0.0094757080078125,
-0.0372314453125,
-0.021636962890625,
-0.0452880859375,
-0.014892578125,
0.004474639892578125,
0.01457977294921875,
-0.026458740234375,
-0.01111602783203125,
0.0024890899658203125,
-0.00888824462890625,
0.004299163818359375,
-0.01021575927734375,
0.044464111328125,
0.0027294158935546875,
-0.018402099609375,
0.01377105712890625,
0.0006442070007324219,
-0.04998779296875,
-0.029510498046875,
-0.055389404296875,
0.07135009765625,
-0.036163330078125,
0.0018568038940429688,
0.031097412109375,
0.014678955078125,
-0.031219482421875,
-0.0038700103759765625,
0.011474609375,
-0.07318115234375,
-0.0697021484375,
-0.00504302978515625,
-0.08111572265625,
0.0142822265625,
-0.0021762847900390625,
-0.046234130859375,
0.119873046875,
-0.0096588134765625,
0.0235137939453125,
0.0202484130859375,
0.0628662109375,
-0.0335693359375,
0.027679443359375,
-0.030487060546875,
0.06292724609375,
-0.0199127197265625,
0.0511474609375,
-0.0592041015625,
-0.00931549072265625,
0.0101470947265625,
0.056671142578125,
0.0199737548828125,
0.00583648681640625,
-0.027557373046875,
0.0006885528564453125,
0.0294189453125,
-0.01342010498046875,
-0.01465606689453125,
0.07452392578125,
-0.01537322998046875,
0.03814697265625,
0.04534912109375,
-0.053131103515625,
0.03118896484375,
0.00670623779296875,
-0.021453857421875,
-0.00980377197265625,
-0.0275421142578125,
-0.03912353515625,
0.0208740234375,
0.036773681640625,
-0.070556640625,
0.0169219970703125,
0.03741455078125,
-0.059417724609375,
0.0347900390625,
-0.00873565673828125,
0.0013856887817382812,
0.01079559326171875,
0.079345703125,
-0.0299072265625,
0.0380859375,
-0.01511383056640625,
-0.01557159423828125,
0.02142333984375,
0.0004730224609375,
-0.012298583984375,
0.0341796875,
-0.012542724609375,
0.0207672119140625,
0.024322509765625,
-0.01369476318359375,
0.0173797607421875,
0.022674560546875,
-0.0221710205078125,
-0.0007176399230957031,
0.0266571044921875,
0.0048370361328125,
-0.01209259033203125,
-0.060211181640625,
0.00955963134765625,
0.01261138916015625,
0.01293182373046875,
0.00821685791015625,
-0.004093170166015625,
-0.048980712890625,
0.037750244140625,
0.0205535888671875,
-0.0261077880859375,
0.00130462646484375,
0.0224609375,
0.0212249755859375,
0.031158447265625,
-0.0167388916015625,
-0.0174407958984375,
-0.0240325927734375,
0.015533447265625,
-0.017547607421875,
0.040008544921875,
0.0188446044921875,
0.08648681640625,
-0.0328369140625,
-0.0307769775390625,
-0.0038433074951171875,
0.054656982421875,
-0.0014019012451171875,
-0.00925445556640625,
-0.054779052734375,
-0.0819091796875,
0.0245513916015625,
0.054901123046875,
0.019500732421875,
0.0033283233642578125,
0.039642333984375,
0.07672119140625,
0.006320953369140625,
-0.004390716552734375,
0.057830810546875,
0.001312255859375,
0.038909912109375,
-0.00974273681640625,
-0.01922607421875,
-0.0168609619140625,
-0.0292816162109375,
-0.006046295166015625,
0.038238525390625,
-0.000965118408203125,
-0.0016460418701171875,
0.047607421875,
-0.0012426376342773438,
0.0082550048828125,
-0.0085906982421875,
-0.0304412841796875,
-0.0025653839111328125,
0.0017499923706054688,
-0.06878662109375,
0.01061248779296875,
-0.04571533203125,
-0.03985595703125,
0.016815185546875,
0.022369384765625,
-0.0195465087890625,
0.024139404296875,
0.01534271240234375,
0.0202484130859375,
0.032440185546875,
-0.0293426513671875,
-0.02569580078125,
-0.036834716796875,
0.04180908203125,
-0.02783203125,
-0.0587158203125,
-0.02801513671875,
-0.020050048828125,
0.044219970703125,
0.0032196044921875,
0.06671142578125,
-0.0118560791015625,
0.0223388671875,
0.005702972412109375,
0.005672454833984375,
0.0264892578125,
0.01067352294921875,
-0.0193634033203125,
0.0204315185546875,
0.0244293212890625,
-0.0157470703125,
-0.04486083984375,
0.021636962890625,
0.006923675537109375,
0.006786346435546875,
0.02423095703125,
-0.04736328125,
0.02166748046875,
0.01343536376953125,
0.00937652587890625,
-0.03436279296875,
-0.06365966796875,
-0.04669189453125,
0.01006317138671875,
-0.00031876564025878906,
0.004558563232421875,
-0.030120849609375,
0.057373046875,
0.0321044921875,
0.0216522216796875,
0.0225982666015625,
-0.01092529296875,
0.0113983154296875,
0.005130767822265625,
0.0194091796875,
-0.045745849609375,
0.0572509765625,
0.01374053955078125,
-0.0081329345703125,
0.0257720947265625,
0.038848876953125,
0.040283203125,
-0.07977294921875,
0.03643798828125,
0.046051025390625,
0.040069580078125,
-0.0181427001953125,
0.003749847412109375,
0.042449951171875,
0.0023212432861328125,
0.01468658447265625,
-0.01177215576171875,
-0.0242919921875,
-0.024688720703125,
-0.013153076171875,
-0.002666473388671875,
-0.0170745849609375,
-0.042266845703125,
-0.03143310546875,
-0.0367431640625,
0.057769775390625,
-0.0178070068359375,
0.01235198974609375,
-0.01922607421875,
-0.04034423828125,
0.0003097057342529297,
0.0166015625,
-0.058258056640625,
0.018218994140625,
0.01424407958984375,
-0.01404571533203125,
-0.018280029296875,
-0.037017822265625,
0.005157470703125,
-0.02532958984375,
-0.0004992485046386719,
0.0225067138671875,
-0.02301025390625,
-0.0301055908203125,
-0.0096435546875,
0.0243072509765625,
0.0252532958984375,
0.00496673583984375,
-0.01354217529296875,
0.02398681640625,
0.00466156005859375,
-0.0224456787109375,
-0.03857421875,
0.01019287109375,
-0.04949951171875,
-0.00791168212890625,
-0.060211181640625,
-0.0048065185546875,
-0.02044677734375,
-0.0517578125,
-0.0367431640625,
0.0211944580078125,
-0.00615692138671875,
-0.034332275390625,
-0.06463623046875,
-0.0014181137084960938,
0.01464080810546875,
-0.0009822845458984375,
-0.0276641845703125,
-0.0099945068359375,
-0.036224365234375,
0.00826263427734375,
0.01520538330078125,
0.0213623046875,
0.007568359375,
0.01708984375,
0.00644683837890625,
0.03472900390625,
0.01473236083984375,
-0.0111541748046875,
0.0019121170043945312,
-0.0008082389831542969,
0.006999969482421875,
0.035980224609375,
-0.0229644775390625,
-0.0312347412109375,
-0.0025959014892578125,
-0.032989501953125,
0.016754150390625,
0.02874755859375,
-0.03363037109375,
0.03375244140625,
0.0139617919921875,
0.079833984375,
0.01318359375,
-0.05877685546875,
-0.01983642578125,
-0.02850341796875,
-0.017364501953125,
-0.0162353515625,
0.0046844482421875,
-0.0300750732421875,
0.01480865478515625,
-0.0189971923828125,
-0.03570556640625,
0.005336761474609375,
-0.014068603515625,
-0.03741455078125,
0.010711669921875,
-0.00566864013671875,
0.000026106834411621094,
-0.02484130859375,
0.01517486572265625,
0.0110626220703125,
0.0008177757263183594,
0.0302581787109375,
-0.01514434814453125,
0.003551483154296875,
0.01294708251953125,
0.03265380859375,
-0.016387939453125,
0.0063323974609375,
-0.03546142578125,
0.0286712646484375,
-0.022552490234375,
0.020965576171875,
-0.05157470703125,
0.01268768310546875,
-0.00560760498046875,
0.0278167724609375,
0.020599365234375,
0.02044677734375,
-0.0164947509765625,
0.016357421875,
-0.0034027099609375,
-0.004486083984375,
-0.020599365234375,
-0.0496826171875,
-0.0260772705078125,
0.0142364501953125,
-0.0261383056640625,
0.0198822021484375,
0.005725860595703125,
-0.0172271728515625,
0.0035552978515625,
0.0182037353515625,
0.010162353515625,
-0.035430908203125,
0.0357666015625,
-0.0034236907958984375,
0.0099639892578125,
0.0179901123046875
] |
404a1f5cd9cee1abbaa558759f895af490e37c9c
|
Wordpress Stackexchange
Q: remove "edit your profile" from admin menu bar How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
A: Wordpress has introduced new stufs (nodes).
I was searching for remove completly the 'user account box' and add a simple logout :
//http://codex.wordpress.org/Function_Reference/get_nodes
//http://codex.wordpress.org/Function_Reference/add_node
add_action( 'admin_bar_menu', 'remove_my_account', 999 );
function remove_my_account( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'my-account' );
}
add_action( 'admin_bar_menu', 'add_logout', 999 );
function add_logout( $wp_admin_bar ) {
$args = array(
'id' => 'logout', // id of the existing child node (New > Post)
'title' => 'Se déconnecter', // alter the title of existing node
'parent' => 'top-secondary', // set parent
);
$wp_admin_bar->add_node( $args );
}
|
Q: remove "edit your profile" from admin menu bar How can I remove "edit your profile" submenu under "my-account-with-avatar" admin menu bar, while still keeping the avatar and logout?
A: Wordpress has introduced new stufs (nodes).
I was searching for remove completly the 'user account box' and add a simple logout :
//http://codex.wordpress.org/Function_Reference/get_nodes
//http://codex.wordpress.org/Function_Reference/add_node
add_action( 'admin_bar_menu', 'remove_my_account', 999 );
function remove_my_account( $wp_admin_bar ) {
$wp_admin_bar->remove_node( 'my-account' );
}
add_action( 'admin_bar_menu', 'add_logout', 999 );
function add_logout( $wp_admin_bar ) {
$args = array(
'id' => 'logout', // id of the existing child node (New > Post)
'title' => 'Se déconnecter', // alter the title of existing node
'parent' => 'top-secondary', // set parent
);
$wp_admin_bar->add_node( $args );
}
A: There is a remove_menu hook for the admin menu bar.
The class you want to hook into $wp_admin_bar , you can see the remove function here and test it out since there is no documentation on it ( line 86), it should work with the submenu ID.
http://core.trac.wordpress.org/browser/tags/3.2.1/wp-includes/class-wp-admin-bar.php
Since you did not seem to believe me here is the code.........
function ya_do_it_admin_bar_remove() {
global $wp_admin_bar;
/* **edit-profile is the ID** */
$wp_admin_bar->remove_menu('edit-profile');
}
add_action('wp_before_admin_bar_render', 'ya_do_it_admin_bar_remove', 0);
A: I'm not sure if you can remove it (haven't checked), but you may achieve the same using css to hide the edit your profile link. The list item has an id 'wp-admin-bar-edit-profile' which you use to hide it. This is the html used in the admin bar:
<li id="wp-admin-bar-edit-profile" class="">
<a href="http://www.example.com/wp-admin/profile.php">Edit My Profile</a>
</li>
I'm using the following css:
#wp-admin-bar-edit-profile { display: none }
This hides the link in the admin bar without any of the other links. Add this css snippet to your theme's style.css and the link will be hidden in the admin bar when viewing your site. Hiding it in the admin bar when viewing the WordPress backend involves a bit more and might be moot since there's also a link to the profile in the menu on the left.
|
wordpress
|
{
"language": "en",
"length": 328,
"provenance": "stackexchange_00019.jsonl.gz:411335",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23035"
}
|
[
0.06024169921875,
0.0004668235778808594,
0.0184783935546875,
-0.00655364990234375,
0.010833740234375,
-0.038665771484375,
0.03887939453125,
-0.06842041015625,
-0.0147247314453125,
0.030487060546875,
0.04718017578125,
-0.01873779296875,
-0.003704071044921875,
-0.036590576171875,
-0.0196533203125,
-0.022613525390625,
-0.004550933837890625,
0.0169525146484375,
0.0177001953125,
-0.00524139404296875,
0.008575439453125,
-0.00885772705078125,
-0.006237030029296875,
-0.01348114013671875,
-0.00937652587890625,
-0.02117919921875,
0.07672119140625,
-0.01248931884765625,
0.0073394775390625,
-0.01194000244140625,
0.006481170654296875,
0.0044403076171875,
-0.009552001953125,
0.0285491943359375,
0.00803375244140625,
0.0235748291015625,
-0.031524658203125,
0.033447265625,
0.0540771484375,
-0.03668212890625,
0.006824493408203125,
0.0159149169921875,
-0.0024566650390625,
0.0258941650390625,
-0.031707763671875,
-0.05047607421875,
0.0207672119140625,
-0.0125579833984375,
0.020782470703125,
-0.0270233154296875,
0.00951385498046875,
-0.0026950836181640625,
0.033416748046875,
-0.045379638671875,
-0.0156707763671875,
-0.0047149658203125,
0.00194549560546875,
-0.026275634765625,
0.03448486328125,
0.07513427734375,
-0.0007343292236328125,
0.0008749961853027344,
-0.016143798828125,
-0.0859375,
-0.007373809814453125,
0.0093536376953125,
0.0234222412109375,
-0.0009493827819824219,
-0.052947998046875,
-0.0041656494140625,
0.049530029296875,
-0.0205841064453125,
-0.023590087890625,
0.014434814453125,
-0.0301513671875,
-0.0243377685546875,
0.0125579833984375,
-0.012420654296875,
0.010711669921875,
0.029998779296875,
0.00720977783203125,
0.0221405029296875,
-0.0640869140625,
0.004619598388671875,
-0.00970458984375,
0.016326904296875,
-0.0210723876953125,
-0.0191802978515625,
-0.0011234283447265625,
0.0179290771484375,
-0.0118865966796875,
-0.038299560546875,
0.011077880859375,
0.041656494140625,
-0.0013189315795898438,
0.0034770965576171875,
0.02313232421875,
0.0006604194641113281,
0.01727294921875,
-0.0006151199340820312,
0.018341064453125,
-0.043182373046875,
0.01012420654296875,
-0.006275177001953125,
0.003200531005859375,
0.0516357421875,
-0.01160430908203125,
-0.024261474609375,
0.022552490234375,
0.0241546630859375,
0.0154266357421875,
-0.0108795166015625,
-0.0154266357421875,
-0.03179931640625,
-0.008636474609375,
0.0390625,
-0.018798828125,
0.01898193359375,
0.01053619384765625,
0.044708251953125,
-0.049285888671875,
-0.0191802978515625,
-0.00347900390625,
-0.0009646415710449219,
0.017364501953125,
-0.00884246826171875,
-0.02130126953125,
0.04364013671875,
-0.017852783203125,
0.00978851318359375,
-0.060150146484375,
0.0263214111328125,
0.10076904296875,
0.042266845703125,
0.0316162109375,
-0.0276947021484375,
-0.002864837646484375,
-0.037353515625,
0.0176544189453125,
-0.00008744001388549805,
0.02001953125,
-0.0283050537109375,
0.0120086669921875,
0.020965576171875,
0.020050048828125,
0.0108642578125,
-0.0023441314697265625,
0.007274627685546875,
0.055145263671875,
-0.0011234283447265625,
-0.036376953125,
-0.018951416015625,
0.00818634033203125,
0.03192138671875,
0.0086669921875,
0.0246429443359375,
0.06298828125,
-0.01953125,
-0.021728515625,
-0.030426025390625,
-0.037384033203125,
-0.01003265380859375,
0.0225677490234375,
-0.0599365234375,
-0.058197021484375,
0.02117919921875,
-0.021087646484375,
-0.00811004638671875,
0.03472900390625,
-0.03240966796875,
0.032073974609375,
-0.041473388671875,
0.046173095703125,
0.023773193359375,
0.00931549072265625,
0.04876708984375,
0.01189422607421875,
0.031585693359375,
0.001857757568359375,
0.0292205810546875,
-0.0206146240234375,
-0.05120849609375,
0.0220489501953125,
-0.01910400390625,
-0.046722412109375,
0.0185546875,
-0.015106201171875,
0.0034694671630859375,
0.0321044921875,
0.000980377197265625,
0.046600341796875,
0.0245361328125,
-0.0287322998046875,
-0.02593994140625,
0.0079345703125,
-0.003284454345703125,
0.01290130615234375,
0.00014126300811767578,
0.0133209228515625,
0.0012578964233398438,
0.019195556640625,
0.028656005859375,
-0.0343017578125,
-0.0049591064453125,
-0.0972900390625,
0.01206207275390625,
-0.0269317626953125,
0.049591064453125,
-0.018157958984375,
0.0005383491516113281,
0.015472412109375,
-0.031219482421875,
-0.00727081298828125,
0.00029921531677246094,
-0.01025390625,
-0.0241241455078125,
-0.029937744140625,
0.038360595703125,
-0.00897216796875,
0.0281524658203125,
-0.01898193359375,
-0.0256805419921875,
-0.0010843276977539062,
-0.0085906982421875,
0.044830322265625,
-0.03973388671875,
-0.0250244140625,
-0.039031982421875,
0.0013952255249023438,
-0.0165252685546875,
-0.052581787109375,
0.06817626953125,
0.03277587890625,
0.0158843994140625,
-0.059417724609375,
-0.025360107421875,
-0.042877197265625,
-0.04302978515625,
-0.005462646484375,
0.054168701171875,
0.0341796875,
-0.0178070068359375,
-0.004306793212890625,
0.0233612060546875,
-0.0159759521484375,
-0.038360595703125,
0.032867431640625,
-0.0100555419921875,
0.0036163330078125,
0.00021779537200927734,
0.0057220458984375,
-0.0290374755859375,
0.033782958984375,
-0.0219573974609375,
0.0149078369140625,
0.0163726806640625,
-0.0281829833984375,
-0.032958984375,
0.0070648193359375,
-0.016143798828125,
0.007274627685546875,
-0.048614501953125,
-0.020294189453125,
-0.01168060302734375,
0.048828125,
-0.0208587646484375,
0.04290771484375,
0.021942138671875,
-0.025115966796875,
-0.01861572265625,
0.0426025390625,
0.056854248046875,
-0.00984954833984375,
0.00673675537109375,
0.0204620361328125,
-0.0469970703125,
-0.0276031494140625,
0.0005788803100585938,
0.002956390380859375,
-0.013519287109375,
-0.00045108795166015625,
0.0361328125,
0.06500244140625,
-0.00914764404296875,
-0.00514984130859375,
-0.02294921875,
0.032867431640625,
-0.01331329345703125,
-0.002437591552734375,
-0.0362548828125,
0.006824493408203125,
-0.021514892578125,
-0.040130615234375,
0.01226806640625,
0.0197601318359375,
-0.035430908203125,
0.01165008544921875,
-0.01380157470703125,
0.0145416259765625,
-0.0068817138671875,
0.07489013671875,
0.07080078125,
-0.00861358642578125,
0.0018835067749023438,
0.00644683837890625,
-0.04620361328125,
-0.0304718017578125,
0.039337158203125,
0.0096893310546875,
-0.0579833984375,
0.037841796875,
0.09759521484375,
0.0181121826171875,
-0.048980712890625,
0.031707763671875,
0.0006413459777832031,
-0.01128387451171875,
0.0003581047058105469,
-0.016387939453125,
0.01016998291015625,
0.025421142578125,
-0.00931549072265625,
-0.0163726806640625,
0.0242767333984375,
-0.017913818359375,
-0.00359344482421875,
0.057708740234375,
0.0068206787109375,
0.005283355712890625,
0.0002491474151611328,
-0.01513671875,
-0.00896453857421875,
-0.01873779296875,
-0.0276947021484375,
-0.0146636962890625,
-0.0179595947265625,
0.0162811279296875,
0.08282470703125,
0.0223388671875,
-0.042327880859375,
0.02435302734375,
-0.01116180419921875,
-0.008056640625,
0.029632568359375,
0.01385498046875,
-0.017486572265625,
0.0233001708984375,
-0.0012102127075195312,
0.00022614002227783203,
0.025299072265625,
-0.02459716796875,
0.003204345703125,
-0.010223388671875,
-0.0325927734375,
0.016815185546875,
-0.05535888671875,
-0.016998291015625,
0.00428009033203125,
-0.0011653900146484375,
-0.0282745361328125,
0.005130767822265625,
-0.026641845703125,
-0.01213836669921875,
0.0771484375,
-0.004138946533203125,
-0.0012521743774414062,
0.0208892822265625,
0.02630615234375,
-0.0222625732421875,
-0.007442474365234375,
0.0308837890625,
-0.0033416748046875,
-0.018798828125,
-0.038360595703125,
-0.048431396484375,
-0.015625,
0.0301971435546875,
-0.033599853515625,
0.014312744140625,
0.007061004638671875,
-0.0127105712890625,
0.0155792236328125,
-0.03466796875,
0.0233154296875,
-0.0259552001953125,
0.0360107421875,
-0.04144287109375,
0.00737762451171875,
-0.037567138671875,
0.0019397735595703125,
-0.0301361083984375,
0.057159423828125,
-0.0010728836059570312,
-0.02032470703125,
-0.0011577606201171875,
0.003017425537109375,
-0.021026611328125,
-0.004917144775390625,
-0.028961181640625,
-0.0076751708984375,
-0.0928955078125,
0.006336212158203125,
0.00214385986328125,
-0.028045654296875,
-0.005462646484375,
-0.01160430908203125,
-0.04058837890625,
-0.047210693359375,
0.0279693603515625,
-0.023681640625,
0.01210784912109375,
0.0265045166015625,
0.00286102294921875,
-0.0198822021484375,
-0.0182037353515625,
-0.0160675048828125,
-0.06475830078125,
-0.01151275634765625,
-0.022186279296875,
0.036102294921875,
-0.00640869140625,
0.0167388916015625,
-0.0236663818359375,
0.02728271484375,
0.021636962890625,
-0.016357421875,
0.01375579833984375,
0.0012311935424804688,
-0.0259246826171875,
-0.01018524169921875,
0.004352569580078125,
-0.02520751953125,
-0.0075225830078125,
0.01488494873046875,
-0.0240020751953125,
0.036285400390625,
-0.00930023193359375,
0.0094451904296875,
0.0267333984375,
-0.041534423828125,
-0.058990478515625,
-0.04559326171875,
-0.0222015380859375,
0.006744384765625,
-0.0303955078125,
0.030517578125,
-0.044036865234375,
-0.06671142578125,
0.00914764404296875,
-0.0182342529296875,
-0.02679443359375,
0.021697998046875,
0.07373046875,
0.0274505615234375,
0.0007224082946777344,
-0.01312255859375,
-0.001552581787109375,
0.019317626953125,
-0.04376220703125,
0.06610107421875,
0.020965576171875,
0.006336212158203125,
0.0802001953125,
-0.030426025390625,
0.032562255859375,
-0.0511474609375,
0.04931640625,
0.0196533203125,
0.010955810546875,
0.01247406005859375,
0.0099945068359375,
-0.0098876953125,
-0.016754150390625,
-0.0094757080078125,
0.006984710693359375,
-0.048553466796875,
0.01459503173828125,
0.047576904296875,
-0.0289154052734375,
-0.04217529296875,
0.0166473388671875,
-0.0016489028930664062,
-0.0201568603515625,
0.0182647705078125,
0.0032978057861328125,
0.0089263916015625,
-0.047607421875,
0.0036945343017578125,
-0.01708984375,
-0.0338134765625,
-0.0240325927734375,
-0.054840087890625,
0.0166473388671875,
-0.048828125,
-0.0308074951171875,
0.01003265380859375,
-0.00832366943359375,
0.08953857421875,
0.048370361328125,
-0.0261383056640625,
-0.02227783203125,
0.019256591796875,
0.05792236328125,
-0.025238037109375,
0.023956298828125,
0.06201171875,
0.00463104248046875,
0.01053619384765625,
-0.031005859375,
-0.021148681640625,
-0.0169219970703125,
-0.0504150390625,
0.034942626953125,
0.0176849365234375,
-0.0206298828125,
-0.0027446746826171875,
0.046417236328125,
0.00384521484375,
0.0130767822265625,
-0.00908660888671875,
0.041168212890625,
0.0269927978515625,
0.0211181640625,
-0.006931304931640625,
0.033416748046875,
-0.0151519775390625,
0.00872802734375,
0.01259613037109375,
-0.02423095703125,
-0.0163421630859375,
0.04278564453125,
0.01204681396484375,
0.028167724609375,
0.0173797607421875,
-0.025604248046875,
0.006313323974609375,
-0.0215606689453125,
0.046539306640625,
-0.033721923828125,
-0.107666015625,
0.013153076171875,
0.036865234375,
-0.00684356689453125,
-0.07647705078125,
-0.005279541015625,
-0.0248565673828125,
-0.052337646484375,
-0.044097900390625,
0.0228118896484375,
-0.035797119140625,
-0.028656005859375,
-0.016693115234375,
-0.0193939208984375,
-0.012115478515625,
0.0189361572265625,
-0.04754638671875,
-0.0259246826171875,
-0.0189971923828125,
-0.0186614990234375,
0.0406494140625,
0.0013971328735351562,
0.0129241943359375,
-0.03192138671875,
0.020538330078125,
-0.00939178466796875,
-0.01824951171875,
0.07867431640625,
0.0254364013671875,
-0.050323486328125,
0.023162841796875,
-0.02435302734375,
0.02117919921875,
-0.0175933837890625,
-0.07794189453125,
-0.03411865234375,
-0.0323486328125,
-0.02056884765625,
0.00478363037109375,
-0.00795745849609375,
0.043731689453125,
-0.0007672309875488281,
0.0477294921875,
-0.005462646484375,
0.043365478515625,
-0.027374267578125,
0.0499267578125,
-0.0290985107421875,
0.0171966552734375,
-0.02008056640625,
0.0150299072265625,
0.0016231536865234375,
0.0014772415161132812,
0.01378631591796875,
0.0257110595703125,
-0.0210418701171875,
-0.0560302734375,
0.0091705322265625,
-0.0171661376953125,
0.054290771484375,
-0.013702392578125,
0.01239776611328125,
-0.0029659271240234375,
0.0081939697265625,
-0.034271240234375,
0.01528167724609375,
-0.024658203125,
0.0191650390625,
-0.0228729248046875,
-0.00033092498779296875,
0.06707763671875,
-0.0156402587890625,
0.00035858154296875,
-0.00843048095703125,
-0.0255126953125,
0.0249786376953125,
0.0031719207763671875,
-0.039947509765625,
0.044586181640625,
0.034942626953125,
-0.019561767578125,
0.00418853759765625,
-0.0063934326171875,
0.00396728515625,
-0.007785797119140625,
-0.032958984375,
-0.0157928466796875,
0.04742431640625,
0.0219879150390625,
-0.010223388671875,
0.017120361328125,
0.0257720947265625,
-0.007305145263671875,
0.0181732177734375,
0.0699462890625,
0.05352783203125,
-0.09222412109375,
0.0214996337890625,
0.0039825439453125,
0.005481719970703125,
0.0626220703125,
-0.00481414794921875,
-0.0117645263671875,
-0.046295166015625,
0.011932373046875,
-0.010162353515625,
-0.032135009765625,
-0.0224609375,
-0.01134490966796875,
-0.005962371826171875,
-0.004718780517578125,
0.005584716796875,
0.00513458251953125,
0.011077880859375,
0.00936126708984375,
-0.00960540771484375,
0.029815673828125,
-0.0299224853515625,
-0.02618408203125,
0.0303955078125,
-0.01464080810546875,
-0.077392578125,
0.0092926025390625,
-0.036834716796875,
0.0225677490234375,
0.05169677734375,
-0.01454925537109375,
0.02093505859375,
0.030792236328125,
-0.02301025390625,
0.018890380859375,
-0.0008602142333984375,
-0.01708984375,
-0.005245208740234375,
-0.043121337890625,
0.017303466796875,
0.022216796875,
-0.0855712890625,
0.02081298828125,
-0.02606201171875,
-0.00878143310546875,
-0.005096435546875,
-0.004123687744140625,
0.065185546875,
-0.05230712890625,
-0.0049591064453125,
0.0212860107421875,
-0.0003695487976074219,
-0.0013427734375,
0.01009368896484375,
0.03350830078125,
-0.0684814453125,
-0.0777587890625,
0.025787353515625,
-0.0838623046875,
-0.01035308837890625,
0.0203857421875,
-0.05377197265625,
0.0994873046875,
-0.0122528076171875,
0.0106201171875,
0.002811431884765625,
0.047760009765625,
-0.03155517578125,
0.0182037353515625,
-0.0258331298828125,
0.050872802734375,
0.03277587890625,
0.0137939453125,
0.00708770751953125,
-0.0004608631134033203,
0.01331329345703125,
-0.0031833648681640625,
0.048126220703125,
0.0289306640625,
-0.0318603515625,
-0.033172607421875,
-0.00835418701171875,
0.03375244140625,
0.0024509429931640625,
0.0418701171875,
-0.005847930908203125,
0.004581451416015625,
0.0097503662109375,
-0.043853759765625,
0.00518798828125,
-0.00565338134765625,
-0.023651123046875,
0.035675048828125,
0.0235443115234375,
0.0191802978515625,
0.00514984130859375,
0.0645751953125,
0.0064239501953125,
-0.007274627685546875,
0.0023593902587890625,
-0.031829833984375,
-0.00289154052734375,
-0.005168914794921875,
-0.01329803466796875,
-0.00689697265625,
-0.012969970703125,
-0.0173492431640625,
0.0305633544921875,
0.0104827880859375,
0.002330780029296875,
0.0308685302734375,
0.031463623046875,
-0.0237274169921875,
-0.007328033447265625,
0.006130218505859375,
0.0292205810546875,
-0.031494140625,
0.03253173828125,
0.005615234375,
0.0217132568359375,
-0.054962158203125,
0.02667236328125,
0.049835205078125,
0.05096435546875,
-0.038055419921875,
-0.0621337890625,
0.0183258056640625,
0.034027099609375,
0.0197906494140625,
0.060546875,
0.061767578125,
-0.055908203125,
0.028961181640625,
-0.0305328369140625,
0.019561767578125,
0.0266571044921875,
-0.00400543212890625,
-0.0087432861328125,
0.0157012939453125,
-0.01031494140625,
0.04193115234375,
-0.017303466796875,
0.006069183349609375,
-0.00136566162109375,
-0.007415771484375,
0.004871368408203125,
0.0068817138671875,
0.033172607421875,
0.0106658935546875,
-0.0023097991943359375,
-0.01442718505859375,
-0.037506103515625,
0.00868988037109375,
-0.04022216796875,
-0.05810546875,
0.006195068359375,
0.0394287109375,
-0.0018787384033203125,
-0.022430419921875,
0.0271453857421875,
0.0191192626953125,
-0.0706787109375,
-0.025360107421875,
0.0193328857421875,
-0.02337646484375,
-0.005619049072265625,
-0.019989013671875,
0.028717041015625,
0.01084136962890625,
0.00930023193359375,
-0.00902557373046875,
0.037322998046875,
0.0261993408203125,
-0.027374267578125,
0.0005364418029785156,
0.002597808837890625,
-0.037506103515625,
0.0197601318359375,
0.0220947265625,
0.01442718505859375,
0.0028400421142578125,
-0.10052490234375,
-0.03045654296875,
-0.00691986083984375,
-0.00574493408203125,
0.0186767578125,
0.03515625,
-0.019989013671875,
0.030120849609375,
-0.01351165771484375,
-0.007381439208984375,
-0.039886474609375,
0.024505615234375,
0.00579833984375,
-0.033477783203125,
0.024505615234375,
-0.01042938232421875,
-0.02423095703125,
-0.0271759033203125,
-0.0191802978515625,
0.038116455078125,
0.04779052734375,
-0.01413726806640625,
0.017242431640625,
0.059600830078125,
-0.048675537109375,
-0.0160369873046875,
-0.019500732421875,
-0.016754150390625,
-0.0303802490234375,
0.0256805419921875,
-0.006511688232421875,
0.00289154052734375,
-0.041839599609375,
0.042205810546875,
0.0278472900390625,
-0.016632080078125,
0.040985107421875,
0.02166748046875,
-0.00934600830078125,
-0.031494140625,
0.0210113525390625,
-0.0100860595703125,
-0.0035572052001953125,
0.007587432861328125,
-0.01442718505859375,
0.0031757354736328125,
0.015777587890625,
0.0219268798828125,
0.0147552490234375,
-0.0004086494445800781,
-0.0267333984375,
0.02880859375,
-0.02325439453125,
0.0138092041015625,
0.0184326171875,
0.006404876708984375,
0.0255126953125,
0.0015993118286132812,
-0.019500732421875,
0.0182647705078125,
0.01560211181640625,
-0.012237548828125,
0.018280029296875,
-0.0166168212890625,
0.0212860107421875,
0.0227813720703125,
0.04132080078125,
-0.0083465576171875,
0.0166473388671875,
0.006793975830078125,
0.0011835098266601562,
-0.01123046875,
-0.0172271728515625,
-0.059234619140625,
-0.0802001953125,
0.0095977783203125,
0.02825927734375,
-0.035797119140625,
-0.05413818359375,
-0.10736083984375,
0.0261383056640625,
0.0628662109375,
0.027435302734375,
-0.06378173828125,
0.054534912109375,
-0.04119873046875,
0.039459228515625,
0.038848876953125,
-0.043426513671875,
-0.0032787322998046875,
-0.0017480850219726562,
-0.00867462158203125,
-0.0048980712890625,
-0.056854248046875,
-0.01149749755859375,
-0.01495361328125,
-0.0540771484375,
-0.002117156982421875,
0.01898193359375,
0.0029697418212890625,
-0.08489990234375,
-0.03399658203125,
-0.039398193359375,
-0.039825439453125,
-0.0276947021484375,
-0.0213623046875,
0.020660400390625,
0.019500732421875,
0.0031375885009765625,
-0.0270538330078125,
0.039031982421875,
-0.0171356201171875,
-0.012939453125,
0.00959014892578125,
0.0193634033203125,
-0.042236328125,
-0.0784912109375,
-0.01241302490234375,
-0.01180267333984375,
-0.043701171875,
0.00011521577835083008,
0.0037364959716796875,
-0.026519775390625,
0.028076171875,
-0.00003349781036376953,
-0.00518798828125,
0.016265869140625,
0.0248565673828125,
0.00920867919921875,
0.0233306884765625,
0.014404296875,
0.005268096923828125,
-0.0305938720703125,
0.005374908447265625,
-0.0027599334716796875,
-0.00301361083984375,
-0.00945281982421875,
-0.001422882080078125,
0.0176849365234375,
0.0287322998046875,
-0.031585693359375,
-0.0022792816162109375,
-0.0034809112548828125,
-0.007717132568359375,
-0.0187835693359375,
-0.0017452239990234375,
-0.027252197265625,
-0.0037860870361328125,
0.083984375,
0.06475830078125,
0.023895263671875,
-0.0246124267578125,
-0.053558349609375,
-0.055694580078125,
0.01480865478515625,
-0.0259857177734375,
0.0135498046875,
-0.0889892578125,
0.006359100341796875,
0.03192138671875,
-0.0218505859375,
-0.042510986328125,
0.038787841796875,
-0.03338623046875,
0.008575439453125,
0.04681396484375,
-0.0197906494140625,
0.0233612060546875,
0.0110321044921875,
0.022491455078125,
-0.03302001953125,
-0.041839599609375,
-0.01245880126953125,
-0.00540924072265625,
-0.0191802978515625,
-0.0189971923828125,
-0.0202789306640625,
-0.036651611328125,
-0.038482666015625,
0.050048828125,
-0.033599853515625,
0.08734130859375,
-0.0836181640625,
-0.037811279296875,
-0.0130157470703125,
-0.007236480712890625,
0.00447845458984375,
-0.0127716064453125,
-0.041412353515625,
0.028564453125,
0.004314422607421875,
0.058837890625,
0.004486083984375,
0.06988525390625,
-0.01366424560546875,
0.0489501953125,
0.0026569366455078125,
-0.0247650146484375,
0.0255126953125,
-0.00872039794921875,
-0.0014162063598632812,
-0.0211944580078125,
0.0149993896484375,
-0.1009521484375,
0.06195068359375,
0.02447509765625,
0.037109375,
0.059814453125
] |
7603fb32e6dbfd0d62b956e80f1af041c826d540
|
Wordpress Stackexchange
Q: Updating a Wordpress plugins breaks SVN I have a blog with all the plugins I need committed to an internal svn repository. Wordpress is showing that some plugins need to be updated but when I do, Wordpress will delete the folder for that plugin so the .svn files are deleted as well. This will break the repository for that plugin. Any way around this?
A: a simple way around this is to update the plugins by SVN from the plugin repository.
|
Q: Updating a Wordpress plugins breaks SVN I have a blog with all the plugins I need committed to an internal svn repository. Wordpress is showing that some plugins need to be updated but when I do, Wordpress will delete the folder for that plugin so the .svn files are deleted as well. This will break the repository for that plugin. Any way around this?
A: a simple way around this is to update the plugins by SVN from the plugin repository.
A: I just decided to patch the core to fix this. We manage a lot of separate development projects built on wordpress and we like to keep plugin updates under our own control without the associated hassles of externals. I'd prefer a hook but one does not exist and it's probably best not to provide one for such low level actions. But on the plus side the modifications only affect a single function in the class-wp-filesystem-direct.php file and that file hasn't changed significantly in almost two years.
//@version 3.4
function delete($file, $recursive = false, $type = false) {
if ( empty($file) ) //Some filesystems report this as /, which can cause non-expected recursive deletion of all files in the filesystem.
return false;
$file = str_replace('\\', '/', $file); //for win32, occasional problems deleting files otherwise
if ( 'f' == $type || $this->is_file($file) )
return @unlink($file);
if ( ! $recursive && $this->is_dir($file) )
return @rmdir($file);
//At this point its a folder, and we're in recursive mode
$file = trailingslashit($file);
$retval = true;
//preserve svn folders
if (preg_match("|\/\.svn\/$|", $file))
return $retval;
$filelist = $this->dirlist($file, true);
if ( is_array($filelist) ) //false if no files, So check first.
foreach ($filelist as $filename => $fileinfo)
if ( ! $this->delete($file . $filename, $recursive, $fileinfo['type']) )
$retval = false;
//don't worry if directories are left behind
if ( file_exists($file) ) @rmdir($file);
return $retval;
}
The key differences are to ignore /.svn/ folders entirely, and then to not fail when directories can't be removed. They'll still be removed if they don't contain child .svn folders. As a result you may need to prune a couple "empty" directories every now and then but I haven't had to do that yet. And you'll of course need to re-patch the file each time you update the core.
Another option is to download the plugin as a zip file from the wordpress plugins directory and use a file manager utility to do a one-way merge or sync between the two directories. Windows explorer will do this natively if you just drag and drop the new plugin folder over the existing one. But it's just far easier to click that update now link in the wp-admin area.
A: How are you updating the plugins?
The only way around this I have found is to go in to each folder and replace files folder by folder without replacing a folder. A pain but it's the only way I know of.
|
wordpress
|
{
"language": "en",
"length": 487,
"provenance": "stackexchange_00019.jsonl.gz:411342",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23052"
}
|
[
0.072998046875,
0.006336212158203125,
0.02392578125,
-0.0261383056640625,
0.01934814453125,
-0.01184844970703125,
0.03253173828125,
-0.03277587890625,
-0.01461029052734375,
0.007801055908203125,
-0.039581298828125,
0.00830841064453125,
-0.018218994140625,
-0.01337432861328125,
0.008392333984375,
-0.04449462890625,
0.050811767578125,
-0.0277557373046875,
0.0258636474609375,
-0.0028400421142578125,
-0.01244354248046875,
0.051239013671875,
0.0248260498046875,
0.04022216796875,
0.00560760498046875,
0.03692626953125,
0.0931396484375,
-0.0333251953125,
0.0007863044738769531,
-0.03424072265625,
0.01141357421875,
0.004360198974609375,
0.01016998291015625,
0.04058837890625,
-0.037353515625,
-0.034820556640625,
-0.0005955696105957031,
0.023284912109375,
0.0093841552734375,
-0.00829315185546875,
0.0282135009765625,
-0.01174163818359375,
0.053436279296875,
0.006134033203125,
0.048126220703125,
-0.0811767578125,
0.061279296875,
-0.08953857421875,
0.0194854736328125,
-0.0267486572265625,
-0.0194854736328125,
0.026092529296875,
0.01244354248046875,
-0.0386962890625,
-0.0059967041015625,
0.0036773681640625,
-0.03485107421875,
0.042144775390625,
0.006717681884765625,
0.025360107421875,
-0.0023517608642578125,
0.0287628173828125,
-0.0038471221923828125,
-0.0103302001953125,
-0.01279449462890625,
-0.0096435546875,
0.02410888671875,
0.0009489059448242188,
-0.06640625,
-0.008941650390625,
0.060760498046875,
-0.031524658203125,
-0.0052947998046875,
0.00841522216796875,
0.039459228515625,
-0.0194549560546875,
0.0135345458984375,
0.0100860595703125,
0.00495147705078125,
0.04620361328125,
0.059661865234375,
0.01025390625,
-0.00033092498779296875,
-0.0283355712890625,
0.034698486328125,
0.015960693359375,
0.011993408203125,
-0.0313720703125,
-0.06982421875,
0.01538848876953125,
-0.04522705078125,
-0.0343017578125,
-0.0548095703125,
0.0146026611328125,
0.014892578125,
0.021484375,
-0.0019378662109375,
0.039306640625,
-0.037200927734375,
0.00734710693359375,
-0.01438140869140625,
-0.0167236328125,
0.0079345703125,
-0.033843994140625,
-0.0309295654296875,
0.00879669189453125,
0.0177001953125,
0.00978851318359375,
-0.0037059783935546875,
0.03076171875,
-0.01483917236328125,
-0.007251739501953125,
-0.0249786376953125,
-0.07025146484375,
0.045562744140625,
0.0438232421875,
-0.04107666015625,
0.068359375,
0.0182037353515625,
0.0185089111328125,
-0.02557373046875,
0.0164947509765625,
-0.10443115234375,
-0.047637939453125,
0.0207672119140625,
-0.0518798828125,
-0.007083892822265625,
0.07989501953125,
-0.01396942138671875,
-0.005527496337890625,
-0.050628662109375,
0.0245513916015625,
0.09625244140625,
0.026947021484375,
0.0084228515625,
-0.01264190673828125,
0.0185394287109375,
0.037841796875,
-0.0118255615234375,
0.00846099853515625,
-0.040985107421875,
0.024810791015625,
0.06390380859375,
-0.0633544921875,
0.033355712890625,
-0.007476806640625,
0.00897979736328125,
0.0195770263671875,
0.020599365234375,
0.031951904296875,
-0.006046295166015625,
0.01461029052734375,
0.0311431884765625,
-0.03253173828125,
0.07806396484375,
-0.09930419921875,
0.0582275390625,
-0.07452392578125,
0.061859130859375,
-0.03839111328125,
-0.03387451171875,
0.00267791748046875,
0.039337158203125,
-0.03338623046875,
-0.0484619140625,
0.00237274169921875,
-0.0046539306640625,
0.0028228759765625,
0.034027099609375,
-0.00702667236328125,
0.01213836669921875,
-0.0240478515625,
0.0604248046875,
0.04608154296875,
0.01678466796875,
0.046539306640625,
0.01383209228515625,
0.0128173828125,
0.035858154296875,
0.01222991943359375,
-0.0034885406494140625,
-0.0129241943359375,
0.09710693359375,
-0.031280517578125,
-0.031890869140625,
0.005619049072265625,
-0.006793975830078125,
0.017059326171875,
0.0265350341796875,
0.0064239501953125,
0.029937744140625,
-0.0007791519165039062,
-0.03692626953125,
0.04437255859375,
-0.0014591217041015625,
-0.0108184814453125,
0.0094451904296875,
0.039703369140625,
-0.0008072853088378906,
-0.0762939453125,
-0.01506805419921875,
0.0277099609375,
-0.022918701171875,
-0.0224609375,
-0.056671142578125,
-0.0044403076171875,
-0.00955963134765625,
0.050933837890625,
0.0054473876953125,
0.0240478515625,
-0.0034961700439453125,
-0.01016998291015625,
-0.0027446746826171875,
-0.0119476318359375,
-0.013763427734375,
0.01959228515625,
-0.007785797119140625,
0.0157012939453125,
0.00762939453125,
0.01116943359375,
-0.01454925537109375,
-0.00379180908203125,
-0.0217437744140625,
0.00408935546875,
0.009918212890625,
-0.010284423828125,
-0.0102691650390625,
-0.005924224853515625,
0.01654052734375,
0.009521484375,
-0.002948760986328125,
0.006832122802734375,
-0.00417327880859375,
0.01155853271484375,
-0.015380859375,
-0.0236053466796875,
-0.003627777099609375,
-0.08447265625,
0.0309295654296875,
0.05401611328125,
0.0255279541015625,
-0.01419830322265625,
-0.032440185546875,
-0.013092041015625,
0.01519012451171875,
-0.02960205078125,
0.0041961669921875,
0.0005412101745605469,
0.018341064453125,
0.017730712890625,
0.001522064208984375,
-0.02130126953125,
0.03466796875,
-0.0244598388671875,
-0.0018892288208007812,
0.03338623046875,
0.01131439208984375,
-0.0188751220703125,
-0.01959228515625,
0.003726959228515625,
0.01021575927734375,
-0.0261688232421875,
-0.055267333984375,
0.014801025390625,
0.02984619140625,
-0.00836944580078125,
0.026641845703125,
0.025604248046875,
-0.008544921875,
0.0037174224853515625,
0.011871337890625,
-0.0104522705078125,
0.0020542144775390625,
0.07318115234375,
0.07452392578125,
0.02880859375,
-0.039947509765625,
-0.035125732421875,
0.007129669189453125,
0.0533447265625,
-0.038116455078125,
-0.045074462890625,
0.04071044921875,
-0.00824737548828125,
-0.0029754638671875,
-0.0135955810546875,
0.0802001953125,
-0.0235748291015625,
-0.03607177734375,
-0.021270751953125,
-0.002368927001953125,
0.0143890380859375,
-0.032379150390625,
0.040191650390625,
0.013824462890625,
-0.01221466064453125,
0.05450439453125,
-0.01006317138671875,
0.01080322265625,
0.01323699951171875,
0.06268310546875,
0.061767578125,
0.0285797119140625,
-0.0184783935546875,
0.0167083740234375,
-0.024993896484375,
0.0287322998046875,
0.019256591796875,
0.004241943359375,
0.00676727294921875,
-0.05987548828125,
-0.007587432861328125,
0.0212860107421875,
0.01934814453125,
0.0210723876953125,
-0.0265350341796875,
-0.0139617919921875,
0.03192138671875,
-0.053253173828125,
-0.0302734375,
-0.0290069580078125,
-0.040496826171875,
0.0435791015625,
-0.01145172119140625,
0.001110076904296875,
-0.01338958740234375,
0.0068817138671875,
0.025787353515625,
0.000675201416015625,
-0.007160186767578125,
-0.061859130859375,
-0.054351806640625,
-0.062286376953125,
-0.00212860107421875,
-0.01132965087890625,
0.0171966552734375,
0.01495361328125,
0.044586181640625,
0.0078125,
-0.06207275390625,
0.01512908935546875,
0.05560302734375,
0.003093719482421875,
0.047637939453125,
0.0241546630859375,
-0.00266265869140625,
-0.00873565673828125,
0.01007843017578125,
0.055419921875,
0.043212890625,
-0.06988525390625,
-0.007740020751953125,
0.00014901161193847656,
-0.0372314453125,
0.0333251953125,
-0.041595458984375,
-0.035125732421875,
-0.00728607177734375,
-0.00713348388671875,
-0.053009033203125,
0.0097808837890625,
0.00634002685546875,
-0.00830841064453125,
0.01861572265625,
-0.00824737548828125,
-0.028839111328125,
-0.01340484619140625,
0.0152740478515625,
-0.006694793701171875,
0.03802490234375,
0.0389404296875,
-0.0034275054931640625,
-0.005382537841796875,
-0.0286102294921875,
-0.038909912109375,
-0.05224609375,
0.009185791015625,
-0.0274505615234375,
-0.01201629638671875,
-0.02142333984375,
-0.0042572021484375,
-0.0172271728515625,
0.0142059326171875,
-0.0264129638671875,
0.0380859375,
0.0225372314453125,
-0.00955963134765625,
0.04815673828125,
-0.031494140625,
-0.01385498046875,
-0.06256103515625,
0.0187530517578125,
-0.0192413330078125,
-0.01201629638671875,
-0.024505615234375,
0.0222625732421875,
-0.02923583984375,
-0.04461669921875,
-0.005645751953125,
-0.010986328125,
0.008544921875,
-0.00860595703125,
-0.00920867919921875,
-0.007747650146484375,
-0.0015125274658203125,
0.00275421142578125,
0.00807952880859375,
-0.01467132568359375,
0.0205230712890625,
-0.037353515625,
0.01505279541015625,
-0.023651123046875,
-0.0030975341796875,
-0.03619384765625,
0.007747650146484375,
-0.037750244140625,
-0.09674072265625,
-0.0200347900390625,
-0.0518798828125,
0.075927734375,
0.011444091796875,
-0.01381683349609375,
-0.03277587890625,
0.04083251953125,
-0.0066070556640625,
-0.0089569091796875,
-0.00409698486328125,
0.00362396240234375,
-0.04010009765625,
0.01258087158203125,
-0.01131439208984375,
-0.01404571533203125,
-0.0193328857421875,
-0.02679443359375,
-0.050933837890625,
-0.0114593505859375,
0.0024700164794921875,
0.013824462890625,
0.04925537109375,
-0.020843505859375,
-0.01392364501953125,
-0.01209259033203125,
-0.039031982421875,
-0.00351715087890625,
-0.03173828125,
0.0012454986572265625,
-0.01154327392578125,
-0.010223388671875,
0.048858642578125,
-0.018035888671875,
0.00592803955078125,
-0.0006289482116699219,
0.0511474609375,
0.00168609619140625,
-0.0229339599609375,
-0.046295166015625,
0.028656005859375,
0.0242767333984375,
0.042694091796875,
0.043304443359375,
0.011962890625,
0.00432586669921875,
-0.0007371902465820312,
0.01282501220703125,
-0.0256500244140625,
-0.042816162109375,
0.0672607421875,
0.01386260986328125,
-0.0003936290740966797,
-0.0020580291748046875,
-0.0263214111328125,
0.04217529296875,
0.0041351318359375,
-0.00811004638671875,
-0.01084136962890625,
0.01128387451171875,
0.01531219482421875,
-0.0208740234375,
0.0244140625,
-0.00384521484375,
-0.07318115234375,
0.0307159423828125,
-0.028106689453125,
0.01837158203125,
0.03521728515625,
-0.0189208984375,
0.055145263671875,
0.01042938232421875,
-0.0214385986328125,
-0.0256195068359375,
-0.0189056396484375,
-0.028656005859375,
-0.00933837890625,
-0.016815185546875,
-0.045654296875,
-0.00600433349609375,
-0.00914764404296875,
0.08282470703125,
-0.01299285888671875,
-0.034637451171875,
-0.021453857421875,
-0.0170745849609375,
-0.000036716461181640625,
0.0280609130859375,
0.01029205322265625,
0.030303955078125,
-0.01233673095703125,
-0.0249176025390625,
-0.01284027099609375,
-0.0240478515625,
-0.0211029052734375,
-0.046844482421875,
0.028717041015625,
-0.004486083984375,
-0.00873565673828125,
0.01447296142578125,
-0.01248931884765625,
0.048431396484375,
-0.0318603515625,
-0.0228424072265625,
0.0321044921875,
0.0151214599609375,
-0.0164794921875,
0.030609130859375,
0.01116180419921875,
0.01070404052734375,
-0.051116943359375,
-0.01132965087890625,
-0.0305633544921875,
0.01373291015625,
0.007671356201171875,
0.01654052734375,
0.007572174072265625,
-0.032745361328125,
0.042999267578125,
0.0008335113525390625,
0.007358551025390625,
0.0020923614501953125,
-0.013275146484375,
-0.0148468017578125,
0.0083465576171875,
0.032745361328125,
0.035186767578125,
-0.0197906494140625,
0.004940032958984375,
-0.046966552734375,
-0.0261077880859375,
-0.03131103515625,
0.00798797607421875,
-0.040283203125,
-0.01454925537109375,
0.005039215087890625,
0.01690673828125,
-0.0271453857421875,
-0.0007128715515136719,
-0.0845947265625,
0.00830841064453125,
-0.04034423828125,
-0.00012958049774169922,
0.0447998046875,
-0.0132598876953125,
-0.01568603515625,
-0.03619384765625,
0.0220184326171875,
-0.0182952880859375,
0.0015316009521484375,
0.030975341796875,
0.004695892333984375,
-0.08795166015625,
-0.00396728515625,
-0.0204925537109375,
-0.0147247314453125,
-0.00414276123046875,
-0.0250701904296875,
-0.056732177734375,
0.004566192626953125,
0.0026378631591796875,
0.040252685546875,
-0.0200347900390625,
-0.00997161865234375,
0.0019130706787109375,
-0.00923919677734375,
-0.01543426513671875,
0.034332275390625,
0.0035305023193359375,
0.01959228515625,
0.005558013916015625,
0.051116943359375,
0.0172119140625,
0.005847930908203125,
-0.041229248046875,
-0.018341064453125,
0.0279083251953125,
-0.01226043701171875,
-0.024688720703125,
-0.0141754150390625,
-0.041290283203125,
-0.0474853515625,
0.021240234375,
-0.01244354248046875,
-0.019683837890625,
-0.024444580078125,
0.00963592529296875,
-0.01349639892578125,
0.04541015625,
-0.0037994384765625,
-0.025848388671875,
0.034454345703125,
-0.01428985595703125,
-0.010101318359375,
-0.004787445068359375,
0.01497650146484375,
-0.01959228515625,
-0.00543975830078125,
-0.0218658447265625,
-0.01085662841796875,
0.00791168212890625,
-0.0027313232421875,
-0.0036487579345703125,
0.002254486083984375,
0.01226806640625,
0.01108551025390625,
0.03143310546875,
-0.0168914794921875,
-0.0204315185546875,
0.0216827392578125,
-0.006256103515625,
0.01253509521484375,
-0.0216522216796875,
-0.020111083984375,
0.01480865478515625,
-0.036285400390625,
0.03814697265625,
0.036956787109375,
0.073486328125,
-0.052947998046875,
0.0167083740234375,
0.00559234619140625,
-0.006397247314453125,
0.084716796875,
-0.00896453857421875,
-0.00910186767578125,
-0.0278472900390625,
0.006198883056640625,
0.00962066650390625,
-0.0300140380859375,
-0.00644683837890625,
0.00531005859375,
-0.0311126708984375,
0.0028285980224609375,
-0.01090240478515625,
0.0316162109375,
-0.00617218017578125,
0.03515625,
0.008209228515625,
0.0234375,
-0.004428863525390625,
0.003780364990234375,
0.041168212890625,
-0.03973388671875,
-0.037689208984375,
0.03662109375,
0.01263427734375,
-0.037078857421875,
0.02984619140625,
-0.008453369140625,
0.024871826171875,
0.041259765625,
-0.0206756591796875,
0.022979736328125,
0.0167388916015625,
-0.0175628662109375,
-0.007534027099609375,
-0.0245513916015625,
-0.001995086669921875,
0.07489013671875,
-0.0274810791015625,
0.0198974609375,
0.01195526123046875,
0.01274871826171875,
-0.0010538101196289062,
0.0303955078125,
0.07452392578125,
-0.0274200439453125,
-0.0264892578125,
0.036041259765625,
0.0007672309875488281,
-0.0204620361328125,
-0.01177215576171875,
-0.0174102783203125,
-0.056915283203125,
-0.00832366943359375,
-0.0119476318359375,
-0.01141357421875,
0.0080108642578125,
-0.0018396377563476562,
-0.064208984375,
0.0965576171875,
0.031402587890625,
-0.0028705596923828125,
-0.0224761962890625,
0.036773681640625,
-0.0416259765625,
0.0158538818359375,
-0.02264404296875,
0.04736328125,
-0.00516510009765625,
-0.0290069580078125,
-0.0253753662109375,
0.0023822784423828125,
-0.02508544921875,
0.008087158203125,
0.07611083984375,
0.0249481201171875,
-0.08172607421875,
-0.037200927734375,
0.0222930908203125,
0.038482666015625,
0.01154327392578125,
0.07208251953125,
0.0084381103515625,
-0.01806640625,
0.00618743896484375,
0.0007600784301757812,
0.04620361328125,
-0.048675537109375,
-0.0237274169921875,
0.01531982421875,
0.01003265380859375,
-0.004787445068359375,
0.00124359130859375,
0.029022216796875,
-0.023651123046875,
0.0071563720703125,
-0.00970458984375,
0.05230712890625,
0.010101318359375,
0.0233154296875,
0.0186614990234375,
0.053375244140625,
0.0001537799835205078,
-0.0010480880737304688,
0.032257080078125,
0.010589599609375,
0.0057830810546875,
0.019317626953125,
0.010345458984375,
0.035308837890625,
-0.01427459716796875,
-0.00452423095703125,
0.02105712890625,
-0.01084136962890625,
0.01165771484375,
0.0304718017578125,
0.03863525390625,
0.013702392578125,
0.03009033203125,
0.0071258544921875,
0.0084686279296875,
-0.0214080810546875,
-0.0167236328125,
0.0089111328125,
0.0134124755859375,
-0.0017452239990234375,
-0.0146636962890625,
0.0106658935546875,
-0.029937744140625,
0.008697509765625,
-0.0369873046875,
0.006134033203125,
0.020721435546875,
-0.004207611083984375,
-0.0068206787109375,
-0.0150299072265625,
0.0033435821533203125,
0.0175933837890625,
-0.034698486328125,
0.048095703125,
0.024871826171875,
0.04010009765625,
-0.0218505859375,
0.0711669921875,
-0.0023860931396484375,
-0.018951416015625,
0.0084228515625,
0.045684814453125,
-0.00045561790466308594,
-0.0122528076171875,
-0.0379638671875,
-0.08154296875,
0.0189056396484375,
0.045928955078125,
0.017608642578125,
0.031829833984375,
0.023162841796875,
0.00762939453125,
-0.0054168701171875,
0.00469970703125,
0.038848876953125,
-0.017822265625,
-0.00838470458984375,
-0.013763427734375,
0.014984130859375,
0.03875732421875,
0.00001913309097290039,
0.017364501953125,
-0.005809783935546875,
0.062744140625,
-0.00733184814453125,
0.017822265625,
0.00786590576171875,
-0.010040283203125,
0.044158935546875,
-0.0152587890625,
0.0103302001953125,
0.00577545166015625,
0.015411376953125,
-0.00615692138671875,
-0.0092010498046875,
0.03759765625,
-0.01727294921875,
0.002288818359375,
-0.00323486328125,
0.050750732421875,
0.032196044921875,
-0.0276947021484375,
0.005443572998046875,
0.008148193359375,
0.03424072265625,
0.0174102783203125,
0.0152587890625,
0.02227783203125,
-0.0450439453125,
-0.047119140625,
-0.0295562744140625,
0.0657958984375,
0.0282135009765625,
0.1044921875,
-0.0440673828125,
0.03131103515625,
0.0005598068237304688,
-0.0310211181640625,
0.0218658447265625,
0.0172119140625,
-0.025909423828125,
-0.005645751953125,
-0.01238250732421875,
-0.00380706787109375,
-0.045501708984375,
0.04412841796875,
-0.0013866424560546875,
0.003070831298828125,
0.00818634033203125,
-0.0186614990234375,
0.01041412353515625,
0.04541015625,
0.01593017578125,
-0.03192138671875,
-0.033233642578125,
0.00035500526428222656,
-0.0017251968383789062,
-0.007076263427734375,
0.00334930419921875,
0.033111572265625,
0.01392364501953125,
0.00351715087890625,
-0.022857666015625,
0.0032138824462890625,
-0.00791168212890625,
-0.00978851318359375,
0.0200653076171875,
0.0244140625,
-0.0355224609375,
-0.034576416015625,
-0.016632080078125,
-0.0186614990234375,
0.001827239990234375,
0.0168304443359375,
-0.023193359375,
-0.0258026123046875,
-0.0137481689453125,
-0.0002760887145996094,
0.044769287109375,
-0.0087890625,
0.0238800048828125,
-0.043182373046875,
0.0277099609375,
0.021270751953125,
-0.022674560546875,
-0.02386474609375,
-0.0311737060546875,
-0.01593017578125,
0.0152130126953125,
-0.041717529296875,
-0.06842041015625,
-0.06982421875,
0.00008690357208251953,
0.02935791015625,
0.01065826416015625,
-0.054412841796875,
0.0180816650390625,
-0.01055145263671875,
0.0263671875,
-0.003086090087890625,
-0.02947998046875,
-0.0011692047119140625,
0.035003662109375,
-0.027191162109375,
-0.0618896484375,
-0.0284881591796875,
0.051788330078125,
-0.042755126953125,
0.03216552734375,
0.03857421875,
-0.037322998046875,
-0.031158447265625,
0.006786346435546875,
0.044097900390625,
0.048370361328125,
0.0303192138671875,
-0.03485107421875,
-0.00803375244140625,
-0.01739501953125,
0.0160675048828125,
-0.00620269775390625,
0.0117340087890625,
-0.057342529296875,
-0.051422119140625,
-0.014434814453125,
-0.016265869140625,
-0.016387939453125,
-0.05328369140625,
-0.0697021484375,
0.055328369140625,
-0.006259918212890625,
-0.031280517578125,
-0.0286407470703125,
-0.0120086669921875,
-0.02813720703125,
0.042724609375,
-0.0060272216796875,
-0.0130615234375,
-0.01245880126953125,
0.048828125,
0.01511383056640625,
0.08123779296875,
-0.0263519287109375,
0.018157958984375,
0.06585693359375,
0.06964111328125,
0.05914306640625,
-0.00466156005859375,
-0.026123046875,
-0.005710601806640625,
0.0229949951171875,
0.0233154296875,
-0.00955963134765625,
-0.00035071372985839844,
0.0284881591796875,
-0.025634765625,
-0.01119232177734375,
-0.0174102783203125,
-0.0243682861328125,
-0.005741119384765625,
0.06988525390625,
0.03924560546875,
0.0199432373046875,
-0.0308380126953125,
0.04736328125,
-0.007965087890625,
-0.005252838134765625,
0.0175628662109375,
-0.0084381103515625,
-0.01152801513671875,
-0.0013608932495117188,
0.01006317138671875,
0.01081085205078125,
-0.01551055908203125,
-0.019134521484375,
-0.0028057098388671875,
-0.035675048828125,
0.0002474784851074219,
-0.007114410400390625,
0.04351806640625,
-0.03668212890625,
0.02606201171875,
0.0048828125,
0.04669189453125,
-0.0011749267578125,
0.0113525390625,
0.04840087890625,
0.11993408203125,
0.04339599609375,
0.0180206298828125,
-0.07073974609375,
0.0302886962890625,
0.00882720947265625,
0.020355224609375,
-0.045745849609375,
-0.0562744140625,
-0.00881195068359375,
0.006656646728515625,
0.00970458984375,
-0.005176544189453125,
-0.0237579345703125,
0.0280303955078125,
0.011383056640625,
0.05169677734375,
0.03857421875,
-0.06298828125,
-0.0198516845703125,
0.051239013671875,
-0.02239990234375,
-0.0465087890625,
-0.030487060546875,
-0.043182373046875,
-0.00041604042053222656,
0.039947509765625,
0.03289794921875,
-0.0340576171875,
0.036712646484375,
-0.029449462890625,
0.034393310546875,
0.013946533203125
] |
7e221fe1c76435200579e0b6b39184ce64759798
|
Wordpress Stackexchange
Q: how can I create a calendar for a cpt, using get_calendar or other I have a custom post type with its own date field. the date is setup for unix YYYY/mm/dd
I need to create a simple month calendar that shows days that have a cpt on them. get_calendar works for posts but not a CPT.
A: Disclaimer: I have not tested this out myself.
It looks like you will have to hook the calendar and push your content into it. The filter that gets called by the calendar is get_calendar.
So, at a guess, something like this:
function filter_get_calendar( $cache_key ) {
// Do awesome things here...
return $cache_key;
};
// add the filter
add_filter( 'get_calendar', 'filter_get_calendar', 10, 1 );
I hope that helps.
|
Q: how can I create a calendar for a cpt, using get_calendar or other I have a custom post type with its own date field. the date is setup for unix YYYY/mm/dd
I need to create a simple month calendar that shows days that have a cpt on them. get_calendar works for posts but not a CPT.
A: Disclaimer: I have not tested this out myself.
It looks like you will have to hook the calendar and push your content into it. The filter that gets called by the calendar is get_calendar.
So, at a guess, something like this:
function filter_get_calendar( $cache_key ) {
// Do awesome things here...
return $cache_key;
};
// add the filter
add_filter( 'get_calendar', 'filter_get_calendar', 10, 1 );
I hope that helps.
|
wordpress
|
{
"language": "en",
"length": 126,
"provenance": "stackexchange_00019.jsonl.gz:411353",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23090"
}
|
[
0.053741455078125,
0.00024819374084472656,
-0.0159912109375,
-0.06732177734375,
0.01580810546875,
-0.041839599609375,
0.01123046875,
0.007541656494140625,
-0.007488250732421875,
0.01275634765625,
-0.0228118896484375,
-0.003078460693359375,
-0.031646728515625,
-0.0032367706298828125,
-0.0306854248046875,
-0.02947998046875,
0.039886474609375,
-0.05059814453125,
-0.009033203125,
-0.035400390625,
-0.0098724365234375,
-0.0179443359375,
0.045654296875,
0.109619140625,
0.0179290771484375,
-0.004199981689453125,
0.02899169921875,
-0.037261962890625,
0.035614013671875,
0.005207061767578125,
0.0187530517578125,
-0.033660888671875,
0.006359100341796875,
-0.005405426025390625,
0.0153045654296875,
0.041229248046875,
-0.01128387451171875,
0.01531982421875,
0.0081939697265625,
0.0018253326416015625,
-0.0019235610961914062,
-0.0012140274047851562,
-0.00910186767578125,
0.008209228515625,
-0.036865234375,
-0.01561737060546875,
-0.0167083740234375,
-0.0223236083984375,
0.0199432373046875,
-0.00713348388671875,
0.0277252197265625,
0.0214996337890625,
0.035247802734375,
0.0021877288818359375,
-0.024078369140625,
-0.01187896728515625,
0.00908660888671875,
-0.062469482421875,
0.01654052734375,
-0.01019287109375,
-0.01183319091796875,
-0.022979736328125,
0.04193115234375,
0.0076751708984375,
-0.0223236083984375,
0.0124664306640625,
-0.00336456298828125,
0.0048980712890625,
0.0024871826171875,
-0.025665283203125,
0.0086212158203125,
-0.005950927734375,
0.0009284019470214844,
-0.0469970703125,
0.0239715576171875,
0.00873565673828125,
-0.032196044921875,
-0.0172119140625,
0.023529052734375,
0.00045371055603027344,
0.03704833984375,
-0.0038967132568359375,
-0.0697021484375,
0.040740966796875,
-0.0113372802734375,
0.0419921875,
0.0027008056640625,
-0.043487548828125,
-0.025390625,
-0.029998779296875,
-0.0188751220703125,
-0.01021575927734375,
-0.03839111328125,
-0.0177001953125,
-0.0207061767578125,
-0.05419921875,
0.063232421875,
0.0711669921875,
-0.0229949951171875,
-0.0166473388671875,
-0.0227203369140625,
-0.036285400390625,
-0.0132293701171875,
-0.008697509765625,
0.0122528076171875,
0.02874755859375,
-0.0077972412109375,
0.0311431884765625,
0.0341796875,
0.02838134765625,
0.00821685791015625,
0.01348114013671875,
-0.01076507568359375,
0.005008697509765625,
-0.02294921875,
0.00896453857421875,
-0.00823974609375,
-0.02386474609375,
-0.0275726318359375,
-0.0078582763671875,
0.00815582275390625,
0.01556396484375,
-0.004451751708984375,
-0.00670623779296875,
0.021026611328125,
0.01454925537109375,
-0.0177001953125,
-0.027069091796875,
0.01253509521484375,
-0.0144195556640625,
-0.0279541015625,
0.02294921875,
0.0318603515625,
0.01605224609375,
0.005229949951171875,
-0.0031757354736328125,
0.041961669921875,
-0.03515625,
-0.04150390625,
0.028961181640625,
0.00749969482421875,
0.00601959228515625,
0.005970001220703125,
-0.032318115234375,
-0.006458282470703125,
0.00255584716796875,
0.00835418701171875,
0.00673675537109375,
0.0101318359375,
-0.0150299072265625,
-0.005191802978515625,
-0.00803375244140625,
0.005764007568359375,
0.00547027587890625,
0.00213623046875,
-0.0175323486328125,
0.003993988037109375,
-0.00726318359375,
0.024322509765625,
-0.00856781005859375,
0.01285552978515625,
-0.0014286041259765625,
-0.027130126953125,
-0.02734375,
-0.052703857421875,
-0.00104522705078125,
0.0025615692138671875,
-0.00276947021484375,
0.01934814453125,
-0.004352569580078125,
0.01187896728515625,
-0.0089263916015625,
0.001705169677734375,
-0.0096893310546875,
-0.02154541015625,
0.01336669921875,
0.02764892578125,
-0.00974273681640625,
0.0017061233520507812,
0.04150390625,
-0.0190887451171875,
-0.0294952392578125,
0.027008056640625,
-0.041015625,
-0.029266357421875,
0.0019311904907226562,
0.00201416015625,
0.0153656005859375,
-0.0085296630859375,
0.0186614990234375,
-0.0007119178771972656,
0.0513916015625,
0.0009202957153320312,
-0.0088958740234375,
-0.0119781494140625,
-0.041229248046875,
-0.0203704833984375,
-0.022247314453125,
-0.026153564453125,
0.049346923828125,
-0.014404296875,
0.0179595947265625,
0.0015125274658203125,
0.008636474609375,
-0.0576171875,
0.045074462890625,
-0.033538818359375,
0.040374755859375,
-0.0296630859375,
0.0006170272827148438,
0.01200103759765625,
0.00616455078125,
-0.009552001953125,
-0.059539794921875,
-0.01016998291015625,
0.053955078125,
0.0177764892578125,
0.0305023193359375,
-0.008270263671875,
0.002803802490234375,
0.027801513671875,
-0.059051513671875,
0.030426025390625,
0.0684814453125,
0.0635986328125,
0.005374908447265625,
-0.006671905517578125,
-0.01617431640625,
0.0292205810546875,
0.016510009765625,
-0.06011962890625,
0.021209716796875,
0.0164794921875,
0.04388427734375,
-0.0196533203125,
0.0013074874877929688,
-0.0031299591064453125,
-0.0260772705078125,
0.0038585662841796875,
0.0316162109375,
0.03070068359375,
0.047576904296875,
-0.00986480712890625,
0.00811767578125,
0.0919189453125,
-0.01222991943359375,
0.00794219970703125,
-0.0014028549194335938,
0.0038890838623046875,
0.039947509765625,
0.00525665283203125,
-0.006649017333984375,
0.0078125,
-0.038482666015625,
-0.0034160614013671875,
0.02264404296875,
0.023590087890625,
0.007038116455078125,
0.046417236328125,
-0.03533935546875,
0.00870513916015625,
-0.0103607177734375,
-0.035186767578125,
0.025604248046875,
0.0039005279541015625,
0.011627197265625,
0.03662109375,
0.025390625,
-0.006649017333984375,
0.00952911376953125,
0.000335693359375,
-0.0111236572265625,
-0.009490966796875,
-0.01056671142578125,
0.03424072265625,
0.023223876953125,
-0.033721923828125,
0.003841400146484375,
0.0274505615234375,
-0.00655364990234375,
-0.012725830078125,
0.0012607574462890625,
-0.009521484375,
-0.0010852813720703125,
0.0283050537109375,
-0.0024566650390625,
0.01485443115234375,
-0.004512786865234375,
-0.01238250732421875,
-0.0176849365234375,
0.00933837890625,
0.01251220703125,
-0.0200347900390625,
0.0247650146484375,
0.0150299072265625,
-0.02838134765625,
0.0010967254638671875,
-0.01178741455078125,
0.0286407470703125,
-0.042083740234375,
0.0004439353942871094,
0.0297088623046875,
0.0036792755126953125,
-0.0091094970703125,
-0.01163482666015625,
-0.01055145263671875,
-0.00337982177734375,
0.00720977783203125,
-0.00728607177734375,
-0.0193634033203125,
-0.0277252197265625,
0.01117706298828125,
0.032623291015625,
0.095703125,
-0.0157928466796875,
-0.041046142578125,
-0.0133819580078125,
0.055419921875,
-0.056549072265625,
-0.070068359375,
-0.072021484375,
-0.01340484619140625,
0.018402099609375,
0.01490020751953125,
0.0140228271484375,
0.00849151611328125,
0.0182342529296875,
0.0265045166015625,
-0.028350830078125,
0.0220947265625,
0.0183563232421875,
0.0146636962890625,
-0.0003972053527832031,
0.005237579345703125,
-0.0037441253662109375,
-0.0008244514465332031,
-0.004390716552734375,
0.08447265625,
0.009490966796875,
-0.065185546875,
-0.034332275390625,
0.0312042236328125,
-0.0197601318359375,
-0.002918243408203125,
0.029998779296875,
0.01187896728515625,
0.0060882568359375,
0.0101470947265625,
0.007587432861328125,
0.04473876953125,
-0.058319091796875,
-0.0256805419921875,
-0.007320404052734375,
-0.02093505859375,
0.015960693359375,
0.0540771484375,
-0.0104217529296875,
0.025634765625,
0.04522705078125,
-0.03668212890625,
-0.010406494140625,
-0.004108428955078125,
-0.022674560546875,
0.0068359375,
-0.01021575927734375,
-0.01125335693359375,
-0.0091094970703125,
0.02294921875,
0.01312255859375,
-0.00024020671844482422,
0.0601806640625,
-0.03570556640625,
0.0008711814880371094,
0.0010309219360351562,
-0.004547119140625,
-0.044769287109375,
0.005336761474609375,
-0.007396697998046875,
0.002227783203125,
-0.007720947265625,
0.00959014892578125,
-0.006351470947265625,
0.0023479461669921875,
-0.03741455078125,
-0.10205078125,
0.057464599609375,
-0.033050537109375,
0.00380706787109375,
-0.07269287109375,
-0.039886474609375,
0.003124237060546875,
0.1473388671875,
-0.033538818359375,
-0.0262451171875,
-0.012786865234375,
0.0233917236328125,
-0.0180206298828125,
-0.054046630859375,
0.020782470703125,
-0.023101806640625,
-0.11663818359375,
0.01158905029296875,
0.01555633544921875,
-0.040679931640625,
-0.006824493408203125,
0.01177215576171875,
-0.0843505859375,
-0.037109375,
0.037689208984375,
0.0156707763671875,
-0.0013408660888671875,
0.0074615478515625,
-0.00734710693359375,
-0.002979278564453125,
-0.0217437744140625,
0.0164947509765625,
-0.0204620361328125,
-0.0322265625,
0.0024700164794921875,
0.053619384765625,
0.04156494140625,
-0.062164306640625,
-0.001251220703125,
0.032073974609375,
0.03594970703125,
-0.00799560546875,
0.002468109130859375,
-0.050537109375,
0.0357666015625,
0.0194091796875,
0.0055694580078125,
0.00501251220703125,
-0.01477813720703125,
0.001251220703125,
-0.002742767333984375,
0.04400634765625,
-0.02392578125,
0.00140380859375,
-0.0232696533203125,
-0.0185699462890625,
-0.0011882781982421875,
0.0008931159973144531,
-0.0130157470703125,
-0.004909515380859375,
-0.005535125732421875,
-0.0172576904296875,
0.01090240478515625,
-0.0233001708984375,
0.03564453125,
0.039398193359375,
0.0003230571746826172,
0.0091094970703125,
0.036590576171875,
0.01367950439453125,
-0.03717041015625,
-0.0615234375,
-0.004497528076171875,
0.018707275390625,
0.004062652587890625,
0.0269317626953125,
-0.0169525146484375,
-0.01617431640625,
0.0506591796875,
-0.0160064697265625,
-0.022552490234375,
-0.0521240234375,
0.07965087890625,
0.0135498046875,
0.0195159912109375,
-0.012603759765625,
-0.034332275390625,
0.058349609375,
0.017303466796875,
-0.01189422607421875,
-0.0184326171875,
0.0196075439453125,
0.044708251953125,
-0.02056884765625,
0.019805908203125,
-0.0200653076171875,
-0.0123443603515625,
0.0257110595703125,
-0.01158905029296875,
-0.0179595947265625,
-0.03607177734375,
0.016571044921875,
-0.047271728515625,
-0.021636962890625,
0.03253173828125,
-0.010528564453125,
0.021728515625,
0.000896453857421875,
0.045166015625,
0.056610107421875,
0.034088134765625,
-0.037445068359375,
0.002529144287109375,
0.006195068359375,
-0.0078582763671875,
-0.044525146484375,
0.0205230712890625,
-0.0238037109375,
0.003292083740234375,
0.03277587890625,
-0.07281494140625,
0.039886474609375,
0.050750732421875,
-0.01309967041015625,
0.0266876220703125,
-0.051849365234375,
0.021514892578125,
-0.0295257568359375,
0.0043182373046875,
0.0134124755859375,
-0.01470947265625,
0.0277862548828125,
0.034423828125,
-0.0060272216796875,
0.033905029296875,
-0.016876220703125,
0.0694580078125,
0.049652099609375,
0.038848876953125,
0.0168304443359375,
-0.03570556640625,
-0.0038776397705078125,
0.035125732421875,
-0.051361083984375,
-0.0193023681640625,
-0.0285491943359375,
0.005298614501953125,
-0.004673004150390625,
-0.06640625,
-0.00998687744140625,
0.054351806640625,
0.02679443359375,
-0.03631591796875,
-0.0295867919921875,
0.020538330078125,
0.046173095703125,
-0.0249786376953125,
-0.061370849609375,
-0.01343536376953125,
0.07611083984375,
-0.035369873046875,
0.0309906005859375,
-0.0567626953125,
0.023529052734375,
-0.00562286376953125,
-0.0039005279541015625,
-0.015899658203125,
-0.01456451416015625,
-0.04058837890625,
-0.038299560546875,
-0.00821685791015625,
0.03509521484375,
0.0036220550537109375,
-0.006793975830078125,
-0.038177490234375,
0.0225372314453125,
-0.0301971435546875,
-0.006053924560546875,
-0.0142974853515625,
0.0211639404296875,
-0.011077880859375,
-0.005413055419921875,
0.087158203125,
0.049530029296875,
-0.0231475830078125,
-0.035400390625,
-0.0330810546875,
-0.036376953125,
-0.07647705078125,
-0.042572021484375,
-0.048553466796875,
0.032684326171875,
0.01464080810546875,
0.039764404296875,
0.0078582763671875,
-0.01512908935546875,
0.00244140625,
-0.01256561279296875,
-0.00482177734375,
0.039093017578125,
0.02044677734375,
0.0706787109375,
-0.01251220703125,
0.06744384765625,
0.018798828125,
0.03759765625,
-0.04217529296875,
-0.0301361083984375,
0.01490020751953125,
-0.06854248046875,
-0.01556396484375,
-0.0174713134765625,
-0.0384521484375,
0.0274200439453125,
0.02154541015625,
0.0036468505859375,
-0.00738525390625,
-0.0310516357421875,
-0.00675201416015625,
-0.024169921875,
0.07763671875,
-0.04150390625,
-0.006683349609375,
0.01129913330078125,
-0.03521728515625,
0.03338623046875,
0.00012755393981933594,
0.0243988037109375,
0.02294921875,
-0.04718017578125,
0.0285186767578125,
0.0246124267578125,
-0.0150146484375,
0.07861328125,
0.11962890625,
-0.0016193389892578125,
0.052459716796875,
0.0301513671875,
0.004932403564453125,
0.01473236083984375,
0.0020904541015625,
-0.04412841796875,
-0.002025604248046875,
0.0306854248046875,
0.0007448196411132812,
-0.024749755859375,
0.016143798828125,
-0.0117034912109375,
-0.00981903076171875,
0.047393798828125,
0.013824462890625,
-0.07122802734375,
0.0007839202880859375,
-0.00699615478515625,
-0.018707275390625,
-0.01483154296875,
0.0308074951171875,
0.005558013916015625,
-0.003314971923828125,
-0.037384033203125,
-0.0201873779296875,
-0.0114898681640625,
-0.0129241943359375,
0.0024871826171875,
0.00734710693359375,
0.01316070556640625,
0.08123779296875,
0.0196990966796875,
-0.021881103515625,
-0.0107574462890625,
-0.0093841552734375,
0.0188140869140625,
-0.039031982421875,
-0.00716400146484375,
0.0163421630859375,
-0.015838623046875,
-0.077392578125,
0.009368896484375,
-0.01152801513671875,
0.0107574462890625,
-0.003475189208984375,
0.0253448486328125,
0.0123138427734375,
0.040069580078125,
-0.005451202392578125,
0.00804901123046875,
0.006755828857421875,
-0.00926971435546875,
0.0008144378662109375,
-0.028411865234375,
0.0013990402221679688,
0.053253173828125,
0.003047943115234375,
0.027740478515625,
0.0127716064453125,
-0.00850677490234375,
-0.0017862319946289062,
-0.00890350341796875,
0.0308074951171875,
-0.0166015625,
-0.025146484375,
0.023895263671875,
0.01000213623046875,
-0.00041794776916503906,
0.015167236328125,
0.0151214599609375,
-0.007778167724609375,
0.033172607421875,
0.0137481689453125,
0.0037899017333984375,
0.018798828125,
0.0321044921875,
0.01010894775390625,
0.06671142578125,
-0.0182342529296875,
-0.0159454345703125,
0.03662109375,
0.039337158203125,
-0.04205322265625,
0.024871826171875,
-0.047210693359375,
0.06494140625,
-0.01446533203125,
0.033843994140625,
-0.107666015625,
-0.0323486328125,
-0.0079803466796875,
0.058197021484375,
0.07183837890625,
0.017822265625,
-0.03955078125,
0.003009796142578125,
0.06768798828125,
0.04095458984375,
-0.00847625732421875,
0.041107177734375,
-0.0015325546264648438,
0.02825927734375,
0.0031681060791015625,
0.006855010986328125,
0.0308990478515625,
-0.0096588134765625,
-0.05401611328125,
0.04534912109375,
-0.0157318115234375,
-0.030792236328125,
0.00899505615234375,
-0.08465576171875,
-0.0060882568359375,
0.0023651123046875,
-0.0220184326171875,
-0.024383544921875,
0.0110015869140625,
0.039947509765625,
0.0628662109375,
-0.037872314453125,
-0.0101165771484375,
-0.022369384765625,
0.061248779296875,
0.0187530517578125,
-0.00830078125,
0.031341552734375,
0.01409912109375,
-0.00148773193359375,
-0.00307464599609375,
-0.01114654541015625,
0.004810333251953125,
-0.0057830810546875,
0.00921630859375,
-0.001674652099609375,
-0.004268646240234375,
-0.056396484375,
0.028564453125,
0.03704833984375,
0.017852783203125,
-0.035430908203125,
-0.038787841796875,
0.0171966552734375,
0.000858306884765625,
0.0207672119140625,
-0.0012226104736328125,
0.0207366943359375,
-0.060211181640625,
-0.0003306865692138672,
-0.0279388427734375,
0.028350830078125,
0.0187530517578125,
0.026153564453125,
-0.0016679763793945312,
-0.0117950439453125,
-0.06207275390625,
0.0394287109375,
-0.05621337890625,
0.019561767578125,
0.024139404296875,
0.055633544921875,
0.005077362060546875,
0.046966552734375,
-0.00018906593322753906,
-0.0259246826171875,
0.059844970703125,
-0.00644683837890625,
0.052093505859375,
-0.09033203125,
0.0748291015625,
-0.00327301025390625,
0.00029468536376953125,
-0.021453857421875,
0.0360107421875,
0.0201263427734375,
0.033538818359375,
0.0164642333984375,
-0.0078582763671875,
0.00726318359375,
0.0278778076171875,
-0.02490234375,
-0.018157958984375,
-0.04193115234375,
0.006450653076171875,
0.006458282470703125,
-0.00004971027374267578,
0.03875732421875,
-0.01910400390625,
0.049285888671875,
-0.037567138671875,
0.033599853515625,
-0.021514892578125,
-0.017333984375,
0.043121337890625,
-0.05841064453125,
0.051605224609375,
-0.044647216796875,
0.005970001220703125,
0.0278167724609375,
-0.0229339599609375,
-0.0594482421875,
0.00009417533874511719,
0.019073486328125,
-0.0048828125,
0.0004265308380126953,
0.01425933837890625,
0.016326904296875,
0.00913238525390625,
-0.0362548828125,
0.0156097412109375,
0.0007009506225585938,
0.025482177734375,
0.0032100677490234375,
-0.051422119140625,
-0.0312347412109375,
-0.033966064453125,
0.0285491943359375,
0.01000213623046875,
0.048248291015625,
0.004512786865234375,
0.026763916015625,
0.006786346435546875,
0.03167724609375,
-0.02001953125,
0.0041656494140625,
0.04345703125,
-0.004932403564453125,
-0.006496429443359375,
-0.0196380615234375,
-0.001590728759765625,
-0.0264739990234375,
0.05438232421875,
-0.02301025390625,
-0.03582763671875,
-0.00803375244140625,
0.039398193359375,
-0.0022640228271484375,
0.01824951171875,
-0.0195770263671875,
-0.005157470703125,
0.0001767873764038086,
-0.0298309326171875,
0.0299530029296875,
0.01849365234375,
0.0216217041015625,
-0.0022182464599609375,
-0.003875732421875,
-0.04254150390625,
0.040374755859375,
-0.034515380859375,
0.0556640625,
0.026153564453125,
-0.032958984375,
-0.005001068115234375,
-0.0024127960205078125,
-0.0176544189453125,
0.0291290283203125,
-0.003154754638671875,
0.042022705078125,
-0.0068511962890625,
0.0537109375,
0.0188446044921875,
0.0017795562744140625,
0.005611419677734375,
-0.045196533203125,
-0.0018644332885742188,
0.0233917236328125,
-0.00970458984375,
0.01538848876953125,
-0.0325927734375,
-0.0226898193359375,
-0.03057861328125,
-0.015350341796875,
-0.00043320655822753906,
-0.0218963623046875,
-0.0697021484375,
-0.052825927734375,
0.012359619140625,
0.02593994140625,
-0.002838134765625,
-0.0293426513671875,
0.046844482421875,
-0.052581787109375,
0.009246826171875,
-0.0157928466796875,
-0.02044677734375,
0.0011301040649414062,
0.00689697265625,
-0.003765106201171875,
0.01396942138671875,
-0.040740966796875,
0.00392913818359375,
0.020355224609375,
-0.01303863525390625,
0.0248565673828125,
0.01229095458984375,
-0.036773681640625,
0.0258941650390625,
-0.014251708984375,
0.06512451171875,
-0.045379638671875,
-0.0099334716796875,
0.0013856887817382812,
0.0022373199462890625,
-0.044403076171875,
-0.026611328125,
0.053375244140625,
-0.0494384765625,
-0.06353759765625,
-0.00807952880859375,
-0.021270751953125,
-0.003841400146484375,
-0.03558349609375,
-0.05352783203125,
0.052703857421875,
-0.00777435302734375,
-0.01157379150390625,
-0.03582763671875,
0.0016632080078125,
-0.0206298828125,
0.048858642578125,
0.00717926025390625,
-0.02911376953125,
-0.01148223876953125,
0.0279998779296875,
-0.01354217529296875,
0.0271148681640625,
0.0300750732421875,
-0.038604736328125,
-0.040557861328125,
-0.039276123046875,
-0.029266357421875,
-0.007747650146484375,
0.01311492919921875,
0.003948211669921875,
-0.0000050067901611328125,
0.0256195068359375,
-0.048492431640625,
-0.05670166015625,
-0.0283966064453125,
-0.0019426345825195312,
-0.004642486572265625,
-0.0718994140625,
-0.050506591796875,
-0.0154266357421875,
0.076171875,
0.059844970703125,
0.03582763671875,
-0.061126708984375,
0.0394287109375,
-0.0079193115234375,
-0.0618896484375,
-0.01100921630859375,
0.0169219970703125,
-0.03778076171875,
-0.01322174072265625,
-0.006134033203125,
0.0001634359359741211,
0.0323486328125,
0.003208160400390625,
0.0065765380859375,
-0.0141448974609375,
0.02508544921875,
-0.0246429443359375,
-0.05865478515625,
0.0672607421875,
-0.0210418701171875,
-0.01082611083984375,
-0.00691986083984375,
-0.02410888671875,
-0.020599365234375,
-0.02496337890625,
-0.035919189453125,
-0.034912109375,
0.01169586181640625,
0.005176544189453125,
0.0097808837890625,
-0.00809478759765625,
-0.005611419677734375,
0.001911163330078125,
0.034454345703125,
-0.0179290771484375,
-0.0200958251953125,
-0.00005173683166503906,
-0.0438232421875,
-0.0167083740234375,
0.00946807861328125,
-0.01190948486328125,
0.04693603515625,
0.03924560546875,
0.002567291259765625,
0.00363922119140625,
0.0249786376953125,
-0.031524658203125,
-0.0294342041015625,
-0.0285491943359375,
-0.057342529296875,
0.00788116455078125,
-0.009246826171875,
-0.0474853515625,
-0.005340576171875,
-0.047210693359375,
-0.1156005859375,
-0.0253448486328125,
-0.01007080078125
] |
cf27198b4b79b2bdd97ae3d6449308c2154c93db
|
Wordpress Stackexchange
Q: Disable comments on all posts/pages Is there a quick way to disable all comments on all posts and pages. I know that you can go into the dashboard under posts, click edit, and Do Not Allow, under comments. Is that the only way?
A: The check if comments are enabled is performed by comments_open() function.
You can make it always return false via a filter with something like this:
add_filter('comments_open', '__return_false');
Other way would be to make comments available to only registered users (that is if you don't have open registration) in Settings > Discussion.
|
Q: Disable comments on all posts/pages Is there a quick way to disable all comments on all posts and pages. I know that you can go into the dashboard under posts, click edit, and Do Not Allow, under comments. Is that the only way?
A: The check if comments are enabled is performed by comments_open() function.
You can make it always return false via a filter with something like this:
add_filter('comments_open', '__return_false');
Other way would be to make comments available to only registered users (that is if you don't have open registration) in Settings > Discussion.
A: I have write an plugin for this job.
https://github.com/bueltge/Remove-Comments-Absolutely
WordPress has on many different points jobs and views for comments, if you will not use all this, use the plugin or customize the source for your requirements.
A: Bulk edit the existing pages in the dashboard Posts or Pages view as noted here:
*
*Go to your All Posts page.
*Click on the checkbox in the header.
*Choose "Edit" under the bulk actions drop-down and then click Apply. The bulk edit area will appear.
*In the middle of the bulk edit area will be four drop-down menus. The second one is for comments. Change it to "Do not allow".
*Turn off pings with a similar drop-down to the right side of the bulk edit area.
*Click the update button on the far right.
A: I thought I'd add an answer to the above as it may not be immediately obvious to others searching for this issue.
In Settings >> Discussion you can uncheck "Allow people to post comments on new articles" in the Default article settings.
However, note that this will only affect new posts/pages.
You can bulk edit the existing pages in the dashboard Posts or Pages view.
This may be a preferred method for some people not wanting to touch the template files, etc.
A: Not including the comment-form in your theme also works (that's what I usually do).
|
wordpress
|
{
"language": "en",
"length": 328,
"provenance": "stackexchange_00019.jsonl.gz:411373",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23158"
}
|
[
0.10650634765625,
-0.0164794921875,
0.0254974365234375,
-0.04913330078125,
0.01192474365234375,
-0.040283203125,
0.0667724609375,
-0.0027790069580078125,
0.04156494140625,
0.00959014892578125,
-0.03692626953125,
-0.0229644775390625,
-0.0048980712890625,
-0.01995849609375,
-0.0179443359375,
-0.034576416015625,
0.0322265625,
0.03607177734375,
0.055511474609375,
-0.0181121826171875,
0.025726318359375,
0.0030765533447265625,
0.014678955078125,
0.0792236328125,
0.0240936279296875,
-0.040069580078125,
0.078369140625,
-0.009613037109375,
0.01486968994140625,
-0.0129547119140625,
0.03253173828125,
-0.0208587646484375,
-0.004150390625,
0.044464111328125,
-0.0176239013671875,
-0.0222015380859375,
-0.0202484130859375,
0.0193634033203125,
0.0180816650390625,
-0.00839996337890625,
0.04779052734375,
-0.0300445556640625,
-0.011138916015625,
0.0416259765625,
-0.0206451416015625,
-0.02099609375,
0.051666259765625,
-0.02325439453125,
0.031494140625,
-0.01038360595703125,
0.0024871826171875,
0.047821044921875,
0.026153564453125,
-0.032684326171875,
-0.0269622802734375,
-0.0181884765625,
-0.01386260986328125,
-0.01104736328125,
0.0242462158203125,
-0.01715087890625,
-0.0016689300537109375,
-0.00750732421875,
0.027740478515625,
0.004413604736328125,
0.021514892578125,
-0.0155181884765625,
0.0039825439453125,
0.03387451171875,
-0.0304412841796875,
0.041473388671875,
0.04400634765625,
-0.03271484375,
0.01551055908203125,
-0.0261993408203125,
0.036407470703125,
-0.004993438720703125,
-0.0178375244140625,
0.0014934539794921875,
0.01100921630859375,
0.01413726806640625,
0.0166168212890625,
0.006366729736328125,
-0.043487548828125,
-0.021240234375,
-0.00797271728515625,
-0.026580810546875,
-0.0016603469848632812,
-0.00516510009765625,
-0.0281524658203125,
-0.00591278076171875,
-0.0245819091796875,
-0.0013065338134765625,
-0.02740478515625,
0.0096435546875,
-0.01262664794921875,
-0.0067138671875,
0.04205322265625,
0.047760009765625,
-0.0179901123046875,
-0.00432586669921875,
-0.016998291015625,
-0.016143798828125,
-0.0161590576171875,
-0.01375579833984375,
0.01397705078125,
0.0269317626953125,
-0.03631591796875,
-0.05126953125,
0.036865234375,
0.0304107666015625,
0.01407623291015625,
0.005523681640625,
-0.038055419921875,
0.00408172607421875,
-0.0107879638671875,
0.0086669921875,
-0.07708740234375,
0.031219482421875,
-0.0012063980102539062,
0.037689208984375,
-0.0033359527587890625,
0.0188140869140625,
-0.017730712890625,
0.0086669921875,
0.00281524658203125,
-0.0139007568359375,
-0.01078033447265625,
-0.01088714599609375,
0.03125,
-0.00003403425216674805,
-0.0182952880859375,
0.0217742919921875,
0.03558349609375,
0.031341552734375,
0.008209228515625,
-0.00862884521484375,
0.000812530517578125,
-0.01335906982421875,
-0.0004911422729492188,
0.04058837890625,
0.007564544677734375,
-0.07391357421875,
-0.014923095703125,
0.03497314453125,
-0.01500701904296875,
0.00994110107421875,
0.0266265869140625,
0.02691650390625,
-0.01512908935546875,
-0.037109375,
-0.0274658203125,
0.0284881591796875,
0.019378662109375,
-0.00447845458984375,
0.0186614990234375,
-0.033477783203125,
0.024078369140625,
-0.037628173828125,
0.0239410400390625,
-0.035308837890625,
0.02850341796875,
0.034210205078125,
0.049713134765625,
0.040863037109375,
0.01329803466796875,
-0.037689208984375,
-0.01445770263671875,
-0.01171112060546875,
0.0212554931640625,
0.049774169921875,
-0.057952880859375,
-0.0347900390625,
-0.00852203369140625,
-0.0017938613891601562,
-0.017547607421875,
0.040435791015625,
-0.021728515625,
-0.031829833984375,
0.00655364990234375,
0.01515960693359375,
-0.0085601806640625,
-0.037353515625,
-0.03277587890625,
0.031524658203125,
-0.03704833984375,
0.036956787109375,
0.036346435546875,
0.05621337890625,
-0.0244598388671875,
0.03082275390625,
0.0467529296875,
0.03253173828125,
0.0146484375,
-0.00482177734375,
0.0025424957275390625,
-0.035400390625,
-0.0262451171875,
-0.00843048095703125,
-0.0162200927734375,
0.0128326416015625,
0.0311279296875,
-0.0341796875,
-0.0126800537109375,
-0.005741119384765625,
-0.0819091796875,
-0.020416259765625,
-0.0247955322265625,
0.0186767578125,
-0.005153656005859375,
0.0195770263671875,
0.018707275390625,
-0.01021575927734375,
-0.0335693359375,
0.0263214111328125,
-0.01416015625,
-0.02325439453125,
-0.02410888671875,
0.00982666015625,
-0.0013523101806640625,
0.021026611328125,
0.00016117095947265625,
-0.0190582275390625,
-0.01010894775390625,
-0.00913238525390625,
0.04473876953125,
-0.0394287109375,
0.0009126663208007812,
-0.03271484375,
0.0284271240234375,
-0.02850341796875,
0.0065765380859375,
0.050445556640625,
0.0084228515625,
0.0105438232421875,
-0.016571044921875,
0.015106201171875,
0.0230255126953125,
-0.027069091796875,
-0.01238250732421875,
0.031646728515625,
0.0299530029296875,
0.002044677734375,
0.0204620361328125,
0.043975830078125,
0.0322265625,
-0.0452880859375,
-0.0017995834350585938,
0.01605224609375,
0.033966064453125,
0.046417236328125,
0.0094757080078125,
0.0119171142578125,
0.032989501953125,
0.018798828125,
0.031494140625,
0.032257080078125,
-0.0223388671875,
0.01308441162109375,
-0.004779815673828125,
-0.01219940185546875,
0.0023822784423828125,
-0.00958251953125,
0.0026092529296875,
-0.016876220703125,
0.00006473064422607422,
-0.0145416259765625,
-0.01702880859375,
-0.00997161865234375,
-0.01233673095703125,
-0.00574493408203125,
0.0293121337890625,
-0.0305023193359375,
0.0033054351806640625,
0.05255126953125,
0.043670654296875,
-0.009429931640625,
-0.021453857421875,
-0.032562255859375,
-0.000514984130859375,
0.029083251953125,
-0.031097412109375,
-0.01210784912109375,
-0.0132293701171875,
-0.01061248779296875,
0.01255035400390625,
-0.0682373046875,
0.0170745849609375,
-0.01580810546875,
-0.06304931640625,
-0.035430908203125,
-0.021453857421875,
0.033294677734375,
-0.0086212158203125,
-0.006153106689453125,
0.0196533203125,
-0.002826690673828125,
-0.005611419677734375,
-0.08245849609375,
0.048828125,
-0.045623779296875,
0.06048583984375,
0.08551025390625,
0.01480865478515625,
-0.0014801025390625,
0.01519775390625,
-0.0186004638671875,
0.06341552734375,
-0.006710052490234375,
-0.0081634521484375,
0.0229949951171875,
-0.04632568359375,
0.01387786865234375,
0.0034847259521484375,
0.012298583984375,
-0.0191192626953125,
-0.028900146484375,
-0.01442718505859375,
0.01418304443359375,
-0.0230255126953125,
0.0166168212890625,
-0.0015497207641601562,
-0.0228118896484375,
-0.00792694091796875,
-0.0164947509765625,
0.004032135009765625,
-0.0010700225830078125,
-0.015960693359375,
0.00640869140625,
-0.00994873046875,
-0.01480865478515625,
-0.037017822265625,
-0.005886077880859375,
-0.0284881591796875,
0.03338623046875,
-0.01378631591796875,
0.00029778480529785156,
0.01282501220703125,
0.09783935546875,
0.01514434814453125,
-0.0333251953125,
0.0169830322265625,
-0.041015625,
-0.0311279296875,
0.00768280029296875,
-0.0224609375,
0.01422882080078125,
0.025299072265625,
0.0012388229370117188,
-0.0445556640625,
0.01259613037109375,
-0.0020732879638671875,
-0.0173797607421875,
-0.0119781494140625,
0.04632568359375,
-0.004741668701171875,
0.030242919921875,
0.022125244140625,
0.01220703125,
-0.01049041748046875,
-0.036590576171875,
-0.02349853515625,
-0.0202789306640625,
-0.06243896484375,
-0.0396728515625,
0.0237579345703125,
0.01351165771484375,
-0.0170745849609375,
0.00579071044921875,
0.03857421875,
0.020416259765625,
0.039642333984375,
-0.0042724609375,
0.00954437255859375,
0.004344940185546875,
0.0263824462890625,
-0.052490234375,
0.0060272216796875,
-0.0247802734375,
0.0255584716796875,
-0.0152130126953125,
-0.00948333740234375,
-0.054229736328125,
0.041748046875,
-0.06634521484375,
-0.032318115234375,
0.021636962890625,
-0.0345458984375,
-0.01129150390625,
0.0054779052734375,
-0.0004227161407470703,
0.008148193359375,
0.05352783203125,
-0.052520751953125,
0.004543304443359375,
-0.01555633544921875,
-0.006053924560546875,
-0.00981903076171875,
-0.0217132568359375,
-0.0537109375,
-0.007354736328125,
-0.058563232421875,
0.0273895263671875,
-0.0179901123046875,
-0.0186767578125,
-0.028564453125,
-0.035797119140625,
-0.0301361083984375,
-0.032806396484375,
0.0026683807373046875,
-0.0186614990234375,
-0.0202484130859375,
0.03167724609375,
-0.05572509765625,
0.034881591796875,
-0.001674652099609375,
-0.0404052734375,
-0.07757568359375,
0.00568389892578125,
-0.03717041015625,
0.027740478515625,
0.00787353515625,
-0.00290679931640625,
-0.01230621337890625,
0.0272979736328125,
0.01155853271484375,
-0.0071563720703125,
0.0021076202392578125,
0.005664825439453125,
-0.007022857666015625,
0.012603759765625,
-0.004596710205078125,
-0.0210418701171875,
0.0031585693359375,
0.0306396484375,
0.009429931640625,
0.07965087890625,
-0.037261962890625,
-0.01256561279296875,
-0.0147247314453125,
-0.034942626953125,
-0.00881195068359375,
-0.045684814453125,
-0.050384521484375,
0.0264129638671875,
-0.044189453125,
0.01093292236328125,
-0.0557861328125,
-0.050994873046875,
0.01983642578125,
-0.01238250732421875,
-0.014984130859375,
0.005168914794921875,
0.040130615234375,
0.0203704833984375,
-0.0137786865234375,
-0.000789642333984375,
0.0092010498046875,
0.03973388671875,
0.01421356201171875,
0.042266845703125,
0.023529052734375,
-0.0191497802734375,
0.031463623046875,
0.01433563232421875,
-0.0238037109375,
-0.035675048828125,
0.066650390625,
-0.023529052734375,
-0.03363037109375,
0.0285186767578125,
-0.04888916015625,
0.05169677734375,
0.03704833984375,
0.0181121826171875,
-0.0014390945434570312,
-0.00970458984375,
0.03082275390625,
0.0299530029296875,
-0.050018310546875,
-0.046875,
-0.0245513916015625,
0.00835418701171875,
-0.01367950439453125,
0.038818359375,
0.03216552734375,
0.0012111663818359375,
0.051422119140625,
0.037750244140625,
-0.004276275634765625,
0.02203369140625,
0.044036865234375,
-0.0294647216796875,
0.0292816162109375,
0.004741668701171875,
-0.0357666015625,
-0.006805419921875,
-0.01103973388671875,
0.06396484375,
-0.0038928985595703125,
-0.0614013671875,
0.008636474609375,
-0.01456451416015625,
0.04620361328125,
0.02947998046875,
0.017913818359375,
0.0330810546875,
-0.01560211181640625,
-0.01151275634765625,
-0.00725555419921875,
-0.0179443359375,
-0.0140380859375,
-0.042816162109375,
0.0147247314453125,
0.0252227783203125,
-0.02911376953125,
0.0220794677734375,
0.01076507568359375,
-0.0200653076171875,
0.0193328857421875,
-0.002391815185546875,
0.029388427734375,
0.027099609375,
0.00344085693359375,
0.002330780029296875,
0.037261962890625,
-0.0110626220703125,
-0.00815582275390625,
0.01458740234375,
-0.026336669921875,
-0.042449951171875,
0.05859375,
0.0174560546875,
0.03717041015625,
0.0306243896484375,
-0.037933349609375,
0.0243072509765625,
-0.0204620361328125,
0.0308074951171875,
0.0482177734375,
-0.055389404296875,
-0.01351165771484375,
-0.01136016845703125,
-0.0160064697265625,
-0.0005698204040527344,
0.007297515869140625,
-0.01439666748046875,
-0.0240631103515625,
-0.021209716796875,
0.040802001953125,
-0.045166015625,
-0.017791748046875,
-0.006908416748046875,
-0.0309600830078125,
-0.028594970703125,
-0.017333984375,
-0.0215911865234375,
-0.006679534912109375,
0.00933074951171875,
-0.00543975830078125,
0.006336212158203125,
0.0193023681640625,
0.0289459228515625,
-0.00689697265625,
-0.05096435546875,
0.034942626953125,
0.0009336471557617188,
0.056304931640625,
0.0026836395263671875,
-0.0215301513671875,
-0.018707275390625,
-0.059814453125,
-0.042694091796875,
-0.064453125,
-0.048919677734375,
-0.059844970703125,
0.009674072265625,
0.044403076171875,
0.032684326171875,
-0.00035643577575683594,
-0.03948974609375,
-0.00838470458984375,
-0.0023784637451171875,
0.013427734375,
0.03692626953125,
-0.01166534423828125,
0.050750732421875,
-0.002490997314453125,
0.044342041015625,
0.0174560546875,
0.05828857421875,
0.0048675537109375,
-0.033203125,
0.027496337890625,
-0.0191650390625,
-0.040191650390625,
-0.01316070556640625,
-0.0391845703125,
-0.0016012191772460938,
0.05645751953125,
-0.0165252685546875,
-0.00812530517578125,
-0.02978515625,
0.006160736083984375,
-0.044921875,
0.02752685546875,
-0.03875732421875,
0.0158538818359375,
-0.0382080078125,
0.0232391357421875,
0.0291595458984375,
-0.033050537109375,
-0.070068359375,
0.03485107421875,
0.0262603759765625,
0.04217529296875,
-0.0213165283203125,
-0.039825439453125,
0.04803466796875,
0.047515869140625,
-0.01204681396484375,
0.02838134765625,
0.0036678314208984375,
0.00594329833984375,
0.0164031982421875,
0.045623779296875,
-0.03961181640625,
-0.04571533203125,
0.03997802734375,
0.026824951171875,
-0.03179931640625,
0.032562255859375,
-0.019744873046875,
0.04168701171875,
0.0657958984375,
0.06842041015625,
-0.1187744140625,
0.0391845703125,
-0.00018906593322753906,
0.00591278076171875,
0.06787109375,
-0.031158447265625,
0.012115478515625,
-0.042999267578125,
0.06427001953125,
-0.0028247833251953125,
-0.0178985595703125,
-0.0002765655517578125,
-0.046905517578125,
-0.008880615234375,
-0.0219268798828125,
0.059722900390625,
0.0075225830078125,
-0.04815673828125,
0.006317138671875,
0.05340576171875,
-0.016632080078125,
-0.039276123046875,
-0.039215087890625,
0.035247802734375,
-0.0341796875,
-0.09375,
0.0131072998046875,
-0.056304931640625,
0.0195465087890625,
0.06927490234375,
-0.001415252685546875,
-0.0282745361328125,
0.060211181640625,
-0.03912353515625,
0.060272216796875,
0.0185699462890625,
-0.0726318359375,
-0.083984375,
-0.0201873779296875,
0.007038116455078125,
0.00960540771484375,
0.0293731689453125,
0.0267791748046875,
-0.00943756103515625,
-0.05181884765625,
-0.0037136077880859375,
0.0203094482421875,
0.09619140625,
-0.04742431640625,
-0.0218505859375,
0.016387939453125,
-0.0198516845703125,
0.0018672943115234375,
-0.010009765625,
-0.0142822265625,
0.030517578125,
0.08563232421875,
-0.0291595458984375,
0.03985595703125,
-0.01259613037109375,
-0.03717041015625,
-0.0601806640625,
0.0821533203125,
-0.0312347412109375,
0.006290435791015625,
0.00649261474609375,
0.033111572265625,
-0.027587890625,
0.0201263427734375,
-0.023529052734375,
0.06085205078125,
0.0008544921875,
0.10015869140625,
-0.033721923828125,
-0.0328369140625,
0.05712890625,
0.07904052734375,
0.048797607421875,
0.01126861572265625,
-0.0000591278076171875,
-0.026763916015625,
0.0298919677734375,
0.046295166015625,
0.0057220458984375,
0.0014715194702148438,
-0.0280914306640625,
0.01398468017578125,
0.040313720703125,
-0.048004150390625,
0.0239105224609375,
-0.0196990966796875,
-0.0194244384765625,
-0.0186004638671875,
0.01087188720703125,
0.011260986328125,
-0.00852203369140625,
0.046783447265625,
-0.0125732421875,
0.0010976791381835938,
0.0038471221923828125,
-0.0018444061279296875,
0.0020694732666015625,
0.0235595703125,
0.041229248046875,
-0.03753662109375,
-0.0180816650390625,
-0.0216827392578125,
0.04644775390625,
0.0172119140625,
0.0244598388671875,
0.02789306640625,
0.035888671875,
-0.00803375244140625,
-0.01297760009765625,
0.0167694091796875,
0.0115814208984375,
-0.03515625,
0.01055908203125,
0.01314544677734375,
0.024261474609375,
-0.04107666015625,
-0.034576416015625,
0.0145416259765625,
0.0204010009765625,
-0.0110626220703125,
-0.0306549072265625,
0.02349853515625,
0.00931549072265625,
0.003887176513671875,
0.005092620849609375,
0.040924072265625,
-0.01273345947265625,
0.0239410400390625,
-0.00878143310546875,
-0.00789642333984375,
0.005550384521484375,
0.041229248046875,
0.0006170272827148438,
0.0009717941284179688,
-0.02337646484375,
-0.007381439208984375,
-0.004711151123046875,
-0.036834716796875,
0.0038051605224609375,
-0.00919342041015625,
0.01953125,
0.00011307001113891602,
0.02703857421875,
0.019744873046875,
0.0087738037109375,
0.01514434814453125,
0.00554656982421875,
-0.004596710205078125,
-0.061920166015625,
-0.061004638671875,
0.033050537109375,
0.046051025390625,
0.0168304443359375,
0.029876708984375,
0.031768798828125,
0.039642333984375,
0.00800323486328125,
0.0026378631591796875,
0.045074462890625,
-0.0182952880859375,
0.002552032470703125,
-0.0245819091796875,
0.0134124755859375,
0.026702880859375,
-0.00782012939453125,
0.0101470947265625,
0.00612640380859375,
0.04876708984375,
0.00948333740234375,
-0.006221771240234375,
0.01195526123046875,
-0.0005998611450195312,
0.0367431640625,
0.0472412109375,
-0.033294677734375,
0.038055419921875,
-0.0626220703125,
-0.0083770751953125,
-0.0308685302734375,
-0.04278564453125,
0.01165008544921875,
0.0196075439453125,
-0.04400634765625,
0.038055419921875,
0.00121307373046875,
0.0413818359375,
0.0015745162963867188,
-0.046051025390625,
0.0130462646484375,
0.0054168701171875,
0.025360107421875,
0.0153350830078125,
-0.038330078125,
-0.005779266357421875,
-0.0145111083984375,
0.00588226318359375,
0.0208740234375,
0.08258056640625,
-0.0132598876953125,
0.0197601318359375,
-0.0391845703125,
0.00861358642578125,
-0.011932373046875,
-0.021209716796875,
0.0279998779296875,
0.039581298828125,
-0.00601959228515625,
-0.018890380859375,
-0.0257568359375,
0.091796875,
-0.029052734375,
0.01397705078125,
0.09820556640625,
-0.06658935546875,
-0.017669677734375,
-0.01177215576171875,
-0.0172119140625,
-0.03497314453125,
-0.0197296142578125,
-0.01174163818359375,
0.0055999755859375,
-0.004047393798828125,
-0.0281219482421875,
-0.0249176025390625,
0.043670654296875,
-0.004764556884765625,
0.02447509765625,
-0.01111602783203125,
0.009124755859375,
-0.03179931640625,
0.0176239013671875,
-0.04046630859375,
0.007373809814453125,
0.00923919677734375,
-0.00580596923828125,
-0.005458831787109375,
0.034576416015625,
-0.0390625,
0.0281982421875,
-0.0233612060546875,
-0.058868408203125,
0.01448822021484375,
0.03570556640625,
0.0215606689453125,
0.019500732421875,
-0.0228271484375,
-0.03240966796875,
-0.0279998779296875,
-0.01335906982421875,
-0.01385498046875,
-0.0217742919921875,
-0.016387939453125,
0.0222320556640625,
-0.035858154296875,
-0.0283203125,
-0.045257568359375,
-0.0122222900390625,
0.0025577545166015625,
-0.001407623291015625,
-0.053466796875,
0.007568359375,
0.0025482177734375,
0.053497314453125,
-0.05267333984375,
0.031982421875,
-0.003192901611328125,
0.0294036865234375,
-0.04345703125,
-0.002941131591796875,
-0.0176544189453125,
-0.005435943603515625,
-0.0205535888671875,
0.04736328125,
0.064208984375,
-0.03643798828125,
0.0089263916015625,
0.06341552734375,
0.04400634765625,
0.117919921875,
-0.0232391357421875,
-0.017608642578125,
0.0130462646484375,
-0.0022678375244140625,
0.0009975433349609375,
-0.055328369140625,
0.0088348388671875,
-0.052398681640625,
-0.005954742431640625,
-0.01279449462890625,
0.004489898681640625,
0.040771484375,
-0.0255889892578125,
-0.07073974609375,
0.048095703125,
-0.023468017578125,
-0.03277587890625,
-0.0234222412109375,
-0.01727294921875,
0.00409698486328125,
-0.0022258758544921875,
-0.00539398193359375,
-0.02020263671875,
-0.035858154296875,
0.031585693359375,
0.0262908935546875,
0.039154052734375,
0.02490234375,
0.0242156982421875,
0.023406982421875,
0.037933349609375,
0.0211181640625,
0.00957489013671875,
-0.0111541748046875,
-0.0115203857421875,
0.0204925537109375,
0.03204345703125,
-0.033538818359375,
-0.013031005859375,
0.00902557373046875,
0.00787353515625,
-0.028533935546875,
0.00927734375,
-0.0027923583984375,
0.0023784637451171875,
0.0289154052734375,
0.07464599609375,
0.01045989990234375,
-0.0257720947265625,
0.02374267578125,
-0.02239990234375,
-0.034088134765625,
-0.0160064697265625,
0.01235198974609375,
-0.02606201171875,
0.0021343231201171875,
-0.01410675048828125,
0.008331298828125,
0.005260467529296875,
-0.0489501953125,
-0.006866455078125,
-0.0137939453125,
-0.00720977783203125,
-0.01274871826171875,
0.036407470703125,
0.0292510986328125,
0.0156402587890625,
-0.02154541015625,
0.00891876220703125,
-0.031463623046875,
-0.003147125244140625,
0.00824737548828125,
-0.045867919921875,
-0.043914794921875,
-0.038177490234375,
0.0195465087890625,
0.05731201171875,
-0.0166473388671875,
0.0396728515625,
-0.02508544921875,
0.0102996826171875,
-0.0234222412109375,
0.0233154296875,
0.016632080078125,
0.031585693359375,
-0.0184326171875,
-0.0013551712036132812,
0.0266571044921875,
0.0082244873046875,
-0.0017995834350585938,
0.01276397705078125,
-0.019561767578125,
0.039947509765625,
0.009246826171875,
-0.03057861328125,
0.0307464599609375,
-0.044158935546875,
-0.0031871795654296875,
0.0305938720703125,
-0.0143585205078125,
-0.039581298828125,
0.06134033203125,
0.0176849365234375,
0.0113372802734375,
0.0226287841796875
] |
20f416be833d0c1be12bb663c1d09553360b758f
|
Wordpress Stackexchange
Q: What is 'term_group' for 'order_by' in get_terms()? I was just reading the Codex regarding get_terms();. What exactly is the parameter 'term_group'?
You can use it in (example): 'order_by' for get_terms();.
Hint: I could be all terms that share the same names, but have different slugs.
A: The idea of term groups was to have a term with multiple aliases.
This feature doesn't seem to be fully backed and is therefore practically never used.
|
Q: What is 'term_group' for 'order_by' in get_terms()? I was just reading the Codex regarding get_terms();. What exactly is the parameter 'term_group'?
You can use it in (example): 'order_by' for get_terms();.
Hint: I could be all terms that share the same names, but have different slugs.
A: The idea of term groups was to have a term with multiple aliases.
This feature doesn't seem to be fully backed and is therefore practically never used.
|
wordpress
|
{
"language": "en",
"length": 74,
"provenance": "stackexchange_00019.jsonl.gz:411375",
"question_score": "20",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23169"
}
|
[
0.043609619140625,
0.005115509033203125,
-0.03826904296875,
-0.041229248046875,
0.0306854248046875,
-0.05059814453125,
0.03125,
0.01560211181640625,
0.0123443603515625,
0.038238525390625,
-0.0296478271484375,
-0.004673004150390625,
-0.00446319580078125,
-0.0161590576171875,
-0.052154541015625,
-0.02313232421875,
0.047332763671875,
-0.030242919921875,
0.0309906005859375,
0.0142669677734375,
0.0098114013671875,
0.048858642578125,
0.02154541015625,
0.06768798828125,
0.03106689453125,
-0.0192718505859375,
0.02691650390625,
-0.027984619140625,
0.047454833984375,
-0.006175994873046875,
0.0225067138671875,
-0.03594970703125,
0.004619598388671875,
-0.0232086181640625,
0.046783447265625,
-0.0157012939453125,
0.022796630859375,
0.0032596588134765625,
0.02410888671875,
-0.0052337646484375,
0.047576904296875,
-0.02056884765625,
0.005096435546875,
0.0118255615234375,
-0.02276611328125,
0.00658416748046875,
0.0394287109375,
-0.005229949951171875,
0.0245513916015625,
-0.06298828125,
0.04888916015625,
-0.01477813720703125,
0.054351806640625,
0.00045680999755859375,
-0.040374755859375,
-0.00960540771484375,
0.01885986328125,
-0.00836944580078125,
0.017364501953125,
-0.04364013671875,
-0.02880859375,
0.006755828857421875,
0.03228759765625,
0.0223236083984375,
0.0166778564453125,
0.02490234375,
0.03765869140625,
0.0212249755859375,
-0.065185546875,
0.006992340087890625,
0.0311431884765625,
-0.058441162109375,
0.0185394287109375,
0.019439697265625,
-0.00041794776916503906,
-0.0692138671875,
-0.008270263671875,
-0.0296478271484375,
0.032257080078125,
0.0201416015625,
-0.0022144317626953125,
-0.038299560546875,
-0.048187255859375,
0.0042572021484375,
0.0093994140625,
0.020233154296875,
-0.007717132568359375,
-0.01534271240234375,
0.015045166015625,
-0.06622314453125,
-0.0015077590942382812,
-0.00768280029296875,
-0.0237884521484375,
0.01190948486328125,
-0.032501220703125,
-0.03857421875,
0.0133514404296875,
0.049560546875,
-0.010467529296875,
-0.0152740478515625,
-0.00032401084899902344,
-0.03173828125,
-0.01230621337890625,
-0.0294342041015625,
-0.036956787109375,
-0.031951904296875,
-0.00988006591796875,
0.028106689453125,
0.0120086669921875,
0.056304931640625,
-0.02545166015625,
-0.0114898681640625,
0.0109405517578125,
-0.04852294921875,
0.00848388671875,
-0.035888671875,
-0.047576904296875,
0.04693603515625,
0.036102294921875,
-0.038299560546875,
0.0191192626953125,
0.03179931640625,
-0.002407073974609375,
0.025054931640625,
-0.03375244140625,
0.001842498779296875,
-0.004398345947265625,
-0.0546875,
-0.036834716796875,
0.037811279296875,
-0.01439666748046875,
0.025146484375,
0.0160675048828125,
0.0175933837890625,
-0.01183319091796875,
-0.0250701904296875,
-0.0288543701171875,
-0.0024433135986328125,
0.00716400146484375,
0.004150390625,
0.024261474609375,
-0.023651123046875,
0.0191650390625,
0.033172607421875,
0.00574493408203125,
-0.0203857421875,
-0.0008554458618164062,
0.031494140625,
0.0108184814453125,
-0.002094268798828125,
0.0202484130859375,
-0.007663726806640625,
0.020904541015625,
0.0169525146484375,
-0.026397705078125,
0.0143890380859375,
-0.020263671875,
0.0008072853088378906,
0.0012969970703125,
-0.019622802734375,
-0.0018968582153320312,
-0.01041412353515625,
0.01763916015625,
0.005584716796875,
-0.0105133056640625,
-0.012786865234375,
0.01386260986328125,
-0.00777435302734375,
0.018096923828125,
-0.00745391845703125,
0.0298614501953125,
-0.00360107421875,
0.0312042236328125,
0.0298004150390625,
0.01511383056640625,
0.0159149169921875,
-0.02105712890625,
-0.017242431640625,
0.0306243896484375,
0.0084686279296875,
-0.0340576171875,
-0.0565185546875,
-0.0052642822265625,
-0.01336669921875,
-0.04400634765625,
0.060394287109375,
-0.0119781494140625,
0.0361328125,
0.017578125,
-0.0042724609375,
0.0299072265625,
0.044708251953125,
-0.060546875,
0.040985107421875,
0.01739501953125,
-0.030609130859375,
-0.0280609130859375,
-0.0220794677734375,
-0.006664276123046875,
-0.03546142578125,
0.0294952392578125,
0.016510009765625,
-0.02490234375,
-0.00884246826171875,
-0.03594970703125,
-0.0305023193359375,
0.004169464111328125,
0.00832366943359375,
0.045654296875,
0.01849365234375,
0.0037326812744140625,
0.004802703857421875,
-0.02569580078125,
0.0119476318359375,
-0.06964111328125,
-0.004947662353515625,
-0.0257110595703125,
0.01491546630859375,
0.00376129150390625,
0.020538330078125,
-0.0212249755859375,
-0.00885772705078125,
-0.0215911865234375,
0.00833892822265625,
0.0084228515625,
0.013824462890625,
-0.0296478271484375,
-0.006439208984375,
-0.01114654541015625,
0.01296234130859375,
-0.0029392242431640625,
0.027191162109375,
0.025726318359375,
0.0953369140625,
0.0196075439453125,
-0.0184478759765625,
0.02703857421875,
-0.055999755859375,
0.0277252197265625,
0.0191802978515625,
0.019256591796875,
0.03912353515625,
-0.023681640625,
-0.0362548828125,
0.0810546875,
0.000988006591796875,
-0.00018167495727539062,
-0.016204833984375,
-0.0076446533203125,
0.053466796875,
0.01739501953125,
0.0182952880859375,
-0.01441192626953125,
0.0138397216796875,
-0.00363922119140625,
0.0252838134765625,
-0.00328826904296875,
0.0116424560546875,
0.0275115966796875,
0.0029392242431640625,
-0.020843505859375,
-0.0209503173828125,
0.0233154296875,
-0.0209503173828125,
-0.01494598388671875,
0.001934051513671875,
0.0003998279571533203,
0.016326904296875,
-0.0193939208984375,
-0.01367950439453125,
0.029541015625,
0.009063720703125,
0.00513458251953125,
0.0217132568359375,
-0.0008931159973144531,
0.006439208984375,
-0.01214599609375,
-0.0160064697265625,
0.0017375946044921875,
0.0024242401123046875,
-0.0010309219360351562,
0.0205230712890625,
0.002719879150390625,
-0.0106658935546875,
-0.004306793212890625,
-0.057525634765625,
0.0228424072265625,
0.0193634033203125,
-0.056976318359375,
-0.0465087890625,
-0.015655517578125,
0.045318603515625,
-0.0276031494140625,
0.01058197021484375,
-0.021484375,
0.0035877227783203125,
-0.052947998046875,
-0.020050048828125,
0.003528594970703125,
-0.045684814453125,
-0.004917144775390625,
0.033203125,
-0.000579833984375,
-0.025360107421875,
0.0281829833984375,
-0.021942138671875,
0.0209503173828125,
0.021087646484375,
-0.001720428466796875,
0.0214080810546875,
-0.1090087890625,
-0.04034423828125,
0.0229339599609375,
0.06427001953125,
-0.0098114013671875,
-0.037109375,
-0.007259368896484375,
0.039093017578125,
-0.015533447265625,
-0.042205810546875,
0.04632568359375,
-0.047821044921875,
0.003704071044921875,
-0.0108795166015625,
-0.029510498046875,
-0.02032470703125,
-0.005664825439453125,
-0.0176544189453125,
0.0241241455078125,
-0.01442718505859375,
-0.0296478271484375,
-0.0229949951171875,
-0.049560546875,
0.01332855224609375,
-0.00040268898010253906,
0.01678466796875,
0.01027679443359375,
0.05499267578125,
-0.004283905029296875,
-0.021148681640625,
0.00882720947265625,
0.0172271728515625,
0.000823974609375,
0.0213623046875,
0.019439697265625,
-0.0247650146484375,
0.01023101806640625,
-0.01345062255859375,
0.0303497314453125,
0.04058837890625,
-0.044769287109375,
0.009552001953125,
-0.0175933837890625,
0.00859832763671875,
0.0297088623046875,
-0.032684326171875,
-0.01325225830078125,
0.021942138671875,
0.0276336669921875,
-0.03167724609375,
0.0063629150390625,
-0.0008778572082519531,
-0.01277923583984375,
-0.0240631103515625,
-0.0045013427734375,
0.003604888916015625,
-0.005451202392578125,
0.007312774658203125,
-0.004978179931640625,
0.02410888671875,
-0.0184783935546875,
-0.0189056396484375,
0.046539306640625,
-0.0111083984375,
0.003459930419921875,
-0.0090484619140625,
0.00830841064453125,
-0.010711669921875,
0.01305389404296875,
0.01175689697265625,
0.037261962890625,
0.004108428955078125,
0.02410888671875,
-0.03363037109375,
-0.071044921875,
0.055023193359375,
0.01355743408203125,
0.03021240234375,
-0.053131103515625,
-0.034393310546875,
-0.00772857666015625,
0.09429931640625,
0.0007939338684082031,
-0.027252197265625,
-0.00457000732421875,
-0.001438140869140625,
-0.02459716796875,
-0.019439697265625,
-0.005950927734375,
-0.0264892578125,
-0.0204620361328125,
0.0228271484375,
0.0036945343017578125,
-0.0044403076171875,
-0.041290283203125,
0.007694244384765625,
-0.025634765625,
-0.01381683349609375,
0.034698486328125,
-0.0011453628540039062,
0.004634857177734375,
0.006679534912109375,
-0.00991058349609375,
0.0010890960693359375,
-0.021759033203125,
0.006160736083984375,
-0.0268402099609375,
0.005077362060546875,
-0.0247802734375,
0.005016326904296875,
0.0300445556640625,
-0.021636962890625,
0.0036334991455078125,
0.042388916015625,
0.022430419921875,
0.00836944580078125,
0.044158935546875,
-0.004047393798828125,
0.061004638671875,
0.0389404296875,
0.03143310546875,
-0.0192108154296875,
-0.01190948486328125,
-0.005794525146484375,
-0.03399658203125,
0.0203857421875,
-0.00482940673828125,
0.0264434814453125,
0.01354217529296875,
-0.0274200439453125,
-0.056884765625,
-0.032928466796875,
-0.036376953125,
0.00890350341796875,
-0.0234222412109375,
0.0023059844970703125,
-0.037872314453125,
-0.057464599609375,
0.041046142578125,
0.04522705078125,
-0.029144287109375,
-0.00803375244140625,
0.004749298095703125,
0.0225830078125,
-0.0545654296875,
-0.0192108154296875,
-0.03314208984375,
0.01235198974609375,
-0.00409698486328125,
0.018280029296875,
-0.0189056396484375,
-0.01800537109375,
0.07073974609375,
-0.03350830078125,
-0.019622802734375,
0.0164337158203125,
0.0159912109375,
-0.0093994140625,
-0.055145263671875,
0.028656005859375,
-0.0269775390625,
0.0275421142578125,
0.06787109375,
-0.0283203125,
-0.049713134765625,
-0.0246429443359375,
0.0791015625,
-0.0621337890625,
0.0604248046875,
-0.049041748046875,
-0.0560302734375,
0.0261383056640625,
-0.00916290283203125,
0.01348114013671875,
-0.01200103759765625,
0.0040435791015625,
0.0210418701171875,
0.003925323486328125,
0.02105712890625,
0.004669189453125,
0.0295562744140625,
-0.0213470458984375,
0.043182373046875,
0.007030487060546875,
-0.00008958578109741211,
-0.0190582275390625,
-0.014556884765625,
0.111328125,
0.004711151123046875,
-0.05157470703125,
0.042144775390625,
-0.0243377685546875,
0.0169525146484375,
0.04498291015625,
-0.0062255859375,
-0.040557861328125,
0.0013475418090820312,
0.025634765625,
0.03057861328125,
0.0110626220703125,
0.025146484375,
0.01593017578125,
0.06268310546875,
0.0254058837890625,
-0.0148468017578125,
0.00948333740234375,
0.037628173828125,
-0.009979248046875,
0.01335906982421875,
-0.0046234130859375,
-0.0224456787109375,
0.0004906654357910156,
0.005702972412109375,
0.0290985107421875,
-0.02215576171875,
0.0249481201171875,
-0.023101806640625,
0.0469970703125,
-0.010589599609375,
-0.015594482421875,
-0.0044097900390625,
-0.00818634033203125,
-0.01422119140625,
0.006656646728515625,
0.04876708984375,
0.0247955322265625,
-0.030242919921875,
0.025604248046875,
0.063232421875,
-0.020782470703125,
-0.0031299591064453125,
-0.0228729248046875,
-0.015960693359375,
0.01509857177734375,
-0.0035724639892578125,
0.054962158203125,
0.01068115234375,
0.052520751953125,
-0.043243408203125,
-0.00606536865234375,
-0.0190582275390625,
0.01509857177734375,
-0.004894256591796875,
0.001148223876953125,
0.01439666748046875,
-0.00568389892578125,
-0.00023877620697021484,
-0.0261688232421875,
-0.0262908935546875,
0.06884765625,
-0.01067352294921875,
0.038665771484375,
-0.034912109375,
-0.00989532470703125,
-0.033294677734375,
0.001354217529296875,
0.04736328125,
0.0175933837890625,
-0.0389404296875,
-0.01678466796875,
-0.043121337890625,
-0.014984130859375,
-0.058349609375,
-0.06805419921875,
-0.02239990234375,
0.01305389404296875,
-0.043243408203125,
-0.0046539306640625,
-0.0099334716796875,
0.0234375,
-0.00432586669921875,
0.0273284912109375,
-0.00959014892578125,
-0.03656005859375,
0.02618408203125,
-0.00498199462890625,
-0.004547119140625,
0.0263519287109375,
0.01788330078125,
-0.0287017822265625,
-0.0303802490234375,
-0.023590087890625,
0.0127716064453125,
-0.050140380859375,
-0.03253173828125,
-0.03460693359375,
-0.002147674560546875,
0.007640838623046875,
0.0097198486328125,
0.00009781122207641602,
0.01019287109375,
-0.00034332275390625,
0.0176544189453125,
-0.008575439453125,
0.0011262893676757812,
-0.0092620849609375,
-0.04437255859375,
0.03289794921875,
-0.042694091796875,
0.0300445556640625,
0.00673675537109375,
0.005889892578125,
0.04705810546875,
-0.06304931640625,
0.04718017578125,
0.0333251953125,
-0.003383636474609375,
0.005359649658203125,
0.06365966796875,
0.043670654296875,
0.054840087890625,
0.01171875,
0.04443359375,
0.0280303955078125,
0.00047898292541503906,
0.0185089111328125,
-0.0147857666015625,
0.048492431640625,
-0.01264190673828125,
-0.020111083984375,
0.026702880859375,
-0.047332763671875,
0.02447509765625,
0.00366973876953125,
0.04559326171875,
-0.034698486328125,
0.0264892578125,
0.0224609375,
0.0012063980102539062,
0.04986572265625,
0.02923583984375,
-0.03741455078125,
-0.010650634765625,
0.01904296875,
-0.027801513671875,
0.004878997802734375,
0.03717041015625,
0.00499725341796875,
0.013916015625,
-0.003452301025390625,
0.047576904296875,
-0.0023937225341796875,
0.01009368896484375,
-0.047760009765625,
-0.00554656982421875,
0.006626129150390625,
-0.0491943359375,
0.034149169921875,
0.0161895751953125,
0.01105499267578125,
-0.040374755859375,
0.05792236328125,
-0.0172271728515625,
0.011993408203125,
-0.0423583984375,
-0.01248931884765625,
-0.036773681640625,
0.012725830078125,
-0.0107574462890625,
-0.05120849609375,
0.0225372314453125,
-0.08642578125,
-0.045318603515625,
0.001987457275390625,
-0.004169464111328125,
0.0020236968994140625,
-0.00634765625,
0.017730712890625,
-0.048583984375,
-0.01024627685546875,
-0.00634002685546875,
-0.04522705078125,
0.030670166015625,
-0.0145721435546875,
-0.007198333740234375,
0.044769287109375,
0.039886474609375,
-0.016326904296875,
-0.011444091796875,
-0.006206512451171875,
-0.06005859375,
-0.006183624267578125,
-0.01015472412109375,
-0.0009388923645019531,
0.0249176025390625,
-0.01273345947265625,
-0.0391845703125,
0.0758056640625,
-0.043121337890625,
0.0288848876953125,
0.02166748046875,
0.02532958984375,
0.0035686492919921875,
0.022430419921875,
-0.027130126953125,
0.047210693359375,
-0.001789093017578125,
0.07635498046875,
-0.050689697265625,
-0.00896453857421875,
0.0294342041015625,
0.04730224609375,
0.056427001953125,
0.01012420654296875,
-0.069091796875,
-0.00739288330078125,
0.10858154296875,
0.06597900390625,
0.035369873046875,
0.057769775390625,
0.047454833984375,
0.022674560546875,
0.06231689453125,
0.016448974609375,
0.035369873046875,
0.0189208984375,
0.0146484375,
0.09661865234375,
0.006549835205078125,
0.0131988525390625,
0.0170440673828125,
0.00861358642578125,
-0.03466796875,
0.01126861572265625,
0.04571533203125,
-0.0177764892578125,
0.008270263671875,
0.0242767333984375,
0.00809478759765625,
-0.054901123046875,
0.00926971435546875,
-0.0234222412109375,
0.035125732421875,
-0.0098419189453125,
0.0660400390625,
0.08575439453125,
0.04840087890625,
0.051361083984375,
-0.0201873779296875,
0.051300048828125,
-0.00481414794921875,
-0.041778564453125,
0.0540771484375,
-0.02081298828125,
0.0247955322265625,
-0.0810546875,
-0.006107330322265625,
0.025054931640625,
0.07659912109375,
-0.036529541015625,
0.007663726806640625,
0.019073486328125,
-0.017364501953125,
-0.007068634033203125,
-0.060943603515625,
-0.031341552734375,
0.018585205078125,
0.004119873046875,
-0.07000732421875,
-0.013153076171875,
0.040069580078125,
0.040130615234375,
-0.01190185546875,
-0.0423583984375,
-0.0174713134765625,
-0.0411376953125,
-0.028472900390625,
0.03875732421875,
0.0237579345703125,
0.0232086181640625,
-0.0232086181640625,
0.06329345703125,
-0.041961669921875,
0.0000934600830078125,
-0.001537322998046875,
0.016265869140625,
-0.0007100105285644531,
0.01221466064453125,
-0.0067596435546875,
0.011383056640625,
-0.040283203125,
0.0168609619140625,
0.039703369140625,
0.0013837814331054688,
0.0162811279296875,
0.01128387451171875,
-0.005558013916015625,
0.0030345916748046875,
0.0304412841796875,
-0.01377105712890625,
0.005527496337890625,
-0.002841949462890625,
-0.0007100105285644531,
0.0159759521484375,
-0.01262664794921875,
-0.005847930908203125,
0.0037937164306640625,
0.059814453125,
-0.02398681640625,
0.096923828125,
-0.0189666748046875,
0.0197296142578125,
0.0237884521484375,
-0.021331787109375,
0.046844482421875,
0.000028192996978759766,
-0.04315185546875,
0.007175445556640625,
-0.014434814453125,
-0.061767578125,
0.00604248046875,
0.040191650390625,
0.0134429931640625,
-0.01091766357421875,
-0.015411376953125,
-0.0162200927734375,
0.0170745849609375,
-0.0145111083984375,
0.0301513671875,
-0.031646728515625,
-0.00467681884765625,
-0.0182342529296875,
-0.09344482421875,
-0.03302001953125,
-0.0133056640625,
-0.0062103271484375,
-0.0216827392578125,
0.052825927734375,
0.02020263671875,
0.0014524459838867188,
-0.032989501953125,
-0.0131988525390625,
-0.016937255859375,
-0.0206756591796875,
0.0408935546875,
-0.00647735595703125,
-0.031280517578125,
-0.00107574462890625,
0.0234832763671875,
0.0001068115234375,
0.027801513671875,
-0.07183837890625,
-0.00311279296875,
-0.0251007080078125,
0.01050567626953125,
-0.0340576171875,
0.01401519775390625,
-0.01059722900390625,
0.00690460205078125,
0.0185394287109375,
0.00024116039276123047,
0.03216552734375,
0.0287322998046875,
-0.0211944580078125,
-0.0261077880859375,
0.0126190185546875,
-0.060455322265625,
0.032867431640625,
-0.007537841796875,
0.0750732421875,
0.0245361328125,
0.0016431808471679688,
-0.003910064697265625,
-0.026123046875,
-0.024871826171875,
0.0020122528076171875,
0.013763427734375,
-0.03277587890625,
-0.000507354736328125,
-0.015350341796875,
-0.0408935546875,
-0.0306396484375,
0.01326751708984375,
-0.033050537109375,
0.0007162094116210938,
-0.0287933349609375,
0.0105743408203125,
-0.02130126953125,
-0.032501220703125,
-0.01076507568359375,
-0.037139892578125,
-0.0046539306640625,
0.027008056640625,
-0.0018186569213867188,
0.01439666748046875,
-0.0213470458984375,
0.0116119384765625,
0.0260467529296875,
-0.01229095458984375,
0.01335906982421875,
0.01715087890625,
-0.0259857177734375,
-0.0106048583984375,
0.01467132568359375,
-0.052093505859375,
0.006072998046875,
-0.0016803741455078125,
-0.032745361328125,
-0.00644683837890625,
-0.037322998046875,
-0.029876708984375,
-0.01459503173828125,
0.033111572265625,
0.035430908203125,
-0.023468017578125,
0.002288818359375,
0.09222412109375,
0.038726806640625,
0.1412353515625,
-0.0160064697265625,
-0.00839996337890625,
0.0209503173828125,
0.02398681640625,
-0.0556640625,
-0.08843994140625,
0.0185394287109375,
0.0030574798583984375,
-0.002002716064453125,
-0.0045013427734375,
0.006679534912109375,
0.01491546630859375,
-0.044342041015625,
-0.08221435546875,
0.040252685546875,
-0.007045745849609375,
-0.042236328125,
-0.07537841796875,
-0.01245880126953125,
0.0227508544921875,
-0.0311431884765625,
-0.01328277587890625,
-0.005710601806640625,
-0.07122802734375,
0.003948211669921875,
-0.0021457672119140625,
0.0166015625,
0.036224365234375,
-0.016876220703125,
-0.03857421875,
0.0173492431640625,
-0.004734039306640625,
0.007556915283203125,
0.00848388671875,
0.0057220458984375,
0.00812530517578125,
0.0400390625,
-0.0166473388671875,
-0.056396484375,
-0.0244598388671875,
-0.037506103515625,
0.016571044921875,
-0.0192413330078125,
-0.0004317760467529297,
0.0137176513671875,
0.01319122314453125,
0.0150604248046875,
0.00847625732421875,
-0.033935546875,
-0.024200439453125,
-0.0157470703125,
-0.0080413818359375,
-0.014678955078125,
0.01473236083984375,
-0.07330322265625,
-0.0287933349609375,
0.010528564453125,
-0.0296478271484375,
0.0302734375,
-0.0291290283203125,
-0.041656494140625,
0.020263671875,
-0.043060302734375,
-0.019561767578125,
-0.0576171875,
0.0158843994140625,
0.01273345947265625,
-0.04888916015625,
-0.0672607421875,
-0.008544921875,
0.00559234619140625,
-0.0706787109375,
-0.04620361328125,
-0.015960693359375,
-0.0011377334594726562,
0.024932861328125,
0.007167816162109375,
0.0174713134765625,
-0.016815185546875,
0.031494140625,
0.009979248046875,
-0.05169677734375,
0.0285797119140625,
0.027740478515625,
0.00714874267578125,
-0.0439453125,
0.1058349609375,
0.056304931640625,
0.05645751953125,
-0.0126800537109375,
0.0406494140625,
0.0130767822265625,
0.0164031982421875,
-0.03863525390625,
0.0090789794921875,
-0.0009722709655761719,
-0.0295562744140625,
0.0146026611328125,
0.00431060791015625,
-0.00896453857421875,
-0.0035800933837890625,
0.0160980224609375,
-0.014617919921875,
-0.034454345703125,
0.0209503173828125
] |
6cf272e655fbc3b518bc625e19da892994c82ddc
|
Wordpress Stackexchange
Q: Syntax highlighting for post/page editor Anyone know of a plugin that adds syntax highlighting to the post/page HTML editor?
Thanks-
A: I am using SyntaxHighlighter Evolved by Viper007Bond, works great!
http://wordpress.org/extend/plugins/syntaxhighlighter/
After I gave this answer yesterday, I read a recent post by Konstantin Kovshenin over at theme.fm, which gives you all the different possibilities on how to add syntax into your Posts/Pages: http://theme.fm/2011/07/working-with-code-in-wordpress-posts-985/
|
Q: Syntax highlighting for post/page editor Anyone know of a plugin that adds syntax highlighting to the post/page HTML editor?
Thanks-
A: I am using SyntaxHighlighter Evolved by Viper007Bond, works great!
http://wordpress.org/extend/plugins/syntaxhighlighter/
After I gave this answer yesterday, I read a recent post by Konstantin Kovshenin over at theme.fm, which gives you all the different possibilities on how to add syntax into your Posts/Pages: http://theme.fm/2011/07/working-with-code-in-wordpress-posts-985/
A: I've used Power Code Editor in the past it has syntax highlighting. It's been awhile since I've used it, but it seemed to work fine then.
A: I found a shortcode by @Bainternet in Ohad Raz weblog that can help you to build your sintax highlight own plugin, or just type it into your functions.php file theme.
function bainternet_highlight($atts, $content = null) {
extract(shortcode_atts(array(
'color' => 'yellow',
'font' => '#000000'
), $atts));
return "<FONT style=\"BACKGROUND-COLOR: $color; color: $font\">$content</font>";
}
add_shortcode('highlight','bainternet_highlight');
Usage: [ highlight ] this text is highlighted [/highlight]
Now, if you are searching for a MCE syntax highlightter, the best plugin I have found is the Advanced code Editor
Hope that helped with your question.
A: I was looking forever for the solution. I finally found this plugin which actually does a lot of things. But i only used the option to add a HTML button to the row of buttons which lets you edit post/page html with CodeMirror highlighting.
A: This one could solve the problem http://wordpress.org/extend/plugins/html-editor-syntax-highlighter/
|
wordpress
|
{
"language": "en",
"length": 235,
"provenance": "stackexchange_00019.jsonl.gz:411405",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23263"
}
|
[
0.035369873046875,
-0.002262115478515625,
-0.031982421875,
-0.0198974609375,
-0.00818634033203125,
-0.03765869140625,
0.00733184814453125,
-0.01342010498046875,
-0.0269012451171875,
0.025726318359375,
-0.00927734375,
0.0168609619140625,
-0.0174102783203125,
-0.025543212890625,
-0.0008778572082519531,
-0.02484130859375,
0.020172119140625,
-0.0042877197265625,
0.037445068359375,
-0.0008816719055175781,
-0.001953125,
0.0118865966796875,
0.0340576171875,
-0.005023956298828125,
0.03759765625,
0.0300445556640625,
0.062255859375,
-0.02947998046875,
0.042236328125,
0.0052642822265625,
0.0303955078125,
-0.0697021484375,
0.0174102783203125,
0.052154541015625,
-0.057220458984375,
-0.025909423828125,
0.02716064453125,
-0.006317138671875,
-0.00617218017578125,
0.0292205810546875,
0.0025920867919921875,
0.007785797119140625,
0.031951904296875,
0.02239990234375,
0.0034027099609375,
-0.0299072265625,
0.01346588134765625,
-0.052886962890625,
0.0006380081176757812,
-0.11224365234375,
-0.007442474365234375,
0.031646728515625,
0.037261962890625,
-0.060943603515625,
-0.0176544189453125,
0.0233917236328125,
0.01434326171875,
0.0251312255859375,
0.024658203125,
-0.0054931640625,
-0.0286102294921875,
0.0203094482421875,
-0.0020160675048828125,
0.000022172927856445312,
-0.00199127197265625,
0.003620147705078125,
-0.0122528076171875,
0.004241943359375,
-0.0279693603515625,
0.00543975830078125,
0.0274200439453125,
-0.044464111328125,
0.00582122802734375,
-0.00431060791015625,
-0.0235748291015625,
-0.01129150390625,
0.00482177734375,
-0.00695037841796875,
0.01313018798828125,
0.0084991455078125,
0.03094482421875,
-0.004913330078125,
0.061553955078125,
-0.035308837890625,
0.0160675048828125,
-0.0204315185546875,
0.01055145263671875,
0.0012378692626953125,
-0.035797119140625,
-0.048309326171875,
-0.02996826171875,
0.020599365234375,
-0.08209228515625,
-0.0239105224609375,
-0.02288818359375,
-0.01387786865234375,
-0.00727081298828125,
-0.0174713134765625,
0.014892578125,
0.043609619140625,
0.0122528076171875,
-0.06512451171875,
0.09588623046875,
-0.026519775390625,
-0.0250396728515625,
0.040679931640625,
0.034698486328125,
0.04266357421875,
0.01160430908203125,
0.0088043212890625,
-0.01194000244140625,
-0.0118560791015625,
0.00856781005859375,
0.00994873046875,
-0.0166015625,
-0.004505157470703125,
-0.027099609375,
0.0132598876953125,
-0.00852203369140625,
0.0028438568115234375,
0.0162811279296875,
0.0272216796875,
-0.0092315673828125,
-0.01154327392578125,
-0.032989501953125,
-0.041412353515625,
-0.01248931884765625,
-0.01387786865234375,
0.03863525390625,
-0.00637054443359375,
-0.0216064453125,
0.033172607421875,
0.057464599609375,
0.01629638671875,
-0.0008769035339355469,
-0.0113983154296875,
-0.01116943359375,
-0.0389404296875,
-0.00872039794921875,
-0.00513458251953125,
-0.0256805419921875,
-0.027435302734375,
0.01861572265625,
-0.03558349609375,
0.039337158203125,
0.01471710205078125,
0.02166748046875,
0.01099395751953125,
0.010986328125,
-0.0445556640625,
0.05059814453125,
-0.01136016845703125,
0.010711669921875,
-0.005733489990234375,
0.0157012939453125,
-0.037322998046875,
-0.0141754150390625,
-0.011199951171875,
0.0355224609375,
0.004123687744140625,
0.0153045654296875,
0.01983642578125,
0.029571533203125,
0.036224365234375,
0.0005598068237304688,
-0.013214111328125,
-0.019134521484375,
0.00530242919921875,
0.0215301513671875,
-0.038238525390625,
0.0183563232421875,
-0.0014982223510742188,
0.05596923828125,
-0.00928497314453125,
-0.0157318115234375,
0.010498046875,
-0.01538848876953125,
0.003849029541015625,
0.03509521484375,
-0.0012655258178710938,
-0.0167083740234375,
-0.01995849609375,
0.0662841796875,
-0.01666259765625,
-0.056060791015625,
0.039306640625,
0.00928497314453125,
0.06561279296875,
0.01488494873046875,
0.023468017578125,
0.041595458984375,
0.0014095306396484375,
-0.00524139404296875,
0.0159912109375,
0.01255035400390625,
-0.0269317626953125,
-0.0034198760986328125,
-0.0006985664367675781,
0.002956390380859375,
-0.029266357421875,
-0.030731201171875,
0.006084442138671875,
-0.0131072998046875,
0.02850341796875,
-0.033355712890625,
0.0014429092407226562,
-0.0210113525390625,
0.029022216796875,
0.050323486328125,
-0.020477294921875,
-0.0210113525390625,
-0.00946044921875,
0.025360107421875,
-0.05322265625,
-0.07373046875,
0.0556640625,
-0.0074920654296875,
-0.0003008842468261719,
0.041351318359375,
-0.018035888671875,
0.0758056640625,
0.002254486083984375,
0.039031982421875,
0.004802703857421875,
-0.0041656494140625,
-0.003543853759765625,
-0.0252685546875,
-0.00762176513671875,
-0.0308685302734375,
-0.00012123584747314453,
0.01007080078125,
0.054840087890625,
-0.00048065185546875,
0.057403564453125,
-0.0278778076171875,
-0.03924560546875,
-0.034515380859375,
-0.051055908203125,
0.033233642578125,
0.06402587890625,
0.050201416015625,
0.06976318359375,
-0.020172119140625,
-0.06561279296875,
0.108642578125,
0.004711151123046875,
0.0237884521484375,
-0.05377197265625,
-0.0001614093780517578,
0.03717041015625,
0.00030231475830078125,
0.0016546249389648438,
0.0020198822021484375,
-0.046661376953125,
0.0308074951171875,
0.02154541015625,
0.017669677734375,
0.0291290283203125,
-0.041229248046875,
0.007137298583984375,
0.003368377685546875,
-0.033843994140625,
-0.0438232421875,
-0.024871826171875,
0.06329345703125,
-0.058685302734375,
0.05853271484375,
0.0264892578125,
-0.0121002197265625,
-0.049285888671875,
0.0164031982421875,
0.0261383056640625,
0.01320648193359375,
0.030731201171875,
-0.01346588134765625,
0.0614013671875,
-0.0031681060791015625,
-0.035308837890625,
0.0269012451171875,
0.0308990478515625,
-0.001674652099609375,
0.01451873779296875,
-0.0072021484375,
-0.014312744140625,
0.028106689453125,
-0.01739501953125,
-0.002887725830078125,
-0.0156097412109375,
-0.02398681640625,
-0.026153564453125,
0.01056671142578125,
-0.00820159912109375,
-0.05194091796875,
0.0313720703125,
-0.0124053955078125,
-0.03094482421875,
0.04266357421875,
-0.045318603515625,
0.049591064453125,
-0.01296234130859375,
0.053680419921875,
0.0572509765625,
0.01100921630859375,
0.005252838134765625,
0.0259857177734375,
-0.0005717277526855469,
0.033233642578125,
0.03448486328125,
0.0196075439453125,
-0.0174713134765625,
-0.015350341796875,
0.0077972412109375,
0.0140533447265625,
-0.0019588470458984375,
-0.0036411285400390625,
-0.03741455078125,
-0.0300445556640625,
0.00643157958984375,
-0.1083984375,
-0.06756591796875,
-0.006496429443359375,
-0.0947265625,
-0.040985107421875,
0.01169586181640625,
-0.0650634765625,
0.01459503173828125,
0.066650390625,
-0.00440216064453125,
-0.044921875,
-0.024322509765625,
-0.040252685546875,
-0.06658935546875,
-0.062225341796875,
-0.028289794921875,
-0.00409698486328125,
0.0164337158203125,
0.0118560791015625,
0.0260467529296875,
-0.0009937286376953125,
-0.055877685546875,
-0.00563812255859375,
-0.053802490234375,
-0.01214599609375,
0.039031982421875,
0.003772735595703125,
-0.01470947265625,
-0.006084442138671875,
0.006000518798828125,
-0.0158233642578125,
0.00838470458984375,
-0.01105499267578125,
-0.016693115234375,
-0.025848388671875,
0.06719970703125,
0.00885009765625,
-0.0174560546875,
0.043731689453125,
0.05859375,
-0.0201873779296875,
-0.0224151611328125,
0.01448822021484375,
0.00591278076171875,
-0.0171051025390625,
-0.025115966796875,
-0.040008544921875,
-0.006771087646484375,
-0.00786590576171875,
0.01390838623046875,
0.0200042724609375,
0.0179901123046875,
0.03607177734375,
-0.002841949462890625,
0.0111846923828125,
-0.006011962890625,
-0.00237274169921875,
-0.032318115234375,
-0.041412353515625,
-0.033905029296875,
0.034210205078125,
-0.040252685546875,
0.00498199462890625,
-0.01947021484375,
0.0482177734375,
-0.0168304443359375,
-0.0171356201171875,
0.01380157470703125,
-0.0240020751953125,
0.03240966796875,
-0.055816650390625,
-0.02093505859375,
-0.05096435546875,
0.046966552734375,
-0.0302276611328125,
-0.00661468505859375,
0.0191802978515625,
0.004222869873046875,
-0.0110015869140625,
-0.00560760498046875,
-0.0655517578125,
-0.0117950439453125,
-0.0496826171875,
0.0110321044921875,
0.0161590576171875,
-0.03155517578125,
-0.037567138671875,
0.030517578125,
-0.072265625,
-0.00391387939453125,
0.02252197265625,
-0.04364013671875,
-0.0217742919921875,
0.043121337890625,
-0.034393310546875,
0.00736236572265625,
-0.01416015625,
-0.04156494140625,
-0.07940673828125,
-0.01251983642578125,
-0.031158447265625,
0.0640869140625,
0.029693603515625,
-0.038909912109375,
-0.019134521484375,
0.024139404296875,
0.0096282958984375,
0.002231597900390625,
0.00479888916015625,
0.0252227783203125,
-0.033294677734375,
-0.01433563232421875,
0.0110321044921875,
-0.031341552734375,
-0.01157379150390625,
0.033233642578125,
-0.0016431808471679688,
0.06512451171875,
-0.011505126953125,
-0.04449462890625,
0.0086212158203125,
-0.03753662109375,
-0.0167388916015625,
-0.0088653564453125,
0.005096435546875,
0.00972747802734375,
-0.00017571449279785156,
-0.0216522216796875,
-0.0189666748046875,
-0.00424957275390625,
0.05706787109375,
0.0198822021484375,
-0.007659912109375,
0.0005292892456054688,
0.059783935546875,
0.01556396484375,
-0.0225982666015625,
-0.017486572265625,
-0.00318145751953125,
0.0426025390625,
0.048919677734375,
0.014617919921875,
0.01064300537109375,
-0.051422119140625,
0.060791015625,
0.044708251953125,
-0.006092071533203125,
-0.058074951171875,
0.0404052734375,
-0.005504608154296875,
0.0031833648681640625,
0.00275421142578125,
-0.0101165771484375,
0.069091796875,
0.0216217041015625,
-0.01044464111328125,
-0.00481414794921875,
-0.00496673583984375,
0.02117919921875,
-0.01165008544921875,
0.0093536376953125,
-0.033172607421875,
-0.037567138671875,
-0.00420379638671875,
0.0250396728515625,
0.05322265625,
0.03302001953125,
0.0016374588012695312,
0.037506103515625,
0.0260009765625,
-0.0222625732421875,
0.0190887451171875,
0.0214996337890625,
0.031005859375,
0.0081787109375,
0.022979736328125,
-0.0080413818359375,
-0.0257568359375,
-0.008026123046875,
0.047332763671875,
-0.0022602081298828125,
-0.04229736328125,
-0.039825439453125,
-0.01531982421875,
0.0195159912109375,
-0.00019931793212890625,
0.01157379150390625,
0.0126953125,
-0.01346588134765625,
-0.0189971923828125,
-0.006450653076171875,
0.012451171875,
-0.0161590576171875,
-0.0233154296875,
-0.02117919921875,
0.00757598876953125,
-0.031402587890625,
0.006580352783203125,
0.023712158203125,
-0.029296875,
0.008544921875,
0.010467529296875,
-0.0207061767578125,
-0.016204833984375,
0.00612640380859375,
0.00902557373046875,
0.013519287109375,
0.0275421142578125,
-0.0241851806640625,
0.050201416015625,
-0.044586181640625,
-0.0176849365234375,
0.004901885986328125,
0.04302978515625,
-0.043060302734375,
-0.02899169921875,
0.037017822265625,
-0.031982421875,
-0.04229736328125,
-0.0206298828125,
0.0166015625,
0.0082550048828125,
-0.00738525390625,
0.0156707763671875,
0.002471923828125,
0.06646728515625,
-0.02166748046875,
0.05072021484375,
0.005115509033203125,
0.044952392578125,
-0.01537322998046875,
-0.037841796875,
0.0132598876953125,
0.0192413330078125,
-0.0360107421875,
0.0003478527069091797,
-0.009674072265625,
0.0028533935546875,
-0.03594970703125,
-0.007602691650390625,
-0.0041351318359375,
0.048095703125,
-0.0009765625,
0.0218658447265625,
0.00653076171875,
-0.055816650390625,
0.0015811920166015625,
0.010406494140625,
0.020538330078125,
-0.01277923583984375,
-0.0227813720703125,
-0.022430419921875,
-0.0418701171875,
-0.028167724609375,
-0.042327880859375,
-0.0286407470703125,
-0.045501708984375,
-0.0012798309326171875,
0.022552490234375,
0.0255584716796875,
-0.01082611083984375,
-0.01085662841796875,
-0.037078857421875,
0.0318603515625,
0.035400390625,
0.087158203125,
-0.004482269287109375,
0.03436279296875,
-0.03057861328125,
0.0635986328125,
-0.00493621826171875,
0.0012941360473632812,
-0.011627197265625,
-0.0250701904296875,
0.0182647705078125,
-0.02911376953125,
-0.034820556640625,
-0.0199432373046875,
-0.0046234130859375,
0.01290130615234375,
0.005481719970703125,
-0.0004258155822753906,
0.0287933349609375,
0.0039215087890625,
0.012420654296875,
-0.007686614990234375,
-0.03155517578125,
-0.01385498046875,
-0.01364898681640625,
0.03387451171875,
-0.004695892333984375,
0.0379638671875,
0.01751708984375,
-0.007843017578125,
0.01534271240234375,
0.00997161865234375,
0.0120086669921875,
-0.01406097412109375,
0.027618408203125,
-0.023223876953125,
-0.0031909942626953125,
-0.007434844970703125,
0.0173187255859375,
0.00472259521484375,
0.0202789306640625,
-0.004913330078125,
-0.0198211669921875,
-0.01666259765625,
0.0101318359375,
0.0052337646484375,
-0.01314544677734375,
0.020965576171875,
0.0191802978515625,
0.00356292724609375,
0.024444580078125,
0.05194091796875,
0.06494140625,
-0.09954833984375,
0.01273345947265625,
0.006805419921875,
-0.017913818359375,
0.02587890625,
-0.0242156982421875,
0.027191162109375,
-0.0201263427734375,
0.03143310546875,
0.05645751953125,
-0.0021915435791015625,
0.01666259765625,
0.00908660888671875,
-0.019775390625,
-0.026641845703125,
0.05169677734375,
0.03131103515625,
-0.0467529296875,
0.0487060546875,
0.0168914794921875,
-0.00003844499588012695,
-0.032928466796875,
-0.0161590576171875,
-0.00650787353515625,
-0.00836181640625,
-0.050537109375,
0.028228759765625,
-0.0340576171875,
0.0292205810546875,
0.0199432373046875,
0.01396942138671875,
0.015960693359375,
0.06329345703125,
-0.006015777587890625,
0.00055694580078125,
0.035919189453125,
0.004589080810546875,
0.008941650390625,
-0.030517578125,
0.0200042724609375,
-0.004093170166015625,
-0.0264739990234375,
0.00983428955078125,
-0.0090484619140625,
-0.046875,
0.0087127685546875,
0.05438232421875,
0.06744384765625,
-0.0207366943359375,
-0.03955078125,
0.01128387451171875,
0.004001617431640625,
0.01184844970703125,
-0.0177001953125,
-0.037078857421875,
-0.0196685791015625,
0.03643798828125,
-0.0288238525390625,
0.0242462158203125,
0.02276611328125,
-0.01230621337890625,
-0.066650390625,
0.0755615234375,
0.056488037109375,
0.00672149658203125,
0.0178680419921875,
0.034393310546875,
-0.08233642578125,
-0.018157958984375,
-0.0212249755859375,
0.0499267578125,
-0.0074310302734375,
0.0210418701171875,
-0.03607177734375,
0.013397216796875,
-0.00243377685546875,
0.03265380859375,
0.0231781005859375,
-0.0004127025604248047,
-0.0010309219360351562,
-0.021942138671875,
0.0249481201171875,
0.04266357421875,
0.01163482666015625,
0.0007619857788085938,
0.018951416015625,
-0.0085906982421875,
0.01024627685546875,
0.00020599365234375,
0.042572021484375,
-0.045867919921875,
-0.004901885986328125,
0.0322265625,
0.012481689453125,
0.01146697998046875,
-0.013031005859375,
-0.018310546875,
0.013519287109375,
-0.01287841796875,
-0.01108551025390625,
-0.0014486312866210938,
-0.0135650634765625,
0.040802001953125,
0.01142120361328125,
-0.049041748046875,
-0.034698486328125,
-0.0297698974609375,
0.02105712890625,
0.00785064697265625,
0.027984619140625,
-0.0282135009765625,
0.01389312744140625,
0.01129150390625,
-0.021392822265625,
0.00736236572265625,
0.057403564453125,
-0.046478271484375,
0.0205841064453125,
-0.0121917724609375,
0.0092620849609375,
-0.046234130859375,
-0.0302581787109375,
0.0018949508666992188,
0.0259246826171875,
-0.00981903076171875,
-0.006580352783203125,
0.00531005859375,
0.002086639404296875,
-0.0252685546875,
-0.04034423828125,
-0.03167724609375,
0.0021343231201171875,
0.0233917236328125,
-0.0002925395965576172,
-0.03656005859375,
-0.0281982421875,
0.04071044921875,
-0.00798797607421875,
-0.043670654296875,
0.01751708984375,
-0.04815673828125,
-0.01424407958984375,
-0.0122528076171875,
0.0042724609375,
0.00363922119140625,
0.005939483642578125,
0.03839111328125,
0.00222015380859375,
0.007358551025390625,
-0.0182952880859375,
0.008575439453125,
0.01491546630859375,
0.0285797119140625,
-0.0198516845703125,
0.0171661376953125,
0.01418304443359375,
0.02703857421875,
0.007717132568359375,
0.045928955078125,
0.033294677734375,
0.0265350341796875,
-0.020538330078125,
0.0013332366943359375,
0.0019550323486328125,
-0.0313720703125,
0.004642486572265625,
-0.0421142578125,
0.0394287109375,
0.04754638671875,
0.01422882080078125,
0.01258087158203125,
0.0076751708984375,
0.0694580078125,
-0.0169219970703125,
-0.0165863037109375,
0.01276397705078125,
-0.02178955078125,
0.0163726806640625,
0.01409912109375,
-0.000904083251953125,
0.0234527587890625,
-0.04339599609375,
-0.016143798828125,
0.01027679443359375,
-0.0474853515625,
-0.003398895263671875,
0.037322998046875,
-0.024688720703125,
0.0211944580078125,
0.009918212890625,
-0.0164642333984375,
0.03533935546875,
-0.0211639404296875,
0.005382537841796875,
0.0165252685546875,
0.0089874267578125,
0.0008974075317382812,
-0.070556640625,
-0.05291748046875,
-0.056793212890625,
0.0726318359375,
0.04315185546875,
0.003875732421875,
0.01039886474609375,
0.064453125,
-0.00400543212890625,
0.038818359375,
-0.037353515625,
-0.0285491943359375,
0.0256195068359375,
-0.005382537841796875,
0.0222625732421875,
-0.0016298294067382812,
-0.082275390625,
0.0491943359375,
0.01434326171875,
0.0237884521484375,
0.04071044921875,
-0.0201416015625,
-0.005954742431640625,
-0.01727294921875,
0.01580810546875,
-0.00923919677734375,
-0.021881103515625,
-0.034576416015625,
-0.01401519775390625,
0.031463623046875,
0.036651611328125,
0.00852203369140625,
0.0257415771484375,
0.0189971923828125,
-0.03466796875,
0.013824462890625,
-0.0296630859375,
0.01776123046875,
0.042510986328125,
0.0137786865234375,
-0.023956298828125,
0.051605224609375,
0.004718780517578125,
-0.0167694091796875,
0.046966552734375,
0.003688812255859375,
0.045562744140625,
-0.08038330078125,
0.036651611328125,
0.06768798828125,
0.07574462890625,
0.00440216064453125,
0.0217132568359375,
0.043975830078125,
-0.028961181640625,
-0.020233154296875,
-0.005634307861328125,
-0.02239990234375,
-0.01556396484375,
0.00205230712890625,
0.0095367431640625,
-0.00839996337890625,
-0.037384033203125,
-0.031494140625,
-0.01081085205078125,
0.01425933837890625,
-0.04632568359375,
0.02081298828125,
-0.053009033203125,
-0.01763916015625,
0.0650634765625,
-0.04681396484375,
-0.01549530029296875,
-0.00022876262664794922,
0.033050537109375,
-0.01116180419921875,
-0.0168609619140625,
-0.03997802734375,
0.0056915283203125,
-0.03338623046875,
0.036651611328125,
0.0682373046875,
-0.04168701171875,
-0.01396942138671875,
0.044464111328125,
0.0316162109375,
0.09307861328125,
-0.0267181396484375,
-0.0011663436889648438,
0.0293121337890625,
-0.0048980712890625,
-0.01447296142578125,
-0.0845947265625,
-0.003520965576171875,
-0.07861328125,
-0.008148193359375,
0.031982421875,
-0.02142333984375,
-0.0017023086547851562,
-0.0594482421875,
-0.133056640625,
0.042388916015625,
-0.016815185546875,
-0.053955078125,
-0.01226806640625,
-0.031005859375,
-0.0085296630859375,
0.0099639892578125,
-0.0013370513916015625,
-0.045135498046875,
-0.04718017578125,
0.03009033203125,
-0.00299072265625,
0.0296783447265625,
0.0295257568359375,
-0.04058837890625,
-0.0198211669921875,
-0.0175628662109375,
-0.00848388671875,
0.0018939971923828125,
0.00038242340087890625,
-0.00832366943359375,
-0.002685546875,
0.020721435546875,
-0.035400390625,
-0.0645751953125,
-0.0182037353515625,
0.00075531005859375,
0.01325225830078125,
-0.023529052734375,
-0.042144775390625,
-0.0269775390625,
0.0390625,
0.029022216796875,
0.007549285888671875,
-0.007724761962890625,
0.01030731201171875,
-0.037994384765625,
-0.0115966796875,
-0.00830841064453125,
-0.0128936767578125,
-0.01806640625,
0.00997161865234375,
-0.0099029541015625,
0.003963470458984375,
0.007511138916015625,
0.0073699951171875,
-0.017303466796875,
-0.0211181640625,
0.01364898681640625,
0.0111846923828125,
-0.05303955078125,
-0.0232086181640625,
0.08892822265625,
-0.03155517578125,
0.037322998046875,
0.0230865478515625,
0.01006317138671875,
0.08624267578125,
0.07550048828125,
0.0216827392578125,
0.01250457763671875,
-0.0101776123046875,
0.03173828125,
0.01108551025390625,
0.019683837890625,
-0.025177001953125,
-0.0012903213500976562,
-0.0180511474609375,
0.0287017822265625,
-0.01123046875,
0.0220947265625,
-0.010406494140625,
0.0284271240234375,
0.0022258758544921875,
0.09808349609375,
-0.024566650390625,
-0.038604736328125,
-0.02142333984375,
0.005706787109375,
-0.021240234375,
0.010040283203125,
0.0237884521484375,
-0.037353515625,
0.01474761962890625,
0.0131378173828125,
0.0177459716796875,
-0.03564453125,
0.02362060546875,
0.0038013458251953125,
0.01116943359375,
0.01410675048828125
] |
f5f10ebb520df4ed60f4d33284bd9492c716478c
|
Wordpress Stackexchange
Q: Custom post type admin search Is it possible to search in custom post type meta fields? I have posts, with many custom meta fields. Wordpress by default search only in title and in content. How can I change it?
If you didn't understand what I am saying, please take a look at my screenshot.
A: Take a look at my answer to how to filter post listing (in WP dashboard posts listing) using a custom field (search
functionality) ?
Its just what you are looking for.
|
Q: Custom post type admin search Is it possible to search in custom post type meta fields? I have posts, with many custom meta fields. Wordpress by default search only in title and in content. How can I change it?
If you didn't understand what I am saying, please take a look at my screenshot.
A: Take a look at my answer to how to filter post listing (in WP dashboard posts listing) using a custom field (search
functionality) ?
Its just what you are looking for.
|
wordpress
|
{
"language": "en",
"length": 87,
"provenance": "stackexchange_00019.jsonl.gz:411421",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23312"
}
|
[
0.038330078125,
-0.0027523040771484375,
0.04302978515625,
0.0345458984375,
-0.0061798095703125,
-0.00807952880859375,
0.0572509765625,
-0.06884765625,
0.009552001953125,
0.0046234130859375,
0.0010137557983398438,
-0.026885986328125,
-0.03924560546875,
-0.029693603515625,
-0.031768798828125,
-0.05145263671875,
0.003940582275390625,
0.0200042724609375,
0.0272674560546875,
-0.04144287109375,
0.034698486328125,
-0.041717529296875,
0.024810791015625,
0.01416015625,
0.0211944580078125,
-0.0171356201171875,
-0.0022983551025390625,
-0.0030345916748046875,
0.02020263671875,
0.0098114013671875,
0.025054931640625,
-0.02447509765625,
0.0017461776733398438,
-0.01195526123046875,
0.05401611328125,
0.019866943359375,
0.007335662841796875,
0.0266265869140625,
0.04376220703125,
-0.0119781494140625,
0.025848388671875,
-0.018096923828125,
-0.0196533203125,
0.03228759765625,
-0.01287841796875,
-0.03656005859375,
0.032135009765625,
-0.04754638671875,
0.04608154296875,
-0.03265380859375,
-0.023468017578125,
0.011474609375,
-0.00717926025390625,
-0.11578369140625,
-0.025482177734375,
-0.0452880859375,
0.0237579345703125,
-0.021331787109375,
0.056304931640625,
-0.06280517578125,
-0.039581298828125,
-0.051788330078125,
0.038970947265625,
0.011199951171875,
-0.00614166259765625,
-0.007274627685546875,
-0.0041961669921875,
0.01239776611328125,
-0.034027099609375,
0.0011816024780273438,
0.048187255859375,
-0.0260009765625,
0.026580810546875,
-0.005191802978515625,
0.0295562744140625,
-0.0660400390625,
0.006671905517578125,
-0.034698486328125,
0.0120391845703125,
0.0295562744140625,
-0.0019197463989257812,
-0.020416259765625,
0.0178985595703125,
-0.038482666015625,
-0.0075225830078125,
-0.031707763671875,
-0.01885986328125,
0.0095672607421875,
0.0087432861328125,
-0.03399658203125,
-0.00016057491302490234,
-0.0222625732421875,
-0.053863525390625,
0.0230255126953125,
0.00868988037109375,
-0.0212860107421875,
0.00916290283203125,
0.01479339599609375,
-0.0016279220581054688,
0.01041412353515625,
-0.0209808349609375,
-0.0260772705078125,
-0.00806427001953125,
-0.024932861328125,
0.01983642578125,
0.001796722412109375,
-0.04461669921875,
0.00971221923828125,
0.05120849609375,
0.05712890625,
0.0010824203491210938,
-0.00670623779296875,
0.006549835205078125,
0.023162841796875,
-0.05889892578125,
-0.0050048828125,
-0.017669677734375,
-0.0139312744140625,
-0.024688720703125,
0.0055694580078125,
0.0257568359375,
0.019073486328125,
0.06512451171875,
-0.053680419921875,
-0.0010519027709960938,
-0.01486968994140625,
-0.06781005859375,
-0.03515625,
-0.01457977294921875,
0.03228759765625,
-0.0174102783203125,
-0.0020198822021484375,
0.04449462890625,
0.039581298828125,
-0.00286102294921875,
-0.01515960693359375,
0.034271240234375,
-0.0361328125,
-0.01506805419921875,
0.00496673583984375,
0.01947021484375,
-0.033477783203125,
-0.0200347900390625,
0.002849578857421875,
0.0224151611328125,
0.005451202392578125,
0.0218353271484375,
0.0230255126953125,
-0.01360321044921875,
-0.02386474609375,
-0.002471923828125,
0.02777099609375,
0.025115966796875,
0.0167083740234375,
-0.0007576942443847656,
-0.00046443939208984375,
0.06475830078125,
-0.0256500244140625,
-0.025604248046875,
-0.037200927734375,
0.01172637939453125,
-0.01427459716796875,
0.0160064697265625,
0.0149993896484375,
-0.0113525390625,
0.0521240234375,
-0.0321044921875,
-0.005474090576171875,
0.01140594482421875,
-0.021209716796875,
0.023956298828125,
0.0052490234375,
0.002227783203125,
-0.012664794921875,
0.006328582763671875,
-0.01513671875,
0.026611328125,
0.0042724609375,
0.003582000732421875,
0.03424072265625,
0.01175689697265625,
-0.0234375,
0.03619384765625,
-0.0120849609375,
-0.06524658203125,
0.04229736328125,
0.0167388916015625,
0.06298828125,
0.01511383056640625,
0.01459503173828125,
0.047576904296875,
0.005359649658203125,
-0.021392822265625,
-0.0000871419906616211,
-0.01068878173828125,
-0.007717132568359375,
-0.018798828125,
0.0022640228271484375,
-0.0209808349609375,
0.0162200927734375,
-0.004352569580078125,
-0.0001004338264465332,
-0.005157470703125,
0.02008056640625,
-0.01328277587890625,
-0.0092315673828125,
-0.007541656494140625,
0.017059326171875,
0.0153350830078125,
0.0028171539306640625,
0.001888275146484375,
-0.0173187255859375,
0.0032672882080078125,
-0.0238189697265625,
-0.04498291015625,
-0.03790283203125,
-0.006500244140625,
-0.0243988037109375,
-0.005580902099609375,
-0.032623291015625,
0.0096435546875,
-0.0307769775390625,
-0.018585205078125,
0.0308685302734375,
0.06622314453125,
0.027618408203125,
-0.012115478515625,
0.0010461807250976562,
0.09027099609375,
0.03155517578125,
-0.020538330078125,
-0.003803253173828125,
0.03143310546875,
-0.007450103759765625,
-0.02325439453125,
0.007434844970703125,
0.0269317626953125,
-0.043243408203125,
0.002773284912109375,
0.05609130859375,
0.01751708984375,
0.0303497314453125,
0.00916290283203125,
0.049591064453125,
0.0462646484375,
-0.014129638671875,
0.0035381317138671875,
0.0195770263671875,
0.0246124267578125,
0.048583984375,
-0.04193115234375,
-0.0132293701171875,
0.0321044921875,
-0.03863525390625,
0.0296173095703125,
0.042999267578125,
0.0005846023559570312,
-0.0035457611083984375,
-0.0157623291015625,
-0.00595855712890625,
0.0017309188842773438,
-0.0078125,
-0.04022216796875,
0.0159454345703125,
0.04473876953125,
0.02020263671875,
0.043182373046875,
0.04315185546875,
-0.060150146484375,
0.01114654541015625,
0.032440185546875,
0.05670166015625,
-0.0013017654418945312,
0.0287933349609375,
0.0205078125,
0.00386810302734375,
-0.037445068359375,
-0.00675201416015625,
0.02130126953125,
0.001010894775390625,
0.0095062255859375,
0.005863189697265625,
-0.044525146484375,
-0.001667022705078125,
0.019683837890625,
-0.058563232421875,
-0.00875091552734375,
0.04119873046875,
0.023101806640625,
0.00379180908203125,
0.0198516845703125,
0.0108184814453125,
-0.0225067138671875,
0.045623779296875,
0.0108795166015625,
-0.034820556640625,
-0.04010009765625,
-0.06317138671875,
0.046356201171875,
-0.048980712890625,
0.04522705078125,
0.0732421875,
-0.01482391357421875,
0.037200927734375,
-0.01123809814453125,
0.035125732421875,
-0.01849365234375,
0.03826904296875,
-0.00940704345703125,
-0.03265380859375,
-0.044677734375,
-0.0193634033203125,
0.0269012451171875,
0.0297088623046875,
0.0220947265625,
-0.0215606689453125,
0.000644683837890625,
0.032989501953125,
-0.052886962890625,
-0.053619384765625,
-0.0175018310546875,
-0.039398193359375,
-0.041229248046875,
-0.0266876220703125,
-0.020538330078125,
0.0270538330078125,
-0.03582763671875,
-0.00215911865234375,
0.049468994140625,
-0.010986328125,
-0.045196533203125,
0.0008192062377929688,
-0.06500244140625,
-0.014984130859375,
-0.00994110107421875,
-0.005344390869140625,
0.01383209228515625,
0.07403564453125,
0.0218658447265625,
-0.07080078125,
0.017974853515625,
0.0662841796875,
-0.032684326171875,
0.02288818359375,
0.026123046875,
-0.06610107421875,
0.044097900390625,
-0.01190948486328125,
0.03607177734375,
0.0299224853515625,
-0.0176849365234375,
-0.0090789794921875,
-0.0253448486328125,
0.00476837158203125,
0.013336181640625,
-0.0161590576171875,
0.00286865234375,
0.00041174888610839844,
0.00946807861328125,
-0.0347900390625,
0.002490997314453125,
-0.01448822021484375,
-0.007293701171875,
0.0193328857421875,
-0.01428985595703125,
-0.01183319091796875,
-0.02783203125,
0.058990478515625,
0.0423583984375,
0.02301025390625,
-0.01556396484375,
-0.02728271484375,
0.0123748779296875,
0.0255126953125,
0.07818603515625,
-0.0006680488586425781,
-0.01102447509765625,
-0.048187255859375,
0.05877685546875,
0.006839752197265625,
0.0244293212890625,
0.00928497314453125,
0.015045166015625,
-0.0140228271484375,
-0.0535888671875,
0.048431396484375,
-0.03460693359375,
0.0164031982421875,
-0.04095458984375,
-0.02825927734375,
-0.0236663818359375,
0.1043701171875,
-0.057098388671875,
-0.0031108856201171875,
0.0116119384765625,
0.00167083740234375,
-0.01451873779296875,
-0.0287322998046875,
-0.0693359375,
-0.0165557861328125,
-0.1041259765625,
0.0003943443298339844,
-0.0188446044921875,
-0.03289794921875,
-0.00801849365234375,
0.034393310546875,
-0.044219970703125,
-0.05010986328125,
0.030609130859375,
-0.01110076904296875,
0.01242828369140625,
-0.003810882568359375,
0.01617431640625,
-0.024871826171875,
-0.004810333251953125,
-0.01485443115234375,
-0.064208984375,
-0.024505615234375,
-0.01467132568359375,
0.0654296875,
0.0104827880859375,
-0.002048492431640625,
-0.00598907470703125,
0.044525146484375,
0.0257110595703125,
0.027557373046875,
-0.00888824462890625,
-0.03643798828125,
0.034423828125,
0.0038299560546875,
-0.01062774658203125,
-0.0032501220703125,
-0.0245819091796875,
-0.0088348388671875,
-0.01306915283203125,
0.0413818359375,
-0.0106964111328125,
0.000667572021484375,
0.0001761913299560547,
-0.0079498291015625,
-0.0211334228515625,
-0.024688720703125,
-0.034881591796875,
0.0222015380859375,
-0.034698486328125,
0.007419586181640625,
-0.0182952880859375,
-0.0430908203125,
0.07232666015625,
0.026153564453125,
-0.0186309814453125,
-0.01355743408203125,
0.08087158203125,
0.0086212158203125,
-0.03375244140625,
-0.06756591796875,
-0.036865234375,
0.0012674331665039062,
0.004756927490234375,
0.0300750732421875,
-0.02069091796875,
0.00836181640625,
0.038116455078125,
-0.03961181640625,
-0.0146636962890625,
-0.034393310546875,
0.06695556640625,
-0.0183868408203125,
-0.02191162109375,
0.0279083251953125,
-0.047576904296875,
0.0267791748046875,
0.037872314453125,
0.004795074462890625,
-0.03167724609375,
0.0033206939697265625,
0.06488037109375,
-0.0248565673828125,
0.00811767578125,
-0.049346923828125,
-0.00691986083984375,
-0.006687164306640625,
-0.007213592529296875,
0.0143585205078125,
0.0220489501953125,
-0.00817108154296875,
0.0008530616760253906,
0.0005092620849609375,
0.0300140380859375,
-0.0240325927734375,
0.03057861328125,
-0.039794921875,
0.034576416015625,
0.0104217529296875,
0.005489349365234375,
-0.0287628173828125,
-0.009613037109375,
0.038421630859375,
-0.0281219482421875,
-0.0721435546875,
0.0067596435546875,
-0.00307464599609375,
0.0184783935546875,
0.042694091796875,
0.000400543212890625,
0.00876617431640625,
0.066162109375,
-0.0110321044921875,
0.0085601806640625,
0.0267333984375,
0.041839599609375,
-0.0265655517578125,
0.0230255126953125,
0.002468109130859375,
0.005828857421875,
-0.0003409385681152344,
0.09991455078125,
-0.017791748046875,
0.06060791015625,
-0.020416259765625,
0.019622802734375,
0.006755828857421875,
0.0197906494140625,
0.005771636962890625,
-0.003047943115234375,
0.0167388916015625,
-0.010284423828125,
0.024993896484375,
-0.006015777587890625,
-0.01438140869140625,
-0.01213836669921875,
-0.0021514892578125,
-0.0092010498046875,
0.014434814453125,
0.035736083984375,
-0.0004210472106933594,
-0.018402099609375,
0.00048065185546875,
-0.0258941650390625,
-0.0496826171875,
-0.0106964111328125,
-0.0098724365234375,
0.01358795166015625,
-0.01384735107421875,
-0.0161895751953125,
0.0198822021484375,
-0.042205810546875,
0.029937744140625,
-0.05792236328125,
0.02105712890625,
-0.010528564453125,
-0.027435302734375,
-0.03546142578125,
-0.0053558349609375,
0.006191253662109375,
-0.06787109375,
-0.04498291015625,
0.0069732666015625,
-0.003387451171875,
0.036285400390625,
-0.0038394927978515625,
0.0252838134765625,
-0.00760650634765625,
-0.0083465576171875,
0.0292205810546875,
0.0236663818359375,
0.0008521080017089844,
-0.02520751953125,
-0.03729248046875,
-0.006977081298828125,
-0.03802490234375,
-0.0201873779296875,
-0.0298919677734375,
-0.03662109375,
-0.038909912109375,
-0.0049285888671875,
0.02679443359375,
0.019317626953125,
0.005428314208984375,
-0.032684326171875,
-0.017364501953125,
-0.00362396240234375,
0.03070068359375,
0.0115509033203125,
-0.0273284912109375,
0.0579833984375,
0.00679779052734375,
0.03594970703125,
-0.006931304931640625,
0.0281219482421875,
0.00525665283203125,
-0.0098724365234375,
0.0012006759643554688,
-0.05206298828125,
-0.040740966796875,
0.0093841552734375,
-0.05865478515625,
0.0389404296875,
0.0439453125,
-0.01361083984375,
-0.0198822021484375,
-0.01042938232421875,
-0.00408935546875,
-0.01910400390625,
0.0277557373046875,
-0.0019292831420898438,
0.0160675048828125,
-0.0236663818359375,
0.024993896484375,
0.036834716796875,
-0.006969451904296875,
-0.03839111328125,
0.01543426513671875,
0.02197265625,
0.0176849365234375,
-0.0195465087890625,
-0.050811767578125,
0.0301361083984375,
0.0290069580078125,
0.01151275634765625,
0.01107025146484375,
0.004322052001953125,
0.004932403564453125,
-0.0261383056640625,
0.00473785400390625,
-0.0158233642578125,
0.00632476806640625,
0.0379638671875,
-0.0010852813720703125,
-0.0264739990234375,
0.0204315185546875,
-0.0238800048828125,
0.001117706298828125,
0.05938720703125,
0.06243896484375,
-0.09820556640625,
0.0187530517578125,
0.02545166015625,
0.01277923583984375,
0.0258636474609375,
0.033538818359375,
-0.026824951171875,
0.0025806427001953125,
-0.04290771484375,
-0.0260162353515625,
-0.041015625,
-0.0172882080078125,
0.033935546875,
-0.0122528076171875,
-0.0066680908203125,
0.03436279296875,
0.01163482666015625,
0.01386260986328125,
-0.02545166015625,
-0.01329803466796875,
-0.00922393798828125,
-0.0239410400390625,
0.033843994140625,
-0.00946807861328125,
-0.005077362060546875,
-0.0809326171875,
-0.0016527175903320312,
-0.00977325439453125,
-0.023773193359375,
0.033721923828125,
0.050079345703125,
0.056854248046875,
0.062103271484375,
0.022918701171875,
0.00893402099609375,
0.017791748046875,
0.01137542724609375,
-0.041778564453125,
-0.048095703125,
-0.01316070556640625,
0.06207275390625,
-0.030670166015625,
0.036834716796875,
0.0036563873291015625,
-0.0254669189453125,
-0.0136566162109375,
-0.06982421875,
0.06256103515625,
-0.033172607421875,
-0.005466461181640625,
-0.01678466796875,
0.01085662841796875,
0.0284881591796875,
0.00948333740234375,
-0.042816162109375,
-0.00244140625,
0.0260162353515625,
-0.0335693359375,
-0.021240234375,
0.0237884521484375,
-0.00669097900390625,
-0.04205322265625,
0.051177978515625,
0.03302001953125,
-0.00946807861328125,
-0.015960693359375,
0.03289794921875,
-0.0047149658203125,
0.024566650390625,
-0.0172882080078125,
0.053009033203125,
-0.00560760498046875,
0.036590576171875,
-0.057037353515625,
-0.0190277099609375,
0.0039520263671875,
0.0491943359375,
0.0275726318359375,
0.006092071533203125,
-0.0200653076171875,
-0.0233001708984375,
0.03228759765625,
0.046417236328125,
0.01470947265625,
0.0220947265625,
-0.0006566047668457031,
0.07012939453125,
0.03509521484375,
-0.046966552734375,
0.0214691162109375,
-0.0079345703125,
-0.02056884765625,
0.0311737060546875,
0.0195465087890625,
0.04180908203125,
-0.0019702911376953125,
-0.0037250518798828125,
0.02142333984375,
-0.01386260986328125,
0.00800323486328125,
-0.024261474609375,
0.00033092498779296875,
0.038726806640625,
0.066162109375,
-0.07598876953125,
-0.031829833984375,
-0.0265350341796875,
0.0498046875,
0.0253448486328125,
0.04620361328125,
0.0167388916015625,
0.0214385986328125,
0.039459228515625,
-0.06439208984375,
0.0190887451171875,
0.003009796142578125,
-0.05023193359375,
0.02325439453125,
-0.022064208984375,
0.0003542900085449219,
-0.05059814453125,
0.0242767333984375,
0.01947021484375,
0.0289764404296875,
-0.044342041015625,
-0.061920166015625,
0.01824951171875,
0.0091094970703125,
0.00098419189453125,
0.00473785400390625,
-0.022125244140625,
0.0182342529296875,
0.06549072265625,
-0.04351806640625,
0.0257720947265625,
0.01806640625,
0.0165252685546875,
-0.01526641845703125,
-0.002105712890625,
-0.02398681640625,
0.0147247314453125,
-0.0252838134765625,
0.0013875961303710938,
0.01837158203125,
0.054595947265625,
0.015960693359375,
0.0252227783203125,
-0.03070068359375,
-0.0134124755859375,
-0.01544952392578125,
0.021759033203125,
-0.00717926025390625,
0.03033447265625,
-0.045867919921875,
-0.040496826171875,
0.00872802734375,
0.050445556640625,
0.03546142578125,
0.042327880859375,
0.0523681640625,
0.0121307373046875,
-0.0288543701171875,
0.0022830963134765625,
0.0163421630859375,
-0.0260009765625,
-0.01192474365234375,
-0.037384033203125,
0.03106689453125,
0.03680419921875,
0.00850677490234375,
0.0157318115234375,
-0.0026836395263671875,
0.0528564453125,
0.0382080078125,
0.007770538330078125,
0.0249786376953125,
-0.036834716796875,
0.038482666015625,
0.018829345703125,
0.06640625,
0.062347412109375,
-0.0748291015625,
-0.018646240234375,
-0.01739501953125,
-0.09625244140625,
0.051055908203125,
0.05712890625,
-0.01715087890625,
-0.0293121337890625,
-0.011199951171875,
-0.0195159912109375,
-0.008544921875,
-0.005268096923828125,
0.0178985595703125,
0.017303466796875,
-0.0115509033203125,
0.00989532470703125,
-0.0482177734375,
-0.0184478759765625,
0.01165008544921875,
0.00019240379333496094,
-0.01471710205078125,
0.04443359375,
0.005100250244140625,
-0.0011644363403320312,
-0.0181884765625,
0.019256591796875,
-0.01178741455078125,
-0.01861572265625,
0.034698486328125,
0.01003265380859375,
0.00061798095703125,
-0.022735595703125,
-0.0249481201171875,
-0.00858306884765625,
0.041595458984375,
-0.049652099609375,
0.007381439208984375,
-0.008544921875,
0.0215606689453125,
-0.050628662109375,
-0.031707763671875,
-0.04034423828125,
-0.01873779296875,
-0.0338134765625,
-0.01512908935546875,
0.0266265869140625,
-0.006450653076171875,
-0.00251007080078125,
-0.0093994140625,
-0.004734039306640625,
-0.044036865234375,
0.025604248046875,
-0.0264129638671875,
0.0654296875,
0.049835205078125,
-0.02752685546875,
0.00732421875,
-0.0015859603881835938,
-0.0223388671875,
0.031158447265625,
0.01546478271484375,
-0.0001989603042602539,
0.01406097412109375,
-0.014556884765625,
-0.0367431640625,
-0.022308349609375,
0.0133514404296875,
-0.01776123046875,
-0.0055999755859375,
-0.035491943359375,
-0.00646209716796875,
-0.0125732421875,
0.01922607421875,
-0.0084075927734375,
-0.0008111000061035156,
-0.01617431640625,
-0.00824737548828125,
0.01143646240234375,
-0.045562744140625,
-0.00931549072265625,
0.0028438568115234375,
0.0496826171875,
-0.00009375810623168945,
-0.036590576171875,
0.049072265625,
-0.05743408203125,
-0.0109405517578125,
0.0182647705078125,
-0.051025390625,
0.0278167724609375,
0.05755615234375,
-0.0010175704956054688,
0.01336669921875,
-0.016693115234375,
-0.038787841796875,
-0.006927490234375,
0.018798828125,
0.045623779296875,
-0.03570556640625,
0.0009613037109375,
0.00940704345703125,
0.0380859375,
0.055755615234375,
0.0290679931640625,
-0.00836181640625,
0.0212249755859375,
0.002002716064453125,
-0.033905029296875,
-0.051422119140625,
0.0196075439453125,
-0.03912353515625,
-0.0261383056640625,
0.00821685791015625,
0.007007598876953125,
0.0501708984375,
-0.01245880126953125,
-0.11083984375,
0.05853271484375,
-0.0281219482421875,
-0.04010009765625,
-0.055938720703125,
0.00394439697265625,
0.01500701904296875,
-0.00518035888671875,
-0.001224517822265625,
-0.042694091796875,
-0.063720703125,
-0.0023975372314453125,
0.0278472900390625,
-0.0298309326171875,
0.050872802734375,
0.04364013671875,
-0.037322998046875,
0.03314208984375,
0.010040283203125,
-0.012115478515625,
0.0278778076171875,
-0.019134521484375,
0.00945281982421875,
0.0253448486328125,
-0.0732421875,
-0.05535888671875,
-0.0404052734375,
0.01517486572265625,
0.0055694580078125,
-0.036834716796875,
-0.036376953125,
-0.02874755859375,
0.042633056640625,
0.03131103515625,
0.0037517547607421875,
-0.0124664306640625,
0.0307464599609375,
-0.0301055908203125,
-0.0008416175842285156,
-0.03302001953125,
-0.0141754150390625,
-0.03125,
-0.0386962890625,
0.0005812644958496094,
-0.01220703125,
-0.003871917724609375,
0.0026988983154296875,
-0.0270538330078125,
0.0002796649932861328,
0.0263214111328125,
-0.0018854141235351562,
-0.0589599609375,
0.0390625,
0.06866455078125,
-0.061920166015625,
-0.006256103515625,
0.024932861328125,
-0.0161895751953125,
0.028076171875,
-0.0257110595703125,
-0.01641845703125,
-0.02667236328125,
0.004344940185546875,
0.007480621337890625,
0.01291656494140625,
0.0043487548828125,
0.0157470703125,
-0.018585205078125,
-0.0285491943359375,
0.04046630859375,
0.0172882080078125,
0.044708251953125,
-0.065673828125,
0.0313720703125,
0.0173797607421875,
0.044921875,
0.01438140869140625,
0.02569580078125,
-0.00637054443359375,
0.054351806640625,
-0.006015777587890625,
-0.034576416015625,
0.011474609375,
-0.0182342529296875,
0.006031036376953125,
-0.01177215576171875,
-0.0209503173828125,
-0.01018524169921875,
-0.0005421638488769531,
-0.040191650390625,
-0.024017333984375,
0.00909423828125
] |
59fc2cd1e08390feed9815a15855109208fd9a55
|
Wordpress Stackexchange
Q: Integrating Google Maps with custom marker and hover? I want the exact output of this site. I want to edit the marker and hover options in the Google map, but I don't know how to do that. Please also list any ideas for Google Map plugins
A: Mappress allows for custom markers, but you need to pay for the pro version.
http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/
Google Map Shortcode also supports custom markers in a shortcode
http://wordpress.org/extend/plugins/google-map-shortcode/
Getting custom overlays on Google maps is actually pretty easy, you can read the docs here if you choose to work directly with the API, http://code.google.com/apis/maps/documentation/javascript/overlays.html
There are plenty of options here: http://wordpress.org/extend/plugins/tags/google-map
|
Q: Integrating Google Maps with custom marker and hover? I want the exact output of this site. I want to edit the marker and hover options in the Google map, but I don't know how to do that. Please also list any ideas for Google Map plugins
A: Mappress allows for custom markers, but you need to pay for the pro version.
http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/
Google Map Shortcode also supports custom markers in a shortcode
http://wordpress.org/extend/plugins/google-map-shortcode/
Getting custom overlays on Google maps is actually pretty easy, you can read the docs here if you choose to work directly with the API, http://code.google.com/apis/maps/documentation/javascript/overlays.html
There are plenty of options here: http://wordpress.org/extend/plugins/tags/google-map
|
wordpress
|
{
"language": "en",
"length": 107,
"provenance": "stackexchange_00019.jsonl.gz:411448",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23387"
}
|
[
0.0863037109375,
0.01471710205078125,
0.095703125,
0.0301971435546875,
0.01557159423828125,
-0.004848480224609375,
0.09515380859375,
-0.0948486328125,
-0.02435302734375,
-0.007122039794921875,
-0.037384033203125,
-0.0126190185546875,
-0.034271240234375,
-0.0299530029296875,
0.0250396728515625,
-0.055023193359375,
0.050994873046875,
-0.0188140869140625,
0.0188140869140625,
-0.0252532958984375,
0.0021839141845703125,
0.00789642333984375,
-0.0024871826171875,
0.0836181640625,
0.031097412109375,
0.00920867919921875,
-0.0192718505859375,
-0.0015850067138671875,
0.01129150390625,
0.005893707275390625,
0.0207366943359375,
-0.0011320114135742188,
0.005687713623046875,
0.036834716796875,
-0.0269622802734375,
-0.0159912109375,
0.0289306640625,
0.01328277587890625,
0.019073486328125,
0.01502227783203125,
0.027496337890625,
-0.02093505859375,
0.0135040283203125,
0.035186767578125,
-0.0040740966796875,
-0.045440673828125,
0.0290374755859375,
-0.0478515625,
-0.005657196044921875,
-0.0284576416015625,
0.033538818359375,
-0.0004935264587402344,
0.060577392578125,
-0.0357666015625,
-0.0108642578125,
0.01434326171875,
-0.00861358642578125,
0.0025959014892578125,
0.0297088623046875,
-0.02545166015625,
-0.018951416015625,
-0.005977630615234375,
0.0272369384765625,
0.0200653076171875,
0.013336181640625,
-0.0258636474609375,
0.0136566162109375,
0.0294189453125,
-0.032196044921875,
-0.001796722412109375,
0.033782958984375,
-0.00986480712890625,
-0.007617950439453125,
-0.0233001708984375,
-0.03118896484375,
0.026092529296875,
0.0021953582763671875,
-0.00183868408203125,
0.004611968994140625,
-0.01145172119140625,
0.078125,
0.01515960693359375,
0.0665283203125,
-0.0105743408203125,
-0.00469970703125,
-0.0175323486328125,
0.0028553009033203125,
-0.0181884765625,
-0.04034423828125,
-0.016265869140625,
-0.01434326171875,
-0.015838623046875,
-0.10296630859375,
0.051055908203125,
0.017608642578125,
-0.005950927734375,
0.019195556640625,
0.0291900634765625,
-0.0172119140625,
0.01184844970703125,
-0.0031032562255859375,
-0.04095458984375,
0.046142578125,
-0.040283203125,
0.0003955364227294922,
0.0188751220703125,
0.007781982421875,
0.0003542900085449219,
0.0193023681640625,
0.0206298828125,
-0.0199127197265625,
0.00441741943359375,
0.0295257568359375,
0.01325225830078125,
-0.036102294921875,
-0.0179443359375,
-0.00971221923828125,
0.021759033203125,
0.001033782958984375,
0.0108184814453125,
0.007106781005859375,
0.023284912109375,
-0.021881103515625,
0.00846099853515625,
-0.004535675048828125,
-0.00339508056640625,
-0.00855255126953125,
-0.0166473388671875,
0.02001953125,
0.02789306640625,
-0.039886474609375,
-0.01297760009765625,
0.06182861328125,
0.03973388671875,
0.024169921875,
-0.022735595703125,
0.034820556640625,
-0.014862060546875,
-0.01055908203125,
0.01253509521484375,
0.015228271484375,
0.01216888427734375,
0.0043182373046875,
-0.0227813720703125,
0.05206298828125,
0.00853729248046875,
-0.0012102127075195312,
0.03277587890625,
0.0180511474609375,
-0.047332763671875,
0.10028076171875,
-0.06097412109375,
-0.00006783008575439453,
0.00226593017578125,
0.047027587890625,
-0.03607177734375,
0.0176544189453125,
-0.032470703125,
0.03692626953125,
-0.00841522216796875,
0.01183319091796875,
-0.009552001953125,
-0.0119476318359375,
-0.019683837890625,
-0.002178192138671875,
0.0026397705078125,
-0.02911376953125,
0.007068634033203125,
0.0207672119140625,
0.0098419189453125,
0.020782470703125,
0.0017976760864257812,
-0.040191650390625,
0.00061798095703125,
0.0138702392578125,
0.006595611572265625,
0.021453857421875,
0.0249481201171875,
0.0094757080078125,
0.036865234375,
0.0180816650390625,
-0.025177001953125,
0.07965087890625,
-0.034820556640625,
-0.026580810546875,
0.04156494140625,
0.00629425048828125,
0.054351806640625,
0.006740570068359375,
0.029266357421875,
-0.023773193359375,
0.01384735107421875,
-0.0209503173828125,
0.03546142578125,
0.003307342529296875,
-0.052734375,
0.019561767578125,
-0.00942230224609375,
0.00017821788787841797,
-0.0239410400390625,
-0.0102691650390625,
0.00986480712890625,
0.0012226104736328125,
0.0233154296875,
-0.017120361328125,
0.02813720703125,
-0.023895263671875,
0.030609130859375,
-0.0083160400390625,
0.028778076171875,
0.00638580322265625,
-0.01441192626953125,
-0.016571044921875,
0.003337860107421875,
-0.0017681121826171875,
-0.0328369140625,
-0.001140594482421875,
0.020416259765625,
-0.01248931884765625,
0.0060272216796875,
-0.0021038055419921875,
-0.04071044921875,
-0.00015044212341308594,
0.032379150390625,
-0.0186614990234375,
-0.0252685546875,
-0.0160369873046875,
-0.0154571533203125,
-0.03875732421875,
0.02239990234375,
-0.02734375,
0.0189971923828125,
0.01189422607421875,
0.01318359375,
-0.00571441650390625,
-0.01971435546875,
0.0105743408203125,
-0.0682373046875,
0.016021728515625,
0.055023193359375,
0.025665283203125,
0.01366424560546875,
-0.00855255126953125,
0.0028018951416015625,
0.07763671875,
0.0239105224609375,
0.0164947509765625,
-0.00490570068359375,
0.022216796875,
0.02813720703125,
-0.04901123046875,
-0.0240936279296875,
0.0194854736328125,
-0.037567138671875,
0.034027099609375,
0.027191162109375,
-0.033905029296875,
-0.0231781005859375,
-0.01103973388671875,
0.00553131103515625,
0.00286865234375,
-0.0088348388671875,
-0.0025386810302734375,
-0.0166015625,
0.03167724609375,
0.03076171875,
0.043609619140625,
0.050323486328125,
-0.029449462890625,
0.01019287109375,
0.0025768280029296875,
0.017333984375,
-0.0011720657348632812,
-0.01418304443359375,
0.02496337890625,
-0.03033447265625,
-0.0180511474609375,
0.0156097412109375,
0.007808685302734375,
-0.02276611328125,
0.01027679443359375,
0.0084228515625,
-0.0135498046875,
0.0029621124267578125,
0.04217529296875,
-0.04248046875,
-0.01032257080078125,
0.01409912109375,
-0.01061248779296875,
-0.053863525390625,
-0.005687713623046875,
-0.0029544830322265625,
-0.038848876953125,
0.046905517578125,
-0.006214141845703125,
-0.04266357421875,
0.0161895751953125,
-0.0789794921875,
0.062042236328125,
-0.04534912109375,
0.055450439453125,
0.0869140625,
-0.02099609375,
0.05413818359375,
-0.001499176025390625,
0.0005474090576171875,
0.01094818115234375,
0.027801513671875,
0.0017805099487304688,
-0.058502197265625,
0.007289886474609375,
0.0051422119140625,
0.0011920928955078125,
-0.01074981689453125,
0.0012540817260742188,
-0.031005859375,
-0.022705078125,
-0.008697509765625,
-0.07598876953125,
-0.0240936279296875,
0.0306854248046875,
-0.0198974609375,
-0.0192718505859375,
0.0293731689453125,
-0.022125244140625,
-0.006435394287109375,
0.049774169921875,
-0.0008797645568847656,
-0.0396728515625,
-0.03240966796875,
-0.0286865234375,
-0.07806396484375,
-0.057281494140625,
0.01459503173828125,
0.007373809814453125,
0.022247314453125,
0.019866943359375,
-0.0263214111328125,
-0.003841400146484375,
0.01299285888671875,
0.050384521484375,
0.064697265625,
0.006076812744140625,
-0.016815185546875,
-0.0192108154296875,
0.0009150505065917969,
0.00878143310546875,
-0.005901336669921875,
0.02752685546875,
0.0179290771484375,
-0.0196533203125,
-0.0016145706176757812,
0.01049041748046875,
0.00724029541015625,
0.0121917724609375,
-0.0104522705078125,
-0.005786895751953125,
0.0304107666015625,
0.0197601318359375,
-0.037445068359375,
0.028533935546875,
-0.00025153160095214844,
-0.01354217529296875,
-0.02996826171875,
-0.01099395751953125,
-0.027557373046875,
-0.0254364013671875,
0.0033416748046875,
0.08135986328125,
0.030975341796875,
0.00913238525390625,
0.0304107666015625,
-0.03350830078125,
0.0239715576171875,
0.0716552734375,
-0.039886474609375,
-0.05706787109375,
-0.056549072265625,
0.0626220703125,
-0.02252197265625,
-0.0165863037109375,
-0.0178070068359375,
0.04669189453125,
-0.0020084381103515625,
-0.02008056640625,
0.043121337890625,
0.01229095458984375,
0.047637939453125,
-0.0111083984375,
-0.029205322265625,
0.007415771484375,
0.0762939453125,
0.013519287109375,
0.00615692138671875,
0.0223846435546875,
-0.016815185546875,
-0.002899169921875,
0.02105712890625,
-0.09893798828125,
0.00006431341171264648,
-0.1090087890625,
0.040374755859375,
0.0107421875,
-0.01241302490234375,
-0.04296875,
0.035888671875,
-0.07781982421875,
-0.039459228515625,
0.034698486328125,
0.0087890625,
-0.0253753662109375,
0.0296783447265625,
-0.0147247314453125,
0.00182342529296875,
-0.0203094482421875,
0.007740020751953125,
-0.037445068359375,
-0.004665374755859375,
-0.0318603515625,
0.0197906494140625,
0.041748046875,
-0.02520751953125,
0.0234222412109375,
0.04071044921875,
0.01174163818359375,
-0.0087738037109375,
0.0210418701171875,
0.001445770263671875,
-0.0025615692138671875,
0.005252838134765625,
0.006824493408203125,
-0.0213165283203125,
0.0170135498046875,
0.0279693603515625,
-0.0209197998046875,
0.0186309814453125,
-0.00537109375,
-0.01114654541015625,
0.0404052734375,
-0.0638427734375,
-0.02728271484375,
-0.0078887939453125,
-0.009613037109375,
0.0156707763671875,
-0.01043701171875,
-0.0307464599609375,
0.005237579345703125,
-0.038787841796875,
-0.00693511962890625,
-0.03607177734375,
-0.0251312255859375,
0.028564453125,
0.00567626953125,
0.01313018798828125,
-0.008056640625,
-0.015411376953125,
0.020416259765625,
0.0263671875,
0.005283355712890625,
0.044891357421875,
0.01873779296875,
0.0038204193115234375,
-0.0139312744140625,
0.00798797607421875,
0.02557373046875,
0.0059356689453125,
0.01401519775390625,
0.0143280029296875,
0.0445556640625,
-0.007228851318359375,
0.029022216796875,
-0.028533935546875,
-0.02337646484375,
-0.017913818359375,
-0.004383087158203125,
-0.00522613525390625,
0.0287628173828125,
-0.004608154296875,
0.042938232421875,
-0.015899658203125,
-0.031524658203125,
0.01219940185546875,
-0.0406494140625,
0.060760498046875,
0.01629638671875,
-0.00832366943359375,
0.023284912109375,
0.0341796875,
-0.00640869140625,
0.050201416015625,
0.038299560546875,
0.00934600830078125,
0.016510009765625,
0.0386962890625,
-0.0219879150390625,
-0.0019779205322265625,
-0.01291656494140625,
0.11541748046875,
0.0199737548828125,
-0.046295166015625,
0.0006184577941894531,
-0.0082855224609375,
-0.05035400390625,
-0.0089874267578125,
0.0056610107421875,
0.01294708251953125,
0.0269622802734375,
0.01556396484375,
0.01535797119140625,
-0.0016355514526367188,
0.023406982421875,
-0.018463134765625,
0.00923919677734375,
0.0006222724914550781,
-0.0144500732421875,
-0.0430908203125,
0.03515625,
-0.01221466064453125,
-0.019195556640625,
0.01385498046875,
0.00823974609375,
-0.0268707275390625,
0.064208984375,
0.0204010009765625,
-0.025848388671875,
-0.01291656494140625,
0.036834716796875,
-0.01409149169921875,
-0.0155792236328125,
-0.0291290283203125,
-0.00763702392578125,
0.01361846923828125,
-0.00789642333984375,
0.00762939453125,
0.031707763671875,
0.0008511543273925781,
-0.0196990966796875,
0.0160675048828125,
0.004241943359375,
-0.036468505859375,
-0.004878997802734375,
-0.025054931640625,
-0.023834228515625,
-0.01654052734375,
-0.005847930908203125,
0.017791748046875,
-0.003887176513671875,
0.03485107421875,
-0.0218505859375,
0.0188446044921875,
-0.016754150390625,
-0.0169677734375,
-0.0036296844482421875,
-0.0111541748046875,
0.00791168212890625,
-0.0596923828125,
-0.03326416015625,
-0.01277923583984375,
-0.0018568038940429688,
0.02099609375,
-0.05535888671875,
-0.0191192626953125,
0.0037975311279296875,
0.0211334228515625,
-0.01500701904296875,
0.032958984375,
0.0526123046875,
0.03436279296875,
0.04620361328125,
-0.025909423828125,
-0.044097900390625,
-0.0408935546875,
-0.038116455078125,
-0.01788330078125,
-0.0124053955078125,
0.022705078125,
0.00797271728515625,
0.041259765625,
-0.0100250244140625,
0.00893402099609375,
-0.0210723876953125,
0.0168304443359375,
0.007373809814453125,
0.075927734375,
-0.016510009765625,
0.040802001953125,
-0.00009292364120483398,
0.0445556640625,
-0.01067352294921875,
0.01110076904296875,
-0.005859375,
-0.013885498046875,
0.0037384033203125,
-0.0726318359375,
-0.06939697265625,
0.00498199462890625,
-0.0406494140625,
0.0802001953125,
0.04461669921875,
-0.011322021484375,
0.0352783203125,
-0.0197296142578125,
0.01209259033203125,
-0.006439208984375,
-0.01300811767578125,
-0.048126220703125,
-0.0152740478515625,
0.046417236328125,
-0.01300811767578125,
0.06414794921875,
-0.0008225440979003906,
-0.0285491943359375,
0.03790283203125,
-0.03399658203125,
0.061004638671875,
0.01439666748046875,
0.01091766357421875,
-0.00182342529296875,
0.01263427734375,
-0.0134735107421875,
0.038177490234375,
0.0255126953125,
0.0325927734375,
0.0089111328125,
0.020904541015625,
-0.061553955078125,
-0.026397705078125,
-0.045440673828125,
-0.024322509765625,
-0.00672149658203125,
-0.048004150390625,
-0.0053558349609375,
0.026275634765625,
0.038543701171875,
0.04693603515625,
-0.06170654296875,
0.02838134765625,
0.00003045797348022461,
-0.005825042724609375,
0.09326171875,
0.01239013671875,
-0.0169830322265625,
0.0034885406494140625,
0.00797271728515625,
0.0033740997314453125,
-0.019195556640625,
0.01385498046875,
0.0169525146484375,
-0.01702880859375,
-0.044830322265625,
0.0221710205078125,
0.007843017578125,
-0.04205322265625,
0.05670166015625,
0.00836181640625,
0.00742340087890625,
-0.0032958984375,
0.0022487640380859375,
0.022247314453125,
-0.027374267578125,
-0.041717529296875,
0.015777587890625,
-0.04742431640625,
-0.01251220703125,
0.01540374755859375,
-0.00249481201171875,
0.0259857177734375,
0.034576416015625,
-0.01358795166015625,
0.00435638427734375,
0.006763458251953125,
-0.01232147216796875,
0.0885009765625,
-0.01690673828125,
-0.021026611328125,
0.04254150390625,
-0.0117034912109375,
-0.006877899169921875,
0.0233612060546875,
0.006511688232421875,
-0.00499725341796875,
0.047637939453125,
0.028594970703125,
-0.0196380615234375,
-0.00592803955078125,
0.06024169921875,
0.042572021484375,
-0.027008056640625,
-0.0214080810546875,
-0.01160430908203125,
-0.02801513671875,
0.0151824951171875,
-0.0227813720703125,
-0.0143280029296875,
0.000006258487701416016,
-0.041046142578125,
-0.028900146484375,
0.10931396484375,
-0.01267242431640625,
-0.009552001953125,
-0.0031261444091796875,
0.0653076171875,
-0.030426025390625,
0.031463623046875,
-0.00782012939453125,
-0.00557708740234375,
0.00896453857421875,
0.0166168212890625,
-0.028594970703125,
-0.01447296142578125,
-0.00983428955078125,
0.059417724609375,
0.033538818359375,
0.01134490966796875,
-0.016632080078125,
-0.0144195556640625,
-0.005863189697265625,
0.021270751953125,
-0.021087646484375,
0.0194854736328125,
0.03668212890625,
-0.0022907257080078125,
0.035614013671875,
0.004547119140625,
0.041961669921875,
-0.032073974609375,
0.01442718505859375,
0.051788330078125,
0.009063720703125,
0.03912353515625,
-0.00958251953125,
-0.0123138427734375,
0.063232421875,
-0.0321044921875,
-0.04449462890625,
-0.004642486572265625,
-0.00670623779296875,
-0.00036025047302246094,
-0.037841796875,
0.01514434814453125,
-0.036376953125,
0.0034656524658203125,
0.00637054443359375,
0.0011396408081054688,
-0.008880615234375,
0.0077972412109375,
0.005413055419921875,
-0.023284912109375,
0.032623291015625,
0.002628326416015625,
0.04681396484375,
0.0010557174682617188,
0.0216827392578125,
0.0257415771484375,
0.0007028579711914062,
-0.0219573974609375,
0.0288543701171875,
0.06024169921875,
0.036529541015625,
-0.04779052734375,
-0.00853729248046875,
0.0210418701171875,
0.0213470458984375,
0.0265350341796875,
-0.0261077880859375,
0.04925537109375,
-0.055328369140625,
-0.05633544921875,
-0.0509033203125,
0.0236053466796875,
0.03631591796875,
0.0186767578125,
-0.004108428955078125,
-0.002513885498046875,
-0.039093017578125,
0.0008854866027832031,
-0.03216552734375,
0.0107879638671875,
-0.0077667236328125,
0.02911376953125,
0.0194244384765625,
0.034881591796875,
0.00726318359375,
-0.01308441162109375,
-0.0006833076477050781,
0.0241546630859375,
0.038726806640625,
-0.00824737548828125,
0.01043701171875,
-0.0088348388671875,
0.01253509521484375,
0.008575439453125,
0.007297515869140625,
0.03619384765625,
0.050445556640625,
0.0310821533203125,
-0.009918212890625,
-0.01384735107421875,
0.05645751953125,
-0.0184783935546875,
-0.052337646484375,
-0.05010986328125,
-0.0005273818969726562,
0.042266845703125,
0.0198211669921875,
0.0316162109375,
-0.004459381103515625,
0.047088623046875,
-0.048614501953125,
0.05908203125,
-0.01953125,
-0.0179290771484375,
0.05963134765625,
-0.01053619384765625,
0.0750732421875,
-0.0234527587890625,
-0.05322265625,
-0.01715087890625,
-0.0228118896484375,
-0.002178192138671875,
0.025543212890625,
0.03289794921875,
0.01161956787109375,
0.0193023681640625,
-0.0120086669921875,
-0.00853729248046875,
0.00605010986328125,
-0.00551605224609375,
-0.004390716552734375,
0.004673004150390625,
0.005970001220703125,
-0.019134521484375,
-0.074462890625,
-0.0186920166015625,
-0.0207366943359375,
0.00315093994140625,
0.0231781005859375,
0.034515380859375,
0.033233642578125,
0.01335906982421875,
0.058319091796875,
-0.01169586181640625,
0.0261077880859375,
0.035247802734375,
-0.01751708984375,
-0.0244140625,
0.007350921630859375,
-0.004558563232421875,
0.0189361572265625,
-0.00023436546325683594,
0.033935546875,
-0.06829833984375,
-0.007312774658203125,
0.0015430450439453125,
0.017242431640625,
-0.04229736328125,
-0.0104827880859375,
-0.053741455078125,
-0.0170440673828125,
0.0072021484375,
-0.01397705078125,
-0.00244903564453125,
-0.0491943359375,
0.0122222900390625,
0.0482177734375,
0.022125244140625,
-0.0008096694946289062,
0.03515625,
-0.050933837890625,
0.0645751953125,
0.032196044921875,
-0.0183258056640625,
0.002361297607421875,
0.01390838623046875,
-0.01641845703125,
-0.00820159912109375,
0.01506805419921875,
-0.01436614990234375,
0.013763427734375,
-0.08514404296875,
-0.010223388671875,
0.0016918182373046875,
0.0280914306640625,
-0.03167724609375,
0.0036945343017578125,
-0.0115509033203125,
0.01139068603515625,
0.04644775390625,
0.021026611328125,
-0.021636962890625,
-0.04241943359375,
-0.01474761962890625,
0.0189666748046875,
-0.040252685546875,
-0.0147552490234375,
-0.09197998046875,
-0.0165557861328125,
0.038818359375,
0.0208740234375,
-0.052734375,
0.01313018798828125,
-0.0011606216430664062,
0.01520538330078125,
0.00772857666015625,
-0.0084991455078125,
-0.0013456344604492188,
0.0084075927734375,
-0.0094451904296875,
-0.0401611328125,
-0.000006020069122314453,
0.0626220703125,
-0.0005650520324707031,
0.029449462890625,
0.052459716796875,
-0.034271240234375,
-0.0244293212890625,
0.039093017578125,
0.04290771484375,
0.08392333984375,
-0.01213836669921875,
-0.0233917236328125,
-0.0230255126953125,
0.00055694580078125,
-0.0117645263671875,
-0.0287628173828125,
0.040863037109375,
-0.08258056640625,
-0.05364990234375,
-0.01416778564453125,
-0.0152740478515625,
-0.0006842613220214844,
-0.046844482421875,
-0.07318115234375,
0.01399993896484375,
0.0015211105346679688,
-0.045379638671875,
-0.007793426513671875,
-0.03582763671875,
0.0071258544921875,
-0.031707763671875,
-0.0167999267578125,
-0.0176849365234375,
-0.058807373046875,
0.0002562999725341797,
0.0007224082946777344,
0.023773193359375,
-0.01500701904296875,
0.0125274658203125,
-0.00733184814453125,
0.04833984375,
0.04266357421875,
-0.03216552734375,
0.06011962890625,
-0.03753662109375,
0.04986572265625,
0.04644775390625,
-0.034576416015625,
-0.029571533203125,
-0.0265655517578125,
-0.06427001953125,
-0.0273590087890625,
-0.02008056640625,
-0.04180908203125,
-0.00131988525390625,
0.0858154296875,
0.0726318359375,
0.031494140625,
-0.051513671875,
-0.0091705322265625,
-0.0058746337890625,
0.01132965087890625,
-0.0110015869140625,
-0.006420135498046875,
-0.03125,
0.0011577606201171875,
-0.0106353759765625,
-0.0128173828125,
-0.0018358230590820312,
0.02899169921875,
-0.01131439208984375,
0.0014181137084960938,
0.048187255859375,
-0.0220794677734375,
-0.04052734375,
0.028900146484375,
0.09027099609375,
-0.0474853515625,
0.01031494140625,
-0.000545501708984375,
0.002002716064453125,
0.05340576171875,
-0.031463623046875,
0.0220947265625,
0.0272369384765625,
-0.03314208984375,
-0.00232696533203125,
0.0136566162109375,
0.006938934326171875,
-0.01032257080078125,
-0.025909423828125,
-0.0103302001953125,
0.0394287109375,
0.021484375,
0.04388427734375,
-0.037078857421875,
0.039306640625,
0.0294647216796875,
-0.01479339599609375,
0.028839111328125,
0.085205078125,
-0.01111602783203125,
0.05438232421875,
-0.0259552001953125,
-0.0238800048828125,
-0.019439697265625,
-0.0330810546875,
0.0163421630859375,
0.0181121826171875,
0.00855255126953125,
0.01018524169921875,
0.0030689239501953125,
-0.030364990234375,
-0.00424957275390625,
-0.004550933837890625
] |
6d6cdb56a45d955fcf19f2abb93abfd1e8785cf9
|
Wordpress Stackexchange
Q: How to apply a patch? I found a patch I want here:
http://core.trac.wordpress.org/ticket/17763
I can see the diff, but what do I do now? How can I get that code into my Wordpress? Do I have to copy it manually? Is there anywhere to download it from?
A: You can download the diff file from the bottom of the diff page.
The program to apply a diff is called "patch". It's widely available for various platforms.
Example usages: http://en.wikipedia.org/wiki/Patch_(Unix)#Usage_examples
|
Q: How to apply a patch? I found a patch I want here:
http://core.trac.wordpress.org/ticket/17763
I can see the diff, but what do I do now? How can I get that code into my Wordpress? Do I have to copy it manually? Is there anywhere to download it from?
A: You can download the diff file from the bottom of the diff page.
The program to apply a diff is called "patch". It's widely available for various platforms.
Example usages: http://en.wikipedia.org/wiki/Patch_(Unix)#Usage_examples
|
wordpress
|
{
"language": "en",
"length": 80,
"provenance": "stackexchange_00019.jsonl.gz:411453",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23401"
}
|
[
0.045379638671875,
-0.00970458984375,
0.0148773193359375,
-0.022796630859375,
0.0015516281127929688,
-0.0142974853515625,
0.004665374755859375,
-0.038330078125,
0.00682830810546875,
0.01085662841796875,
-0.07574462890625,
0.0009284019470214844,
-0.00006091594696044922,
0.000701904296875,
-0.004116058349609375,
-0.061248779296875,
0.055938720703125,
-0.0204010009765625,
0.0460205078125,
0.00865936279296875,
-0.01441192626953125,
0.05377197265625,
0.04290771484375,
0.06439208984375,
0.01409149169921875,
-0.0030269622802734375,
0.09375,
-0.0277252197265625,
0.01247406005859375,
-0.0214996337890625,
0.022430419921875,
-0.01165771484375,
0.048553466796875,
0.02630615234375,
-0.0870361328125,
-0.0235595703125,
-0.022216796875,
0.005138397216796875,
-0.0286712646484375,
0.0421142578125,
-0.0023937225341796875,
0.021728515625,
0.0253143310546875,
0.01129913330078125,
-0.0161895751953125,
-0.042388916015625,
0.01399993896484375,
-0.0254364013671875,
0.01123046875,
-0.005767822265625,
-0.0044403076171875,
0.031097412109375,
0.0148773193359375,
0.005672454833984375,
0.0036869049072265625,
0.017547607421875,
0.0299224853515625,
0.00946807861328125,
0.008331298828125,
-0.02130126953125,
-0.0228424072265625,
0.05279541015625,
0.0184478759765625,
0.030426025390625,
-0.0226287841796875,
-0.0156707763671875,
-0.005615234375,
-0.0117034912109375,
-0.07562255859375,
-0.024078369140625,
0.078857421875,
-0.02154541015625,
-0.0291595458984375,
-0.0059356689453125,
-0.004161834716796875,
0.0033111572265625,
0.006069183349609375,
-0.04351806640625,
-0.01000213623046875,
0.046356201171875,
0.00647735595703125,
0.016387939453125,
-0.0180816650390625,
-0.0113677978515625,
0.0017833709716796875,
0.00788116455078125,
-0.0050048828125,
-0.0164337158203125,
-0.0401611328125,
-0.048248291015625,
-0.0157012939453125,
0.01509857177734375,
-0.1077880859375,
-0.0026607513427734375,
-0.0165557861328125,
-0.0240478515625,
0.028564453125,
0.01493072509765625,
0.01177978515625,
0.03277587890625,
0.036041259765625,
-0.0704345703125,
0.06536865234375,
-0.04345703125,
-0.01364898681640625,
-0.00518798828125,
0.00997161865234375,
0.0199127197265625,
0.035125732421875,
0.0379638671875,
-0.019866943359375,
0.04449462890625,
0.01171875,
-0.01110076904296875,
-0.046630859375,
0.01372528076171875,
0.007198333740234375,
-0.017425537109375,
0.003932952880859375,
0.01045989990234375,
0.004222869873046875,
0.0282440185546875,
-0.001434326171875,
-0.047576904296875,
0.0015592575073242188,
-0.039886474609375,
-0.025970458984375,
-0.0199432373046875,
0.0222625732421875,
0.0231170654296875,
-0.01812744140625,
-0.002197265625,
0.01708984375,
0.02032470703125,
0.00006270408630371094,
-0.0212554931640625,
0.0157318115234375,
0.01163482666015625,
-0.0031681060791015625,
0.006011962890625,
-0.012939453125,
-0.01296234130859375,
0.0166015625,
-0.0120391845703125,
-0.018157958984375,
-0.00023639202117919922,
-0.0079345703125,
0.03472900390625,
0.0198974609375,
-0.022552490234375,
0.0190277099609375,
-0.04791259765625,
-0.008453369140625,
0.0229949951171875,
0.057952880859375,
-0.0009298324584960938,
0.05804443359375,
-0.0257110595703125,
-0.0095062255859375,
-0.0114593505859375,
-0.0185699462890625,
0.01513671875,
0.06610107421875,
0.01506805419921875,
0.0297088623046875,
-0.00508880615234375,
-0.0235595703125,
0.01041412353515625,
0.02880859375,
-0.0196990966796875,
0.0221710205078125,
0.0015201568603515625,
0.0562744140625,
0.05029296875,
0.0178070068359375,
0.0262603759765625,
0.006778717041015625,
-0.0364990234375,
0.020965576171875,
0.010345458984375,
-0.01052093505859375,
-0.00989532470703125,
0.011932373046875,
-0.006153106689453125,
0.00203704833984375,
-0.03668212890625,
0.01123046875,
0.017730712890625,
0.00833892822265625,
0.032440185546875,
-0.019012451171875,
0.0091400146484375,
-0.02435302734375,
0.01355743408203125,
-0.036376953125,
0.00399017333984375,
-0.019775390625,
0.0266265869140625,
-0.036529541015625,
0.00005513429641723633,
-0.032257080078125,
0.03515625,
-0.03167724609375,
0.0014009475708007812,
-0.053131103515625,
0.018096923828125,
-0.01485443115234375,
0.049285888671875,
0.026275634765625,
0.007678985595703125,
0.0038928985595703125,
-0.0193023681640625,
0.0201568603515625,
-0.040863037109375,
-0.038330078125,
0.0263214111328125,
0.0192108154296875,
0.00231170654296875,
-0.004764556884765625,
0.0009570121765136719,
-0.020355224609375,
0.0198516845703125,
-0.033416748046875,
-0.0002474784851074219,
0.003322601318359375,
-0.032257080078125,
-0.011688232421875,
-0.01323699951171875,
-0.03607177734375,
-0.0197296142578125,
-0.00983428955078125,
0.06396484375,
0.0201263427734375,
0.0231475830078125,
-0.0244903564453125,
-0.0205078125,
-0.032012939453125,
-0.0863037109375,
-0.00765228271484375,
0.06573486328125,
0.01125335693359375,
-0.01447296142578125,
-0.059417724609375,
-0.0089874267578125,
0.058746337890625,
-0.0017795562744140625,
-0.0146484375,
0.020416259765625,
0.0282440185546875,
0.047821044921875,
0.0081787109375,
-0.0338134765625,
0.0079193115234375,
-0.0712890625,
0.0491943359375,
0.0009517669677734375,
-0.001194000244140625,
-0.004978179931640625,
-0.073974609375,
0.03863525390625,
-0.007770538330078125,
-0.0810546875,
-0.04876708984375,
-0.040985107421875,
0.0219268798828125,
-0.0276336669921875,
0.031646728515625,
0.0222930908203125,
0.01476287841796875,
-0.0254364013671875,
0.0023479461669921875,
0.01036834716796875,
0.0009636878967285156,
0.018341064453125,
-0.034881591796875,
0.044891357421875,
-0.00917816162109375,
0.01218414306640625,
-0.0208740234375,
-0.007080078125,
-0.031463623046875,
0.0116119384765625,
-0.0234375,
-0.0188446044921875,
0.005939483642578125,
-0.0188446044921875,
0.006595611572265625,
-0.048431396484375,
0.002185821533203125,
-0.01485443115234375,
-0.002025604248046875,
0.0163116455078125,
0.005138397216796875,
-0.01366424560546875,
0.051116943359375,
-0.02667236328125,
0.0026302337646484375,
-0.0116424560546875,
-0.0030612945556640625,
-0.01512908935546875,
0.009368896484375,
0.05181884765625,
0.0260772705078125,
-0.036865234375,
0.0140838623046875,
-0.018951416015625,
0.040771484375,
0.01517486572265625,
-0.0042572021484375,
0.01471710205078125,
-0.0660400390625,
-0.021575927734375,
0.0206756591796875,
0.0174713134765625,
-0.021392822265625,
-0.038726806640625,
-0.038238525390625,
0.004077911376953125,
-0.093017578125,
-0.04302978515625,
-0.035736083984375,
-0.0775146484375,
-0.010498046875,
0.01010894775390625,
-0.03448486328125,
0.0158233642578125,
0.02642822265625,
0.0127716064453125,
0.0186614990234375,
-0.0311431884765625,
-0.043304443359375,
-0.0792236328125,
-0.11053466796875,
-0.0521240234375,
0.00484466552734375,
0.0325927734375,
-0.006038665771484375,
0.033721923828125,
0.014923095703125,
-0.000148773193359375,
0.00029659271240234375,
0.045440673828125,
0.01554107666015625,
-0.034088134765625,
-0.007965087890625,
-0.00722503662109375,
0.0169677734375,
-0.0025482177734375,
-0.01202392578125,
0.01458740234375,
-0.01074981689453125,
-0.022247314453125,
-0.003326416015625,
-0.007602691650390625,
-0.00759124755859375,
0.048736572265625,
0.01337432861328125,
-0.03759765625,
-0.004833221435546875,
-0.06512451171875,
0.01116180419921875,
0.04046630859375,
0.00438690185546875,
-0.005626678466796875,
-0.01491546630859375,
-0.048065185546875,
0.002445220947265625,
0.001705169677734375,
0.0240325927734375,
0.0190582275390625,
-0.006366729736328125,
0.01369476318359375,
0.01200103759765625,
0.00301361083984375,
0.011322021484375,
-0.0278472900390625,
-0.0172576904296875,
-0.0157318115234375,
0.054901123046875,
-0.005035400390625,
0.02301025390625,
-0.033477783203125,
0.057708740234375,
-0.05841064453125,
-0.0162353515625,
0.05078125,
0.02740478515625,
0.0305938720703125,
-0.0045623779296875,
-0.0408935546875,
-0.0004949569702148438,
0.07952880859375,
-0.0041961669921875,
-0.036285400390625,
-0.0237579345703125,
0.0012426376342773438,
-0.007579803466796875,
0.01206207275390625,
0.03631591796875,
-0.0216522216796875,
-0.0966796875,
0.0011529922485351562,
-0.018035888671875,
-0.032745361328125,
-0.011016845703125,
0.0131378173828125,
-0.033905029296875,
-0.0518798828125,
0.0233917236328125,
-0.026702880859375,
-0.011871337890625,
0.0267791748046875,
-0.03271484375,
0.01458740234375,
-0.0199127197265625,
-0.0298919677734375,
-0.0268096923828125,
-0.00476837158203125,
-0.037445068359375,
0.045928955078125,
0.054046630859375,
-0.031341552734375,
-0.0239105224609375,
0.0033473968505859375,
0.0079498291015625,
-0.0111846923828125,
-0.0023365020751953125,
-0.0017251968383789062,
-0.01904296875,
0.0147705078125,
-0.0009026527404785156,
-0.01739501953125,
-0.0289306640625,
-0.039947509765625,
-0.039947509765625,
0.0239715576171875,
0.01126861572265625,
0.06304931640625,
0.008819580078125,
-0.005344390869140625,
-0.0318603515625,
-0.031768798828125,
0.004608154296875,
0.0033817291259765625,
-0.0230560302734375,
0.0165252685546875,
-0.013641357421875,
-0.0322265625,
0.052581787109375,
-0.0017557144165039062,
0.003936767578125,
0.0097503662109375,
0.07757568359375,
0.00231170654296875,
-0.0189971923828125,
-0.07281494140625,
0.0269775390625,
0.036376953125,
0.0122528076171875,
0.018951416015625,
0.00797271728515625,
-0.020477294921875,
0.056060791015625,
0.002849578857421875,
-0.032989501953125,
-0.03851318359375,
0.029937744140625,
0.025604248046875,
0.031646728515625,
-0.03131103515625,
-0.0101470947265625,
0.09613037109375,
-0.01219940185546875,
-0.01377105712890625,
-0.0002276897430419922,
0.0302581787109375,
-0.0009512901306152344,
-0.0211181640625,
0.010498046875,
0.01013946533203125,
0.00023543834686279297,
-0.0182037353515625,
-0.024017333984375,
0.046722412109375,
0.05487060546875,
-0.003337860107421875,
0.01922607421875,
0.05206298828125,
0.01114654541015625,
0.00029277801513671875,
-0.0025577545166015625,
-0.00579071044921875,
0.01495361328125,
0.020660400390625,
0.0189361572265625,
-0.0117645263671875,
-0.0223541259765625,
0.062744140625,
0.035491943359375,
-0.040283203125,
0.0265350341796875,
-0.0175628662109375,
0.0255584716796875,
-0.0031147003173828125,
0.01336669921875,
0.015533447265625,
0.00295257568359375,
-0.0311279296875,
0.01654052734375,
0.036102294921875,
-0.038665771484375,
-0.020721435546875,
-0.015716552734375,
-0.005218505859375,
-0.01934814453125,
0.033294677734375,
-0.015625,
0.01544952392578125,
-0.01279449462890625,
-0.0247955322265625,
0.05804443359375,
0.028564453125,
0.0032367706298828125,
0.00801849365234375,
0.0311431884765625,
0.0029621124267578125,
-0.0380859375,
-0.02850341796875,
-0.03277587890625,
0.0002124309539794922,
0.0035114288330078125,
0.03363037109375,
-0.0003986358642578125,
-0.0224151611328125,
0.024261474609375,
-0.0205535888671875,
0.0130157470703125,
-0.005523681640625,
0.03497314453125,
0.0063018798828125,
0.0196685791015625,
0.036773681640625,
-0.003986358642578125,
-0.004451751708984375,
0.00872039794921875,
0.029815673828125,
-0.003116607666015625,
0.01190948486328125,
0.0196990966796875,
-0.021728515625,
-0.0181884765625,
-0.008819580078125,
0.0208892822265625,
-0.03057861328125,
-0.053375244140625,
0.01151275634765625,
0.0093841552734375,
-0.00543975830078125,
-0.00348663330078125,
0.044921875,
-0.014129638671875,
-0.01348876953125,
-0.005489349365234375,
-0.0053253173828125,
-0.04052734375,
-0.0192108154296875,
0.09246826171875,
0.03704833984375,
-0.07354736328125,
-0.01519775390625,
-0.0634765625,
-0.043853759765625,
-0.0728759765625,
-0.003391265869140625,
-0.0714111328125,
0.039306640625,
-0.0163116455078125,
0.02154541015625,
0.00495147705078125,
0.0100250244140625,
0.006549835205078125,
0.0108184814453125,
-0.02789306640625,
-0.005794525146484375,
0.0162200927734375,
0.01087188720703125,
-0.011199951171875,
0.06610107421875,
0.011962890625,
0.0070343017578125,
-0.00728607177734375,
-0.037811279296875,
-0.0086669921875,
-0.0191650390625,
0.0034618377685546875,
-0.00970458984375,
0.026580810546875,
0.00878143310546875,
0.0272979736328125,
0.00339508056640625,
0.011749267578125,
-0.036376953125,
-0.0051727294921875,
-0.01995849609375,
0.04339599609375,
-0.05322265625,
-0.0203399658203125,
0.0028553009033203125,
-0.042755126953125,
-0.00832366943359375,
0.0079193115234375,
-0.014068603515625,
0.0252532958984375,
-0.0251617431640625,
0.01528167724609375,
0.0180816650390625,
-0.01369476318359375,
0.054779052734375,
0.047607421875,
-0.011505126953125,
0.00925445556640625,
0.0283966064453125,
-0.013580322265625,
-0.033355712890625,
-0.032745361328125,
0.043853759765625,
0.0279693603515625,
0.03472900390625,
-0.0208740234375,
-0.01407623291015625,
0.0102691650390625,
-0.0268707275390625,
0.042144775390625,
0.02325439453125,
0.0833740234375,
-0.06060791015625,
0.03387451171875,
0.020751953125,
-0.028656005859375,
0.046905517578125,
0.029449462890625,
-0.036407470703125,
-0.04071044921875,
0.01511383056640625,
-0.003070831298828125,
-0.0048980712890625,
0.0164642333984375,
0.0306549072265625,
-0.025726318359375,
-0.00037932395935058594,
0.046661376953125,
0.04833984375,
0.00553131103515625,
0.0241241455078125,
-0.00641632080078125,
0.05096435546875,
-0.012939453125,
-0.028350830078125,
0.0283966064453125,
-0.04058837890625,
-0.045318603515625,
0.0223236083984375,
-0.0377197265625,
0.0028972625732421875,
-0.01009368896484375,
-0.036834716796875,
0.026947021484375,
0.034881591796875,
-0.026092529296875,
-0.005344390869140625,
0.0091400146484375,
-0.01270294189453125,
-0.013763427734375,
-0.02301025390625,
0.01071929931640625,
-0.00615692138671875,
-0.006526947021484375,
0.022186279296875,
-0.020782470703125,
-0.038299560546875,
-0.0146331787109375,
-0.0114593505859375,
0.1080322265625,
-0.053009033203125,
-0.00457763671875,
0.0302886962890625,
0.0079803466796875,
-0.01593017578125,
0.01007080078125,
-0.0130767822265625,
-0.01593017578125,
-0.01253509521484375,
-0.0073394775390625,
-0.0303802490234375,
0.0297088623046875,
0.0100250244140625,
-0.041595458984375,
0.0775146484375,
0.0107269287109375,
-0.006061553955078125,
0.00740814208984375,
0.03564453125,
-0.04296875,
-0.004001617431640625,
-0.03521728515625,
0.06658935546875,
-0.01471710205078125,
0.0736083984375,
-0.06695556640625,
-0.01297760009765625,
0.0220184326171875,
0.045196533203125,
-0.0010461807250976562,
0.01282501220703125,
-0.04742431640625,
-0.024871826171875,
-0.0031719207763671875,
0.017578125,
0.00909423828125,
0.0556640625,
-0.01282501220703125,
-0.006500244140625,
0.0020904541015625,
-0.031097412109375,
0.02996826171875,
-0.06060791015625,
-0.02520751953125,
-0.00731658935546875,
-0.004962921142578125,
-0.014434814453125,
0.0023212432861328125,
0.03887939453125,
-0.003116607666015625,
-0.02081298828125,
-0.0007367134094238281,
-0.015106201171875,
-0.0165252685546875,
0.0008349418640136719,
-0.05279541015625,
0.0251617431640625,
0.00276947021484375,
-0.01139068603515625,
0.009185791015625,
-0.0232086181640625,
0.04351806640625,
-0.003498077392578125,
0.006076812744140625,
0.043121337890625,
0.018768310546875,
0.018798828125,
0.04351806640625,
-0.00649261474609375,
0.0034999847412109375,
0.0223388671875,
0.0240020751953125,
0.0130157470703125,
0.063232421875,
0.037506103515625,
-0.0001583099365234375,
-0.0296630859375,
-0.0209503173828125,
0.00782012939453125,
-0.012359619140625,
-0.0018453598022460938,
-0.047149658203125,
-0.034423828125,
-0.0855712890625,
-0.053375244140625,
-0.0174407958984375,
-0.01355743408203125,
0.019317626953125,
-0.0243377685546875,
0.00714111328125,
0.033782958984375,
0.00954437255859375,
0.008148193359375,
-0.026214599609375,
0.039306640625,
-0.030517578125,
-0.01141357421875,
-0.007167816162109375,
0.02386474609375,
0.01044464111328125,
0.0095367431640625,
0.002475738525390625,
0.0023193359375,
-0.0086669921875,
0.0010929107666015625,
-0.0117034912109375,
-0.0413818359375,
0.010498046875,
0.035125732421875,
-0.0069427490234375,
-0.06439208984375,
0.003910064697265625,
0.0124359130859375,
-0.05218505859375,
-0.0210418701171875,
-0.0007796287536621094,
-0.0238800048828125,
0.01361083984375,
-0.019378662109375,
0.047271728515625,
0.0263519287109375,
0.00762939453125,
-0.026397705078125,
0.05059814453125,
0.03814697265625,
-0.01751708984375,
0.0428466796875,
0.006298065185546875,
0.0008940696716308594,
0.005176544189453125,
0.0242156982421875,
0.03271484375,
0.02850341796875,
-0.01727294921875,
-0.01543426513671875,
0.034942626953125,
-0.01678466796875,
-0.0007157325744628906,
0.0257568359375,
-0.041412353515625,
0.054351806640625,
-0.0020542144775390625,
-0.0013914108276367188,
-0.012969970703125,
0.0005354881286621094,
0.01318359375,
0.0206298828125,
0.0153350830078125,
0.020599365234375,
-0.07427978515625,
-0.048095703125,
-0.07427978515625,
0.05548095703125,
0.03118896484375,
0.07257080078125,
-0.0221405029296875,
0.054840087890625,
-0.0494384765625,
-0.0096588134765625,
-0.0096893310546875,
-0.035858154296875,
0.01751708984375,
0.046630859375,
-0.0115203857421875,
-0.01885986328125,
-0.03863525390625,
0.007049560546875,
0.041168212890625,
-0.0103302001953125,
-0.01288604736328125,
-0.00089263916015625,
0.035186767578125,
0.006572723388671875,
-0.0082550048828125,
-0.02349853515625,
-0.0360107421875,
0.0267181396484375,
0.01110076904296875,
-0.01207733154296875,
-0.0059356689453125,
-0.006755828857421875,
0.013275146484375,
0.0518798828125,
0.045440673828125,
0.00415802001953125,
0.047149658203125,
0.0184783935546875,
0.0269622802734375,
-0.045257568359375,
-0.0413818359375,
-0.0281829833984375,
-0.0250244140625,
0.0112457275390625,
-0.01151275634765625,
0.0279541015625,
-0.0176544189453125,
-0.0268402099609375,
0.0271453857421875,
0.024261474609375,
0.03570556640625,
-0.0325927734375,
-0.0036373138427734375,
0.020782470703125,
-0.0085296630859375,
0.041229248046875,
-0.02215576171875,
-0.00968170166015625,
-0.0452880859375,
-0.003986358642578125,
0.0231781005859375,
0.0009198188781738281,
0.0098724365234375,
0.0005645751953125,
0.00983428955078125,
0.004070281982421875,
-0.0179901123046875,
-0.039703369140625,
0.00908660888671875,
-0.011749267578125,
0.05389404296875,
-0.051849365234375,
0.0133056640625,
-0.016937255859375,
-0.0024013519287109375,
-0.04931640625,
-0.03033447265625,
-0.022613525390625,
0.040924072265625,
-0.0140533447265625,
0.0316162109375,
0.0347900390625,
-0.022979736328125,
-0.0024700164794921875,
0.055694580078125,
0.0241241455078125,
0.09674072265625,
-0.0178680419921875,
-0.02117919921875,
0.0247344970703125,
-0.0212554931640625,
-0.027008056640625,
-0.04217529296875,
0.0292816162109375,
-0.08599853515625,
-0.0225067138671875,
-0.0335693359375,
0.004364013671875,
0.004261016845703125,
-0.05889892578125,
-0.10711669921875,
-0.0188446044921875,
-0.0170745849609375,
-0.05047607421875,
-0.08038330078125,
-0.0078582763671875,
0.0154266357421875,
-0.003086090087890625,
-0.03656005859375,
-0.0031642913818359375,
-0.0810546875,
0.022308349609375,
-0.018829345703125,
0.07110595703125,
-0.024658203125,
0.0214996337890625,
0.0075836181640625,
0.018707275390625,
0.006687164306640625,
-0.0400390625,
-0.006549835205078125,
-0.00018405914306640625,
0.037811279296875,
0.03924560546875,
-0.01129913330078125,
0.0194549560546875,
0.01233673095703125,
0.0021686553955078125,
0.01397705078125,
0.006954193115234375,
-0.07159423828125,
-0.03411865234375,
0.06707763671875,
0.06695556640625,
0.0289154052734375,
-0.023284912109375,
0.04681396484375,
0.041839599609375,
-0.06585693359375,
-0.01465606689453125,
0.03973388671875,
-0.056976318359375,
-0.03692626953125,
-0.01290130615234375,
-0.022308349609375,
0.0006690025329589844,
-0.0161285400390625,
-0.04339599609375,
-0.002086639404296875,
-0.01513671875,
-0.004444122314453125,
-0.038177490234375,
0.0019092559814453125,
0.07867431640625,
-0.0308380126953125,
0.05352783203125,
-0.013671875,
0.0073699951171875,
0.08282470703125,
0.036712646484375,
0.0107879638671875,
0.038421630859375,
-0.0494384765625,
-0.0074462890625,
0.0088043212890625,
0.02032470703125,
-0.029998779296875,
-0.0158233642578125,
-0.03619384765625,
-0.00528717041015625,
0.00045680999755859375,
-0.01404571533203125,
-0.0091094970703125,
-0.0032501220703125,
-0.0014171600341796875,
0.0775146484375,
-0.01163482666015625,
0.0299224853515625,
-0.0287322998046875,
0.0318603515625,
-0.01222991943359375,
0.008026123046875,
0.01509857177734375,
-0.004955291748046875,
0.029571533203125,
-0.040863037109375,
0.051055908203125,
-0.005580902099609375,
0.020660400390625,
0.0014925003051757812,
-0.0226287841796875,
0.03546142578125
] |
a554aca4305a4e3f598a174d517bf3cbf3904bc1
|
Wordpress Stackexchange
Q: Cron jobs for deactivated plugins Hi I am using a plugin to view the cron jobs that are run by wordpress. I am noticing that there are jobs related to plugins I have deactivated and even deleted. Why is this so and how can I remove them?
A: This might be because the plugins you were using didnt deregister the crons it setup. To remove the crons use the following code in your functions file:
add_action("init", "clear_crons_left");
function clear_crons_left() {
wp_clear_scheduled_hook("cron_name");
}
Once thats run once you can safely remove it
|
Q: Cron jobs for deactivated plugins Hi I am using a plugin to view the cron jobs that are run by wordpress. I am noticing that there are jobs related to plugins I have deactivated and even deleted. Why is this so and how can I remove them?
A: This might be because the plugins you were using didnt deregister the crons it setup. To remove the crons use the following code in your functions file:
add_action("init", "clear_crons_left");
function clear_crons_left() {
wp_clear_scheduled_hook("cron_name");
}
Once thats run once you can safely remove it
A: You are seeing jobs that are related to plugins that were deactivated because its a badly coded plugin which should have cleared the scheduled job when it was deactivated,
any way you can uncshedule them using wp_unschedule_event.
|
wordpress
|
{
"language": "en",
"length": 130,
"provenance": "stackexchange_00019.jsonl.gz:411457",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23412"
}
|
[
0.0765380859375,
0.0271148681640625,
0.01500701904296875,
0.004467010498046875,
0.028656005859375,
-0.04534912109375,
0.05609130859375,
-0.061004638671875,
0.000014483928680419922,
0.01239013671875,
-0.0168609619140625,
0.01276397705078125,
-0.003719329833984375,
-0.0274200439453125,
0.0183868408203125,
-0.004734039306640625,
0.0310821533203125,
-0.004581451416015625,
0.0029735565185546875,
-0.0242919921875,
-0.016998291015625,
0.0005168914794921875,
0.01444244384765625,
0.06048583984375,
0.00015151500701904297,
0.03546142578125,
0.08209228515625,
-0.01299285888671875,
-0.0002090930938720703,
-0.01129150390625,
0.026611328125,
-0.0364990234375,
-0.0017576217651367188,
0.01375579833984375,
0.01800537109375,
-0.02490234375,
-0.00969696044921875,
0.00962066650390625,
0.030059814453125,
-0.0119476318359375,
0.013092041015625,
0.01490020751953125,
0.041259765625,
-0.012603759765625,
0.0255279541015625,
-0.0377197265625,
0.0311431884765625,
-0.04681396484375,
-0.0015201568603515625,
-0.01067352294921875,
0.024749755859375,
-0.040496826171875,
0.052734375,
-0.0006265640258789062,
-0.03289794921875,
-0.0452880859375,
-0.023834228515625,
0.038177490234375,
0.01117706298828125,
0.024444580078125,
-0.006725311279296875,
0.03009033203125,
-0.0036525726318359375,
-0.0205078125,
0.034393310546875,
-0.0288848876953125,
-0.042572021484375,
0.03167724609375,
-0.059051513671875,
0.03704833984375,
0.068359375,
-0.05108642578125,
-0.00545501708984375,
0.038604736328125,
-0.0166778564453125,
-0.03387451171875,
0.0281829833984375,
-0.000408172607421875,
0.0179901123046875,
0.0136260986328125,
0.05767822265625,
0.005054473876953125,
0.019134521484375,
0.032684326171875,
0.0032062530517578125,
0.0257110595703125,
0.007495880126953125,
-0.044525146484375,
-0.064453125,
-0.00717926025390625,
-0.037567138671875,
0.0122222900390625,
-0.05517578125,
-0.032379150390625,
-0.004669189453125,
-0.013519287109375,
0.0606689453125,
0.043914794921875,
-0.0182037353515625,
-0.07110595703125,
0.0038852691650390625,
-0.0288848876953125,
-0.05780029296875,
0.0088348388671875,
-0.0243072509765625,
0.04302978515625,
0.04388427734375,
0.04425048828125,
-0.0027008056640625,
0.026031494140625,
0.0028362274169921875,
-0.0234832763671875,
0.003387451171875,
-0.0283660888671875,
-0.0032863616943359375,
-0.0029163360595703125,
-0.026824951171875,
0.055206298828125,
0.0214691162109375,
0.0296478271484375,
-0.01513671875,
0.008026123046875,
-0.032440185546875,
-0.02734375,
0.00395965576171875,
-0.045989990234375,
-0.02203369140625,
0.0228729248046875,
-0.0191497802734375,
0.0279541015625,
-0.0294952392578125,
0.0055694580078125,
0.071044921875,
0.0197601318359375,
-0.0023288726806640625,
-0.032562255859375,
0.0033893585205078125,
-0.00390625,
0.002956390380859375,
-0.01465606689453125,
0.033721923828125,
0.0114898681640625,
0.0178375244140625,
0.01102447509765625,
0.045440673828125,
0.0005345344543457031,
-0.00018846988677978516,
0.00475311279296875,
0.032867431640625,
0.0291290283203125,
-0.018585205078125,
-0.01558685302734375,
0.0031490325927734375,
0.044281005859375,
0.059478759765625,
-0.00856781005859375,
0.11029052734375,
-0.0557861328125,
0.012451171875,
-0.039825439453125,
-0.0175323486328125,
0.0024738311767578125,
0.01195526123046875,
-0.078125,
-0.061737060546875,
-0.01053619384765625,
-0.0350341796875,
-0.0025081634521484375,
0.029449462890625,
-0.056915283203125,
0.0374755859375,
-0.04327392578125,
0.01103973388671875,
0.01922607421875,
0.0254669189453125,
0.05535888671875,
-0.006343841552734375,
0.0017061233520507812,
0.035125732421875,
0.0078582763671875,
-0.023193359375,
-0.029541015625,
0.046600341796875,
-0.03271484375,
-0.058990478515625,
-0.00261688232421875,
-0.000133514404296875,
0.0192413330078125,
0.03790283203125,
0.009307861328125,
0.04974365234375,
-0.0157623291015625,
-0.0117034912109375,
0.0232086181640625,
0.0027370452880859375,
-0.0013751983642578125,
-0.053680419921875,
0.014373779296875,
-0.0185089111328125,
-0.0421142578125,
0.0234527587890625,
0.054718017578125,
-0.036285400390625,
-0.01186370849609375,
-0.119384765625,
0.04400634765625,
-0.03485107421875,
0.053070068359375,
-0.0017681121826171875,
0.022216796875,
0.0028285980224609375,
0.004024505615234375,
-0.0033512115478515625,
-0.04913330078125,
-0.018890380859375,
0.032867431640625,
-0.007289886474609375,
0.0226593017578125,
-0.0181884765625,
0.04534912109375,
-0.0134124755859375,
-0.03631591796875,
-0.010101318359375,
0.021026611328125,
0.01172637939453125,
0.023162841796875,
-0.035736083984375,
-0.00763702392578125,
-0.0041656494140625,
0.0028839111328125,
-0.025238037109375,
0.051727294921875,
0.01071929931640625,
0.06146240234375,
0.01416778564453125,
-0.00707244873046875,
0.0252532958984375,
-0.0194549560546875,
0.0012788772583007812,
0.0205841064453125,
0.0276031494140625,
0.07598876953125,
-0.0265350341796875,
-0.0190887451171875,
0.07421875,
-0.034393310546875,
-0.004199981689453125,
-0.0070953369140625,
-0.004009246826171875,
0.004604339599609375,
-0.0117034912109375,
0.0019855499267578125,
0.037078857421875,
0.0107421875,
-0.0025310516357421875,
0.058685302734375,
-0.00595855712890625,
-0.03839111328125,
0.0170135498046875,
-0.00099945068359375,
0.0240020751953125,
-0.0177154541015625,
-0.051483154296875,
-0.00009620189666748047,
0.01026153564453125,
-0.00852203369140625,
0.0031032562255859375,
0.01358795166015625,
0.0030231475830078125,
-0.005329132080078125,
0.018280029296875,
-0.032501220703125,
-0.00739288330078125,
0.041015625,
0.04608154296875,
-0.00205230712890625,
-0.037506103515625,
-0.0203399658203125,
0.000919342041015625,
0.0216064453125,
-0.0211944580078125,
-0.00907135009765625,
-0.0208892822265625,
-0.005840301513671875,
-0.0260009765625,
-0.022247314453125,
0.0295257568359375,
0.01409912109375,
-0.037353515625,
-0.002429962158203125,
0.008209228515625,
0.049468994140625,
-0.0113067626953125,
0.004848480224609375,
0.0171966552734375,
0.005809783935546875,
0.007061004638671875,
-0.03912353515625,
0.0283050537109375,
-0.024658203125,
0.01110076904296875,
0.049652099609375,
0.0247039794921875,
-0.02386474609375,
0.0195770263671875,
0.00011664628982543945,
0.04632568359375,
0.0205230712890625,
-0.001598358154296875,
0.036834716796875,
-0.09576416015625,
-0.0301055908203125,
0.00788116455078125,
0.1051025390625,
-0.060546875,
-0.06781005859375,
-0.0137176513671875,
0.017303466796875,
-0.056732177734375,
-0.056732177734375,
-0.052490234375,
-0.013580322265625,
-0.0101470947265625,
-0.00382232666015625,
0.012054443359375,
0.01148223876953125,
-0.0170440673828125,
0.0098114013671875,
0.01035308837890625,
0.00800323486328125,
-0.01422882080078125,
0.015533447265625,
-0.034698486328125,
0.0322265625,
-0.0008788108825683594,
0.0196533203125,
-0.0027637481689453125,
0.097900390625,
-0.0016088485717773438,
-0.07440185546875,
-0.0178680419921875,
-0.0220947265625,
-0.02392578125,
0.0254669189453125,
0.013031005859375,
-0.006893157958984375,
0.0027408599853515625,
-0.007007598876953125,
0.01532745361328125,
0.050537109375,
-0.04571533203125,
0.005054473876953125,
0.016693115234375,
0.00833892822265625,
0.0181732177734375,
0.0262298583984375,
-0.01227569580078125,
-0.044586181640625,
-0.012298583984375,
-0.0621337890625,
0.012054443359375,
-0.0261077880859375,
-0.0021343231201171875,
0.052032470703125,
-0.0160675048828125,
-0.0007734298706054688,
-0.00395965576171875,
0.0176849365234375,
0.0173492431640625,
0.0145263671875,
0.01012420654296875,
0.0015611648559570312,
-0.004055023193359375,
0.0028095245361328125,
0.0201416015625,
-0.00957489013671875,
0.03961181640625,
-0.0224456787109375,
0.0227203369140625,
0.01190185546875,
-0.0244293212890625,
-0.033416748046875,
-0.014739990234375,
-0.05767822265625,
-0.040985107421875,
0.04339599609375,
-0.029205322265625,
-0.02490234375,
-0.01053619384765625,
-0.01302337646484375,
0.0167083740234375,
0.06689453125,
0.00550079345703125,
-0.048095703125,
-0.021270751953125,
0.0072021484375,
-0.0231781005859375,
0.0038204193115234375,
0.0122833251953125,
-0.01503753662109375,
-0.1578369140625,
0.04583740234375,
-0.0045013427734375,
-0.0293121337890625,
-0.038848876953125,
0.022064208984375,
-0.09881591796875,
-0.0601806640625,
0.03192138671875,
-0.01910400390625,
0.0087127685546875,
-0.035491943359375,
0.01412200927734375,
-0.07244873046875,
-0.01274871826171875,
-0.0152130126953125,
-0.05267333984375,
-0.01201629638671875,
-0.0078277587890625,
0.0244140625,
0.01120758056640625,
-0.001678466796875,
-0.0151214599609375,
0.029266357421875,
0.04620361328125,
0.0303192138671875,
0.006404876708984375,
-0.03472900390625,
0.003002166748046875,
0.0224456787109375,
0.0276336669921875,
0.0016803741455078125,
-0.0010900497436523438,
-0.034088134765625,
-0.03216552734375,
0.0118408203125,
-0.009979248046875,
0.03594970703125,
-0.00241851806640625,
-0.0008034706115722656,
-0.0233001708984375,
-0.03997802734375,
-0.0178070068359375,
-0.0014781951904296875,
-0.00951385498046875,
-0.007335662841796875,
-0.03582763671875,
-0.00936126708984375,
0.0294952392578125,
-0.00946807861328125,
0.0193328857421875,
0.0193634033203125,
0.079345703125,
-0.00042724609375,
-0.0174102783203125,
-0.032196044921875,
0.003215789794921875,
0.0263671875,
0.0218505859375,
0.0254669189453125,
-0.00640869140625,
-0.0045013427734375,
0.0169677734375,
0.0017518997192382812,
-0.0092620849609375,
-0.0235748291015625,
0.030731201171875,
-0.0017595291137695312,
-0.0260467529296875,
0.0140533447265625,
-0.0228424072265625,
0.054443359375,
0.033172607421875,
0.0035762786865234375,
-0.0269927978515625,
0.038787841796875,
0.0182342529296875,
-0.039520263671875,
0.00946807861328125,
-0.01302337646484375,
-0.0687255859375,
0.0168914794921875,
-0.004039764404296875,
0.0115203857421875,
0.0384521484375,
-0.0302581787109375,
0.049591064453125,
0.01715087890625,
0.02105712890625,
-0.018646240234375,
0.054595947265625,
-0.045745849609375,
0.056060791015625,
-0.03045654296875,
-0.0113067626953125,
-0.047698974609375,
-0.0236358642578125,
0.08160400390625,
0.00809478759765625,
-0.00414276123046875,
-0.0205841064453125,
-0.01497650146484375,
0.01088714599609375,
0.009033203125,
-0.03125,
0.0343017578125,
0.0267333984375,
-0.01549530029296875,
0.00475311279296875,
-0.03436279296875,
0.01264190673828125,
-0.050537109375,
-0.008636474609375,
-0.0022792816162109375,
-0.0009655952453613281,
0.0172882080078125,
0.07305908203125,
0.01116180419921875,
0.047332763671875,
-0.0242156982421875,
0.0309600830078125,
0.0244293212890625,
0.01531982421875,
0.0204315185546875,
-0.016571044921875,
-0.022857666015625,
0.004085540771484375,
-0.0200042724609375,
-0.032501220703125,
-0.0045013427734375,
0.008453369140625,
0.031982421875,
-0.012603759765625,
-0.02264404296875,
0.037841796875,
-0.009613037109375,
-0.0287322998046875,
0.028289794921875,
0.02484130859375,
-0.01556396484375,
-0.0265350341796875,
0.0010671615600585938,
0.04132080078125,
0.0130462646484375,
-0.0070037841796875,
-0.0028533935546875,
-0.02569580078125,
-0.0178680419921875,
-0.031982421875,
-0.020965576171875,
-0.02032470703125,
0.0013093948364257812,
0.003429412841796875,
-0.00104522705078125,
0.00421142578125,
-0.08355712890625,
-0.047027587890625,
-0.0184173583984375,
-0.003925323486328125,
0.0726318359375,
-0.02191162109375,
0.056427001953125,
-0.04071044921875,
-0.01125335693359375,
-0.0269012451171875,
0.0029621124267578125,
0.07745361328125,
0.046142578125,
-0.07598876953125,
0.0156402587890625,
-0.0443115234375,
-0.0087432861328125,
-0.098876953125,
-0.05340576171875,
-0.075927734375,
0.01508331298828125,
-0.003116607666015625,
0.0292816162109375,
-0.03021240234375,
-0.0205535888671875,
0.02166748046875,
0.019866943359375,
-0.0009474754333496094,
0.046600341796875,
-0.0033283233642578125,
0.0216064453125,
0.01690673828125,
0.02825927734375,
0.01812744140625,
0.0098419189453125,
0.00421905517578125,
-0.034210205078125,
0.006320953369140625,
-0.00940704345703125,
-0.01284027099609375,
-0.025299072265625,
-0.00018334388732910156,
0.0019588470458984375,
0.042755126953125,
-0.00433349609375,
-0.0244293212890625,
-0.005214691162109375,
0.01015472412109375,
-0.0200347900390625,
0.0272979736328125,
0.00803375244140625,
-0.0204010009765625,
0.0152740478515625,
-0.043060302734375,
0.0037174224853515625,
-0.004459381103515625,
0.04193115234375,
0.0005159378051757812,
-0.03375244140625,
-0.0026378631591796875,
-0.002666473388671875,
-0.042694091796875,
0.06719970703125,
0.09869384765625,
0.006847381591796875,
0.0447998046875,
0.034942626953125,
0.007228851318359375,
-0.0029506683349609375,
0.0005578994750976562,
0.0193939208984375,
-0.00756072998046875,
0.04071044921875,
-0.01076507568359375,
-0.0176239013671875,
-0.003543853759765625,
-0.03375244140625,
-0.014068603515625,
0.06463623046875,
0.0236968994140625,
-0.11981201171875,
0.003574371337890625,
-0.0032405853271484375,
0.0352783203125,
0.034454345703125,
-0.00652313232421875,
0.0114288330078125,
-0.0589599609375,
0.0102996826171875,
0.0533447265625,
-0.0131378173828125,
-0.0122833251953125,
-0.0003457069396972656,
-0.00951385498046875,
0.00457763671875,
-0.01318359375,
0.0208282470703125,
-0.055694580078125,
0.049407958984375,
0.050140380859375,
0.026824951171875,
-0.08154296875,
-0.0168304443359375,
0.0535888671875,
-0.01186370849609375,
-0.07025146484375,
0.0714111328125,
-0.0014019012451171875,
0.059234619140625,
-0.018829345703125,
-0.006290435791015625,
0.0239105224609375,
0.037841796875,
-0.003513336181640625,
-0.02642822265625,
0.0318603515625,
-0.036651611328125,
-0.033416748046875,
-0.042236328125,
0.00865936279296875,
0.0217132568359375,
-0.05218505859375,
0.023773193359375,
-0.01250457763671875,
-0.03826904296875,
0.00873565673828125,
-0.00891876220703125,
0.0296478271484375,
-0.01255035400390625,
-0.0161895751953125,
0.0185546875,
0.01418304443359375,
0.0161895751953125,
-0.0301055908203125,
0.032623291015625,
-0.058197021484375,
-0.006061553955078125,
0.0010986328125,
0.0200347900390625,
0.0077056884765625,
-0.0006971359252929688,
-0.048431396484375,
0.093505859375,
0.003116607666015625,
-0.01482391357421875,
-0.004863739013671875,
0.05560302734375,
-0.0267181396484375,
0.0177001953125,
-0.006801605224609375,
0.03570556640625,
-0.0105133056640625,
0.017333984375,
0.0022125244140625,
0.004825592041015625,
0.00843048095703125,
0.01019287109375,
0.051605224609375,
0.00860595703125,
0.0194854736328125,
-0.0316162109375,
-0.0174407958984375,
0.0283660888671875,
-0.0169525146484375,
0.00750732421875,
-0.022857666015625,
0.0251922607421875,
0.0023632049560546875,
-0.059661865234375,
0.02386474609375,
-0.055938720703125,
-0.01230621337890625,
0.0121002197265625,
0.0025730133056640625,
-0.005374908447265625,
-0.00926971435546875,
0.005611419677734375,
0.030303955078125,
-0.0174713134765625,
-0.0293426513671875,
0.01611328125,
0.03192138671875,
0.048187255859375,
0.0555419921875,
-0.0224456787109375,
-0.01284027099609375,
-0.0254669189453125,
0.06597900390625,
0.00006598234176635742,
0.02593994140625,
0.054290771484375,
0.042266845703125,
0.028045654296875,
-0.07757568359375,
0.018798828125,
-0.0244598388671875,
-0.055816650390625,
-0.01074981689453125,
-0.0023784637451171875,
0.0247344970703125,
-0.0172882080078125,
0.0142669677734375,
0.0100250244140625,
-0.0211944580078125,
-0.0097808837890625,
-0.036712646484375,
0.0146026611328125,
0.024749755859375,
0.03521728515625,
-0.0044708251953125,
0.032684326171875,
-0.0321044921875,
-0.001399993896484375,
0.0157928466796875,
-0.01010894775390625,
0.0027446746826171875,
-0.00444793701171875,
0.0121002197265625,
0.0088653564453125,
0.00695037841796875,
0.00695037841796875,
-0.0164947509765625,
0.033782958984375,
-0.0113067626953125,
0.00412750244140625,
-0.01154327392578125,
0.004795074462890625,
0.007843017578125,
0.01456451416015625,
0.03997802734375,
0.032196044921875,
0.00004184246063232422,
-0.0557861328125,
-0.009979248046875,
-0.09075927734375,
0.004344940185546875,
0.0316162109375,
0.0218505859375,
-0.0098876953125,
0.03155517578125,
0.037689208984375,
-0.0029010772705078125,
-0.0107269287109375,
0.0235748291015625,
-0.01203155517578125,
-0.058837890625,
0.001697540283203125,
-0.00542449951171875,
0.02862548828125,
0.0131988525390625,
0.0094451904296875,
0.06549072265625,
-0.01548004150390625,
-0.041015625,
0.041717529296875,
-0.006450653076171875,
-0.016815185546875,
0.01020050048828125,
-0.02740478515625,
0.01473236083984375,
-0.030975341796875,
-0.01215362548828125,
0.005901336669921875,
-0.036041259765625,
-0.0217437744140625,
0.01219940185546875,
0.0168914794921875,
-0.0201263427734375,
0.049560546875,
0.041900634765625,
-0.01497650146484375,
0.0084686279296875,
0.02020263671875,
-0.007965087890625,
-0.014251708984375,
0.030364990234375,
0.0013284683227539062,
-0.017669677734375,
-0.0440673828125,
0.003963470458984375,
0.064453125,
0.006031036376953125,
0.01151275634765625,
-0.007244110107421875,
0.0226593017578125,
0.006839752197265625,
-0.01314544677734375,
0.0163726806640625,
0.0225830078125,
-0.031982421875,
0.0292816162109375,
-0.00141143798828125,
-0.0192413330078125,
-0.042144775390625,
0.051300048828125,
0.0197296142578125,
0.022430419921875,
0.0129547119140625,
0.01114654541015625,
0.0052032470703125,
0.0249176025390625,
0.00021195411682128906,
-0.030487060546875,
-0.010955810546875,
0.018463134765625,
0.000682830810546875,
0.004184722900390625,
-0.0164031982421875,
0.00030922889709472656,
-0.00853729248046875,
0.025909423828125,
-0.007312774658203125,
0.005828857421875,
0.020751953125,
0.0008320808410644531,
0.02850341796875,
0.00850677490234375,
-0.026611328125,
-0.000148773193359375,
-0.004848480224609375,
0.007648468017578125,
0.00769805908203125,
0.0316162109375,
0.003826141357421875,
0.00011789798736572266,
-0.0290374755859375,
0.013397216796875,
0.0208282470703125,
0.008575439453125,
0.011260986328125,
-0.01044464111328125,
-0.01453399658203125,
0.0036640167236328125,
-0.0296630859375,
-0.0261383056640625,
-0.050811767578125,
-0.01422119140625,
0.0146026611328125,
-0.04058837890625,
-0.0364990234375,
-0.04547119140625,
0.00452423095703125,
0.038360595703125,
0.0255279541015625,
-0.057159423828125,
0.061431884765625,
-0.02618408203125,
-0.02178955078125,
0.0038890838623046875,
-0.00922393798828125,
-0.0034427642822265625,
0.0289764404296875,
-0.01079559326171875,
-0.039886474609375,
-0.0288238525390625,
0.037933349609375,
-0.0245208740234375,
-0.00421142578125,
-0.00028777122497558594,
-0.005084991455078125,
-0.01239013671875,
-0.005664825439453125,
-0.0016565322875976562,
0.03668212890625,
0.0171356201171875,
-0.01441192626953125,
0.00650787353515625,
-0.007781982421875,
-0.0129852294921875,
-0.0285491943359375,
0.01593017578125,
-0.04736328125,
-0.046966552734375,
-0.0173797607421875,
0.0078582763671875,
0.0263519287109375,
-0.0185089111328125,
-0.0266571044921875,
0.075927734375,
-0.0054168701171875,
-0.01904296875,
-0.07464599609375,
0.0120086669921875,
0.00997161865234375,
-0.04473876953125,
-0.0281219482421875,
0.0005812644958496094,
-0.0267181396484375,
0.037322998046875,
-0.00472259521484375,
0.0255279541015625,
-0.00269317626953125,
0.0053253173828125,
0.0223541259765625,
0.045867919921875,
0.05548095703125,
-0.01438140869140625,
0.016815185546875,
-0.005374908447265625,
0.027008056640625,
0.04400634765625,
-0.0186309814453125,
0.0184326171875,
0.00009500980377197266,
-0.017486572265625,
-0.031463623046875,
-0.040313720703125,
-0.027099609375,
-0.006511688232421875,
0.08203125,
0.0859375,
0.0252838134765625,
-0.06536865234375,
-0.03204345703125,
-0.042633056640625,
0.025726318359375,
-0.01910400390625,
-0.015350341796875,
-0.04010009765625,
0.004669189453125,
-0.00811767578125,
-0.0016317367553710938,
-0.00856781005859375,
-0.0019130706787109375,
-0.0066070556640625,
-0.037628173828125,
-0.0161895751953125,
-0.009429931640625,
-0.026123046875,
0.01549530029296875,
-0.00623321533203125,
0.0035724639892578125,
0.04327392578125,
-0.0260162353515625,
0.004482269287109375,
0.01629638671875,
0.0531005859375,
0.0187835693359375,
0.0166778564453125,
-0.028350830078125,
0.028533935546875,
0.0000483393669128418,
0.00942230224609375,
-0.0421142578125,
-0.020843505859375,
-0.00894927978515625,
0.0218658447265625,
0.0017852783203125,
0.035888671875,
0.0112457275390625,
0.007965087890625,
0.00811767578125,
-0.002643585205078125,
0.01558685302734375,
0.007537841796875,
-0.007282257080078125,
0.056182861328125,
-0.020843505859375,
-0.023956298828125,
-0.00838470458984375,
-0.04351806640625,
0.0165557861328125,
-0.006809234619140625,
0.0012493133544921875,
-0.03900146484375,
0.017822265625,
-0.018035888671875,
-0.012481689453125,
0.0291900634765625
] |
87e3dd045b47061150bb766c1bb8de15dac76848
|
Wordpress Stackexchange
Q: Single-user registration to access all sites in WordPress MultiSite Network Ok This is what i'm trying to achieve.
A site network where user can post their articles and get rewarded for each post.
For example, Lets say i have a main site example.com. I created a network like site1.example.com,
site2.example.com, etc.
So lets say i have around 10 subsites in my network.
Each subsite have one custom post type.
For example site1.example.com has custom post type videos and only dedicated for videos, site2.example.com has custom post type pictures and only dedicated for pictures, etc. Likewise i created 10 custom post types in 10 of my subsites.
Now i want user access in all network sites with one registration. I mean user who register in site2.example.com should able to access all my network sites and create new posts. They all should be able to access even if i add a new site in my network.
Is there any plugin available for this feature?. Please help me. Thanks
A: There sure is: Multi Site user Management
The plugin syncs your users across sites. I've used it extensively and it works really well.
|
Q: Single-user registration to access all sites in WordPress MultiSite Network Ok This is what i'm trying to achieve.
A site network where user can post their articles and get rewarded for each post.
For example, Lets say i have a main site example.com. I created a network like site1.example.com,
site2.example.com, etc.
So lets say i have around 10 subsites in my network.
Each subsite have one custom post type.
For example site1.example.com has custom post type videos and only dedicated for videos, site2.example.com has custom post type pictures and only dedicated for pictures, etc. Likewise i created 10 custom post types in 10 of my subsites.
Now i want user access in all network sites with one registration. I mean user who register in site2.example.com should able to access all my network sites and create new posts. They all should be able to access even if i add a new site in my network.
Is there any plugin available for this feature?. Please help me. Thanks
A: There sure is: Multi Site user Management
The plugin syncs your users across sites. I've used it extensively and it works really well.
|
wordpress
|
{
"language": "en",
"length": 191,
"provenance": "stackexchange_00019.jsonl.gz:411467",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23449"
}
|
[
0.05810546875,
-0.0060577392578125,
-0.0146484375,
-0.0008749961853027344,
-0.0020885467529296875,
-0.026763916015625,
0.02667236328125,
-0.0278167724609375,
-0.02301025390625,
0.027374267578125,
-0.0012054443359375,
0.0148773193359375,
-0.03533935546875,
-0.040679931640625,
0.0020427703857421875,
-0.0278167724609375,
0.0036296844482421875,
0.03997802734375,
0.0182952880859375,
-0.0161895751953125,
-0.0153350830078125,
-0.01325225830078125,
0.020355224609375,
0.0189666748046875,
0.0114593505859375,
-0.0214385986328125,
0.030914306640625,
-0.0181732177734375,
-0.0019292831420898438,
-0.020233154296875,
0.00531768798828125,
0.0035190582275390625,
0.0247344970703125,
-0.020172119140625,
-0.0161285400390625,
-0.06353759765625,
0.0156707763671875,
-0.0157318115234375,
-0.02081298828125,
0.019561767578125,
0.02447509765625,
0.010162353515625,
0.055145263671875,
0.043365478515625,
0.0246429443359375,
-0.0748291015625,
0.07537841796875,
-0.0653076171875,
0.01047515869140625,
-0.0191192626953125,
-0.004596710205078125,
-0.0221405029296875,
0.031036376953125,
-0.03839111328125,
-0.0301361083984375,
-0.044921875,
0.00914764404296875,
-0.0357666015625,
0.034271240234375,
-0.01654052734375,
-0.049560546875,
-0.038970947265625,
0.03955078125,
-0.007781982421875,
-0.00426483154296875,
-0.0205078125,
-0.018829345703125,
0.0044708251953125,
-0.04046630859375,
-0.004001617431640625,
0.056060791015625,
-0.0234527587890625,
0.018829345703125,
0.0158843994140625,
-0.0428466796875,
-0.0099639892578125,
0.00031757354736328125,
-0.0149688720703125,
0.03131103515625,
-0.01541900634765625,
-0.046112060546875,
-0.042083740234375,
-0.055267333984375,
-0.0244140625,
-0.009979248046875,
0.00319671630859375,
-0.011199951171875,
0.0090179443359375,
-0.0262603759765625,
0.0007548332214355469,
-0.0258941650390625,
-0.01125335693359375,
-0.0298309326171875,
0.01055908203125,
-0.007503509521484375,
0.00008785724639892578,
0.037689208984375,
0.03155517578125,
-0.0015249252319335938,
-0.005947113037109375,
0.00616455078125,
-0.043548583984375,
0.0011529922485351562,
-0.010589599609375,
-0.004291534423828125,
0.045501708984375,
0.00844573974609375,
-0.004695892333984375,
0.0213165283203125,
0.01471710205078125,
0.00470733642578125,
0.0166473388671875,
0.0107269287109375,
0.0153350830078125,
-0.056854248046875,
-0.01264190673828125,
-0.00957489013671875,
-0.035858154296875,
-0.026336669921875,
-0.0286102294921875,
-0.007110595703125,
0.034423828125,
-0.01424407958984375,
-0.031280517578125,
-0.02825927734375,
-0.043304443359375,
-0.00043892860412597656,
-0.0125885009765625,
-0.054962158203125,
-0.01430511474609375,
-0.012725830078125,
0.030853271484375,
0.030487060546875,
0.041839599609375,
-0.01029205322265625,
-0.002384185791015625,
0.0285797119140625,
0.034332275390625,
-0.0007023811340332031,
0.001529693603515625,
0.01690673828125,
-0.025970458984375,
-0.036285400390625,
0.001995086669921875,
0.012451171875,
0.01554107666015625,
0.0257720947265625,
0.005657196044921875,
0.00466156005859375,
0.0008611679077148438,
-0.024871826171875,
0.00855255126953125,
0.01123809814453125,
-0.023223876953125,
0.00954437255859375,
-0.0231475830078125,
-0.0233612060546875,
0.0009484291076660156,
0.0199737548828125,
0.0187530517578125,
0.0357666015625,
0.01358795166015625,
0.0266265869140625,
-0.00429534912109375,
-0.02044677734375,
-0.035400390625,
-0.037811279296875,
0.0008559226989746094,
0.01128387451171875,
-0.0482177734375,
-0.027008056640625,
-0.00835418701171875,
0.062469482421875,
0.0095367431640625,
0.0005006790161132812,
0.039947509765625,
-0.0102081298828125,
0.02728271484375,
0.01995849609375,
0.042449951171875,
0.0177459716796875,
-0.010833740234375,
0.07720947265625,
-0.00797271728515625,
-0.04913330078125,
0.0279388427734375,
-0.01174163818359375,
0.027862548828125,
0.040069580078125,
-0.0011577606201171875,
0.043365478515625,
0.005950927734375,
-0.0209808349609375,
0.0256195068359375,
-0.0216217041015625,
-0.0215911865234375,
0.0004394054412841797,
0.00788116455078125,
-0.015411376953125,
-0.008148193359375,
-0.0177764892578125,
-0.02166748046875,
0.0423583984375,
-0.010650634765625,
0.033935546875,
-0.0059814453125,
0.005542755126953125,
0.012908935546875,
-0.0014553070068359375,
0.0004134178161621094,
0.00897216796875,
0.004589080810546875,
0.0049591064453125,
-0.07232666015625,
-0.02581787109375,
0.0192718505859375,
0.01678466796875,
0.0625,
0.00772857666015625,
0.03460693359375,
0.0220794677734375,
-0.035491943359375,
0.016265869140625,
0.0275115966796875,
0.0616455078125,
-0.005847930908203125,
-0.01096343994140625,
-0.01194000244140625,
0.0166473388671875,
0.02069091796875,
-0.049713134765625,
0.03228759765625,
-0.0400390625,
-0.020843505859375,
-0.03936767578125,
0.007843017578125,
0.018035888671875,
0.0290985107421875,
0.00858306884765625,
0.0186309814453125,
-0.00027561187744140625,
0.006473541259765625,
-0.02838134765625,
-0.0081939697265625,
0.0018596649169921875,
-0.033721923828125,
-0.004669189453125,
0.006092071533203125,
-0.01348876953125,
0.042205810546875,
0.0131072998046875,
0.026885986328125,
0.01165008544921875,
-0.042449951171875,
0.00946807861328125,
0.045745849609375,
-0.00988006591796875,
-0.006336212158203125,
-0.0045166015625,
-0.024322509765625,
0.0177001953125,
-0.0110015869140625,
-0.0057830810546875,
-0.00414276123046875,
0.0254669189453125,
-0.00923919677734375,
0.0167999267578125,
0.017974853515625,
-0.011993408203125,
-0.0016870498657226562,
0.00461578369140625,
-0.034088134765625,
0.006107330322265625,
0.0008578300476074219,
0.032867431640625,
0.002811431884765625,
-0.0322265625,
-0.01436614990234375,
0.045806884765625,
0.00823974609375,
-0.021240234375,
-0.0001633167266845703,
-0.06756591796875,
-0.0159912109375,
-0.003009796142578125,
-0.0181732177734375,
-0.00853729248046875,
0.0059051513671875,
-0.02008056640625,
-0.0565185546875,
-0.00562286376953125,
-0.002071380615234375,
-0.039093017578125,
0.0355224609375,
-0.003570556640625,
-0.03472900390625,
-0.02362060546875,
-0.08551025390625,
0.06671142578125,
-0.0689697265625,
0.02667236328125,
0.081298828125,
0.005889892578125,
0.004886627197265625,
-0.00231170654296875,
0.0067291259765625,
-0.00513458251953125,
0.0172119140625,
-0.007366180419921875,
-0.016937255859375,
-0.039031982421875,
-0.01323699951171875,
-0.005340576171875,
-0.031982421875,
-0.01416778564453125,
-0.036773681640625,
-0.0199737548828125,
-0.0242919921875,
-0.059326171875,
-0.0035400390625,
-0.0528564453125,
-0.0843505859375,
0.055694580078125,
-0.061676025390625,
-0.0153350830078125,
-0.0076141357421875,
-0.0172271728515625,
0.036163330078125,
-0.027008056640625,
-0.0161285400390625,
-0.0504150390625,
-0.0574951171875,
-0.0638427734375,
0.037628173828125,
0.00811004638671875,
0.0253753662109375,
0.01277923583984375,
0.023468017578125,
0.005092620849609375,
-0.0161285400390625,
0.014251708984375,
0.028656005859375,
-0.02178955078125,
-0.055206298828125,
-0.0188140869140625,
0.004405975341796875,
0.016143798828125,
0.008331298828125,
-0.030670166015625,
0.01270294189453125,
-0.003345489501953125,
-0.036285400390625,
0.037750244140625,
-0.0234527587890625,
0.0379638671875,
-0.00852203369140625,
-0.0523681640625,
0.0250396728515625,
0.0345458984375,
-0.032806396484375,
0.01181793212890625,
-0.0115814208984375,
-0.0204620361328125,
-0.01540374755859375,
0.03228759765625,
-0.032928466796875,
-0.0239105224609375,
0.0032215118408203125,
-0.0345458984375,
-0.0295867919921875,
-0.01552581787109375,
-0.039825439453125,
0.05029296875,
0.0032196044921875,
0.0008859634399414062,
0.01495361328125,
0.01343536376953125,
-0.0211334228515625,
-0.003021240234375,
-0.0138702392578125,
-0.0018329620361328125,
-0.0150604248046875,
0.03363037109375,
-0.038116455078125,
-0.023040771484375,
0.031585693359375,
-0.03863525390625,
0.033416748046875,
-0.07659912109375,
-0.022491455078125,
-0.052642822265625,
0.0848388671875,
-0.07427978515625,
0.0142059326171875,
0.00598907470703125,
0.00626373291015625,
0.011627197265625,
-0.017303466796875,
-0.06964111328125,
-0.02349853515625,
-0.01125335693359375,
-0.0000054836273193359375,
-0.0285491943359375,
-0.004901885986328125,
0.0184478759765625,
-0.06561279296875,
0.014434814453125,
-0.03466796875,
0.0240631103515625,
-0.00942230224609375,
0.04302978515625,
-0.03411865234375,
0.0259552001953125,
-0.048126220703125,
0.01568603515625,
-0.0330810546875,
-0.024078369140625,
-0.004001617431640625,
-0.01001739501953125,
0.04443359375,
0.0281524658203125,
-0.0084228515625,
-0.01535797119140625,
0.0220794677734375,
0.0138702392578125,
0.0198822021484375,
-0.0244293212890625,
-0.016510009765625,
0.0030345916748046875,
-0.0203094482421875,
-0.025146484375,
-0.0113677978515625,
0.0024127960205078125,
-0.03125,
-0.035980224609375,
-0.040313720703125,
-0.030242919921875,
-0.00661468505859375,
-0.0138702392578125,
-0.0287933349609375,
-0.053070068359375,
-0.025970458984375,
-0.017730712890625,
-0.0020198822021484375,
-0.0163116455078125,
0.0017538070678710938,
-0.03045654296875,
-0.047576904296875,
0.01444244384765625,
0.00896453857421875,
-0.0167236328125,
0.0160980224609375,
0.0273284912109375,
0.02532958984375,
-0.021209716796875,
-0.049560546875,
0.00020372867584228516,
0.02130126953125,
0.0189056396484375,
0.02191162109375,
0.031829833984375,
-0.00849151611328125,
0.00778961181640625,
0.010498046875,
0.0150146484375,
0.018768310546875,
-0.035888671875,
0.01007843017578125,
-0.049652099609375,
0.0246429443359375,
0.029754638671875,
-0.007061004638671875,
0.0161285400390625,
-0.01739501953125,
-0.05029296875,
-0.01116180419921875,
0.06427001953125,
-0.014495849609375,
0.034515380859375,
-0.052154541015625,
-0.0177459716796875,
0.0028514862060546875,
-0.0220489501953125,
0.00823974609375,
0.0092315673828125,
-0.00012117624282836914,
-0.007152557373046875,
-0.00403594970703125,
-0.0249176025390625,
-0.00725555419921875,
0.014434814453125,
-0.00286865234375,
-0.0009946823120117188,
0.0171966552734375,
-0.029693603515625,
-0.0266265869140625,
-0.0292205810546875,
0.10430908203125,
0.01470947265625,
-0.0770263671875,
0.07623291015625,
-0.03253173828125,
0.029571533203125,
0.024627685546875,
0.002964019775390625,
0.0276336669921875,
0.0379638671875,
-0.004390716552734375,
-0.01189422607421875,
0.0109100341796875,
-0.0030612945556640625,
-0.04998779296875,
-0.002895355224609375,
-0.002166748046875,
-0.01322174072265625,
-0.01438140869140625,
0.043243408203125,
-0.0294036865234375,
0.01250457763671875,
-0.0009064674377441406,
0.06414794921875,
0.0931396484375,
-0.019805908203125,
-0.0021152496337890625,
0.040679931640625,
-0.0426025390625,
-0.0010242462158203125,
-0.00194549560546875,
0.004573822021484375,
0.034637451171875,
0.0316162109375,
0.0308074951171875,
0.04571533203125,
-0.007259368896484375,
-0.03802490234375,
-0.0574951171875,
-0.0272369384765625,
0.0531005859375,
-0.005039215087890625,
-0.05889892578125,
-0.031585693359375,
0.0211181640625,
0.041290283203125,
-0.0243988037109375,
0.01483917236328125,
-0.049072265625,
-0.015869140625,
-0.03118896484375,
0.0011148452758789062,
-0.03521728515625,
-0.0150909423828125,
-0.00736236572265625,
0.030426025390625,
-0.00783538818359375,
0.0176239013671875,
-0.02679443359375,
0.01531982421875,
-0.039398193359375,
-0.01335906982421875,
0.05389404296875,
-0.01090240478515625,
0.0101776123046875,
-0.06097412109375,
0.0189666748046875,
-0.07525634765625,
-0.0006818771362304688,
0.048736572265625,
0.0162811279296875,
-0.024688720703125,
-0.002414703369140625,
0.005214691162109375,
-0.007709503173828125,
0.02008056640625,
-0.0186920166015625,
-0.026031494140625,
-0.028167724609375,
0.029510498046875,
0.0213775634765625,
-0.01155853271484375,
-0.05926513671875,
-0.03155517578125,
0.0041961669921875,
0.034881591796875,
0.00710296630859375,
-0.020965576171875,
0.04071044921875,
0.00994873046875,
0.059173583984375,
0.01302337646484375,
0.031341552734375,
-0.0032711029052734375,
-0.0129852294921875,
-0.00960540771484375,
-0.06280517578125,
-0.01021575927734375,
0.005916595458984375,
-0.0166473388671875,
0.0738525390625,
0.045562744140625,
0.01256561279296875,
-0.040069580078125,
-0.01486968994140625,
-0.0009541511535644531,
-0.017242431640625,
0.0216064453125,
0.014617919921875,
-0.035247802734375,
-0.011383056640625,
-0.0261077880859375,
0.024658203125,
0.017181396484375,
-0.027557373046875,
0.0205230712890625,
-0.00875091552734375,
0.017730712890625,
0.028472900390625,
0.0132598876953125,
-0.0146331787109375,
0.02197265625,
-0.01898193359375,
0.01422119140625,
0.00409698486328125,
0.00628662109375,
0.024078369140625,
-0.00917816162109375,
-0.02545166015625,
0.0175323486328125,
0.008819580078125,
-0.0171966552734375,
-0.007595062255859375,
-0.0010051727294921875,
-0.0113677978515625,
-0.028961181640625,
0.0182342529296875,
0.015838623046875,
-0.0648193359375,
0.0128631591796875,
-0.00846099853515625,
0.03521728515625,
-0.004711151123046875,
0.007297515869140625,
-0.02685546875,
-0.0090484619140625,
0.01343536376953125,
0.004955291748046875,
-0.0138397216796875,
0.0101470947265625,
0.019378662109375,
-0.0010986328125,
0.003894805908203125,
0.057769775390625,
0.006778717041015625,
0.036285400390625,
-0.040557861328125,
-0.031707763671875,
0.0263519287109375,
-0.01446533203125,
-0.048492431640625,
0.019989013671875,
-0.033843994140625,
-0.04052734375,
0.004268646240234375,
-0.050323486328125,
0.0264129638671875,
0.04583740234375,
-0.00511932373046875,
-0.0138702392578125,
0.037567138671875,
-0.0198974609375,
0.0223846435546875,
-0.00211334228515625,
-0.018035888671875,
0.00838470458984375,
-0.02880859375,
-0.0008115768432617188,
-0.0276947021484375,
-0.0138092041015625,
0.0106201171875,
-0.0108795166015625,
-0.045013427734375,
-0.01372528076171875,
-0.0232086181640625,
0.049102783203125,
-0.0308074951171875,
0.000025153160095214844,
0.03411865234375,
0.0168304443359375,
-0.0242156982421875,
0.016876220703125,
0.0008883476257324219,
-0.046356201171875,
-0.05181884765625,
-0.0010461807250976562,
-0.07373046875,
0.030242919921875,
0.025726318359375,
-0.05859375,
0.09173583984375,
-0.01206207275390625,
0.0174407958984375,
0.01352691650390625,
0.0362548828125,
-0.033721923828125,
0.0087890625,
-0.03173828125,
0.0538330078125,
0.0008292198181152344,
0.038909912109375,
-0.021270751953125,
0.006877899169921875,
0.0209808349609375,
0.01003265380859375,
0.08416748046875,
0.036346435546875,
-0.0889892578125,
-0.016265869140625,
-0.0222015380859375,
-0.02178955078125,
-0.0208740234375,
0.097412109375,
0.007049560546875,
0.032012939453125,
0.06378173828125,
-0.01275634765625,
0.0421142578125,
0.0143890380859375,
-0.0039520263671875,
0.0283050537109375,
-0.01030731201171875,
-0.039398193359375,
-0.006206512451171875,
0.0108489990234375,
-0.06475830078125,
0.0178375244140625,
0.0222320556640625,
0.043121337890625,
0.0013322830200195312,
0.01143646240234375,
-0.0184173583984375,
0.05267333984375,
0.07659912109375,
-0.0321044921875,
0.040557861328125,
-0.019622802734375,
0.0014200210571289062,
0.05938720703125,
0.03741455078125,
0.0204315185546875,
-0.00405120849609375,
0.01532745361328125,
0.00876617431640625,
-0.005092620849609375,
0.033721923828125,
-0.034027099609375,
0.0181732177734375,
-0.11944580078125,
-0.06512451171875,
0.06109619140625,
0.0751953125,
-0.016998291015625,
-0.0643310546875,
0.01136016845703125,
0.01861572265625,
0.038177490234375,
0.048736572265625,
0.06866455078125,
-0.0168609619140625,
0.0250091552734375,
-0.052703857421875,
0.0007715225219726562,
0.0252532958984375,
0.004413604736328125,
-0.0190582275390625,
0.007747650146484375,
-0.00623321533203125,
0.01381683349609375,
-0.0318603515625,
0.0231170654296875,
0.0165252685546875,
0.002895355224609375,
-0.0073699951171875,
0.07073974609375,
0.02215576171875,
0.0075225830078125,
0.0010709762573242188,
0.0205535888671875,
0.005550384521484375,
-0.00255584716796875,
-0.03265380859375,
-0.08404541015625,
0.02911376953125,
0.03826904296875,
0.005443572998046875,
0.0032405853271484375,
0.03497314453125,
0.06292724609375,
0.00353240966796875,
-0.0162506103515625,
0.054412841796875,
0.006103515625,
0.01568603515625,
-0.005977630615234375,
-0.0296630859375,
-0.01219940185546875,
-0.03656005859375,
-0.0186767578125,
0.02734375,
0.004669189453125,
0.00860595703125,
0.03265380859375,
-0.006801605224609375,
-0.0241851806640625,
0.0014677047729492188,
-0.0208740234375,
0.0345458984375,
0.0045623779296875,
-0.10113525390625,
-0.021240234375,
-0.060302734375,
-0.039947509765625,
0.0478515625,
0.0416259765625,
-0.00948333740234375,
0.004390716552734375,
0.004276275634765625,
-0.007568359375,
0.051727294921875,
-0.023468017578125,
-0.01268768310546875,
0.01336669921875,
0.0162811279296875,
-0.004520416259765625,
-0.0307769775390625,
0.0025730133056640625,
0.006504058837890625,
0.01291656494140625,
-0.028411865234375,
0.09002685546875,
-0.03887939453125,
0.0019702911376953125,
0.04571533203125,
0.0008082389831542969,
0.01230621337890625,
0.0184326171875,
-0.0248565673828125,
-0.0309906005859375,
0.02008056640625,
-0.0038890838623046875,
-0.023223876953125,
0.034942626953125,
0.031158447265625,
-0.040191650390625,
0.01531219482421875,
0.0194854736328125,
-0.00821685791015625,
-0.021514892578125,
0.006298065185546875,
-0.035125732421875,
-0.0494384765625,
-0.07476806640625,
-0.0249786376953125,
0.0236968994140625,
0.0059814453125,
-0.0250396728515625,
0.056854248046875,
-0.016021728515625,
-0.0288543701171875,
-0.0028839111328125,
-0.0657958984375,
-0.01273345947265625,
0.01461029052734375,
-0.00513458251953125,
0.0065155029296875,
0.03497314453125,
-0.0140380859375,
-0.0150604248046875,
0.041229248046875,
-0.0147552490234375,
0.03363037109375,
-0.05084228515625,
0.021575927734375,
0.02581787109375,
0.0321044921875,
-0.01558685302734375,
0.003673553466796875,
0.0347900390625,
-0.011199951171875,
-0.0171356201171875,
-0.066162109375,
-0.035888671875,
-0.06060791015625,
0.0181121826171875,
0.03857421875,
-0.01433563232421875,
-0.026123046875,
-0.0853271484375,
-0.00971221923828125,
0.03631591796875,
-0.031402587890625,
-0.01160430908203125,
0.01435089111328125,
-0.06585693359375,
0.0296783447265625,
-0.0310211181640625,
-0.050537109375,
0.022491455078125,
0.01473236083984375,
0.005733489990234375,
0.01404571533203125,
-0.025665283203125,
-0.0189208984375,
0.0159912109375,
0.03253173828125,
0.04656982421875,
-0.020660400390625,
-0.0213623046875,
0.01415252685546875,
-0.027618408203125,
0.061492919921875,
-0.03680419921875,
0.0009183883666992188,
-0.0117950439453125,
-0.004611968994140625,
-0.018463134765625,
-0.038909912109375,
0.0112152099609375,
-0.0254974365234375,
-0.0298614501953125,
-0.0482177734375,
0.01509857177734375,
-0.0009274482727050781,
-0.040618896484375,
-0.043121337890625,
0.045196533203125,
-0.022186279296875,
-0.0208282470703125,
-0.11395263671875,
0.02081298828125,
0.0096282958984375,
0.01004791259765625,
-0.046112060546875,
0.031585693359375,
-0.053314208984375,
0.03948974609375,
0.0114898681640625,
-0.0254669189453125,
0.01345062255859375,
0.016754150390625,
-0.06549072265625,
0.0239410400390625,
0.0221405029296875,
-0.022613525390625,
0.05755615234375,
-0.01047515869140625,
0.0465087890625,
0.063232421875,
-0.040313720703125,
-0.00021159648895263672,
-0.031524658203125,
-0.035888671875,
-0.0206298828125,
-0.00968170166015625,
-0.0222625732421875,
-0.0235137939453125,
0.057281494140625,
0.05926513671875,
0.0133514404296875,
-0.03253173828125,
-0.026336669921875,
-0.041107177734375,
-0.04534912109375,
-0.01090240478515625,
0.03179931640625,
-0.08209228515625,
0.00624847412109375,
0.0305938720703125,
-0.0263214111328125,
0.01451873779296875,
0.035125732421875,
-0.055908203125,
0.0250701904296875,
0.0187225341796875,
-0.033203125,
-0.043243408203125,
0.03277587890625,
-0.004207611083984375,
-0.0187530517578125,
-0.030975341796875,
0.0028095245361328125,
-0.0154266357421875,
-0.052947998046875,
-0.01157379150390625,
0.004947662353515625,
0.004344940185546875,
-0.050872802734375,
0.01580810546875,
-0.000995635986328125,
0.056396484375,
-0.03668212890625,
-0.0171661376953125,
-0.0065155029296875,
0.0445556640625,
0.004913330078125,
0.056915283203125,
-0.0160980224609375,
0.042999267578125,
0.013671875,
0.01192474365234375,
-0.005336761474609375,
-0.0024509429931640625,
-0.031829833984375,
0.026031494140625,
-0.033599853515625,
0.000164031982421875,
-0.01190185546875,
-0.0212860107421875,
-0.003955841064453125,
0.0176849365234375,
-0.00952911376953125,
-0.046630859375,
0.03668212890625,
-0.013336181640625,
0.0057525634765625,
0.01409149169921875
] |
bf14ce93ba9f1bdfacda41d2d376a925049dcd6d
|
Wordpress Stackexchange
Q: How can i get count from query post How can i get the row counts in query post like mysql count(*).
$obj_name = new WP_Query($args);
while ($obj_name->have_posts()) : $obj_name->the_post();
// here i want to predict looping counts
endwhile;
How can i do this.
A: The accepted answer here is wrong which is also confirmed in my situation.
Please, compare from the referenced page:
$post_count The number of posts being displayed.
$found_posts The total number of posts found matching the current query parameters
This way, $post_count will show, for example, number of posts per page if there are more than one page of results. Only if total number is less than number of results per page it will match total amount.
The correct method to get total results number is:
$obj_name->found_posts.
|
Q: How can i get count from query post How can i get the row counts in query post like mysql count(*).
$obj_name = new WP_Query($args);
while ($obj_name->have_posts()) : $obj_name->the_post();
// here i want to predict looping counts
endwhile;
How can i do this.
A: The accepted answer here is wrong which is also confirmed in my situation.
Please, compare from the referenced page:
$post_count The number of posts being displayed.
$found_posts The total number of posts found matching the current query parameters
This way, $post_count will show, for example, number of posts per page if there are more than one page of results. Only if total number is less than number of results per page it will match total amount.
The correct method to get total results number is:
$obj_name->found_posts.
A: $num = $obj_name->post_count;
Reference: wp_query
A: To get the total number of posts WP_Query returns use "found_posts"
Here is the example -
<?php
$args = array(
'post_type' => 'post'
);
$the_query = new WP_Query( $args );
$totalpost = $the_query->found_posts;
?>
Use your custom post type name in place of 'post', you can also pass the category id too ( 'cat' => 4,)
|
wordpress
|
{
"language": "en",
"length": 194,
"provenance": "stackexchange_00019.jsonl.gz:411495",
"question_score": "25",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23557"
}
|
[
0.06292724609375,
0.0012941360473632812,
0.01471710205078125,
-0.0200653076171875,
0.01947021484375,
-0.03155517578125,
0.0626220703125,
-0.0185546875,
-0.00940704345703125,
0.030242919921875,
-0.0478515625,
0.00909423828125,
-0.053314208984375,
-0.007213592529296875,
-0.023345947265625,
-0.050750732421875,
0.043121337890625,
-0.044952392578125,
0.01336669921875,
-0.0121002197265625,
-0.001674652099609375,
0.007568359375,
0.06268310546875,
0.041015625,
0.004993438720703125,
0.015472412109375,
0.0653076171875,
-0.039154052734375,
0.02203369140625,
-0.00833892822265625,
0.017730712890625,
-0.0245819091796875,
0.0245513916015625,
-0.006198883056640625,
-0.002166748046875,
0.00027561187744140625,
0.019561767578125,
-0.00994110107421875,
0.004390716552734375,
0.026611328125,
0.0279693603515625,
-0.0175018310546875,
0.005462646484375,
-0.024169921875,
-0.0012722015380859375,
-0.0169830322265625,
0.02899169921875,
-0.0297088623046875,
0.027435302734375,
-0.0166015625,
-0.00830841064453125,
0.036529541015625,
-0.0023899078369140625,
-0.021209716796875,
-0.0172119140625,
0.0023288726806640625,
0.04974365234375,
-0.0243377685546875,
0.058258056640625,
-0.07757568359375,
-0.0711669921875,
-0.0333251953125,
0.060760498046875,
-0.0008649826049804688,
-0.04864501953125,
0.00870513916015625,
0.037384033203125,
-0.0035572052001953125,
-0.004444122314453125,
-0.07708740234375,
-0.00780487060546875,
0.0306243896484375,
-0.01447296142578125,
0.0164947509765625,
0.019012451171875,
-0.06396484375,
0.0103302001953125,
-0.029022216796875,
-0.007366180419921875,
0.0657958984375,
0.004856109619140625,
0.0013132095336914062,
-0.038330078125,
0.040252685546875,
-0.040191650390625,
0.0159149169921875,
-0.01509857177734375,
-0.0067596435546875,
0.01421356201171875,
-0.03369140625,
0.00012445449829101562,
0.0008473396301269531,
-0.029296875,
0.029022216796875,
-0.01493072509765625,
-0.035125732421875,
0.01739501953125,
0.0335693359375,
-0.023681640625,
-0.054901123046875,
-0.0214080810546875,
-0.01117706298828125,
-0.0836181640625,
0.005832672119140625,
0.0145111083984375,
0.034912109375,
0.0297088623046875,
0.035186767578125,
0.049530029296875,
0.01335906982421875,
0.01105499267578125,
0.0703125,
-0.048614501953125,
-0.004467010498046875,
-0.0400390625,
0.0215606689453125,
-0.054412841796875,
-0.0177154541015625,
-0.01366424560546875,
-0.01383209228515625,
-0.0168304443359375,
-0.004795074462890625,
-0.027130126953125,
-0.01174163818359375,
0.030792236328125,
-0.0191497802734375,
-0.022308349609375,
0.04583740234375,
-0.0265655517578125,
0.054412841796875,
-0.009246826171875,
-0.01183319091796875,
0.0007719993591308594,
0.024139404296875,
-0.020843505859375,
-0.021209716796875,
0.000698089599609375,
-0.0164031982421875,
0.00019419193267822266,
-0.007232666015625,
0.00916290283203125,
-0.0234222412109375,
-0.001178741455078125,
-0.006877899169921875,
0.0208587646484375,
0.023406982421875,
0.020751953125,
0.006130218505859375,
-0.01294708251953125,
-0.036041259765625,
0.0037441253662109375,
0.019561767578125,
0.0088958740234375,
0.0113677978515625,
-0.019744873046875,
0.010955810546875,
-0.0269317626953125,
-0.0004277229309082031,
0.006099700927734375,
0.01210784912109375,
0.060211181640625,
0.007350921630859375,
-0.0169830322265625,
0.0109100341796875,
-0.0340576171875,
-0.0211334228515625,
-0.019622802734375,
-0.0125732421875,
0.0226593017578125,
-0.042144775390625,
0.0156707763671875,
-0.00015473365783691406,
0.04180908203125,
-0.03387451171875,
-0.01248931884765625,
-0.0003533363342285156,
-0.0294036865234375,
-0.01302337646484375,
0.0328369140625,
-0.003826141357421875,
-0.016021728515625,
-0.0209503173828125,
0.0221099853515625,
0.00954437255859375,
-0.0135498046875,
0.0343017578125,
0.0231781005859375,
0.0157012939453125,
-0.03680419921875,
0.01103973388671875,
0.02178955078125,
0.0748291015625,
-0.0293426513671875,
0.04193115234375,
-0.003406524658203125,
-0.0192413330078125,
-0.01483154296875,
0.00024437904357910156,
-0.01270294189453125,
-0.031829833984375,
0.025146484375,
0.0019016265869140625,
0.00467681884765625,
0.01003265380859375,
-0.0234832763671875,
0.00843048095703125,
-0.0027103424072265625,
0.005298614501953125,
-0.0030765533447265625,
0.040557861328125,
0.0281524658203125,
0.008544921875,
-0.02734375,
-0.01434326171875,
-0.025299072265625,
-0.0196685791015625,
-0.031829833984375,
-0.022186279296875,
-0.03631591796875,
-0.01209259033203125,
-0.035430908203125,
-0.02435302734375,
-0.041351318359375,
0.0279388427734375,
0.05908203125,
-0.0289154052734375,
-0.0087432861328125,
-0.036956787109375,
0.050445556640625,
-0.0198974609375,
0.0029811859130859375,
0.04278564453125,
0.026458740234375,
0.04132080078125,
-0.0118560791015625,
-0.00899505615234375,
-0.0025177001953125,
-0.05621337890625,
0.00888824462890625,
0.039642333984375,
0.03936767578125,
0.0246124267578125,
0.0108184814453125,
0.0024814605712890625,
0.062408447265625,
-0.0191802978515625,
0.0193023681640625,
-0.01389312744140625,
-0.004405975341796875,
0.045074462890625,
0.018951416015625,
0.00501251220703125,
0.016937255859375,
-0.043853759765625,
-0.00751495361328125,
0.045806884765625,
0.02178955078125,
0.04888916015625,
-0.05340576171875,
0.03851318359375,
-0.0185089111328125,
-0.01174163818359375,
-0.0068206787109375,
-0.0272979736328125,
-0.004703521728515625,
0.01349639892578125,
0.0184326171875,
0.0196990966796875,
-0.014373779296875,
0.0106353759765625,
0.01056671142578125,
-0.0134735107421875,
0.00432586669921875,
-0.021270751953125,
-0.0863037109375,
0.018646240234375,
-0.05157470703125,
0.034210205078125,
0.041595458984375,
-0.0282440185546875,
-0.004497528076171875,
0.006420135498046875,
-0.0380859375,
-0.0106353759765625,
0.0102386474609375,
-0.060699462890625,
-0.00041174888610839844,
0.0168304443359375,
-0.00485992431640625,
0.011383056640625,
0.0160980224609375,
0.053619384765625,
0.0252685546875,
0.027923583984375,
-0.01922607421875,
0.01198577880859375,
0.0166015625,
-0.052337646484375,
0.0433349609375,
-0.051513671875,
0.04833984375,
0.060150146484375,
-0.038726806640625,
0.035736083984375,
-0.0011730194091796875,
-0.01439666748046875,
0.0027027130126953125,
0.018585205078125,
-0.00441741943359375,
-0.02777099609375,
-0.04833984375,
0.01212310791015625,
0.0297698974609375,
0.0843505859375,
-0.01494598388671875,
-0.041412353515625,
0.004032135009765625,
0.03179931640625,
-0.10198974609375,
-0.141845703125,
0.01142120361328125,
-0.039642333984375,
-0.02301025390625,
0.01509857177734375,
-0.0231781005859375,
0.00046133995056152344,
0.0211944580078125,
-0.005767822265625,
-0.0173797607421875,
-0.0099334716796875,
-0.043853759765625,
-0.040618896484375,
-0.053924560546875,
0.0413818359375,
0.011383056640625,
0.030181884765625,
-0.00930023193359375,
0.07147216796875,
0.0010509490966796875,
-0.04534912109375,
-0.0223236083984375,
0.02130126953125,
-0.03436279296875,
-0.043975830078125,
-0.007843017578125,
0.003162384033203125,
-0.02581787109375,
0.013092041015625,
-0.01062774658203125,
-0.01189422607421875,
-0.0011148452758789062,
-0.00821685791015625,
-0.01158905029296875,
-0.0290985107421875,
0.01506805419921875,
0.0191802978515625,
-0.016998291015625,
0.009002685546875,
0.03863525390625,
-0.03448486328125,
-0.0285797119140625,
-0.008636474609375,
-0.04583740234375,
-0.024871826171875,
0.042938232421875,
0.0119476318359375,
-0.0210723876953125,
-0.01873779296875,
0.03326416015625,
0.0183563232421875,
-0.0164794921875,
-0.0233154296875,
0.0732421875,
0.02825927734375,
0.0703125,
-0.01415252685546875,
-0.0253448486328125,
-0.039215087890625,
0.026336669921875,
-0.0203704833984375,
0.01226806640625,
-0.0118865966796875,
0.0299224853515625,
-0.0194244384765625,
-0.06842041015625,
0.05828857421875,
0.05029296875,
0.01187896728515625,
-0.008331298828125,
-0.0537109375,
0.020751953125,
0.0958251953125,
0.00042057037353515625,
-0.061859130859375,
-0.03619384765625,
0.00971221923828125,
-0.0002455711364746094,
-0.02294921875,
0.06170654296875,
-0.02935791015625,
-0.02911376953125,
-0.0214385986328125,
-0.026641845703125,
-0.0261993408203125,
-0.03717041015625,
0.00775146484375,
-0.04949951171875,
-0.020355224609375,
0.0248260498046875,
-0.035491943359375,
0.0158538818359375,
-0.00266265869140625,
-0.0223846435546875,
0.006931304931640625,
-0.019439697265625,
-0.0372314453125,
-0.01059722900390625,
-0.00748443603515625,
0.00024390220642089844,
0.01529693603515625,
-0.00757598876953125,
0.010528564453125,
0.0019550323486328125,
0.0197906494140625,
0.026885986328125,
0.033172607421875,
-0.0101318359375,
-0.000751495361328125,
0.005504608154296875,
-0.031494140625,
-0.0097198486328125,
-0.039215087890625,
0.0052032470703125,
-0.03485107421875,
-0.00978851318359375,
0.00037479400634765625,
-0.051605224609375,
0.0159759521484375,
-0.06219482421875,
-0.010589599609375,
0.0038013458251953125,
-0.0111236572265625,
0.0286712646484375,
0.0157470703125,
-0.017303466796875,
0.0232391357421875,
-0.0071258544921875,
0.023590087890625,
0.044036865234375,
0.0286407470703125,
-0.0169677734375,
-0.0014047622680664062,
0.061279296875,
0.00826263427734375,
-0.0364990234375,
-0.0555419921875,
-0.00794219970703125,
0.05072021484375,
-0.0150146484375,
0.0192413330078125,
0.031890869140625,
-0.0333251953125,
0.047271728515625,
0.025787353515625,
-0.0231781005859375,
-0.01142120361328125,
0.034698486328125,
0.003566741943359375,
-0.0098114013671875,
-0.007534027099609375,
-0.03045654296875,
0.040374755859375,
0.038177490234375,
-0.01148223876953125,
0.005199432373046875,
0.0228424072265625,
0.024658203125,
-0.03900146484375,
0.0137939453125,
-0.00604248046875,
-0.03155517578125,
0.00937652587890625,
-0.0277099609375,
0.01018524169921875,
0.01464080810546875,
0.00048351287841796875,
0.007556915283203125,
0.0194854736328125,
0.006702423095703125,
0.0386962890625,
0.03680419921875,
-0.0034351348876953125,
0.031829833984375,
0.02984619140625,
-0.0099029541015625,
0.0013666152954101562,
-0.008941650390625,
0.0196685791015625,
-0.01898193359375,
-0.07354736328125,
0.0256195068359375,
-0.0015668869018554688,
-0.000020503997802734375,
0.04656982421875,
0.032135009765625,
0.0626220703125,
0.0574951171875,
-0.026611328125,
-0.02520751953125,
0.046630859375,
-0.0182342529296875,
-0.0543212890625,
0.0186767578125,
-0.0239105224609375,
0.01474761962890625,
0.0218505859375,
0.09356689453125,
-0.0095062255859375,
0.065185546875,
-0.036468505859375,
0.0178680419921875,
0.00418853759765625,
0.058990478515625,
0.031402587890625,
-0.06658935546875,
-0.0009975433349609375,
0.0292510986328125,
-0.02142333984375,
-0.0293426513671875,
0.00174713134765625,
0.0278167724609375,
0.029754638671875,
0.01303863525390625,
-0.0117340087890625,
0.011474609375,
-0.0196685791015625,
-0.021636962890625,
0.00359344482421875,
0.01032257080078125,
0.00548553466796875,
-0.0479736328125,
-0.01432037353515625,
0.03240966796875,
0.042999267578125,
0.004680633544921875,
-0.01213836669921875,
-0.006328582763671875,
0.040435791015625,
-0.048248291015625,
0.034271240234375,
-0.007801055908203125,
-0.0010242462158203125,
-0.03912353515625,
-0.01104736328125,
0.0198822021484375,
0.00794219970703125,
-0.03009033203125,
0.002315521240234375,
-0.02252197265625,
0.03515625,
-0.016693115234375,
0.051727294921875,
-0.0160369873046875,
-0.029388427734375,
-0.0181884765625,
0.00998687744140625,
0.045013427734375,
0.040130615234375,
-0.0347900390625,
-0.024749755859375,
-0.03033447265625,
-0.031097412109375,
0.06573486328125,
0.02862548828125,
-0.035888671875,
-0.01541900634765625,
-0.004077911376953125,
-0.0004756450653076172,
-0.01287841796875,
-0.02984619140625,
-0.055206298828125,
0.00803375244140625,
0.039642333984375,
-0.00681304931640625,
-0.0011568069458007812,
0.08087158203125,
-0.00894927978515625,
0.0396728515625,
0.0183563232421875,
0.05401611328125,
0.003997802734375,
-0.028839111328125,
0.0225067138671875,
-0.016357421875,
-0.0251922607421875,
-0.008209228515625,
-0.02362060546875,
-0.0631103515625,
-0.031463623046875,
-0.01727294921875,
0.00539398193359375,
0.0002639293670654297,
0.01113128662109375,
-0.00624847412109375,
-0.033843994140625,
0.00890350341796875,
-0.0120697021484375,
0.040740966796875,
0.0135040283203125,
-0.01163482666015625,
-0.03533935546875,
0.0026607513427734375,
-0.0136871337890625,
0.01511383056640625,
-0.0272979736328125,
-0.024078369140625,
-0.032440185546875,
0.040374755859375,
0.0833740234375,
0.025299072265625,
0.0264892578125,
0.030914306640625,
-0.006229400634765625,
-0.0223236083984375,
0.0029392242431640625,
-0.0087432861328125,
0.01549530029296875,
0.05645751953125,
0.0033626556396484375,
-0.0098419189453125,
0.03594970703125,
-0.0185546875,
0.00897216796875,
-0.0004715919494628906,
0.0185089111328125,
-0.00678253173828125,
-0.0072021484375,
-0.023956298828125,
-0.036529541015625,
0.0300140380859375,
0.0063629150390625,
0.00028586387634277344,
-0.0257720947265625,
0.057647705078125,
-0.004497528076171875,
-0.0025310516357421875,
0.0297393798828125,
-0.00621795654296875,
-0.017578125,
-0.0260772705078125,
0.0567626953125,
0.00487518310546875,
-0.0189208984375,
0.0161895751953125,
-0.00160980224609375,
-0.00330352783203125,
-0.0223846435546875,
0.01139068603515625,
-0.03216552734375,
0.04290771484375,
-0.035888671875,
0.025482177734375,
-0.07855224609375,
0.040435791015625,
0.00811767578125,
0.0205078125,
0.007221221923828125,
0.0731201171875,
-0.01824951171875,
0.01531219482421875,
0.047576904296875,
-0.03167724609375,
-0.04327392578125,
0.0244140625,
0.0250701904296875,
0.024383544921875,
-0.060455322265625,
0.01357269287109375,
-0.08544921875,
0.039154052734375,
-0.00884246826171875,
-0.004894256591796875,
0.0560302734375,
-0.02325439453125,
-0.021881103515625,
0.00408172607421875,
0.0284576416015625,
0.019683837890625,
-0.0166778564453125,
0.007091522216796875,
-0.04010009765625,
0.02362060546875,
-0.00771331787109375,
0.0341796875,
-0.004673004150390625,
-0.009185791015625,
-0.045074462890625,
0.08355712890625,
-0.0227813720703125,
0.0080108642578125,
0.005023956298828125,
0.03546142578125,
0.0035190582275390625,
0.026336669921875,
-0.07769775390625,
0.06317138671875,
-0.0176544189453125,
0.07012939453125,
-0.07855224609375,
-0.00801849365234375,
0.0102996826171875,
0.0197906494140625,
0.0235137939453125,
-0.010711669921875,
0.01995849609375,
-0.025390625,
0.0177154541015625,
0.05694580078125,
-0.01348876953125,
-0.01030731201171875,
0.02935791015625,
0.0550537109375,
0.0950927734375,
-0.03912353515625,
0.03228759765625,
0.0022430419921875,
0.034393310546875,
0.045166015625,
0.0247955322265625,
0.0201873779296875,
0.0026683807373046875,
-0.007633209228515625,
-0.0261383056640625,
-0.0009336471557617188,
0.0211639404296875,
0.0022125244140625,
0.022308349609375,
0.05902099609375,
0.06781005859375,
-0.11322021484375,
-0.0498046875,
-0.036407470703125,
0.049407958984375,
-0.01279449462890625,
0.022857666015625,
0.0106353759765625,
0.00882720947265625,
0.08868408203125,
-0.02777099609375,
-0.00719451904296875,
0.01430511474609375,
-0.01490020751953125,
0.056640625,
0.016876220703125,
0.01910400390625,
-0.04290771484375,
-0.01483154296875,
0.01166534423828125,
0.0716552734375,
-0.04296875,
-0.01334381103515625,
0.0166168212890625,
-0.0014190673828125,
-0.0167694091796875,
-0.0161285400390625,
-0.01432037353515625,
0.055908203125,
0.051422119140625,
-0.0025787353515625,
-0.044586181640625,
0.00295257568359375,
-0.006145477294921875,
0.0085601806640625,
0.011566162109375,
0.048126220703125,
-0.03564453125,
-0.006946563720703125,
-0.0025768280029296875,
-0.0026988983154296875,
0.039276123046875,
0.0059051513671875,
0.01491546630859375,
-0.0765380859375,
-0.003070831298828125,
-0.0201568603515625,
0.0238189697265625,
0.000560760498046875,
0.027557373046875,
-0.033782958984375,
-0.02117919921875,
0.0160369873046875,
0.031707763671875,
0.01123809814453125,
-0.0018787384033203125,
0.00704193115234375,
0.0192413330078125,
-0.0099029541015625,
-0.0068359375,
0.0191192626953125,
-0.02392578125,
-0.02130126953125,
-0.01030731201171875,
0.0140228271484375,
0.032196044921875,
0.0057830810546875,
0.01274871826171875,
0.04461669921875,
0.018585205078125,
0.0004973411560058594,
0.00998687744140625,
-0.003696441650390625,
-0.0401611328125,
0.012664794921875,
-0.007663726806640625,
0.0531005859375,
0.007556915283203125,
-0.06781005859375,
-0.00948333740234375,
-0.01058197021484375,
-0.041748046875,
0.02069091796875,
0.032012939453125,
-0.041168212890625,
0.033538818359375,
0.0016450881958007812,
-0.01134490966796875,
0.027618408203125,
-0.007030487060546875,
0.01824951171875,
0.039337158203125,
0.01279449462890625,
0.0208892822265625,
-0.01763916015625,
-0.04296875,
0.0187530517578125,
0.04302978515625,
0.010467529296875,
0.007114410400390625,
0.000046253204345703125,
0.02886962890625,
-0.0233612060546875,
-0.0055999755859375,
-0.00039267539978027344,
-0.015625,
0.032958984375,
0.0159912109375,
-0.01177215576171875,
-0.02349853515625,
-0.031097412109375,
0.006603240966796875,
0.043060302734375,
-0.0252227783203125,
0.004077911376953125,
-0.01678466796875,
0.0192108154296875,
-0.0110626220703125,
-0.02899169921875,
-0.0321044921875,
0.043426513671875,
0.055694580078125,
-0.0233917236328125,
0.018524169921875,
-0.0311737060546875,
0.0172119140625,
0.056671142578125,
-0.041534423828125,
-0.03546142578125,
0.0411376953125,
-0.08709716796875,
0.0697021484375,
0.034027099609375,
-0.060638427734375,
0.0186920166015625,
0.0191192626953125,
-0.01470184326171875,
0.01209259033203125,
0.0255126953125,
-0.023773193359375,
0.0300140380859375,
-0.01230621337890625,
-0.0020694732666015625,
0.0004405975341796875,
0.053741455078125,
-0.01361846923828125,
0.03668212890625,
-0.04058837890625,
0.01629638671875,
0.02838134765625,
0.040557861328125,
-0.01473236083984375,
-0.0283203125,
-0.0003693103790283203,
-0.009033203125,
0.004642486572265625,
-0.00481414794921875,
0.0100250244140625,
-0.016204833984375,
0.0012979507446289062,
-0.0029354095458984375,
-0.02044677734375,
0.029754638671875,
-0.036163330078125,
-0.02276611328125,
-0.034637451171875,
-0.054229736328125,
0.0229644775390625,
0.0265960693359375,
-0.033172607421875,
0.0224609375,
-0.0305328369140625,
-0.050201416015625,
-0.002643585205078125,
0.032073974609375,
0.0277862548828125,
-0.036376953125,
-0.01087188720703125,
0.01422119140625,
0.01004791259765625,
0.055511474609375,
0.0239410400390625,
0.0002465248107910156,
0.03436279296875,
0.01512908935546875,
-0.03668212890625,
-0.08172607421875,
0.018890380859375,
-0.051727294921875,
0.00830078125,
-0.020782470703125,
0.0189056396484375,
0.019500732421875,
-0.022491455078125,
-0.036346435546875,
0.041839599609375,
-0.0175018310546875,
-0.0170440673828125,
-0.07867431640625,
-0.0006070137023925781,
0.01708984375,
-0.004383087158203125,
-0.0274810791015625,
0.01389312744140625,
-0.052093505859375,
0.026214599609375,
-0.01043701171875,
-0.0051116943359375,
0.0400390625,
-0.0238037109375,
-0.04510498046875,
-0.0080108642578125,
-0.0136566162109375,
-0.0163421630859375,
0.025848388671875,
-0.0139617919921875,
0.032073974609375,
0.0482177734375,
-0.044036865234375,
0.00656890869140625,
-0.020538330078125,
0.0075225830078125,
-0.01157379150390625,
-0.0330810546875,
0.0010652542114257812,
-0.00926971435546875,
0.0163116455078125,
0.025054931640625,
0.005786895751953125,
-0.038726806640625,
-0.050201416015625,
-0.03582763671875,
-0.0273895263671875,
-0.023895263671875,
0.0261993408203125,
-0.0780029296875,
0.0022144317626953125,
-0.0021419525146484375,
-0.01861572265625,
-0.0055084228515625,
-0.00914764404296875,
-0.03961181640625,
-0.02032470703125,
-0.06829833984375,
-0.0186920166015625,
-0.029541015625,
-0.0017309188842773438,
0.0006971359252929688,
-0.0215606689453125,
-0.0163726806640625,
-0.0101165771484375,
0.00951385498046875,
-0.0311126708984375,
0.008148193359375,
-0.00665283203125,
-0.0077362060546875,
0.01183319091796875,
0.0233306884765625,
0.01090240478515625,
-0.03363037109375,
-0.004589080810546875,
0.00859832763671875,
0.0017290115356445312,
0.0186614990234375,
0.0005674362182617188,
0.015899658203125,
0.007305145263671875,
-0.0001722574234008789,
-0.011138916015625,
0.039398193359375,
0.004146575927734375,
0.042266845703125,
-0.00931549072265625,
0.05096435546875,
-0.0022430419921875,
-0.0176544189453125,
0.01282501220703125,
-0.0289306640625,
-0.00844573974609375,
0.009613037109375,
-0.040496826171875,
-0.03985595703125,
0.0245513916015625,
0.07220458984375,
-0.00348663330078125,
0.013519287109375
] |
c162af3f8fc0231385588414a76d308aa83411fd
|
Wordpress Stackexchange
Q: get term by id without taxonomy Can I get the term by its id without knowing to which taxonomy it belongs?
I have a meta field that stores term ids, but doesn't store the taxonomy. However, all the get_term function have taxonomy parameter marked as required.
Maybe I can get the taxonomy of the term by its (term's) id somehow?
A: I accepted One Trick Pony's answer because it got me on the right track and it does answer my question.
However, in the end I am using this, it returns full term object with it's taxonomy fields. Though it's a bit hacky...
/**
* Get ther without khowing it's taxonomy. Not very nice, though.
*
* @uses type $wpdb
* @uses get_term()
* @param int|object $term
* @param string $output
* @param string $filter
*/
function &get_term_by_id($term, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$null = null;
if ( empty($term) ) {
$error = new WP_Error('invalid_term', __('Empty Term'));
return $error;
}
$_tax = $wpdb->get_row( $wpdb->prepare( "SELECT t.* FROM $wpdb->term_taxonomy AS t WHERE t.term_id = %s LIMIT 1", $term) );
$taxonomy = $_tax->taxonomy;
return get_term($term, $taxonomy, $output, $filter);
}
|
Q: get term by id without taxonomy Can I get the term by its id without knowing to which taxonomy it belongs?
I have a meta field that stores term ids, but doesn't store the taxonomy. However, all the get_term function have taxonomy parameter marked as required.
Maybe I can get the taxonomy of the term by its (term's) id somehow?
A: I accepted One Trick Pony's answer because it got me on the right track and it does answer my question.
However, in the end I am using this, it returns full term object with it's taxonomy fields. Though it's a bit hacky...
/**
* Get ther without khowing it's taxonomy. Not very nice, though.
*
* @uses type $wpdb
* @uses get_term()
* @param int|object $term
* @param string $output
* @param string $filter
*/
function &get_term_by_id($term, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$null = null;
if ( empty($term) ) {
$error = new WP_Error('invalid_term', __('Empty Term'));
return $error;
}
$_tax = $wpdb->get_row( $wpdb->prepare( "SELECT t.* FROM $wpdb->term_taxonomy AS t WHERE t.term_id = %s LIMIT 1", $term) );
$taxonomy = $_tax->taxonomy;
return get_term($term, $taxonomy, $output, $filter);
}
A: Yes, but you need you make your own SQL query.
A modified version of WP's get_term():
function &get_term_by_id_only($term, $output = OBJECT, $filter = 'raw') {
global $wpdb;
$null = null;
if ( empty($term) ) {
$error = new WP_Error('invalid_term', __('Empty Term'));
return $error;
}
if ( is_object($term) && empty($term->filter) ) {
wp_cache_add($term->term_id, $term, 'my_custom_queries');
$_term = $term;
} else {
if ( is_object($term) )
$term = $term->term_id;
$term = (int) $term;
if ( ! $_term = wp_cache_get($term, 'my_custom_queries') ) {
$_term = $wpdb->get_row( $wpdb->prepare( "SELECT t.* FROM $wpdb->terms AS t WHERE t.term_id = %s LIMIT 1", $term) );
if ( ! $_term )
return $null;
wp_cache_add($term, $_term, 'my_custom_queries');
}
}
if ( $output == OBJECT ) {
return $_term;
} elseif ( $output == ARRAY_A ) {
$__term = get_object_vars($_term);
return $__term;
} elseif ( $output == ARRAY_N ) {
$__term = array_values(get_object_vars($_term));
return $__term;
} else {
return $_term;
}
}
Probably not a good idea. Try to handle the tax too in your meta fields...
A: This is a very old question, but I'm leaving the answer using only a WP method. It's possible to do it with [get_terms( WP_Term_Query_array )][1] using the include param (an array of the terms ids):
$terms_ids = [ 0, 1, 2 ];
$terms = get_terms( array( 'include' => $terms_ids ) );
The method returns an array of WP Term objects.
More information about the WP_Term_Query object and its params.
|
wordpress
|
{
"language": "en",
"length": 430,
"provenance": "stackexchange_00019.jsonl.gz:411501",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23571"
}
|
[
0.032073974609375,
0.0035037994384765625,
-0.001399993896484375,
-0.027252197265625,
0.0406494140625,
-0.01873779296875,
0.04449462890625,
-0.003993988037109375,
0.013824462890625,
0.010467529296875,
-0.058868408203125,
-0.01554107666015625,
-0.04132080078125,
-0.01043701171875,
-0.0288848876953125,
-0.0687255859375,
0.033111572265625,
-0.0220184326171875,
0.025634765625,
-0.0055084228515625,
0.0230560302734375,
0.0140228271484375,
0.033447265625,
0.01364898681640625,
0.04388427734375,
-0.0274200439453125,
0.0421142578125,
-0.01056671142578125,
0.0188751220703125,
-0.0095977783203125,
0.02880859375,
-0.0213165283203125,
-0.0116424560546875,
-0.0014505386352539062,
0.045806884765625,
-0.0093536376953125,
-0.00455474853515625,
0.01708984375,
0.032440185546875,
0.0251922607421875,
0.042694091796875,
-0.0164031982421875,
-0.058868408203125,
0.044189453125,
-0.0511474609375,
-0.04681396484375,
0.0236968994140625,
-0.01494598388671875,
0.023101806640625,
-0.0026493072509765625,
0.034942626953125,
0.017822265625,
0.03955078125,
0.0240020751953125,
-0.024993896484375,
-0.006397247314453125,
0.00872802734375,
-0.043365478515625,
0.0086669921875,
-0.035675048828125,
-0.0100555419921875,
-0.005725860595703125,
0.043609619140625,
0.031005859375,
0.0011463165283203125,
0.034210205078125,
0.02581787109375,
0.02490234375,
-0.03839111328125,
-0.00189971923828125,
0.0008702278137207031,
-0.047637939453125,
0.004817962646484375,
0.0207977294921875,
-0.0399169921875,
-0.08612060546875,
0.0455322265625,
-0.048980712890625,
-0.00379180908203125,
0.031280517578125,
0.00820159912109375,
-0.027862548828125,
-0.05706787109375,
0.048309326171875,
-0.01654052734375,
0.06005859375,
-0.0194549560546875,
-0.02911376953125,
-0.0243988037109375,
-0.033294677734375,
-0.004657745361328125,
-0.0284423828125,
-0.039581298828125,
0.006336212158203125,
0.004344940185546875,
-0.05108642578125,
-0.0189971923828125,
0.0261383056640625,
-0.052581787109375,
-0.00194549560546875,
-0.0224609375,
-0.02044677734375,
0.00878143310546875,
-0.04052734375,
0.0131072998046875,
-0.000766754150390625,
-0.00489044189453125,
-0.03326416015625,
0.0225372314453125,
0.0279998779296875,
-0.002227783203125,
0.006195068359375,
-0.005954742431640625,
-0.00466156005859375,
-0.0195465087890625,
0.0094757080078125,
-0.02471923828125,
-0.01538848876953125,
-0.018798828125,
-0.018218994140625,
0.01318359375,
0.02734375,
-0.01328277587890625,
0.00586700439453125,
-0.0027599334716796875,
-0.0071563720703125,
-0.0203094482421875,
-0.019866943359375,
-0.009796142578125,
-0.00542449951171875,
-0.039886474609375,
0.019744873046875,
0.068359375,
0.0400390625,
0.02056884765625,
-0.0135498046875,
-0.0006537437438964844,
0.00203704833984375,
-0.006900787353515625,
-0.0232696533203125,
0.036468505859375,
0.004238128662109375,
0.008056640625,
-0.00199127197265625,
-0.0273590087890625,
0.01678466796875,
0.0222625732421875,
0.004955291748046875,
-0.03253173828125,
-0.0147552490234375,
-0.0205230712890625,
-0.0071563720703125,
0.053466796875,
0.0213623046875,
-0.047637939453125,
-0.01800537109375,
0.057891845703125,
-0.045257568359375,
-0.048797607421875,
-0.08990478515625,
0.03192138671875,
-0.017913818359375,
-0.023895263671875,
0.00896453857421875,
-0.018829345703125,
0.0101776123046875,
-0.0068359375,
-0.0026683807373046875,
0.0171661376953125,
0.034332275390625,
0.074951171875,
-0.0230712890625,
0.0206298828125,
0.0007519721984863281,
-0.014556884765625,
-0.0233001708984375,
-0.0289306640625,
0.01334381103515625,
0.01763916015625,
-0.01416015625,
-0.02392578125,
-0.0364990234375,
0.0049285888671875,
0.01331329345703125,
-0.034942626953125,
0.0504150390625,
0.0014085769653320312,
0.0789794921875,
0.004932403564453125,
0.017425537109375,
-0.0029697418212890625,
0.0125274658203125,
-0.07489013671875,
0.0006227493286132812,
0.03955078125,
0.0023174285888671875,
-0.034454345703125,
-0.0194549560546875,
0.0118255615234375,
-0.0265045166015625,
0.041961669921875,
0.002307891845703125,
-0.01302337646484375,
-0.0264739990234375,
-0.09808349609375,
-0.01849365234375,
-0.0170745849609375,
0.032470703125,
-0.0295257568359375,
0.0438232421875,
0.031707763671875,
0.0022602081298828125,
-0.038909912109375,
0.005733489990234375,
-0.0033702850341796875,
-0.0226593017578125,
-0.0189971923828125,
0.014404296875,
0.0052947998046875,
0.01229095458984375,
-0.00405120849609375,
-0.003604888916015625,
-0.0117034912109375,
0.007511138916015625,
0.005157470703125,
0.015869140625,
-0.0202789306640625,
0.00021898746490478516,
0.0252838134765625,
0.00916290283203125,
-0.000988006591796875,
-0.0033435821533203125,
0.028961181640625,
0.0219573974609375,
0.004192352294921875,
0.0082244873046875,
0.0322265625,
-0.1260986328125,
0.0207977294921875,
0.05059814453125,
0.034027099609375,
0.0208587646484375,
-0.03955078125,
-0.0305938720703125,
0.049468994140625,
-0.049468994140625,
-0.01386260986328125,
-0.01132965087890625,
0.002758026123046875,
0.036224365234375,
0.0188446044921875,
0.007190704345703125,
0.014739990234375,
0.03546142578125,
-0.01406097412109375,
0.0276336669921875,
-0.0268096923828125,
0.01287078857421875,
0.01126861572265625,
-0.0006518363952636719,
-0.007293701171875,
-0.0141448974609375,
0.01085662841796875,
-0.0093536376953125,
0.00006777048110961914,
0.027069091796875,
0.0222930908203125,
0.031097412109375,
-0.0184478759765625,
-0.00701141357421875,
0.00982666015625,
0.022674560546875,
0.004261016845703125,
0.035797119140625,
0.0350341796875,
-0.00811767578125,
-0.0175323486328125,
-0.0220947265625,
0.01053619384765625,
0.011077880859375,
0.01186370849609375,
0.06524658203125,
0.003009796142578125,
-0.01812744140625,
-0.0232391357421875,
-0.038421630859375,
-0.005619049072265625,
0.011810302734375,
-0.066162109375,
-0.035003662109375,
-0.01090240478515625,
0.0675048828125,
-0.0245208740234375,
0.0278778076171875,
-0.023895263671875,
0.028656005859375,
-0.029022216796875,
-0.0156402587890625,
0.0133056640625,
-0.0252227783203125,
0.02294921875,
0.048614501953125,
0.01091766357421875,
-0.004180908203125,
0.0153656005859375,
-0.04827880859375,
0.0182037353515625,
0.020904541015625,
-0.00499725341796875,
0.0106964111328125,
-0.09197998046875,
0.006259918212890625,
0.018829345703125,
0.07061767578125,
-0.035125732421875,
-0.066650390625,
-0.01812744140625,
0.00975799560546875,
-0.05615234375,
-0.032379150390625,
0.0146026611328125,
0.00507354736328125,
-0.0230560302734375,
-0.02374267578125,
0.003787994384765625,
0.0050048828125,
-0.044097900390625,
-0.01198577880859375,
0.0479736328125,
-0.047943115234375,
-0.07684326171875,
-0.0509033203125,
-0.08209228515625,
-0.0206756591796875,
0.00867462158203125,
0.00324249267578125,
0.014556884765625,
0.039794921875,
0.020721435546875,
-0.024169921875,
0.03759765625,
0.057708740234375,
-0.02423095703125,
0.026641845703125,
-0.0002448558807373047,
-0.0291900634765625,
-0.037322998046875,
0.0014019012451171875,
-0.006855010986328125,
-0.01114654541015625,
0.0133819580078125,
0.00046753883361816406,
-0.00608062744140625,
0.004772186279296875,
0.052734375,
-0.0281219482421875,
-0.0213470458984375,
0.037933349609375,
0.05352783203125,
-0.00887298583984375,
-0.000244140625,
-0.01444244384765625,
-0.0196990966796875,
0.04754638671875,
-0.004032135009765625,
-0.0096893310546875,
0.02374267578125,
0.0003342628479003906,
-0.0060882568359375,
0.005153656005859375,
-0.054534912109375,
-0.00815582275390625,
0.043243408203125,
0.00218963623046875,
0.010498046875,
0.032379150390625,
0.0154571533203125,
-0.01446533203125,
0.0172882080078125,
0.00484466552734375,
0.040985107421875,
0.01071929931640625,
0.002704620361328125,
-0.037139892578125,
-0.0714111328125,
0.046356201171875,
-0.054534912109375,
0.0030155181884765625,
-0.06134033203125,
-0.0168609619140625,
-0.0256500244140625,
0.0924072265625,
-0.0087432861328125,
-0.0183868408203125,
-0.025054931640625,
0.00075531005859375,
0.0084075927734375,
-0.03521728515625,
-0.007472991943359375,
-0.021484375,
-0.062408447265625,
0.0135040283203125,
0.004058837890625,
-0.0253448486328125,
-0.0269317626953125,
0.0181427001953125,
-0.044189453125,
-0.0229949951171875,
0.035919189453125,
-0.061767578125,
0.032440185546875,
0.0161285400390625,
0.00093841552734375,
0.00376129150390625,
-0.0254364013671875,
-0.033447265625,
-0.00714874267578125,
-0.002780914306640625,
0.0281982421875,
-0.029022216796875,
-0.034271240234375,
0.03411865234375,
0.002109527587890625,
0.02703857421875,
0.01062774658203125,
-0.00732421875,
0.0121002197265625,
0.0340576171875,
-0.0293426513671875,
-0.0292510986328125,
0.00043582916259765625,
-0.048431396484375,
-0.0248565673828125,
-0.027099609375,
0.01447296142578125,
0.043243408203125,
-0.0240020751953125,
0.033172607421875,
-0.0162506103515625,
-0.00336456298828125,
-0.0229034423828125,
-0.0122528076171875,
-0.044769287109375,
-0.009490966796875,
-0.03265380859375,
-0.01338958740234375,
-0.013702392578125,
-0.046966552734375,
0.06610107421875,
0.0443115234375,
-0.011749267578125,
-0.0015382766723632812,
0.0833740234375,
0.0174102783203125,
-0.049591064453125,
-0.064697265625,
0.004093170166015625,
0.0245819091796875,
-0.00821685791015625,
0.0123748779296875,
-0.0036029815673828125,
-0.0237884521484375,
0.056121826171875,
-0.007228851318359375,
0.0032825469970703125,
-0.003978729248046875,
0.03790283203125,
-0.0087127685546875,
-0.053009033203125,
0.043701171875,
-0.032318115234375,
-0.00811767578125,
0.0285797119140625,
-0.01215362548828125,
-0.045867919921875,
-0.0021514892578125,
0.0650634765625,
-0.039825439453125,
0.0706787109375,
-0.034393310546875,
-0.04254150390625,
0.0225830078125,
-0.03662109375,
0.00855255126953125,
-0.027435302734375,
0.01160430908203125,
-0.00830841064453125,
0.0031986236572265625,
0.00730133056640625,
0.0159912109375,
0.0285491943359375,
-0.0007266998291015625,
0.0272216796875,
0.0180511474609375,
-0.01027679443359375,
-0.023040771484375,
0.0052947998046875,
0.0288848876953125,
-0.025909423828125,
-0.06689453125,
0.00745391845703125,
-0.0083465576171875,
0.01540374755859375,
0.06231689453125,
-0.0198211669921875,
0.034820556640625,
0.0206146240234375,
-0.006137847900390625,
-0.002704620361328125,
-0.049530029296875,
0.007205963134765625,
-0.03564453125,
0.0195770263671875,
0.003765106201171875,
-0.018585205078125,
-0.007694244384765625,
0.08587646484375,
-0.033355712890625,
0.039031982421875,
-0.01346588134765625,
0.008636474609375,
-0.02349853515625,
0.051971435546875,
0.024169921875,
-0.041168212890625,
0.0168609619140625,
0.013275146484375,
0.002170562744140625,
-0.04742431640625,
-0.0024662017822265625,
0.00909423828125,
0.0261993408203125,
-0.0239410400390625,
-0.0270538330078125,
0.045928955078125,
0.00029015541076660156,
-0.01013946533203125,
0.00881195068359375,
-0.005840301513671875,
-0.002109527587890625,
-0.0303802490234375,
-0.0230560302734375,
0.016998291015625,
0.0121002197265625,
0.0178070068359375,
0.0029926300048828125,
0.0193634033203125,
0.0226287841796875,
-0.03271484375,
-0.0119171142578125,
-0.0211334228515625,
0.00673675537109375,
-0.0281829833984375,
0.007007598876953125,
0.01062774658203125,
0.01136016845703125,
-0.031341552734375,
-0.0142669677734375,
-0.032073974609375,
0.06732177734375,
-0.012176513671875,
0.0333251953125,
-0.0369873046875,
-0.0059051513671875,
-0.0260162353515625,
-0.006862640380859375,
0.06793212890625,
0.038055419921875,
-0.0234527587890625,
0.0034580230712890625,
-0.061279296875,
-0.0072174072265625,
0.00733184814453125,
-0.047332763671875,
0.0009622573852539062,
-0.004024505615234375,
-0.01027679443359375,
0.01544189453125,
0.01093292236328125,
0.005096435546875,
-0.01024627685546875,
0.01378631591796875,
-0.004047393798828125,
0.0018091201782226562,
0.004154205322265625,
-0.0009822845458984375,
0.005580902099609375,
0.01555633544921875,
0.0204620361328125,
-0.0125274658203125,
-0.004367828369140625,
-0.0290374755859375,
-0.033416748046875,
-0.0921630859375,
0.023529052734375,
0.01294708251953125,
0.015777587890625,
0.05120849609375,
-0.0002620220184326172,
0.02813720703125,
0.036773681640625,
-0.0031890869140625,
-0.008819580078125,
-0.00431060791015625,
-0.02410888671875,
0.0144500732421875,
0.02459716796875,
0.038482666015625,
-0.0303497314453125,
0.00623321533203125,
-0.00693511962890625,
0.050018310546875,
-0.0160980224609375,
-0.0469970703125,
-0.0007181167602539062,
0.0260009765625,
0.00792694091796875,
0.0134429931640625,
0.039642333984375,
-0.00362396240234375,
0.033966064453125,
-0.00409698486328125,
0.0140838623046875,
0.0194854736328125,
0.0301055908203125,
-0.03973388671875,
-0.017059326171875,
0.0517578125,
0.0131683349609375,
-0.0258331298828125,
0.037139892578125,
-0.034912109375,
-0.00391387939453125,
-0.00994110107421875,
0.04376220703125,
-0.00687408447265625,
0.009185791015625,
0.03924560546875,
-0.0229949951171875,
-0.0443115234375,
0.0219268798828125,
-0.035552978515625,
-0.0474853515625,
-0.042816162109375,
0.0009927749633789062,
-0.03436279296875,
-0.02142333984375,
0.022918701171875,
-0.012603759765625,
-0.046173095703125,
0.034515380859375,
0.0085296630859375,
0.00261688232421875,
0.019683837890625,
-0.016876220703125,
0.015625,
-0.0266265869140625,
0.01485443115234375,
-0.01021575927734375,
0.0016727447509765625,
-0.04388427734375,
0.044708251953125,
-0.0012187957763671875,
0.01483154296875,
0.0269775390625,
0.01169586181640625,
0.001800537109375,
0.0304412841796875,
0.003246307373046875,
-0.00891876220703125,
0.00013124942779541016,
-0.058380126953125,
-0.003650665283203125,
-0.01450347900390625,
-0.0229034423828125,
0.031982421875,
-0.0010595321655273438,
0.0263671875,
-0.0017099380493164062,
-0.0032749176025390625,
-0.0097198486328125,
-0.044830322265625,
0.044036865234375,
-0.035186767578125,
0.007457733154296875,
0.03790283203125,
0.051788330078125,
-0.0218963623046875,
0.0002694129943847656,
0.006847381591796875,
-0.032196044921875,
-0.0020732879638671875,
0.0009069442749023438,
-0.01296234130859375,
0.01059722900390625,
-0.01538848876953125,
-0.06671142578125,
0.0946044921875,
0.0216217041015625,
-0.0006923675537109375,
0.0024242401123046875,
0.03546142578125,
-0.04132080078125,
0.0186614990234375,
-0.0347900390625,
0.01108551025390625,
0.00641632080078125,
0.01031494140625,
-0.0200042724609375,
0.0033397674560546875,
-0.00899505615234375,
0.0096282958984375,
0.0888671875,
0.021209716796875,
-0.033233642578125,
-0.005313873291015625,
0.06121826171875,
0.037750244140625,
-0.003498077392578125,
0.040252685546875,
0.049041748046875,
0.04986572265625,
0.08880615234375,
-0.016357421875,
0.04547119140625,
-0.0109100341796875,
0.0198974609375,
0.062469482421875,
0.0051727294921875,
0.01149749755859375,
0.00911712646484375,
-0.003692626953125,
-0.008575439453125,
-0.0023345947265625,
0.01702880859375,
-0.05181884765625,
0.03240966796875,
0.0092926025390625,
0.033905029296875,
-0.0606689453125,
0.038970947265625,
-0.032501220703125,
0.058319091796875,
-0.00804901123046875,
0.00409698486328125,
0.059967041015625,
0.019317626953125,
0.094482421875,
-0.047210693359375,
-0.007320404052734375,
-0.01158905029296875,
0.00014960765838623047,
0.033172607421875,
-0.00027632713317871094,
0.0147552490234375,
-0.057952880859375,
0.0245361328125,
0.044281005859375,
0.04998779296875,
-0.040985107421875,
-0.04229736328125,
0.0049591064453125,
-0.014495849609375,
-0.005657196044921875,
0.01800537109375,
0.018707275390625,
0.1083984375,
0.08099365234375,
-0.0728759765625,
0.02398681640625,
0.043975830078125,
0.03717041015625,
-0.0222320556640625,
-0.0220184326171875,
-0.049072265625,
-0.01213836669921875,
-0.060699462890625,
0.0214691162109375,
0.039459228515625,
0.06842041015625,
0.0123443603515625,
0.06878662109375,
-0.019317626953125,
-0.0224151611328125,
-0.00036025047302246094,
0.0286102294921875,
0.007152557373046875,
-0.01690673828125,
0.0261383056640625,
-0.007503509521484375,
-0.0265655517578125,
-0.0047149658203125,
0.0163421630859375,
0.0235595703125,
0.041046142578125,
0.046539306640625,
0.01226043701171875,
0.00531005859375,
0.028045654296875,
-0.01483154296875,
0.020721435546875,
-0.0263671875,
0.0357666015625,
0.05120849609375,
0.000568389892578125,
0.01233673095703125,
0.00007253885269165039,
0.081787109375,
-0.036163330078125,
0.087890625,
-0.01163482666015625,
0.005771636962890625,
0.024383544921875,
-0.032379150390625,
0.037872314453125,
-0.00745391845703125,
-0.0638427734375,
-0.015655517578125,
-0.048248291015625,
-0.0016984939575195312,
0.0172576904296875,
0.03558349609375,
0.01873779296875,
0.005413055419921875,
-0.00757598876953125,
0.015289306640625,
-0.003093719482421875,
-0.01263427734375,
0.006977081298828125,
-0.0247955322265625,
0.01904296875,
-0.00916290283203125,
-0.032257080078125,
-0.0179901123046875,
0.01012420654296875,
0.00426483154296875,
0.0186767578125,
0.040771484375,
0.006992340087890625,
0.0130462646484375,
-0.045562744140625,
0.072021484375,
-0.07965087890625,
-0.0273284912109375,
0.0374755859375,
-0.0034198760986328125,
-0.00572967529296875,
-0.004749298095703125,
-0.032745361328125,
0.045440673828125,
0.034576416015625,
-0.0032958984375,
0.039764404296875,
-0.0288543701171875,
0.0094146728515625,
-0.0154266357421875,
0.05010986328125,
-0.00904083251953125,
-0.028594970703125,
-0.044097900390625,
-0.0155181884765625,
0.051055908203125,
0.07147216796875,
-0.0021572113037109375,
0.0031719207763671875,
-0.023040771484375,
-0.04498291015625,
0.032257080078125,
-0.028839111328125,
0.040130615234375,
0.0266876220703125,
-0.029449462890625,
-0.01080322265625,
0.023223876953125,
-0.0157928466796875,
0.0167236328125,
0.00579833984375,
0.03564453125,
0.0014238357543945312,
-0.040252685546875,
0.00484466552734375,
-0.0027637481689453125,
0.0269775390625,
-0.03094482421875,
0.000049114227294921875,
0.0128021240234375,
0.005352020263671875,
-0.020751953125,
-0.0310516357421875,
-0.02239990234375,
-0.033203125,
-0.001361846923828125,
0.0230255126953125,
0.00921630859375,
-0.01284027099609375,
-0.024993896484375,
0.0175018310546875,
0.049530029296875,
0.005023956298828125,
-0.01715087890625,
0.0155181884765625,
-0.0367431640625,
0.0146484375,
0.0252685546875,
0.0004010200500488281,
0.0104827880859375,
0.00823211669921875,
-0.0207061767578125,
0.0065765380859375,
-0.0063629150390625,
0.0155792236328125,
0.01092529296875,
0.03179931640625,
0.0223388671875,
-0.039764404296875,
0.01380157470703125,
0.0303802490234375,
0.034027099609375,
0.07763671875,
0.046630859375,
-0.0184478759765625,
0.00431060791015625,
0.00333404541015625,
-0.016937255859375,
-0.035919189453125,
0.0198211669921875,
-0.033447265625,
-0.037322998046875,
0.014190673828125,
-0.01178741455078125,
-0.004894256591796875,
-0.060699462890625,
-0.090576171875,
0.0482177734375,
-0.003696441650390625,
-0.043914794921875,
-0.028961181640625,
-0.0231170654296875,
0.0030517578125,
-0.01052093505859375,
-0.021331787109375,
0.00933837890625,
-0.04046630859375,
0.0263214111328125,
0.02069091796875,
-0.034515380859375,
0.055572509765625,
-0.0042572021484375,
-0.0958251953125,
0.0052490234375,
-0.0172271728515625,
0.01983642578125,
-0.0377197265625,
0.003803253173828125,
0.007381439208984375,
0.00826263427734375,
-0.036102294921875,
-0.017913818359375,
0.0205230712890625,
0.0293426513671875,
-0.0013608932495117188,
-0.061004638671875,
-0.0261688232421875,
-0.0197296142578125,
0.055694580078125,
0.0108184814453125,
0.01175689697265625,
-0.0310516357421875,
-0.034881591796875,
0.0005803108215332031,
-0.0236968994140625,
-0.01197052001953125,
0.0279998779296875,
-0.0875244140625,
-0.020751953125,
0.023406982421875,
-0.044769287109375,
0.00901031494140625,
0.002613067626953125,
-0.07073974609375,
0.018463134765625,
-0.0252838134765625,
-0.0098114013671875,
-0.04827880859375,
0.03955078125,
-0.043426513671875,
-0.0174560546875,
-0.041717529296875,
-0.036651611328125,
0.005260467529296875,
-0.05633544921875,
-0.06707763671875,
-0.0172119140625,
0.0265045166015625,
0.019989013671875,
0.01422119140625,
0.022216796875,
-0.0286102294921875,
0.0196533203125,
0.0247955322265625,
-0.0279693603515625,
0.026611328125,
0.01125335693359375,
0.0235137939453125,
-0.02825927734375,
0.013092041015625,
0.018218994140625,
0.0244598388671875,
0.01409912109375,
0.0297088623046875,
-0.01010894775390625,
0.0462646484375,
-0.007213592529296875,
-0.02581787109375,
0.016998291015625,
-0.0163726806640625,
0.0055999755859375,
-0.01479339599609375,
0.0211029052734375,
-0.02874755859375,
0.0111083984375,
0.01053619384765625,
-0.00737762451171875,
0.017913818359375
] |
435002a68c181110972ae369d06000d0c12b71d8
|
Wordpress Stackexchange
Q: What is the very earliest action hook you can call? After the solution to this question was to get a function to launch BEFORE the init action is fired by taking the sequence out of its function, it got me thinking, is there any earlier in the WP load sequence that I can hook a function into?
A: muplugins_loaded is the earliest hook.
Depending on your wordpress setup, you may not have any plugins in the MU_PLUGINS directory. In that case this hook may not fire.
The next best hook to trigger is plugins_loaded.
RESOURCES
*
*WordPress Codex - Action Reference List
*Q/A: How to get WordPress' hook run sequence?
*Q/A: Make sense of WP Load Core
|
Q: What is the very earliest action hook you can call? After the solution to this question was to get a function to launch BEFORE the init action is fired by taking the sequence out of its function, it got me thinking, is there any earlier in the WP load sequence that I can hook a function into?
A: muplugins_loaded is the earliest hook.
Depending on your wordpress setup, you may not have any plugins in the MU_PLUGINS directory. In that case this hook may not fire.
The next best hook to trigger is plugins_loaded.
RESOURCES
*
*WordPress Codex - Action Reference List
*Q/A: How to get WordPress' hook run sequence?
*Q/A: Make sense of WP Load Core
A: For anyone interested in finding this out on your own, there is an awesome plugin named Query Monitor.
Install and activate the plugin (on staging or dev install obviously) and just select what you want from the drop down.
A: As mentioned in a comment on the accepted answer, the hook muplugins_loaded is not conditional. If you read the source code you will find that it is always fired - at least in recent versions of WordPress. According to the documentation it is also the first available hook. However, unless you are actually writing a must-use or network activated plugin it doesn't make much sense to use it since it will fire before your plugin or theme is loaded.
If you are writing a plugin, then the plugins_loaded is the first general action hook to use.
If you are adding code to your theme's functions.php, then you could use after_setup_theme.
|
wordpress
|
{
"language": "en",
"length": 269,
"provenance": "stackexchange_00019.jsonl.gz:411521",
"question_score": "22",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23631"
}
|
[
0.026153564453125,
-0.0135345458984375,
-0.00885772705078125,
-0.0179901123046875,
-0.01401519775390625,
-0.0200042724609375,
0.017547607421875,
-0.004268646240234375,
-0.00989532470703125,
0.01080322265625,
-0.024658203125,
0.0101776123046875,
0.003765106201171875,
-0.0160369873046875,
0.00843048095703125,
-0.0443115234375,
0.053802490234375,
-0.0285491943359375,
0.039642333984375,
0.0011587142944335938,
0.0194854736328125,
0.039459228515625,
0.038421630859375,
0.0855712890625,
0.038421630859375,
-0.042816162109375,
0.015289306640625,
-0.01325225830078125,
0.03875732421875,
0.0022602081298828125,
0.0279388427734375,
-0.0288238525390625,
-0.00540924072265625,
0.0360107421875,
0.00933074951171875,
-0.003265380859375,
-0.0158233642578125,
0.028472900390625,
0.033233642578125,
0.0037384033203125,
0.0213775634765625,
-0.0063629150390625,
-0.002628326416015625,
0.0163116455078125,
-0.01165008544921875,
-0.04864501953125,
0.0440673828125,
-0.0185089111328125,
0.0155181884765625,
-0.057525634765625,
0.00453948974609375,
0.0207061767578125,
0.0261077880859375,
-0.0345458984375,
-0.00904083251953125,
0.01251983642578125,
-0.082275390625,
0.03466796875,
0.0041351318359375,
0.08001708984375,
0.041168212890625,
0.01387786865234375,
-0.0198822021484375,
-0.019683837890625,
0.014892578125,
-0.0013093948364257812,
-0.0090789794921875,
0.004772186279296875,
0.001560211181640625,
0.035491943359375,
0.0161590576171875,
-0.022003173828125,
-0.034088134765625,
0.00222015380859375,
-0.0004382133483886719,
0.004283905029296875,
0.0196380615234375,
-0.01076507568359375,
0.0007886886596679688,
0.041473388671875,
0.029754638671875,
-0.021759033203125,
-0.009796142578125,
0.01715087890625,
-0.018951416015625,
0.00888824462890625,
0.00852203369140625,
-0.005725860595703125,
-0.041595458984375,
-0.00213623046875,
-0.03594970703125,
0.03704833984375,
-0.00887298583984375,
-0.0382080078125,
-0.04901123046875,
-0.00988006591796875,
0.0133056640625,
-0.0026645660400390625,
0.004024505615234375,
-0.019927978515625,
0.0005235671997070312,
-0.035675048828125,
-0.01453399658203125,
0.0015134811401367188,
-0.006488800048828125,
0.041015625,
-0.0003352165222167969,
-0.03228759765625,
-0.0162506103515625,
0.01149749755859375,
-0.01971435546875,
-0.0285186767578125,
0.0096588134765625,
0.0266876220703125,
-0.0241851806640625,
-0.037139892578125,
-0.046051025390625,
0.033477783203125,
-0.01483154296875,
0.01200103759765625,
0.00844573974609375,
-0.0004963874816894531,
0.045440673828125,
0.01513671875,
0.01035308837890625,
0.0147552490234375,
-0.044158935546875,
-0.04168701171875,
-0.053375244140625,
0.0007715225219726562,
0.01175689697265625,
0.031890869140625,
-0.0090789794921875,
-0.0020351409912109375,
-0.041656494140625,
-0.0004107952117919922,
0.0115814208984375,
0.02520751953125,
-0.0003571510314941406,
-0.0180206298828125,
-0.0022735595703125,
-0.04083251953125,
-0.03192138671875,
0.0135345458984375,
0.01465606689453125,
-0.00890350341796875,
-0.005558013916015625,
0.03009033203125,
0.0154876708984375,
-0.0192108154296875,
0.02301025390625,
-0.0296478271484375,
0.01306915283203125,
0.0011034011840820312,
0.0303955078125,
0.00652313232421875,
0.04425048828125,
-0.014617919921875,
-0.02679443359375,
-0.00792694091796875,
-0.03289794921875,
-0.029266357421875,
-0.017303466796875,
-0.0426025390625,
-0.07000732421875,
0.035369873046875,
0.009002685546875,
0.00617218017578125,
0.0221710205078125,
0.0240325927734375,
0.0019197463989257812,
0.06494140625,
0.039093017578125,
0.00183868408203125,
-0.0064697265625,
-0.0321044921875,
-0.0266265869140625,
0.035980224609375,
0.0296173095703125,
0.027252197265625,
0.0018482208251953125,
-0.0260772705078125,
0.056549072265625,
-0.0092315673828125,
-0.03472900390625,
0.01910400390625,
0.0255126953125,
0.062744140625,
0.00617218017578125,
0.031768798828125,
0.01338958740234375,
0.0192413330078125,
-0.0634765625,
0.021331787109375,
-0.0200347900390625,
0.0018291473388671875,
0.0245819091796875,
0.0203857421875,
-0.0062103271484375,
-0.007053375244140625,
0.0543212890625,
0.00004929304122924805,
-0.0243682861328125,
-0.0214691162109375,
-0.07794189453125,
-0.0240631103515625,
-0.013397216796875,
0.0179443359375,
0.0292510986328125,
-0.0092010498046875,
-0.01149749755859375,
0.0048980712890625,
0.027435302734375,
-0.09710693359375,
-0.056549072265625,
0.06414794921875,
-0.058349609375,
0.03466796875,
-0.0016050338745117188,
0.05499267578125,
0.01110076904296875,
-0.038482666015625,
0.00970458984375,
-0.03338623046875,
0.016448974609375,
-0.01279449462890625,
-0.0173187255859375,
-0.01763916015625,
0.001140594482421875,
0.0106048583984375,
-0.0286407470703125,
0.01435089111328125,
-0.013092041015625,
0.0178680419921875,
-0.0504150390625,
-0.02496337890625,
-0.031951904296875,
-0.003387451171875,
0.01446533203125,
0.042694091796875,
0.02978515625,
0.0220184326171875,
-0.001850128173828125,
0.0136260986328125,
0.017852783203125,
-0.04595947265625,
0.0027942657470703125,
0.00672149658203125,
0.0033416748046875,
0.036041259765625,
-0.006076812744140625,
0.01934814453125,
0.01470184326171875,
0.0276031494140625,
0.022308349609375,
0.0184478759765625,
-0.0169525146484375,
-0.0751953125,
-0.0197601318359375,
-0.005828857421875,
0.041168212890625,
-0.08697509765625,
-0.092529296875,
0.0010385513305664062,
0.0127410888671875,
-0.01148223876953125,
0.0143890380859375,
0.012054443359375,
-0.005435943603515625,
-0.0021381378173828125,
0.022125244140625,
-0.0142669677734375,
-0.018035888671875,
0.039520263671875,
0.0482177734375,
-0.041839599609375,
-0.001369476318359375,
-0.002292633056640625,
-0.050567626953125,
0.006832122802734375,
-0.035430908203125,
-0.0168914794921875,
-0.009979248046875,
-0.00949859619140625,
-0.022674560546875,
-0.0200347900390625,
0.0322265625,
0.008758544921875,
0.005443572998046875,
0.0021915435791015625,
0.0207672119140625,
0.00057220458984375,
-0.053619384765625,
0.0469970703125,
-0.019012451171875,
-0.0283203125,
-0.0294647216796875,
-0.007396697998046875,
0.01430511474609375,
-0.00433349609375,
0.00873565673828125,
0.061737060546875,
0.0301971435546875,
-0.0203704833984375,
-0.00072479248046875,
-0.04681396484375,
0.02899169921875,
-0.01373291015625,
-0.020355224609375,
-0.0250396728515625,
-0.01158905029296875,
0.0328369140625,
0.0249176025390625,
0.10919189453125,
-0.0268707275390625,
-0.055755615234375,
-0.00899505615234375,
0.0428466796875,
-0.051361083984375,
-0.060791015625,
-0.038360595703125,
-0.04754638671875,
0.0521240234375,
-0.0187530517578125,
0.0012178421020507812,
-0.0225067138671875,
-0.0005693435668945312,
0.01708984375,
-0.052276611328125,
-0.01371002197265625,
-0.020355224609375,
-0.047821044921875,
-0.04058837890625,
0.0180816650390625,
0.001312255859375,
0.01355743408203125,
0.005947113037109375,
0.058502197265625,
-0.00982666015625,
-0.053558349609375,
-0.026519775390625,
-0.0257568359375,
-0.033111572265625,
-0.022064208984375,
0.0001061558723449707,
0.029937744140625,
0.0190887451171875,
0.00844573974609375,
0.007305145263671875,
0.048004150390625,
-0.044342041015625,
-0.026519775390625,
-0.0156097412109375,
-0.026947021484375,
-0.0095062255859375,
0.09228515625,
0.0235443115234375,
-0.065673828125,
0.0362548828125,
-0.0633544921875,
0.00444793701171875,
0.010589599609375,
-0.025665283203125,
-0.0079803466796875,
0.01047515869140625,
-0.022705078125,
0.007476806640625,
-0.0211334228515625,
-0.03216552734375,
-0.015106201171875,
0.05242919921875,
-0.0208587646484375,
-0.002288818359375,
-0.048797607421875,
-0.05743408203125,
-0.0288848876953125,
0.06414794921875,
0.01149749755859375,
-0.047393798828125,
0.0121307373046875,
0.02301025390625,
-0.0244140625,
0.006351470947265625,
-0.07806396484375,
0.0304412841796875,
0.0338134765625,
0.007537841796875,
0.0479736328125,
-0.02752685546875,
-0.0166778564453125,
-0.0333251953125,
0.04241943359375,
-0.00727081298828125,
-0.01617431640625,
0.02197265625,
0.0205535888671875,
-0.044403076171875,
-0.0201263427734375,
-0.046142578125,
-0.01432037353515625,
-0.0841064453125,
0.017059326171875,
-0.0036773681640625,
-0.01001739501953125,
-0.0304107666015625,
0.0131378173828125,
-0.059173583984375,
-0.04412841796875,
0.02935791015625,
-0.006072998046875,
-0.026123046875,
0.036834716796875,
-0.031646728515625,
0.0206146240234375,
-0.0302734375,
0.01544952392578125,
-0.09210205078125,
-0.01091766357421875,
-0.07427978515625,
0.08563232421875,
0.0706787109375,
-0.0556640625,
-0.00327301025390625,
0.0369873046875,
-0.01467132568359375,
0.0293426513671875,
0.004909515380859375,
0.00978851318359375,
0.01363372802734375,
0.0080108642578125,
0.003467559814453125,
-0.007785797119140625,
-0.01629638671875,
-0.0343017578125,
0.006168365478515625,
0.020599365234375,
-0.0297393798828125,
0.012298583984375,
-0.034332275390625,
0.01074981689453125,
-0.0091705322265625,
-0.045562744140625,
-0.05181884765625,
-0.0012760162353515625,
-0.00818634033203125,
-0.000008940696716308594,
-0.052032470703125,
-0.018829345703125,
-0.01428985595703125,
-0.0377197265625,
0.0009088516235351562,
-0.004131317138671875,
0.04193115234375,
0.038421630859375,
0.01381683349609375,
0.08056640625,
-0.032470703125,
0.00925445556640625,
-0.00855255126953125,
0.0304107666015625,
-0.005565643310546875,
-0.00020432472229003906,
0.0374755859375,
-0.01462554931640625,
0.0234222412109375,
-0.034637451171875,
0.08233642578125,
0.0165863037109375,
0.0244140625,
-0.0094757080078125,
-0.0019969940185546875,
-0.004486083984375,
0.00824737548828125,
-0.03021240234375,
-0.0147857666015625,
0.0046539306640625,
0.03228759765625,
-0.056396484375,
0.07659912109375,
-0.0183258056640625,
0.02587890625,
-0.0141448974609375,
0.0572509765625,
0.055694580078125,
0.039398193359375,
0.0015392303466796875,
-0.01331329345703125,
0.028778076171875,
-0.01702880859375,
0.023529052734375,
-0.0302734375,
-0.0012502670288085938,
0.0038166046142578125,
0.046173095703125,
-0.01556396484375,
0.0225830078125,
-0.005443572998046875,
0.03070068359375,
-0.039764404296875,
-0.065185546875,
-0.054046630859375,
-0.00531768798828125,
0.083984375,
0.054229736328125,
-0.02178955078125,
0.044891357421875,
0.04083251953125,
-0.02862548828125,
-0.02117919921875,
-0.027435302734375,
0.00934600830078125,
-0.06036376953125,
0.004795074462890625,
-0.0165557861328125,
-0.000774383544921875,
0.00139617919921875,
0.041900634765625,
0.01085662841796875,
0.008819580078125,
-0.017547607421875,
0.0165557861328125,
-0.0229949951171875,
0.034393310546875,
0.039398193359375,
-0.0276641845703125,
0.00914764404296875,
0.00780487060546875,
-0.006561279296875,
-0.03021240234375,
0.01161956787109375,
-0.00524139404296875,
0.0145721435546875,
-0.037811279296875,
-0.0386962890625,
0.053924560546875,
-0.0178680419921875,
-0.01318359375,
0.049407958984375,
0.048370361328125,
-0.023101806640625,
-0.01331329345703125,
0.022064208984375,
0.028564453125,
-0.0024623870849609375,
0.00980377197265625,
0.0650634765625,
0.0213470458984375,
0.0576171875,
-0.01763916015625,
0.00860595703125,
-0.0070343017578125,
0.006748199462890625,
0.0005354881286621094,
-0.007640838623046875,
-0.0156707763671875,
0.0189666748046875,
-0.01214599609375,
-0.01007843017578125,
-0.009613037109375,
0.04718017578125,
-0.021484375,
0.024169921875,
-0.041839599609375,
0.0213775634765625,
-0.05804443359375,
0.005603790283203125,
0.055755615234375,
0.04052734375,
-0.03466796875,
0.007843017578125,
-0.0192718505859375,
-0.0051116943359375,
-0.0085296630859375,
-0.04827880859375,
-0.0270843505859375,
-0.0159149169921875,
-0.03814697265625,
0.00704193115234375,
-0.0266876220703125,
0.01885986328125,
0.0266876220703125,
0.022674560546875,
-0.0305633544921875,
-0.006786346435546875,
-0.039947509765625,
0.0802001953125,
0.0268096923828125,
0.025665283203125,
0.01361083984375,
0.057342529296875,
0.0009694099426269531,
-0.0049591064453125,
-0.0204620361328125,
-0.03173828125,
0.0188751220703125,
0.01183319091796875,
0.005649566650390625,
0.0198516845703125,
0.0509033203125,
0.00958251953125,
-0.01116943359375,
0.020355224609375,
0.00609588623046875,
-0.00783538818359375,
0.023223876953125,
0.0300750732421875,
-0.02386474609375,
0.037078857421875,
-0.0257720947265625,
-0.005672454833984375,
-0.0131378173828125,
0.00858306884765625,
0.022674560546875,
-0.031707763671875,
0.00821685791015625,
0.0212554931640625,
-0.02301025390625,
0.0187225341796875,
0.01000213623046875,
0.0009527206420898438,
0.0261993408203125,
-0.00556182861328125,
0.016204833984375,
0.0029087066650390625,
0.07470703125,
-0.0043792724609375,
-0.08416748046875,
0.041107177734375,
0.028228759765625,
-0.02099609375,
0.0265350341796875,
-0.0261688232421875,
0.01493072509765625,
-0.0070953369140625,
0.045623779296875,
-0.037841796875,
0.032806396484375,
0.00591278076171875,
-0.0069122314453125,
0.032958984375,
-0.025146484375,
-0.0179901123046875,
-0.0290985107421875,
0.07012939453125,
-0.005329132080078125,
-0.01479339599609375,
0.028778076171875,
0.00868988037109375,
-0.022216796875,
-0.0214385986328125,
-0.01428985595703125,
0.018035888671875,
0.00003743171691894531,
0.0548095703125,
-0.00946044921875,
0.053924560546875,
-0.032806396484375,
0.023651123046875,
0.01142120361328125,
-0.007144927978515625,
-0.030059814453125,
0.031829833984375,
0.01239013671875,
-0.016357421875,
-0.0005230903625488281,
-0.039276123046875,
0.0271148681640625,
0.01486968994140625,
-0.0141448974609375,
-0.0158843994140625,
-0.0130767822265625,
-0.01535797119140625,
-0.061614990234375,
-0.050018310546875,
0.039154052734375,
0.0595703125,
-0.056488037109375,
0.04949951171875,
-0.00412750244140625,
-0.04296875,
-0.004619598388671875,
-0.02655029296875,
0.029937744140625,
-0.0223388671875,
-0.015625,
0.013580322265625,
-0.007610321044921875,
0.0020809173583984375,
0.00141143798828125,
-0.00815582275390625,
-0.0243682861328125,
0.00679779052734375,
-0.0142364501953125,
-0.006031036376953125,
0.0168609619140625,
-0.012420654296875,
-0.0225677490234375,
0.06878662109375,
-0.008758544921875,
-0.0169219970703125,
0.0133056640625,
0.03265380859375,
-0.01187896728515625,
0.017242431640625,
-0.03070068359375,
0.06927490234375,
0.0282745361328125,
0.04010009765625,
-0.01343536376953125,
0.007251739501953125,
0.03143310546875,
-0.01065826416015625,
-0.00510406494140625,
0.00254058837890625,
-0.0172271728515625,
-0.00933074951171875,
0.034393310546875,
0.046417236328125,
0.0253143310546875,
0.020904541015625,
0.013519287109375,
0.00273895263671875,
-0.004840850830078125,
0.032135009765625,
0.045074462890625,
-0.040679931640625,
-0.0440673828125,
0.034210205078125,
0.00286865234375,
-0.011077880859375,
-0.006954193115234375,
0.027496337890625,
-0.034759521484375,
0.0008411407470703125,
0.0224609375,
0.005016326904296875,
-0.00955963134765625,
0.01849365234375,
0.0159759521484375,
0.01666259765625,
-0.0290679931640625,
-0.00782012939453125,
0.0294189453125,
0.0048370361328125,
0.01317596435546875,
0.0179443359375,
0.0256195068359375,
0.005435943603515625,
-0.041839599609375,
-0.0028057098388671875,
0.01019287109375,
-0.046722412109375,
0.053680419921875,
0.003955841064453125,
0.0194549560546875,
-0.038055419921875,
0.01404571533203125,
0.0328369140625,
0.06634521484375,
-0.0489501953125,
-0.058258056640625,
-0.00617218017578125,
0.006885528564453125,
0.0163726806640625,
0.01552581787109375,
0.0167236328125,
0.0082244873046875,
0.05401611328125,
-0.007129669189453125,
-0.046539306640625,
0.006107330322265625,
0.061492919921875,
0.013671875,
0.0129547119140625,
-0.020782470703125,
-0.0819091796875,
0.00970458984375,
0.0182647705078125,
-0.0008454322814941406,
-0.0009121894836425781,
-0.04766845703125,
0.041229248046875,
-0.034027099609375,
0.01971435546875,
-0.01352691650390625,
0.00991058349609375,
-0.003856658935546875,
0.0167694091796875,
-0.0188140869140625,
-0.0017147064208984375,
-0.00321197509765625,
0.02630615234375,
0.073486328125,
0.028045654296875,
0.0487060546875,
0.02587890625,
-0.0169830322265625,
0.0232696533203125,
0.04595947265625,
-0.01041412353515625,
-0.01004791259765625,
-0.03167724609375,
0.01204681396484375,
-0.01494598388671875,
-0.0112457275390625,
-0.012786865234375,
0.03765869140625,
-0.005779266357421875,
-0.0323486328125,
0.023040771484375,
-0.0004324913024902344,
-0.015625,
0.04669189453125,
0.003215789794921875,
0.04766845703125,
-0.002811431884765625,
-0.041748046875,
-0.006866455078125,
-0.0103759765625,
-0.027496337890625,
0.02227783203125,
0.0404052734375,
-0.034271240234375,
0.046722412109375,
0.0445556640625,
-0.0030231475830078125,
-0.01358795166015625,
0.0012063980102539062,
0.01047515869140625,
-0.0249176025390625,
0.0229034423828125,
0.01513671875,
-0.01197052001953125,
0.00467681884765625,
-0.0038127899169921875,
0.0182647705078125,
0.0036640167236328125,
0.0836181640625,
-0.022552490234375,
0.01399993896484375,
0.036651611328125,
-0.031463623046875,
0.0224456787109375,
0.02252197265625,
-0.031982421875,
-0.0254669189453125,
0.002960205078125,
-0.004940032958984375,
-0.041351318359375,
0.008453369140625,
0.0374755859375,
-0.00531005859375,
0.00571441650390625,
-0.003582000732421875,
0.0277099609375,
-0.00801849365234375,
0.042510986328125,
-0.0157470703125,
-0.04962158203125,
-0.052093505859375,
-0.0004458427429199219,
0.0222625732421875,
0.030426025390625,
-0.0210418701171875,
-0.053802490234375,
-0.03350830078125,
-0.051544189453125,
-0.032379150390625,
0.041107177734375,
-0.05743408203125,
0.01641845703125,
0.01090240478515625,
0.003833770751953125,
-0.0078887939453125,
-0.0279541015625,
0.02349853515625,
-0.006641387939453125,
0.0250396728515625,
-0.0160369873046875,
-0.043182373046875,
0.0203857421875,
0.0238189697265625,
0.06451416015625,
-0.01393890380859375,
0.0303802490234375,
0.00424957275390625,
0.0110931396484375,
0.0251312255859375,
-0.0684814453125,
-0.021209716796875,
-0.047088623046875,
-0.02227783203125,
0.01055145263671875,
-0.0300750732421875,
-0.054962158203125,
0.00841522216796875,
-0.00469970703125,
0.0179290771484375,
0.0139923095703125,
-0.06280517578125,
0.048614501953125,
-0.0213623046875,
0.00942230224609375,
-0.015045166015625,
0.0288238525390625,
-0.01398468017578125,
-0.00005453824996948242,
-0.0268707275390625,
-0.040252685546875,
-0.01364898681640625,
0.0709228515625,
-0.0038585662841796875,
0.01172637939453125,
0.0256500244140625,
-0.0228271484375,
-0.0523681640625,
0.02606201171875,
0.01209259033203125,
0.0714111328125,
0.01421356201171875,
-0.01117706298828125,
0.048126220703125,
0.0004811286926269531,
-0.0272064208984375,
-0.0523681640625,
-0.00817108154296875,
-0.033721923828125,
0.020111083984375,
-0.03485107421875,
-0.0096893310546875,
-0.0168304443359375,
-0.047149658203125,
-0.040283203125,
0.0677490234375,
-0.01500701904296875,
-0.0182342529296875,
-0.07952880859375,
0.045257568359375,
0.03485107421875,
-0.037811279296875,
-0.040863037109375,
0.030364990234375,
-0.026824951171875,
0.0172882080078125,
0.00040912628173828125,
-0.0107879638671875,
0.0302886962890625,
-0.02728271484375,
0.0126190185546875,
0.0379638671875,
0.0579833984375,
-0.0156402587890625,
0.0025081634521484375,
0.002109527587890625,
0.048980712890625,
0.071533203125,
-0.016937255859375,
0.0809326171875,
0.004596710205078125,
-0.0245819091796875,
-0.02703857421875,
-0.041290283203125,
-0.0149688720703125,
0.01153564453125,
0.08685302734375,
0.038909912109375,
0.020660400390625,
-0.051116943359375,
-0.00522613525390625,
0.019287109375,
-0.0274505615234375,
-0.007671356201171875,
0.0281524658203125,
-0.06707763671875,
-0.0296478271484375,
0.01090240478515625,
-0.018280029296875,
0.01078033447265625,
-0.01788330078125,
-0.0298614501953125,
-0.003009796142578125,
-0.02484130859375,
-0.0101776123046875,
-0.023773193359375,
-0.00902557373046875,
0.08349609375,
-0.05340576171875,
-0.0255279541015625,
0.037872314453125,
0.004543304443359375,
0.0246429443359375,
0.035003662109375,
0.04925537109375,
0.032073974609375,
-0.0254058837890625,
-0.0030536651611328125,
0.03741455078125,
-0.0220794677734375,
0.007488250732421875,
-0.051666259765625,
-0.0005769729614257812,
0.0246429443359375,
0.002597808837890625,
0.03253173828125,
0.0191192626953125,
-0.01352691650390625,
-0.0212249755859375,
0.051116943359375,
-0.0235748291015625,
0.050567626953125,
-0.0266265869140625,
0.032073974609375,
-0.0018339157104492188,
0.0011701583862304688,
0.0259246826171875,
-0.0021877288818359375,
0.01873779296875,
0.046539306640625,
0.0220947265625,
-0.0106964111328125,
0.0274810791015625,
0.0229339599609375,
0.00560760498046875,
0.00556182861328125
] |
65179b12bb5d081675ab648104306f8e0cc2b746
|
Wordpress Stackexchange
Q: Can I assign a template to a custom post type? Can I assign a template file to a custom post type?
I have created a custom post type called items, and I would like to assign templates to the items like you can do with pages.
A: From WordPress version 4.7 you can now assign custom page templates to other post types along with page.
To achieve this in addition to the Template Name file header, the post types supported by a template can be specified using Template Post Type: as following.
<?php
/*
Template Name: Full-width page layout
Template Post Type: post, page, product
*/
You can get more information about it on the following pages.
https://wptavern.com/wordpress-4-7-brings-custom-page-template-functionality-to-all-post-types
https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/
|
Q: Can I assign a template to a custom post type? Can I assign a template file to a custom post type?
I have created a custom post type called items, and I would like to assign templates to the items like you can do with pages.
A: From WordPress version 4.7 you can now assign custom page templates to other post types along with page.
To achieve this in addition to the Template Name file header, the post types supported by a template can be specified using Template Post Type: as following.
<?php
/*
Template Name: Full-width page layout
Template Post Type: post, page, product
*/
You can get more information about it on the following pages.
https://wptavern.com/wordpress-4-7-brings-custom-page-template-functionality-to-all-post-types
https://make.wordpress.org/core/2016/11/03/post-type-templates-in-4-7/
A: For those reaching this thread through Google, WP 4.7 introduced templates for all post types. See Make WP Core for a full walkthrough. You're no longer restricted to one template for all of your CPT, you can assign individual templates post by post just like you can do with Pages.
A: You can create template for custom post types by creating files, like for example :
single-mycustomposttype.php
See Template Hierarchy in the codex.
PS : this has already been answered.
A: This is a little old but you can also try this:
Create a template for the custom post type:
single-*custom-post-type-slug*.php
The file should check the slug and verify if a file exists, if not, fallback to a default template file:
<?php
$slug = get_post_field( 'post_name', get_post() );
$slug = ( locate_template( 'templates/*custom-post-type-slug*/' . $slug . '.php' ) ) ? $slug : 'default';
get_template_part( 'templates/*custom-post-type-slug*/' . $slug );
?>
Replace all instances of custom-post-type-slug with the actual slug of your custom post type.
I do this for ease of use and organizational purposes. It seems cleaner to me than having all of the files in the theme's root folder.
example folder structure:
themeroot
| |single-cases.php
|-templates
| --cases
| |default.php
| |case-one.php
| |case-two.php
A: This is very simple to do.
Create a new PHP file in your theme root directory and add this to the top:
<?php /*
* Template Name: My custom view
* Template Post Type: Post_typename // here you need to add the name of your custom post type
*/ ?>
Full example will be as following:
<?php /*
* Template Name: My custom view
* Template Post Type: Post_typename // here you need to add the name of your custom post type
*/ ?>
<?php get_header();?>
<div class="container pt-5 pb-5">
<?php if (has_post_thumbnail()):?>
<img src="<?php the_post_thumbnail_url('largest');?>" class="img-fluid">
<?php endif;?>
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<?php the_content();?>
<?php endwhile; endif;?>
</div>
<?php get_footer();?>
A: Here's what works for me:
add_filter('single_template', function($original){
global $post;
$post_name = $post->post_name;
$post_type = $post->post_type;
$base_name = 'single-' . $post_type . '-' . $post_name . '.php';
$template = locate_template($base_name);
if ($template && ! empty($template)) return $template;
return $original;
});
Thus given a post of custom post type foobar and a slug of hello-world the above code would load the single-foobar-hello-world.php template, if it existed.
A: First create on page named as Items as your wish which display the content from items post types, than create one template file as below and named that template-items. Select that template for the page you have created.
<div class="container">
<div class="row">
<div class="col-md-9">
<div class="panel panel-default text-center">
<?php $loop = new WP_Query( array( 'post_type' => 'items', 'posts_per_page' => 5 ) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<?php the_title();?>
<?php if(has_post_thumbnail() ) { the_post_thumbnail(); } ?>
<?php the_content();?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
</div>
</div>
</div>
A: We worked out another solution using the custom post template plugin
|
wordpress
|
{
"language": "en",
"length": 611,
"provenance": "stackexchange_00019.jsonl.gz:411534",
"question_score": "56",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23674"
}
|
[
0.017669677734375,
-0.032135009765625,
0.0177154541015625,
0.0023708343505859375,
-0.0164031982421875,
-0.0089569091796875,
0.037139892578125,
-0.0212860107421875,
-0.038726806640625,
-0.01776123046875,
0.0038585662841796875,
0.006862640380859375,
-0.024566650390625,
-0.037445068359375,
0.044281005859375,
-0.034210205078125,
0.04632568359375,
-0.0241546630859375,
0.032379150390625,
-0.03363037109375,
0.0352783203125,
-0.0081024169921875,
0.0294342041015625,
0.04937744140625,
0.0287322998046875,
-0.005970001220703125,
0.0120849609375,
-0.003925323486328125,
-0.00760650634765625,
-0.005641937255859375,
0.0255279541015625,
0.005558013916015625,
0.022735595703125,
0.012939453125,
-0.0223388671875,
-0.005950927734375,
-0.00969696044921875,
0.002513885498046875,
0.00231170654296875,
0.0196533203125,
-0.00962066650390625,
0.0162811279296875,
0.06390380859375,
0.01059722900390625,
0.010284423828125,
-0.01751708984375,
-0.00015878677368164062,
-0.0679931640625,
0.033843994140625,
0.004726409912109375,
-0.007343292236328125,
-0.0207366943359375,
0.002593994140625,
0.0102386474609375,
-0.020172119140625,
-0.01397705078125,
-0.005237579345703125,
0.0075225830078125,
0.024444580078125,
-0.004642486572265625,
-0.00957489013671875,
0.02166748046875,
0.006488800048828125,
-0.0015316009521484375,
0.0020046234130859375,
-0.01190948486328125,
0.020599365234375,
0.02130126953125,
-0.0180511474609375,
0.0066375732421875,
0.03204345703125,
-0.0163116455078125,
0.0249481201171875,
-0.01416015625,
0.03363037109375,
-0.0255889892578125,
0.025177001953125,
0.006443023681640625,
-0.0199127197265625,
0.0163726806640625,
0.01488494873046875,
0.00412750244140625,
0.01129913330078125,
-0.06549072265625,
0.019378662109375,
-0.031768798828125,
-0.0169677734375,
0.004665374755859375,
0.016845703125,
-0.0258331298828125,
-0.0000883936882019043,
-0.01093292236328125,
0.0166778564453125,
0.030670166015625,
-0.02410888671875,
-0.033782958984375,
0.00760650634765625,
0.023345947265625,
-0.017547607421875,
0.0325927734375,
-0.0002340078353881836,
-0.037261962890625,
0.0694580078125,
-0.049896240234375,
0.015594482421875,
0.01462554931640625,
-0.021026611328125,
0.017913818359375,
0.059326171875,
0.033233642578125,
0.00545501708984375,
0.0282135009765625,
0.0022792816162109375,
0.0005240440368652344,
-0.042022705078125,
0.01520538330078125,
-0.001346588134765625,
-0.02398681640625,
-0.00800323486328125,
0.00933837890625,
0.00628662109375,
0.0277557373046875,
0.059326171875,
-0.03033447265625,
-0.0064697265625,
0.01355743408203125,
-0.01079559326171875,
-0.09808349609375,
0.0150146484375,
-0.004940032958984375,
-0.026123046875,
-0.0082855224609375,
0.0430908203125,
0.056854248046875,
0.021820068359375,
-0.00865936279296875,
-0.00437164306640625,
-0.044525146484375,
-0.01396942138671875,
0.0207672119140625,
0.01490020751953125,
-0.04364013671875,
0.0016689300537109375,
0.0017642974853515625,
0.01380157470703125,
0.047607421875,
0.01374053955078125,
0.00846099853515625,
-0.00962066650390625,
-0.040496826171875,
0.0158233642578125,
-0.042999267578125,
0.0099029541015625,
0.027740478515625,
0.0169677734375,
-0.04156494140625,
0.006671905517578125,
-0.025787353515625,
0.03759765625,
-0.0199737548828125,
-0.017059326171875,
0.00444793701171875,
0.0222930908203125,
-0.0126953125,
-0.013427734375,
0.0164947509765625,
-0.015899658203125,
0.007038116455078125,
0.0235748291015625,
0.007747650146484375,
-0.01047515869140625,
-0.0135650634765625,
0.00409698486328125,
0.01396942138671875,
-0.00936126708984375,
0.01947021484375,
-0.01335906982421875,
-0.0228118896484375,
0.02728271484375,
0.030975341796875,
-0.01012420654296875,
-0.0147857666015625,
0.0251922607421875,
0.00460052490234375,
-0.050506591796875,
-0.007495880126953125,
0.016937255859375,
0.03729248046875,
0.0224609375,
0.0168914794921875,
0.02447509765625,
-0.003753662109375,
-0.047698974609375,
0.03961181640625,
0.0015134811401367188,
-0.016082763671875,
-0.032196044921875,
-0.0009469985961914062,
-0.0153961181640625,
-0.01169586181640625,
-0.0162200927734375,
-0.01035308837890625,
-0.003948211669921875,
0.02911376953125,
0.0248565673828125,
-0.0121002197265625,
0.006931304931640625,
0.01165008544921875,
-0.0016202926635742188,
-0.01702880859375,
0.0214385986328125,
-0.01525115966796875,
-0.014556884765625,
-0.036102294921875,
-0.057586669921875,
0.0013914108276367188,
0.020050048828125,
0.0211944580078125,
0.006435394287109375,
-0.01099395751953125,
0.02081298828125,
-0.0197296142578125,
0.01064300537109375,
0.044921875,
0.028167724609375,
0.0038394927978515625,
-0.027679443359375,
-0.0098876953125,
-0.00997161865234375,
0.04498291015625,
-0.07769775390625,
0.01071929931640625,
-0.01459503173828125,
-0.04180908203125,
-0.0494384765625,
-0.00380706787109375,
-0.002124786376953125,
-0.040069580078125,
0.00916290283203125,
0.055633544921875,
0.0113677978515625,
0.030242919921875,
-0.008087158203125,
0.04498291015625,
0.057342529296875,
0.04046630859375,
0.0174102783203125,
0.0115203857421875,
0.034515380859375,
0.035369873046875,
-0.00007462501525878906,
-0.018646240234375,
0.01010894775390625,
-0.03009033203125,
0.0237274169921875,
0.00766754150390625,
-0.007061004638671875,
-0.01352691650390625,
0.034271240234375,
0.01169586181640625,
0.00142669677734375,
0.041046142578125,
-0.0011072158813476562,
0.00502777099609375,
0.08233642578125,
0.02032470703125,
0.068115234375,
0.033355712890625,
-0.06121826171875,
0.029144287109375,
0.01274871826171875,
0.008758544921875,
0.0189208984375,
0.024871826171875,
0.0028972625732421875,
0.06866455078125,
-0.0292816162109375,
-0.018096923828125,
0.034576416015625,
0.0254058837890625,
-0.00618743896484375,
0.01556396484375,
-0.0369873046875,
-0.0038356781005859375,
-0.00852203369140625,
-0.07366943359375,
0.00713348388671875,
0.052154541015625,
-0.011962890625,
-0.00815582275390625,
0.005096435546875,
0.03704833984375,
-0.00458526611328125,
0.020782470703125,
0.0295867919921875,
-0.0007424354553222656,
0.050994873046875,
-0.05999755859375,
0.07086181640625,
-0.057220458984375,
0.049957275390625,
0.06878662109375,
-0.057525634765625,
0.05035400390625,
0.01300048828125,
0.049530029296875,
0.038848876953125,
0.028167724609375,
0.0216217041015625,
-0.04144287109375,
0.0279541015625,
-0.0276031494140625,
0.0297393798828125,
0.06610107421875,
-0.01104736328125,
-0.02960205078125,
0.00897216796875,
0.046234130859375,
-0.01544952392578125,
-0.0328369140625,
0.07366943359375,
-0.00626373291015625,
-0.0258026123046875,
-0.02984619140625,
-0.0124664306640625,
-0.0288543701171875,
-0.026153564453125,
-0.021728515625,
0.01151275634765625,
-0.0083465576171875,
-0.048309326171875,
-0.036102294921875,
-0.061859130859375,
-0.05047607421875,
-0.00965118408203125,
-0.00951385498046875,
0.0021820068359375,
0.05450439453125,
0.00489044189453125,
-0.0560302734375,
0.004909515380859375,
0.042388916015625,
-0.01372528076171875,
0.0094146728515625,
0.029876708984375,
-0.040771484375,
0.04046630859375,
0.00910186767578125,
0.0057373046875,
0.051361083984375,
-0.0241546630859375,
-0.03350830078125,
-0.028839111328125,
-0.0249786376953125,
-0.01537322998046875,
0.0311737060546875,
0.041229248046875,
-0.01194000244140625,
0.0092620849609375,
-0.043243408203125,
-0.05780029296875,
-0.0085296630859375,
-0.049560546875,
0.019317626953125,
0.028228759765625,
0.00992584228515625,
-0.0487060546875,
0.06878662109375,
0.0017614364624023438,
0.01165771484375,
0.021942138671875,
-0.0198211669921875,
0.05181884765625,
-0.0013628005981445312,
-0.01404571533203125,
-0.0367431640625,
-0.00687408447265625,
-0.037841796875,
0.07843017578125,
0.007068634033203125,
-0.0038967132568359375,
-0.018463134765625,
0.0316162109375,
-0.0245361328125,
-0.10272216796875,
0.08447265625,
-0.0241851806640625,
-0.032470703125,
-0.047088623046875,
-0.049346923828125,
0.031646728515625,
0.141357421875,
-0.0009140968322753906,
-0.0224609375,
-0.0224609375,
0.005855560302734375,
-0.0161285400390625,
-0.0270843505859375,
0.0013828277587890625,
-0.0162506103515625,
-0.0109100341796875,
0.00595855712890625,
-0.004116058349609375,
-0.0170440673828125,
-0.032958984375,
0.0283050537109375,
-0.01006317138671875,
-0.01349639892578125,
0.04034423828125,
-0.014923095703125,
0.0296783447265625,
0.0321044921875,
0.0037899017333984375,
0.012298583984375,
-0.0297393798828125,
-0.0235443115234375,
-0.062042236328125,
-0.01617431640625,
0.0024890899658203125,
0.04486083984375,
-0.002285003662109375,
-0.0120849609375,
-0.016265869140625,
0.026580810546875,
0.041015625,
-0.005008697509765625,
0.005390167236328125,
-0.00954437255859375,
-0.01934814453125,
-0.0273590087890625,
-0.005619049072265625,
-0.02899169921875,
-0.0148162841796875,
-0.0087432861328125,
-0.029052734375,
0.03961181640625,
-0.0165557861328125,
0.0076446533203125,
0.02008056640625,
-0.02606201171875,
-0.01320648193359375,
-0.00846099853515625,
0.0125274658203125,
0.026580810546875,
0.0298309326171875,
-0.0305023193359375,
-0.03582763671875,
-0.0201263427734375,
0.0321044921875,
0.00897216796875,
-0.017791748046875,
0.0034999847412109375,
0.04901123046875,
0.0179290771484375,
-0.0269927978515625,
-0.0477294921875,
0.01479339599609375,
0.037994384765625,
0.031646728515625,
0.009735107421875,
0.01239776611328125,
-0.03228759765625,
0.0222930908203125,
0.03546142578125,
-0.042266845703125,
-0.02423095703125,
0.050018310546875,
0.001232147216796875,
-0.0215301513671875,
0.0007457733154296875,
-0.0469970703125,
0.06207275390625,
0.03363037109375,
0.006374359130859375,
-0.059051513671875,
0.002552032470703125,
0.076171875,
-0.02630615234375,
0.018463134765625,
-0.05279541015625,
-0.01837158203125,
0.01319122314453125,
-0.01166534423828125,
-0.0016269683837890625,
0.003803253173828125,
-0.0022754669189453125,
-0.0012655258178710938,
-0.0246734619140625,
0.0017824172973632812,
0.024200439453125,
-0.0026378631591796875,
0.010040283203125,
-0.0079498291015625,
0.07232666015625,
0.0031585693359375,
0.004150390625,
0.009796142578125,
0.006298065185546875,
-0.00727081298828125,
-0.03106689453125,
-0.04052734375,
0.01055145263671875,
0.003406524658203125,
-0.0034961700439453125,
-0.0159759521484375,
0.03662109375,
0.035980224609375,
-0.01207733154296875,
-0.012786865234375,
-0.03802490234375,
0.0188140869140625,
-0.0462646484375,
-0.0251007080078125,
0.041107177734375,
-0.032928466796875,
-0.01953125,
0.01458740234375,
0.04632568359375,
-0.03826904296875,
-0.0207672119140625,
0.045440673828125,
0.054840087890625,
0.0103607177734375,
0.02313232421875,
-0.009857177734375,
-0.034942626953125,
-0.01366424560546875,
-0.0396728515625,
-0.054840087890625,
-0.00791168212890625,
-0.0132598876953125,
0.06890869140625,
-0.031890869140625,
-0.043975830078125,
0.045562744140625,
-0.043304443359375,
0.0060882568359375,
-0.0011949539184570312,
-0.0234832763671875,
-0.045196533203125,
-0.0024051666259765625,
0.0103302001953125,
0.00833892822265625,
-0.0289306640625,
-0.0242462158203125,
0.0201568603515625,
-0.03631591796875,
0.02587890625,
0.00821685791015625,
-0.01378631591796875,
0.003353118896484375,
-0.0123291015625,
-0.05120849609375,
0.00376129150390625,
0.02020263671875,
-0.06561279296875,
-0.04168701171875,
-0.00010418891906738281,
-0.037017822265625,
0.01885986328125,
-0.032806396484375,
0.012664794921875,
-0.01482391357421875,
-0.0018301010131835938,
-0.010162353515625,
0.0283660888671875,
0.0194091796875,
0.0081939697265625,
-0.0292205810546875,
-0.007228851318359375,
-0.0276336669921875,
-0.025299072265625,
-0.058135986328125,
-0.05438232421875,
-0.03741455078125,
0.0217742919921875,
-0.00222015380859375,
0.0185546875,
-0.0166473388671875,
-0.01226806640625,
-0.0274505615234375,
0.017608642578125,
0.00948333740234375,
0.04083251953125,
-0.0100555419921875,
0.05859375,
-0.00751495361328125,
0.02874755859375,
-0.0012254714965820312,
0.005504608154296875,
-0.030517578125,
-0.004547119140625,
0.00675201416015625,
-0.052001953125,
-0.0360107421875,
-0.021484375,
-0.0379638671875,
0.061370849609375,
0.0836181640625,
0.0052490234375,
0.013580322265625,
-0.049957275390625,
-0.0034580230712890625,
-0.0233154296875,
0.0506591796875,
-0.041534423828125,
-0.008331298828125,
0.00916290283203125,
0.0205230712890625,
0.050933837890625,
-0.0023956298828125,
-0.035888671875,
0.01537322998046875,
0.01476287841796875,
0.0391845703125,
-0.0214385986328125,
-0.050018310546875,
0.0635986328125,
0.05963134765625,
-0.0173492431640625,
0.0318603515625,
-0.0126800537109375,
-0.01276397705078125,
0.040802001953125,
0.02783203125,
-0.00555419921875,
-0.0308990478515625,
0.052276611328125,
-0.00008040666580200195,
-0.055694580078125,
-0.0017213821411132812,
-0.052093505859375,
0.021270751953125,
0.0687255859375,
0.06646728515625,
-0.105224609375,
0.007720947265625,
0.00824737548828125,
-0.016326904296875,
0.031036376953125,
-0.004192352294921875,
0.01343536376953125,
-0.0044708251953125,
0.022125244140625,
0.0225067138671875,
-0.0080413818359375,
0.006214141845703125,
-0.0081634521484375,
-0.0080718994140625,
-0.0011014938354492188,
0.0677490234375,
0.0254364013671875,
-0.005496978759765625,
-0.005802154541015625,
0.004474639892578125,
0.0150146484375,
-0.0224761962890625,
0.038909912109375,
-0.023162841796875,
0.0025348663330078125,
0.0017108917236328125,
0.05023193359375,
-0.0146636962890625,
0.01200103759765625,
0.016571044921875,
0.0357666015625,
0.021575927734375,
0.03924560546875,
0.005352020263671875,
0.006221771240234375,
0.0034503936767578125,
0.023040771484375,
-0.042144775390625,
-0.0367431640625,
-0.005321502685546875,
0.0465087890625,
-0.019561767578125,
0.0260772705078125,
-0.007328033447265625,
-0.007274627685546875,
-0.0280303955078125,
-0.007450103759765625,
0.11444091796875,
-0.0174407958984375,
-0.026763916015625,
0.00958251953125,
0.0267791748046875,
-0.0157928466796875,
0.0260162353515625,
0.0157470703125,
-0.04052734375,
-0.03173828125,
0.027313232421875,
-0.051177978515625,
-0.00957489013671875,
0.036651611328125,
-0.047393798828125,
0.115966796875,
-0.0162353515625,
0.0227203369140625,
0.019989013671875,
0.047760009765625,
-0.0096282958984375,
0.041900634765625,
0.00026154518127441406,
0.0308990478515625,
0.01023101806640625,
0.02587890625,
-0.0023288726806640625,
-0.01025390625,
0.01580810546875,
0.053924560546875,
0.0198211669921875,
-0.00307464599609375,
-0.0127410888671875,
0.01267242431640625,
0.07708740234375,
0.044342041015625,
0.027374267578125,
0.0190582275390625,
-0.03704833984375,
-0.01442718505859375,
-0.0030307769775390625,
-0.0166015625,
0.0247039794921875,
-0.005283355712890625,
-0.051544189453125,
-0.0133056640625,
0.0096435546875,
0.01282501220703125,
-0.034576416015625,
-0.027435302734375,
-0.032440185546875,
-0.0206146240234375,
0.016387939453125,
0.006755828857421875,
-0.0007166862487792969,
0.01031494140625,
0.0217742919921875,
-0.0352783203125,
0.0124053955078125,
-0.03326416015625,
0.04998779296875,
0.00909423828125,
0.0294036865234375,
-0.0022430419921875,
0.021484375,
0.01751708984375,
-0.0247039794921875,
0.00817108154296875,
0.030517578125,
-0.0335693359375,
0.059417724609375,
0.00420379638671875,
0.0281982421875,
-0.029541015625,
0.0276947021484375,
-0.0025177001953125,
0.04498291015625,
-0.047454833984375,
-0.02020263671875,
0.0237274169921875,
0.00705718994140625,
-0.0208892822265625,
-0.02154541015625,
-0.00811004638671875,
-0.020721435546875,
0.00016415119171142578,
-0.040740966796875,
-0.0032863616943359375,
0.0079498291015625,
0.024169921875,
-0.016448974609375,
0.0004665851593017578,
-0.0191192626953125,
-0.005519866943359375,
-0.04949951171875,
-0.0010251998901367188,
0.0311126708984375,
0.057647705078125,
0.02392578125,
0.05023193359375,
0.00836181640625,
-0.0286865234375,
0.00917816162109375,
0.01158905029296875,
-0.0038166046142578125,
-0.026397705078125,
0.023529052734375,
-0.022003173828125,
-0.007038116455078125,
0.00716400146484375,
0.01068115234375,
-0.0024890899658203125,
0.026123046875,
0.003063201904296875,
-0.0009059906005859375,
-0.0214691162109375,
-0.0227813720703125,
-0.022979736328125,
0.0266571044921875,
-0.0283050537109375,
-0.01560211181640625,
-0.0154266357421875,
-0.04522705078125,
-0.0029125213623046875,
-0.0138092041015625,
0.01708984375,
-0.0171661376953125,
0.0517578125,
-0.00630950927734375,
-0.01678466796875,
0.0657958984375,
0.004261016845703125,
0.0714111328125,
0.008270263671875,
-0.0760498046875,
-0.0167236328125,
-0.00891876220703125,
-0.06781005859375,
0.05023193359375,
0.061279296875,
-0.039398193359375,
0.00853729248046875,
0.00534820556640625,
-0.0008025169372558594,
-0.0003590583801269531,
-0.00927734375,
0.01451873779296875,
-0.0053253173828125,
0.0168914794921875,
0.0164642333984375,
-0.0712890625,
-0.040802001953125,
-0.035491943359375,
0.03173828125,
0.011077880859375,
0.0845947265625,
-0.01389312744140625,
0.0293731689453125,
-0.038238525390625,
0.0677490234375,
-0.0499267578125,
-0.054107666015625,
0.078857421875,
0.054779052734375,
0.03375244140625,
-0.0295867919921875,
-0.027099609375,
0.007778167724609375,
0.03802490234375,
-0.049591064453125,
-0.003688812255859375,
0.0036163330078125,
0.01174163818359375,
-0.01438140869140625,
0.0164337158203125,
-0.0269317626953125,
0.0031032562255859375,
-0.0005826950073242188,
-0.015380859375,
0.0214996337890625,
0.0032863616943359375,
0.00717926025390625,
0.060699462890625,
-0.013580322265625,
-0.0249786376953125,
0.0213165283203125,
-0.07623291015625,
0.032440185546875,
0.034515380859375,
-0.000010311603546142578,
-0.08123779296875,
0.046539306640625,
-0.0015430450439453125,
-0.00687408447265625,
0.0032367706298828125,
0.087890625,
0.003322601318359375,
-0.036376953125,
0.0322265625,
-0.020538330078125,
0.022735595703125,
-0.0278778076171875,
-0.0215301513671875,
-0.002803802490234375,
0.01091766357421875,
0.00798797607421875,
-0.03863525390625,
-0.0219573974609375,
-0.040252685546875,
0.00861358642578125,
0.03143310546875,
-0.00368499755859375,
-0.0017557144165039062,
-0.048370361328125,
-0.0162811279296875,
0.00962066650390625,
-0.002788543701171875,
-0.03729248046875,
0.0252838134765625,
-0.0229034423828125,
-0.010101318359375,
-0.006153106689453125,
-0.06298828125,
0.02447509765625,
0.00811004638671875,
-0.01201629638671875,
0.0031223297119140625,
-0.0306396484375,
-0.0142669677734375,
-0.0034275054931640625,
0.03228759765625,
0.0287933349609375,
-0.0279388427734375,
-0.00804901123046875,
0.054229736328125,
0.039703369140625,
0.099365234375,
0.0204925537109375,
0.0035152435302734375,
0.048095703125,
-0.019989013671875,
-0.0428466796875,
-0.08038330078125,
-0.003894805908203125,
-0.076416015625,
0.0158233642578125,
-0.004100799560546875,
0.031646728515625,
0.03485107421875,
-0.0280609130859375,
-0.08880615234375,
0.029541015625,
-0.0202178955078125,
-0.036712646484375,
-0.03515625,
0.03546142578125,
0.0006055831909179688,
-0.0007157325744628906,
-0.0087432861328125,
-0.0058441162109375,
-0.0021038055419921875,
0.01042938232421875,
-0.01192474365234375,
0.02203369140625,
0.0287017822265625,
-0.002567291259765625,
-0.025665283203125,
-0.01351165771484375,
-0.021270751953125,
-0.035003662109375,
-0.0157623291015625,
0.00635528564453125,
-0.0014276504516601562,
0.023956298828125,
-0.045135498046875,
-0.0200653076171875,
0.0020580291748046875,
0.0246734619140625,
0.005706787109375,
0.00720977783203125,
-0.04193115234375,
-0.006378173828125,
0.0516357421875,
0.068359375,
0.02410888671875,
-0.0248565673828125,
0.010284423828125,
-0.0247955322265625,
-0.06719970703125,
0.0021343231201171875,
0.0274200439453125,
-0.0322265625,
0.0214996337890625,
0.017852783203125,
0.00008797645568847656,
-0.0244140625,
-0.030853271484375,
-0.0347900390625,
-0.0027008056640625,
-0.031463623046875,
0.0079803466796875,
-0.0242156982421875,
0.049591064453125,
0.0310821533203125,
-0.02764892578125,
0.01538848876953125,
-0.0306549072265625,
0.0020923614501953125,
0.0269775390625,
-0.043792724609375,
-0.0224609375,
0.031890869140625,
-0.041351318359375,
0.00785064697265625,
-0.00806427001953125,
0.057281494140625,
-0.03839111328125,
0.022247314453125,
0.0004444122314453125,
0.03289794921875,
-0.00922393798828125,
0.0218048095703125,
-0.026885986328125,
0.06951904296875,
0.006195068359375,
0.059356689453125,
0.01788330078125,
0.0019512176513671875,
0.0032482147216796875,
0.039886474609375,
-0.01837158203125,
-0.0271759033203125,
-0.002208709716796875,
-0.04559326171875,
-0.0015630722045898438,
0.0211334228515625,
-0.04180908203125,
-0.0277252197265625,
0.01250457763671875,
0.006015777587890625,
-0.0006489753723144531,
0.011993408203125
] |
639098941ec4dbfa356a01f61844271e8a731d2d
|
Wordpress Stackexchange
Q: How should one implement add_settings_error on custom menu pages? The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide any joined-up examples of this. Whilst I've managed to get most of it working, I can't figure out how to properly implement add_settings_error on custom Menu pages. Here is my code:
function settings_main_validate( $input ) {
$valid['text_string'] = preg_replace( '/[^a-zA-Z]/', '', $input['text_string'] );
if ( $valid['text_string'] != $input['text_string'] ) {
//add_setting_error: $title, $id, $error_message, $class
add_settings_error( 'fields_main_input', 'texterror', 'Incorrect value entered!', 'error' );
}
return $valid;
}
The validation above will work great on setting rendered using add_options_page, but will not display the settings errors on pages rendered with add_menu_page.
A: A bit late, but I have just been through this. Based on the OP's code, the best solution I found is to insert this code:
function your_admin_notices_action() {
settings_errors( 'fields_main_input' );
}
add_action( 'admin_notices', 'your_admin_notices_action' );
This will add the admin notice display to admin pages rendered using add_menu_page
|
Q: How should one implement add_settings_error on custom menu pages? The Professional WordPress Plugin Development book explains in detail how to properly use the Settings API, and it also demonstrates how to add Menus and Submenus, but unfortunately it doesn't provide any joined-up examples of this. Whilst I've managed to get most of it working, I can't figure out how to properly implement add_settings_error on custom Menu pages. Here is my code:
function settings_main_validate( $input ) {
$valid['text_string'] = preg_replace( '/[^a-zA-Z]/', '', $input['text_string'] );
if ( $valid['text_string'] != $input['text_string'] ) {
//add_setting_error: $title, $id, $error_message, $class
add_settings_error( 'fields_main_input', 'texterror', 'Incorrect value entered!', 'error' );
}
return $valid;
}
The validation above will work great on setting rendered using add_options_page, but will not display the settings errors on pages rendered with add_menu_page.
A: A bit late, but I have just been through this. Based on the OP's code, the best solution I found is to insert this code:
function your_admin_notices_action() {
settings_errors( 'fields_main_input' );
}
add_action( 'admin_notices', 'your_admin_notices_action' );
This will add the admin notice display to admin pages rendered using add_menu_page
A: There are several components to error/notice creation and display process:
*
*add_settings_error() call to add item to stack (global $wp_settings_errors variable).
*settings_errors transient that keeps the errors so they survive move from page to page.
*settings_errors() function get_settings_errors() to retrieve errors from memory or transient and then displays them.
These work like a charm for Settings API, but unfortunately they aren't setup for generic use. On other hand it is trivial to work around that.
Hook settings_errors() to admin_notices on your plugin's page, pass the error code to it so it only shows your stuff.
Manually save errors to settings_errors transient (just stuff that global variable into it).
Since get_settings_errors() expects hint in GET parameters ($_GET['settings-updated']) that it should check transient instead of memory you can either provide that or get errors from transient yourself and save them back to global variable before your settings_errors() call.
Update
You are turning this into bit of a mess with multiple question, so I will try to address your concerns here.
Settings API does work with admin pages, that don't use Settings section as base. Your real issue is that in that case error/notice reporting does not work.
First here is what happens when you post form, set up with Settings API:
*
*Data gets posted to special options.php page.
*There data gets sanitized/validated using callback.
*Any error/notices that came up during sanitization/validation are collected and saved in transient.
*You are redirected back to wherever you came from.
Now when you load admin page it checks if this page belongs to Settings section and if that case includes tiny options-head.php file, that deals with retrieving and displaying errors notices.
So the only thing "not working" on other pages is this latter step, which is trivial to do yourself with overview of related function above (I probably went into too much details on transient, you won't need that for basic case).
A: Simply adding
include_once 'options-head.php';
to my custom menu page's $function seemed to work fine for displaying the error messages on custom menu pages.
|
wordpress
|
{
"language": "en",
"length": 523,
"provenance": "stackexchange_00019.jsonl.gz:411543",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23701"
}
|
[
0.086181640625,
-0.0088653564453125,
0.0178070068359375,
-0.03143310546875,
0.025848388671875,
-0.0357666015625,
0.03021240234375,
-0.0264739990234375,
0.006298065185546875,
0.0004131793975830078,
-0.0038433074951171875,
-0.012176513671875,
-0.0138397216796875,
-0.03668212890625,
-0.005374908447265625,
-0.0252227783203125,
0.0002963542938232422,
0.0155181884765625,
0.0173187255859375,
-0.01091766357421875,
0.005435943603515625,
-0.006427764892578125,
-0.0249786376953125,
0.0263214111328125,
0.0179595947265625,
-0.04766845703125,
0.02764892578125,
0.01300048828125,
-0.004871368408203125,
-0.01532745361328125,
0.004779815673828125,
0.0160369873046875,
0.019744873046875,
0.01445770263671875,
-0.0131988525390625,
-0.007415771484375,
0.041229248046875,
-0.0126800537109375,
-0.0217742919921875,
0.06390380859375,
0.025054931640625,
-0.004589080810546875,
0.053863525390625,
0.031890869140625,
0.00665283203125,
-0.049530029296875,
0.0543212890625,
-0.02935791015625,
0.00574493408203125,
-0.024627685546875,
0.00994110107421875,
-0.028228759765625,
0.028839111328125,
-0.0110626220703125,
-0.03497314453125,
-0.028778076171875,
-0.01439666748046875,
-0.007404327392578125,
0.027557373046875,
0.05889892578125,
-0.0127105712890625,
-0.0054931640625,
-0.00970458984375,
-0.06494140625,
0.004669189453125,
-0.0018301010131835938,
-0.01239776611328125,
0.021392822265625,
-0.02593994140625,
-0.0079803466796875,
0.01398468017578125,
-0.0157318115234375,
0.008056640625,
0.0061492919921875,
-0.011566162109375,
-0.0306396484375,
0.00861358642578125,
-0.0020275115966796875,
0.0125732421875,
0.0098419189453125,
0.03900146484375,
0.0232696533203125,
0.007354736328125,
-0.00946807861328125,
0.0242919921875,
0.040740966796875,
0.00830078125,
-0.03790283203125,
-0.01007080078125,
-0.007198333740234375,
-0.00749969482421875,
-0.0572509765625,
-0.0158233642578125,
0.031463623046875,
0.0207977294921875,
-0.0391845703125,
0.043182373046875,
0.07958984375,
-0.006679534912109375,
0.0232696533203125,
-0.01496124267578125,
-0.0318603515625,
0.048919677734375,
-0.045562744140625,
-0.0030078887939453125,
0.04852294921875,
0.004268646240234375,
-0.06549072265625,
-0.005306243896484375,
0.01119232177734375,
0.0004057884216308594,
-0.0295257568359375,
-0.0106964111328125,
-0.052734375,
0.00690460205078125,
0.008514404296875,
-0.0131378173828125,
-0.0011434555053710938,
0.0206756591796875,
-0.0460205078125,
-0.0005025863647460938,
0.0272216796875,
-0.03131103515625,
-0.0190277099609375,
-0.001987457275390625,
-0.015472412109375,
-0.00911712646484375,
-0.0090484619140625,
0.036376953125,
0.006519317626953125,
-0.034149169921875,
0.0024261474609375,
0.07965087890625,
0.0171661376953125,
0.017059326171875,
-0.029571533203125,
0.050537109375,
-0.021148681640625,
-0.01415252685546875,
0.01502227783203125,
0.0033512115478515625,
0.01462554931640625,
-0.01052093505859375,
-0.0238800048828125,
-0.02410888671875,
0.00571441650390625,
0.01629638671875,
0.015777587890625,
-0.013458251953125,
-0.0501708984375,
0.01401519775390625,
-0.0189971923828125,
0.055267333984375,
0.000004172325134277344,
-0.052703857421875,
0.00896453857421875,
0.0012569427490234375,
-0.01045989990234375,
-0.03570556640625,
-0.034759521484375,
-0.0235137939453125,
-0.024139404296875,
0.0229034423828125,
-0.05133056640625,
-0.053558349609375,
0.03662109375,
-0.046722412109375,
-0.005855560302734375,
0.01091766357421875,
-0.0141143798828125,
0.01337432861328125,
0.005939483642578125,
0.00208282470703125,
-0.002498626708984375,
-0.00534820556640625,
-0.0016298294067382812,
-0.0158538818359375,
0.00970458984375,
0.0311126708984375,
0.02899169921875,
-0.0020751953125,
-0.039398193359375,
0.03424072265625,
-0.01084136962890625,
-0.06689453125,
0.03997802734375,
0.0039043426513671875,
0.08355712890625,
0.0195770263671875,
0.0231170654296875,
0.006191253662109375,
-0.00792694091796875,
0.027130126953125,
-0.025177001953125,
-0.0216064453125,
-0.036346435546875,
0.00809478759765625,
0.00722503662109375,
-0.0251007080078125,
0.01873779296875,
-0.073486328125,
0.0095062255859375,
-0.0015850067138671875,
0.049774169921875,
-0.01702880859375,
0.0252685546875,
-0.024871826171875,
0.0285491943359375,
-0.002490997314453125,
0.006649017333984375,
0.006298065185546875,
-0.015167236328125,
-0.01519012451171875,
-0.017333984375,
-0.030426025390625,
-0.0029430389404296875,
-0.02001953125,
0.07464599609375,
0.00519561767578125,
0.06201171875,
0.0155181884765625,
-0.05426025390625,
0.0156402587890625,
-0.023040771484375,
-0.00861358642578125,
-0.01538848876953125,
-0.0036983489990234375,
-0.0100555419921875,
-0.0026035308837890625,
-0.0171966552734375,
0.04461669921875,
0.032867431640625,
0.033050537109375,
-0.009185791015625,
-0.0355224609375,
-0.00019431114196777344,
-0.02239990234375,
-0.0687255859375,
-0.0207672119140625,
0.052215576171875,
0.04364013671875,
0.00136566162109375,
-0.004657745361328125,
-0.0196533203125,
0.035491943359375,
-0.0687255859375,
-0.00047707557678222656,
-0.0205841064453125,
-0.0225067138671875,
-0.0267486572265625,
-0.00782012939453125,
-0.023681640625,
0.03155517578125,
-0.0594482421875,
0.0002009868621826172,
0.037109375,
-0.05059814453125,
-0.051971435546875,
0.032470703125,
-0.03912353515625,
0.0258941650390625,
-0.072021484375,
-0.0264129638671875,
-0.0146484375,
0.047821044921875,
0.01568603515625,
0.0295257568359375,
0.005664825439453125,
-0.01953125,
0.017578125,
0.01232147216796875,
-0.059234619140625,
-0.00848388671875,
0.00189971923828125,
0.002941131591796875,
-0.018585205078125,
-0.031219482421875,
0.0171966552734375,
-0.01282501220703125,
-0.0135498046875,
-0.0203704833984375,
0.0330810546875,
-0.031890869140625,
-0.013580322265625,
-0.0168304443359375,
-0.053192138671875,
-0.0003612041473388672,
-0.0006422996520996094,
0.050689697265625,
-0.0157318115234375,
0.0143890380859375,
0.0137786865234375,
-0.0210418701171875,
0.049072265625,
0.0096282958984375,
-0.033599853515625,
0.0538330078125,
-0.004344940185546875,
0.022857666015625,
-0.0312042236328125,
0.0292816162109375,
0.028076171875,
-0.025390625,
0.0015192031860351562,
0.004058837890625,
0.0059814453125,
-0.00992584228515625,
0.040496826171875,
0.0196380615234375,
-0.038726806640625,
0.01446533203125,
0.03912353515625,
0.0230255126953125,
0.00249481201171875,
0.007232666015625,
-0.0374755859375,
-0.0257110595703125,
0.018463134765625,
-0.04779052734375,
-0.01348114013671875,
0.0159759521484375,
-0.042633056640625,
0.0206451416015625,
0.032867431640625,
-0.0162353515625,
-0.0240325927734375,
0.062408447265625,
0.006404876708984375,
-0.0030231475830078125,
-0.025054931640625,
-0.016632080078125,
-0.015716552734375,
-0.031707763671875,
-0.0078582763671875,
0.0080108642578125,
-0.0196533203125,
0.0022525787353515625,
0.072021484375,
0.021148681640625,
-0.0794677734375,
0.0255279541015625,
-0.023284912109375,
-0.0191192626953125,
0.05328369140625,
0.0268096923828125,
0.00716400146484375,
0.0261383056640625,
0.019775390625,
-0.0155487060546875,
0.0350341796875,
-0.034149169921875,
-0.032135009765625,
-0.051788330078125,
0.0007262229919433594,
-0.006710052490234375,
-0.0258941650390625,
0.052886962890625,
-0.0162811279296875,
-0.023895263671875,
-0.045135498046875,
-0.050079345703125,
0.027130126953125,
-0.041900634765625,
0.0156707763671875,
-0.01105499267578125,
0.0007510185241699219,
0.024871826171875,
0.0292205810546875,
-0.0024623870849609375,
-0.001949310302734375,
0.06298828125,
0.0036830902099609375,
-0.027618408203125,
-0.04150390625,
-0.05279541015625,
-0.042327880859375,
0.027587890625,
0.0012083053588867188,
0.000888824462890625,
0.0155029296875,
0.03912353515625,
0.01117706298828125,
-0.01067352294921875,
-0.03173828125,
-0.06439208984375,
0.0234375,
-0.07110595703125,
0.028961181640625,
-0.051025390625,
0.0015811920166015625,
-0.00510406494140625,
0.1048583984375,
-0.040313720703125,
-0.038299560546875,
-0.0150299072265625,
0.022705078125,
0.007434844970703125,
-0.01153564453125,
0.01922607421875,
-0.0248260498046875,
-0.06488037109375,
-0.0032501220703125,
-0.0194854736328125,
-0.02490234375,
-0.006862640380859375,
0.0306854248046875,
-0.0260009765625,
-0.038360595703125,
0.03948974609375,
-0.0555419921875,
0.034271240234375,
0.035369873046875,
0.00344085693359375,
-0.00156402587890625,
-0.0162353515625,
-0.045013427734375,
-0.09320068359375,
-0.0290374755859375,
-0.0153045654296875,
0.084228515625,
0.042755126953125,
-0.0673828125,
-0.0016269683837890625,
0.056182861328125,
0.029876708984375,
0.00717926025390625,
0.018585205078125,
0.00934600830078125,
0.04034423828125,
-0.044097900390625,
-0.0007214546203613281,
-0.0447998046875,
0.016815185546875,
0.04180908203125,
-0.066650390625,
0.0164337158203125,
-0.0090789794921875,
-0.003292083740234375,
0.058135986328125,
-0.07061767578125,
-0.04559326171875,
-0.018524169921875,
-0.024444580078125,
0.0048370361328125,
-0.01001739501953125,
-0.02301025390625,
-0.0101470947265625,
-0.048248291015625,
-0.032379150390625,
-0.06280517578125,
-0.0200958251953125,
0.034423828125,
0.025360107421875,
0.02923583984375,
0.02227783203125,
0.00757598876953125,
-0.0025730133056640625,
0.0253143310546875,
-0.0181884765625,
0.0198822021484375,
-0.0005688667297363281,
-0.0306549072265625,
0.0677490234375,
-0.0216827392578125,
-0.0194091796875,
-0.0144500732421875,
0.03741455078125,
0.0012197494506835938,
-0.0196380615234375,
-0.01485443115234375,
-0.0361328125,
0.055877685546875,
-0.003387451171875,
-0.0122833251953125,
-0.0240325927734375,
-0.01290130615234375,
0.0222320556640625,
-0.0263214111328125,
0.06915283203125,
-0.0008087158203125,
0.021881103515625,
-0.0179290771484375,
0.01094818115234375,
0.0408935546875,
0.0390625,
-0.007236480712890625,
-0.0293121337890625,
0.0004603862762451172,
0.0037555694580078125,
0.0002613067626953125,
0.0244293212890625,
0.005748748779296875,
0.03948974609375,
0.02099609375,
-0.0017843246459960938,
-0.0178680419921875,
-0.005214691162109375,
0.06463623046875,
-0.004283905029296875,
-0.03546142578125,
-0.036102294921875,
-0.01593017578125,
0.0687255859375,
0.0021724700927734375,
0.001232147216796875,
0.026519775390625,
0.0082244873046875,
-0.03778076171875,
-0.0155487060546875,
0.021759033203125,
-0.03521728515625,
-0.0357666015625,
0.01546478271484375,
0.01206207275390625,
-0.0115203857421875,
-0.01212310791015625,
0.03955078125,
-0.01036834716796875,
0.01184844970703125,
0.003513336181640625,
0.0197906494140625,
0.031982421875,
0.0254058837890625,
0.0181884765625,
-0.007843017578125,
-0.0026187896728515625,
0.0219268798828125,
0.005115509033203125,
-0.012298583984375,
-0.021514892578125,
0.004695892333984375,
0.01117706298828125,
-0.021453857421875,
0.01410675048828125,
0.0242462158203125,
0.019775390625,
-0.036407470703125,
0.04315185546875,
-0.03564453125,
-0.0855712890625,
-0.043304443359375,
0.0280914306640625,
0.048858642578125,
-0.0263519287109375,
-0.0171661376953125,
0.08160400390625,
0.0022907257080078125,
0.050506591796875,
-0.01451873779296875,
-0.00893402099609375,
0.0017461776733398438,
0.014801025390625,
-0.053131103515625,
-0.003566741943359375,
0.020782470703125,
-0.07366943359375,
-0.06646728515625,
0.015625,
-0.002513885498046875,
-0.0007243156433105469,
-0.036041259765625,
0.005275726318359375,
-0.017852783203125,
0.0258636474609375,
-0.012786865234375,
0.0012350082397460938,
0.060577392578125,
0.02557373046875,
-0.046417236328125,
0.007099151611328125,
-0.00923919677734375,
0.006256103515625,
-0.0052947998046875,
-0.05126953125,
-0.00835418701171875,
-0.0266571044921875,
0.0203399658203125,
0.006938934326171875,
0.0048675537109375,
-0.018585205078125,
-0.050537109375,
0.030059814453125,
0.042449951171875,
0.036102294921875,
-0.0083465576171875,
0.05694580078125,
0.0115509033203125,
0.023345947265625,
0.0245361328125,
0.01381683349609375,
-0.01154327392578125,
-0.004680633544921875,
0.00274658203125,
0.016632080078125,
-0.00768280029296875,
-0.0288238525390625,
0.00730133056640625,
0.017364501953125,
0.074951171875,
-0.01015472412109375,
0.0338134765625,
-0.0008325576782226562,
0.0044097900390625,
-0.01861572265625,
0.014678955078125,
-0.017730712890625,
-0.01445770263671875,
0.07916259765625,
-0.039306640625,
-0.01465606689453125,
0.0028934478759765625,
0.023223876953125,
0.03619384765625,
-0.030731201171875,
0.0305938720703125,
-0.0068359375,
-0.0704345703125,
0.08697509765625,
0.060699462890625,
0.004497528076171875,
0.0095977783203125,
-0.01505279541015625,
-0.0101165771484375,
-0.033111572265625,
0.007427215576171875,
-0.017974853515625,
-0.0004930496215820312,
0.05419921875,
0.00847625732421875,
-0.004169464111328125,
0.04901123046875,
-0.0215606689453125,
0.0199432373046875,
0.10736083984375,
0.0928955078125,
-0.1402587890625,
-0.004634857177734375,
0.036529541015625,
0.006221771240234375,
0.036773681640625,
-0.007610321044921875,
0.00974273681640625,
-0.01427459716796875,
0.04058837890625,
-0.0260009765625,
-0.0022830963134765625,
0.01898193359375,
-0.0232391357421875,
-0.02813720703125,
0.00348663330078125,
0.038665771484375,
0.00832366943359375,
0.0157012939453125,
-0.018524169921875,
-0.01161956787109375,
-0.0074005126953125,
0.028411865234375,
0.0275115966796875,
-0.005977630615234375,
-0.034271240234375,
-0.028411865234375,
-0.01403045654296875,
-0.0295867919921875,
-0.038177490234375,
0.0214385986328125,
-0.01250457763671875,
0.006183624267578125,
0.0298309326171875,
-0.0172119140625,
0.0012378692626953125,
-0.02264404296875,
0.01517486572265625,
0.0276031494140625,
-0.02044677734375,
-0.004352569580078125,
0.029876708984375,
-0.036407470703125,
0.002086639404296875,
-0.0038738250732421875,
-0.01105499267578125,
-0.0003528594970703125,
-0.0004930496215820312,
0.0880126953125,
-0.025909423828125,
-0.044769287109375,
-0.00675201416015625,
-0.0258636474609375,
0.01232147216796875,
-0.015045166015625,
0.04864501953125,
-0.06439208984375,
-0.025421142578125,
0.00026607513427734375,
-0.032135009765625,
-0.0195159912109375,
-0.034942626953125,
-0.0219268798828125,
0.09259033203125,
-0.015167236328125,
-0.0242919921875,
0.0197601318359375,
0.056182861328125,
-0.0391845703125,
0.042724609375,
-0.0267333984375,
0.050140380859375,
0.01381683349609375,
0.0208282470703125,
-0.05963134765625,
-0.01027679443359375,
-0.022216796875,
0.047088623046875,
0.035552978515625,
0.0223541259765625,
-0.03985595703125,
0.0015401840209960938,
0.029327392578125,
-0.035400390625,
-0.0250091552734375,
0.079833984375,
-0.0256805419921875,
-0.046142578125,
0.0146026611328125,
-0.006320953369140625,
0.041534423828125,
-0.061859130859375,
-0.01224517822265625,
-0.01519775390625,
-0.0065155029296875,
0.00323486328125,
-0.02105712890625,
0.0015850067138671875,
-0.0024967193603515625,
-0.0174102783203125,
0.01291656494140625,
-0.06341552734375,
-0.00916290283203125,
0.0164642333984375,
-0.0005507469177246094,
0.0038738250732421875,
0.00016605854034423828,
-0.01531219482421875,
0.0169525146484375,
0.0009393692016601562,
0.019287109375,
0.0188751220703125,
0.0081787109375,
0.00787353515625,
0.0198516845703125,
0.007312774658203125,
0.0297088623046875,
-0.00972747802734375,
0.01556396484375,
0.0013570785522460938,
0.04180908203125,
-0.016387939453125,
0.005527496337890625,
-0.0103912353515625,
0.017547607421875,
-0.01168060302734375,
-0.047821044921875,
-0.00022685527801513672,
-0.00937652587890625,
0.01314544677734375,
0.026641845703125,
0.02197265625,
-0.0084686279296875,
0.0294036865234375,
-0.043975830078125,
-0.0042877197265625,
0.0094757080078125,
0.01336669921875,
-0.0224609375,
-0.025634765625,
0.0019168853759765625,
0.00624847412109375,
-0.043609619140625,
0.0175323486328125,
0.0030918121337890625,
0.08123779296875,
0.00331878662109375,
0.065673828125,
-0.066650390625,
-0.031494140625,
-0.0158843994140625,
-0.0027294158935546875,
-0.005184173583984375,
0.01465606689453125,
-0.027618408203125,
0.006702423095703125,
-0.01285552978515625,
0.024810791015625,
-0.0187530517578125,
-0.0023784637451171875,
0.0134124755859375,
0.006778717041015625,
-0.0294647216796875,
-0.0145416259765625,
0.005580902099609375,
-0.0284881591796875,
-0.04449462890625,
-0.0239105224609375,
-0.0184478759765625,
0.0141754150390625,
0.0087432861328125,
0.01334381103515625,
0.02099609375,
-0.01142120361328125,
0.007965087890625,
0.0180511474609375,
0.00745391845703125,
0.0110321044921875,
0.028961181640625,
0.00617218017578125,
0.00551605224609375,
0.046844482421875,
-0.0921630859375,
-0.0242767333984375,
-0.02880859375,
-0.031951904296875,
0.02728271484375,
0.0377197265625,
-0.0205078125,
0.029998779296875,
0.034881591796875,
0.001171112060546875,
0.0235443115234375,
-0.0176849365234375,
0.002384185791015625,
-0.006328582763671875,
0.024871826171875,
0.00850677490234375,
0.028045654296875,
0.004425048828125,
0.01019287109375,
0.059173583984375,
0.01187896728515625,
0.04583740234375,
-0.0287017822265625,
0.031494140625,
-0.03326416015625,
0.00007909536361694336,
-0.021484375,
-0.03216552734375,
0.021148681640625,
0.00308990478515625,
-0.0262298583984375,
0.0027332305908203125,
-0.0255584716796875,
0.0631103515625,
0.0130157470703125,
-0.029296875,
0.0269622802734375,
0.01806640625,
-0.0151824951171875,
-0.0311737060546875,
0.0675048828125,
-0.003604888916015625,
-0.0439453125,
-0.00995635986328125,
0.01105499267578125,
-6.556510925292969e-7,
0.06585693359375,
0.0306549072265625,
0.01499176025390625,
-0.01374053955078125,
-0.01105499267578125,
0.003887176513671875,
-0.01229095458984375,
0.00429534912109375,
0.033782958984375,
-0.0272216796875,
0.0272979736328125,
-0.0177764892578125,
-0.0210723876953125,
0.0126190185546875,
0.00628662109375,
-0.01139068603515625,
-0.00934600830078125,
0.035980224609375,
0.050628662109375,
-0.0174102783203125,
0.0204010009765625,
-0.039642333984375,
-0.0186004638671875,
0.02423095703125,
0.0183258056640625,
-0.000038564205169677734,
0.01154327392578125,
-0.0280609130859375,
-0.044769287109375,
-0.0055084228515625,
0.0184173583984375,
-0.01934814453125,
-0.0261383056640625,
-0.047821044921875,
0.022796630859375,
0.02667236328125,
-0.004245758056640625,
-0.058013916015625,
0.017486572265625,
-0.0240936279296875,
0.08514404296875,
-0.037994384765625,
-0.005100250244140625,
-0.00392913818359375,
0.0158538818359375,
-0.031951904296875,
-0.00348663330078125,
-0.044769287109375,
-0.0032901763916015625,
-0.0386962890625,
-0.0009140968322753906,
0.051177978515625,
-0.0172882080078125,
-0.074951171875,
-0.0156707763671875,
-0.006877899169921875,
0.0223388671875,
-0.01763916015625,
-0.0266571044921875,
0.002471923828125,
-0.005176544189453125,
0.00963592529296875,
-0.03515625,
-0.0088653564453125,
-0.043670654296875,
0.013671875,
0.0001379251480102539,
-0.0038738250732421875,
0.00750732421875,
-0.034942626953125,
-0.0838623046875,
0.05145263671875,
-0.008270263671875,
-0.031097412109375,
0.00960540771484375,
-0.0221710205078125,
-0.0341796875,
0.035614013671875,
0.0170135498046875,
-0.01496124267578125,
0.0025119781494140625,
0.036224365234375,
-0.0018100738525390625,
-0.005096435546875,
0.027984619140625,
-0.0164031982421875,
-0.0635986328125,
-0.022613525390625,
-0.023468017578125,
-0.006771087646484375,
0.0180816650390625,
-0.0273895263671875,
0.026458740234375,
0.027252197265625,
-0.054229736328125,
-0.08447265625,
-0.0184326171875,
0.01548004150390625,
-0.00571441650390625,
0.00485992431640625,
-0.030609130859375,
-0.00824737548828125,
0.060516357421875,
0.053131103515625,
0.025665283203125,
-0.03411865234375,
0.006992340087890625,
-0.00946807861328125,
0.0011472702026367188,
-0.0192718505859375,
-0.0147552490234375,
-0.01094818115234375,
-0.00365447998046875,
-0.042572021484375,
0.00795745849609375,
-0.01111602783203125,
0.01708984375,
0.0041656494140625,
-0.01056671142578125,
0.060943603515625,
-0.0007543563842773438,
-0.0209503173828125,
-0.043365478515625,
0.07708740234375,
-0.04986572265625,
-0.0284271240234375,
0.0165557861328125,
0.0213470458984375,
0.01525115966796875,
0.0208892822265625,
0.004138946533203125,
-0.0004813671112060547,
-0.059967041015625,
0.01169586181640625,
-0.01220703125,
0.0557861328125,
-0.0447998046875,
-0.03009033203125,
0.0183563232421875,
0.0027866363525390625,
-0.0263671875,
-0.01287078857421875,
0.0304718017578125,
0.0171966552734375,
-0.034912109375,
0.054962158203125,
-0.00672149658203125,
0.07208251953125,
-0.01490020751953125,
0.05401611328125,
0.019439697265625,
-0.02276611328125,
0.034820556640625,
-0.0181427001953125,
-0.0005960464477539062,
0.005916595458984375,
0.02874755859375,
-0.0548095703125,
0.060333251953125,
0.036224365234375,
0.032501220703125,
0.044464111328125
] |
221848e3889541ce9a13bafa87df3aecf1135fe7
|
Wordpress Stackexchange
Q: How to order posts by descending comment count on taxonomy page? This lists the posts in my custom taxonomy template page:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
How can I order those posts by comment count?
A: A friend helped me with a solution that I could place in my functions.php file:
add_filter( 'pre_get_posts', 'my_pre_get_posts' );
function my_pre_get_posts( $query ) {
if ( is_tax( 'locations' ) && empty( $query->query_vars['suppress_filters'] ) )
$query->set( 'orderby', 'comment_count' );
return $query;
}
|
Q: How to order posts by descending comment count on taxonomy page? This lists the posts in my custom taxonomy template page:
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
How can I order those posts by comment count?
A: A friend helped me with a solution that I could place in my functions.php file:
add_filter( 'pre_get_posts', 'my_pre_get_posts' );
function my_pre_get_posts( $query ) {
if ( is_tax( 'locations' ) && empty( $query->query_vars['suppress_filters'] ) )
$query->set( 'orderby', 'comment_count' );
return $query;
}
A: WP Query has a comment_count parameter since 2.9.
So:
query_posts(array('orderby' => 'comment_count', 'posts_per_page' => '10'));
if ( have_posts() ) : while ( have_posts() ) : the_post();
|
wordpress
|
{
"language": "en",
"length": 113,
"provenance": "stackexchange_00019.jsonl.gz:411548",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23723"
}
|
[
0.07568359375,
0.00925445556640625,
0.0272216796875,
-0.037811279296875,
0.030609130859375,
-0.03076171875,
0.06610107421875,
-0.01316070556640625,
0.02215576171875,
0.01727294921875,
-0.04864501953125,
-0.0015058517456054688,
-0.04364013671875,
0.00504302978515625,
-0.034271240234375,
-0.05755615234375,
0.0423583984375,
-0.005023956298828125,
0.055877685546875,
-0.0100555419921875,
0.0226898193359375,
0.01776123046875,
0.04388427734375,
0.0394287109375,
0.00412750244140625,
-0.0235595703125,
0.09466552734375,
-0.020416259765625,
0.00354766845703125,
-0.036285400390625,
0.0166473388671875,
0.007965087890625,
0.02581787109375,
-0.018280029296875,
0.0225830078125,
0.0157470703125,
0.01372528076171875,
-0.003688812255859375,
0.00934600830078125,
0.019012451171875,
0.0472412109375,
-0.0232391357421875,
0.005645751953125,
0.003192901611328125,
0.00902557373046875,
-0.019744873046875,
0.0305328369140625,
-0.0596923828125,
0.044189453125,
-0.0526123046875,
0.0030231475830078125,
0.0190887451171875,
0.034088134765625,
-0.07916259765625,
-0.03448486328125,
-0.00989532470703125,
-0.00922393798828125,
0.0250244140625,
0.026153564453125,
-0.04388427734375,
-0.0290985107421875,
0.00209808349609375,
0.036376953125,
0.0266265869140625,
-0.01129150390625,
-0.00418853759765625,
0.03985595703125,
0.0269927978515625,
-0.019073486328125,
-0.026611328125,
0.00952911376953125,
0.00855255126953125,
0.0120849609375,
-0.001483917236328125,
0.03253173828125,
-0.06591796875,
0.00675201416015625,
-0.0218505859375,
0.01331329345703125,
0.0389404296875,
0.01763916015625,
0.0126495361328125,
0.0067901611328125,
-0.0130157470703125,
-0.007411956787109375,
-0.01415252685546875,
-0.01336669921875,
-0.0120849609375,
-0.0202789306640625,
-0.0244140625,
-0.007656097412109375,
-0.007450103759765625,
-0.03802490234375,
0.033843994140625,
-0.00896453857421875,
-0.006313323974609375,
0.0192108154296875,
0.03521728515625,
-0.025726318359375,
-0.0224609375,
-0.0263824462890625,
-0.0174713134765625,
-0.03863525390625,
-0.0081329345703125,
0.0196380615234375,
-0.028472900390625,
-0.0335693359375,
-0.002506256103515625,
0.049835205078125,
0.0672607421875,
-0.01442718505859375,
0.014801025390625,
-0.0061492919921875,
-0.032806396484375,
-0.0006165504455566406,
0.004009246826171875,
-0.0284576416015625,
0.024322509765625,
0.00859832763671875,
-0.034271240234375,
-0.006900787353515625,
0.0203857421875,
0.01155853271484375,
-0.0271148681640625,
0.0238494873046875,
0.014678955078125,
-0.00839996337890625,
-0.033416748046875,
-0.00012540817260742188,
0.037841796875,
-0.028289794921875,
0.023468017578125,
0.03179931640625,
-0.00624847412109375,
-0.0269317626953125,
-0.029327392578125,
-0.0024814605712890625,
-0.016387939453125,
-0.00724029541015625,
-0.005016326904296875,
0.0276031494140625,
-0.03240966796875,
-0.0107269287109375,
0.00287628173828125,
-0.0107269287109375,
0.01482391357421875,
0.02130126953125,
0.014678955078125,
-0.01220703125,
-0.0516357421875,
0.00977325439453125,
0.01226043701171875,
0.056976318359375,
-0.0198516845703125,
-0.037445068359375,
-0.0191802978515625,
-0.0221405029296875,
-0.02069091796875,
-0.01358795166015625,
-0.03363037109375,
0.02239990234375,
0.00891876220703125,
-0.001953125,
-0.027679443359375,
-0.033935546875,
-0.016357421875,
-0.01024627685546875,
-0.00832366943359375,
0.024658203125,
-0.01117706298828125,
0.03125,
-0.0083160400390625,
0.00942230224609375,
-0.0077362060546875,
-0.003520965576171875,
0.0106964111328125,
-0.0048828125,
-0.032470703125,
0.01273345947265625,
0.031585693359375,
-0.010345458984375,
-0.03985595703125,
-0.0280303955078125,
0.015838623046875,
-0.0430908203125,
0.037506103515625,
0.0178680419921875,
0.0501708984375,
-0.0171966552734375,
0.018585205078125,
0.0173797607421875,
0.05078125,
-0.061920166015625,
0.054901123046875,
0.00934600830078125,
-0.03692626953125,
-0.00551605224609375,
-0.000370025634765625,
0.00830841064453125,
-0.032501220703125,
-0.046844482421875,
0.0120391845703125,
-0.0134429931640625,
0.0258026123046875,
-0.0007281303405761719,
0.00897216796875,
-0.0031948089599609375,
0.033233642578125,
-0.0105743408203125,
0.0163116455078125,
0.017669677734375,
-0.0053558349609375,
-0.02618408203125,
-0.0167999267578125,
-0.041015625,
-0.0313720703125,
0.01013946533203125,
-0.0038604736328125,
-0.01021575927734375,
0.0010728836059570312,
-0.028045654296875,
0.005184173583984375,
-0.046112060546875,
0.018310546875,
0.03521728515625,
-0.004322052001953125,
-0.030029296875,
-0.0202484130859375,
-0.0038394927978515625,
0.01239013671875,
-0.048004150390625,
0.0250396728515625,
0.0280914306640625,
0.014373779296875,
-0.040679931640625,
-0.00013566017150878906,
0.0030193328857421875,
-0.0234375,
-0.0005154609680175781,
0.03216552734375,
0.029449462890625,
0.0229034423828125,
0.0210723876953125,
0.046295166015625,
0.05706787109375,
-0.0171966552734375,
0.016143798828125,
0.0038661956787109375,
0.0208282470703125,
0.04205322265625,
0.0272979736328125,
0.002300262451171875,
0.0202178955078125,
-0.0035457611083984375,
0.025970458984375,
0.0214691162109375,
0.01412200927734375,
0.01032257080078125,
-0.01074981689453125,
0.009735107421875,
0.0053253173828125,
-0.01181793212890625,
-0.039520263671875,
0.0005431175231933594,
-0.0200653076171875,
-0.0220794677734375,
-0.00963592529296875,
-0.0082855224609375,
-0.01739501953125,
-0.0216827392578125,
0.035125732421875,
-0.00545501708984375,
0.00774383544921875,
-0.013824462890625,
-0.042236328125,
0.0215301513671875,
-0.024169921875,
0.014404296875,
-0.0002751350402832031,
-0.015045166015625,
-0.003986358642578125,
0.055511474609375,
-0.03826904296875,
-0.005756378173828125,
-0.04754638671875,
-0.08648681640625,
-0.01104736328125,
0.06390380859375,
-0.0772705078125,
-0.044830322265625,
-0.01507568359375,
0.047088623046875,
-0.0182647705078125,
-0.0083770751953125,
0.0091552734375,
0.004913330078125,
-0.0233001708984375,
-0.068603515625,
0.044891357421875,
-0.054534912109375,
0.049041748046875,
0.07696533203125,
-0.0022068023681640625,
0.022796630859375,
0.01000213623046875,
0.01849365234375,
0.0261077880859375,
0.0204620361328125,
0.002536773681640625,
-0.0113372802734375,
-0.01351165771484375,
0.021514892578125,
0.033172607421875,
0.012908935546875,
0.0281829833984375,
-0.006832122802734375,
0.01271820068359375,
0.0325927734375,
-0.0149688720703125,
-0.0187225341796875,
0.038970947265625,
-0.0186767578125,
0.0051422119140625,
-0.0205078125,
-0.01206207275390625,
-0.028076171875,
-0.012451171875,
-0.00582122802734375,
-0.017852783203125,
-0.026611328125,
-0.056243896484375,
-0.051727294921875,
-0.054290771484375,
0.017578125,
0.007904052734375,
0.0134735107421875,
0.0162353515625,
0.0853271484375,
0.0217132568359375,
-0.06591796875,
0.021881103515625,
-0.0247802734375,
-0.0325927734375,
0.0517578125,
-0.00998687744140625,
-0.01507568359375,
0.01568603515625,
0.01111602783203125,
0.0281219482421875,
0.01538848876953125,
-0.0090484619140625,
-0.0030384063720703125,
-0.004085540771484375,
0.0100555419921875,
0.017059326171875,
0.0124053955078125,
0.001041412353515625,
0.0126953125,
0.0131683349609375,
-0.038421630859375,
-0.00490570068359375,
-0.024169921875,
-0.0308990478515625,
-0.0004119873046875,
0.01015472412109375,
0.00951385498046875,
-0.042999267578125,
0.028717041015625,
0.01071929931640625,
0.016143798828125,
0.0044403076171875,
-0.01210784912109375,
0.0333251953125,
0.01114654541015625,
0.01187896728515625,
-0.01488494873046875,
-0.0062713623046875,
-0.028045654296875,
0.011810302734375,
-0.0164642333984375,
0.02679443359375,
-0.0156097412109375,
0.037384033203125,
-0.058013916015625,
-0.06396484375,
0.048309326171875,
-0.0153045654296875,
-0.02545166015625,
-0.0196380615234375,
-0.0264129638671875,
0.0186614990234375,
0.08856201171875,
-0.045806884765625,
-0.03302001953125,
0.00754547119140625,
-0.00250244140625,
0.0193328857421875,
0.031707763671875,
-0.015533447265625,
-0.0408935546875,
-0.0848388671875,
0.02886962890625,
0.020263671875,
-0.03759765625,
-0.04248046875,
0.0145721435546875,
-0.07806396484375,
-0.0197296142578125,
0.00933074951171875,
-0.0211334228515625,
-0.0031375885009765625,
-0.003875732421875,
-0.042205810546875,
0.01367950439453125,
-0.006275177001953125,
-0.023834228515625,
-0.028839111328125,
0.00740814208984375,
-0.0188751220703125,
-0.0015287399291992188,
0.00019633769989013672,
0.019195556640625,
-0.01195526123046875,
0.01971435546875,
-0.0030422210693359375,
0.019378662109375,
0.0049591064453125,
0.0242919921875,
-0.0235443115234375,
-0.0122528076171875,
0.0079345703125,
-0.027923583984375,
-0.01230621337890625,
0.006000518798828125,
0.01383209228515625,
0.07415771484375,
-0.034912109375,
0.0021495819091796875,
-0.04779052734375,
-0.0099945068359375,
-0.043304443359375,
-0.038482666015625,
-0.018341064453125,
-0.0058135986328125,
-0.005504608154296875,
-0.00598907470703125,
-0.0289459228515625,
-0.049957275390625,
0.0012102127075195312,
-0.010223388671875,
-0.015655517578125,
0.0165863037109375,
0.052490234375,
0.02215576171875,
0.005161285400390625,
-0.0291900634765625,
0.00011235475540161133,
0.034759521484375,
0.01038360595703125,
0.0274505615234375,
0.01067352294921875,
-0.0263519287109375,
0.052764892578125,
0.01763916015625,
-0.0030193328857421875,
0.008331298828125,
0.0204010009765625,
-0.011138916015625,
-0.033355712890625,
0.0261383056640625,
-0.02056884765625,
0.0242767333984375,
0.023895263671875,
-0.0029621124267578125,
-0.039581298828125,
-0.02899169921875,
0.06121826171875,
0.005733489990234375,
0.0188751220703125,
-0.052764892578125,
-0.062286376953125,
0.0364990234375,
-0.0313720703125,
0.031341552734375,
-0.003055572509765625,
0.00177001953125,
0.052154541015625,
-0.00041604042053222656,
0.0172882080078125,
0.045257568359375,
0.06756591796875,
-0.0288238525390625,
0.0312347412109375,
0.03167724609375,
-0.01517486572265625,
0.01363372802734375,
-0.019683837890625,
0.058502197265625,
0.008026123046875,
-0.0406494140625,
-0.00959014892578125,
-0.01390838623046875,
0.022308349609375,
0.01552581787109375,
-0.0089569091796875,
0.030426025390625,
-0.005115509033203125,
-0.0137786865234375,
0.0146636962890625,
-0.0499267578125,
-0.01432037353515625,
-0.037200927734375,
0.01184844970703125,
0.01517486572265625,
-0.0190277099609375,
0.006488800048828125,
0.0426025390625,
-0.002567291259765625,
0.01605224609375,
-0.0142669677734375,
0.014801025390625,
0.0266571044921875,
0.01104736328125,
0.0202789306640625,
-0.004985809326171875,
-0.01422119140625,
-0.01265716552734375,
0.006969451904296875,
-0.0083465576171875,
-0.016845703125,
-0.0120697021484375,
-0.026580810546875,
-0.01898193359375,
0.0254058837890625,
0.046966552734375,
0.025726318359375,
0.005878448486328125,
-0.00841522216796875,
0.022064208984375,
-0.00669097900390625,
0.00788116455078125,
-0.0235137939453125,
-0.027587890625,
0.0111083984375,
-0.0003635883331298828,
-0.022247314453125,
-0.01531982421875,
0.032073974609375,
-0.057891845703125,
0.04248046875,
-0.0224609375,
-0.03564453125,
-0.042388916015625,
0.002819061279296875,
0.0262298583984375,
-0.034393310546875,
-0.05224609375,
0.00527191162109375,
-0.0003666877746582031,
0.0220947265625,
0.00014650821685791016,
0.04608154296875,
-0.043426513671875,
-0.00980377197265625,
-0.01453399658203125,
0.007572174072265625,
0.028594970703125,
0.003986358642578125,
-0.039215087890625,
0.001262664794921875,
-0.0771484375,
-0.030303955078125,
-0.039947509765625,
-0.0233917236328125,
-0.059173583984375,
0.01551055908203125,
0.01483154296875,
0.0206298828125,
0.00527191162109375,
-0.032501220703125,
-0.03167724609375,
-0.014678955078125,
0.017181396484375,
-0.005290985107421875,
-0.0023288726806640625,
0.06768798828125,
-0.0118255615234375,
0.045440673828125,
0.0256195068359375,
0.05291748046875,
-0.004573822021484375,
-0.03497314453125,
0.017242431640625,
-0.03668212890625,
-0.040130615234375,
-0.0011854171752929688,
-0.0684814453125,
0.0026264190673828125,
0.04290771484375,
-0.010009765625,
0.03985595703125,
-0.0024547576904296875,
0.01358795166015625,
-0.0172576904296875,
-0.05047607421875,
-0.00824737548828125,
0.033538818359375,
0.0231475830078125,
0.01395416259765625,
0.039520263671875,
-0.0093536376953125,
-0.0384521484375,
0.0079345703125,
0.01154327392578125,
0.0130615234375,
-0.0028533935546875,
-0.032989501953125,
0.05029296875,
0.05572509765625,
0.0303497314453125,
0.026123046875,
0.0204925537109375,
0.023834228515625,
-0.034698486328125,
0.0199432373046875,
0.007678985595703125,
-0.032745361328125,
0.07891845703125,
0.011962890625,
-0.0338134765625,
0.054229736328125,
-0.052337646484375,
0.01299285888671875,
-0.00522613525390625,
0.0194549560546875,
-0.007381439208984375,
0.0005812644958496094,
-0.01085662841796875,
-0.019561767578125,
0.047760009765625,
-0.030487060546875,
0.022705078125,
-0.0285797119140625,
0.0701904296875,
-0.0020236968994140625,
-0.0066070556640625,
0.0131072998046875,
-0.0479736328125,
-0.02581787109375,
-0.005035400390625,
-0.0031833648681640625,
0.003376007080078125,
-0.005161285400390625,
-0.006053924560546875,
-0.01248931884765625,
-0.0023593902587890625,
-0.05474853515625,
0.0079345703125,
-0.0267333984375,
0.0207366943359375,
-0.06866455078125,
0.027740478515625,
-0.047088623046875,
0.039825439453125,
0.015777587890625,
-0.045166015625,
0.0122222900390625,
0.0245361328125,
-0.019439697265625,
-0.0017986297607421875,
0.0137939453125,
-0.0811767578125,
-0.036590576171875,
-0.01355743408203125,
0.0137176513671875,
-0.01904296875,
-0.00440216064453125,
0.0112762451171875,
-0.02777099609375,
-0.0372314453125,
-0.006565093994140625,
0.00109100341796875,
0.06353759765625,
-0.0531005859375,
0.007480621337890625,
0.038848876953125,
0.050262451171875,
-0.0107421875,
0.0153656005859375,
0.042694091796875,
-0.0198974609375,
0.0106353759765625,
0.03070068359375,
0.019134521484375,
-0.03338623046875,
0.01200103759765625,
-0.050445556640625,
0.10015869140625,
-0.0219573974609375,
0.0090484619140625,
-0.015625,
0.052093505859375,
-0.0039215087890625,
0.05438232421875,
-0.034820556640625,
0.042999267578125,
-0.041107177734375,
0.09356689453125,
-0.09210205078125,
-0.0280914306640625,
0.01580810546875,
0.07232666015625,
0.07147216796875,
0.01233673095703125,
-0.044708251953125,
-0.0235443115234375,
0.06756591796875,
0.06805419921875,
0.028900146484375,
0.0277252197265625,
0.010711669921875,
0.05096435546875,
0.0246429443359375,
-0.0113067626953125,
0.027099609375,
-0.0029754638671875,
-0.045318603515625,
0.037689208984375,
0.0146484375,
0.005603790283203125,
-0.0261077880859375,
0.009765625,
-0.05859375,
-0.0175323486328125,
0.04705810546875,
0.0023670196533203125,
-0.00543975830078125,
0.07037353515625,
0.06610107421875,
-0.0452880859375,
-0.025543212890625,
-0.0311431884765625,
0.05438232421875,
-0.0009298324584960938,
0.06787109375,
0.05670166015625,
0.042510986328125,
0.06842041015625,
-0.05322265625,
0.028533935546875,
-0.0232391357421875,
-0.05584716796875,
0.04901123046875,
0.00879669189453125,
0.03692626953125,
-0.0504150390625,
-0.04168701171875,
0.0160980224609375,
0.06158447265625,
-0.021148681640625,
0.016998291015625,
0.019805908203125,
0.0005145072937011719,
-0.0124359130859375,
-0.031463623046875,
0.01398468017578125,
0.049560546875,
0.01093292236328125,
-0.045989990234375,
-0.049072265625,
-0.007110595703125,
0.060272216796875,
-0.01042938232421875,
-0.00909423828125,
0.021026611328125,
-0.089111328125,
-0.030059814453125,
-0.0013437271118164062,
0.0260009765625,
0.039215087890625,
-0.01001739501953125,
0.05267333984375,
-0.0238189697265625,
-0.004634857177734375,
0.0274658203125,
0.0144805908203125,
-0.01131439208984375,
-0.0247802734375,
0.0225067138671875,
-0.032806396484375,
-0.023345947265625,
0.01617431640625,
-0.00002086162567138672,
0.00015401840209960938,
0.0126495361328125,
0.0307769775390625,
0.01270294189453125,
-0.01318359375,
0.04644775390625,
-0.007465362548828125,
-0.00891876220703125,
-0.0245361328125,
0.00923919677734375,
0.04302978515625,
-0.006572723388671875,
0.0114898681640625,
-0.024932861328125,
0.080322265625,
-0.00205230712890625,
0.01049041748046875,
0.009033203125,
-0.004657745361328125,
0.053314208984375,
0.01259613037109375,
0.026397705078125,
0.0243682861328125,
-0.044708251953125,
0.000762939453125,
-0.0455322265625,
-0.04925537109375,
0.024566650390625,
0.04278564453125,
-0.004512786865234375,
0.01332855224609375,
0.0109710693359375,
-0.0264739990234375,
0.01003265380859375,
0.0177764892578125,
0.0107879638671875,
0.027923583984375,
0.017608642578125,
0.00873565673828125,
-0.035675048828125,
-0.048797607421875,
-0.029083251953125,
0.0545654296875,
0.0214996337890625,
0.0469970703125,
-0.00861358642578125,
0.03521728515625,
-0.04156494140625,
0.0208740234375,
-0.034210205078125,
-0.0309295654296875,
0.0859375,
0.012847900390625,
-0.029754638671875,
-0.01552581787109375,
-0.04034423828125,
0.0245513916015625,
0.029449462890625,
-0.01788330078125,
0.035888671875,
-0.03118896484375,
0.00811004638671875,
-0.032135009765625,
0.0171966552734375,
-0.022430419921875,
0.0034351348876953125,
-0.00897979736328125,
-0.01727294921875,
0.0164031982421875,
0.003009796142578125,
-0.0194549560546875,
0.045928955078125,
-0.034942626953125,
-0.01192474365234375,
0.0038509368896484375,
-0.0333251953125,
0.01983642578125,
0.043792724609375,
-0.0716552734375,
0.006862640380859375,
0.06109619140625,
-0.0048370361328125,
0.0309600830078125,
0.0311431884765625,
-0.0032520294189453125,
0.05255126953125,
-0.045654296875,
0.002422332763671875,
0.00164031982421875,
0.06011962890625,
0.0080108642578125,
0.0286712646484375,
-0.05157470703125,
0.0143890380859375,
0.035400390625,
0.0039825439453125,
-0.0191497802734375,
-0.0279388427734375,
-0.004390716552734375,
0.00962066650390625,
-0.00868988037109375,
0.0175018310546875,
-0.0307769775390625,
-0.01446533203125,
0.004146575927734375,
-0.005443572998046875,
-0.00689697265625,
0.005970001220703125,
-0.005558013916015625,
-0.012969970703125,
-0.021484375,
-0.0190887451171875,
0.01360321044921875,
0.0203399658203125,
-0.0328369140625,
0.01375579833984375,
-0.0247955322265625,
-0.03173828125,
0.0021610260009765625,
0.041534423828125,
0.039581298828125,
-0.041473388671875,
0.019805908203125,
0.038970947265625,
0.03887939453125,
0.090576171875,
0.0275726318359375,
0.01093292236328125,
0.05279541015625,
0.003963470458984375,
-0.060577392578125,
-0.0947265625,
0.0234527587890625,
-0.06866455078125,
0.004314422607421875,
-0.0192413330078125,
0.0509033203125,
0.082763671875,
-0.0026226043701171875,
-0.0772705078125,
0.07562255859375,
-0.043304443359375,
-0.03125,
-0.0667724609375,
-0.0106658935546875,
0.0004858970642089844,
0.0203094482421875,
-0.0075531005859375,
-0.0179443359375,
-0.047576904296875,
0.05047607421875,
0.0077667236328125,
0.0279998779296875,
0.029876708984375,
0.005268096923828125,
-0.061981201171875,
0.0082244873046875,
-0.008514404296875,
0.0217132568359375,
0.0002338886260986328,
-0.023345947265625,
0.033966064453125,
0.0260772705078125,
-0.044677734375,
0.00064849853515625,
0.00870513916015625,
0.03448486328125,
-0.01152801513671875,
-0.05523681640625,
-0.00919342041015625,
-0.03009033203125,
0.0112762451171875,
0.039306640625,
-0.00034737586975097656,
-0.01959228515625,
0.0023097991943359375,
-0.0125732421875,
-0.033721923828125,
-0.06317138671875,
0.0281829833984375,
-0.08294677734375,
-0.051788330078125,
-0.00966644287109375,
0.01451873779296875,
-0.0004177093505859375,
-0.06134033203125,
-0.0203704833984375,
-0.0258026123046875,
-0.0552978515625,
0.005214691162109375,
0.004467010498046875,
0.046783447265625,
-0.00997161865234375,
-0.0157623291015625,
-0.0274810791015625,
-0.0128936767578125,
-0.0178070068359375,
-0.0267486572265625,
-0.02069091796875,
-0.02801513671875,
-0.01312255859375,
0.0197601318359375,
0.0231475830078125,
0.00801849365234375,
0.028594970703125,
0.01371002197265625,
0.016204833984375,
-0.0229339599609375,
0.0261077880859375,
0.0165252685546875,
0.01493072509765625,
-0.0220794677734375,
0.0164337158203125,
0.00962066650390625,
0.05255126953125,
-0.012420654296875,
0.067138671875,
0.0041656494140625,
0.0286407470703125,
-0.03363037109375,
-0.005413055419921875,
-0.0155487060546875,
-0.0171966552734375,
-0.00983428955078125,
0.0024852752685546875,
-0.041046142578125,
-0.0267791748046875,
0.00621795654296875,
0.02557373046875,
-0.0063018798828125,
0.0101470947265625
] |
d9e5f06bb4726d67c85c4ee432a31e832719ae11
|
Wordpress Stackexchange
Q: How to change the category in URL for posts in multiple categories? How can I change the category slug that appears in the URL of a post that's in multiple categories? I'd like to change the default WordPress behaviour of using the category with the lowest id.
I thought this would do it:
add_filter('post_link', 'mspc_post_link', 1, 2);
function mspc_post_link($link, $post) {
if (strpos($link, 'bad-category-slug')) {
$cats = get_the_category($post->ID);
foreach ($cats as $cat) {
if ("Bad Category Name" != $cat->cat_name) {
$slug = $cat->category_nicename;
break;
}
}
$link = str_replace('bad-category-slug', $slug, $link);
}
return $link;
}
But while this kind of does work as expected, it doesn't change the URL visible to user.
A: Even though this question is pretty old, and you've probably long moved on, I figured I'd offer a solution anyway :-).
Check out http://wordpress.org/extend/plugins/hikari-category-permalink/, which allows you to do exactly what you're asking.
Cheers~
|
Q: How to change the category in URL for posts in multiple categories? How can I change the category slug that appears in the URL of a post that's in multiple categories? I'd like to change the default WordPress behaviour of using the category with the lowest id.
I thought this would do it:
add_filter('post_link', 'mspc_post_link', 1, 2);
function mspc_post_link($link, $post) {
if (strpos($link, 'bad-category-slug')) {
$cats = get_the_category($post->ID);
foreach ($cats as $cat) {
if ("Bad Category Name" != $cat->cat_name) {
$slug = $cat->category_nicename;
break;
}
}
$link = str_replace('bad-category-slug', $slug, $link);
}
return $link;
}
But while this kind of does work as expected, it doesn't change the URL visible to user.
A: Even though this question is pretty old, and you've probably long moved on, I figured I'd offer a solution anyway :-).
Check out http://wordpress.org/extend/plugins/hikari-category-permalink/, which allows you to do exactly what you're asking.
Cheers~
A: Similar plugin but compatible to latest wp version 3.5.2
http://wordpress.org/plugins/wp-category-permalink/
This plugin allows you to select a 'main' category for your posts, for better permalinks and SEO. It uses the same meta data as the "Hikari Category Permalink" and the "sCategory Permalink", but it has been rewritten using better and cleaner code.
Requires: WP 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 2013-4-18
|
wordpress
|
{
"language": "en",
"length": 213,
"provenance": "stackexchange_00019.jsonl.gz:411555",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23741"
}
|
[
0.0863037109375,
-0.0184478759765625,
0.0018367767333984375,
-0.06365966796875,
0.023345947265625,
-0.032745361328125,
0.050079345703125,
-0.0192718505859375,
-0.0159759521484375,
0.00732421875,
-0.01097869873046875,
-0.01495361328125,
-0.0009775161743164062,
-0.032073974609375,
-0.0084686279296875,
-0.0537109375,
0.018951416015625,
-0.0019626617431640625,
0.0180206298828125,
-0.0144805908203125,
0.004505157470703125,
-0.01030731201171875,
0.034942626953125,
0.032684326171875,
0.02032470703125,
-0.0096282958984375,
0.038299560546875,
-0.044403076171875,
0.001941680908203125,
-0.04998779296875,
0.0152740478515625,
0.03668212890625,
0.01593017578125,
-0.0178985595703125,
0.0205535888671875,
-0.00213623046875,
0.0308837890625,
-0.00812530517578125,
0.002201080322265625,
0.0301055908203125,
0.032623291015625,
-0.0269775390625,
0.02484130859375,
0.017974853515625,
0.0187225341796875,
-0.0185394287109375,
0.02459716796875,
-0.07293701171875,
0.01357269287109375,
-0.051300048828125,
0.013336181640625,
0.0184326171875,
0.0328369140625,
-0.03875732421875,
-0.0369873046875,
-0.016632080078125,
-0.038818359375,
0.042022705078125,
0.037567138671875,
0.01052093505859375,
-0.01934814453125,
-0.01531982421875,
-0.002765655517578125,
-0.0372314453125,
-0.0048370361328125,
-0.0117950439453125,
-0.01255035400390625,
0.043060302734375,
-0.046630859375,
-0.0168914794921875,
0.022369384765625,
-0.022003173828125,
-0.0115966796875,
-0.0150909423828125,
-0.0374755859375,
0.01189422607421875,
0.0180206298828125,
-0.00955963134765625,
0.0025691986083984375,
-0.0159454345703125,
0.023773193359375,
-0.027740478515625,
-0.0001690387725830078,
-0.00612640380859375,
0.027557373046875,
0.02215576171875,
0.0050048828125,
-0.030364990234375,
-0.041595458984375,
-0.01227569580078125,
-0.031463623046875,
-0.024261474609375,
-0.046722412109375,
0.02923583984375,
-0.0040130615234375,
-0.0012006759643554688,
0.0255126953125,
0.00131988525390625,
0.0284423828125,
-0.020660400390625,
0.0457763671875,
-0.06451416015625,
0.0027675628662109375,
-0.00823211669921875,
-0.002628326416015625,
-0.0009121894836425781,
0.007511138916015625,
0.06488037109375,
0.0592041015625,
0.046173095703125,
-0.0004093647003173828,
0.052978515625,
-0.007701873779296875,
0.018951416015625,
-0.03533935546875,
-0.01139068603515625,
-0.053558349609375,
-0.005886077880859375,
-0.0316162109375,
0.0023746490478515625,
0.01287078857421875,
0.047760009765625,
0.0247344970703125,
-0.053070068359375,
-0.0264129638671875,
-0.0164642333984375,
-0.00885772705078125,
-0.07391357421875,
-0.0037174224853515625,
-0.032318115234375,
-0.044921875,
0.024810791015625,
0.11871337890625,
0.08203125,
0.050567626953125,
-0.0011606216430664062,
0.0064239501953125,
0.00824737548828125,
-0.0223846435546875,
0.04107666015625,
-0.02655029296875,
-0.0230560302734375,
0.0107421875,
-0.025146484375,
0.04150390625,
0.0098114013671875,
0.0132293701171875,
0.0163421630859375,
0.0023059844970703125,
0.0016660690307617188,
0.019866943359375,
-0.028076171875,
0.056304931640625,
-0.004505157470703125,
-0.016143798828125,
-0.01039886474609375,
0.03997802734375,
-0.030517578125,
-0.04638671875,
-0.04315185546875,
0.0228424072265625,
0.0090484619140625,
0.0601806640625,
-0.004795074462890625,
-0.043121337890625,
0.01568603515625,
-0.0931396484375,
-0.0292205810546875,
0.002635955810546875,
-0.027313232421875,
-0.0063934326171875,
0.036224365234375,
-0.030303955078125,
-0.016998291015625,
0.0218658447265625,
-0.00875091552734375,
-0.0439453125,
0.0526123046875,
0.006740570068359375,
0.0211029052734375,
0.018951416015625,
-0.0438232421875,
0.0240631103515625,
0.01332855224609375,
-0.057464599609375,
0.0506591796875,
0.00673675537109375,
0.0650634765625,
0.003391265869140625,
0.01177215576171875,
0.0389404296875,
0.021942138671875,
-0.0374755859375,
-0.01082611083984375,
-0.0035762786865234375,
-0.0040435791015625,
0.005527496337890625,
0.006717681884765625,
-0.0020847320556640625,
-0.005462646484375,
-0.00133514404296875,
0.031829833984375,
-0.01515960693359375,
0.058197021484375,
-0.033843994140625,
0.037109375,
-0.0193328857421875,
0.029022216796875,
-0.016357421875,
0.033721923828125,
0.01323699951171875,
-0.01355743408203125,
-0.0078582763671875,
-0.03497314453125,
-0.00007867813110351562,
-0.0178070068359375,
0.005809783935546875,
-0.02935791015625,
-0.0271759033203125,
-0.004688262939453125,
-0.0310211181640625,
0.030792236328125,
-0.050262451171875,
0.040130615234375,
0.04656982421875,
0.003864288330078125,
-0.0115814208984375,
-0.033172607421875,
0.01012420654296875,
0.031982421875,
-0.11138916015625,
0.0180511474609375,
0.09814453125,
0.037139892578125,
-0.051116943359375,
0.028564453125,
0.0232696533203125,
0.0009946823120117188,
-0.0311737060546875,
0.041229248046875,
0.01441192626953125,
-0.02276611328125,
-0.054046630859375,
-0.0234527587890625,
0.01007080078125,
-0.031951904296875,
-0.0062255859375,
0.005229949951171875,
-0.02301025390625,
-0.006153106689453125,
0.01038360595703125,
0.045257568359375,
0.0279998779296875,
0.0148162841796875,
0.0236358642578125,
0.033721923828125,
0.03570556640625,
-0.035003662109375,
-0.00031375885009765625,
0.0236358642578125,
0.0154876708984375,
-0.0139617919921875,
-0.057586669921875,
0.0159149169921875,
0.0135498046875,
-0.0166015625,
0.0115203857421875,
0.003940582275390625,
0.0004992485046386719,
-0.01873779296875,
0.0037078857421875,
-0.0242919921875,
-0.0121612548828125,
0.00675201416015625,
0.024505615234375,
-0.00981903076171875,
-0.0260162353515625,
0.007904052734375,
-0.00350189208984375,
0.0008940696716308594,
-0.0242919921875,
0.02996826171875,
0.0095367431640625,
-0.019622802734375,
-0.0440673828125,
-0.07049560546875,
0.0113067626953125,
-0.01259613037109375,
-0.0308074951171875,
-0.021087646484375,
0.02166748046875,
0.036102294921875,
-0.0174102783203125,
0.007358551025390625,
-0.00980377197265625,
0.0014543533325195312,
0.0245208740234375,
-0.033782958984375,
0.0307159423828125,
-0.034637451171875,
0.040313720703125,
0.05426025390625,
-0.004119873046875,
0.0057525634765625,
0.0089569091796875,
0.0268402099609375,
0.01003265380859375,
0.0102386474609375,
-0.0186614990234375,
-0.0294342041015625,
-0.0275421142578125,
-0.021820068359375,
0.01239776611328125,
0.00865936279296875,
0.007190704345703125,
-0.029541015625,
-0.01087188720703125,
0.005889892578125,
-0.048675537109375,
-0.03350830078125,
0.00524139404296875,
-0.0206756591796875,
0.0183258056640625,
0.039276123046875,
-0.006237030029296875,
-0.028350830078125,
0.05535888671875,
0.00823211669921875,
0.035919189453125,
-0.0361328125,
-0.0699462890625,
-0.0447998046875,
-0.048858642578125,
-0.015899658203125,
-0.005023956298828125,
-0.01482391357421875,
0.0127105712890625,
0.0362548828125,
0.01230621337890625,
-0.05059814453125,
0.0033092498779296875,
0.036834716796875,
-0.037750244140625,
-0.01445770263671875,
0.0267181396484375,
-0.0611572265625,
0.0263214111328125,
-0.0203399658203125,
0.081298828125,
0.04644775390625,
-0.0268402099609375,
0.0166168212890625,
-0.03033447265625,
0.009918212890625,
0.0221099853515625,
-0.0128936767578125,
0.01537322998046875,
0.0440673828125,
0.0259857177734375,
-0.0121612548828125,
-0.0249481201171875,
-0.019256591796875,
-0.041351318359375,
-0.0005946159362792969,
0.0219879150390625,
0.0111083984375,
-0.034210205078125,
0.01430511474609375,
0.0006918907165527344,
-0.0166168212890625,
0.0167388916015625,
-0.034942626953125,
0.02374267578125,
-0.0168304443359375,
0.0022068023681640625,
-0.03302001953125,
0.010009765625,
-0.0335693359375,
-0.0304412841796875,
-0.03466796875,
0.0152740478515625,
0.0052337646484375,
-0.021148681640625,
-0.040557861328125,
-0.037261962890625,
0.01093292236328125,
-0.089111328125,
0.00640106201171875,
-0.048004150390625,
0.00887298583984375,
-0.0287628173828125,
0.03948974609375,
-0.0262451171875,
-0.034820556640625,
-0.00045299530029296875,
0.02178955078125,
0.0170135498046875,
-0.028228759765625,
-0.010955810546875,
-0.0278778076171875,
-0.0609130859375,
0.00368499755859375,
-0.00984954833984375,
-0.0219879150390625,
-0.0190277099609375,
0.058258056640625,
-0.032257080078125,
-0.023284912109375,
0.04913330078125,
-0.020172119140625,
0.000029385089874267578,
-0.0032405853271484375,
-0.0277252197265625,
-0.015716552734375,
-0.0504150390625,
0.01309967041015625,
-0.025970458984375,
-0.0246124267578125,
0.01404571533203125,
0.031890869140625,
0.0062408447265625,
-0.0257415771484375,
0.0116119384765625,
0.0615234375,
0.0033512115478515625,
0.02825927734375,
0.005222320556640625,
0.004184722900390625,
0.036651611328125,
0.0062713623046875,
0.003940582275390625,
-0.0013437271118164062,
-0.00861358642578125,
-0.0396728515625,
-0.0648193359375,
0.005764007568359375,
-0.00829315185546875,
0.043914794921875,
0.0144195556640625,
-0.021026611328125,
-0.08306884765625,
-0.034271240234375,
0.000278472900390625,
0.007526397705078125,
0.0139007568359375,
-0.00876617431640625,
-0.036346435546875,
-0.0814208984375,
0.03558349609375,
0.0030193328857421875,
-0.00225830078125,
0.0009489059448242188,
0.04473876953125,
0.0100250244140625,
-0.0282135009765625,
-0.033203125,
-0.0027103424072265625,
0.0269317626953125,
0.0020294189453125,
0.030609130859375,
0.0098724365234375,
0.00716400146484375,
0.0380859375,
-0.0148468017578125,
-0.0135498046875,
-0.0198211669921875,
0.05877685546875,
-0.0006356239318847656,
-0.01277923583984375,
0.002349853515625,
-0.03582763671875,
0.0242767333984375,
0.03460693359375,
-0.022308349609375,
0.00688934326171875,
-0.056427001953125,
0.0298614501953125,
0.0257110595703125,
-0.0204620361328125,
-0.06622314453125,
-0.01971435546875,
0.01284027099609375,
0.01007843017578125,
0.0435791015625,
0.052154541015625,
-0.0174407958984375,
0.03729248046875,
0.0122528076171875,
-0.005054473876953125,
-0.034454345703125,
-0.04150390625,
-0.0146942138671875,
0.0107574462890625,
-0.03106689453125,
-0.0129241943359375,
0.0014905929565429688,
-0.002307891845703125,
0.020355224609375,
0.0101470947265625,
-0.00738525390625,
-0.043792724609375,
-0.006072998046875,
0.0297088623046875,
-0.0089569091796875,
-0.0211944580078125,
0.03912353515625,
0.004535675048828125,
-0.01031494140625,
0.00791168212890625,
-0.06427001953125,
-0.0201568603515625,
-0.039031982421875,
0.0243072509765625,
0.00995635986328125,
-0.00803375244140625,
0.01096343994140625,
0.02569580078125,
0.036041259765625,
0.0080108642578125,
-0.0185546875,
0.019500732421875,
0.0057525634765625,
0.00817108154296875,
0.01387786865234375,
0.025054931640625,
-0.0293731689453125,
-0.0070953369140625,
0.0088958740234375,
-0.0408935546875,
-0.0267181396484375,
0.029327392578125,
0.053985595703125,
-0.055999755859375,
-0.03045654296875,
0.0265045166015625,
-0.01094818115234375,
-0.001796722412109375,
0.012054443359375,
-0.01507568359375,
-0.018035888671875,
-0.00858306884765625,
0.0168304443359375,
0.00218963623046875,
-0.0236358642578125,
-0.0025005340576171875,
-0.0245819091796875,
-0.01131439208984375,
0.02239990234375,
-0.021484375,
-0.007579803466796875,
0.00920867919921875,
-0.00330352783203125,
-0.010040283203125,
-0.029510498046875,
-0.01004791259765625,
0.0277252197265625,
0.027587890625,
-0.0172271728515625,
-0.0305328369140625,
0.028656005859375,
-0.00798797607421875,
0.053985595703125,
-0.00234222412109375,
-0.057769775390625,
0.030853271484375,
0.0017995834350585938,
0.0682373046875,
0.032745361328125,
-0.060699462890625,
0.010955810546875,
-0.045013427734375,
-0.008331298828125,
0.01197052001953125,
-0.0138397216796875,
-0.03875732421875,
-0.030181884765625,
0.03717041015625,
0.035552978515625,
0.00826263427734375,
-0.0274658203125,
-0.01348876953125,
-0.027740478515625,
0.017547607421875,
0.0128326416015625,
-0.04449462890625,
0.0292205810546875,
0.032684326171875,
0.00853729248046875,
-0.00864410400390625,
-0.003002166748046875,
0.0191650390625,
-0.011810302734375,
-0.0235748291015625,
-0.044189453125,
-0.006290435791015625,
0.037078857421875,
-0.04742431640625,
0.026397705078125,
0.05859375,
0.01342010498046875,
0.0017375946044921875,
0.0168914794921875,
0.03143310546875,
-0.0242919921875,
-0.033233642578125,
-0.004337310791015625,
-0.027496337890625,
0.014862060546875,
0.007476806640625,
0.0452880859375,
-0.0084075927734375,
-0.020111083984375,
0.022674560546875,
-0.0236053466796875,
0.0308837890625,
0.0165252685546875,
-0.04302978515625,
0.037506103515625,
0.053955078125,
0.01430511474609375,
0.0302734375,
0.0188751220703125,
0.01381683349609375,
-0.00368499755859375,
-0.0460205078125,
0.06549072265625,
0.037994384765625,
0.0287017822265625,
-0.04583740234375,
0.041046142578125,
0.007404327392578125,
-0.009613037109375,
-0.0295562744140625,
0.028106689453125,
0.033447265625,
-0.044586181640625,
-0.0017375946044921875,
0.0012254714965820312,
-0.0002694129943847656,
0.0003516674041748047,
0.04119873046875,
-0.036407470703125,
-0.003292083740234375,
-0.01076507568359375,
-0.078369140625,
-0.0206451416015625,
0.004364013671875,
0.018402099609375,
0.004856109619140625,
0.0010318756103515625,
0.037353515625,
0.0143585205078125,
-0.03338623046875,
-0.01206207275390625,
0.025665283203125,
0.0225067138671875,
-0.03924560546875,
-0.017669677734375,
0.0576171875,
-0.025299072265625,
-0.0592041015625,
0.06427001953125,
0.0003299713134765625,
0.0005393028259277344,
0.017364501953125,
-0.00780487060546875,
0.0261993408203125,
0.0280609130859375,
0.0006666183471679688,
0.0051116943359375,
0.00801849365234375,
-0.03558349609375,
0.060394287109375,
0.01483917236328125,
-0.00389862060546875,
0.04229736328125,
-0.0207061767578125,
-0.007282257080078125,
-0.005413055419921875,
0.0302734375,
-0.01219940185546875,
-0.0418701171875,
0.0750732421875,
-0.039794921875,
-0.01526641845703125,
0.0206451416015625,
0.0177764892578125,
-0.0102691650390625,
0.0020294189453125,
0.020416259765625,
-0.024261474609375,
-0.01427459716796875,
0.00841522216796875,
-0.03515625,
-0.0163726806640625,
-0.0002923011779785156,
-0.07977294921875,
0.08697509765625,
-0.043792724609375,
0.07513427734375,
0.0029468536376953125,
0.00885772705078125,
0.021453857421875,
0.013214111328125,
-0.038238525390625,
0.049530029296875,
0.020782470703125,
0.054443359375,
-0.038299560546875,
-0.01363372802734375,
0.023895263671875,
0.0233917236328125,
0.043243408203125,
0.0214691162109375,
-0.06146240234375,
0.0101165771484375,
0.03472900390625,
0.0162353515625,
-0.0080718994140625,
0.051300048828125,
-0.01174163818359375,
0.00484466552734375,
0.023681640625,
0.018096923828125,
0.039520263671875,
0.0092926025390625,
-0.0309295654296875,
0.0191650390625,
0.032379150390625,
0.045562744140625,
0.0008058547973632812,
0.024200439453125,
-0.043853759765625,
-0.00835418701171875,
0.051422119140625,
-0.042755126953125,
-0.0218963623046875,
0.0692138671875,
0.057861328125,
-0.036956787109375,
0.008514404296875,
-0.0416259765625,
0.07012939453125,
0.01509857177734375,
0.0090484619140625,
0.0247344970703125,
0.0058135986328125,
0.041595458984375,
-0.00449371337890625,
0.00041174888610839844,
-0.0059661865234375,
0.0158233642578125,
0.112060546875,
0.046539306640625,
0.03216552734375,
-0.0191497802734375,
0.03436279296875,
0.044036865234375,
0.10540771484375,
-0.08013916015625,
-0.043243408203125,
0.00921630859375,
0.0203857421875,
0.01068878173828125,
0.0144195556640625,
0.023101806640625,
-0.0065155029296875,
0.051849365234375,
-0.0679931640625,
-0.005222320556640625,
0.03948974609375,
0.04571533203125,
-0.01384735107421875,
-0.04498291015625,
-0.043426513671875,
-0.0302581787109375,
-0.045928955078125,
0.003021240234375,
0.0136871337890625,
0.07244873046875,
0.0146331787109375,
0.05450439453125,
-0.045135498046875,
-0.0361328125,
0.00057220458984375,
0.033294677734375,
-0.0124359130859375,
-0.01367950439453125,
-0.01715087890625,
-0.056915283203125,
-0.005176544189453125,
0.027374267578125,
0.04412841796875,
0.025177001953125,
0.05877685546875,
0.0347900390625,
-0.01374053955078125,
0.0023937225341796875,
0.0196990966796875,
-0.0210723876953125,
0.0379638671875,
-0.066650390625,
0.032257080078125,
-0.008453369140625,
-0.0090789794921875,
-0.01111602783203125,
-0.00048470497131347656,
0.034210205078125,
-0.0150299072265625,
0.0214080810546875,
0.004039764404296875,
-0.01519775390625,
0.038909912109375,
0.004291534423828125,
0.047332763671875,
0.0158233642578125,
-0.08197021484375,
-0.0184478759765625,
-0.01439666748046875,
-0.0587158203125,
0.04278564453125,
0.0513916015625,
-0.0312347412109375,
0.0146026611328125,
0.003337860107421875,
-0.0137939453125,
0.044464111328125,
-0.0205230712890625,
-0.002346038818359375,
-0.02197265625,
-0.0016689300537109375,
-0.02044677734375,
-0.042022705078125,
-0.01462554931640625,
-0.0010271072387695312,
0.0226898193359375,
-0.01039886474609375,
0.0631103515625,
-0.005218505859375,
0.00005924701690673828,
-0.058258056640625,
0.04608154296875,
-0.073486328125,
-0.05889892578125,
0.0318603515625,
-0.020416259765625,
0.005832672119140625,
0.0204620361328125,
0.00836181640625,
-0.00021946430206298828,
0.05316162109375,
-0.0260162353515625,
0.00836944580078125,
-0.03826904296875,
0.0277099609375,
-0.023529052734375,
0.058074951171875,
-0.02496337890625,
-0.0311431884765625,
-0.06903076171875,
-0.0157623291015625,
0.03887939453125,
0.03271484375,
-0.021270751953125,
0.0182037353515625,
-0.031646728515625,
0.017669677734375,
-0.020263671875,
0.032440185546875,
-0.04632568359375,
0.033843994140625,
-0.041534423828125,
0.004161834716796875,
0.0322265625,
-0.0115203857421875,
0.0226898193359375,
0.0252838134765625,
-0.0059051513671875,
0.04595947265625,
-0.0254974365234375,
-0.026275634765625,
-0.0167388916015625,
-0.0091552734375,
-0.031707763671875,
0.00763702392578125,
0.00426483154296875,
-0.0019245147705078125,
-0.0015850067138671875,
0.0024013519287109375,
-0.0271148681640625,
-0.00823974609375,
-0.01171875,
0.0017871856689453125,
-0.0064849853515625,
-0.03143310546875,
-0.047882080078125,
0.01226806640625,
0.03460693359375,
0.00058746337890625,
-0.0501708984375,
0.0274505615234375,
-0.0259857177734375,
0.0565185546875,
-0.034820556640625,
-0.0144805908203125,
0.00981903076171875,
0.016143798828125,
-0.076416015625,
0.01399993896484375,
-0.0214691162109375,
-0.03619384765625,
-0.02691650390625,
0.01020050048828125,
0.0352783203125,
-0.01261138916015625,
-0.03863525390625,
-0.011566162109375,
0.0158233642578125,
0.0303192138671875,
0.001956939697265625,
-0.004669189453125,
0.0011358261108398438,
0.0322265625,
-0.04620361328125,
-0.055938720703125,
0.020050048828125,
-0.0218658447265625,
-0.00463104248046875,
0.031646728515625,
-0.027435302734375,
0.007659912109375,
-0.035614013671875,
-0.037017822265625,
0.05950927734375,
-0.0017137527465820312,
-0.0298919677734375,
-0.00691986083984375,
-0.0224761962890625,
-0.0200653076171875,
0.0227203369140625,
-0.0080718994140625,
0.0030422210693359375,
-0.0418701171875,
0.0169677734375,
0.0228118896484375,
0.0290069580078125,
-0.006465911865234375,
0.034423828125,
-0.0301666259765625,
0.06353759765625,
0.0447998046875,
0.0252838134765625,
0.0035800933837890625,
-0.0007290840148925781,
0.014190673828125,
0.0257415771484375,
-0.0418701171875,
-0.022705078125,
-0.0099029541015625,
-0.001811981201171875,
0.0007624626159667969,
-0.040435791015625,
-0.0694580078125,
-0.044677734375,
0.09344482421875,
0.026641845703125,
0.03338623046875,
-0.00222015380859375,
-0.048370361328125,
-0.051361083984375,
0.001461029052734375,
0.006961822509765625,
0.008514404296875,
-0.045196533203125,
0.0308837890625,
0.01514434814453125,
-0.007411956787109375,
0.0019855499267578125,
-0.040069580078125,
-0.037506103515625,
-0.01276397705078125,
-0.007843017578125,
0.03277587890625,
-0.04449462890625,
0.0243988037109375,
0.0263519287109375,
-0.027862548828125,
-0.0211334228515625,
-0.01251983642578125,
0.00278472900390625,
-0.01335906982421875,
-0.051300048828125,
-0.021453857421875,
0.0022678375244140625,
0.0059967041015625,
0.018890380859375,
0.006061553955078125,
0.006252288818359375,
-0.0005955696105957031,
0.013519287109375,
-0.0245208740234375,
0.01165008544921875,
0.003055572509765625,
-0.0018434524536132812,
-0.0005984306335449219,
0.012115478515625,
0.0273895263671875,
0.036102294921875,
-0.00797271728515625,
0.007266998291015625,
-0.00286102294921875,
0.043670654296875,
-0.02215576171875,
-0.01226806640625,
0.0112762451171875,
-0.057952880859375,
-0.002033233642578125,
0.0159454345703125,
0.0018596649169921875,
-0.0103302001953125,
0.01059722900390625,
-0.0085296630859375,
0.00022912025451660156,
0.00388336181640625
] |
ba1afd7e3f4acc787aa304914267b0077fea664c
|
Wordpress Stackexchange
Q: Any easy way to automatically set the first inline image in a post as the thumbnail? Is there a plugin for this? Has anyone done it before?
A: You may find the answer in this tutorial : How to Set a Default Fallback Image for WordPress Post Thumbnails
Add this in functions.php in your theme folder :
add_theme_support( 'post-thumbnails' );
function myprefix_main_image() {
$attachments = get_children( 'post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&order=desc' );
if( $attachments ) {
$keys = array_reverse( $attachments );
set_post_thumbnail( $post->ID, $keys[0]->ID );
};
}
And this in your template, where you want to show the post image :
<?php if ( (function_exists( 'has_post_thumbnail') ) && ( has_post_thumbnail() ) ) {
echo get_the_post_thumbnail( $post->ID );
} else {
myprefix_main_image();
echo get_the_post_thumbnail( $post->ID );
} ?>
EDIT : much better, thanks Chip Bennett
|
Q: Any easy way to automatically set the first inline image in a post as the thumbnail? Is there a plugin for this? Has anyone done it before?
A: You may find the answer in this tutorial : How to Set a Default Fallback Image for WordPress Post Thumbnails
Add this in functions.php in your theme folder :
add_theme_support( 'post-thumbnails' );
function myprefix_main_image() {
$attachments = get_children( 'post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&order=desc' );
if( $attachments ) {
$keys = array_reverse( $attachments );
set_post_thumbnail( $post->ID, $keys[0]->ID );
};
}
And this in your template, where you want to show the post image :
<?php if ( (function_exists( 'has_post_thumbnail') ) && ( has_post_thumbnail() ) ) {
echo get_the_post_thumbnail( $post->ID );
} else {
myprefix_main_image();
echo get_the_post_thumbnail( $post->ID );
} ?>
EDIT : much better, thanks Chip Bennett
A: I use the Auto Post Thumbnail plugin for doing just that on this site and it works fine. First image in a post becomes the featured image every time.
A: Get The Image is great plugin for related functionality. You will need to configure funciton call a bit, but it will be able both to scan for image and save it into thumbnail for you. Was writing quickly and messed up a bit. What it can do is save found image into custom field (which might or might not be what you want). If you want to actually make featured image out of it - that is going to be considerably more complex.
|
wordpress
|
{
"language": "en",
"length": 245,
"provenance": "stackexchange_00019.jsonl.gz:411557",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23757"
}
|
[
0.064697265625,
-0.0190887451171875,
0.048583984375,
0.0080108642578125,
0.0025386810302734375,
-0.0310211181640625,
0.07696533203125,
-0.057708740234375,
0.0188140869140625,
0.0173187255859375,
-0.04339599609375,
0.02325439453125,
-0.005214691162109375,
0.005313873291015625,
-0.00644683837890625,
-0.01308441162109375,
0.04937744140625,
-0.021728515625,
0.0227203369140625,
-0.0030975341796875,
0.01207733154296875,
0.0297393798828125,
0.0212860107421875,
0.08111572265625,
0.004730224609375,
0.007389068603515625,
0.074951171875,
-0.036102294921875,
-0.0215911865234375,
-0.034515380859375,
0.0162200927734375,
0.0208892822265625,
0.01995849609375,
-0.01557159423828125,
0.0192108154296875,
0.004497528076171875,
-0.0014848709106445312,
-0.0045928955078125,
0.0014553070068359375,
0.0181884765625,
0.011688232421875,
0.003742218017578125,
-0.0318603515625,
0.015869140625,
-0.036712646484375,
-0.0286102294921875,
-0.0005788803100585938,
-0.0238189697265625,
0.0213623046875,
-0.032379150390625,
0.0261993408203125,
0.0269927978515625,
0.055633544921875,
-0.040802001953125,
-0.04083251953125,
-0.025390625,
-0.04412841796875,
0.0005898475646972656,
0.025543212890625,
0.0153961181640625,
-0.007720947265625,
-0.0206451416015625,
0.00771331787109375,
-0.0411376953125,
-0.0165863037109375,
-0.01788330078125,
-0.0283203125,
-0.0016813278198242188,
-0.035125732421875,
-0.0255126953125,
0.04058837890625,
-0.03363037109375,
-0.005889892578125,
-0.042633056640625,
0.006961822509765625,
0.06622314453125,
0.0015611648559570312,
0.0234375,
-0.0005512237548828125,
-0.007701873779296875,
0.024444580078125,
-0.034637451171875,
0.0031528472900390625,
0.00640106201171875,
0.042022705078125,
0.04107666015625,
0.01348114013671875,
-0.025604248046875,
-0.015472412109375,
-0.032379150390625,
-0.0234222412109375,
-0.0275115966796875,
-0.03143310546875,
0.017333984375,
-0.006801605224609375,
-0.035675048828125,
0.0572509765625,
0.06414794921875,
-0.00927734375,
-0.0131072998046875,
-0.01280975341796875,
-0.03125,
0.004795074462890625,
-0.03253173828125,
-0.0238800048828125,
-0.0124359130859375,
0.01541900634765625,
-0.04034423828125,
-0.010284423828125,
0.041015625,
-0.0220184326171875,
0.01837158203125,
0.0199127197265625,
-0.0049285888671875,
-0.03387451171875,
0.001476287841796875,
-0.0225067138671875,
0.01070404052734375,
-0.004779815673828125,
0.00841522216796875,
0.01427459716796875,
0.0248870849609375,
0.00716400146484375,
-0.0282745361328125,
0.0021915435791015625,
-0.0062408447265625,
-0.032257080078125,
-0.027740478515625,
-0.0162200927734375,
0.011993408203125,
-0.0279998779296875,
0.00881195068359375,
0.07684326171875,
0.021820068359375,
0.00732421875,
-0.0120697021484375,
-0.00888824462890625,
-0.00798797607421875,
0.00012922286987304688,
0.0275726318359375,
-0.031829833984375,
-0.048126220703125,
0.0280609130859375,
0.0008139610290527344,
0.004825592041015625,
0.042205810546875,
0.030975341796875,
0.0148468017578125,
-0.02532958984375,
-0.0579833984375,
0.034271240234375,
-0.03240966796875,
-0.0001710653305053711,
0.0095367431640625,
0.0164337158203125,
-0.0264892578125,
0.03350830078125,
-0.010986328125,
0.0070648193359375,
-0.0227203369140625,
-0.00865936279296875,
0.011932373046875,
0.027374267578125,
-0.00592803955078125,
0.0028553009033203125,
-0.01555633544921875,
-0.007904052734375,
0.004383087158203125,
0.0233001708984375,
0.0288543701171875,
0.01294708251953125,
0.041534423828125,
0.009124755859375,
-0.0230865478515625,
-0.0263671875,
-0.05316162109375,
0.01448822021484375,
-0.0019683837890625,
0.0084381103515625,
0.048919677734375,
0.0039825439453125,
-0.0234832763671875,
0.0169677734375,
-0.01258087158203125,
-0.017913818359375,
0.01641845703125,
0.00046443939208984375,
0.0204010009765625,
0.013275146484375,
0.0098724365234375,
-0.019561767578125,
0.004985809326171875,
-0.05078125,
0.007350921630859375,
0.039154052734375,
-0.0037517547607421875,
-0.04888916015625,
-0.042694091796875,
0.01009368896484375,
-0.005863189697265625,
0.0141448974609375,
-0.019134521484375,
-0.0015802383422851562,
-0.0097198486328125,
-0.05023193359375,
-0.029205322265625,
-0.01275634765625,
0.035308837890625,
-0.004253387451171875,
0.014068603515625,
0.013275146484375,
-0.0187225341796875,
0.00087738037109375,
-0.0311431884765625,
-0.045562744140625,
0.0025386810302734375,
-0.022918701171875,
0.005924224853515625,
-0.01512908935546875,
0.02154541015625,
-0.02337646484375,
-0.0160980224609375,
-0.0150146484375,
0.01279449462890625,
0.0677490234375,
0.019256591796875,
-0.0293426513671875,
-0.01200103759765625,
0.0228424072265625,
0.01654052734375,
-0.06982421875,
0.049102783203125,
-0.040740966796875,
-0.061553955078125,
-0.02880859375,
0.01537322998046875,
0.00970458984375,
-0.04302978515625,
0.0173797607421875,
0.047882080078125,
0.027313232421875,
0.019775390625,
0.01922607421875,
0.038818359375,
0.05712890625,
0.023590087890625,
0.032989501953125,
-0.011138916015625,
0.0016841888427734375,
0.0034389495849609375,
-0.031524658203125,
-0.006587982177734375,
0.036224365234375,
-0.058258056640625,
0.033905029296875,
0.0482177734375,
-0.0098419189453125,
-0.005298614501953125,
-0.002658843994140625,
0.00791168212890625,
0.01611328125,
0.0006403923034667969,
-0.00553131103515625,
-0.01244354248046875,
0.04571533203125,
0.02215576171875,
0.0278778076171875,
0.0083160400390625,
-0.053466796875,
0.0215606689453125,
0.014373779296875,
-0.0004761219024658203,
0.002895355224609375,
0.039703369140625,
0.041473388671875,
-0.025909423828125,
0.00034809112548828125,
-0.0245208740234375,
0.0011701583862304688,
0.009857177734375,
0.002239227294921875,
0.007537841796875,
0.01543426513671875,
0.00540924072265625,
-0.007358551025390625,
-0.03192138671875,
0.0521240234375,
0.05157470703125,
-0.0217742919921875,
-0.03125,
0.0145416259765625,
0.01398468017578125,
-0.0275726318359375,
0.02923583984375,
-0.037506103515625,
-0.007259368896484375,
-0.01433563232421875,
-0.06097412109375,
0.05706787109375,
-0.0445556640625,
0.04345703125,
0.072509765625,
-0.0191192626953125,
0.0401611328125,
-0.0038394927978515625,
0.022430419921875,
-0.0224151611328125,
0.0237579345703125,
-0.003604888916015625,
-0.03662109375,
-0.004573822021484375,
-0.00848388671875,
0.013092041015625,
0.08416748046875,
-0.06695556640625,
-0.06024169921875,
-0.027008056640625,
0.0102691650390625,
-0.07470703125,
-0.035552978515625,
-0.03131103515625,
-0.057708740234375,
-0.0010461807250976562,
0.02691650390625,
-0.027587890625,
-0.0129547119140625,
0.064697265625,
0.00714111328125,
0.00042891502380371094,
-0.0433349609375,
-0.048583984375,
-0.04510498046875,
-0.052581787109375,
0.0264129638671875,
0.000469207763671875,
0.0042266845703125,
0.015777587890625,
0.053436279296875,
0.0237274169921875,
-0.04730224609375,
0.0226287841796875,
0.04339599609375,
-0.0269927978515625,
0.016082763671875,
-0.0095062255859375,
0.0172882080078125,
-0.04193115234375,
0.002109527587890625,
0.0034999847412109375,
0.0091400146484375,
-0.018310546875,
0.01352691650390625,
-0.038909912109375,
-0.0046234130859375,
-0.0406494140625,
0.08203125,
0.05743408203125,
-0.0093994140625,
0.016265869140625,
-0.039520263671875,
-0.0099945068359375,
-0.039886474609375,
-0.061981201171875,
-0.01129913330078125,
0.031524658203125,
0.0301513671875,
-0.037200927734375,
0.0145263671875,
-0.0273590087890625,
-0.0232696533203125,
0.03533935546875,
-0.03631591796875,
0.04754638671875,
-0.019256591796875,
-0.022064208984375,
-0.034210205078125,
0.0193023681640625,
-0.0030078887939453125,
0.041107177734375,
0.00601959228515625,
0.033355712890625,
-0.0171356201171875,
0.0086669921875,
-0.07110595703125,
-0.03839111328125,
0.0205841064453125,
-0.04376220703125,
0.0113067626953125,
-0.0155487060546875,
-0.01332855224609375,
-0.0008401870727539062,
0.052825927734375,
-0.08154296875,
-0.0148468017578125,
-0.007205963134765625,
0.017669677734375,
-0.00623321533203125,
-0.032257080078125,
-0.040313720703125,
-0.015899658203125,
-0.086181640625,
0.01214599609375,
0.019073486328125,
-0.05242919921875,
-0.0015344619750976562,
-0.019622802734375,
-0.0648193359375,
-0.028167724609375,
0.0173187255859375,
-0.0082550048828125,
-0.03369140625,
0.062042236328125,
-0.04437255859375,
0.03594970703125,
-0.019378662109375,
-0.01245880126953125,
-0.09869384765625,
-0.0173492431640625,
-0.0174407958984375,
0.08184814453125,
-0.006336212158203125,
0.003261566162109375,
-0.031585693359375,
0.055877685546875,
-0.01528167724609375,
0.0208892822265625,
-0.00019180774688720703,
0.04901123046875,
-0.005069732666015625,
-0.023468017578125,
-0.0035800933837890625,
-0.0282440185546875,
0.02618408203125,
-0.0443115234375,
-0.063720703125,
-0.0039215087890625,
-0.04058837890625,
0.076904296875,
-0.0050811767578125,
-0.0250701904296875,
-0.05023193359375,
-0.0281219482421875,
0.04132080078125,
0.055328369140625,
0.00286102294921875,
0.0032253265380859375,
-0.0716552734375,
-0.04833984375,
0.0305633544921875,
-0.0250701904296875,
-0.0174713134765625,
0.00926971435546875,
0.059967041015625,
0.00531005859375,
-0.00347900390625,
-0.0256195068359375,
0.021240234375,
0.0190887451171875,
-0.006031036376953125,
0.03021240234375,
0.0027313232421875,
-0.00917816162109375,
0.039154052734375,
-0.0067291259765625,
-0.011260986328125,
-0.039306640625,
0.05841064453125,
-0.0019435882568359375,
-0.015045166015625,
0.0255279541015625,
-0.0350341796875,
0.041107177734375,
0.0205230712890625,
-0.015960693359375,
-0.0005488395690917969,
0.01067352294921875,
0.018829345703125,
-0.021087646484375,
0.0159912109375,
-0.036895751953125,
-0.011474609375,
-0.0002110004425048828,
0.02435302734375,
0.0477294921875,
0.050994873046875,
-0.01197052001953125,
0.02447509765625,
0.028076171875,
0.03900146484375,
0.0277862548828125,
-0.017242431640625,
0.055633544921875,
0.061798095703125,
0.043182373046875,
0.0584716796875,
0.004451751708984375,
0.005107879638671875,
0.0328369140625,
-0.0233154296875,
-0.0306243896484375,
-0.05999755859375,
-0.00849151611328125,
0.03460693359375,
0.01409149169921875,
-0.0245819091796875,
0.04443359375,
0.0013723373413085938,
-0.04229736328125,
-0.036163330078125,
-0.05078125,
-0.043060302734375,
-0.0609130859375,
0.02740478515625,
0.01119232177734375,
-0.0012187957763671875,
0.05419921875,
0.031524658203125,
0.045257568359375,
0.035308837890625,
-0.03692626953125,
0.0167388916015625,
0.01406097412109375,
0.03228759765625,
0.01221466064453125,
0.0211944580078125,
-0.03472900390625,
0.04351806640625,
0.01505279541015625,
-0.024993896484375,
0.0131378173828125,
0.00968170166015625,
0.060577392578125,
-0.06341552734375,
-0.036346435546875,
0.033111572265625,
-0.03997802734375,
-0.01036834716796875,
0.003597259521484375,
-0.005123138427734375,
-0.0509033203125,
0.005397796630859375,
0.00887298583984375,
-0.01039886474609375,
-0.0205841064453125,
-0.0263824462890625,
0.005741119384765625,
0.0090789794921875,
0.0261077880859375,
-0.022552490234375,
-0.0286102294921875,
0.0377197265625,
0.047637939453125,
0.0130157470703125,
-0.052276611328125,
-0.041534423828125,
0.0220184326171875,
0.024627685546875,
-0.028564453125,
-0.01485443115234375,
0.040924072265625,
-0.0311737060546875,
0.034698486328125,
-0.01383209228515625,
-0.0164642333984375,
-0.0457763671875,
0.024627685546875,
0.0239105224609375,
0.0155487060546875,
-0.030120849609375,
0.019256591796875,
-0.053436279296875,
0.007396697998046875,
0.045196533203125,
-0.01490020751953125,
-0.0177764892578125,
-0.043487548828125,
0.038787841796875,
0.041839599609375,
0.01119232177734375,
0.00382232666015625,
0.01352691650390625,
0.007648468017578125,
0.00592803955078125,
0.067626953125,
-0.01229095458984375,
0.016815185546875,
0.005855560302734375,
0.0265350341796875,
-0.01081085205078125,
-0.02642822265625,
-0.01678466796875,
-0.00612640380859375,
-0.0252532958984375,
-0.06622314453125,
0.033233642578125,
0.03155517578125,
0.0025386810302734375,
0.0235137939453125,
0.0214385986328125,
0.024658203125,
0.006221771240234375,
0.014190673828125,
0.0202178955078125,
-0.008514404296875,
0.0029354095458984375,
0.0187530517578125,
-0.0205078125,
0.06903076171875,
-0.0126953125,
-0.00109100341796875,
-0.0184173583984375,
0.00004273653030395508,
0.00978851318359375,
-0.0252532958984375,
-0.0149078369140625,
0.029541015625,
-0.04248046875,
0.042449951171875,
0.0654296875,
0.01399993896484375,
0.046142578125,
0.0196533203125,
0.00446319580078125,
-0.00771331787109375,
0.0164794921875,
-0.035888671875,
-0.0264739990234375,
0.04254150390625,
0.015960693359375,
0.0019702911376953125,
0.0277557373046875,
-0.01500701904296875,
0.006092071533203125,
-0.0114593505859375,
0.0227508544921875,
0.03057861328125,
0.016326904296875,
-0.0008320808410644531,
-0.06707763671875,
0.02294921875,
-0.0018186569213867188,
-0.020233154296875,
0.0369873046875,
0.06982421875,
-0.03204345703125,
-0.01367950439453125,
0.03814697265625,
0.006877899169921875,
-0.00307464599609375,
0.01373291015625,
-0.0175628662109375,
0.0024089813232421875,
-0.057464599609375,
-0.00787353515625,
0.06591796875,
-0.0171966552734375,
-0.0183258056640625,
0.0262603759765625,
-0.03948974609375,
-0.0024547576904296875,
-0.0538330078125,
-0.031768798828125,
-0.01386260986328125,
0.0103302001953125,
0.0621337890625,
0.00331878662109375,
-0.0086822509765625,
0.0218505859375,
-0.01029205322265625,
0.05303955078125,
-0.00960540771484375,
-0.031005859375,
-0.005954742431640625,
-0.00988006591796875,
0.0311126708984375,
0.046142578125,
-0.0416259765625,
0.03216552734375,
-0.0290069580078125,
-0.0022144317626953125,
-0.01206207275390625,
-0.0191192626953125,
0.06365966796875,
-0.01470947265625,
-0.007778167724609375,
0.0093841552734375,
0.03961181640625,
-0.0005297660827636719,
-0.0195159912109375,
0.0197906494140625,
-0.04620361328125,
-0.01041412353515625,
-0.0228118896484375,
-0.0176544189453125,
-0.01678466796875,
-0.06195068359375,
-0.07318115234375,
0.0711669921875,
-0.0285797119140625,
0.04296875,
-0.0001704692840576172,
0.01312255859375,
0.020294189453125,
-0.0014553070068359375,
-0.0217132568359375,
0.01439666748046875,
-0.0028839111328125,
0.041412353515625,
-0.03790283203125,
-0.005428314208984375,
0.0119171142578125,
0.034637451171875,
0.060333251953125,
0.0171966552734375,
-0.055328369140625,
-0.0021076202392578125,
0.0467529296875,
0.03729248046875,
-0.0008912086486816406,
0.0501708984375,
-0.0225830078125,
-0.019287109375,
0.0070037841796875,
-0.005950927734375,
0.04388427734375,
-0.0260009765625,
-0.0479736328125,
-0.005306243896484375,
0.0212860107421875,
0.038818359375,
0.0282135009765625,
0.0276031494140625,
-0.04840087890625,
0.0268096923828125,
0.06536865234375,
-0.04248046875,
0.044158935546875,
0.0628662109375,
0.0723876953125,
0.0229949951171875,
-0.06597900390625,
-0.0016260147094726562,
0.04949951171875,
0.025604248046875,
-0.006378173828125,
0.0190582275390625,
0.0104217529296875,
0.0262908935546875,
0.0162353515625,
0.00897979736328125,
0.0292510986328125,
0.0098724365234375,
0.01312255859375,
-0.00495147705078125,
0.0280303955078125,
-0.046905517578125,
-0.0230712890625,
0.0182037353515625,
0.0252838134765625,
-0.0213470458984375,
-0.029296875,
0.0128631591796875,
-0.0060577392578125,
-0.0007395744323730469,
-0.00679779052734375,
-0.0271148681640625,
-0.050323486328125,
0.002483367919921875,
-0.05316162109375,
0.01236724853515625,
0.041961669921875,
0.0167388916015625,
-0.018280029296875,
-0.0147552490234375,
-0.0362548828125,
0.01678466796875,
0.01776123046875,
-0.0017538070678710938,
0.0102081298828125,
-0.0004901885986328125,
-0.0275115966796875,
0.032745361328125,
-0.01242828369140625,
0.038360595703125,
-0.0355224609375,
0.0306396484375,
0.00516510009765625,
0.055938720703125,
0.0005502700805664062,
0.0218505859375,
-0.02044677734375,
0.01074981689453125,
-0.00421142578125,
-0.0281219482421875,
0.0389404296875,
0.03948974609375,
-0.07733154296875,
-0.039093017578125,
0.0189971923828125,
-0.028076171875,
0.030792236328125,
-0.02923583984375,
0.03302001953125,
0.004070281982421875,
-0.007568359375,
-0.01500701904296875,
0.034820556640625,
0.01558685302734375,
-0.040191650390625,
0.052947998046875,
-0.0074310302734375,
-0.01007080078125,
0.029083251953125,
-0.00785064697265625,
0.06292724609375,
-0.021453857421875,
-0.06463623046875,
-0.0003800392150878906,
0.014373779296875,
-0.0535888671875,
0.01035308837890625,
0.01329803466796875,
-0.06170654296875,
0.040252685546875,
0.0089874267578125,
0.0032825469970703125,
-0.0037841796875,
-0.04473876953125,
0.06121826171875,
-0.004596710205078125,
-0.01448822021484375,
0.02459716796875,
-0.01024627685546875,
-0.0115814208984375,
-0.009674072265625,
0.033447265625,
0.01163482666015625,
0.03619384765625,
-0.01354217529296875,
0.033721923828125,
0.0006737709045410156,
0.006011962890625,
-0.032196044921875,
0.005977630615234375,
-0.01100921630859375,
-0.038238525390625,
0.00673675537109375,
0.00823974609375,
-0.00775909423828125,
-0.002895355224609375,
0.036163330078125,
-0.03790283203125,
-0.01812744140625,
-0.02099609375,
0.033233642578125,
0.010894775390625,
0.03765869140625,
-0.02032470703125,
-0.030303955078125,
-0.08489990234375,
-0.02545166015625,
0.04473876953125,
0.0306396484375,
-0.00319671630859375,
0.0255584716796875,
0.042999267578125,
-0.0026397705078125,
0.03253173828125,
-0.01390838623046875,
0.062225341796875,
0.04888916015625,
-0.0340576171875,
-0.0307464599609375,
-0.01540374755859375,
0.00041794776916503906,
-0.02978515625,
0.01006317138671875,
-0.00431060791015625,
-0.00583648681640625,
-0.0408935546875,
-0.00365447998046875,
-0.00789642333984375,
0.010498046875,
-0.04962158203125,
-0.004428863525390625,
0.01406097412109375,
-0.004222869873046875,
-0.018463134765625,
0.01125335693359375,
-0.00627899169921875,
-0.02789306640625,
-0.032501220703125,
-0.011566162109375,
-0.0196990966796875,
-0.046356201171875,
-0.015869140625,
0.0013456344604492188,
0.051513671875,
0.0194091796875,
-0.04400634765625,
0.038726806640625,
-0.0259246826171875,
0.0079498291015625,
0.01290130615234375,
0.0069580078125,
-0.0116729736328125,
0.022613525390625,
-0.042724609375,
-0.060272216796875,
-0.03338623046875,
0.038299560546875,
-0.0635986328125,
0.0048828125,
0.0272216796875,
-0.01010894775390625,
0.0254364013671875,
0.0278472900390625,
-0.0032405853271484375,
0.08160400390625,
-0.060455322265625,
-0.032470703125,
0.01053619384765625,
-0.00785064697265625,
-0.01080322265625,
-0.034820556640625,
0.01158905029296875,
-0.0672607421875,
-0.006317138671875,
-0.022125244140625,
0.036468505859375,
0.0416259765625,
-0.007282257080078125,
-0.040252685546875,
0.051910400390625,
-0.0287322998046875,
-0.0198211669921875,
-0.01221466064453125,
0.0048675537109375,
-0.0234527587890625,
-0.0025959014892578125,
0.0012035369873046875,
0.01467132568359375,
0.01392364501953125,
0.0254669189453125,
-0.00366973876953125,
0.022552490234375,
0.0238800048828125,
-0.0183258056640625,
0.0072174072265625,
0.0006918907165527344,
-0.005168914794921875,
-0.019073486328125,
0.0265350341796875,
-0.00612640380859375,
0.04107666015625,
0.047515869140625,
-0.037567138671875,
0.00017011165618896484,
-0.0238800048828125,
-0.028564453125,
-0.0258941650390625,
-0.032135009765625,
-0.01934814453125,
0.01337432861328125,
0.0921630859375,
0.0535888671875,
0.0257568359375,
-0.04766845703125,
-0.037750244140625,
-0.029296875,
-0.0626220703125,
-0.0047607421875,
0.036346435546875,
-0.051910400390625,
0.0124969482421875,
-0.0212554931640625,
-0.01203155517578125,
0.0030384063720703125,
-0.0204315185546875,
-0.03436279296875,
-0.00627899169921875,
-0.022491455078125,
0.01215362548828125,
-0.08935546875,
0.040496826171875,
0.06182861328125,
-0.040191650390625,
0.0101776123046875,
-0.010589599609375,
-0.008514404296875,
0.0283966064453125,
-0.02996826171875,
0.03472900390625,
0.051788330078125,
-0.0438232421875,
-0.007556915283203125,
0.01450347900390625,
-0.014068603515625,
-0.019866943359375,
-0.008636474609375,
-0.0176239013671875,
0.01837158203125,
0.015228271484375,
0.02008056640625,
0.029571533203125,
-0.008026123046875,
0.0202789306640625,
-0.0278167724609375,
-0.0201263427734375,
-0.005344390869140625,
-0.004039764404296875,
0.0117950439453125,
-0.057281494140625,
0.01520538330078125,
-0.02880859375,
-0.013885498046875,
-0.004871368408203125,
-0.00157928466796875,
-0.038360595703125,
-0.0204620361328125,
0.007354736328125,
-0.005321502685546875,
-0.0289764404296875,
0.01091766357421875
] |
eea73370bb184ce43f5b8ec69b4eb3c1e4f7ea5c
|
Wordpress Stackexchange
Q: Is there a plugin to protect downloads with recaptcha? Is there any plugin to protect a download via recaptcha?
A: None that I know of... However, this could be achieved indirectly by using a download manager plugin such as this one which has the option to allow downloads only to logged in users. The indirect solution would then come in the form of using one of the multitude of plugins which require captcha/reCaptcha as part of the registration process for users on your site.
|
Q: Is there a plugin to protect downloads with recaptcha? Is there any plugin to protect a download via recaptcha?
A: None that I know of... However, this could be achieved indirectly by using a download manager plugin such as this one which has the option to allow downloads only to logged in users. The indirect solution would then come in the form of using one of the multitude of plugins which require captcha/reCaptcha as part of the registration process for users on your site.
|
wordpress
|
{
"language": "en",
"length": 85,
"provenance": "stackexchange_00019.jsonl.gz:411562",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23788"
}
|
[
0.052490234375,
-0.0129241943359375,
0.01123809814453125,
-0.02069091796875,
-0.00931549072265625,
-0.01727294921875,
0.02618408203125,
-0.02166748046875,
-0.0007071495056152344,
0.03961181640625,
0.023162841796875,
0.0249176025390625,
0.0020694732666015625,
-0.042449951171875,
-0.006908416748046875,
0.0025272369384765625,
0.01128387451171875,
0.0733642578125,
0.08404541015625,
-0.0081634521484375,
0.032135009765625,
0.0185394287109375,
0.0232391357421875,
0.025848388671875,
-0.0298919677734375,
0.057647705078125,
0.0831298828125,
-0.021392822265625,
-0.007503509521484375,
-0.016387939453125,
0.0083465576171875,
-0.042510986328125,
0.0278778076171875,
0.016937255859375,
-0.06573486328125,
-0.03155517578125,
0.0127410888671875,
-0.00536346435546875,
-0.040374755859375,
0.054718017578125,
0.0271759033203125,
-0.02105712890625,
-0.041595458984375,
0.009918212890625,
-0.0303192138671875,
-0.017822265625,
0.044647216796875,
-0.01015472412109375,
0.036224365234375,
0.0209197998046875,
0.0094451904296875,
0.0180511474609375,
0.018798828125,
0.0325927734375,
-0.00887298583984375,
0.0232391357421875,
-0.021575927734375,
0.06396484375,
-0.00630950927734375,
-0.0227203369140625,
0.004566192626953125,
0.058685302734375,
-0.01352691650390625,
0.042816162109375,
-0.00689697265625,
-0.040283203125,
-0.05255126953125,
0.017425537109375,
-0.03961181640625,
0.0151214599609375,
0.0660400390625,
-0.0282745361328125,
0.006183624267578125,
-0.049835205078125,
-0.006252288818359375,
0.03240966796875,
0.0163421630859375,
0.007732391357421875,
0.005016326904296875,
-0.019989013671875,
0.006244659423828125,
-0.055328369140625,
0.0209808349609375,
0.00312042236328125,
-0.0013589859008789062,
0.0283660888671875,
0.0034389495849609375,
0.0030269622802734375,
-0.006633758544921875,
0.003002166748046875,
-0.009735107421875,
-0.0204925537109375,
-0.016357421875,
0.03997802734375,
-0.0152587890625,
-0.0210113525390625,
0.04681396484375,
0.0638427734375,
-0.02392578125,
0.001804351806640625,
0.00429534912109375,
-0.025848388671875,
-0.0030422210693359375,
-0.0187835693359375,
-0.016082763671875,
0.041168212890625,
0.0287017822265625,
-0.025482177734375,
-0.00826263427734375,
-0.00010699033737182617,
-0.01555633544921875,
0.0193939208984375,
0.01366424560546875,
-0.0202789306640625,
-0.031646728515625,
0.01229095458984375,
0.0026683807373046875,
0.040283203125,
0.01128387451171875,
0.040557861328125,
-0.016937255859375,
-0.014556884765625,
0.007419586181640625,
0.039947509765625,
-0.0173187255859375,
-0.005367279052734375,
-0.0034999847412109375,
-0.01096343994140625,
-0.0284576416015625,
0.009521484375,
0.0025768280029296875,
0.01535797119140625,
0.0147247314453125,
0.02728271484375,
-0.022186279296875,
-0.003795623779296875,
0.0235137939453125,
0.00469207763671875,
0.0303955078125,
-0.0261383056640625,
0.007381439208984375,
-0.0008211135864257812,
0.01100921630859375,
-0.004199981689453125,
0.035400390625,
-0.003345489501953125,
-0.00009053945541381836,
0.0192108154296875,
0.0300140380859375,
-0.004436492919921875,
0.040771484375,
-0.042236328125,
0.0163726806640625,
-0.0066375732421875,
0.0513916015625,
-0.01055908203125,
0.020782470703125,
-0.00395965576171875,
-0.0008378028869628906,
0.01435089111328125,
0.037078857421875,
-0.0112152099609375,
-0.04681396484375,
0.01331329345703125,
-0.035919189453125,
0.0131378173828125,
0.0165252685546875,
0.00957489013671875,
0.030914306640625,
0.015655517578125,
0.0073699951171875,
-0.01467132568359375,
0.055023193359375,
0.03070068359375,
0.0014295578002929688,
0.04705810546875,
0.0225677490234375,
0.006465911865234375,
0.0305328369140625,
-0.01462554931640625,
-0.0287933349609375,
-0.01971435546875,
0.09912109375,
-0.03857421875,
-0.0233612060546875,
0.05908203125,
-0.0205230712890625,
0.048004150390625,
0.0210113525390625,
-0.01036834716796875,
-0.021484375,
0.01409912109375,
-0.03387451171875,
-0.0138397216796875,
-0.05047607421875,
-0.00705718994140625,
0.042877197265625,
0.02569580078125,
-0.0158843994140625,
0.01366424560546875,
0.044586181640625,
-0.013641357421875,
0.0162200927734375,
-0.03228759765625,
-0.0263824462890625,
-0.0294342041015625,
0.0002701282501220703,
0.00023245811462402344,
-0.006130218505859375,
-0.01132965087890625,
0.005615234375,
-0.0243988037109375,
-0.0208587646484375,
0.0364990234375,
-0.0207672119140625,
0.00238800048828125,
-0.035797119140625,
0.02874755859375,
0.01032257080078125,
0.020660400390625,
0.00885009765625,
-0.021331787109375,
0.0037250518798828125,
-0.031341552734375,
-0.06195068359375,
-0.020843505859375,
-0.01323699951171875,
0.0099945068359375,
-0.0202178955078125,
-0.004299163818359375,
0.0838623046875,
0.01314544677734375,
0.0499267578125,
0.07318115234375,
-0.0119171142578125,
-0.0411376953125,
-0.06597900390625,
-0.1650390625,
0.01367950439453125,
0.0821533203125,
0.02508544921875,
0.0238800048828125,
0.00922393798828125,
0.0152740478515625,
0.031768798828125,
-0.03594970703125,
0.026885986328125,
0.0013217926025390625,
-0.0060272216796875,
-0.02392578125,
0.05072021484375,
-0.040252685546875,
0.0294647216796875,
-0.010711669921875,
0.05889892578125,
-0.0174102783203125,
-0.00717926025390625,
0.0141754150390625,
-0.0136260986328125,
-0.0008349418640136719,
0.0009126663208007812,
-0.0005931854248046875,
0.006622314453125,
-0.00249481201171875,
-0.038116455078125,
-0.037811279296875,
0.01337432861328125,
0.028656005859375,
0.04241943359375,
-0.07415771484375,
0.0091705322265625,
0.02545166015625,
-0.0049896240234375,
0.07470703125,
0.0687255859375,
0.0933837890625,
-0.03668212890625,
-0.06097412109375,
0.040313720703125,
0.0885009765625,
-0.02606201171875,
-0.0261993408203125,
-0.049407958984375,
-0.0065155029296875,
0.0085906982421875,
0.023590087890625,
0.0198822021484375,
0.0146331787109375,
-0.0360107421875,
-0.0322265625,
0.00466156005859375,
0.02471923828125,
-0.014068603515625,
0.0157928466796875,
-0.01031494140625,
-0.0223541259765625,
-0.0029659271240234375,
-0.01971435546875,
0.0242919921875,
-0.02496337890625,
0.03936767578125,
0.0604248046875,
-0.00792694091796875,
0.019287109375,
0.002353668212890625,
0.01168060302734375,
0.0079803466796875,
0.01340484619140625,
-0.01120758056640625,
0.00968170166015625,
-0.07342529296875,
-0.0274658203125,
0.01215362548828125,
0.0270843505859375,
-0.045989990234375,
-0.056060791015625,
-0.031524658203125,
-0.01032257080078125,
-0.0958251953125,
-0.043548583984375,
-0.0021915435791015625,
-0.06256103515625,
0.04315185546875,
-0.0341796875,
-0.0012807846069335938,
-0.0276336669921875,
0.0099639892578125,
0.0088958740234375,
-0.042327880859375,
-0.0469970703125,
-0.005817413330078125,
-0.05462646484375,
-0.01335906982421875,
0.0572509765625,
0.022247314453125,
-0.002178192138671875,
-0.0072479248046875,
0.07708740234375,
-0.00635528564453125,
-0.09039306640625,
-0.0394287109375,
-0.01123046875,
0.016448974609375,
0.0282440185546875,
-0.0008387565612792969,
-0.0112152099609375,
-0.0303955078125,
0.018585205078125,
-0.037445068359375,
-0.0201568603515625,
0.02508544921875,
-0.032623291015625,
-0.00714874267578125,
-0.0200958251953125,
0.005222320556640625,
0.0282135009765625,
-0.0029125213623046875,
-0.01739501953125,
0.00667572021484375,
-0.06915283203125,
0.036376953125,
-0.020721435546875,
-0.0176849365234375,
0.0177001953125,
0.018157958984375,
-0.0266265869140625,
0.031463623046875,
-0.039642333984375,
0.06243896484375,
0.03106689453125,
-0.03125,
0.024932861328125,
-0.0003287792205810547,
0.0168914794921875,
0.0511474609375,
-0.017425537109375,
0.005092620849609375,
-0.021759033203125,
-0.0252685546875,
-0.0321044921875,
-0.0015325546264648438,
-0.025360107421875,
0.0283355712890625,
-0.026641845703125,
-0.0419921875,
0.055572509765625,
-0.0126495361328125,
0.0516357421875,
-0.05621337890625,
-0.043609619140625,
-0.009857177734375,
0.12432861328125,
-0.001064300537109375,
-0.0257415771484375,
0.011260986328125,
0.00524139404296875,
-0.033477783203125,
0.0269012451171875,
-0.0372314453125,
-0.0018644332885742188,
-0.00661468505859375,
-0.0161285400390625,
-0.0194091796875,
-0.0338134765625,
0.031829833984375,
-0.09759521484375,
0.0163726806640625,
-0.042572021484375,
0.0167388916015625,
-0.0235443115234375,
0.01123809814453125,
-0.0097503662109375,
0.0279693603515625,
-0.032989501953125,
0.031646728515625,
-0.040435791015625,
-0.0168914794921875,
-0.0032501220703125,
-0.059783935546875,
0.03338623046875,
0.0233154296875,
0.0182037353515625,
0.0016965866088867188,
0.029296875,
-0.0002789497375488281,
0.01302337646484375,
-0.001033782958984375,
-0.01403045654296875,
-0.0060577392578125,
0.0138397216796875,
0.01474761962890625,
-0.01003265380859375,
0.0128631591796875,
-0.00655364990234375,
-0.0166168212890625,
-0.00943756103515625,
-0.03680419921875,
-0.03253173828125,
0.004383087158203125,
-0.0197601318359375,
-0.0268402099609375,
-0.02801513671875,
-0.019287109375,
0.009979248046875,
-0.0110626220703125,
-0.00423431396484375,
-0.046844482421875,
-0.01076507568359375,
-0.009307861328125,
0.033050537109375,
0.00588226318359375,
0.01470947265625,
0.034332275390625,
0.0274810791015625,
-0.0012445449829101562,
-0.0465087890625,
-0.030181884765625,
0.0296478271484375,
0.0212860107421875,
0.0290985107421875,
0.01824951171875,
-0.029510498046875,
0.03717041015625,
0.01540374755859375,
-0.01071929931640625,
-0.032623291015625,
0.05657958984375,
-0.00882720947265625,
-0.00344085693359375,
0.00597381591796875,
-0.031463623046875,
0.052154541015625,
0.003265380859375,
0.01953125,
-0.053619384765625,
-0.027099609375,
0.0452880859375,
0.0192413330078125,
0.0007796287536621094,
-0.03680419921875,
-0.033905029296875,
0.0099334716796875,
-0.045501708984375,
0.035858154296875,
0.01284027099609375,
-0.001094818115234375,
0.0203704833984375,
0.03564453125,
-0.0159759521484375,
-0.01233673095703125,
-0.035858154296875,
0.0229949951171875,
0.0181884765625,
0.006511688232421875,
0.01151275634765625,
-0.007904052734375,
-0.00814056396484375,
0.01393890380859375,
-0.002223968505859375,
-0.041961669921875,
0.00522613525390625,
-0.0175933837890625,
-0.08013916015625,
0.01654052734375,
-0.0203704833984375,
0.01192474365234375,
0.006809234619140625,
-0.0134735107421875,
-0.0002009868621826172,
0.0218963623046875,
-0.0225677490234375,
-0.019073486328125,
0.0200042724609375,
0.00860595703125,
-0.0266876220703125,
0.046600341796875,
-0.037689208984375,
-0.0197906494140625,
-0.0006794929504394531,
0.0097198486328125,
0.043060302734375,
0.0709228515625,
-0.0289764404296875,
0.002758026123046875,
0.0257415771484375,
-0.0036106109619140625,
-0.037841796875,
0.02532958984375,
-0.023040771484375,
-0.006256103515625,
0.015960693359375,
0.0115814208984375,
-0.00864410400390625,
-0.010406494140625,
0.0302581787109375,
-0.0107879638671875,
-0.0380859375,
0.01337432861328125,
-0.018218994140625,
-0.03076171875,
-0.046112060546875,
-0.037139892578125,
0.0206756591796875,
0.03302001953125,
0.0086212158203125,
-0.038787841796875,
-0.0162811279296875,
-0.04974365234375,
0.03131103515625,
-0.0855712890625,
0.01184844970703125,
0.0335693359375,
0.044342041015625,
-0.0015916824340820312,
-0.037139892578125,
0.04266357421875,
-0.002895355224609375,
-0.0221405029296875,
0.019805908203125,
0.058319091796875,
-0.018157958984375,
0.0019521713256835938,
-0.0175933837890625,
0.010589599609375,
-0.0254364013671875,
0.0133209228515625,
0.055419921875,
0.010345458984375,
0.0238800048828125,
-0.02484130859375,
-0.00868988037109375,
-0.06195068359375,
-0.0517578125,
-0.0027313232421875,
-0.04962158203125,
0.006725311279296875,
-0.00777435302734375,
0.025848388671875,
-0.02227783203125,
-0.0139312744140625,
0.022918701171875,
-0.00447845458984375,
-0.0294189453125,
0.01052093505859375,
-0.0276336669921875,
0.017486572265625,
0.04608154296875,
0.0218658447265625,
-0.001758575439453125,
-0.01212310791015625,
-0.0203704833984375,
-0.0040435791015625,
-0.0311126708984375,
-0.038848876953125,
0.0333251953125,
0.0086669921875,
0.01727294921875,
0.030548095703125,
0.058013916015625,
0.0302734375,
-0.0174560546875,
-0.004543304443359375,
0.00733184814453125,
-0.014495849609375,
0.0308074951171875,
0.033782958984375,
-0.03753662109375,
0.0254364013671875,
-0.01389312744140625,
0.01348876953125,
-0.01403045654296875,
-0.007320404052734375,
0.0282745361328125,
-0.005767822265625,
0.0191192626953125,
0.004291534423828125,
-0.01372528076171875,
0.0307464599609375,
0.0245819091796875,
0.007328033447265625,
0.032684326171875,
0.015869140625,
0.01317596435546875,
-0.00826263427734375,
-0.01377105712890625,
-0.0108795166015625,
-0.0193939208984375,
0.027862548828125,
-0.006038665771484375,
-0.0199127197265625,
0.038909912109375,
-0.0243377685546875,
0.0255889892578125,
0.007068634033203125,
0.03363037109375,
-0.06292724609375,
0.02947998046875,
-0.01099395751953125,
0.0022869110107421875,
0.0323486328125,
-0.014678955078125,
-0.018768310546875,
-0.0122528076171875,
0.06396484375,
0.01300811767578125,
-0.0236358642578125,
0.03265380859375,
0.03155517578125,
0.0094146728515625,
-0.0122833251953125,
-0.0002903938293457031,
-0.0080718994140625,
-0.061920166015625,
-0.01035308837890625,
0.04229736328125,
-0.0162811279296875,
-0.008209228515625,
0.0258636474609375,
0.0178375244140625,
-0.014373779296875,
-0.00992584228515625,
0.055755615234375,
0.007747650146484375,
-0.007305145263671875,
-0.0007004737854003906,
0.03643798828125,
0.0670166015625,
0.045379638671875,
0.0272216796875,
-0.032135009765625,
0.032745361328125,
0.01412200927734375,
0.06890869140625,
-0.004123687744140625,
-0.033477783203125,
0.002597808837890625,
0.03131103515625,
-0.0151519775390625,
0.0173492431640625,
-0.0231170654296875,
-0.01629638671875,
0.006023406982421875,
0.08892822265625,
0.00563812255859375,
-0.03240966796875,
0.038787841796875,
0.0259246826171875,
-0.0270538330078125,
0.01084136962890625,
0.04205322265625,
0.01007080078125,
0.04595947265625,
0.0023174285888671875,
0.04425048828125,
-0.0274200439453125,
0.01340484619140625,
-0.061309814453125,
0.0419921875,
0.017791748046875,
0.01110076904296875,
-0.0225372314453125,
0.009674072265625,
0.00533294677734375,
-0.0014390945434570312,
-0.0164947509765625,
0.026031494140625,
-0.031646728515625,
0.0118560791015625,
0.0034942626953125,
0.0146636962890625,
-0.0063323974609375,
0.004314422607421875,
-0.0154266357421875,
-0.0013866424560546875,
-0.0240020751953125,
-0.0167083740234375,
0.0212860107421875,
0.028411865234375,
0.0208587646484375,
0.015655517578125,
0.016448974609375,
0.0020160675048828125,
0.015869140625,
-0.0256195068359375,
0.031524658203125,
-0.042724609375,
0.005512237548828125,
0.0181884765625,
-0.0133209228515625,
-0.0418701171875,
0.0019407272338867188,
0.0789794921875,
-0.06591796875,
-0.0023136138916015625,
0.033447265625,
0.004459381103515625,
0.030548095703125,
0.0221405029296875,
0.0213165283203125,
-0.017791748046875,
0.0272979736328125,
-0.021331787109375,
0.0419921875,
-0.0276336669921875,
0.037109375,
0.035369873046875,
0.025299072265625,
0.029998779296875,
0.006633758544921875,
0.0191497802734375,
0.0188446044921875,
-0.032806396484375,
-0.021026611328125,
-0.0172576904296875,
0.00455474853515625,
-0.047821044921875,
-0.020172119140625,
0.038726806640625,
0.0023326873779296875,
-0.00899505615234375,
-0.06854248046875,
0.005809783935546875,
0.007595062255859375,
0.0361328125,
0.0307159423828125,
0.07293701171875,
-0.06732177734375,
-0.01065826416015625,
-0.0166015625,
-0.0278472900390625,
-0.004047393798828125,
0.0034351348876953125,
0.0009484291076660156,
0.0195159912109375,
0.038116455078125,
-0.0162506103515625,
0.006603240966796875,
-0.0163116455078125,
0.00725555419921875,
-0.0250091552734375,
0.005733489990234375,
0.0165863037109375,
0.0217742919921875,
0.005710601806640625,
-0.0023136138916015625,
0.045806884765625,
0.019744873046875,
0.01558685302734375,
-0.03765869140625,
-0.0323486328125,
0.01605224609375,
0.041839599609375,
0.01172637939453125,
-0.014312744140625,
-0.0051727294921875,
0.03582763671875,
0.01125335693359375,
-0.000014483928680419922,
0.055450439453125,
0.003467559814453125,
0.047943115234375,
-0.025238037109375,
0.05908203125,
0.0204925537109375,
-0.0070037841796875,
-0.052337646484375,
0.0108489990234375,
0.055145263671875,
-0.042938232421875,
0.024261474609375,
-0.0130157470703125,
-0.038848876953125,
0.03179931640625,
0.0011930465698242188,
0.032989501953125,
-0.0289764404296875,
-0.10089111328125,
0.0039043426513671875,
-0.05224609375,
-0.0257720947265625,
0.0131683349609375,
0.0209808349609375,
-0.0296630859375,
0.03997802734375,
0.02557373046875,
-0.017364501953125,
0.0117034912109375,
-0.005664825439453125,
0.0156402587890625,
-0.04229736328125,
-0.00634002685546875,
-0.0236053466796875,
-0.0362548828125,
-0.02960205078125,
-0.035064697265625,
0.054901123046875,
0.00849151611328125,
0.0908203125,
-0.037750244140625,
0.028564453125,
-0.011383056640625,
0.0036106109619140625,
-0.0189666748046875,
-0.0036907196044921875,
0.046417236328125,
0.0032863616943359375,
-0.02740478515625,
-0.0183563232421875,
-0.045379638671875,
0.0020542144775390625,
0.00470733642578125,
-0.01419830322265625,
-0.0167694091796875,
-0.018829345703125,
0.013702392578125,
0.032318115234375,
0.02801513671875,
-0.0293426513671875,
-0.08306884765625,
-0.039337158203125,
0.019805908203125,
0.00213623046875,
0.048828125,
-0.0016202926635742188,
0.0010499954223632812,
-0.0159759521484375,
0.0257720947265625,
0.00907135009765625,
0.0274200439453125,
0.012115478515625,
0.019500732421875,
-0.0804443359375,
-0.0292816162109375,
0.00411224365234375,
-0.0157928466796875,
-0.016693115234375,
0.010986328125,
0.024749755859375,
0.006378173828125,
-0.029693603515625,
0.0205535888671875,
0.04937744140625,
0.0413818359375,
-0.006801605224609375,
0.005870819091796875,
0.032806396484375,
-0.0127410888671875,
0.009521484375,
-0.0236968994140625,
-0.0290069580078125,
-0.033721923828125,
-0.002635955810546875,
-0.0028400421142578125,
-0.01093292236328125,
-0.05743408203125,
-0.03338623046875,
0.00998687744140625,
-0.001201629638671875,
-0.0021076202392578125,
-0.056060791015625,
0.015289306640625,
0.00037026405334472656,
0.06451416015625,
-0.025421142578125,
0.042083740234375,
0.000423431396484375,
-0.004940032958984375,
-0.0721435546875,
-0.0190887451171875,
-0.01456451416015625,
0.03582763671875,
-0.005779266357421875,
-0.0018548965454101562,
0.000029265880584716797,
-0.00768280029296875,
0.035064697265625,
-0.011016845703125,
-0.0196075439453125,
0.04364013671875,
-0.0194549560546875,
-0.0233001708984375,
-0.00399017333984375,
-0.000164031982421875,
0.0073089599609375,
-0.08050537109375,
-0.0165863037109375,
-0.0557861328125,
-0.0220184326171875,
-0.0261077880859375,
0.00672149658203125,
0.01239776611328125,
-0.037384033203125,
-0.06561279296875,
0.07891845703125,
-0.01497650146484375,
-0.00827789306640625,
0.006694793701171875,
0.028167724609375,
0.029754638671875,
-0.07269287109375,
-0.00151824951171875,
0.01186370849609375,
-0.0196990966796875,
-0.0226898193359375,
-0.007049560546875,
-0.04278564453125,
0.022430419921875,
-0.0166778564453125,
0.0153350830078125,
0.047210693359375,
0.083251953125,
-0.049041748046875,
-0.00319671630859375,
0.0106353759765625,
0.027679443359375,
0.030426025390625,
-0.0119171142578125,
0.0309600830078125,
0.004779815673828125,
-0.012420654296875,
-0.0246734619140625,
0.00112152099609375,
0.0286865234375,
0.03857421875,
-0.008697509765625,
0.06005859375,
-0.019439697265625,
-0.0528564453125,
0.0085601806640625,
-0.0208587646484375,
-0.0010824203491210938,
0.015106201171875,
0.006763458251953125,
-0.0194091796875,
0.0106964111328125,
-0.0032215118408203125,
-0.0093231201171875,
0.002300262451171875,
0.021697998046875,
-0.0212554931640625,
-0.00962066650390625,
0.0401611328125,
-0.00848388671875,
-0.03271484375,
-0.0267333984375,
0.04290771484375,
-0.0257720947265625,
0.01105499267578125,
0.042205810546875,
0.0115203857421875,
0.028564453125,
0.061798095703125,
0.0194091796875,
0.04119873046875,
-0.0367431640625,
0.005138397216796875,
0.0276336669921875,
0.039703369140625,
-0.035003662109375,
-0.01399993896484375,
-0.018280029296875,
0.0228118896484375,
0.019012451171875,
0.04742431640625,
-0.0160980224609375,
0.0205230712890625,
0.0316162109375,
-0.05029296875,
-0.034210205078125,
-0.101318359375,
-0.04022216796875,
0.0024662017822265625,
-0.0138092041015625,
0.004291534423828125,
0.04559326171875,
-0.0287628173828125,
0.00916290283203125,
0.004924774169921875,
-0.0008769035339355469,
-0.007568359375,
0.002407073974609375,
-0.02899169921875,
-0.0310821533203125,
-0.0027599334716796875
] |
1bca6a230a226859b1e0bec1bce0afbc2629665d
|
Wordpress Stackexchange
Q: Why does WordPress require a ftp server to be running on the webserver to transfer plugins? I had asked a related question on Super User:
A use case of a system "receiving" files over FTP would be, for example, the way WordPress plugins are installed via 1-click where WordPress initiates a file transfer to the local Linux box from the remote WordPress plugin repository using ftp(s)
More specifically this screen:
My initial understanding that WordPress would transfer the files from the WordPress plugin repository, like how a FTP client would do. But further discussions on chat have left me confused as to why would WordPress require the FTP details of the web server?
What am I missing here?
A: When you do something that requires WordPress write to the filesystem, it does a check to see if it has permissions to do so by writing a temp file. If this check fails it will ask for FTP details in order to write the files to your server.
EDIT
look in wp-admin/includes/file.php, line 843, for the get_filesystem_method function that does this check.
|
Q: Why does WordPress require a ftp server to be running on the webserver to transfer plugins? I had asked a related question on Super User:
A use case of a system "receiving" files over FTP would be, for example, the way WordPress plugins are installed via 1-click where WordPress initiates a file transfer to the local Linux box from the remote WordPress plugin repository using ftp(s)
More specifically this screen:
My initial understanding that WordPress would transfer the files from the WordPress plugin repository, like how a FTP client would do. But further discussions on chat have left me confused as to why would WordPress require the FTP details of the web server?
What am I missing here?
A: When you do something that requires WordPress write to the filesystem, it does a check to see if it has permissions to do so by writing a temp file. If this check fails it will ask for FTP details in order to write the files to your server.
EDIT
look in wp-admin/includes/file.php, line 843, for the get_filesystem_method function that does this check.
A: The wp-admin/includes/file.php **get_filesystem_method()** uses an erroneous test to determine if it can write a file. At line 853:
if ( getmyuid() == @fileowner($temp_file_name) )
The use of getmyuid() is wrong for unix - instead that should be posix_getuid(). The problem is the getmyuid() will return the owner of the script file not the user that is running the script. On unix, that means if the file was installed by root and the webserver is running as user www-data then test will fail even thought the file is written during the test.
So to fix, change the line with getmyuid() to:
if ( posix_getuid() == @fileowner($temp_file_name) )
A: Milo's answer is correct. I just wanted to add some details about how the check is done (because get_filesystem_method() has changed a bit since 2011).
Firstly, you can completely override this check by defining FS_METHOD in your wp-config.php to be 'direct', 'ssh2', 'ftpext' or 'ftpsockets'.
If this constant isn't set, then WP tries to determine what method to use. It does this by trying to create a temporary file called wp-content/temp-write-test-1434788954 (that number at the end is just the current timestamp). If this file can't be created, it uses the ssh2, ftpext or ftpsockets method (i.e. the annoying ones that require authentication credentials).
If the file can be created, WP carries on to compare the owner of that file with the owner of wp-admin/includes/file.php. If these are the same, then all is good and the direct method can be used.
TL;DR: The web server user must be allowed to write to wp-content/ and be the owner of wp-admin/includes/file.php.
|
wordpress
|
{
"language": "en",
"length": 448,
"provenance": "stackexchange_00019.jsonl.gz:411566",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23800"
}
|
[
0.034271240234375,
0.0133209228515625,
0.0197296142578125,
0.00620269775390625,
-0.01540374755859375,
-0.01264190673828125,
0.0231170654296875,
-0.04443359375,
-0.00839996337890625,
-0.0047454833984375,
-0.0248565673828125,
0.0035037994384765625,
-0.007480621337890625,
-0.0333251953125,
0.0307769775390625,
-0.0260162353515625,
0.033203125,
-0.0184173583984375,
0.0128021240234375,
-0.0016193389892578125,
-0.0012578964233398438,
0.037139892578125,
0.0147552490234375,
-0.0032520294189453125,
0.0191650390625,
0.0146636962890625,
0.068603515625,
-0.0193328857421875,
0.006656646728515625,
-0.021728515625,
0.0122833251953125,
-0.019561767578125,
0.050811767578125,
0.0266265869140625,
-0.06060791015625,
-0.0286712646484375,
-0.034027099609375,
0.0109710693359375,
-0.03607177734375,
0.04644775390625,
0.03173828125,
-0.011871337890625,
0.0457763671875,
0.03887939453125,
0.0176239013671875,
-0.04241943359375,
0.0265960693359375,
-0.068603515625,
0.01151275634765625,
0.00939178466796875,
-0.0164794921875,
0.0190887451171875,
-0.0083160400390625,
0.01319122314453125,
-0.0007429122924804688,
-0.00743865966796875,
0.0135498046875,
0.0212249755859375,
0.013275146484375,
-0.056610107421875,
-0.04473876953125,
0.0163116455078125,
0.03350830078125,
0.03863525390625,
-0.004344940185546875,
-0.0165557861328125,
-0.0223388671875,
0.0196990966796875,
-0.043487548828125,
-0.004669189453125,
0.045806884765625,
-0.029754638671875,
-0.002826690673828125,
0.002166748046875,
0.01824951171875,
-0.02166748046875,
0.018890380859375,
0.002529144287109375,
-0.004352569580078125,
0.05010986328125,
0.004627227783203125,
-0.01535797119140625,
0.00994873046875,
-0.0253448486328125,
-0.0020351409912109375,
0.0024127960205078125,
-0.0175323486328125,
-0.008087158203125,
-0.03125,
-0.0052947998046875,
-0.0180816650390625,
0.03375244140625,
-0.040435791015625,
-0.0181884765625,
-0.0257568359375,
0.006549835205078125,
-0.031982421875,
-0.0149993896484375,
-0.0041961669921875,
0.034881591796875,
0.0124664306640625,
-0.036346435546875,
0.0628662109375,
-0.0287322998046875,
-0.0130462646484375,
0.027099609375,
-0.0165557861328125,
-0.011199951171875,
0.021240234375,
0.0322265625,
-0.002910614013671875,
-0.00891876220703125,
0.0268402099609375,
-0.034332275390625,
0.006732940673828125,
0.0237579345703125,
0.01678466796875,
0.034820556640625,
0.0135345458984375,
0.0239715576171875,
0.01177215576171875,
0.031280517578125,
-0.05279541015625,
-0.01187896728515625,
-0.01174163818359375,
-0.036865234375,
-0.0134124755859375,
0.022064208984375,
-0.040008544921875,
0.0210418701171875,
-0.0234832763671875,
0.0234832763671875,
0.049224853515625,
0.013702392578125,
-0.0181884765625,
-0.0106964111328125,
0.04547119140625,
0.034759521484375,
0.011810302734375,
0.00420379638671875,
-0.00458526611328125,
-0.0177764892578125,
-0.0031566619873046875,
-0.0067901611328125,
0.00957489013671875,
-0.007236480712890625,
0.03668212890625,
0.038665771484375,
-0.0259246826171875,
-0.019683837890625,
0.037017822265625,
0.030487060546875,
0.00030732154846191406,
0.006916046142578125,
0.035797119140625,
-0.021697998046875,
0.01239776611328125,
-0.0352783203125,
0.0237579345703125,
-0.0226593017578125,
0.0154571533203125,
0.014251708984375,
0.013153076171875,
-0.0221710205078125,
-0.0240631103515625,
-0.02508544921875,
-0.00678253173828125,
0.0004875659942626953,
0.0145721435546875,
-0.02203369140625,
-0.01153564453125,
-0.026947021484375,
0.051513671875,
0.01861572265625,
-0.0016307830810546875,
0.0501708984375,
0.05975341796875,
-0.007747650146484375,
0.0290069580078125,
0.0406494140625,
-0.019866943359375,
-0.0138092041015625,
0.1021728515625,
-0.05889892578125,
-0.017333984375,
0.0108642578125,
0.01031494140625,
0.05816650390625,
-0.006679534912109375,
0.02850341796875,
-0.0259552001953125,
0.00975799560546875,
-0.0167694091796875,
0.022430419921875,
-0.02606201171875,
-0.0166015625,
0.0216522216796875,
0.034698486328125,
-0.0119476318359375,
-0.019195556640625,
-0.021148681640625,
-0.004669189453125,
0.005615234375,
-0.00238800048828125,
-0.039825439453125,
-0.012481689453125,
-0.021728515625,
0.032196044921875,
0.03662109375,
0.0006551742553710938,
-0.01537322998046875,
-0.0024509429931640625,
0.01285552978515625,
-0.06585693359375,
-0.049652099609375,
0.028228759765625,
-0.055084228515625,
0.02703857421875,
-0.0007119178771972656,
0.0292510986328125,
-0.00621795654296875,
-0.03656005859375,
-0.00949859619140625,
-0.041900634765625,
-0.0192413330078125,
0.0164794921875,
-0.0297698974609375,
0.006084442138671875,
-0.0217132568359375,
0.007289886474609375,
0.035308837890625,
0.0270233154296875,
-0.01537322998046875,
-0.00031185150146484375,
-0.0195159912109375,
-0.00591278076171875,
-0.0012788772583007812,
-0.060943603515625,
0.0200347900390625,
0.042236328125,
0.0293731689453125,
-0.00106048583984375,
-0.0150146484375,
0.0186920166015625,
-0.01605224609375,
-0.0670166015625,
0.004077911376953125,
0.0029811859130859375,
0.04071044921875,
0.01959228515625,
-0.00527191162109375,
-0.058502197265625,
0.0193939208984375,
-0.0726318359375,
0.01509857177734375,
0.0133514404296875,
-0.00008660554885864258,
-0.02655029296875,
-0.002971649169921875,
-0.004634857177734375,
0.01849365234375,
-0.0033588409423828125,
-0.047882080078125,
0.0175628662109375,
0.0181427001953125,
0.02154541015625,
0.007450103759765625,
0.00742340087890625,
-0.033599853515625,
0.037139892578125,
0.007762908935546875,
-0.040802001953125,
-0.0013837814331054688,
0.03955078125,
0.0372314453125,
0.00594329833984375,
-0.04962158203125,
-0.010589599609375,
0.0084381103515625,
0.0218658447265625,
-0.027252197265625,
-0.01015472412109375,
0.04608154296875,
-0.001667022705078125,
-0.0086517333984375,
-0.039337158203125,
0.06341552734375,
0.00757598876953125,
0.0230712890625,
-0.0246734619140625,
0.0281219482421875,
-0.01502227783203125,
-0.042999267578125,
0.051727294921875,
-0.01247406005859375,
-0.051116943359375,
0.0640869140625,
-0.0128936767578125,
0.0169830322265625,
-0.0081787109375,
0.018798828125,
0.045013427734375,
0.007465362548828125,
-0.025054931640625,
0.013031005859375,
0.01983642578125,
0.0222320556640625,
0.0014028549194335938,
-0.015960693359375,
0.035308837890625,
-0.10345458984375,
-0.0225830078125,
-0.0003719329833984375,
0.00856781005859375,
-0.049560546875,
-0.0657958984375,
-0.05841064453125,
-0.020904541015625,
-0.10748291015625,
-0.0401611328125,
-0.002765655517578125,
-0.052978515625,
0.013671875,
-0.020111083984375,
-0.0238189697265625,
-0.0108489990234375,
-0.0151824951171875,
0.0242919921875,
-0.0249176025390625,
-0.0247802734375,
-0.0401611328125,
-0.0848388671875,
-0.0653076171875,
-0.045440673828125,
-0.0038776397705078125,
0.005802154541015625,
0.01293182373046875,
0.06414794921875,
0.00972747802734375,
-0.077392578125,
-0.03424072265625,
0.044342041015625,
-0.0249176025390625,
0.0016489028930664062,
0.00641632080078125,
-0.037078857421875,
0.00341796875,
-0.0031585693359375,
0.032958984375,
0.00339508056640625,
-0.01076507568359375,
-0.00722503662109375,
0.0063934326171875,
-0.020233154296875,
-0.00333404541015625,
-0.034027099609375,
-0.00795745849609375,
-0.036651611328125,
-0.059600830078125,
-0.078125,
0.027099609375,
-0.01324462890625,
-0.0233917236328125,
0.0279998779296875,
-0.000002384185791015625,
-0.0256195068359375,
-0.0009717941284179688,
-0.00919342041015625,
0.01200103759765625,
0.0179443359375,
0.003223419189453125,
0.01003265380859375,
0.01187896728515625,
-0.00862884521484375,
-0.0108489990234375,
-0.028167724609375,
0.034423828125,
-0.0199737548828125,
0.03399658203125,
0.01548004150390625,
-0.010284423828125,
-0.0245819091796875,
0.02740478515625,
-0.038909912109375,
-0.08807373046875,
0.061431884765625,
-0.0252685546875,
-0.0183258056640625,
-0.044158935546875,
-0.02337646484375,
0.01690673828125,
0.11614990234375,
0.0044708251953125,
-0.0193634033203125,
-0.02874755859375,
0.004039764404296875,
0.007106781005859375,
-0.01316070556640625,
0.00533294677734375,
-0.025634765625,
0.0269927978515625,
-0.046173095703125,
-0.034149169921875,
-0.01523590087890625,
0.03875732421875,
-0.09259033203125,
0.0250244140625,
-0.0355224609375,
0.01055145263671875,
-0.060791015625,
0.01690673828125,
-0.03375244140625,
0.01081085205078125,
-0.07086181640625,
0.00868988037109375,
-0.0501708984375,
-0.02239990234375,
-0.007808685302734375,
-0.0245819091796875,
0.032440185546875,
0.0177154541015625,
-0.00015687942504882812,
-0.021087646484375,
0.0191497802734375,
-0.0037860870361328125,
0.0249786376953125,
0.00991058349609375,
0.010498046875,
0.02838134765625,
0.006015777587890625,
0.0267333984375,
-0.01052093505859375,
0.00846099853515625,
-0.01174163818359375,
-0.051239013671875,
0.0025119781494140625,
-0.01284027099609375,
0.01346588134765625,
0.026641845703125,
-0.0323486328125,
-0.02392578125,
-0.0256195068359375,
-0.0186767578125,
-0.00786590576171875,
-0.003749847412109375,
-0.0108184814453125,
-0.0164794921875,
-0.0087432861328125,
0.01090240478515625,
-0.01250457763671875,
0.0019073486328125,
0.016876220703125,
0.0484619140625,
0.016754150390625,
-0.006134033203125,
-0.04632568359375,
0.01021575927734375,
0.03717041015625,
0.047607421875,
0.004734039306640625,
0.02545166015625,
-0.0196533203125,
-0.0161285400390625,
0.04949951171875,
0.009552001953125,
-0.0217132568359375,
0.0191650390625,
0.00933074951171875,
-0.007843017578125,
0.012603759765625,
0.0103302001953125,
0.016845703125,
0.0268707275390625,
0.0051727294921875,
-0.0182342529296875,
-0.0027103424072265625,
0.023773193359375,
0.00406646728515625,
-0.014007568359375,
-0.0187225341796875,
-0.051483154296875,
0.0283203125,
-0.03594970703125,
0.017181396484375,
0.019989013671875,
-0.00507354736328125,
0.020843505859375,
0.002307891845703125,
-0.0372314453125,
0.025177001953125,
-0.02581787109375,
0.00748443603515625,
-0.0106048583984375,
0.00379180908203125,
-0.036376953125,
0.02032470703125,
-0.00669097900390625,
0.048553466796875,
0.00742340087890625,
-0.04266357421875,
-0.0240936279296875,
0.0004608631134033203,
0.001010894775390625,
0.00954437255859375,
-0.00797271728515625,
0.0230560302734375,
-0.025238037109375,
-0.027862548828125,
-0.0065765380859375,
-0.025634765625,
-0.055633544921875,
-0.0438232421875,
-0.027069091796875,
-0.02490234375,
-0.017669677734375,
-0.0070343017578125,
0.03118896484375,
-0.00957489013671875,
-0.006061553955078125,
-0.0065765380859375,
0.0278167724609375,
0.032867431640625,
0.003704071044921875,
0.0240936279296875,
-0.007770538330078125,
0.0121002197265625,
-0.027801513671875,
0.005687713623046875,
-0.047332763671875,
0.0168914794921875,
0.00534820556640625,
0.036041259765625,
-0.033782958984375,
-0.0615234375,
0.056884765625,
-0.024078369140625,
-0.0289306640625,
0.0211639404296875,
0.04302978515625,
-0.00508880615234375,
-0.0184326171875,
-0.0160980224609375,
0.0181884765625,
0.0047149658203125,
0.00818634033203125,
0.0241851806640625,
0.0462646484375,
0.030517578125,
0.0289764404296875,
-0.048980712890625,
0.0082244873046875,
0.043060302734375,
0.048431396484375,
0.0016069412231445312,
-0.01068878173828125,
0.00611114501953125,
0.01800537109375,
-0.041748046875,
-0.019775390625,
0.0667724609375,
-0.00310516357421875,
0.031982421875,
-0.035675048828125,
-0.0153045654296875,
-0.04034423828125,
0.00896453857421875,
0.038848876953125,
0.02374267578125,
-0.06488037109375,
0.00606536865234375,
-0.04168701171875,
-0.016693115234375,
0.01279449462890625,
-0.0014524459838867188,
-0.049957275390625,
-0.004436492919921875,
0.0021038055419921875,
0.01198577880859375,
-0.0164794921875,
-0.0302581787109375,
-0.02142333984375,
0.01055908203125,
0.0157928466796875,
0.01947021484375,
-0.0262908935546875,
0.03515625,
0.0203857421875,
-0.006435394287109375,
-0.004047393798828125,
0.006809234619140625,
-0.008392333984375,
-0.0013189315795898438,
0.00605010986328125,
-0.017181396484375,
-0.026580810546875,
-0.01531982421875,
0.004169464111328125,
-0.004001617431640625,
0.0355224609375,
-0.00661468505859375,
-0.008941650390625,
-0.0032367706298828125,
0.00582122802734375,
-0.00977325439453125,
0.0218505859375,
0.012115478515625,
-0.016143798828125,
-0.0132598876953125,
-0.03277587890625,
0.00890350341796875,
-0.0204620361328125,
-0.01392364501953125,
0.0189056396484375,
-0.0215911865234375,
-0.003528594970703125,
0.065185546875,
-0.004337310791015625,
0.04144287109375,
0.08154296875,
-0.00875091552734375,
0.031463623046875,
0.049713134765625,
-0.00347137451171875,
-0.002765655517578125,
0.0011968612670898438,
0.002994537353515625,
-0.0224609375,
0.018798828125,
-0.006481170654296875,
0.003276824951171875,
0.01512908935546875,
-0.0173797607421875,
0.0272674560546875,
0.0289459228515625,
0.06927490234375,
-0.03656005859375,
0.0245361328125,
0.0241546630859375,
-0.0212860107421875,
0.01482391357421875,
-0.00972747802734375,
-0.0014429092407226562,
-0.0498046875,
0.016937255859375,
0.0455322265625,
-0.01241302490234375,
-0.003173828125,
-0.005565643310546875,
0.004604339599609375,
0.0171051025390625,
0.05621337890625,
0.010711669921875,
-0.0252532958984375,
-0.045867919921875,
0.0192718505859375,
-0.01004791259765625,
0.001720428466796875,
0.011016845703125,
-0.002239227294921875,
-0.03839111328125,
-0.03125,
0.00423431396484375,
-0.003986358642578125,
-0.0274505615234375,
0.006870269775390625,
-0.01690673828125,
0.050048828125,
0.024932861328125,
0.00765228271484375,
-0.0269012451171875,
0.00045561790466308594,
0.034576416015625,
-0.052978515625,
-0.039703369140625,
0.0183868408203125,
0.06829833984375,
-0.0302276611328125,
0.040191650390625,
0.0031032562255859375,
-0.0167388916015625,
-0.0297088623046875,
-0.00853729248046875,
0.10064697265625,
-0.0029659271240234375,
-0.0264129638671875,
0.02728271484375,
0.034149169921875,
-0.0333251953125,
-0.01800537109375,
0.0280609130859375,
-0.07421875,
-0.0367431640625,
0.017608642578125,
-0.0229949951171875,
0.001827239990234375,
-0.00852203369140625,
-0.043670654296875,
0.1204833984375,
0.0217437744140625,
-0.01064300537109375,
0.005069732666015625,
0.059783935546875,
-0.04046630859375,
0.0352783203125,
-0.038665771484375,
0.0731201171875,
0.039398193359375,
0.0199737548828125,
-0.061065673828125,
-0.02239990234375,
0.006847381591796875,
0.035980224609375,
0.07440185546875,
0.0198211669921875,
-0.041534423828125,
-0.0045928955078125,
0.058807373046875,
0.0650634765625,
0.01904296875,
0.0266876220703125,
-0.005741119384765625,
0.0282135009765625,
0.0276336669921875,
-0.00981903076171875,
0.03271484375,
-0.01019287109375,
-0.025726318359375,
0.0218048095703125,
0.00470733642578125,
-0.00997161865234375,
-0.0004987716674804688,
0.029052734375,
-0.0104827880859375,
-0.00006258487701416016,
-0.00429534912109375,
0.0240020751953125,
-0.01202392578125,
0.01108551025390625,
-0.00815582275390625,
-0.020782470703125,
0.0074462890625,
-0.028900146484375,
0.041412353515625,
-0.01934814453125,
0.010498046875,
0.0113525390625,
0.0140533447265625,
0.0011930465698242188,
-0.00589752197265625,
0.0011548995971679688,
0.039154052734375,
-0.032012939453125,
0.0273590087890625,
0.01302337646484375,
0.0304107666015625,
-0.017120361328125,
-0.0012874603271484375,
0.037689208984375,
0.042755126953125,
-0.02532958984375,
-0.0304412841796875,
0.005336761474609375,
-0.0015869140625,
-0.00472259521484375,
-0.022796630859375,
-0.004791259765625,
-0.039093017578125,
-0.016021728515625,
-0.017425537109375,
0.01059722900390625,
0.016387939453125,
0.01316070556640625,
-0.00606536865234375,
-0.0009579658508300781,
-0.0192108154296875,
0.0006375312805175781,
0.0020008087158203125,
0.039398193359375,
-0.030029296875,
-0.007434844970703125,
-0.02593994140625,
0.0277252197265625,
-0.031158447265625,
0.0167236328125,
0.005496978759765625,
0.01678466796875,
-0.021270751953125,
0.0006680488586425781,
-0.01200103759765625,
-0.055999755859375,
0.0303192138671875,
0.03167724609375,
0.006748199462890625,
0.060028076171875,
0.0291290283203125,
0.034637451171875,
0.0144500732421875,
-0.0004661083221435547,
0.042510986328125,
-0.0109100341796875,
-0.02056884765625,
-0.0413818359375,
0.0203704833984375,
0.026458740234375,
0.00698089599609375,
0.008270263671875,
-0.01264190673828125,
0.051666259765625,
-0.033233642578125,
0.04248046875,
-0.01375579833984375,
-0.042205810546875,
0.052459716796875,
-0.0263824462890625,
0.1019287109375,
-0.00926971435546875,
-0.06268310546875,
-0.018157958984375,
0.006381988525390625,
-0.0006732940673828125,
0.0013828277587890625,
0.02679443359375,
-0.034393310546875,
0.0555419921875,
0.0188140869140625,
-0.0517578125,
0.031494140625,
0.0180511474609375,
0.0216827392578125,
0.0025196075439453125,
-0.0034427642822265625,
-0.02099609375,
-0.01580810546875,
-0.0258026123046875,
-0.04730224609375,
0.08587646484375,
0.0285186767578125,
0.12109375,
-0.068603515625,
0.041595458984375,
0.0081939697265625,
-0.035308837890625,
0.0305633544921875,
-0.001880645751953125,
0.00722503662109375,
0.0243988037109375,
-0.01049041748046875,
-0.0305633544921875,
-0.0038299560546875,
0.00891876220703125,
0.0186614990234375,
-0.017730712890625,
-0.0352783203125,
-0.014007568359375,
0.03546142578125,
0.0517578125,
0.0382080078125,
-0.03216552734375,
-0.048919677734375,
-0.028289794921875,
0.0009374618530273438,
0.0157470703125,
-0.01399993896484375,
-0.010711669921875,
0.0216064453125,
-0.003604888916015625,
-0.03509521484375,
0.00679779052734375,
-0.037353515625,
-0.00009554624557495117,
0.030792236328125,
0.0266571044921875,
-0.05023193359375,
0.005870819091796875,
-0.01099395751953125,
0.00323486328125,
-0.005512237548828125,
0.0841064453125,
-0.01116180419921875,
-0.0104217529296875,
-0.00849151611328125,
-0.0169219970703125,
0.034820556640625,
0.007274627685546875,
-0.0079803466796875,
-0.0343017578125,
0.017486572265625,
-0.033477783203125,
-0.0305328369140625,
-0.0204010009765625,
-0.040313720703125,
-0.01198577880859375,
0.032745361328125,
-0.04559326171875,
-0.03125,
-0.0771484375,
0.0111083984375,
0.01800537109375,
0.005329132080078125,
-0.0601806640625,
0.0026187896728515625,
-0.01438140869140625,
0.06304931640625,
-0.030029296875,
0.01311492919921875,
-0.0193939208984375,
-0.0022754669189453125,
-0.031707763671875,
-0.043914794921875,
-0.0233917236328125,
0.064453125,
-0.032073974609375,
0.0557861328125,
0.0126800537109375,
-0.049346923828125,
0.034698486328125,
0.06744384765625,
0.07318115234375,
0.11865234375,
0.048065185546875,
-0.0277252197265625,
-0.018341064453125,
-0.007366180419921875,
-0.002532958984375,
0.013763427734375,
0.0297393798828125,
-0.0267181396484375,
-0.06353759765625,
-0.03729248046875,
0.006153106689453125,
0.004627227783203125,
-0.07135009765625,
-0.116455078125,
0.046966552734375,
-0.0255279541015625,
-0.040374755859375,
-0.04571533203125,
-0.03472900390625,
-0.036346435546875,
0.08349609375,
-0.005382537841796875,
-0.005039215087890625,
-0.0066070556640625,
0.074951171875,
0.030792236328125,
0.01493072509765625,
0.02044677734375,
0.00585174560546875,
-0.007656097412109375,
0.0300140380859375,
0.020233154296875,
0.01812744140625,
-0.0146636962890625,
0.00379180908203125,
0.0262908935546875,
0.0494384765625,
-0.00579071044921875,
0.052886962890625,
0.0150909423828125,
-0.044921875,
-0.01177978515625,
-0.005168914794921875,
0.00855255126953125,
0.031646728515625,
0.03887939453125,
0.042022705078125,
0.00494384765625,
-0.054779052734375,
-0.02496337890625,
-0.058349609375,
0.0093231201171875,
0.0079193115234375,
0.004459381103515625,
-0.045135498046875,
0.0190582275390625,
0.0290069580078125,
0.00795745849609375,
0.01153564453125,
-0.0281829833984375,
-0.01364898681640625,
-0.0157470703125,
-0.0108795166015625,
-0.0006766319274902344,
-0.00939178466796875,
-0.0167083740234375,
0.06634521484375,
-0.0159759521484375,
0.03656005859375,
0.018829345703125,
0.0097503662109375,
0.05853271484375,
0.0804443359375,
0.0291748046875,
0.040191650390625,
-0.08367919921875,
0.01318359375,
0.00787353515625,
0.044708251953125,
-0.054718017578125,
-0.033599853515625,
0.024200439453125,
0.020538330078125,
-0.004535675048828125,
0.026275634765625,
-0.0024242401123046875,
0.03076171875,
-0.01393890380859375,
0.0300750732421875,
0.0139923095703125,
-0.07012939453125,
-0.018646240234375,
0.039886474609375,
-0.024200439453125,
-0.02252197265625,
-0.0228271484375,
-0.03790283203125,
0.02154541015625,
0.01114654541015625,
0.008392333984375,
-0.006374359130859375,
-0.0009250640869140625,
-0.0263519287109375,
-0.009552001953125,
0.0077667236328125
] |
f5e4bfd40d3cca52e2fbeeac6b36128cb5baad81
|
Wordpress Stackexchange
Q: How to display posts by current user/author in a custom page template? I am a trying to create a dashboard like custom page template that list post of of the current logged in user. I've tried to find a solution on the net. but none were appropriate
A: this should work for you:
if ( is_user_logged_in() ):
global $current_user;
wp_get_current_user();
$author_query = array('posts_per_page' => '-1','author' => $current_user->ID);
$author_posts = new WP_Query($author_query);
while($author_posts->have_posts()) : $author_posts->the_post();
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<?php
endwhile;
else :
echo "not logged in";
endif;
|
Q: How to display posts by current user/author in a custom page template? I am a trying to create a dashboard like custom page template that list post of of the current logged in user. I've tried to find a solution on the net. but none were appropriate
A: this should work for you:
if ( is_user_logged_in() ):
global $current_user;
wp_get_current_user();
$author_query = array('posts_per_page' => '-1','author' => $current_user->ID);
$author_posts = new WP_Query($author_query);
while($author_posts->have_posts()) : $author_posts->the_post();
?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
<?php
endwhile;
else :
echo "not logged in";
endif;
A: To include custom post time in the $author_query array, add another key=>value element to $author_query array.
Example:
$author_query = array(
'posts_per_page' => '-1',
'author' => $current_user->ID,
'post_type'=>'your custom post type name'
);
|
wordpress
|
{
"language": "en",
"length": 127,
"provenance": "stackexchange_00019.jsonl.gz:411578",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23829"
}
|
[
0.06201171875,
0.01416778564453125,
0.004756927490234375,
-0.035430908203125,
0.016693115234375,
-0.020111083984375,
0.034149169921875,
-0.023468017578125,
-0.00832366943359375,
0.03912353515625,
-0.01264190673828125,
0.01143646240234375,
-0.024017333984375,
-0.005035400390625,
-0.0219573974609375,
-0.0338134765625,
0.0195159912109375,
-0.0203399658203125,
0.042633056640625,
0.00041675567626953125,
0.0161895751953125,
0.00514984130859375,
0.044586181640625,
-0.0038299560546875,
0.032989501953125,
-0.0200347900390625,
0.052215576171875,
-0.0144195556640625,
0.0263671875,
-0.0201263427734375,
0.025421142578125,
-0.0250244140625,
-0.0119476318359375,
0.042633056640625,
-0.01515960693359375,
0.0180816650390625,
-0.016876220703125,
0.035491943359375,
0.035736083984375,
0.006999969482421875,
0.0118408203125,
-0.002674102783203125,
-0.02984619140625,
0.0032062530517578125,
-0.028228759765625,
-0.0298004150390625,
0.00879669189453125,
-0.0172882080078125,
0.03399658203125,
0.042205810546875,
-0.0025234222412109375,
0.006282806396484375,
-0.004436492919921875,
0.0014753341674804688,
-0.0284271240234375,
-0.0266571044921875,
0.01189422607421875,
-0.007904052734375,
0.057342529296875,
-0.06121826171875,
-0.045928955078125,
-0.040130615234375,
0.0491943359375,
0.0033092498779296875,
0.00768280029296875,
0.00858306884765625,
0.035186767578125,
0.0304412841796875,
0.006237030029296875,
-0.0225677490234375,
-0.02264404296875,
-0.0005307197570800781,
-0.009521484375,
0.004451751708984375,
-0.0419921875,
-0.03289794921875,
0.01143646240234375,
-0.044342041015625,
-0.006420135498046875,
0.0186920166015625,
-0.04388427734375,
0.025604248046875,
-0.04254150390625,
-0.01320648193359375,
-0.00963592529296875,
0.014404296875,
-0.03265380859375,
-0.008544921875,
-0.0150299072265625,
0.0036830902099609375,
-0.017333984375,
0.01035308837890625,
-0.007503509521484375,
0.016510009765625,
-0.023223876953125,
-0.0179290771484375,
0.03741455078125,
0.09259033203125,
-0.035369873046875,
-0.02093505859375,
-0.045654296875,
0.0038089752197265625,
-0.032501220703125,
-0.032684326171875,
0.003223419189453125,
0.056976318359375,
0.003002166748046875,
0.0279083251953125,
0.031097412109375,
0.0266876220703125,
0.0295867919921875,
-0.0267333984375,
-0.01200103759765625,
-0.031005859375,
-0.031280517578125,
0.04888916015625,
-0.001308441162109375,
-0.035797119140625,
0.00409698486328125,
-0.006946563720703125,
-0.016326904296875,
0.0162200927734375,
-0.0033245086669921875,
-0.01343536376953125,
0.0214385986328125,
0.00449371337890625,
-0.01262664794921875,
-0.0182342529296875,
0.01026153564453125,
0.0264892578125,
-0.045806884765625,
-0.00440216064453125,
0.07550048828125,
0.03179931640625,
0.0170135498046875,
-0.039764404296875,
0.00792694091796875,
-0.040618896484375,
-0.0061798095703125,
0.00785064697265625,
-0.023651123046875,
-0.0265045166015625,
0.01073455810546875,
-0.0267181396484375,
0.003345489501953125,
0.0382080078125,
0.013916015625,
0.0113525390625,
-0.01006317138671875,
-0.056549072265625,
0.01690673828125,
-0.006832122802734375,
-0.015594482421875,
0.008087158203125,
0.0810546875,
0.0045318603515625,
0.0254058837890625,
-0.01194000244140625,
0.0257568359375,
0.03436279296875,
0.048095703125,
0.0034770965576171875,
-0.00556182861328125,
-0.0202789306640625,
-0.02935791015625,
-0.0182342529296875,
-0.055023193359375,
0.01105499267578125,
0.0264892578125,
-0.01364898681640625,
0.021942138671875,
-0.017181396484375,
0.043365478515625,
0.03228759765625,
0.00595855712890625,
0.01541900634765625,
-0.042877197265625,
0.03472900390625,
0.02593994140625,
0.0215301513671875,
0.01319122314453125,
-0.0284271240234375,
0.0007395744323730469,
0.0178680419921875,
-0.037506103515625,
0.0168304443359375,
0.00963592529296875,
0.034027099609375,
0.0096893310546875,
0.008880615234375,
0.03497314453125,
0.0233001708984375,
-0.038177490234375,
0.027557373046875,
-0.00635528564453125,
-0.0288848876953125,
-0.017852783203125,
-0.006496429443359375,
-0.014678955078125,
0.01464080810546875,
0.0223236083984375,
0.002323150634765625,
0.001781463623046875,
-0.0107269287109375,
-0.06689453125,
0.02069091796875,
-0.02423095703125,
0.036163330078125,
0.023773193359375,
-0.01544189453125,
0.01395416259765625,
-0.003795623779296875,
-0.0155487060546875,
-0.03106689453125,
-0.06317138671875,
0.0097808837890625,
0.0093536376953125,
0.01461029052734375,
0.01094818115234375,
0.0106201171875,
0.0218353271484375,
-0.0030879974365234375,
-0.0017957687377929688,
0.03265380859375,
0.06500244140625,
-0.01404571533203125,
-0.0218048095703125,
-0.035675048828125,
0.005580902099609375,
0.00698089599609375,
-0.053466796875,
0.0275115966796875,
-0.0154876708984375,
0.01117706298828125,
-0.038909912109375,
-0.0066375732421875,
0.00272369384765625,
0.029205322265625,
0.01126861572265625,
0.0187835693359375,
0.0172882080078125,
0.01059722900390625,
0.0135955810546875,
0.040130615234375,
0.055267333984375,
-0.007053375244140625,
0.0172119140625,
-0.0054779052734375,
0.0227508544921875,
0.045867919921875,
0.00052642822265625,
-0.0008821487426757812,
0.0181884765625,
-0.04998779296875,
0.029449462890625,
0.042236328125,
-0.0111083984375,
0.04376220703125,
-0.0479736328125,
-0.00196075439453125,
-0.014434814453125,
-0.0079193115234375,
0.0181427001953125,
-0.02679443359375,
-0.0086822509765625,
-0.00171661376953125,
0.01496124267578125,
0.0009570121765136719,
-0.0411376953125,
-0.0281829833984375,
0.0249481201171875,
0.039520263671875,
0.01224517822265625,
0.00533294677734375,
-0.01450347900390625,
0.0010318756103515625,
-0.0239715576171875,
-0.0034885406494140625,
0.0217742919921875,
-0.006610870361328125,
-0.005401611328125,
-0.01103973388671875,
-0.044525146484375,
0.007099151611328125,
0.007747650146484375,
-0.04736328125,
0.005702972412109375,
0.05804443359375,
0.016510009765625,
0.006561279296875,
0.02197265625,
0.0229339599609375,
-0.032928466796875,
0.0648193359375,
-0.0288238525390625,
-0.005878448486328125,
-0.00492095947265625,
-0.09100341796875,
0.0723876953125,
-0.05279541015625,
0.056793212890625,
0.08123779296875,
0.004917144775390625,
0.04022216796875,
-0.00742340087890625,
-0.01128387451171875,
-0.01194000244140625,
0.0214385986328125,
0.01268768310546875,
-0.047943115234375,
0.049041748046875,
0.06231689453125,
0.033477783203125,
0.060150146484375,
-0.0179290771484375,
-0.02935791015625,
-0.017486572265625,
0.036712646484375,
-0.05157470703125,
-0.058349609375,
0.0089569091796875,
-0.08917236328125,
-0.0074310302734375,
-0.054901123046875,
-0.04998779296875,
0.01042938232421875,
-0.0135498046875,
-0.002140045166015625,
-0.01238250732421875,
-0.0224761962890625,
-0.053680419921875,
-0.05645751953125,
-0.06488037109375,
0.0029392242431640625,
-0.008544921875,
-0.001552581787109375,
0.0036773681640625,
0.01641845703125,
-0.01143646240234375,
-0.0758056640625,
-0.0239715576171875,
0.00574493408203125,
-0.01418304443359375,
-0.0005483627319335938,
-0.010498046875,
0.037322998046875,
0.0208740234375,
0.0168914794921875,
-0.0149993896484375,
0.0196380615234375,
-0.0264739990234375,
-0.0299835205078125,
-0.01068115234375,
-0.0263824462890625,
0.0179290771484375,
0.00896453857421875,
0.00910186767578125,
0.0197601318359375,
0.0455322265625,
-0.02825927734375,
-0.0181427001953125,
-0.03485107421875,
-0.05865478515625,
0.0281982421875,
0.0302734375,
-0.0010728836059570312,
-0.02972412109375,
0.00101470947265625,
0.01227569580078125,
0.0164794921875,
-0.02301025390625,
0.0131988525390625,
0.019775390625,
0.01739501953125,
0.031097412109375,
0.0126953125,
-0.0168914794921875,
-0.0305023193359375,
0.013580322265625,
-0.02093505859375,
0.00168609619140625,
-0.0248260498046875,
0.01024627685546875,
-0.03436279296875,
-0.058013916015625,
0.07666015625,
0.0272369384765625,
-0.01131439208984375,
-0.01372528076171875,
-0.04925537109375,
0.02197265625,
0.10821533203125,
-0.033782958984375,
-0.003002166748046875,
0.03857421875,
0.00860595703125,
-0.048797607421875,
-0.00299835205078125,
-0.096435546875,
-0.0065155029296875,
-0.05419921875,
-0.0037441253662109375,
-0.005084991455078125,
-0.0230255126953125,
-0.01611328125,
0.0251007080078125,
-0.04132080078125,
-0.02191162109375,
0.00905609130859375,
-0.00036263465881347656,
0.0008063316345214844,
0.0095367431640625,
-0.03564453125,
0.008758544921875,
0.00872802734375,
-0.03814697265625,
-0.06695556640625,
-0.02685546875,
-0.0254364013671875,
0.07537841796875,
0.021942138671875,
-0.01910400390625,
-0.0233306884765625,
0.043609619140625,
0.0066986083984375,
0.018218994140625,
0.01291656494140625,
-0.0032787322998046875,
0.052215576171875,
-0.0196075439453125,
-0.004596710205078125,
-0.0191802978515625,
0.006984710693359375,
-0.0031585693359375,
-0.003124237060546875,
-0.0157928466796875,
-0.0625,
-0.047943115234375,
-0.03192138671875,
-0.0247802734375,
-0.0531005859375,
-0.0265350341796875,
0.0194549560546875,
0.04595947265625,
0.0038623809814453125,
0.0175018310546875,
-0.030181884765625,
-0.06341552734375,
0.0416259765625,
0.0231781005859375,
-0.0137939453125,
0.0048370361328125,
0.06414794921875,
0.0234832763671875,
-0.0188751220703125,
-0.017181396484375,
0.0003743171691894531,
0.03076171875,
-0.02227783203125,
0.0266571044921875,
0.0240478515625,
-0.0255279541015625,
0.0099334716796875,
0.00118255615234375,
-0.00720977783203125,
-0.0224609375,
0.04644775390625,
-0.01324462890625,
-0.031280517578125,
0.035675048828125,
-0.0213775634765625,
0.0106201171875,
-0.0036792755126953125,
-0.02532958984375,
0.0037021636962890625,
0.01305389404296875,
0.040771484375,
-0.0211181640625,
0.011260986328125,
-0.041778564453125,
-0.051971435546875,
0.01395416259765625,
-0.005962371826171875,
0.0182647705078125,
0.0195159912109375,
-0.0015821456909179688,
0.0225372314453125,
-0.01233673095703125,
-0.01157379150390625,
-0.0089111328125,
-0.017120361328125,
0.0201263427734375,
0.0108489990234375,
0.0006022453308105469,
-0.010711669921875,
0.0098876953125,
-0.020965576171875,
0.08843994140625,
0.01087188720703125,
-0.06402587890625,
0.037261962890625,
-0.0267333984375,
0.0237274169921875,
0.0247650146484375,
-0.010711669921875,
0.07098388671875,
0.041290283203125,
-0.01381683349609375,
-0.01360321044921875,
-0.026336669921875,
-0.005466461181640625,
-0.051025390625,
-0.01415252685546875,
-0.004703521728515625,
0.0048065185546875,
-0.0274505615234375,
0.09490966796875,
0.0154876708984375,
0.027801513671875,
-0.033203125,
0.030792236328125,
0.0158538818359375,
0.0236358642578125,
0.0208587646484375,
-0.00012040138244628906,
-0.0005464553833007812,
0.001865386962890625,
-0.00945281982421875,
-0.037811279296875,
0.004978179931640625,
-0.006359100341796875,
0.033111572265625,
0.01439666748046875,
-0.0225067138671875,
0.02984619140625,
-0.034332275390625,
-0.0016717910766601562,
0.04302978515625,
0.0012884140014648438,
-0.057159423828125,
-0.02325439453125,
0.03240966796875,
0.0340576171875,
-0.0284423828125,
-0.0134429931640625,
0.0029468536376953125,
-0.04425048828125,
0.0231170654296875,
-0.0226287841796875,
0.0169525146484375,
-0.00701141357421875,
-0.0128936767578125,
-0.050689697265625,
-0.0200958251953125,
0.04296875,
-0.041595458984375,
-0.00940704345703125,
-0.02642822265625,
-0.030426025390625,
0.03985595703125,
0.007259368896484375,
0.018707275390625,
-0.056427001953125,
0.00568389892578125,
0.002124786376953125,
-0.0155487060546875,
0.0672607421875,
0.01708984375,
-0.051025390625,
0.01372528076171875,
-0.044189453125,
0.0009388923645019531,
-0.004886627197265625,
-0.03369140625,
-0.031463623046875,
-0.02374267578125,
0.045196533203125,
0.022308349609375,
0.016876220703125,
-0.036041259765625,
-0.0251312255859375,
-0.00812530517578125,
0.0215301513671875,
0.044403076171875,
0.0249481201171875,
0.09552001953125,
-0.01096343994140625,
0.0634765625,
0.0416259765625,
0.07672119140625,
-0.054718017578125,
-0.034912109375,
0.0266265869140625,
-0.0171966552734375,
-0.0311431884765625,
-0.0195770263671875,
-0.0214996337890625,
-0.005649566650390625,
0.041748046875,
-0.01047515869140625,
-0.019989013671875,
-0.003124237060546875,
0.0175628662109375,
-0.0048675537109375,
-0.0196533203125,
0.03857421875,
-0.046600341796875,
0.030731201171875,
0.0183868408203125,
-0.003040313720703125,
0.00016677379608154297,
-0.03216552734375,
-0.0159454345703125,
0.0419921875,
-0.0257720947265625,
-0.0200653076171875,
-0.03704833984375,
0.079345703125,
0.096923828125,
0.00885009765625,
0.049560546875,
0.048553466796875,
0.018890380859375,
-0.005939483642578125,
-0.006046295166015625,
-0.00740814208984375,
0.00525665283203125,
0.050689697265625,
0.00933074951171875,
-0.0142822265625,
0.024932861328125,
-0.0294647216796875,
-0.00495147705078125,
0.05078125,
0.0390625,
-0.0711669921875,
0.006702423095703125,
0.001499176025390625,
0.00710296630859375,
0.0225372314453125,
-0.002777099609375,
0.0011053085327148438,
-0.01546478271484375,
0.054534912109375,
-0.0167694091796875,
-0.0010728836059570312,
0.0262298583984375,
-0.02447509765625,
0.00679779052734375,
-0.034210205078125,
0.05224609375,
-0.0098114013671875,
-0.01120758056640625,
-0.02105712890625,
0.00545501708984375,
-0.014678955078125,
-0.024993896484375,
0.0009174346923828125,
0.00341796875,
0.0227508544921875,
-0.031402587890625,
0.050048828125,
-0.0628662109375,
0.03460693359375,
0.0333251953125,
0.0249786376953125,
0.0189056396484375,
0.0362548828125,
0.0036563873291015625,
0.0277099609375,
0.01129913330078125,
-0.012542724609375,
0.0208892822265625,
-0.0391845703125,
-0.01154327392578125,
0.05609130859375,
-0.051422119140625,
0.0163421630859375,
0.01177215576171875,
-0.003292083740234375,
-0.0127105712890625,
-0.017608642578125,
0.103759765625,
-0.0254058837890625,
-0.036285400390625,
0.014007568359375,
0.01033782958984375,
-0.0186767578125,
0.0174560546875,
0.00498199462890625,
-0.06793212890625,
-0.039337158203125,
0.01235198974609375,
-0.030609130859375,
0.01496124267578125,
0.014129638671875,
-0.07794189453125,
0.0726318359375,
0.0039215087890625,
0.052093505859375,
-0.0021800994873046875,
0.0161590576171875,
-0.00189971923828125,
-0.00885009765625,
-0.0360107421875,
0.070556640625,
0.017822265625,
0.06854248046875,
-0.0704345703125,
-0.0238800048828125,
0.0247039794921875,
0.05731201171875,
0.052734375,
0.01529693603515625,
-0.0236053466796875,
-0.035858154296875,
-0.034637451171875,
-0.019012451171875,
-0.050933837890625,
0.072265625,
0.00673675537109375,
0.0394287109375,
-0.0011043548583984375,
-0.0244903564453125,
0.0384521484375,
-0.0233306884765625,
-0.053436279296875,
0.037109375,
0.0159759521484375,
0.013275146484375,
-0.029144287109375,
-0.0022792816162109375,
-0.044891357421875,
-0.01384735107421875,
0.038330078125,
-0.030517578125,
0.0161285400390625,
0.043853759765625,
0.06109619140625,
-0.04547119140625,
-0.033782958984375,
-0.0229034423828125,
0.0487060546875,
0.0251312255859375,
0.007640838623046875,
0.0088958740234375,
0.024749755859375,
-0.048736572265625,
-0.0116424560546875,
0.01398468017578125,
0.028289794921875,
-0.043426513671875,
0.059967041015625,
0.027801513671875,
0.0201263427734375,
-0.0406494140625,
0.01202392578125,
0.045379638671875,
0.0789794921875,
-0.051055908203125,
-0.02618408203125,
0.0174102783203125,
0.005207061767578125,
-0.0020656585693359375,
0.0249481201171875,
0.0212554931640625,
0.028717041015625,
0.037384033203125,
-0.03680419921875,
-0.0217437744140625,
-0.0094757080078125,
0.03466796875,
-0.010284423828125,
-0.0212860107421875,
-0.0099639892578125,
-0.027740478515625,
-0.02703857421875,
-0.042083740234375,
0.00968170166015625,
0.020050048828125,
0.055572509765625,
-0.0164794921875,
0.017822265625,
-0.01483154296875,
0.00794219970703125,
-0.0219268798828125,
-0.01898193359375,
0.006374359130859375,
-0.0254364013671875,
-0.006122589111328125,
-0.0099945068359375,
0.035919189453125,
0.0091552734375,
-0.02874755859375,
-0.0018415451049804688,
-0.00988006591796875,
-0.035308837890625,
-0.0227203369140625,
-0.0004153251647949219,
-0.01739501953125,
-0.007080078125,
-0.01393890380859375,
-0.005428314208984375,
0.0006012916564941406,
-0.0175018310546875,
0.0105133056640625,
0.028228759765625,
0.010650634765625,
-0.039581298828125,
0.03924560546875,
-0.002460479736328125,
-0.02294921875,
0.0178375244140625,
-0.00809478759765625,
0.049407958984375,
-0.0166778564453125,
-0.06951904296875,
0.0172271728515625,
-0.0718994140625,
-0.06866455078125,
0.0313720703125,
0.033416748046875,
-0.005245208740234375,
-0.0025539398193359375,
0.0161895751953125,
0.0135498046875,
-0.014678955078125,
-0.0276947021484375,
0.04681396484375,
0.0235748291015625,
0.007389068603515625,
0.036865234375,
-0.043243408203125,
-0.03082275390625,
-0.0214996337890625,
0.038116455078125,
0.0152740478515625,
0.03271484375,
-0.0004360675811767578,
0.025054931640625,
-0.040679931640625,
0.05267333984375,
-0.08489990234375,
-0.054168701171875,
0.08843994140625,
-0.03460693359375,
-0.036834716796875,
0.0081024169921875,
-0.08062744140625,
0.04449462890625,
-0.0012073516845703125,
0.0215911865234375,
0.043670654296875,
-0.01776123046875,
0.01045989990234375,
0.00751495361328125,
-0.0350341796875,
-0.0372314453125,
-0.03643798828125,
-0.0338134765625,
0.00018107891082763672,
0.002582550048828125,
-0.0178070068359375,
-0.02972412109375,
0.029052734375,
-0.019927978515625,
-0.052093505859375,
0.0013475418090820312,
-0.0287933349609375,
0.0012960433959960938,
0.025543212890625,
0.00794219970703125,
-0.0166473388671875,
-0.0016355514526367188,
-0.01800537109375,
0.021240234375,
-0.0015439987182617188,
0.01216888427734375,
0.01032257080078125,
-0.03448486328125,
0.0262298583984375,
-0.00762176513671875,
0.045654296875,
-0.00940704345703125,
-0.00007921457290649414,
-0.01267242431640625,
0.0095367431640625,
0.0005679130554199219,
-0.0311279296875,
-0.037353515625,
-0.035430908203125,
0.0019989013671875,
0.0220947265625,
-0.006351470947265625,
-0.035675048828125,
-0.072509765625,
-0.00946044921875,
0.0083465576171875,
-0.015625,
-0.01090240478515625,
0.010009765625,
-0.0211944580078125,
0.01197052001953125,
-0.028900146484375,
-0.05322265625,
0.0294952392578125,
0.0645751953125,
-0.0014820098876953125,
0.062347412109375,
-0.01511383056640625,
-0.093994140625,
0.02960205078125,
0.00617218017578125,
0.036529541015625,
0.005825042724609375,
-0.0235137939453125,
0.01434326171875,
-0.0245819091796875,
0.0657958984375,
-0.0241546630859375,
-0.00004184246063232422,
0.013702392578125,
-0.00299072265625,
-0.021728515625,
-0.043853759765625,
0.029998779296875,
-0.043121337890625,
-0.032745361328125,
-0.0010986328125,
0.00982666015625,
0.033721923828125,
-0.0143280029296875,
-0.031646728515625,
0.06463623046875,
-0.00768280029296875,
-0.0360107421875,
-0.02447509765625,
0.036834716796875,
-0.0121002197265625,
-0.0126800537109375,
0.00952911376953125,
-0.059173583984375,
0.0083465576171875,
0.0169677734375,
0.032501220703125,
-0.0149383544921875,
0.07403564453125,
0.0014438629150390625,
-0.06829833984375,
-0.0171356201171875,
-0.03912353515625,
0.0067596435546875,
0.00556182861328125,
0.001911163330078125,
0.005084991455078125,
0.0261077880859375,
-0.041229248046875,
0.0035839080810546875,
-0.0224456787109375,
0.028839111328125,
-0.0305328369140625,
-0.0308380126953125,
0.01137542724609375,
-0.0056610107421875,
0.027801513671875,
0.0230255126953125,
-0.0010318756103515625,
-0.01203155517578125,
-0.01294708251953125,
-0.0367431640625,
-0.034423828125,
0.0015039443969726562,
0.0171966552734375,
-0.05316162109375,
0.01123809814453125,
0.012176513671875,
-0.0352783203125,
-0.021453857421875,
-0.002338409423828125,
-0.06353759765625,
0.005191802978515625,
-0.0293426513671875,
0.0072174072265625,
-0.03704833984375,
0.0115203857421875,
0.021148681640625,
-0.02276611328125,
-0.0089874267578125,
-0.0006313323974609375,
-0.00858306884765625,
-0.0019588470458984375,
-0.01178741455078125,
-0.00830841064453125,
0.0075836181640625,
-0.02923583984375,
0.0034275054931640625,
0.0073699951171875,
0.0304107666015625,
-0.0159759521484375,
-0.0028839111328125,
-0.0323486328125,
0.033172607421875,
-0.00783538818359375,
0.0184173583984375,
0.003513336181640625,
0.043304443359375,
0.0168914794921875,
0.0782470703125,
0.001491546630859375,
-0.01220703125,
-0.01824951171875,
0.031982421875,
-0.010833740234375,
-0.0162506103515625,
-0.006793975830078125,
-0.0174407958984375,
-0.00800323486328125,
-0.023040771484375,
0.0031147003173828125,
-0.041229248046875,
0.03173828125,
0.0014324188232421875,
-0.004810333251953125,
0.033355712890625
] |
0cbbc0663c637c5c574d5595a3a915a7782ff8bb
|
Wordpress Stackexchange
Q: Can i copy administrator role to another user? can i copy the role of administrator to another user and remove few capabilities not required ?. Basically, i want to have a user with restricted admin privileges.
A: Give this plugin a try - http://wordpress.org/extend/plugins/user-role-editor/
|
Q: Can i copy administrator role to another user? can i copy the role of administrator to another user and remove few capabilities not required ?. Basically, i want to have a user with restricted admin privileges.
A: Give this plugin a try - http://wordpress.org/extend/plugins/user-role-editor/
A: To inspect what's attached to a current user, you can use my Current User Deamon Plugin. (There's also a version at the repo, but that's a little outdated.)
Then read a little into Roles & Capabilites in the Codex to get a feeling for what's happening.
Then use the add_cap() function to add single capabilites or play with the role objects (use the data, the plugin shows you) to move capabilities between roles).
Basically it's only a) retrieving the roles, b) grabbing the capabilites and c) add a new role (ex. restricted-admin) object that d) get's the reduced capabilities.
|
wordpress
|
{
"language": "en",
"length": 145,
"provenance": "stackexchange_00019.jsonl.gz:411625",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23980"
}
|
[
0.0623779296875,
-0.013458251953125,
0.03948974609375,
-0.005764007568359375,
0.006557464599609375,
-0.014007568359375,
0.044219970703125,
-0.043487548828125,
-0.020538330078125,
0.03472900390625,
0.043182373046875,
-0.00260162353515625,
0.01073455810546875,
-0.04119873046875,
-0.000705718994140625,
-0.003509521484375,
-0.00739288330078125,
0.02685546875,
-0.0172271728515625,
-0.040985107421875,
0.0087127685546875,
-0.0465087890625,
-0.0073089599609375,
0.061370849609375,
0.0228271484375,
0.0234832763671875,
-0.0267333984375,
0.006069183349609375,
-0.0196990966796875,
0.0002796649932861328,
0.01088714599609375,
-0.01041412353515625,
-0.0024204254150390625,
0.01192474365234375,
0.0173492431640625,
-0.006801605224609375,
-0.00872039794921875,
0.021392822265625,
0.0301666259765625,
-0.023468017578125,
0.0218658447265625,
0.0030384063720703125,
0.00960540771484375,
0.051239013671875,
-0.021514892578125,
-0.07403564453125,
0.0367431640625,
-0.030029296875,
0.02496337890625,
-0.041229248046875,
0.01800537109375,
-0.006450653076171875,
0.0310821533203125,
0.01132965087890625,
-0.0142822265625,
0.00745391845703125,
0.0421142578125,
0.0044403076171875,
0.0287017822265625,
-0.041046142578125,
-0.046356201171875,
0.00919342041015625,
0.025238037109375,
-0.0007114410400390625,
0.01099395751953125,
0.0010433197021484375,
-0.011962890625,
0.02056884765625,
-0.03765869140625,
0.006683349609375,
0.023468017578125,
-0.045257568359375,
0.00235748291015625,
0.001194000244140625,
-0.0114898681640625,
-0.0119476318359375,
-0.017486572265625,
-0.013580322265625,
0.03814697265625,
0.00922393798828125,
-0.01885986328125,
0.00032210350036621094,
0.01009368896484375,
-0.0079803466796875,
-0.024261474609375,
-0.0016527175903320312,
-0.020721435546875,
-0.0026721954345703125,
0.01204681396484375,
0.002017974853515625,
-0.004405975341796875,
0.0015611648559570312,
0.0035800933837890625,
0.0298614501953125,
-0.01239013671875,
-0.01256561279296875,
0.0305633544921875,
0.0380859375,
0.00897216796875,
0.002063751220703125,
-0.0034160614013671875,
-0.0299835205078125,
-0.0109710693359375,
-0.01210784912109375,
-0.005619049072265625,
-0.01399993896484375,
0.01413726806640625,
0.004058837890625,
0.007183074951171875,
0.0256500244140625,
-0.04266357421875,
0.037994384765625,
-0.01270294189453125,
-0.0227508544921875,
0.007709503173828125,
0.01788330078125,
-0.035369873046875,
0.030303955078125,
-0.00873565673828125,
0.0259857177734375,
-0.0171661376953125,
0.0003845691680908203,
0.001956939697265625,
-0.0100250244140625,
-0.012786865234375,
-0.01904296875,
-0.01049041748046875,
0.0018157958984375,
0.006500244140625,
0.0046844482421875,
-0.01529693603515625,
0.022186279296875,
0.0268096923828125,
0.0225372314453125,
-0.0015726089477539062,
0.00859832763671875,
0.017730712890625,
0.01216888427734375,
0.00946044921875,
0.0009140968322753906,
0.02386474609375,
-0.0214691162109375,
-0.01534271240234375,
0.03277587890625,
-0.016265869140625,
0.005542755126953125,
0.005523681640625,
0.02752685546875,
0.006427764892578125,
-0.0212249755859375,
-0.0177764892578125,
-0.0218505859375,
-0.0243682861328125,
0.0019741058349609375,
0.0908203125,
-0.039520263671875,
0.00934600830078125,
-0.0193328857421875,
0.0682373046875,
0.0252838134765625,
0.020904541015625,
0.0221405029296875,
0.03680419921875,
0.03338623046875,
0.0022792816162109375,
-0.02838134765625,
-0.029327392578125,
-0.0044708251953125,
0.0243988037109375,
-0.0258331298828125,
0.0245513916015625,
-0.035400390625,
0.0179901123046875,
0.0098876953125,
0.008819580078125,
0.059722900390625,
0.0227813720703125,
-0.0335693359375,
-0.00844573974609375,
0.0302276611328125,
-0.004611968994140625,
-0.0239410400390625,
-0.0171051025390625,
0.0108642578125,
-0.00160980224609375,
-0.05340576171875,
-0.001880645751953125,
-0.032379150390625,
0.037200927734375,
0.0158233642578125,
-0.0028438568115234375,
0.0067901611328125,
0.018035888671875,
-0.01194000244140625,
-0.0307159423828125,
-0.038238525390625,
0.048980712890625,
0.0143280029296875,
-0.0169525146484375,
0.02008056640625,
0.055572509765625,
-0.00817108154296875,
-0.002407073974609375,
-0.01526641845703125,
-0.06951904296875,
-0.0204620361328125,
-0.01262664794921875,
0.00818634033203125,
0.032318115234375,
0.00978851318359375,
-0.00960540771484375,
0.00029468536376953125,
-0.0019283294677734375,
-0.0601806640625,
-0.044921875,
0.01226806640625,
-0.0259552001953125,
0.04571533203125,
0.01474761962890625,
0.0179901123046875,
0.034332275390625,
-0.04266357421875,
0.034210205078125,
-0.01496124267578125,
-0.019805908203125,
-0.026824951171875,
0.004657745361328125,
-0.004360198974609375,
-0.0055694580078125,
0.01568603515625,
0.0263519287109375,
-0.0186767578125,
0.047882080078125,
0.01519775390625,
-0.006175994873046875,
0.004825592041015625,
0.01129150390625,
-0.095947265625,
-0.003627777099609375,
0.054473876953125,
0.0220184326171875,
0.043548583984375,
-0.0193939208984375,
0.01202392578125,
0.039520263671875,
-0.06658935546875,
0.001483917236328125,
0.01116943359375,
-0.0227813720703125,
0.04547119140625,
0.02398681640625,
0.034515380859375,
0.0103759765625,
0.0088958740234375,
-0.02362060546875,
0.032745361328125,
-0.01108551025390625,
0.0267333984375,
-0.0161285400390625,
0.00196075439453125,
-0.015594482421875,
-0.0215606689453125,
0.0006685256958007812,
-0.02032470703125,
-0.02593994140625,
0.0009546279907226562,
-0.0014982223510742188,
0.008544921875,
-0.025177001953125,
-0.019561767578125,
0.038604736328125,
0.06219482421875,
0.0120849609375,
0.01007843017578125,
0.00319671630859375,
0.040618896484375,
-0.0364990234375,
-0.00797271728515625,
0.034576416015625,
0.0233154296875,
0.01094818115234375,
0.03173828125,
-0.0027790069580078125,
-0.01433563232421875,
-0.0000870823860168457,
0.003780364990234375,
0.0012493133544921875,
0.014617919921875,
-0.00896453857421875,
-0.0435791015625,
-0.0027637481689453125,
-0.01271820068359375,
-0.04705810546875,
0.038848876953125,
-0.00579833984375,
-0.036041259765625,
-0.00858306884765625,
-0.054046630859375,
0.0302581787109375,
-0.0355224609375,
0.027923583984375,
0.06951904296875,
0.0154571533203125,
-0.0094146728515625,
0.00896453857421875,
-0.02362060546875,
0.0117950439453125,
0.025238037109375,
0.01165008544921875,
-0.0167236328125,
-0.02783203125,
0.03521728515625,
0.0264892578125,
0.0186614990234375,
0.007526397705078125,
-0.0219879150390625,
-0.0159149169921875,
0.028106689453125,
-0.01666259765625,
0.00592803955078125,
-0.04315185546875,
-0.03448486328125,
-0.0241546630859375,
0.043426513671875,
-0.0216064453125,
0.013946533203125,
0.07061767578125,
0.011688232421875,
0.0252838134765625,
-0.017974853515625,
-0.0040740966796875,
0.00638580322265625,
-0.031982421875,
-0.008880615234375,
0.00481414794921875,
0.0006489753723144531,
0.0021209716796875,
0.06512451171875,
-0.007396697998046875,
-0.07135009765625,
-0.045013427734375,
0.0291748046875,
-0.004375457763671875,
-0.004070281982421875,
0.0223846435546875,
-0.018951416015625,
0.0036907196044921875,
0.0224609375,
0.01392364501953125,
0.01102447509765625,
-0.022308349609375,
-0.036773681640625,
0.0021572113037109375,
0.009368896484375,
0.039154052734375,
-0.018890380859375,
-0.032135009765625,
0.04571533203125,
0.0301971435546875,
-0.006122589111328125,
-0.0027103424072265625,
0.00005888938903808594,
-0.045074462890625,
0.007762908935546875,
0.0157623291015625,
-0.01264190673828125,
0.01276397705078125,
-0.0219879150390625,
0.031585693359375,
0.034820556640625,
-0.0548095703125,
0.028472900390625,
-0.0136260986328125,
0.0088043212890625,
0.0282440185546875,
0.0252532958984375,
-0.032501220703125,
-0.05426025390625,
0.04656982421875,
-0.02642822265625,
-0.0019063949584960938,
0.0006890296936035156,
0.034912109375,
0.03472900390625,
-0.0870361328125,
0.0545654296875,
-0.03741455078125,
0.018463134765625,
-0.07061767578125,
-0.0418701171875,
-0.00959014892578125,
0.1444091796875,
-0.0369873046875,
-0.02020263671875,
0.027862548828125,
-0.004390716552734375,
-0.006282806396484375,
0.052520751953125,
-0.07940673828125,
-0.0322265625,
0.00925445556640625,
-0.0179290771484375,
-0.01055908203125,
0.01250457763671875,
-0.03240966796875,
0.0306396484375,
0.0008902549743652344,
-0.005313873291015625,
0.02874755859375,
-0.0772705078125,
0.004947662353515625,
-0.005687713623046875,
0.0189361572265625,
-0.05487060546875,
-0.016326904296875,
-0.035980224609375,
-0.0826416015625,
-0.02081298828125,
-0.032745361328125,
0.090576171875,
0.02288818359375,
0.020965576171875,
-0.027984619140625,
0.0576171875,
-0.0224761962890625,
0.0083465576171875,
-0.00815582275390625,
0.0173797607421875,
0.0197906494140625,
-0.0077667236328125,
-0.0090789794921875,
-0.0121307373046875,
-0.0193634033203125,
-0.0384521484375,
-0.00047469139099121094,
-0.042083740234375,
-0.060150146484375,
-0.043426513671875,
-0.03363037109375,
-0.0186920166015625,
-0.0557861328125,
-0.00746917724609375,
-0.0309600830078125,
-0.021240234375,
-0.0030517578125,
-0.0176544189453125,
0.00891876220703125,
-0.047454833984375,
0.014801025390625,
-0.012298583984375,
-0.020538330078125,
0.0189208984375,
0.0282440185546875,
0.01519012451171875,
0.0003383159637451172,
-0.007579803466796875,
-0.01309967041015625,
0.01324462890625,
0.00978851318359375,
0.0294647216796875,
0.0230255126953125,
0.00708770751953125,
-0.01556396484375,
-0.0165557861328125,
0.00597381591796875,
-0.033416748046875,
0.002872467041015625,
0.02020263671875,
-0.0220489501953125,
0.0249786376953125,
0.0151214599609375,
0.035797119140625,
-0.0161590576171875,
-0.0015039443969726562,
-0.00308990478515625,
-0.0181884765625,
0.03204345703125,
0.007781982421875,
0.005985260009765625,
-0.02117919921875,
-0.055023193359375,
0.02264404296875,
-0.07177734375,
-0.008392333984375,
0.01114654541015625,
-0.00803375244140625,
0.003688812255859375,
-0.01971435546875,
-0.004688262939453125,
-0.024139404296875,
-0.005847930908203125,
-0.0180816650390625,
0.034088134765625,
-0.037994384765625,
-0.00917816162109375,
-0.02301025390625,
-0.007289886474609375,
0.039459228515625,
-0.002536773681640625,
-0.051239013671875,
0.00870513916015625,
-0.0188751220703125,
0.0367431640625,
0.011871337890625,
-0.0305328369140625,
0.0078277587890625,
0.0251312255859375,
-0.0085906982421875,
0.03533935546875,
0.00019121170043945312,
-0.02130126953125,
-0.00775909423828125,
0.0099639892578125,
-0.0158538818359375,
0.0001742839813232422,
0.0161895751953125,
0.038543701171875,
-0.019622802734375,
0.028411865234375,
-0.0115814208984375,
0.0697021484375,
0.04669189453125,
-0.028656005859375,
0.000732421875,
0.051361083984375,
0.002330780029296875,
-0.051483154296875,
0.0136871337890625,
-0.0255126953125,
-0.011871337890625,
0.02105712890625,
0.0408935546875,
0.005970001220703125,
-0.003875732421875,
-0.0125579833984375,
-0.01216888427734375,
-0.00989532470703125,
0.04827880859375,
-0.01995849609375,
-0.054229736328125,
-0.0257568359375,
0.00814056396484375,
0.04315185546875,
-0.045440673828125,
0.0025157928466796875,
-0.0009584426879882812,
0.002132415771484375,
0.00797271728515625,
-0.006443023681640625,
-0.052978515625,
-0.002532958984375,
0.0267333984375,
-0.01380157470703125,
0.0017414093017578125,
-0.00435638427734375,
0.00769805908203125,
-0.016876220703125,
-0.0126495361328125,
-0.02288818359375,
0.039825439453125,
-0.02685546875,
0.0038280487060546875,
-0.033203125,
0.02789306640625,
-0.09625244140625,
-0.00434112548828125,
0.058837890625,
0.04412841796875,
-0.047515869140625,
-0.0188751220703125,
-0.057220458984375,
-0.00798797607421875,
-0.052642822265625,
-0.034088134765625,
-0.026092529296875,
0.0139007568359375,
0.0230865478515625,
0.0127410888671875,
0.0229949951171875,
-0.002170562744140625,
-0.0104522705078125,
0.02484130859375,
0.028228759765625,
0.033203125,
-0.0225830078125,
0.039581298828125,
0.0032672882080078125,
0.039031982421875,
0.00443267822265625,
-0.007450103759765625,
-0.0291595458984375,
-0.0030345916748046875,
0.0017385482788085938,
-0.0234527587890625,
-0.020751953125,
-0.0290985107421875,
-0.0155181884765625,
0.01364898681640625,
0.048553466796875,
-0.005126953125,
0.00771331787109375,
-0.0200347900390625,
0.00977325439453125,
-0.034637451171875,
-0.005847930908203125,
-0.038818359375,
-0.0177001953125,
-0.0269317626953125,
-0.03485107421875,
0.029266357421875,
-0.0091705322265625,
0.00867462158203125,
0.0163421630859375,
-0.0325927734375,
0.022918701171875,
0.016754150390625,
0.008819580078125,
-0.0145416259765625,
0.037628173828125,
-0.01152801513671875,
0.0399169921875,
0.0374755859375,
0.0308990478515625,
0.038787841796875,
-0.0126953125,
0.0164031982421875,
0.00797271728515625,
-0.0008578300476074219,
-0.02288818359375,
-0.0022125244140625,
-0.02020263671875,
-0.013763427734375,
0.045867919921875,
0.0706787109375,
0.08984375,
-0.1143798828125,
0.0283203125,
-0.00014090538024902344,
-0.02777099609375,
0.04425048828125,
-0.0010652542114257812,
-0.01262664794921875,
-0.06805419921875,
0.0377197265625,
0.005889892578125,
-0.018280029296875,
-0.00081634521484375,
-0.00959014892578125,
-0.0240020751953125,
-0.01065826416015625,
0.0243988037109375,
0.046295166015625,
0.0203399658203125,
0.044647216796875,
-0.025482177734375,
0.05859375,
-0.0231781005859375,
0.0162200927734375,
0.0019207000732421875,
-0.0092620849609375,
-0.04595947265625,
0.01074981689453125,
0.01093292236328125,
-0.01561737060546875,
-0.031341552734375,
0.0056610107421875,
0.0987548828125,
0.03643798828125,
0.011627197265625,
-0.02545166015625,
0.0247344970703125,
0.01959228515625,
-0.0131072998046875,
-0.06890869140625,
0.0135345458984375,
0.0261383056640625,
-0.0015506744384765625,
0.033111572265625,
0.03656005859375,
-0.08056640625,
-0.023590087890625,
-0.0178375244140625,
0.057403564453125,
0.015655517578125,
-0.030548095703125,
0.019256591796875,
0.04534912109375,
-0.015838623046875,
0.01313018798828125,
-0.0140838623046875,
-0.037384033203125,
-0.0162811279296875,
-0.0078887939453125,
-0.0286865234375,
0.0399169921875,
0.0269775390625,
-0.06524658203125,
0.07366943359375,
0.045654296875,
0.01107025146484375,
-0.0103759765625,
0.02850341796875,
-0.04034423828125,
-0.001071929931640625,
-0.02825927734375,
0.048828125,
-0.0028934478759765625,
0.0045013427734375,
-0.00928497314453125,
0.01218414306640625,
-0.004405975341796875,
0.01186370849609375,
0.0423583984375,
0.034088134765625,
-0.043731689453125,
0.002288818359375,
0.01258087158203125,
0.0022449493408203125,
-0.0146942138671875,
0.0645751953125,
0.01580810546875,
0.038970947265625,
0.039794921875,
-0.029998779296875,
0.039276123046875,
-0.032989501953125,
-0.022705078125,
0.029083251953125,
-0.0019016265869140625,
-0.007610321044921875,
0.002960205078125,
0.02069091796875,
-0.0501708984375,
0.0009908676147460938,
0.0296630859375,
-0.048431396484375,
0.01224517822265625,
0.0019521713256835938,
0.016204833984375,
0.021087646484375,
0.062744140625,
-0.0200958251953125,
0.048736572265625,
0.006877899169921875,
0.0233154296875,
-0.005405426025390625,
0.01107025146484375,
-0.0064544677734375,
0.01088714599609375,
0.01158905029296875,
0.051300048828125,
-0.034393310546875,
-0.0092620849609375,
0.020965576171875,
0.01349639892578125,
-0.009124755859375,
0.034210205078125,
0.0253448486328125,
-0.0031414031982421875,
-0.0193328857421875,
-0.0299224853515625,
0.026123046875,
0.023681640625,
0.00588226318359375,
0.00579071044921875,
-0.00023186206817626953,
-0.0391845703125,
0.03759765625,
-0.047149658203125,
0.01110076904296875,
0.0118865966796875,
0.0187225341796875,
-0.01255035400390625,
-0.0163726806640625,
0.004871368408203125,
0.0106201171875,
0.01081085205078125,
-0.0445556640625,
-0.006893157958984375,
-0.026458740234375,
0.03387451171875,
-0.041595458984375,
0.04974365234375,
0.01971435546875,
0.01334381103515625,
0.047088623046875,
-0.00559234619140625,
-0.02734375,
-0.0195159912109375,
-0.08038330078125,
-0.01471710205078125,
0.029052734375,
-0.043487548828125,
-0.0231170654296875,
-0.01043701171875,
0.031494140625,
-0.01152801513671875,
-0.03021240234375,
0.0237579345703125,
-0.01099395751953125,
0.0794677734375,
-0.038726806640625,
0.0667724609375,
0.00331878662109375,
-0.0029354095458984375,
-0.056396484375,
-0.00951385498046875,
0.08380126953125,
0.00852203369140625,
0.0075836181640625,
0.004383087158203125,
0.007328033447265625,
-0.0036144256591796875,
-0.032806396484375,
-0.0548095703125,
-0.005619049072265625,
-0.10064697265625,
0.0023441314697265625,
-0.044403076171875,
-0.092041015625,
0.034332275390625,
0.046142578125,
-0.04693603515625,
0.0204010009765625,
-0.00897216796875,
-0.016693115234375,
0.007358551025390625,
0.012542724609375,
0.0045318603515625,
-0.0034389495849609375,
0.00598907470703125,
-0.0090484619140625,
-0.01001739501953125,
-0.017059326171875,
-0.0237274169921875,
0.053558349609375,
0.04132080078125,
0.038970947265625,
-0.03350830078125,
0.048309326171875,
-0.05126953125,
0.0245361328125,
-0.044189453125,
-0.0665283203125,
0.045013427734375,
0.04583740234375,
0.0161285400390625,
-0.009490966796875,
-0.0518798828125,
0.04351806640625,
0.0026226043701171875,
0.0172576904296875,
0.016204833984375,
0.0015459060668945312,
-0.0020732879638671875,
0.0210418701171875,
0.04290771484375,
-0.0206146240234375,
-0.0254058837890625,
-0.037628173828125,
-0.0223541259765625,
0.0221710205078125,
0.005474090576171875,
-0.00571441650390625,
0.032684326171875,
-0.0033817291259765625,
0.0086669921875,
-0.02777099609375,
0.0153961181640625,
-0.07427978515625,
0.005786895751953125,
0.0180511474609375,
-0.016937255859375,
0.0350341796875,
-0.00994873046875,
0.01507568359375,
0.0177154541015625,
0.0264434814453125,
0.026123046875,
-0.03326416015625,
-0.0198211669921875,
-0.0103912353515625,
0.040740966796875,
0.0026302337646484375,
0.0014467239379882812,
-0.0265655517578125,
0.005367279052734375,
-0.0362548828125,
-0.049163818359375,
-0.029632568359375,
-0.033782958984375,
-0.008056640625,
0.036773681640625,
-0.034759521484375,
-0.0517578125,
-0.107666015625,
-0.018310546875,
0.039794921875,
0.035675048828125,
-0.10321044921875,
0.060516357421875,
0.013397216796875,
0.0212249755859375,
-0.01175689697265625,
-0.0550537109375,
0.015869140625,
0.05084228515625,
-0.012725830078125,
-0.024261474609375,
-0.0338134765625,
-0.0002880096435546875,
-0.057647705078125,
0.04742431640625,
0.039703369140625,
-0.0341796875,
-0.012481689453125,
0.0760498046875,
0.0318603515625,
0.1142578125,
-0.0093841552734375,
-0.018707275390625,
-0.040374755859375,
0.0310821533203125,
-0.0223846435546875,
-0.0242919921875,
0.044586181640625,
-0.0197601318359375,
-0.0657958984375,
-0.025787353515625,
0.006511688232421875,
0.003650665283203125,
-0.033050537109375,
-0.01506805419921875,
0.0162200927734375,
0.0027923583984375,
-0.0164337158203125,
-0.007457733154296875,
-0.0020809173583984375,
0.0017023086547851562,
-0.01181793212890625,
0.0006284713745117188,
0.0051116943359375,
-0.0214385986328125,
-0.0014066696166992188,
0.030303955078125,
-0.03472900390625,
0.007587432861328125,
0.0235748291015625,
-0.033172607421875,
0.06317138671875,
0.06317138671875,
-0.004482269287109375,
-0.0038623809814453125,
0.03204345703125,
-0.003971099853515625,
0.071533203125,
0.027099609375,
-0.0509033203125,
-0.018829345703125,
-0.09271240234375,
-0.0044403076171875,
0.017913818359375,
-0.00942230224609375,
0.02252197265625,
0.033538818359375,
0.087890625,
0.0081787109375,
-0.052886962890625,
-0.04095458984375,
-0.054901123046875,
-0.01467132568359375,
-0.01261138916015625,
0.0182647705078125,
-0.06964111328125,
0.0100860595703125,
0.013031005859375,
-0.022552490234375,
0.014434814453125,
0.00850677490234375,
-0.0357666015625,
-0.006778717041015625,
-0.005237579345703125,
-0.0011959075927734375,
-0.08184814453125,
0.04925537109375,
0.050506591796875,
-0.052581787109375,
-0.01015472412109375,
0.0156402587890625,
-0.0291900634765625,
0.020233154296875,
0.0171356201171875,
-0.0166168212890625,
-0.03460693359375,
-0.039764404296875,
0.050445556640625,
-0.0238800048828125,
0.058349609375,
-0.07244873046875,
-0.0211639404296875,
0.016357421875,
0.035369873046875,
-0.001842498779296875,
0.040313720703125,
-0.0019359588623046875,
0.050811767578125,
0.002315521240234375,
-0.008453369140625,
-0.00919342041015625,
-0.007659912109375,
-0.031158447265625,
0.038421630859375,
0.0017242431640625,
-0.0038318634033203125,
0.04559326171875,
-0.0262298583984375,
0.0090179443359375,
0.021636962890625,
0.0268402099609375,
-0.021514892578125,
0.0211181640625,
0.03802490234375,
0.01470184326171875,
0.01531982421875
] |
490060dd847c507544eb8817c54f5f48dab9af32
|
Wordpress Stackexchange
Q: Initialize WordPress environment to use in a real cron script I have to run a PHP script through real cron (WP cron being too unreliable). Within that script, I need $wpdb to insert data into WordPress table. But of course $wpdb will not be available as WordPress would not be initialized. Right? So, my question is how to 'include' WordPress/initialize WordPress environment to do such tasks? How about
require_once("wp-load.php")?
A: You can use real cron to trigger WP cron - by fetching wp-cron.php file from root (snippet from quick google search).
That will take care of environment and everything.
|
Q: Initialize WordPress environment to use in a real cron script I have to run a PHP script through real cron (WP cron being too unreliable). Within that script, I need $wpdb to insert data into WordPress table. But of course $wpdb will not be available as WordPress would not be initialized. Right? So, my question is how to 'include' WordPress/initialize WordPress environment to do such tasks? How about
require_once("wp-load.php")?
A: You can use real cron to trigger WP cron - by fetching wp-cron.php file from root (snippet from quick google search).
That will take care of environment and everything.
A: If you want to trigger any script via cron you can also skip wp-cron (limited functionality anyway) and cron the script directly.
The script have to load the wordpress environment itself if it wants to use wordpress functionality.
A solution to this can be found here : Initialize WordPress environment to use in command line script
|
wordpress
|
{
"language": "en",
"length": 157,
"provenance": "stackexchange_00019.jsonl.gz:411627",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23990"
}
|
[
0.051666259765625,
0.0030994415283203125,
-0.00006949901580810547,
-0.036163330078125,
0.0007524490356445312,
-0.04095458984375,
0.031494140625,
-0.0229949951171875,
-0.0150146484375,
0.0065460205078125,
-0.061126708984375,
0.020172119140625,
-0.022796630859375,
0.0020122528076171875,
0.0033111572265625,
-0.037109375,
0.03643798828125,
-0.0221405029296875,
0.0170440673828125,
-0.02093505859375,
0.01273345947265625,
0.01265716552734375,
0.01336669921875,
0.06622314453125,
0.0237274169921875,
-0.0246124267578125,
0.03302001953125,
0.0098419189453125,
0.026092529296875,
0.01332855224609375,
0.039794921875,
-0.031768798828125,
0.031585693359375,
0.002109527587890625,
0.018035888671875,
0.040008544921875,
-0.027130126953125,
0.021209716796875,
0.02587890625,
0.0008611679077148438,
-0.0137939453125,
0.0125732421875,
0.07537841796875,
0.019683837890625,
-0.00003933906555175781,
-0.014068603515625,
-0.009246826171875,
-0.038421630859375,
0.00717926025390625,
0.002758026123046875,
0.027191162109375,
-0.0187225341796875,
0.040771484375,
-0.00867462158203125,
-0.016754150390625,
0.005146026611328125,
-0.030853271484375,
-0.006011962890625,
0.01105499267578125,
0.0004620552062988281,
-0.0077056884765625,
-0.0220947265625,
0.0345458984375,
0.0160980224609375,
0.043975830078125,
-0.00572967529296875,
0.001495361328125,
0.045257568359375,
-0.06439208984375,
0.0081939697265625,
0.037933349609375,
-0.04437255859375,
-0.0218963623046875,
-0.01309967041015625,
-0.0020503997802734375,
0.000583648681640625,
0.01302337646484375,
-0.0184783935546875,
-0.009979248046875,
0.04541015625,
0.043792724609375,
0.00970458984375,
0.0095062255859375,
-0.016876220703125,
0.011505126953125,
-0.0289459228515625,
-0.00081634521484375,
-0.00804901123046875,
-0.047210693359375,
-0.031646728515625,
-0.0293426513671875,
0.045501708984375,
-0.073486328125,
-0.0227203369140625,
-0.0181121826171875,
-0.01300048828125,
0.0120086669921875,
0.003963470458984375,
-0.03607177734375,
0.00897216796875,
0.00972747802734375,
-0.025054931640625,
0.029693603515625,
-0.0103759765625,
0.006175994873046875,
0.045196533203125,
-0.01322174072265625,
0.0201416015625,
0.0228729248046875,
0.0194244384765625,
-0.0037860870361328125,
-0.032135009765625,
0.02276611328125,
-0.007282257080078125,
0.0070037841796875,
-0.034515380859375,
-0.0279693603515625,
0.048980712890625,
-0.0030345916748046875,
-0.001804351806640625,
-0.00518035888671875,
0.0345458984375,
-0.0382080078125,
-0.0224456787109375,
-0.01549530029296875,
-0.037750244140625,
0.00347900390625,
-0.00039577484130859375,
-0.059814453125,
0.05853271484375,
-0.01561737060546875,
0.0091705322265625,
0.050018310546875,
0.004550933837890625,
-0.02435302734375,
-0.0222320556640625,
0.032989501953125,
0.003780364990234375,
0.0293121337890625,
-0.006580352783203125,
0.02764892578125,
-0.0107421875,
-0.0169219970703125,
0.01348876953125,
0.0093231201171875,
0.035400390625,
0.0245361328125,
-0.0262298583984375,
-0.007381439208984375,
-0.02423095703125,
-0.054229736328125,
0.0208740234375,
-0.0200042724609375,
0.046417236328125,
0.045440673828125,
0.005832672119140625,
0.0297088623046875,
-0.0251617431640625,
0.04046630859375,
-0.0101470947265625,
-0.036224365234375,
-0.00699615478515625,
0.019775390625,
-0.0389404296875,
-0.0235748291015625,
-0.0074005126953125,
-0.017608642578125,
0.0098419189453125,
0.03399658203125,
-0.0195770263671875,
0.0197296142578125,
0.00970458984375,
0.0347900390625,
0.0283203125,
0.0210418701171875,
0.0268096923828125,
-0.003696441650390625,
-0.002445220947265625,
0.034759521484375,
0.0268096923828125,
0.006256103515625,
-0.01021575927734375,
0.06378173828125,
-0.00716400146484375,
-0.006435394287109375,
-0.04278564453125,
0.0038585662841796875,
0.0231475830078125,
0.039764404296875,
0.04132080078125,
-0.047576904296875,
-0.0248870849609375,
-0.01132965087890625,
0.056060791015625,
-0.0239410400390625,
-0.02734375,
-0.0110626220703125,
0.0230255126953125,
-0.02392578125,
-0.0254364013671875,
0.01285552978515625,
-0.0008893013000488281,
-0.006256103515625,
0.00650787353515625,
-0.09368896484375,
0.035552978515625,
-0.05120849609375,
0.0308380126953125,
0.028167724609375,
-0.02484130859375,
-0.01088714599609375,
-0.0009126663208007812,
0.0260467529296875,
-0.084716796875,
-0.08062744140625,
0.03656005859375,
-0.0306854248046875,
0.08416748046875,
-0.0030460357666015625,
0.06585693359375,
-0.0243072509765625,
-0.048583984375,
-0.0034427642822265625,
-0.0264892578125,
0.035858154296875,
-0.033355712890625,
-0.00652313232421875,
-0.04083251953125,
0.050628662109375,
-0.02618408203125,
0.03521728515625,
0.037353515625,
-0.019378662109375,
-0.004634857177734375,
-0.020904541015625,
-0.0115966796875,
0.0170135498046875,
-0.015625,
0.01088714599609375,
0.038604736328125,
0.0325927734375,
0.040679931640625,
-0.017425537109375,
-0.0182952880859375,
0.0318603515625,
-0.0091400146484375,
0.0288238525390625,
-0.038604736328125,
0.0004055500030517578,
0.037078857421875,
-0.056671142578125,
0.01299285888671875,
0.006389617919921875,
-0.03363037109375,
-0.00868988037109375,
0.048370361328125,
0.007068634033203125,
-0.01068878173828125,
0.027557373046875,
-0.0284576416015625,
0.0243988037109375,
-0.00022935867309570312,
-0.055206298828125,
0.022918701171875,
0.004734039306640625,
-0.0008225440979003906,
0.000835418701171875,
0.0015697479248046875,
-0.004901885986328125,
0.000507354736328125,
0.0176544189453125,
-0.068115234375,
-0.01308441162109375,
0.051177978515625,
-0.0278472900390625,
-0.0008382797241210938,
-0.03619384765625,
0.0209197998046875,
-0.01161956787109375,
0.02099609375,
-0.009521484375,
0.00910186767578125,
0.000030159950256347656,
-0.0012149810791015625,
-0.004016876220703125,
-0.005680084228515625,
0.040069580078125,
0.00788116455078125,
0.0041961669921875,
-0.040283203125,
0.00006657838821411133,
0.03240966796875,
-0.0109710693359375,
0.027587890625,
0.022216796875,
-0.0306854248046875,
0.07208251953125,
-0.0124969482421875,
0.0233917236328125,
0.0034580230712890625,
-0.0182647705078125,
0.034423828125,
0.01245880126953125,
0.0024204254150390625,
0.0025577545166015625,
0.0178680419921875,
0.043243408203125,
-0.01131439208984375,
-0.028564453125,
0.008392333984375,
-0.08074951171875,
-0.038604736328125,
0.0145263671875,
0.053497314453125,
-0.0122833251953125,
-0.059478759765625,
-0.001064300537109375,
0.00971221923828125,
-0.0640869140625,
-0.07904052734375,
-0.0153961181640625,
-0.026885986328125,
-0.00638580322265625,
-0.047698974609375,
-0.0008263587951660156,
-0.00039458274841308594,
-0.051971435546875,
0.0078125,
-0.01371002197265625,
-0.017181396484375,
-0.0233612060546875,
-0.069091796875,
-0.057647705078125,
-0.042938232421875,
0.0035190582275390625,
0.002254486083984375,
-0.0008859634399414062,
0.0753173828125,
0.0192108154296875,
-0.043731689453125,
-0.00012373924255371094,
0.02020263671875,
-0.0335693359375,
0.01024627685546875,
0.0003466606140136719,
-0.0023517608642578125,
0.0340576171875,
-0.002300262451171875,
0.03167724609375,
0.027801513671875,
-0.032012939453125,
-0.0265655517578125,
0.0207977294921875,
-0.001434326171875,
-0.0139312744140625,
0.03582763671875,
0.0019292831420898438,
-0.059173583984375,
-0.0440673828125,
-0.072509765625,
0.0467529296875,
-0.014251708984375,
-0.003391265869140625,
-0.054351806640625,
0.0020961761474609375,
-0.018585205078125,
-0.027801513671875,
-0.021392822265625,
-0.00455474853515625,
0.039764404296875,
0.048187255859375,
0.006011962890625,
0.0049591064453125,
-0.0352783203125,
-0.06683349609375,
-0.04833984375,
0.0301055908203125,
-0.03765869140625,
0.0108184814453125,
0.0012454986572265625,
-0.0311279296875,
-0.04742431640625,
-0.050384521484375,
-0.10333251953125,
-0.023101806640625,
0.057525634765625,
0.0164947509765625,
0.010345458984375,
-0.025115966796875,
-0.0225982666015625,
0.0036830902099609375,
0.06561279296875,
-0.020904541015625,
-0.00653076171875,
-0.0116424560546875,
0.0112457275390625,
-0.061187744140625,
-0.032318115234375,
-0.041046142578125,
0.004261016845703125,
-0.040435791015625,
0.0151824951171875,
-0.0178375244140625,
0.0155181884765625,
-0.0192108154296875,
-0.011627197265625,
-0.0145721435546875,
-0.057281494140625,
0.0211639404296875,
-0.048370361328125,
-0.00032401084899902344,
-0.014068603515625,
-0.0113067626953125,
-0.0406494140625,
-0.002643585205078125,
-0.03759765625,
-0.094482421875,
-0.001544952392578125,
-0.050506591796875,
0.060516357421875,
0.0176849365234375,
0.0087127685546875,
-0.024749755859375,
0.029510498046875,
-0.01568603515625,
0.0213165283203125,
0.0124664306640625,
0.0309906005859375,
0.0007877349853515625,
0.01328277587890625,
0.022735595703125,
-0.01183319091796875,
-0.006988525390625,
-0.035369873046875,
-0.0259246826171875,
0.0223541259765625,
-0.0026645660400390625,
0.055633544921875,
-0.01104736328125,
0.001678466796875,
0.0082855224609375,
-0.0265655517578125,
0.00122833251953125,
0.055755615234375,
-0.0158233642578125,
0.032623291015625,
-0.0423583984375,
-0.019927978515625,
0.0233001708984375,
-0.0234527587890625,
0.00927734375,
0.009124755859375,
0.046478271484375,
0.01229095458984375,
-0.0118408203125,
-0.01020050048828125,
0.0197296142578125,
0.0078277587890625,
0.03277587890625,
0.034027099609375,
-0.01274871826171875,
0.0025463104248046875,
0.03253173828125,
0.00881195068359375,
0.007610321044921875,
0.0001061558723449707,
0.038848876953125,
0.0082855224609375,
-0.0017461776733398438,
0.0119171142578125,
0.003627777099609375,
-0.022613525390625,
0.021759033203125,
0.00518798828125,
0.003032684326171875,
0.03564453125,
0.0076751708984375,
-0.031524658203125,
-0.018707275390625,
-0.014892578125,
0.000110626220703125,
-0.0039520263671875,
-0.0159759521484375,
0.0498046875,
0.007572174072265625,
0.017120361328125,
0.0028972625732421875,
0.0161285400390625,
-0.007720947265625,
0.07012939453125,
0.034576416015625,
0.0166473388671875,
0.0195159912109375,
0.055572509765625,
-0.00867462158203125,
-0.01241302490234375,
-0.020050048828125,
0.0367431640625,
0.004138946533203125,
-0.044158935546875,
0.0035915374755859375,
-0.00884246826171875,
0.047576904296875,
0.01418304443359375,
-0.031982421875,
0.00928497314453125,
0.0128326416015625,
-0.0264739990234375,
0.01461029052734375,
0.005008697509765625,
-0.033599853515625,
-0.0203704833984375,
0.04888916015625,
0.0162353515625,
-0.00019419193267822266,
0.00273895263671875,
0.03765869140625,
0.03228759765625,
0.005641937255859375,
-0.01074981689453125,
0.09735107421875,
0.039825439453125,
0.0430908203125,
-0.007579803466796875,
-0.011260986328125,
0.01470184326171875,
0.01290130615234375,
-0.0305938720703125,
-0.054168701171875,
-0.01416015625,
0.0204620361328125,
0.04107666015625,
-0.061309814453125,
-0.044464111328125,
0.06298828125,
-0.01026153564453125,
-0.005474090576171875,
0.04296875,
0.017120361328125,
-0.0267791748046875,
-0.02398681640625,
-0.0165252685546875,
0.039306640625,
0.002635955810546875,
0.0211944580078125,
0.016937255859375,
0.0092926025390625,
0.042144775390625,
-0.02349853515625,
0.047027587890625,
-0.04339599609375,
-0.037567138671875,
0.032073974609375,
-0.004810333251953125,
-0.0185546875,
0.005886077880859375,
-0.00920867919921875,
-0.03271484375,
-0.034454345703125,
0.0648193359375,
-0.0123291015625,
0.03546142578125,
-0.058380126953125,
0.036376953125,
-0.06488037109375,
-0.0011348724365234375,
0.047607421875,
0.01305389404296875,
0.035552978515625,
-0.0195770263671875,
-0.04681396484375,
-0.030120849609375,
-0.0237274169921875,
-0.043853759765625,
-0.041015625,
0.00142669677734375,
0.0010614395141601562,
0.00008124113082885742,
0.001117706298828125,
0.0004856586456298828,
0.00930023193359375,
0.038665771484375,
0.0043792724609375,
0.0217742919921875,
-0.020904541015625,
0.06396484375,
0.0038852691650390625,
0.04010009765625,
0.0214691162109375,
0.033538818359375,
0.022186279296875,
-0.019805908203125,
0.0178985595703125,
-0.01358795166015625,
-0.020843505859375,
-0.03912353515625,
0.0116119384765625,
0.0005631446838378906,
0.035308837890625,
-0.02020263671875,
0.047119140625,
-0.019439697265625,
-0.00957489013671875,
0.00630950927734375,
5.960464477539062e-7,
-0.036865234375,
0.00952911376953125,
0.007965087890625,
-0.011566162109375,
0.03369140625,
0.0005655288696289062,
0.004322052001953125,
0.00881195068359375,
-0.025299072265625,
-0.002933502197265625,
0.0257110595703125,
-0.0970458984375,
0.10009765625,
0.1060791015625,
0.030853271484375,
0.0595703125,
-0.014312744140625,
0.01059722900390625,
-0.00383758544921875,
0.02716064453125,
-0.04827880859375,
-0.026519775390625,
0.02728271484375,
0.0043182373046875,
-0.0224761962890625,
-0.0012950897216796875,
-0.0050201416015625,
0.000030934810638427734,
0.07550048828125,
0.07275390625,
-0.06549072265625,
-0.0244598388671875,
0.0310516357421875,
-0.0238494873046875,
-0.0242919921875,
-0.021331787109375,
-0.01953125,
-0.034088134765625,
0.054534912109375,
0.03045654296875,
-0.0186614990234375,
0.0234375,
0.028076171875,
-0.007205963134765625,
0.00048661231994628906,
0.0404052734375,
0.02923583984375,
-0.02008056640625,
0.0643310546875,
-0.007526397705078125,
0.0753173828125,
-0.0465087890625,
0.00629425048828125,
-0.002010345458984375,
0.002223968505859375,
-0.0487060546875,
0.026092529296875,
-0.01517486572265625,
0.0272064208984375,
0.0325927734375,
-0.0087432861328125,
0.055145263671875,
0.0144805908203125,
0.028594970703125,
-0.0174102783203125,
-0.036529541015625,
0.033203125,
-0.03125,
-0.032501220703125,
0.0164642333984375,
0.0589599609375,
-0.061309814453125,
0.03125,
-0.0222930908203125,
-0.00614166259765625,
0.015167236328125,
-0.01030731201171875,
0.0011701583862304688,
-0.0092926025390625,
-0.0139923095703125,
0.00965118408203125,
0.004802703857421875,
0.0246734619140625,
0.0036945343017578125,
0.0275726318359375,
-0.05999755859375,
-0.032379150390625,
0.0201416015625,
-0.04364013671875,
-0.01309967041015625,
0.00966644287109375,
-0.0034027099609375,
0.08221435546875,
-0.0238800048828125,
-0.0184783935546875,
0.04742431640625,
0.036590576171875,
-0.0216522216796875,
0.028076171875,
-0.00533294677734375,
0.036224365234375,
0.017181396484375,
0.02801513671875,
-0.018402099609375,
-0.020233154296875,
0.0173797607421875,
0.055419921875,
0.018035888671875,
0.0066986083984375,
0.0097808837890625,
-0.0005068778991699219,
0.003932952880859375,
0.001926422119140625,
-0.0260162353515625,
0.03717041015625,
-0.0216064453125,
0.00800323486328125,
0.012908935546875,
-0.027862548828125,
0.01580810546875,
-0.02777099609375,
-0.021575927734375,
0.00780487060546875,
0.0191650390625,
0.0300750732421875,
0.01206207275390625,
0.0170745849609375,
0.01971435546875,
-0.0029888153076171875,
0.0027370452880859375,
-0.004009246826171875,
-0.03277587890625,
0.04376220703125,
0.0142669677734375,
0.009063720703125,
-0.01824951171875,
-0.0253143310546875,
0.033416748046875,
0.019805908203125,
-0.006420135498046875,
0.033660888671875,
0.00789642333984375,
0.045013427734375,
-0.037567138671875,
-0.03662109375,
-0.019622802734375,
0.0228729248046875,
-0.007389068603515625,
0.02294921875,
0.03265380859375,
0.005725860595703125,
0.024993896484375,
0.025848388671875,
-0.003574371337890625,
-0.026214599609375,
0.0152435302734375,
0.022705078125,
0.03717041015625,
0.003177642822265625,
-0.0208892822265625,
0.034698486328125,
0.00977325439453125,
0.0106964111328125,
0.01751708984375,
0.007808685302734375,
0.013885498046875,
-0.024505615234375,
0.007171630859375,
0.039764404296875,
0.006000518798828125,
0.0280303955078125,
0.01018524169921875,
0.0232086181640625,
-0.00240325927734375,
0.0323486328125,
-0.00980377197265625,
0.0264739990234375,
-0.05145263671875,
0.004695892333984375,
0.0005612373352050781,
0.038330078125,
0.044158935546875,
-0.0146636962890625,
0.0182952880859375,
-0.0024738311767578125,
0.0191802978515625,
-0.006549835205078125,
0.00742340087890625,
0.028045654296875,
0.044677734375,
0.051910400390625,
-0.01702880859375,
-0.0113372802734375,
0.05950927734375,
-0.00861358642578125,
-0.0673828125,
-0.018768310546875,
0.0007958412170410156,
0.0158843994140625,
0.017059326171875,
0.018280029296875,
0.1036376953125,
-0.0469970703125,
0.004070281982421875,
0.00545501708984375,
0.0026683807373046875,
-0.0022373199462890625,
0.054656982421875,
-0.00785064697265625,
0.048309326171875,
0.01995849609375,
-0.012603759765625,
0.01099395751953125,
-0.02581787109375,
-0.05267333984375,
0.00612640380859375,
0.036529541015625,
-0.014739990234375,
0.03399658203125,
0.0499267578125,
0.0121917724609375,
-0.0143890380859375,
0.00908660888671875,
0.0059967041015625,
-0.07012939453125,
0.034454345703125,
0.00400543212890625,
-0.05438232421875,
-0.048553466796875,
-0.0275115966796875,
0.047149658203125,
-0.006725311279296875,
0.07354736328125,
-0.031585693359375,
0.0156402587890625,
-0.0251312255859375,
-0.00015807151794433594,
-0.015594482421875,
0.003543853759765625,
-0.0635986328125,
0.037872314453125,
0.0294647216796875,
-0.0162200927734375,
-0.031402587890625,
0.00885772705078125,
0.021270751953125,
-0.00791168212890625,
0.00567626953125,
-0.0167999267578125,
0.032379150390625,
0.0020923614501953125,
0.0309906005859375,
-0.02911376953125,
-0.03466796875,
-0.0226287841796875,
0.0204925537109375,
0.0175933837890625,
0.0345458984375,
-0.0048980712890625,
0.0098419189453125,
0.0166473388671875,
-0.01910400390625,
0.0102996826171875,
-0.0185394287109375,
0.0167083740234375,
0.02801513671875,
0.0028896331787109375,
-0.0247039794921875,
0.0152130126953125,
-0.00799560546875,
0.003025054931640625,
0.01544952392578125,
0.0311737060546875,
0.01517486572265625,
-0.01143646240234375,
-0.0012674331665039062,
0.059478759765625,
0.06427001953125,
0.0201568603515625,
0.03570556640625,
-0.006450653076171875,
-0.0157318115234375,
0.0276336669921875,
-0.06146240234375,
-0.0116729736328125,
-0.043243408203125,
-0.034393310546875,
0.03271484375,
-0.053497314453125,
-0.0374755859375,
-0.061614990234375,
0.008514404296875,
0.031982421875,
0.007785797119140625,
-0.06298828125,
0.040069580078125,
-0.03961181640625,
0.02239990234375,
-0.017059326171875,
0.0199432373046875,
-0.0021076202392578125,
0.038360595703125,
-0.0277862548828125,
-0.05743408203125,
0.0029544830322265625,
0.053070068359375,
-0.0241241455078125,
-0.0033817291259765625,
0.035491943359375,
-0.0004048347473144531,
-0.0198211669921875,
-0.026214599609375,
-0.034393310546875,
0.036346435546875,
-0.044281005859375,
-0.0271453857421875,
-0.00904083251953125,
0.0196380615234375,
-0.01296234130859375,
-0.06634521484375,
0.017669677734375,
-0.0655517578125,
-0.006855010986328125,
-0.050689697265625,
0.0116119384765625,
0.0041656494140625,
-0.056854248046875,
-0.10601806640625,
0.09368896484375,
-0.03643798828125,
-0.0256195068359375,
-0.05474853515625,
0.01824951171875,
-0.02301025390625,
0.0230712890625,
-0.0091705322265625,
-0.042022705078125,
-0.00191497802734375,
0.036895751953125,
0.0055694580078125,
-0.0258941650390625,
0.03326416015625,
-0.0242767333984375,
-0.050567626953125,
-0.0006580352783203125,
0.02630615234375,
-0.0014581680297851562,
0.005191802978515625,
0.0008273124694824219,
0.022125244140625,
0.056121826171875,
-0.017822265625,
0.01529693603515625,
-0.0115509033203125,
-0.0232086181640625,
-0.058441162109375,
-0.0445556640625,
-0.0007276535034179688,
0.019561767578125,
0.10174560546875,
0.08428955078125,
0.021148681640625,
-0.085693359375,
-0.030609130859375,
-0.054473876953125,
-0.000022351741790771484,
-0.023895263671875,
0.005725860595703125,
-0.04742431640625,
0.0085906982421875,
0.01190948486328125,
0.00728607177734375,
0.002849578857421875,
0.01605224609375,
0.00569915771484375,
-0.0241546630859375,
0.00787353515625,
-0.045745849609375,
0.006168365478515625,
-0.047271728515625,
0.0552978515625,
-0.03143310546875,
0.015655517578125,
0.0144805908203125,
0.033111572265625,
0.025299072265625,
0.04486083984375,
0.00959014892578125,
0.019805908203125,
-0.004352569580078125,
-0.01029205322265625,
0.024871826171875,
-0.0179901123046875,
0.01009368896484375,
-0.00981903076171875,
0.007129669189453125,
-0.01126861572265625,
-0.004604339599609375,
0.0009641647338867188,
0.0142669677734375,
0.02386474609375,
-0.01519012451171875,
-0.0129547119140625,
-0.02667236328125,
-0.02447509765625,
-0.025299072265625,
0.03521728515625,
-0.027984619140625,
0.001453399658203125,
-0.0089263916015625,
0.006038665771484375,
0.0221405029296875,
-0.01409912109375,
-0.008636474609375,
-0.010040283203125,
-0.00411224365234375,
-0.029296875,
-0.035186767578125,
0.0014247894287109375
] |
15cdc4fec3f65f200b60bc9adf95ae9414a99f92
|
Wordpress Stackexchange
Q: Best plugin to manage media library? I'm finding the media section of WordPress a bit hard to manage with it's paginated pages. Is there any plugin that helps display all the files differently? Like more images on one page and perhaps folders etc?
|
Q: Best plugin to manage media library? I'm finding the media section of WordPress a bit hard to manage with it's paginated pages. Is there any plugin that helps display all the files differently? Like more images on one page and perhaps folders etc?
|
wordpress
|
{
"language": "en",
"length": 44,
"provenance": "stackexchange_00019.jsonl.gz:411629",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/23996"
}
|
[
0.006977081298828125,
0.0029754638671875,
0.001117706298828125,
0.030548095703125,
-0.0136260986328125,
-0.01206207275390625,
0.0504150390625,
-0.023956298828125,
-0.004940032958984375,
0.00901031494140625,
0.011688232421875,
0.01277923583984375,
-0.033203125,
-0.035736083984375,
-0.005214691162109375,
-0.035614013671875,
0.00836944580078125,
-0.0026073455810546875,
0.0120086669921875,
-0.010894775390625,
0.002742767333984375,
-0.0179290771484375,
0.02435302734375,
0.038360595703125,
0.0152740478515625,
0.00565338134765625,
0.00443267822265625,
-0.018402099609375,
-0.0007162094116210938,
-0.041656494140625,
0.007198333740234375,
0.041168212890625,
0.007595062255859375,
-0.0220184326171875,
0.031890869140625,
-0.00760650634765625,
0.0297088623046875,
-0.00669097900390625,
0.0296783447265625,
-0.00335693359375,
0.014129638671875,
-0.00350189208984375,
0.029022216796875,
0.048126220703125,
0.005382537841796875,
-0.046630859375,
0.004520416259765625,
-0.05523681640625,
-0.01152801513671875,
-0.01020050048828125,
0.00823211669921875,
-0.017822265625,
0.0263824462890625,
-0.027191162109375,
0.0008068084716796875,
0.0034809112548828125,
0.058349609375,
-0.0288848876953125,
0.019683837890625,
-0.0782470703125,
-0.0364990234375,
0.015960693359375,
0.043304443359375,
0.032958984375,
-0.0031070709228515625,
-0.0234527587890625,
-0.057952880859375,
0.0253143310546875,
-0.042694091796875,
0.005306243896484375,
0.047271728515625,
-0.04437255859375,
0.011688232421875,
-0.0474853515625,
-0.007965087890625,
0.049835205078125,
-0.022552490234375,
-0.0058441162109375,
0.03131103515625,
-0.0439453125,
-0.01038360595703125,
-0.01224517822265625,
-0.019073486328125,
-0.044921875,
0.010833740234375,
-0.01148223876953125,
-0.00493621826171875,
0.003238677978515625,
-0.00405120849609375,
0.0229034423828125,
-0.01467132568359375,
-0.00418853759765625,
0.01374053955078125,
0.0270538330078125,
-0.0020599365234375,
0.01450347900390625,
0.0304412841796875,
0.0440673828125,
-0.0034198760986328125,
0.00820159912109375,
-0.0004343986511230469,
-0.0369873046875,
0.00731658935546875,
-0.017303466796875,
0.00624847412109375,
-0.0193328857421875,
-0.0126800537109375,
-0.026947021484375,
0.028717041015625,
0.046539306640625,
-0.036376953125,
0.02880859375,
0.0015783309936523438,
-0.00687408447265625,
0.014129638671875,
-0.032196044921875,
-0.053619384765625,
0.056243896484375,
0.0020084381103515625,
0.00423431396484375,
-0.01189422607421875,
0.006359100341796875,
0.0120849609375,
-0.040313720703125,
-0.01380157470703125,
-0.0289459228515625,
-0.0272979736328125,
-0.010467529296875,
-0.019287109375,
0.025390625,
-0.0125885009765625,
0.016265869140625,
0.018218994140625,
-0.0024871826171875,
-0.0231170654296875,
-0.01141357421875,
-0.006343841552734375,
-0.01197052001953125,
0.01435089111328125,
-0.016845703125,
0.003185272216796875,
-0.007663726806640625,
0.0312347412109375,
0.01233673095703125,
0.01241302490234375,
0.0188751220703125,
0.02587890625,
0.0071868896484375,
-0.01318359375,
-0.0206146240234375,
-0.021270751953125,
0.017425537109375,
0.022979736328125,
-0.012115478515625,
0.0587158203125,
-0.01031494140625,
0.054962158203125,
-0.018402099609375,
-0.0017452239990234375,
-0.0024967193603515625,
0.0294189453125,
0.0087432861328125,
0.0161285400390625,
-0.0426025390625,
-0.042083740234375,
-0.03521728515625,
-0.041015625,
-0.00676727294921875,
0.0178375244140625,
0.00015401840209960938,
-0.0196380615234375,
-0.003925323486328125,
0.02276611328125,
0.0171966552734375,
0.0016241073608398438,
0.041229248046875,
0.0021038055419921875,
0.004947662353515625,
0.0198516845703125,
0.026092529296875,
0.004055023193359375,
-0.015625,
0.043914794921875,
-0.01611328125,
-0.038421630859375,
-0.017669677734375,
0.005588531494140625,
0.0225067138671875,
0.036651611328125,
0.0211334228515625,
0.0596923828125,
-0.01099395751953125,
-0.027313232421875,
-0.008697509765625,
0.0006151199340820312,
-0.0102386474609375,
-0.00890350341796875,
0.01544189453125,
0.007343292236328125,
-0.0261383056640625,
-0.017852783203125,
0.00930023193359375,
-0.0390625,
0.041015625,
-0.0304107666015625,
-0.0174713134765625,
-0.0089111328125,
0.00713348388671875,
0.0051422119140625,
0.01441192626953125,
0.0005650520324707031,
0.00777435302734375,
-0.003421783447265625,
-0.039947509765625,
-0.0303497314453125,
-0.01019287109375,
-0.004619598388671875,
-0.0158843994140625,
0.005039215087890625,
-0.0201873779296875,
0.002674102783203125,
0.020660400390625,
-0.017059326171875,
0.032318115234375,
0.044891357421875,
0.01470947265625,
-0.03802490234375,
-0.02020263671875,
0.017303466796875,
-0.0018854141235351562,
-0.00838470458984375,
0.059112548828125,
0.0119171142578125,
0.049713134765625,
-0.002643585205078125,
-0.034698486328125,
0.005275726318359375,
-0.1016845703125,
0.039825439453125,
0.056182861328125,
0.021087646484375,
0.024932861328125,
0.00872802734375,
0.045440673828125,
0.054595947265625,
-0.0003733634948730469,
0.0178070068359375,
0.0279541015625,
0.00334930419921875,
0.0284881591796875,
-0.029022216796875,
0.015625,
0.0301971435546875,
-0.038421630859375,
0.025604248046875,
0.03424072265625,
0.010406494140625,
0.006427764892578125,
-0.0227813720703125,
0.03204345703125,
-0.0035953521728515625,
0.03955078125,
0.005096435546875,
0.0106048583984375,
0.0467529296875,
-0.011138916015625,
0.04315185546875,
0.026885986328125,
0.00331878662109375,
-0.01480865478515625,
-0.0079193115234375,
-0.024322509765625,
0.007183074951171875,
0.048919677734375,
0.036407470703125,
0.0230255126953125,
-0.067138671875,
-0.0143585205078125,
0.026702880859375,
0.041015625,
-0.026947021484375,
-0.0169677734375,
-0.052734375,
-0.01432037353515625,
-0.00032711029052734375,
-0.0303497314453125,
-0.0034542083740234375,
-0.0015010833740234375,
-0.07012939453125,
-0.03204345703125,
-0.01203155517578125,
0.046600341796875,
-0.031005859375,
0.0213470458984375,
-0.01363372802734375,
0.0030059814453125,
0.0293121337890625,
-0.057891845703125,
0.037322998046875,
-0.04058837890625,
0.071533203125,
0.0706787109375,
-0.0189208984375,
0.01229095458984375,
-0.005336761474609375,
0.0014896392822265625,
0.024749755859375,
-0.009857177734375,
-0.0263214111328125,
-0.0037479400634765625,
-0.06439208984375,
-0.0295562744140625,
0.005306243896484375,
0.00571441650390625,
-0.0263519287109375,
-0.046783447265625,
-0.0322265625,
-0.0285797119140625,
-0.11083984375,
-0.05535888671875,
-0.041748046875,
-0.0819091796875,
0.0182952880859375,
0.0297088623046875,
-0.0302886962890625,
-0.01079559326171875,
0.0975341796875,
0.020721435546875,
-0.005397796630859375,
-0.010009765625,
-0.031219482421875,
-0.040863037109375,
-0.056488037109375,
-0.0005621910095214844,
0.00026535987854003906,
0.0174102783203125,
-0.0099639892578125,
0.08184814453125,
-0.002719879150390625,
-0.07183837890625,
-0.034210205078125,
-0.0046234130859375,
-0.007122039794921875,
0.004299163818359375,
0.041412353515625,
0.005588531494140625,
-0.0301055908203125,
0.0311126708984375,
0.02984619140625,
0.048828125,
-0.07513427734375,
0.0016460418701171875,
-0.01611328125,
-0.050323486328125,
-0.02142333984375,
-0.009979248046875,
0.0209197998046875,
-0.0047760009765625,
-0.0258636474609375,
-0.044769287109375,
-0.016754150390625,
-0.0031070709228515625,
-0.04779052734375,
0.0187225341796875,
0.0231475830078125,
-0.007732391357421875,
0.01448822021484375,
-0.0224151611328125,
-0.0252532958984375,
0.0002453327178955078,
-0.0278778076171875,
-0.04345703125,
0.0469970703125,
0.004138946533203125,
0.013824462890625,
0.03289794921875,
0.007137298583984375,
-0.034210205078125,
-0.0238037109375,
-0.0245208740234375,
-0.0110626220703125,
-0.0033588409423828125,
0.0183258056640625,
0.01953125,
-0.0203704833984375,
0.0268707275390625,
0.0037994384765625,
0.0297698974609375,
-0.047637939453125,
-0.032318115234375,
-0.039093017578125,
0.059783935546875,
-0.044158935546875,
-0.0012693405151367188,
0.03546142578125,
0.004230499267578125,
0.0003552436828613281,
-0.00852203369140625,
-0.05841064453125,
-0.041229248046875,
-0.01392364501953125,
-0.0005917549133300781,
-0.00030303001403808594,
-0.0093536376953125,
-0.04052734375,
0.06793212890625,
-0.040313720703125,
-0.00771331787109375,
0.024505615234375,
-0.031829833984375,
0.01146697998046875,
-0.00879669189453125,
0.019439697265625,
-0.05523681640625,
-0.004825592041015625,
-0.02239990234375,
-0.092529296875,
-0.0234527587890625,
-0.0185699462890625,
0.0877685546875,
0.033905029296875,
-0.04083251953125,
-0.03363037109375,
0.041656494140625,
0.027740478515625,
0.050384521484375,
0.005184173583984375,
-0.011199951171875,
0.0187530517578125,
-0.040008544921875,
0.0250244140625,
-0.042022705078125,
-0.0286712646484375,
-0.06475830078125,
-0.0074310302734375,
-0.0032215118408203125,
-0.025665283203125,
0.033233642578125,
-0.0352783203125,
0.01812744140625,
-0.051910400390625,
-0.00331878662109375,
-0.035003662109375,
-0.0086669921875,
-0.0020656585693359375,
-0.025177001953125,
-0.0338134765625,
-0.060333251953125,
0.0031375885009765625,
0.006107330322265625,
-0.0171966552734375,
0.036773681640625,
0.07421875,
0.0245513916015625,
0.01407623291015625,
-0.1168212890625,
0.0011749267578125,
0.0222320556640625,
0.01177978515625,
0.029296875,
-0.00476837158203125,
-0.0367431640625,
0.08514404296875,
-0.009735107421875,
-0.0094451904296875,
0.006969451904296875,
0.0298004150390625,
-0.0011119842529296875,
-0.03900146484375,
0.0262451171875,
-0.0180511474609375,
0.005893707275390625,
0.0035076141357421875,
-0.0088043212890625,
-0.00968170166015625,
-0.03057861328125,
0.0535888671875,
0.0182342529296875,
-0.0032634735107421875,
-0.0611572265625,
-0.052398681640625,
0.022308349609375,
-0.01082611083984375,
0.0751953125,
0.0251922607421875,
-0.0089569091796875,
0.04827880859375,
0.046356201171875,
0.01136016845703125,
0.01873779296875,
0.053375244140625,
-0.03228759765625,
0.033905029296875,
0.040008544921875,
-0.00687408447265625,
-0.0210418701171875,
-0.0025539398193359375,
0.014495849609375,
-0.0253753662109375,
-0.062042236328125,
-0.003673553466796875,
-0.0109100341796875,
0.003570556640625,
0.058349609375,
0.024444580078125,
0.0340576171875,
0.00804901123046875,
-0.0259246826171875,
-0.0199127197265625,
-0.00525665283203125,
0.002681732177734375,
-0.052581787109375,
0.028472900390625,
-0.0202484130859375,
-0.004207611083984375,
-0.0072784423828125,
0.049652099609375,
-0.050994873046875,
0.0124969482421875,
0.01078033447265625,
0.025299072265625,
-0.0103912353515625,
0.019256591796875,
0.0189208984375,
0.01239776611328125,
-0.01070404052734375,
-0.00119781494140625,
-0.0015544891357421875,
-0.022003173828125,
-0.016143798828125,
0.01129913330078125,
0.016754150390625,
0.01617431640625,
0.017242431640625,
-0.0035762786865234375,
-0.016693115234375,
-0.027984619140625,
0.034759521484375,
-0.02337646484375,
-0.0677490234375,
-0.0189056396484375,
0.0308685302734375,
0.05718994140625,
-0.0252227783203125,
0.0018167495727539062,
-0.01453399658203125,
0.000213623046875,
-0.01117706298828125,
0.016143798828125,
-0.0684814453125,
0.026336669921875,
0.03375244140625,
-0.025299072265625,
-0.0006399154663085938,
0.0019292831420898438,
-0.07745361328125,
-0.072265625,
0.0027561187744140625,
0.0131378173828125,
0.034698486328125,
-0.0237274169921875,
0.046417236328125,
-0.0221405029296875,
-0.0082855224609375,
-0.058685302734375,
0.042449951171875,
-0.0036907196044921875,
0.0064849853515625,
-0.033538818359375,
0.00917816162109375,
-0.07110595703125,
-0.03228759765625,
-0.044464111328125,
-0.044158935546875,
-0.04364013671875,
-0.0218353271484375,
-0.0126800537109375,
-0.00640869140625,
-0.002704620361328125,
-0.01535797119140625,
0.0124969482421875,
0.0335693359375,
0.01015472412109375,
0.01003265380859375,
0.006000518798828125,
0.00867462158203125,
-0.0039215087890625,
0.026031494140625,
-0.00025010108947753906,
-0.020233154296875,
-0.036712646484375,
-0.01325225830078125,
-0.00444793701171875,
-0.0318603515625,
-0.043853759765625,
0.02301025390625,
-0.046966552734375,
0.035797119140625,
0.043914794921875,
0.00501251220703125,
0.01629638671875,
-0.041595458984375,
-0.0005946159362792969,
-0.01143646240234375,
0.039031982421875,
-0.050750732421875,
-0.0296173095703125,
0.03887939453125,
-0.0157012939453125,
0.0226898193359375,
-0.0298309326171875,
-0.055877685546875,
0.049896240234375,
-0.00495147705078125,
0.03485107421875,
0.01020050048828125,
-0.01763916015625,
0.0299835205078125,
0.01087188720703125,
0.0024433135986328125,
-0.00647735595703125,
0.0225982666015625,
-0.008087158203125,
-0.046112060546875,
-0.005084991455078125,
0.034576416015625,
-0.0190277099609375,
0.02801513671875,
-0.020538330078125,
0.007198333740234375,
0.0249481201171875,
-0.020233154296875,
0.00994873046875,
-0.00276947021484375,
0.0014677047729492188,
-0.0408935546875,
0.038970947265625,
-0.0060577392578125,
-0.0007996559143066406,
-0.00377655029296875,
-0.0143585205078125,
0.0003705024719238281,
0.01425933837890625,
0.027862548828125,
-0.0180206298828125,
-0.037811279296875,
-0.0017185211181640625,
-0.020782470703125,
-0.005802154541015625,
0.017608642578125,
0.002948760986328125,
0.0022106170654296875,
-0.038665771484375,
-0.055145263671875,
0.031951904296875,
-0.022552490234375,
0.0010118484497070312,
0.012664794921875,
-0.024566650390625,
-0.018646240234375,
-0.0077972412109375,
0.0252838134765625,
-0.00954437255859375,
0.0068511962890625,
0.0007557868957519531,
0.0004322528839111328,
-0.0249786376953125,
0.022552490234375,
-0.04608154296875,
0.023193359375,
-0.00042057037353515625,
-0.052398681640625,
-0.01154327392578125,
-0.0264739990234375,
0.00145721435546875,
0.00827789306640625,
-0.0026836395263671875,
0.0020503997802734375,
-0.00858306884765625,
-0.0223846435546875,
-0.028900146484375,
-0.03680419921875,
0.06561279296875,
-0.045684814453125,
0.0098419189453125,
0.03399658203125,
0.034149169921875,
-0.0193328857421875,
-0.0195465087890625,
0.0252685546875,
-0.07177734375,
0.007457733154296875,
0.002414703369140625,
0.0237884521484375,
0.0158843994140625,
0.0093841552734375,
-0.044342041015625,
0.054840087890625,
-0.0384521484375,
0.03289794921875,
0.034423828125,
0.007137298583984375,
-0.002655029296875,
-0.0077667236328125,
-0.0277099609375,
0.06048583984375,
-0.01297760009765625,
0.007427215576171875,
-0.030609130859375,
0.0216827392578125,
0.007808685302734375,
-0.00510406494140625,
0.05706787109375,
0.0253448486328125,
-0.080322265625,
-0.0173187255859375,
0.029449462890625,
0.01873779296875,
0.030426025390625,
0.07171630859375,
-0.0157012939453125,
-0.002643585205078125,
0.026397705078125,
-0.0173187255859375,
0.0477294921875,
-0.031707763671875,
-0.023895263671875,
-0.0034084320068359375,
0.017852783203125,
0.015899658203125,
-0.01137542724609375,
0.054718017578125,
-0.04962158203125,
0.00008726119995117188,
0.041595458984375,
0.0119171142578125,
0.0296783447265625,
0.039825439453125,
0.046356201171875,
-0.0298919677734375,
0.0237274169921875,
-0.0244140625,
0.056396484375,
-0.027862548828125,
0.00469970703125,
0.0191802978515625,
0.0011396408081054688,
0.040374755859375,
-0.025634765625,
-0.00559234619140625,
-0.00022113323211669922,
0.002147674560546875,
-0.002445220947265625,
-0.0362548828125,
0.00766754150390625,
-0.0853271484375,
-0.051483154296875,
0.04290771484375,
0.0347900390625,
-0.001804351806640625,
-0.061187744140625,
0.019989013671875,
0.01558685302734375,
-0.021697998046875,
0.0197601318359375,
-0.0290069580078125,
-0.019866943359375,
0.05450439453125,
-0.0226287841796875,
-0.0116729736328125,
0.006572723388671875,
0.0643310546875,
-0.002471923828125,
-0.0200347900390625,
-0.03076171875,
-0.043609619140625,
-0.0280914306640625,
0.043701171875,
0.00919342041015625,
0.00881195068359375,
-0.0236968994140625,
0.035675048828125,
-0.0248260498046875,
0.004947662353515625,
-0.003490447998046875,
0.0408935546875,
-0.0186309814453125,
0.02691650390625,
-0.074951171875,
-0.06591796875,
0.0166778564453125,
0.048126220703125,
0.03857421875,
0.01413726806640625,
0.0014867782592773438,
0.043548583984375,
0.06292724609375,
0.016326904296875,
0.05029296875,
0.0216522216796875,
0.0216217041015625,
-0.058746337890625,
0.03643798828125,
0.003360748291015625,
0.0010614395141601562,
0.01505279541015625,
-0.002254486083984375,
0.055877685546875,
-0.0162200927734375,
0.02557373046875,
-0.00038433074951171875,
-0.033233642578125,
0.003662109375,
0.009307861328125,
0.0645751953125,
0.0130767822265625,
-0.0887451171875,
-0.01666259765625,
0.01016998291015625,
-0.02764892578125,
-0.00829315185546875,
0.0180206298828125,
-0.047515869140625,
0.040252685546875,
0.004795074462890625,
-0.004852294921875,
0.038177490234375,
-0.0535888671875,
0.0298614501953125,
-0.009002685546875,
-0.0231475830078125,
-0.00567626953125,
-0.0254974365234375,
-0.02825927734375,
-0.040191650390625,
0.0592041015625,
0.033233642578125,
0.056549072265625,
-0.0270843505859375,
0.0537109375,
0.02734375,
-0.075439453125,
0.053802490234375,
0.0261993408203125,
-0.041229248046875,
0.00421142578125,
-0.018218994140625,
-0.0212554931640625,
-0.030181884765625,
0.01187896728515625,
0.0258636474609375,
-0.0226287841796875,
-0.00830841064453125,
-0.0222015380859375,
0.0108795166015625,
0.00890350341796875,
0.010711669921875,
-0.0184783935546875,
-0.0338134765625,
-0.01209259033203125,
0.0246734619140625,
0.0126800537109375,
0.0077667236328125,
-0.034820556640625,
-0.0025959014892578125,
0.018341064453125,
-0.031005859375,
-0.0039825439453125,
0.0221710205078125,
-0.0008411407470703125,
0.034881591796875,
-0.00778961181640625,
-0.05548095703125,
-0.013580322265625,
-0.01517486572265625,
-0.015533447265625,
0.01142120361328125,
0.037841796875,
-0.01502227783203125,
-0.029571533203125,
0.0151824951171875,
-0.0133514404296875,
-0.0006079673767089844,
-0.054779052734375,
-0.0234375,
0.022735595703125,
0.0135650634765625,
0.0033245086669921875,
-0.046905517578125,
-0.0241546630859375,
-0.04827880859375,
-0.022125244140625,
0.00986480712890625,
-0.040374755859375,
-0.068603515625,
-0.06048583984375,
0.000507354736328125,
0.01369476318359375,
0.0059356689453125,
-0.072998046875,
0.03900146484375,
-0.006359100341796875,
0.04278564453125,
-0.0161285400390625,
-0.029541015625,
-0.00833892822265625,
-0.00130462646484375,
-0.02752685546875,
-0.048309326171875,
-0.05322265625,
0.027862548828125,
-0.0328369140625,
0.0282440185546875,
0.0261688232421875,
-0.03594970703125,
0.0186920166015625,
0.07666015625,
0.057220458984375,
0.12176513671875,
0.02886962890625,
-0.0328369140625,
-0.0259552001953125,
-0.00745391845703125,
0.033447265625,
0.006725311279296875,
-0.01654052734375,
-0.01415252685546875,
-0.040557861328125,
0.031494140625,
-0.035400390625,
-0.025848388671875,
-0.04736328125,
-0.062042236328125,
0.10400390625,
0.001094818115234375,
-0.021392822265625,
-0.041229248046875,
0.031341552734375,
-0.014434814453125,
0.0126800537109375,
-0.01012420654296875,
0.00787353515625,
-0.006015777587890625,
0.02117919921875,
0.0173797607421875,
0.0120849609375,
0.0068359375,
0.006572723388671875,
-0.0271453857421875,
0.0294036865234375,
0.0157623291015625,
0.00617218017578125,
-0.00458526611328125,
0.00691986083984375,
-0.01422882080078125,
0.001415252685546875,
-0.034423828125,
-0.0487060546875,
-0.01580810546875,
0.01262664794921875,
0.0138092041015625,
0.0177154541015625,
-0.04547119140625,
0.0065155029296875,
0.040924072265625,
0.06976318359375,
0.01302337646484375,
-0.035430908203125,
0.053802490234375,
-0.033935546875,
-0.033416748046875,
0.01763916015625,
0.0106658935546875,
-0.0197601318359375,
0.0236053466796875,
0.0157623291015625,
-0.00960540771484375,
-0.01334381103515625,
0.01282501220703125,
-0.03228759765625,
-0.01323699951171875,
0.00760650634765625,
-0.0034046173095703125,
-0.0275421142578125,
-0.00006240606307983398,
0.09454345703125,
-0.05535888671875,
0.00016927719116210938,
0.032440185546875,
-0.0023212432861328125,
0.0411376953125,
0.00785064697265625,
-0.01305389404296875,
0.007732391357421875,
-0.0152435302734375,
0.0224609375,
0.01525115966796875,
0.018951416015625,
-0.014495849609375,
0.005992889404296875,
-0.0163421630859375,
0.034637451171875,
-0.006420135498046875,
0.04144287109375,
-0.0031375885009765625,
0.058685302734375,
0.02423095703125,
0.06536865234375,
-0.0200042724609375,
-0.007904052734375,
-0.0188140869140625,
0.012054443359375,
-0.01483917236328125,
-0.00244903564453125,
0.040679931640625,
-0.05120849609375,
0.017059326171875,
0.0161285400390625,
0.01216888427734375,
-0.0340576171875,
0.005352020263671875,
-0.046173095703125,
0.00754547119140625,
0.0021800994873046875
] |
e2130b1d78f489d69cbb0fd25347f026a9bc9640
|
Wordpress Stackexchange
Q: Update Wordpress with SFTP instead of FTP Is there a way to update Wordpress without the use of FTP, but with SFTP (which uses SSH)? I've only got my server set up for SSH access (and therefore SCP/SFTP).
A: Configuration instructions in Codex on Enabling SSH Upgrade Access recommend either:
*
*Using SSH SFTP Updater Support plugin from official repository.
*Using built–in SSH2 support, which requires the PECL SSH2 extension installed on the server.
It used to refer to this tutorial: Using SSH to Install/Upgrade in before, which might be of use.
|
Q: Update Wordpress with SFTP instead of FTP Is there a way to update Wordpress without the use of FTP, but with SFTP (which uses SSH)? I've only got my server set up for SSH access (and therefore SCP/SFTP).
A: Configuration instructions in Codex on Enabling SSH Upgrade Access recommend either:
*
*Using SSH SFTP Updater Support plugin from official repository.
*Using built–in SSH2 support, which requires the PECL SSH2 extension installed on the server.
It used to refer to this tutorial: Using SSH to Install/Upgrade in before, which might be of use.
A: I was able to do it quite easily with this plugin:
http://wordpress.org/extend/plugins/ssh-sftp-updater-support/
|
wordpress
|
{
"language": "en",
"length": 106,
"provenance": "stackexchange_00019.jsonl.gz:411638",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24028"
}
|
[
0.0303802490234375,
0.022491455078125,
-0.01641845703125,
-0.03961181640625,
0.029632568359375,
-0.0199127197265625,
0.0301971435546875,
-0.01255035400390625,
0.00396728515625,
-0.0016489028930664062,
-0.024139404296875,
-0.0208587646484375,
0.0035343170166015625,
-0.0259552001953125,
0.02203369140625,
-0.02874755859375,
0.010711669921875,
0.00612640380859375,
0.0151824951171875,
-0.018768310546875,
-0.014678955078125,
-0.003856658935546875,
0.043426513671875,
0.004215240478515625,
0.0197601318359375,
0.02630615234375,
0.043853759765625,
-0.02044677734375,
0.02813720703125,
0.005496978759765625,
0.0243377685546875,
-0.050933837890625,
0.050811767578125,
0.033660888671875,
-0.0830078125,
-0.0323486328125,
-0.0231475830078125,
0.0014581680297851562,
-0.045745849609375,
0.053985595703125,
-0.0284271240234375,
0.0325927734375,
0.0699462890625,
-0.005817413330078125,
0.0083770751953125,
-0.0313720703125,
-0.04095458984375,
-0.0738525390625,
0.01045989990234375,
0.0017795562744140625,
-0.00203704833984375,
0.0240936279296875,
0.0199127197265625,
0.0250396728515625,
-0.00914764404296875,
-0.009124755859375,
0.0116119384765625,
-0.00867462158203125,
0.0131988525390625,
-0.09417724609375,
-0.026947021484375,
0.0146331787109375,
0.05767822265625,
0.09326171875,
0.0201263427734375,
0.004276275634765625,
0.029327392578125,
0.0201416015625,
-0.1085205078125,
0.0108795166015625,
0.07763671875,
-0.05804443359375,
-0.01433563232421875,
0.00799560546875,
0.005214691162109375,
-0.036224365234375,
0.01708984375,
-0.0181884765625,
0.00011336803436279297,
0.0374755859375,
0.024261474609375,
-0.0030765533447265625,
-0.0220489501953125,
-0.0264434814453125,
-0.00316619873046875,
-0.004791259765625,
0.0011663436889648438,
-0.008331298828125,
-0.02374267578125,
-0.007503509521484375,
-0.017578125,
0.0004394054412841797,
-0.03338623046875,
0.00406646728515625,
-0.01279449462890625,
-0.0188140869140625,
-0.02642822265625,
-0.0277252197265625,
0.0005269050598144531,
0.05816650390625,
-0.01904296875,
-0.038360595703125,
0.08294677734375,
-0.044189453125,
-0.0231475830078125,
0.047027587890625,
0.0289154052734375,
0.031524658203125,
0.01125335693359375,
0.0028247833251953125,
-0.00441741943359375,
-0.021942138671875,
0.01378631591796875,
0.0014801025390625,
-0.0006508827209472656,
0.037506103515625,
-0.0156707763671875,
0.052825927734375,
-0.0212249755859375,
0.081787109375,
-0.0025634765625,
0.01239776611328125,
-0.027313232421875,
-0.0026874542236328125,
0.01873779296875,
0.01343536376953125,
-0.01183319091796875,
0.01120758056640625,
-0.00354766845703125,
-0.018035888671875,
-0.0216064453125,
0.040771484375,
0.06719970703125,
0.01042938232421875,
-0.00910186767578125,
-0.002689361572265625,
0.01393890380859375,
0.01259613037109375,
-0.0006251335144042969,
0.0160064697265625,
0.0018329620361328125,
-0.03497314453125,
-0.0178680419921875,
-0.0006628036499023438,
0.031402587890625,
0.0145111083984375,
0.0269012451171875,
0.023040771484375,
-0.011322021484375,
-0.04302978515625,
0.034149169921875,
0.02142333984375,
0.01023101806640625,
0.0167388916015625,
0.032135009765625,
-0.00330352783203125,
0.04364013671875,
-0.02447509765625,
0.0013895034790039062,
-0.0200347900390625,
0.0002582073211669922,
-0.006008148193359375,
0.0251617431640625,
0.0230560302734375,
-0.004146575927734375,
0.024932861328125,
-0.0182647705078125,
-0.0032253265380859375,
0.03497314453125,
-0.054718017578125,
0.047821044921875,
-0.015777587890625,
0.114990234375,
0.005489349365234375,
0.00009882450103759766,
0.027435302734375,
0.049407958984375,
0.01331329345703125,
0.0258331298828125,
0.021881103515625,
0.0155487060546875,
-0.0081939697265625,
0.09912109375,
-0.038604736328125,
-0.0118408203125,
0.0174407958984375,
-0.0033111572265625,
0.0521240234375,
0.01666259765625,
0.024688720703125,
-0.03656005859375,
0.0050811767578125,
-0.026336669921875,
0.025299072265625,
0.0008149147033691406,
-0.00264739990234375,
0.01415252685546875,
0.0199432373046875,
0.001712799072265625,
-0.050262451171875,
-0.01108551025390625,
0.001476287841796875,
-0.01435089111328125,
-0.0165557861328125,
-0.017425537109375,
-0.0240936279296875,
-0.005550384521484375,
0.0136566162109375,
0.032745361328125,
0.0066680908203125,
-0.0178680419921875,
-0.02813720703125,
0.037078857421875,
-0.055938720703125,
-0.05426025390625,
-0.03277587890625,
-0.0288238525390625,
0.08697509765625,
-0.011932373046875,
0.0953369140625,
-0.030517578125,
-0.07904052734375,
-0.007251739501953125,
-0.037994384765625,
-0.0083465576171875,
-0.01512908935546875,
0.00614166259765625,
-0.007617950439453125,
0.0211639404296875,
0.00003808736801147461,
0.040802001953125,
-0.0047149658203125,
-0.0291900634765625,
0.007659912109375,
-0.035247802734375,
0.005107879638671875,
-0.0284881591796875,
0.00554656982421875,
0.0088653564453125,
0.031341552734375,
0.0277252197265625,
-0.0023136138916015625,
-0.01070404052734375,
0.008056640625,
0.0338134765625,
-0.015869140625,
0.029327392578125,
-0.0013933181762695312,
-0.0122833251953125,
0.005367279052734375,
0.006511688232421875,
-0.02691650390625,
0.0209197998046875,
-0.02520751953125,
-0.0105438232421875,
0.035247802734375,
0.017364501953125,
-0.01287078857421875,
-0.02197265625,
-0.00746917724609375,
0.0160675048828125,
-0.059173583984375,
-0.08270263671875,
-0.00125885009765625,
0.00335693359375,
0.0112152099609375,
0.0263214111328125,
0.026275634765625,
0.004947662353515625,
-0.005397796630859375,
0.0012912750244140625,
-0.03497314453125,
0.02618408203125,
0.03759765625,
-0.032806396484375,
0.059295654296875,
-0.01396942138671875,
-0.0175018310546875,
0.037109375,
0.0294036865234375,
-0.0355224609375,
-0.01488494873046875,
0.0355224609375,
0.003459930419921875,
-0.01485443115234375,
-0.003429412841796875,
0.058074951171875,
-0.005016326904296875,
-0.0007114410400390625,
0.0033779144287109375,
0.039764404296875,
-0.0013141632080078125,
-0.005344390869140625,
0.00677490234375,
0.01241302490234375,
-0.0294036865234375,
0.05419921875,
-0.0104217529296875,
-0.005649566650390625,
0.0267791748046875,
0.0260467529296875,
0.052703857421875,
0.042083740234375,
-0.03485107421875,
0.019989013671875,
0.007549285888671875,
0.02825927734375,
0.0133514404296875,
0.005340576171875,
0.0308837890625,
-0.087646484375,
-0.0296173095703125,
-0.004329681396484375,
-0.0268402099609375,
-0.039947509765625,
-0.049560546875,
-0.03741455078125,
-0.036590576171875,
-0.1378173828125,
-0.0819091796875,
-0.0008940696716308594,
-0.10260009765625,
0.00738525390625,
-0.0073394775390625,
-0.049957275390625,
-0.0219268798828125,
0.043975830078125,
0.02001953125,
0.01149749755859375,
-0.01495361328125,
-0.0214080810546875,
-0.053741455078125,
-0.0689697265625,
-0.040618896484375,
0.01251983642578125,
0.0180816650390625,
-0.003398895263671875,
0.00347137451171875,
-0.01342010498046875,
-0.0555419921875,
-0.0185546875,
0.053497314453125,
0.0017023086547851562,
-0.003231048583984375,
0.0033626556396484375,
-0.035797119140625,
0.013885498046875,
-0.005687713623046875,
0.03802490234375,
0.0291900634765625,
-0.005992889404296875,
0.003726959228515625,
-0.0003304481506347656,
-0.0157012939453125,
-0.008331298828125,
0.003192901611328125,
0.0028400421142578125,
-0.01152801513671875,
-0.02545166015625,
-0.058258056640625,
0.0107269287109375,
-0.0046844482421875,
-0.03125,
-0.00013399124145507812,
0.0223541259765625,
-0.02874755859375,
-0.0210723876953125,
-0.007289886474609375,
0.0037364959716796875,
0.01476287841796875,
0.021087646484375,
0.0223846435546875,
-0.0146331787109375,
-0.034454345703125,
-0.03289794921875,
-0.03692626953125,
-0.0005164146423339844,
-0.0313720703125,
0.0208587646484375,
-0.01209259033203125,
-0.0081787109375,
-0.0287628173828125,
0.025115966796875,
-0.0347900390625,
-0.053314208984375,
0.05572509765625,
-0.015716552734375,
0.0226898193359375,
-0.08319091796875,
-0.03643798828125,
-0.045379638671875,
0.09222412109375,
-0.0015993118286132812,
-0.041107177734375,
-0.0090179443359375,
0.0257415771484375,
-0.02728271484375,
-0.039398193359375,
0.027618408203125,
-0.01462554931640625,
-0.0274658203125,
-0.01064300537109375,
-0.0196533203125,
-0.0195770263671875,
0.018280029296875,
-0.0933837890625,
0.00498199462890625,
-0.039459228515625,
0.004337310791015625,
0.0109710693359375,
-0.0020599365234375,
-0.0277252197265625,
-0.00890350341796875,
-0.045867919921875,
0.005542755126953125,
-0.0263214111328125,
-0.015533447265625,
-0.0009918212890625,
-0.004123687744140625,
-0.005889892578125,
-0.01204681396484375,
0.0206451416015625,
-0.00933074951171875,
0.01300048828125,
0.01145172119140625,
0.0038700103759765625,
0.0158538818359375,
-0.0191650390625,
-0.00945281982421875,
0.0276947021484375,
0.022369384765625,
-0.01378631591796875,
-0.0286407470703125,
-0.03948974609375,
-0.014801025390625,
-0.033599853515625,
0.0012950897216796875,
0.00013709068298339844,
0.0295257568359375,
-0.01519775390625,
-0.0071868896484375,
-0.01427459716796875,
-0.053192138671875,
0.017669677734375,
-0.0222625732421875,
-0.01296234130859375,
-0.038299560546875,
-0.04443359375,
0.05792236328125,
0.034759521484375,
-0.0190277099609375,
0.0030307769775390625,
0.056488037109375,
0.01214599609375,
-0.040496826171875,
-0.06915283203125,
-0.00469207763671875,
0.01441192626953125,
0.037567138671875,
0.040252685546875,
0.024658203125,
0.0157470703125,
-0.01522064208984375,
0.033599853515625,
-0.0196075439453125,
-0.0002435445785522461,
-0.0302581787109375,
0.0171966552734375,
-0.01407623291015625,
-0.005107879638671875,
0.005107879638671875,
0.05712890625,
-0.0009684562683105469,
0.0017995834350585938,
0.0209503173828125,
-0.0081634521484375,
-0.00835418701171875,
0.0352783203125,
-0.05511474609375,
-0.0399169921875,
-0.014190673828125,
0.0120849609375,
-0.05010986328125,
0.0182952880859375,
0.031463623046875,
-0.0111083984375,
-0.0159149169921875,
-0.013641357421875,
-0.031463623046875,
-0.0268707275390625,
-0.0219573974609375,
0.0037212371826171875,
-0.023162841796875,
-0.0114288330078125,
-0.032501220703125,
-0.019561767578125,
-0.0092620849609375,
0.0877685546875,
0.01149749755859375,
-0.0482177734375,
-0.021759033203125,
0.0004477500915527344,
0.01025390625,
0.004077911376953125,
0.024993896484375,
0.036407470703125,
-0.0498046875,
0.00122833251953125,
-0.0310821533203125,
-0.005359649658203125,
-0.05401611328125,
-0.0457763671875,
-0.0100555419921875,
0.004169464111328125,
-0.037933349609375,
-0.00699615478515625,
-0.005115509033203125,
0.023590087890625,
-0.04498291015625,
-0.0007414817810058594,
0.01171875,
0.0426025390625,
-0.03662109375,
0.0228118896484375,
0.027801513671875,
0.0279388427734375,
-0.086669921875,
0.037872314453125,
-0.03192138671875,
-0.0284576416015625,
0.035400390625,
0.048095703125,
0.00348663330078125,
-0.004383087158203125,
0.006336212158203125,
0.006702423095703125,
-0.00634765625,
0.0175323486328125,
0.027618408203125,
-0.0135345458984375,
0.0003466606140136719,
0.0266265869140625,
0.0028591156005859375,
0.0140533447265625,
0.00030159950256347656,
-0.01507568359375,
0.0205841064453125,
0.006252288818359375,
-0.033111572265625,
-0.0265045166015625,
-0.01519012451171875,
0.0063018798828125,
0.0419921875,
-0.00685882568359375,
-0.019287109375,
0.01800537109375,
0.00624847412109375,
-0.029388427734375,
-0.016204833984375,
0.05828857421875,
0.02117919921875,
0.0032596588134765625,
-0.007320404052734375,
-0.0316162109375,
-0.00897979736328125,
0.0018243789672851562,
0.0350341796875,
-0.01392364501953125,
-0.045989990234375,
0.00174713134765625,
-0.0274658203125,
-0.0108642578125,
0.0205078125,
-0.01396942138671875,
-0.042022705078125,
-0.006061553955078125,
0.0183563232421875,
0.027587890625,
-0.0220489501953125,
-0.040618896484375,
-0.01540374755859375,
-0.0005903244018554688,
0.01806640625,
0.0235595703125,
0.032562255859375,
0.0112457275390625,
-0.032745361328125,
0.051116943359375,
0.022308349609375,
0.0140380859375,
-0.015716552734375,
-0.039337158203125,
0.0054779052734375,
-0.04437255859375,
0.01396942138671875,
-0.00838470458984375,
0.0343017578125,
-0.037353515625,
-0.051727294921875,
0.003997802734375,
-0.0044097900390625,
-0.035552978515625,
-0.0069580078125,
-0.02166748046875,
0.03387451171875,
-0.00962066650390625,
-0.0281982421875,
0.0101318359375,
-0.006465911865234375,
0.0428466796875,
-0.0123138427734375,
-0.0042266845703125,
0.01087188720703125,
-0.0104217529296875,
0.016754150390625,
0.003749847412109375,
0.00986480712890625,
0.046844482421875,
0.060333251953125,
-0.046661376953125,
-0.0007758140563964844,
0.05169677734375,
-0.0263824462890625,
-0.0231170654296875,
-0.0163116455078125,
-0.0457763671875,
0.0286865234375,
0.0113525390625,
-0.0128631591796875,
-0.0140228271484375,
-0.0183868408203125,
-0.01415252685546875,
0.0181884765625,
0.0256500244140625,
0.08013916015625,
-0.0282745361328125,
0.01360321044921875,
0.032562255859375,
-0.012176513671875,
0.0230255126953125,
-0.006397247314453125,
-0.025634765625,
-0.037139892578125,
0.03662109375,
-0.00838470458984375,
-0.0297393798828125,
-0.006000518798828125,
0.004669189453125,
-0.00433349609375,
-0.005893707275390625,
0.039459228515625,
0.01525115966796875,
0.00054931640625,
0.00007981061935424805,
0.012542724609375,
0.006175994873046875,
-0.013641357421875,
0.002956390380859375,
0.0189208984375,
-0.055572509765625,
-0.0684814453125,
-0.008880615234375,
0.00844573974609375,
-0.042236328125,
0.028076171875,
0.0179443359375,
0.051849365234375,
0.03570556640625,
0.0258941650390625,
-0.0162506103515625,
-0.019195556640625,
0.038848876953125,
0.01335906982421875,
-0.033905029296875,
0.0178375244140625,
0.014862060546875,
0.00238800048828125,
0.0225067138671875,
0.006488800048828125,
-0.04266357421875,
-0.0027217864990234375,
0.0287017822265625,
0.0885009765625,
-0.0281829833984375,
-0.0290069580078125,
0.035858154296875,
0.0085906982421875,
-0.0178070068359375,
0.043731689453125,
-0.022918701171875,
-0.031402587890625,
-0.038177490234375,
0.02044677734375,
-0.0643310546875,
0.0109710693359375,
0.04888916015625,
-0.04058837890625,
0.11328125,
0.02935791015625,
-0.0267486572265625,
-0.006649017333984375,
0.07373046875,
-0.044281005859375,
0.04052734375,
-0.01702880859375,
0.0174713134765625,
-0.007526397705078125,
0.006114959716796875,
-0.043975830078125,
-0.0094451904296875,
-0.00830078125,
0.026947021484375,
0.08563232421875,
0.016754150390625,
-0.035919189453125,
0.0094146728515625,
0.0740966796875,
0.056243896484375,
0.017578125,
0.024505615234375,
-0.0017910003662109375,
0.00860595703125,
0.0232391357421875,
-0.01934814453125,
0.0367431640625,
-0.031951904296875,
-0.0191497802734375,
0.00960540771484375,
0.0347900390625,
0.034759521484375,
0.0146331787109375,
0.0118560791015625,
-0.01529693603515625,
0.019683837890625,
0.0162506103515625,
0.041015625,
0.0047149658203125,
0.02197265625,
0.005413055419921875,
-0.0025348663330078125,
0.00756072998046875,
-0.031280517578125,
0.042022705078125,
-0.019073486328125,
-0.0016393661499023438,
-0.000885009765625,
0.00299835205078125,
0.00873565673828125,
0.018707275390625,
-0.00345611572265625,
0.043060302734375,
-0.009124755859375,
0.044036865234375,
0.013916015625,
0.0174713134765625,
-0.03326416015625,
0.0323486328125,
0.048675537109375,
0.053466796875,
-0.04840087890625,
-0.0095367431640625,
-0.0008068084716796875,
-0.0196990966796875,
0.0021915435791015625,
-0.0499267578125,
-0.007659912109375,
-0.00848388671875,
-0.038604736328125,
-0.002834320068359375,
0.0142822265625,
0.01727294921875,
-0.01015472412109375,
0.0108489990234375,
0.028594970703125,
-0.006561279296875,
0.038177490234375,
-0.0076904296875,
0.024871826171875,
-0.0009298324584960938,
-0.004222869873046875,
-0.0111541748046875,
0.0218353271484375,
-0.00023066997528076172,
0.013671875,
-0.0192108154296875,
0.018829345703125,
0.03118896484375,
0.01261138916015625,
-0.0113525390625,
-0.00415802001953125,
0.02191162109375,
0.022064208984375,
0.039306640625,
0.05267333984375,
0.058197021484375,
0.03997802734375,
0.004917144775390625,
0.0142669677734375,
0.063720703125,
-0.0149383544921875,
0.018585205078125,
-0.0013637542724609375,
-0.0196685791015625,
-0.00881195068359375,
-0.03826904296875,
-0.01012420654296875,
0.025543212890625,
0.029510498046875,
0.005615234375,
0.01387786865234375,
0.00675201416015625,
-0.006610870361328125,
0.04119873046875,
0.01007080078125,
0.0200653076171875,
0.032318115234375,
-0.00856781005859375,
-0.023773193359375,
0.018218994140625,
0.033447265625,
-0.0009379386901855469,
0.0218963623046875,
-0.003063201904296875,
0.0237884521484375,
-0.006099700927734375,
-0.01367950439453125,
0.024078369140625,
-0.0037479400634765625,
0.0021915435791015625,
-0.0101470947265625,
0.0076751708984375,
-0.0189666748046875,
-0.02899169921875,
-0.03857421875,
-0.0290069580078125,
0.08331298828125,
0.01221466064453125,
0.0662841796875,
-0.04229736328125,
0.033416748046875,
-0.0205078125,
0.0296630859375,
-0.035400390625,
0.004940032958984375,
-0.065185546875,
0.0142059326171875,
0.038909912109375,
0.0032444000244140625,
-0.0143280029296875,
0.0595703125,
0.021331787109375,
-0.0181884765625,
0.043853759765625,
0.003108978271484375,
-0.01119232177734375,
-0.0182037353515625,
-0.00959014892578125,
-0.037322998046875,
-0.0350341796875,
-0.004638671875,
0.0139617919921875,
-0.0022430419921875,
0.0037631988525390625,
-0.0099334716796875,
0.0352783203125,
-0.03216552734375,
0.00519561767578125,
-0.0015687942504882812,
-0.0166168212890625,
-0.0058746337890625,
0.0148773193359375,
-0.044647216796875,
0.013916015625,
0.03472900390625,
-0.015869140625,
0.028594970703125,
-0.004146575927734375,
0.0220489501953125,
0.0212554931640625,
-0.05413818359375,
-0.0178070068359375,
0.01454925537109375,
0.037353515625,
-0.00742340087890625,
0.0210418701171875,
-0.031646728515625,
0.0019083023071289062,
0.018646240234375,
-0.004161834716796875,
0.0182037353515625,
-0.0238800048828125,
-0.02593994140625,
-0.00043010711669921875,
-0.0219268798828125,
-0.01532745361328125,
-0.004665374755859375,
-0.0262603759765625,
0.038848876953125,
-0.0013132095336914062,
-0.0167694091796875,
-0.0014581680297851562,
-0.021270751953125,
-0.0138092041015625,
0.0025997161865234375,
-0.01265716552734375,
-0.0125274658203125,
-0.0017337799072265625,
-0.0137481689453125,
-0.0755615234375,
-0.048828125,
0.08306884765625,
-0.0498046875,
0.00461578369140625,
0.004428863525390625,
-0.0097198486328125,
0.00368499755859375,
-0.0135955810546875,
0.0173797607421875,
0.03399658203125,
0.034576416015625,
-0.01099395751953125,
0.01114654541015625,
0.0057525634765625,
-0.011322021484375,
-0.03265380859375,
0.01116943359375,
-0.030670166015625,
-0.0215606689453125,
-0.0117645263671875,
0.0120391845703125,
0.0330810546875,
-0.0545654296875,
-0.14111328125,
0.0433349609375,
-0.0246734619140625,
-0.05169677734375,
-0.060394287109375,
-0.0294036865234375,
-0.0206451416015625,
0.071044921875,
-0.0256500244140625,
-0.00218963623046875,
-0.05401611328125,
0.050018310546875,
-0.001483917236328125,
0.046630859375,
-0.0217742919921875,
0.0194091796875,
0.019012451171875,
0.04180908203125,
0.039642333984375,
-0.018463134765625,
-0.042633056640625,
0.0038928985595703125,
0.0284576416015625,
0.037841796875,
-0.0169830322265625,
-0.0055389404296875,
0.03997802734375,
-0.00809478759765625,
-0.00920867919921875,
-0.020294189453125,
-0.058563232421875,
-0.01393890380859375,
0.06903076171875,
0.1143798828125,
0.032073974609375,
-0.055816650390625,
-0.032196044921875,
-0.050048828125,
0.024200439453125,
-0.0257415771484375,
0.00019752979278564453,
-0.0426025390625,
0.006259918212890625,
-0.0007371902465820312,
0.0000718235969543457,
-0.0036220550537109375,
-0.01605224609375,
-0.0259246826171875,
-0.0111083984375,
-0.002269744873046875,
-0.0022907257080078125,
-0.003032684326171875,
-0.00033473968505859375,
0.06951904296875,
-0.0290374755859375,
0.05401611328125,
0.0037899017333984375,
0.005176544189453125,
0.06494140625,
0.0540771484375,
-0.0300750732421875,
0.04046630859375,
-0.033935546875,
0.0024814605712890625,
0.003231048583984375,
0.021759033203125,
-0.0226287841796875,
0.026092529296875,
0.0206146240234375,
0.01776123046875,
-0.0100250244140625,
0.00765228271484375,
-0.0212860107421875,
0.03729248046875,
-0.0131378173828125,
0.046112060546875,
-0.01071929931640625,
-0.08935546875,
-0.029693603515625,
0.01190185546875,
-0.0301666259765625,
0.01088714599609375,
-0.0027103424072265625,
-0.0030364990234375,
0.01515960693359375,
-0.0232391357421875,
-0.0008029937744140625,
-0.018280029296875,
0.0005741119384765625,
0.0162200927734375,
-0.0269012451171875,
0.00830078125
] |
d8bf741449cc49bd062efb61736c98fa748cbf34
|
Wordpress Stackexchange
Q: Need to give custom page template for each language in WPML I need to give each page a custom/different page template for every language page in WPML.
eg: Let i have a test page in English and french. Is there any way out so that in English i give sidebar template while same page in french don't have sidebar template.
Note: Solution should not be any core condition to be put in code.
Thanks in advance.
A: You can accomplish different sidebar content per language with either the plugin Widget Logic, or with the Dynamic Widgets plugin
Alternatively you can make different sidebar templates per language and use a conditional on the language:
if(ICL_LANGUAGE_CODE=='en'){
get_sidebar('en');
}
if(ICL_LANGUAGE_CODE=='fr'){
get_sidebar('fr');
}
|
Q: Need to give custom page template for each language in WPML I need to give each page a custom/different page template for every language page in WPML.
eg: Let i have a test page in English and french. Is there any way out so that in English i give sidebar template while same page in french don't have sidebar template.
Note: Solution should not be any core condition to be put in code.
Thanks in advance.
A: You can accomplish different sidebar content per language with either the plugin Widget Logic, or with the Dynamic Widgets plugin
Alternatively you can make different sidebar templates per language and use a conditional on the language:
if(ICL_LANGUAGE_CODE=='en'){
get_sidebar('en');
}
if(ICL_LANGUAGE_CODE=='fr'){
get_sidebar('fr');
}
A: You can't, unless you create your own "Page Attributes" meta box, and remove the default one.
And since a post can only have one template assigned, you'll need to create your own function that checks the page templates assigned to the current post and select the one which matches to the selected language (use a different meta key), then do your own template_redirect.
|
wordpress
|
{
"language": "en",
"length": 184,
"provenance": "stackexchange_00019.jsonl.gz:411655",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24082"
}
|
[
-0.01345062255859375,
-0.021240234375,
0.00919342041015625,
-0.04644775390625,
-0.01904296875,
0.0145263671875,
-0.0204010009765625,
0.0079193115234375,
-0.0341796875,
0.006855010986328125,
0.023406982421875,
-0.00962066650390625,
-0.012298583984375,
-0.044647216796875,
0.0400390625,
-0.0233154296875,
0.037200927734375,
0.0174713134765625,
0.04315185546875,
-0.0174407958984375,
0.00911712646484375,
-0.01055908203125,
0.028472900390625,
0.012054443359375,
0.045135498046875,
-0.07647705078125,
0.0247802734375,
0.01100921630859375,
0.01056671142578125,
-0.0134735107421875,
0.03619384765625,
0.020416259765625,
0.046630859375,
-0.01233673095703125,
-0.031463623046875,
-0.0002865791320800781,
-0.026153564453125,
-0.0177459716796875,
-0.039794921875,
0.025726318359375,
0.0204010009765625,
-0.0150909423828125,
0.0156707763671875,
0.0548095703125,
-0.003692626953125,
-0.0279541015625,
0.0140380859375,
-0.040313720703125,
0.006496429443359375,
0.016998291015625,
0.0179595947265625,
-0.0428466796875,
-0.0002627372741699219,
0.0254669189453125,
-0.0223236083984375,
-0.002826690673828125,
-0.01263427734375,
-0.01262664794921875,
0.02117919921875,
0.004787445068359375,
-0.01059722900390625,
0.00441741943359375,
0.013763427734375,
-0.00023055076599121094,
-0.03790283203125,
0.0007886886596679688,
-0.0032100677490234375,
0.02325439453125,
-0.01322174072265625,
-0.054931640625,
-0.004764556884765625,
-0.004611968994140625,
0.00616455078125,
-0.039215087890625,
-0.0205841064453125,
0.01361083984375,
0.0016660690307617188,
-0.0011663436889648438,
-0.00016391277313232422,
-0.0164642333984375,
-0.029876708984375,
0.0131072998046875,
-0.06695556640625,
-0.043304443359375,
0.01116180419921875,
-0.024993896484375,
-0.033294677734375,
-0.0019378662109375,
-0.055206298828125,
-0.0271148681640625,
-0.0279541015625,
-0.0227508544921875,
-0.06201171875,
0.0019140243530273438,
-0.0032405853271484375,
-0.02484130859375,
-0.0131072998046875,
0.0714111328125,
-0.03924560546875,
0.037353515625,
-0.0273284912109375,
-0.0159759521484375,
0.050018310546875,
-0.07080078125,
0.02569580078125,
-0.0123291015625,
-0.0258941650390625,
-0.006435394287109375,
0.050872802734375,
0.04034423828125,
0.0021495819091796875,
0.034088134765625,
0.0099029541015625,
0.004100799560546875,
-0.03369140625,
-0.006877899169921875,
-0.01331329345703125,
-0.015960693359375,
-0.0030078887939453125,
-0.0151214599609375,
-0.0014524459838867188,
0.03033447265625,
0.03350830078125,
-0.038818359375,
0.01715087890625,
0.01012420654296875,
-0.0190887451171875,
-0.047149658203125,
0.00685882568359375,
-0.00408935546875,
-0.037506103515625,
-0.01032257080078125,
0.040618896484375,
0.05596923828125,
0.0266265869140625,
-0.01488494873046875,
0.0172119140625,
-0.00904083251953125,
0.0027408599853515625,
0.006084442138671875,
0.00200653076171875,
0.009368896484375,
0.0260009765625,
-0.0091552734375,
-0.010498046875,
0.006591796875,
0.01401519775390625,
0.0247650146484375,
0.002887725830078125,
-0.0271453857421875,
0.0240936279296875,
-0.0185546875,
0.01337432861328125,
-0.0015096664428710938,
-0.038421630859375,
-0.0106353759765625,
-0.049530029296875,
-0.0024566650390625,
0.0179443359375,
-0.0016536712646484375,
-0.0241241455078125,
-0.024169921875,
-0.0267791748046875,
-0.042633056640625,
-0.040130615234375,
0.012969970703125,
0.0258636474609375,
0.01953125,
0.03045654296875,
-0.004993438720703125,
0.004871368408203125,
-0.0224151611328125,
0.0118408203125,
0.027862548828125,
0.01142120361328125,
0.03277587890625,
-0.039215087890625,
0.0005011558532714844,
0.018341064453125,
0.0037021636962890625,
-0.0004162788391113281,
-0.0260009765625,
0.025360107421875,
0.023529052734375,
-0.06878662109375,
-0.0200958251953125,
0.0142059326171875,
0.076171875,
0.056732177734375,
0.022430419921875,
0.012969970703125,
-0.05865478515625,
-0.07318115234375,
0.05169677734375,
-0.019073486328125,
0.0149078369140625,
-0.0380859375,
0.034088134765625,
-0.0257415771484375,
-0.035430908203125,
-0.0098876953125,
-0.0114898681640625,
0.0211639404296875,
0.0477294921875,
0.00897979736328125,
0.018646240234375,
-0.0150299072265625,
0.0119171142578125,
0.02862548828125,
0.02117919921875,
-0.01047515869140625,
0.016632080078125,
-0.0262298583984375,
-0.024017333984375,
-0.033966064453125,
-0.0014667510986328125,
0.025665283203125,
0.0360107421875,
0.0180816650390625,
-0.01056671142578125,
0.0350341796875,
-0.03399658203125,
0.0195770263671875,
0.060699462890625,
0.009552001953125,
-0.01331329345703125,
-0.007457733154296875,
-0.00778961181640625,
0.01200103759765625,
0.0175933837890625,
-0.03509521484375,
0.018341064453125,
-0.009033203125,
-0.016082763671875,
-0.0379638671875,
0.0016145706176757812,
-0.004489898681640625,
-0.000804901123046875,
0.0076141357421875,
0.03216552734375,
0.024932861328125,
0.0183563232421875,
-0.0048828125,
0.01328277587890625,
0.04510498046875,
-0.0027675628662109375,
0.01568603515625,
-0.00128173828125,
0.006412506103515625,
0.0307159423828125,
0.002208709716796875,
-0.0190277099609375,
-0.00614166259765625,
-0.10516357421875,
0.01079559326171875,
0.0157318115234375,
-0.0280609130859375,
-0.02716064453125,
0.031341552734375,
-0.00814056396484375,
0.0118255615234375,
0.02227783203125,
-0.0154876708984375,
0.01027679443359375,
0.03167724609375,
0.005283355712890625,
0.0258636474609375,
0.01378631591796875,
-0.006565093994140625,
0.00763702392578125,
0.0019626617431640625,
-0.0296783447265625,
0.01806640625,
-0.004322052001953125,
-0.01439666748046875,
0.0294189453125,
-0.0011377334594726562,
-0.0229034423828125,
0.05145263671875,
0.0016412734985351562,
0.0171051025390625,
0.06353759765625,
-0.037139892578125,
-0.0146484375,
-0.0132293701171875,
-0.071044921875,
-0.035308837890625,
0.045745849609375,
0.040771484375,
-0.01502227783203125,
0.0269012451171875,
0.00707244873046875,
-0.0193939208984375,
0.041107177734375,
0.00341796875,
-0.044921875,
0.0628662109375,
-0.04669189453125,
0.049346923828125,
-0.03497314453125,
0.02484130859375,
0.058074951171875,
-0.0189971923828125,
0.0039520263671875,
-0.0029144287109375,
-0.00016069412231445312,
0.0002391338348388672,
0.00820159912109375,
0.003643035888671875,
-0.019256591796875,
-0.01294708251953125,
0.015777587890625,
0.0173187255859375,
0.0462646484375,
-0.00749969482421875,
-0.0244903564453125,
0.01251983642578125,
0.022613525390625,
0.005580902099609375,
-0.0284576416015625,
0.03961181640625,
-0.0250244140625,
0.04412841796875,
-0.00727081298828125,
0.004779815673828125,
-0.0531005859375,
0.0103759765625,
0.0039005279541015625,
0.03045654296875,
-0.0295257568359375,
-0.0577392578125,
-0.033233642578125,
-0.059539794921875,
-0.053314208984375,
-0.017242431640625,
-0.0211181640625,
0.00875091552734375,
0.01300811767578125,
-0.0122222900390625,
-0.05328369140625,
-0.01465606689453125,
0.049896240234375,
-0.01036834716796875,
0.0002357959747314453,
-0.0382080078125,
-0.01548004150390625,
0.03863525390625,
-0.017333984375,
0.00748443603515625,
0.02606201171875,
-0.004322052001953125,
0.0010576248168945312,
-0.006740570068359375,
-0.007427215576171875,
0.00702667236328125,
-0.08154296875,
0.004596710205078125,
0.036712646484375,
-0.0316162109375,
-0.019500732421875,
-0.0914306640625,
0.027191162109375,
-0.0650634765625,
0.059722900390625,
0.039642333984375,
-0.0175323486328125,
-0.0029850006103515625,
0.046722412109375,
-0.0126800537109375,
-0.005725860595703125,
-0.006847381591796875,
-0.037689208984375,
0.05853271484375,
0.0093994140625,
0.00787353515625,
0.0028171539306640625,
0.020355224609375,
-0.0272216796875,
0.01197052001953125,
0.01386260986328125,
-0.007457733154296875,
-0.007335662841796875,
0.01535797119140625,
0.0175018310546875,
-0.0224456787109375,
0.040496826171875,
0.016021728515625,
0.0250091552734375,
0.0251007080078125,
-0.0465087890625,
0.0396728515625,
0.07855224609375,
-0.030609130859375,
-0.004680633544921875,
-0.01033782958984375,
0.0181427001953125,
-0.023773193359375,
-0.060302734375,
-0.037139892578125,
-0.016937255859375,
-0.02215576171875,
0.0219879150390625,
0.012054443359375,
-0.0210723876953125,
-0.03204345703125,
0.033660888671875,
-0.03485107421875,
-0.005184173583984375,
0.05633544921875,
-0.01309967041015625,
-0.0084686279296875,
0.00196075439453125,
-0.02337646484375,
-0.01763916015625,
-0.04302978515625,
-0.003040313720703125,
-0.11053466796875,
-0.0123748779296875,
-0.0521240234375,
0.06378173828125,
0.0252685546875,
-0.06597900390625,
-0.0283203125,
0.03369140625,
0.01470947265625,
0.01025390625,
0.0086517333984375,
-0.0017004013061523438,
0.059539794921875,
0.007213592529296875,
0.002811431884765625,
0.00008940696716308594,
-0.0024700164794921875,
0.03955078125,
-0.0377197265625,
0.052703857421875,
0.00023114681243896484,
-0.0200958251953125,
0.05755615234375,
-0.0682373046875,
-0.04833984375,
-0.01018524169921875,
0.00215911865234375,
0.0330810546875,
-0.007457733154296875,
0.005970001220703125,
-0.0168304443359375,
-0.052490234375,
0.03912353515625,
0.01445770263671875,
-0.01132965087890625,
0.00949859619140625,
0.036712646484375,
-0.006992340087890625,
-0.03759765625,
-0.0809326171875,
0.01001739501953125,
0.041900634765625,
-0.005718231201171875,
0.05322265625,
0.044708251953125,
-0.04058837890625,
0.0814208984375,
0.0291595458984375,
-0.017486572265625,
0.03741455078125,
0.06829833984375,
0.0120849609375,
-0.01313018798828125,
0.019775390625,
0.007648468017578125,
-0.0809326171875,
0.0499267578125,
-0.002231597900390625,
0.00359344482421875,
-0.0005116462707519531,
0.004611968994140625,
-0.019683837890625,
-0.0163116455078125,
-0.029571533203125,
-0.03997802734375,
0.024810791015625,
0.032318115234375,
-0.02752685546875,
-0.01433563232421875,
0.01187896728515625,
-0.0294189453125,
-0.0252838134765625,
-0.015655517578125,
0.082275390625,
0.0213470458984375,
0.04669189453125,
0.02642822265625,
0.034698486328125,
-0.00839996337890625,
0.037689208984375,
0.0024013519287109375,
0.044525146484375,
0.017364501953125,
-0.009490966796875,
-0.0235595703125,
-0.0168304443359375,
-0.005054473876953125,
-0.017730712890625,
0.02496337890625,
0.0467529296875,
0.005462646484375,
-0.00726318359375,
-0.002017974853515625,
0.00553131103515625,
0.00010591745376586914,
-0.041656494140625,
-0.0076904296875,
0.0254669189453125,
-0.01041412353515625,
-0.037261962890625,
0.06182861328125,
-0.00977325439453125,
0.0019054412841796875,
-0.01418304443359375,
0.00652313232421875,
0.0247344970703125,
0.040374755859375,
0.0306854248046875,
-0.025146484375,
-0.01538848876953125,
0.0133209228515625,
-0.01416778564453125,
-0.022186279296875,
0.0117340087890625,
0.03411865234375,
0.0435791015625,
-0.012969970703125,
-0.0255584716796875,
-0.006183624267578125,
-0.029205322265625,
0.0009036064147949219,
0.028900146484375,
0.0011892318725585938,
-0.03857421875,
-0.02740478515625,
-0.01209259033203125,
0.016082763671875,
-0.0213165283203125,
-0.015228271484375,
0.003597259521484375,
-0.051116943359375,
0.00939178466796875,
0.05072021484375,
-0.03594970703125,
0.0107574462890625,
-0.0052642822265625,
-0.04339599609375,
0.0035419464111328125,
0.0347900390625,
-0.08966064453125,
-0.047149658203125,
-0.0018301010131835938,
0.0084686279296875,
0.009033203125,
-0.01059722900390625,
0.0172576904296875,
-0.005313873291015625,
-0.031951904296875,
0.01404571533203125,
0.02410888671875,
0.021636962890625,
0.0009279251098632812,
-0.0108489990234375,
0.0016660690307617188,
-0.039886474609375,
-0.0260162353515625,
-0.0784912109375,
-0.051177978515625,
-0.046112060546875,
0.0013532638549804688,
0.00910186767578125,
0.026824951171875,
-0.006744384765625,
0.01123046875,
-0.0196075439453125,
0.029571533203125,
0.0125579833984375,
0.07958984375,
-0.02215576171875,
0.08209228515625,
-0.01088714599609375,
0.042083740234375,
0.00885009765625,
0.042449951171875,
-0.00936126708984375,
-0.01456451416015625,
-0.008880615234375,
-0.0195770263671875,
-0.0021533966064453125,
-0.01079559326171875,
-0.036407470703125,
0.00531768798828125,
0.0631103515625,
0.01074981689453125,
0.04864501953125,
-0.0341796875,
0.0036411285400390625,
-0.0147552490234375,
0.0301666259765625,
-0.06549072265625,
0.0220184326171875,
0.03826904296875,
-0.0295257568359375,
0.0230712890625,
0.0080413818359375,
-0.021942138671875,
0.047027587890625,
-0.0263214111328125,
0.045166015625,
0.00811004638671875,
-0.003734588623046875,
0.038116455078125,
0.03179931640625,
0.006591796875,
0.04180908203125,
0.0107421875,
0.0257110595703125,
-0.0100860595703125,
-0.0062408447265625,
0.0308074951171875,
-0.0029392242431640625,
0.04248046875,
-0.00872802734375,
-0.01451873779296875,
0.004070281982421875,
-0.020782470703125,
0.0236663818359375,
0.08447265625,
0.0859375,
-0.11273193359375,
0.0032215118408203125,
0.0274505615234375,
-0.0196685791015625,
-0.00310516357421875,
-0.004390716552734375,
-0.0426025390625,
-0.0882568359375,
0.0848388671875,
-0.01349639892578125,
-0.0108489990234375,
0.0235748291015625,
-0.01511383056640625,
-0.0057830810546875,
-0.0024700164794921875,
0.052337646484375,
0.022369384765625,
0.023773193359375,
0.0012235641479492188,
-0.007144927978515625,
0.0302886962890625,
-0.01422119140625,
0.00707244873046875,
0.0019121170043945312,
-0.01320648193359375,
-0.043792724609375,
0.0229339599609375,
-0.0286712646484375,
-0.006534576416015625,
0.049163818359375,
-0.0006127357482910156,
-0.0087432861328125,
0.035919189453125,
-0.0254364013671875,
0.032867431640625,
-0.0137786865234375,
0.002094268798828125,
-0.007770538330078125,
0.007335662841796875,
0.002696990966796875,
-0.0143280029296875,
-0.006778717041015625,
0.005657196044921875,
-0.055572509765625,
-0.006549835205078125,
-0.015655517578125,
0.0196685791015625,
0.11529541015625,
-0.0178680419921875,
-0.0222015380859375,
0.031341552734375,
0.045257568359375,
-0.0220489501953125,
-0.028228759765625,
0.010772705078125,
-0.07757568359375,
-0.05267333984375,
-0.007129669189453125,
-0.035430908203125,
-0.016448974609375,
-0.025482177734375,
-0.07037353515625,
0.055023193359375,
-0.009124755859375,
0.05078125,
0.012786865234375,
0.00574493408203125,
-0.01491546630859375,
-0.0164947509765625,
0.002407073974609375,
0.002899169921875,
0.0261077880859375,
-0.006816864013671875,
-0.017822265625,
-0.01464080810546875,
-0.01318359375,
0.060028076171875,
0.03125,
0.00806427001953125,
0.0239410400390625,
-0.0243072509765625,
-0.0081939697265625,
0.010772705078125,
-0.03143310546875,
0.0013322830200195312,
-0.033660888671875,
0.038177490234375,
-0.00870513916015625,
-0.06903076171875,
0.0258331298828125,
-0.037200927734375,
-0.036956787109375,
-0.0260162353515625,
0.01219940185546875,
0.0289764404296875,
-0.0059814453125,
-0.0014810562133789062,
0.001430511474609375,
-0.02130126953125,
0.0032958984375,
-0.0299530029296875,
-0.0015544891357421875,
0.024444580078125,
0.0021610260009765625,
-0.037933349609375,
-0.0022945404052734375,
-0.033843994140625,
0.044677734375,
-0.0025959014892578125,
0.0159149169921875,
-0.0206146240234375,
0.0016374588012695312,
0.01187896728515625,
0.0154266357421875,
-0.0026302337646484375,
0.046875,
-0.00885772705078125,
0.04071044921875,
0.0012111663818359375,
0.014251708984375,
-0.0237579345703125,
0.061279296875,
-0.0012264251708984375,
0.0210113525390625,
-0.043060302734375,
-0.047607421875,
-0.00644683837890625,
0.003459930419921875,
0.00698089599609375,
0.004974365234375,
-0.007717132568359375,
0.01537322998046875,
0.060577392578125,
0.02783203125,
-0.01088714599609375,
-0.0089263916015625,
0.0259857177734375,
-0.0156402587890625,
-0.058135986328125,
0.0037326812744140625,
0.024566650390625,
-0.05279541015625,
0.0257568359375,
0.0281219482421875,
0.06689453125,
0.0167999267578125,
0.0241851806640625,
-0.0166778564453125,
-0.0290679931640625,
-0.0011358261108398438,
-0.01293182373046875,
-0.0249481201171875,
0.007110595703125,
-0.0284576416015625,
-0.025390625,
-0.0059967041015625,
0.03338623046875,
0.014495849609375,
-0.038299560546875,
0.004337310791015625,
0.01763916015625,
-0.004177093505859375,
-0.022216796875,
0.01389312744140625,
-0.00676727294921875,
0.01317596435546875,
-0.0511474609375,
0.0270843505859375,
-0.00402069091796875,
-0.01849365234375,
0.010223388671875,
-0.0018548965454101562,
0.0159454345703125,
0.00850677490234375,
0.01007080078125,
0.01629638671875,
-0.033966064453125,
0.04364013671875,
0.006900787353515625,
0.0841064453125,
0.0295867919921875,
-0.0699462890625,
0.0047607421875,
-0.043609619140625,
-0.06658935546875,
0.040740966796875,
0.043243408203125,
-0.028717041015625,
0.035369873046875,
0.0239715576171875,
0.01776123046875,
-0.0196380615234375,
-0.0187835693359375,
0.033905029296875,
-0.0213623046875,
0.012176513671875,
0.0207366943359375,
-0.061279296875,
-0.047821044921875,
-0.0433349609375,
0.044952392578125,
0.033538818359375,
0.07244873046875,
0.00008392333984375,
0.040374755859375,
-0.00714874267578125,
0.0280609130859375,
-0.0037174224853515625,
-0.0162506103515625,
0.040618896484375,
0.057281494140625,
0.0396728515625,
-0.048248291015625,
-0.035614013671875,
-0.015472412109375,
0.035980224609375,
-0.033477783203125,
-0.004878997802734375,
-0.0229949951171875,
0.0169830322265625,
-0.0157928466796875,
-0.01085662841796875,
-0.0274810791015625,
-0.0263214111328125,
-0.005878448486328125,
0.02606201171875,
0.019317626953125,
0.016815185546875,
-0.0304107666015625,
0.05255126953125,
-0.043853759765625,
-0.0252532958984375,
0.0362548828125,
-0.069091796875,
-0.0022830963134765625,
0.020355224609375,
0.00592041015625,
-0.0311431884765625,
0.01178741455078125,
-0.006256103515625,
-0.03070068359375,
0.0295257568359375,
0.02703857421875,
0.01374053955078125,
0.0384521484375,
0.0017099380493164062,
-0.039703369140625,
-0.0013437271118164062,
-0.035186767578125,
-0.0157928466796875,
0.00937652587890625,
0.006931304931640625,
-0.0236358642578125,
0.01474761962890625,
-0.0082244873046875,
0.0003027915954589844,
-0.006008148193359375,
0.0186767578125,
0.0085601806640625,
-0.014984130859375,
-0.04559326171875,
-0.0204620361328125,
0.0026950836181640625,
-0.012115478515625,
-0.02386474609375,
0.00615692138671875,
-0.0159912109375,
0.00661468505859375,
-0.031524658203125,
-0.0016889572143554688,
0.032684326171875,
0.04998779296875,
-0.046417236328125,
-0.00887298583984375,
0.0012950897216796875,
-0.030975341796875,
-0.0023212432861328125,
0.0025920867919921875,
0.01081085205078125,
-0.001758575439453125,
-0.04315185546875,
0.015106201171875,
-0.0017309188842773438,
0.060943603515625,
0.0188446044921875,
-0.00650787353515625,
0.051361083984375,
-0.0283355712890625,
-0.0343017578125,
-0.05133056640625,
0.015960693359375,
-0.06298828125,
0.01006317138671875,
0.009796142578125,
-0.008544921875,
0.0149688720703125,
-0.0478515625,
-0.1072998046875,
0.02459716796875,
-0.0111236572265625,
-0.0460205078125,
-0.02191162109375,
0.07904052734375,
0.009735107421875,
-0.03009033203125,
-0.00982666015625,
-0.0167388916015625,
0.0316162109375,
-0.01427459716796875,
0.044677734375,
0.00835418701171875,
0.0198974609375,
0.0305633544921875,
-0.0222015380859375,
0.0428466796875,
0.0307769775390625,
0.0238494873046875,
0.005496978759765625,
-0.033172607421875,
-0.02325439453125,
-0.0184478759765625,
-0.06463623046875,
-0.1434326171875,
-0.0086822509765625,
0.04339599609375,
-0.0035228729248046875,
-0.0187835693359375,
-0.00103759765625,
-0.00107574462890625,
0.06793212890625,
0.0257110595703125,
0.0270843505859375,
-0.035675048828125,
0.043121337890625,
0.01549530029296875,
-0.06561279296875,
0.0156402587890625,
0.02886962890625,
-0.0152587890625,
0.0272979736328125,
-0.0081634521484375,
-0.0096588134765625,
-0.0119171142578125,
0.00916290283203125,
-0.025726318359375,
0.005474090576171875,
0.004177093505859375,
-0.00733184814453125,
-0.04071044921875,
0.032623291015625,
0.08056640625,
-0.035736083984375,
0.038330078125,
-0.0184173583984375,
0.00395965576171875,
0.06591796875,
-0.0175018310546875,
-0.0341796875,
0.00850677490234375,
-0.044891357421875,
0.02630615234375,
-0.0304412841796875,
0.014556884765625,
-0.034942626953125,
0.0212860107421875,
-0.021026611328125,
0.0222930908203125,
-0.0005536079406738281,
0.03515625,
-0.00955963134765625,
0.025482177734375,
0.0223236083984375,
-0.020843505859375,
-0.007671356201171875,
0.033599853515625,
0.00884246826171875,
0.01560211181640625,
-0.020050048828125,
0.0027408599853515625,
-0.006649017333984375,
-0.052093505859375,
0.012939453125,
-0.0017347335815429688,
0.0006542205810546875,
-0.035552978515625,
0.0254364013671875,
0.012481689453125,
-0.004711151123046875,
0.019287109375
] |
6ecb1bc211c79cb65aed4c4f9b7ad5ccbbe1d937
|
Wordpress Stackexchange
Q: WordPress as a backend only. How to output database content on public side without WordPress? I'm a bit of a PHP MySQL newb but i feel i need to bypass WordPress for the frontend of a site i'm building (it is mainly just RSS and JSON feeds). I was wondering if there are any tutorials or advice I should follow on this or just cut straight to it?
A: You want to include wp-load.php at the beginning of your script/page like this :
require_once("/path/to/wordpress/wp-load.php");
You then have access to any WP functions. To manipulate the DB directly, have a look at wpdb.
|
Q: WordPress as a backend only. How to output database content on public side without WordPress? I'm a bit of a PHP MySQL newb but i feel i need to bypass WordPress for the frontend of a site i'm building (it is mainly just RSS and JSON feeds). I was wondering if there are any tutorials or advice I should follow on this or just cut straight to it?
A: You want to include wp-load.php at the beginning of your script/page like this :
require_once("/path/to/wordpress/wp-load.php");
You then have access to any WP functions. To manipulate the DB directly, have a look at wpdb.
A: You can even include wp-load.php without having it load the theme related files and functions to reduce the load.
define('WP_USE_THEMES', false);
require_once('path/to/wordpress/wp-load.php')
|
wordpress
|
{
"language": "en",
"length": 126,
"provenance": "stackexchange_00019.jsonl.gz:411656",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24083"
}
|
[
0.07928466796875,
0.005413055419921875,
-0.033416748046875,
-0.061767578125,
0.032989501953125,
-0.05145263671875,
0.007762908935546875,
-0.0180206298828125,
0.02532958984375,
0.004322052001953125,
-0.0284576416015625,
-0.03564453125,
-0.03985595703125,
-0.0239715576171875,
-0.033050537109375,
-0.057891845703125,
0.032989501953125,
0.0036220550537109375,
0.0304718017578125,
0.01361846923828125,
0.0027294158935546875,
0.0300445556640625,
0.00923919677734375,
0.036285400390625,
0.037322998046875,
-0.040802001953125,
0.065185546875,
-0.0308380126953125,
0.0308380126953125,
-0.00843048095703125,
0.027984619140625,
-0.0237884521484375,
0.008819580078125,
0.032012939453125,
-0.0241241455078125,
-0.0340576171875,
-0.02850341796875,
0.03564453125,
0.01136016845703125,
0.012786865234375,
0.0286102294921875,
-0.0248870849609375,
0.01042938232421875,
0.020294189453125,
-0.00445556640625,
-0.0247650146484375,
0.040191650390625,
-0.045013427734375,
-0.0196685791015625,
-0.031982421875,
-0.01218414306640625,
0.035400390625,
0.007843017578125,
0.0018415451049804688,
0.0038051605224609375,
0.021392822265625,
0.034698486328125,
-0.0277862548828125,
0.04083251953125,
-0.01134490966796875,
-0.032745361328125,
-0.0190277099609375,
0.01013946533203125,
-0.027313232421875,
0.00921630859375,
-4.76837158203125e-7,
-0.0256195068359375,
0.0531005859375,
-0.053619384765625,
-0.00146484375,
0.0212860107421875,
-0.060791015625,
-0.007518768310546875,
-0.00919342041015625,
-0.046905517578125,
0.0274505615234375,
0.033111572265625,
-0.0138702392578125,
0.00669097900390625,
-0.00701141357421875,
-0.0285797119140625,
0.01116943359375,
-0.0863037109375,
-0.06121826171875,
0.0640869140625,
0.00751495361328125,
-0.018157958984375,
-0.01377105712890625,
-0.02056884765625,
0.0303802490234375,
-0.0188140869140625,
-0.0004317760467529297,
-0.0426025390625,
0.033782958984375,
0.0213623046875,
0.00690460205078125,
-0.008148193359375,
-0.0250244140625,
0.004306793212890625,
0.01082611083984375,
0.0006303787231445312,
-0.02294921875,
0.040496826171875,
-0.01061248779296875,
0.00015735626220703125,
0.0304718017578125,
-0.01488494873046875,
-0.0190582275390625,
0.007701873779296875,
0.00749969482421875,
-0.01226806640625,
-0.00891876220703125,
-0.00035834312438964844,
0.0044708251953125,
-0.05780029296875,
0.024383544921875,
-0.0166473388671875,
-0.027099609375,
-0.0189971923828125,
0.016143798828125,
-0.012298583984375,
0.0214691162109375,
-0.03033447265625,
-0.01525115966796875,
0.0122833251953125,
-0.00865936279296875,
0.0108642578125,
0.00807952880859375,
-0.026092529296875,
0.0418701171875,
-0.0223846435546875,
-0.012237548828125,
0.06256103515625,
0.036712646484375,
-0.0028896331787109375,
-0.0204010009765625,
0.0195465087890625,
0.039031982421875,
0.0020389556884765625,
0.029296875,
-0.011505126953125,
-0.08587646484375,
-0.048095703125,
-0.0005712509155273438,
0.0167236328125,
0.01448822021484375,
0.041412353515625,
0.0229339599609375,
-0.019561767578125,
-0.0168304443359375,
0.006511688232421875,
0.033294677734375,
-0.01476287841796875,
0.022674560546875,
0.045654296875,
-0.007335662841796875,
0.035675048828125,
-0.02557373046875,
0.0149383544921875,
0.003566741943359375,
-0.01277923583984375,
0.0143280029296875,
0.037689208984375,
0.00789642333984375,
0.0028591156005859375,
-0.0285491943359375,
-0.03021240234375,
0.004486083984375,
0.0297393798828125,
-0.00959014892578125,
0.0733642578125,
-0.0670166015625,
0.04058837890625,
-0.01313018798828125,
-0.0166015625,
0.0169830322265625,
-0.01531982421875,
0.0008425712585449219,
0.015472412109375,
0.0570068359375,
0.012420654296875,
-0.011474609375,
0.054229736328125,
0.00429534912109375,
-0.057861328125,
0.0452880859375,
0.003971099853515625,
0.081787109375,
0.0256195068359375,
0.023956298828125,
-0.00727081298828125,
-0.0014390945434570312,
0.01800537109375,
0.055908203125,
0.005413055419921875,
-0.0692138671875,
-0.017486572265625,
-0.01480865478515625,
-0.01202392578125,
-0.0262603759765625,
0.0197906494140625,
0.06341552734375,
-0.047119140625,
0.01175689697265625,
-0.06414794921875,
0.01259613037109375,
-0.0029735565185546875,
0.026458740234375,
0.032196044921875,
0.0283203125,
0.004901885986328125,
0.035186767578125,
-0.01544952392578125,
-0.0364990234375,
-0.05120849609375,
-0.005340576171875,
-0.02392578125,
0.050445556640625,
0.00146484375,
0.037933349609375,
0.021209716796875,
-0.04144287109375,
0.0119476318359375,
0.0027027130126953125,
0.03973388671875,
-0.020965576171875,
0.004741668701171875,
-0.032196044921875,
0.04351806640625,
-0.01751708984375,
0.005107879638671875,
0.023956298828125,
0.0203399658203125,
0.0005440711975097656,
-0.006866455078125,
0.00443267822265625,
0.0100555419921875,
-0.076171875,
-0.004520416259765625,
0.054656982421875,
0.01873779296875,
-0.0176239013671875,
-0.035919189453125,
-0.0007100105285644531,
-0.00565338134765625,
-0.037750244140625,
0.0148773193359375,
-0.000017464160919189453,
0.0165863037109375,
0.0263671875,
-0.0718994140625,
-0.027923583984375,
0.04376220703125,
-0.0504150390625,
-0.0181884765625,
0.054107666015625,
0.0294189453125,
0.0260467529296875,
0.01503753662109375,
0.00666046142578125,
0.0081939697265625,
0.05084228515625,
-0.035491943359375,
0.031219482421875,
0.0096435546875,
0.005992889404296875,
0.0194091796875,
0.003459930419921875,
-0.01131439208984375,
-0.0027790069580078125,
0.0165252685546875,
-0.017120361328125,
0.0135498046875,
0.0279541015625,
-0.0005517005920410156,
0.0267486572265625,
-0.027435302734375,
-0.031768798828125,
0.0281524658203125,
0.0214996337890625,
-0.023406982421875,
-0.0223388671875,
0.00894927978515625,
-0.00653076171875,
0.0291595458984375,
-0.0147552490234375,
0.024078369140625,
-0.00977325439453125,
-0.047882080078125,
0.0253448486328125,
0.01514434814453125,
0.05572509765625,
-0.021453857421875,
0.0207366943359375,
-0.001293182373046875,
0.0253753662109375,
0.03607177734375,
-0.0089874267578125,
0.01047515869140625,
-0.0034618377685546875,
0.0274658203125,
0.03668212890625,
0.011749267578125,
-0.023529052734375,
-0.0084686279296875,
0.019927978515625,
0.01277923583984375,
-0.0185546875,
-0.0261993408203125,
0.01279449462890625,
-0.10394287109375,
-0.031341552734375,
0.0246734619140625,
0.01557159423828125,
-0.0066070556640625,
-0.0435791015625,
-0.02557373046875,
0.0212249755859375,
-0.07061767578125,
-0.025146484375,
-0.034637451171875,
-0.0347900390625,
-0.0167999267578125,
-0.0268096923828125,
-0.0189666748046875,
0.02008056640625,
-0.0301971435546875,
0.00727081298828125,
0.02435302734375,
-0.05206298828125,
-0.04486083984375,
-0.051055908203125,
-0.0810546875,
-0.0208282470703125,
0.01354217529296875,
0.005706787109375,
0.0169677734375,
0.040618896484375,
0.0175018310546875,
-0.05877685546875,
-0.013946533203125,
0.028717041015625,
-0.0338134765625,
-0.01110076904296875,
-0.0223236083984375,
-0.0155029296875,
-0.012847900390625,
0.006542205810546875,
0.0297088623046875,
-0.0204925537109375,
0.00506591796875,
-0.0249786376953125,
0.0010461807250976562,
-0.03814697265625,
-0.01239776611328125,
-0.0016040802001953125,
0.0042266845703125,
-0.037200927734375,
-0.02392578125,
-0.07037353515625,
-0.0236358642578125,
0.0008139610290527344,
-0.04315185546875,
-0.058868408203125,
0.02740478515625,
-0.0150146484375,
-0.04254150390625,
-0.00399017333984375,
0.02874755859375,
0.0182342529296875,
-0.01751708984375,
0.01506805419921875,
-0.018463134765625,
-0.0014057159423828125,
0.019134521484375,
0.0160064697265625,
0.0232696533203125,
-0.02703857421875,
0.0240325927734375,
0.0207977294921875,
-0.004444122314453125,
-0.01271820068359375,
0.01039886474609375,
-0.016021728515625,
-0.054290771484375,
0.049163818359375,
-0.0152740478515625,
0.005092620849609375,
-0.035003662109375,
-0.0264739990234375,
0.004703521728515625,
0.0931396484375,
0.002925872802734375,
0.0010480880737304688,
0.03704833984375,
0.00246429443359375,
-0.042633056640625,
-0.0158538818359375,
-0.072021484375,
0.004444122314453125,
-0.015533447265625,
-0.014892578125,
-0.0223846435546875,
-0.0036163330078125,
0.011260986328125,
-0.06048583984375,
0.019866943359375,
-0.04400634765625,
0.0087432861328125,
-0.03155517578125,
0.005817413330078125,
-0.002513885498046875,
-0.00844573974609375,
-0.01560211181640625,
-0.0079498291015625,
-0.036865234375,
-0.043426513671875,
-0.00293731689453125,
-0.0178985595703125,
0.0297393798828125,
0.024078369140625,
-0.00710296630859375,
-0.0015058517456054688,
0.0287933349609375,
-0.0243377685546875,
-0.0299224853515625,
0.01528167724609375,
0.039093017578125,
-0.047454833984375,
-0.0141754150390625,
-0.00007230043411254883,
-0.038818359375,
-0.0538330078125,
-0.05706787109375,
0.0303955078125,
0.00722503662109375,
-0.0095672607421875,
-0.00493621826171875,
-0.03118896484375,
0.03753662109375,
-0.0308990478515625,
-0.01230621337890625,
-0.033538818359375,
0.0166473388671875,
-0.006320953369140625,
-0.0168914794921875,
-0.0180816650390625,
-0.0421142578125,
0.05621337890625,
-0.00955963134765625,
-0.0249481201171875,
-0.003204345703125,
0.05804443359375,
0.021453857421875,
-0.0167083740234375,
-0.0491943359375,
-0.031341552734375,
0.03033447265625,
-0.00962066650390625,
0.0677490234375,
0.0207977294921875,
-0.01263427734375,
0.0809326171875,
0.00812530517578125,
0.019378662109375,
-0.0225982666015625,
0.05267333984375,
-0.028167724609375,
-0.035430908203125,
0.0379638671875,
-0.0251312255859375,
-0.0269012451171875,
0.033935546875,
0.0048370361328125,
0.0185394287109375,
0.027008056640625,
-0.0159912109375,
-0.039947509765625,
-0.01541900634765625,
0.00853729248046875,
0.020477294921875,
-0.0164031982421875,
-0.012481689453125,
0.032135009765625,
0.01491546630859375,
0.007568359375,
-0.0230712890625,
0.0220489501953125,
-0.01050567626953125,
0.011199951171875,
-0.01611328125,
0.0107269287109375,
0.0086822509765625,
0.0218048095703125,
-0.013214111328125,
0.00821685791015625,
-0.0274658203125,
0.0848388671875,
-0.01546478271484375,
-0.06829833984375,
-0.0163726806640625,
-0.0160064697265625,
0.002254486083984375,
0.037689208984375,
0.025909423828125,
0.0272064208984375,
0.00011390447616577148,
-0.0236358642578125,
-0.00722503662109375,
0.032958984375,
-0.0203094482421875,
-0.034088134765625,
0.043121337890625,
0.00910186767578125,
-0.0002455711364746094,
0.045013427734375,
0.044708251953125,
-0.017364501953125,
0.052520751953125,
-0.00801849365234375,
0.0280914306640625,
0.031524658203125,
0.0186614990234375,
-0.007556915283203125,
0.0161895751953125,
0.004852294921875,
-0.0011148452758789062,
0.0552978515625,
-0.052825927734375,
0.0000368952751159668,
0.034088134765625,
0.0684814453125,
0.0290679931640625,
-0.0189666748046875,
-0.004024505615234375,
-0.021636962890625,
-0.0256195068359375,
0.047698974609375,
0.0166778564453125,
-0.033843994140625,
-0.032928466796875,
-0.01042938232421875,
0.0291595458984375,
0.010162353515625,
0.00675201416015625,
0.0032672882080078125,
0.04901123046875,
0.039276123046875,
-0.0063934326171875,
-0.00040221214294433594,
0.0011501312255859375,
0.0054473876953125,
-0.00827789306640625,
-0.0279083251953125,
-0.00927734375,
-0.0042877197265625,
0.00963592529296875,
-0.021148681640625,
-0.02227783203125,
0.043304443359375,
-0.027069091796875,
-0.003734588623046875,
-0.024322509765625,
0.0168304443359375,
-0.048675537109375,
-0.01153564453125,
0.091064453125,
0.07073974609375,
-0.0115509033203125,
-0.0029926300048828125,
-0.030914306640625,
-0.0234832763671875,
-0.00806427001953125,
-0.01474761962890625,
-0.0404052734375,
-0.01262664794921875,
-0.0011081695556640625,
-0.0087432861328125,
-0.031463623046875,
-0.042724609375,
-0.033935546875,
0.02679443359375,
0.0445556640625,
-0.005695343017578125,
-0.01129913330078125,
0.11883544921875,
-0.0487060546875,
0.0899658203125,
0.021575927734375,
0.06591796875,
-0.034637451171875,
-0.025665283203125,
0.005115509033203125,
-0.0574951171875,
-0.0291595458984375,
-0.01593017578125,
-0.00811767578125,
0.0275726318359375,
-0.014068603515625,
0.004001617431640625,
0.0009775161743164062,
-0.0195465087890625,
-0.01457977294921875,
-0.021148681640625,
0.058074951171875,
-0.013824462890625,
0.0275115966796875,
-0.036163330078125,
0.0014467239379882812,
-0.01062774658203125,
-0.0169677734375,
0.0044708251953125,
0.0013523101806640625,
0.0166015625,
-0.018951416015625,
-0.019683837890625,
-0.040802001953125,
0.055633544921875,
0.0943603515625,
-0.01389312744140625,
0.0384521484375,
0.032684326171875,
-0.023651123046875,
0.0219573974609375,
0.038909912109375,
-0.05511474609375,
-0.0408935546875,
0.0260009765625,
0.01024627685546875,
-0.01256561279296875,
0.01056671142578125,
-0.0196075439453125,
0.0274200439453125,
0.0804443359375,
0.0802001953125,
-0.09832763671875,
0.007354736328125,
0.027008056640625,
-0.051025390625,
-0.0185394287109375,
-0.004032135009765625,
-0.0250701904296875,
-0.0540771484375,
0.017059326171875,
0.052642822265625,
-0.0249786376953125,
-0.01428985595703125,
0.03814697265625,
-0.0210418701171875,
0.005977630615234375,
0.059295654296875,
0.020294189453125,
-0.03717041015625,
-0.0011167526245117188,
0.01436614990234375,
0.00689697265625,
-0.00848388671875,
0.0159454345703125,
0.013580322265625,
-0.002208709716796875,
-0.0295867919921875,
0.05267333984375,
0.00791168212890625,
-0.01125335693359375,
0.038330078125,
0.00572967529296875,
-0.0015621185302734375,
0.055511474609375,
-0.00925445556640625,
0.022674560546875,
0.00537872314453125,
0.0217132568359375,
0.0155487060546875,
-0.02178955078125,
0.005481719970703125,
0.0203857421875,
-0.04376220703125,
0.019287109375,
-0.0161895751953125,
-0.00359344482421875,
-0.0237579345703125,
-0.06121826171875,
0.060882568359375,
0.005558013916015625,
-0.01715087890625,
0.0190887451171875,
0.018218994140625,
-0.006008148193359375,
-0.019073486328125,
0.01019287109375,
-0.05230712890625,
0.007427215576171875,
0.003185272216796875,
0.004581451416015625,
-0.02435302734375,
-0.014495849609375,
-0.046478271484375,
0.11761474609375,
0.0056304931640625,
0.0034542083740234375,
0.0254058837890625,
0.0511474609375,
-0.04791259765625,
0.0285491943359375,
-0.03033447265625,
0.03387451171875,
0.020843505859375,
0.0214996337890625,
-0.049468994140625,
-0.030242919921875,
0.00731658935546875,
0.0499267578125,
-0.003948211669921875,
0.0009794235229492188,
0.01131439208984375,
0.0102996826171875,
0.0341796875,
0.01190185546875,
-0.00775909423828125,
0.0110626220703125,
-0.0013685226440429688,
0.05035400390625,
0.053192138671875,
-0.0572509765625,
0.03125,
-0.016998291015625,
0.0012340545654296875,
0.0131988525390625,
0.0291900634765625,
0.024810791015625,
0.023895263671875,
0.00029778480529785156,
-0.034423828125,
0.01371002197265625,
0.02618408203125,
0.0017213821411132812,
-0.045013427734375,
0.04840087890625,
0.007198333740234375,
-0.09820556640625,
-0.00121307373046875,
-0.048736572265625,
0.0406494140625,
-0.006870269775390625,
0.0050048828125,
0.00893402099609375,
0.01076507568359375,
0.02252197265625,
-0.0292510986328125,
-0.01181793212890625,
0.00998687744140625,
-0.004154205322265625,
0.04718017578125,
0.0382080078125,
0.038726806640625,
-0.04644775390625,
-0.03857421875,
0.034637451171875,
0.076171875,
-0.019866943359375,
-0.01953125,
0.022216796875,
0.01641845703125,
0.0090789794921875,
-0.01125335693359375,
0.031402587890625,
0.033538818359375,
0.039581298828125,
-0.0168304443359375,
-0.0032100677490234375,
0.0137176513671875,
0.01502227783203125,
-0.00864410400390625,
0.0038356781005859375,
0.0116729736328125,
-0.0011110305786132812,
-0.00566864013671875,
-0.0298614501953125,
0.0220947265625,
0.040557861328125,
0.011871337890625,
0.006183624267578125,
-0.00661468505859375,
-0.01042938232421875,
-0.039886474609375,
0.054412841796875,
-0.003082275390625,
0.058837890625,
-0.06915283203125,
-0.0249786376953125,
-0.002166748046875,
0.03582763671875,
-0.004302978515625,
0.06707763671875,
0.043914794921875,
0.037078857421875,
-0.0005784034729003906,
-0.0006899833679199219,
0.05389404296875,
-0.01959228515625,
-0.0283966064453125,
-0.0065765380859375,
-0.02935791015625,
0.011260986328125,
0.00160980224609375,
-0.028564453125,
0.047821044921875,
-0.0021038055419921875,
-0.032989501953125,
0.030120849609375,
-0.01453399658203125,
-0.0185546875,
0.03338623046875,
-0.040496826171875,
0.032501220703125,
-0.023193359375,
-0.0699462890625,
-0.01404571533203125,
-0.01087188720703125,
-0.0086669921875,
0.0192718505859375,
0.030487060546875,
-0.028717041015625,
0.03887939453125,
0.021942138671875,
0.044342041015625,
0.0157623291015625,
-0.040435791015625,
-0.002063751220703125,
-0.016754150390625,
0.04779052734375,
0.0184783935546875,
-0.05108642578125,
-0.035552978515625,
-0.0293426513671875,
0.050537109375,
0.030120849609375,
0.058746337890625,
-0.0250244140625,
0.0491943359375,
-0.005146026611328125,
0.017852783203125,
0.00965118408203125,
0.0008077621459960938,
-0.03106689453125,
0.027008056640625,
0.04327392578125,
-0.0167694091796875,
-0.0227508544921875,
-0.00611114501953125,
0.03857421875,
-0.058929443359375,
0.0299072265625,
-0.0323486328125,
0.01407623291015625,
-0.057098388671875,
-0.019134521484375,
-0.03240966796875,
-0.005664825439453125,
0.011444091796875,
-0.0038204193115234375,
0.01904296875,
-0.006961822509765625,
-0.0036487579345703125,
0.0003924369812011719,
0.00033211708068847656,
-0.04364013671875,
0.00431060791015625,
-0.02825927734375,
0.0036678314208984375,
0.027557373046875,
0.01515960693359375,
-0.008087158203125,
0.03875732421875,
-0.0109405517578125,
0.03192138671875,
0.01666259765625,
0.0227203369140625,
0.030792236328125,
-0.037994384765625,
-0.010009765625,
0.0260009765625,
0.054962158203125,
0.0122222900390625,
0.037109375,
-0.01299285888671875,
-0.005939483642578125,
0.0034160614013671875,
0.0350341796875,
0.00025391578674316406,
0.00872039794921875,
-0.040863037109375,
-0.00534820556640625,
-0.0182647705078125,
-0.057861328125,
-0.042724609375,
-0.0063323974609375,
0.0287628173828125,
0.006259918212890625,
-0.044097900390625,
0.0145263671875,
-0.019805908203125,
0.0212860107421875,
-0.00980377197265625,
0.021148681640625,
-0.01273345947265625,
0.0249786376953125,
-0.00453948974609375,
-0.04156494140625,
-0.009674072265625,
0.05828857421875,
-0.0019397735595703125,
0.04901123046875,
0.0657958984375,
-0.042327880859375,
0.01513671875,
0.0201873779296875,
0.03533935546875,
0.07647705078125,
0.01068878173828125,
-0.00441741943359375,
-0.01369476318359375,
0.029510498046875,
-0.0243988037109375,
-0.07073974609375,
0.0076751708984375,
-0.0438232421875,
-0.004131317138671875,
-0.0298309326171875,
0.00370025634765625,
0.0017175674438476562,
-0.0499267578125,
-0.0888671875,
0.04840087890625,
-0.0199432373046875,
-0.0247802734375,
0.0046844482421875,
0.01161956787109375,
-0.0038166046142578125,
-0.0287933349609375,
-0.006168365478515625,
0.0022182464599609375,
-0.006458282470703125,
0.00823211669921875,
0.026763916015625,
-0.0074615478515625,
0.023223876953125,
0.0150146484375,
-0.0531005859375,
0.0200958251953125,
0.0007443428039550781,
0.0179443359375,
-0.0343017578125,
0.01641845703125,
0.0165252685546875,
0.0250091552734375,
-0.0293121337890625,
0.04766845703125,
0.019256591796875,
0.0294952392578125,
0.01163482666015625,
-0.037994384765625,
-0.0144500732421875,
-0.01364898681640625,
0.06011962890625,
0.0157623291015625,
0.0222930908203125,
-0.00887298583984375,
-0.0445556640625,
-0.01910400390625,
0.001956939697265625,
-0.028778076171875,
0.01168060302734375,
-0.09912109375,
-0.03997802734375,
0.0213470458984375,
-0.02252197265625,
0.0217132568359375,
0.001850128173828125,
-0.038330078125,
0.0078582763671875,
-0.0125732421875,
-0.033935546875,
-0.026336669921875,
-0.04522705078125,
0.051513671875,
-0.04132080078125,
-0.01247406005859375,
0.013916015625,
0.0210723876953125,
0.0034389495849609375,
-0.002288818359375,
-0.00565338134765625,
-0.0256195068359375,
0.0021648406982421875,
0.0254974365234375,
0.011016845703125,
0.025634765625,
-0.017364501953125,
-0.0313720703125,
0.006404876708984375,
0.042572021484375,
0.0038890838623046875,
0.06268310546875,
-0.00994110107421875,
0.02716064453125,
0.006000518798828125,
0.00803375244140625,
-0.016021728515625,
-0.04534912109375,
-0.04571533203125,
0.03857421875,
-0.029296875,
-0.00853729248046875,
0.0201568603515625,
-0.021209716796875,
-0.0015611648559570312,
-0.0033321380615234375,
-0.032745361328125,
-0.03277587890625,
-0.0077972412109375,
-0.00981903076171875,
-0.0062255859375,
0.005878448486328125
] |
b42be74b4645e0096cea669e69037b9a69b0cc34
|
Wordpress Stackexchange
Q: How can I add comments to a page? How can I allow people to post comments on a page?
I've put this into my page template: <?php comments_template(); ?> but it just says at the bottom of my page "Comments closed".
UPDATE:
If I can allow comments for one specific template for a page that would be great.
A: Have you checked under Admin -> Settings -> Discussion and for individual pages, under pages and quick-edit or the discussion area in edit page below the page editor?
When the last one does not show, click screen options near the top right, and tick discussion there, then scroll back down.
|
Q: How can I add comments to a page? How can I allow people to post comments on a page?
I've put this into my page template: <?php comments_template(); ?> but it just says at the bottom of my page "Comments closed".
UPDATE:
If I can allow comments for one specific template for a page that would be great.
A: Have you checked under Admin -> Settings -> Discussion and for individual pages, under pages and quick-edit or the discussion area in edit page below the page editor?
When the last one does not show, click screen options near the top right, and tick discussion there, then scroll back down.
|
wordpress
|
{
"language": "en",
"length": 110,
"provenance": "stackexchange_00019.jsonl.gz:411661",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24099"
}
|
[
0.05120849609375,
0.00836944580078125,
0.0183258056640625,
-0.02630615234375,
0.019439697265625,
-0.0120849609375,
0.0242462158203125,
-0.029388427734375,
-0.006313323974609375,
0.01349639892578125,
-0.058319091796875,
0.0009760856628417969,
-0.033966064453125,
-0.001522064208984375,
-0.022125244140625,
-0.06256103515625,
0.03350830078125,
-0.0076904296875,
0.0243377685546875,
-0.0083160400390625,
-0.0124969482421875,
0.0178070068359375,
0.018463134765625,
0.0523681640625,
0.01502227783203125,
-0.00577545166015625,
0.074462890625,
-0.0037097930908203125,
0.010406494140625,
-0.00815582275390625,
0.02227783203125,
-0.0234832763671875,
0.0195159912109375,
0.01482391357421875,
-0.0188140869140625,
0.004856109619140625,
-0.024688720703125,
0.00702667236328125,
0.0095672607421875,
0.006809234619140625,
0.030609130859375,
-0.011383056640625,
-0.0107421875,
0.029083251953125,
-0.01337432861328125,
-0.048553466796875,
0.037689208984375,
-0.039459228515625,
0.030426025390625,
-0.0199127197265625,
0.0176849365234375,
0.006534576416015625,
0.0304107666015625,
-0.0182647705078125,
-0.0226898193359375,
-0.008636474609375,
0.0005884170532226562,
-0.00901031494140625,
0.03814697265625,
-0.019073486328125,
-0.03985595703125,
-0.0191650390625,
0.0220489501953125,
-0.02490234375,
0.018951416015625,
-0.0054473876953125,
0.0352783203125,
0.048431396484375,
-0.008270263671875,
-0.004810333251953125,
-0.0069580078125,
-0.00659942626953125,
-0.0022144317626953125,
-0.04351806640625,
0.0191497802734375,
-0.00014889240264892578,
-0.0092315673828125,
-0.026580810546875,
0.01715087890625,
0.016448974609375,
0.0055084228515625,
0.0192108154296875,
-0.0035228729248046875,
-0.0384521484375,
0.0143890380859375,
-0.0168304443359375,
-0.01079559326171875,
-0.011474609375,
-0.032470703125,
0.0113677978515625,
-0.0272369384765625,
-0.033203125,
0.017364501953125,
-0.00885009765625,
-0.0170135498046875,
-0.0070648193359375,
0.0025482177734375,
0.0516357421875,
-0.0160064697265625,
0.01146697998046875,
-0.025543212890625,
-0.017608642578125,
0.01236724853515625,
-0.04046630859375,
0.016021728515625,
0.01259613037109375,
-0.034576416015625,
-0.02056884765625,
0.045562744140625,
0.0280303955078125,
-0.0005984306335449219,
-0.0013284683227539062,
-0.0204010009765625,
-0.02764892578125,
-0.0111846923828125,
0.01146697998046875,
-0.042327880859375,
0.00732421875,
0.00652313232421875,
0.00780487060546875,
0.0037860870361328125,
0.033233642578125,
-0.014617919921875,
-0.01457977294921875,
-0.0004127025604248047,
-0.0179443359375,
-0.00753021240234375,
-0.031280517578125,
0.0088043212890625,
0.017547607421875,
-0.0022220611572265625,
0.0272216796875,
-0.005084991455078125,
-0.00553131103515625,
-0.03118896484375,
-0.01226806640625,
0.0027904510498046875,
-0.008941650390625,
-0.022735595703125,
0.029998779296875,
-0.00769805908203125,
-0.040191650390625,
-0.002044677734375,
-0.006252288818359375,
-0.0176239013671875,
0.00414276123046875,
0.0194091796875,
0.036895751953125,
-0.0159912109375,
-0.048858642578125,
0.01812744140625,
-0.0082550048828125,
0.010986328125,
-0.0037937164306640625,
0.021881103515625,
-0.052001953125,
-0.017242431640625,
-0.022918701171875,
0.059906005859375,
-0.006557464599609375,
0.0139923095703125,
0.031951904296875,
0.042938232421875,
-0.028076171875,
-0.01251983642578125,
-0.054351806640625,
-0.061492919921875,
-0.00695037841796875,
0.01383209228515625,
0.0271148681640625,
-0.0180816650390625,
-0.0281219482421875,
0.006633758544921875,
0.0024776458740234375,
-0.01995849609375,
0.0193634033203125,
-0.010162353515625,
0.020172119140625,
-0.0276641845703125,
0.05975341796875,
0.0254364013671875,
-0.045257568359375,
-0.016326904296875,
0.0214080810546875,
-0.0238800048828125,
0.00791168212890625,
0.03814697265625,
0.051361083984375,
-0.035308837890625,
0.03216552734375,
0.03900146484375,
0.036834716796875,
0.017181396484375,
0.01076507568359375,
-0.0167388916015625,
-0.05157470703125,
-0.0244140625,
0.01139068603515625,
-0.035797119140625,
-0.0059051513671875,
-0.00980377197265625,
-0.006191253662109375,
-0.0035839080810546875,
0.03448486328125,
-0.01328277587890625,
0.002986907958984375,
-0.013153076171875,
0.00933837890625,
0.031707763671875,
0.0003573894500732422,
-0.008392333984375,
-0.045806884765625,
0.0102691650390625,
-0.01105499267578125,
-0.044525146484375,
-0.0033626556396484375,
-0.022613525390625,
0.03424072265625,
0.01194000244140625,
0.03326416015625,
0.0094451904296875,
-0.0203857421875,
-0.0066375732421875,
-0.00955963134765625,
0.0302886962890625,
0.005657196044921875,
-0.048095703125,
-0.018524169921875,
-0.02459716796875,
0.016204833984375,
-0.06488037109375,
0.054962158203125,
-0.002208709716796875,
-0.01403045654296875,
-0.009674072265625,
0.0198974609375,
0.0230865478515625,
-0.0322265625,
-0.0093231201171875,
0.032196044921875,
0.024169921875,
0.024017333984375,
0.0222015380859375,
0.041015625,
0.043914794921875,
-0.0211029052734375,
0.0225830078125,
-0.0010709762573242188,
0.01525115966796875,
0.02288818359375,
0.033355712890625,
-0.0183563232421875,
0.01751708984375,
-0.03076171875,
0.00995635986328125,
0.01294708251953125,
-0.0294189453125,
-0.0179290771484375,
0.0022182464599609375,
0.01325225830078125,
-0.00296783447265625,
-0.026123046875,
0.0003733634948730469,
-0.021392822265625,
0.0018768310546875,
-0.020233154296875,
0.008087158203125,
0.00412750244140625,
-0.0037479400634765625,
-0.0280914306640625,
0.01024627685546875,
-0.0114898681640625,
-0.0016298294067382812,
0.028564453125,
0.00841522216796875,
0.05682373046875,
-0.0306549072265625,
-0.01207733154296875,
0.00510406494140625,
0.032684326171875,
-0.0018396377563476562,
0.032867431640625,
-0.00494384765625,
-0.01416015625,
-0.005115509033203125,
-0.03448486328125,
0.0014505386352539062,
0.016265869140625,
-0.0247039794921875,
-0.028839111328125,
-0.0157470703125,
0.054107666015625,
-0.0104522705078125,
0.02667236328125,
0.02435302734375,
-0.0209197998046875,
0.04034423828125,
-0.051361083984375,
0.034820556640625,
-0.041961669921875,
0.031158447265625,
0.0528564453125,
0.000888824462890625,
-0.0192108154296875,
0.00888824462890625,
0.017730712890625,
0.04840087890625,
-0.00800323486328125,
-0.00986480712890625,
0.00569915771484375,
0.0028743743896484375,
0.0295867919921875,
0.0246734619140625,
0.029052734375,
-0.0028057098388671875,
-0.006870269775390625,
-0.01389312744140625,
0.032867431640625,
0.002460479736328125,
0.0171051025390625,
0.016204833984375,
-0.03875732421875,
-0.03253173828125,
-0.00921630859375,
-0.0238037109375,
0.00409698486328125,
-0.00414276123046875,
-0.0169525146484375,
-0.020355224609375,
-0.0181121826171875,
-0.08331298828125,
-0.0667724609375,
-0.074951171875,
0.00927734375,
-0.021942138671875,
0.0240325927734375,
0.0014085769653320312,
0.0626220703125,
-0.00765228271484375,
-0.048004150390625,
-0.0157623291015625,
-0.07720947265625,
-0.01306915283203125,
0.00856781005859375,
0.0231170654296875,
-0.0177001953125,
0.04345703125,
0.004497528076171875,
-0.03509521484375,
0.03460693359375,
-0.0270538330078125,
-0.019012451171875,
-0.036041259765625,
-0.0011587142944335938,
-0.0204620361328125,
0.032470703125,
0.048828125,
0.0007395744323730469,
0.0032100677490234375,
-0.0418701171875,
-0.0293121337890625,
0.00396728515625,
-0.055145263671875,
-0.041473388671875,
0.0155181884765625,
0.00972747802734375,
-0.0238189697265625,
0.01116180419921875,
0.0268707275390625,
0.016448974609375,
0.02093505859375,
0.0088348388671875,
-0.00897216796875,
-0.0116729736328125,
-0.0029888153076171875,
-0.0184478759765625,
-0.0149078369140625,
-0.00910186767578125,
0.0193939208984375,
-0.0021686553955078125,
0.034149169921875,
-0.009521484375,
0.047210693359375,
-0.0635986328125,
-0.056121826171875,
0.05120849609375,
-0.001750946044921875,
0.0020771026611328125,
-0.0273284912109375,
-0.033782958984375,
-0.004497528076171875,
0.0916748046875,
-0.0136566162109375,
-0.02093505859375,
-0.0246124267578125,
-0.01326751708984375,
-0.0053253173828125,
0.0128326416015625,
-0.00965118408203125,
-0.01245880126953125,
-0.011077880859375,
0.03857421875,
0.001148223876953125,
-0.0078582763671875,
-0.04449462890625,
0.002979278564453125,
-0.0159149169921875,
-0.01690673828125,
0.018402099609375,
-0.0269012451171875,
-0.0157318115234375,
0.064208984375,
-0.04425048828125,
0.048828125,
-0.002597808837890625,
-0.044952392578125,
-0.050140380859375,
-0.01485443115234375,
-0.012542724609375,
0.041107177734375,
0.0107879638671875,
-0.036712646484375,
-0.00995635986328125,
0.037109375,
0.023834228515625,
0.005367279052734375,
-0.018646240234375,
0.001373291015625,
-0.02777099609375,
-0.039337158203125,
-0.0101165771484375,
-0.03558349609375,
0.0106048583984375,
0.0178375244140625,
0.0128021240234375,
0.07647705078125,
-0.037506103515625,
-0.01398468017578125,
-0.010009765625,
-0.0262451171875,
0.002689361572265625,
-0.0311431884765625,
0.0191802978515625,
0.037445068359375,
-0.0010824203491210938,
0.01513671875,
-0.03143310546875,
-0.0010814666748046875,
0.00960540771484375,
-0.0177154541015625,
-0.006786346435546875,
0.0303802490234375,
0.06243896484375,
0.0218658447265625,
-0.00319671630859375,
-0.04052734375,
0.0158233642578125,
0.035430908203125,
0.01519775390625,
0.025726318359375,
0.0075836181640625,
-0.01947021484375,
0.04248046875,
0.0050048828125,
-0.0085601806640625,
-0.0401611328125,
0.07623291015625,
-0.0254058837890625,
-0.054595947265625,
0.050079345703125,
-0.05010986328125,
0.0241546630859375,
-0.0019502639770507812,
-0.041748046875,
0.0226898193359375,
-0.05145263671875,
0.017852783203125,
0.0025787353515625,
0.02386474609375,
-0.033935546875,
-0.0433349609375,
0.0015592575073242188,
-0.08001708984375,
0.05413818359375,
0.0343017578125,
-0.00013756752014160156,
0.04864501953125,
0.021209716796875,
0.011016845703125,
0.004955291748046875,
-0.01287841796875,
-0.02764892578125,
0.01241302490234375,
0.0243072509765625,
-0.01151275634765625,
0.0251617431640625,
-0.00861358642578125,
0.0692138671875,
0.0157623291015625,
-0.017669677734375,
-0.005809783935546875,
-0.01491546630859375,
0.00609588623046875,
0.006664276123046875,
0.06207275390625,
-0.007495880126953125,
-0.020294189453125,
0.00331878662109375,
0.0150909423828125,
0.047332763671875,
0.004184722900390625,
-0.01166534423828125,
-0.00786590576171875,
0.01294708251953125,
-0.026458740234375,
0.018280029296875,
0.0229644775390625,
-0.013885498046875,
0.0257720947265625,
-0.0227508544921875,
0.041412353515625,
0.03607177734375,
0.0005550384521484375,
0.003200531005859375,
0.039581298828125,
0.004791259765625,
-0.0204620361328125,
0.00678253173828125,
-0.004146575927734375,
-0.028717041015625,
0.011199951171875,
0.00423431396484375,
0.01282501220703125,
0.0248565673828125,
-0.0086212158203125,
-0.0017709732055664062,
-0.004207611083984375,
0.015167236328125,
0.038970947265625,
-0.042724609375,
0.018402099609375,
0.00395965576171875,
-0.020599365234375,
-0.00859832763671875,
-0.0013360977172851562,
-0.0023670196533203125,
-0.035247802734375,
0.007053375244140625,
0.018463134765625,
0.005489349365234375,
-0.03216552734375,
-0.0390625,
-0.0269775390625,
-0.0203857421875,
-0.0022373199462890625,
-0.041046142578125,
-0.02490234375,
-0.004016876220703125,
0.01129913330078125,
0.0259857177734375,
0.0200653076171875,
0.0156707763671875,
-0.015777587890625,
-0.02783203125,
0.006557464599609375,
0.0029048919677734375,
0.013763427734375,
-0.02886962890625,
-0.01398468017578125,
-0.027801513671875,
-0.06787109375,
-0.03204345703125,
-0.08245849609375,
-0.040985107421875,
-0.031494140625,
0.037261962890625,
0.0170745849609375,
0.0458984375,
-0.038330078125,
-0.03973388671875,
-0.032867431640625,
0.00884246826171875,
0.02716064453125,
0.08673095703125,
0.00211334228515625,
0.069091796875,
-0.0017328262329101562,
0.0662841796875,
0.0263824462890625,
0.051666259765625,
-0.00524139404296875,
-0.03759765625,
0.031402587890625,
0.00196075439453125,
-0.031829833984375,
-0.023956298828125,
-0.04608154296875,
-0.0111541748046875,
0.0687255859375,
-0.0123138427734375,
0.00177001953125,
-0.04266357421875,
-0.002048492431640625,
-0.035369873046875,
0.07635498046875,
-0.050048828125,
0.0001036524772644043,
-0.01140594482421875,
-0.004627227783203125,
0.02825927734375,
-0.019989013671875,
-0.01360321044921875,
0.01076507568359375,
-0.0038776397705078125,
0.0259857177734375,
0.00850677490234375,
-0.028045654296875,
0.037109375,
0.0545654296875,
0.0087432861328125,
0.037261962890625,
0.005435943603515625,
0.019622802734375,
-0.0005602836608886719,
0.071533203125,
-0.05828857421875,
-0.059600830078125,
0.0416259765625,
0.0333251953125,
-0.031646728515625,
0.0270233154296875,
-0.0207672119140625,
0.036590576171875,
0.0909423828125,
0.058258056640625,
-0.11712646484375,
0.018524169921875,
-0.023834228515625,
-0.015777587890625,
0.062103271484375,
-0.043548583984375,
0.021575927734375,
-0.054107666015625,
0.0931396484375,
0.0160369873046875,
-0.00379180908203125,
0.00914764404296875,
-0.046661376953125,
-0.0217132568359375,
-0.037139892578125,
0.038726806640625,
0.002178192138671875,
-0.0379638671875,
0.0276641845703125,
0.0243682861328125,
-0.020843505859375,
-0.034942626953125,
-0.026336669921875,
0.0204010009765625,
-0.0076446533203125,
-0.041717529296875,
0.044708251953125,
-0.0784912109375,
0.047088623046875,
0.0341796875,
0.012786865234375,
-0.00238800048828125,
0.044647216796875,
-0.0238800048828125,
0.0389404296875,
0.0278472900390625,
-0.015716552734375,
-0.03277587890625,
-0.0283355712890625,
0.00902557373046875,
-0.004222869873046875,
0.0178375244140625,
0.018524169921875,
-0.0022792816162109375,
-0.0635986328125,
0.007625579833984375,
0.051727294921875,
0.073974609375,
-0.03607177734375,
-0.030487060546875,
0.04913330078125,
-0.0291595458984375,
-0.02056884765625,
0.017181396484375,
-0.04266357421875,
0.0284423828125,
0.06866455078125,
-0.00972747802734375,
0.005168914794921875,
0.025634765625,
0.0231170654296875,
-0.08056640625,
0.051361083984375,
0.006862640380859375,
0.00893402099609375,
-0.005504608154296875,
0.0212554931640625,
-0.03802490234375,
-0.0179290771484375,
-0.01526641845703125,
0.039794921875,
-0.02386474609375,
0.07586669921875,
-0.049835205078125,
-0.0305938720703125,
0.0290985107421875,
0.07958984375,
0.06298828125,
0.01123046875,
0.01070404052734375,
-0.005794525146484375,
0.053955078125,
0.0222320556640625,
-0.018524169921875,
0.015472412109375,
-0.021697998046875,
-0.00033473968505859375,
0.0248565673828125,
-0.0389404296875,
0.022918701171875,
-0.0172119140625,
-0.0036144256591796875,
-0.007511138916015625,
-0.0178985595703125,
-0.0280609130859375,
-0.001125335693359375,
0.0231475830078125,
-0.030853271484375,
-0.0045166015625,
0.009002685546875,
-0.0517578125,
-0.004116058349609375,
0.0567626953125,
0.03662109375,
-0.0240325927734375,
-0.061767578125,
-0.020355224609375,
0.039794921875,
0.01690673828125,
0.0178985595703125,
0.0215911865234375,
0.032135009765625,
0.0228118896484375,
-0.0178070068359375,
0.00894927978515625,
0.0400390625,
-0.04266357421875,
0.0297393798828125,
0.004993438720703125,
0.039154052734375,
-0.063720703125,
-0.05413818359375,
0.00801849365234375,
0.049407958984375,
-0.003429412841796875,
-0.0016613006591796875,
0.00879669189453125,
0.025177001953125,
0.005786895751953125,
-0.009521484375,
0.059234619140625,
0.037841796875,
0.03759765625,
0.0017852783203125,
-0.035552978515625,
-0.00344085693359375,
0.0208587646484375,
0.003856658935546875,
0.0008845329284667969,
0.01629638671875,
-0.0258636474609375,
-0.0200653076171875,
0.000667572021484375,
0.01177215576171875,
0.01401519775390625,
-0.0022144317626953125,
0.031829833984375,
0.007320404052734375,
0.0184173583984375,
0.024932861328125,
0.01166534423828125,
0.00505828857421875,
-0.0300445556640625,
-0.002658843994140625,
-0.0283660888671875,
0.01482391357421875,
0.019317626953125,
-0.0197601318359375,
0.013580322265625,
-0.01605224609375,
-0.0142974853515625,
0.0027027130126953125,
-0.01202392578125,
0.002628326416015625,
-0.05084228515625,
0.0084991455078125,
-0.05364990234375,
0.01251983642578125,
0.0166778564453125,
-0.0171966552734375,
0.00585174560546875,
-0.03570556640625,
0.07403564453125,
0.0020904541015625,
-0.0157012939453125,
0.01335906982421875,
-0.0218505859375,
0.059051513671875,
0.006916046142578125,
-0.0015859603881835938,
0.0248260498046875,
-0.054962158203125,
0.00429534912109375,
-0.027069091796875,
-0.06561279296875,
0.0261383056640625,
0.0421142578125,
-0.031219482421875,
0.01552581787109375,
0.01514434814453125,
0.0117034912109375,
0.028411865234375,
-0.042327880859375,
0.007617950439453125,
0.0267791748046875,
0.038970947265625,
0.012420654296875,
-0.05670166015625,
-0.04949951171875,
-0.029083251953125,
0.0546875,
0.018585205078125,
0.08203125,
-0.018707275390625,
0.040679931640625,
-0.06085205078125,
0.015167236328125,
-0.01111602783203125,
-0.054107666015625,
0.08233642578125,
0.06939697265625,
-0.02679443359375,
-0.029541015625,
-0.052703857421875,
0.09930419921875,
-0.0197296142578125,
0.017486572265625,
0.07098388671875,
-0.00991058349609375,
-0.03045654296875,
-0.0056610107421875,
0.01416015625,
-0.02008056640625,
0.005664825439453125,
0.004985809326171875,
-0.01480865478515625,
0.01494598388671875,
-0.01374053955078125,
-0.0033397674560546875,
0.06439208984375,
-0.06378173828125,
0.01259613037109375,
-0.00921630859375,
-0.041595458984375,
-0.042236328125,
0.01546478271484375,
-0.061676025390625,
0.01369476318359375,
0.0411376953125,
-0.01435089111328125,
0.036590576171875,
-0.0010833740234375,
0.0299072265625,
0.0306549072265625,
-0.038848876953125,
-0.0015811920166015625,
-0.0133056640625,
0.0137939453125,
-0.02850341796875,
-0.00846099853515625,
-0.0110626220703125,
0.00844573974609375,
0.01229095458984375,
0.0127410888671875,
-0.0277252197265625,
-0.0302276611328125,
0.0007066726684570312,
0.0272979736328125,
-0.0172271728515625,
-0.008819580078125,
-0.0609130859375,
0.0095367431640625,
-0.0016279220581054688,
0.0034236907958984375,
-0.04833984375,
0.0265350341796875,
-0.007755279541015625,
0.04376220703125,
-0.0355224609375,
-0.0000730752944946289,
0.0209197998046875,
0.035797119140625,
-0.053680419921875,
0.033447265625,
-0.0175018310546875,
-0.04425048828125,
-0.0038547515869140625,
0.05279541015625,
0.060577392578125,
-0.044525146484375,
0.04327392578125,
0.0850830078125,
0.05181884765625,
0.1541748046875,
-0.0257568359375,
-0.01346588134765625,
0.03143310546875,
-0.0195159912109375,
-0.0033416748046875,
-0.0509033203125,
-0.002132415771484375,
-0.054473876953125,
0.00551605224609375,
-0.0199737548828125,
0.0258026123046875,
0.04974365234375,
-0.040802001953125,
-0.10198974609375,
0.06365966796875,
-0.035308837890625,
-0.036590576171875,
-0.0335693359375,
-0.0028400421142578125,
-0.003932952880859375,
0.00981903076171875,
-0.006496429443359375,
-0.006427764892578125,
-0.01214599609375,
0.037750244140625,
0.0086822509765625,
0.02923583984375,
0.030548095703125,
0.0119171142578125,
-0.042510986328125,
0.004398345947265625,
-0.0203704833984375,
-0.006198883056640625,
0.027191162109375,
-0.048126220703125,
0.034759521484375,
0.03350830078125,
-0.057159423828125,
-0.07122802734375,
-0.023040771484375,
0.003803253173828125,
0.004978179931640625,
-0.0238494873046875,
-0.003482818603515625,
-0.0193328857421875,
-0.004436492919921875,
0.03118896484375,
0.00476837158203125,
-0.0090179443359375,
0.057342529296875,
-0.0217742919921875,
-0.08447265625,
-0.0106048583984375,
0.0301971435546875,
-0.03900146484375,
-0.0108489990234375,
0.005443572998046875,
0.005321502685546875,
-0.006988525390625,
-0.0312042236328125,
-0.007320404052734375,
-0.01407623291015625,
0.0026798248291015625,
-0.00603485107421875,
0.0039215087890625,
-0.015350341796875,
0.054443359375,
-0.0379638671875,
0.011322021484375,
-0.02130126953125,
0.024139404296875,
0.0165863037109375,
-0.04583740234375,
-0.01288604736328125,
-0.037994384765625,
-0.00994110107421875,
0.036865234375,
-0.0217742919921875,
0.04241943359375,
-0.0259857177734375,
-0.029937744140625,
-0.003662109375,
0.03314208984375,
0.00858306884765625,
0.028106689453125,
-0.03802490234375,
0.050933837890625,
0.0013885498046875,
0.03997802734375,
-0.01160430908203125,
0.0016412734985351562,
-0.0169525146484375,
0.0307769775390625,
-0.0082855224609375,
-0.01186370849609375,
0.01036834716796875,
-0.029541015625,
-0.0034027099609375,
0.0161590576171875,
-0.02490234375,
-0.050079345703125,
0.053070068359375,
0.016571044921875,
0.00986480712890625,
0.028717041015625
] |
75523812a757dbccbea97551533a8cc2653b2869
|
Wordpress Stackexchange
Q: Hook the Keydown Event in the TinyMCE Post Editor I would like to hook the keydown event in the TinyMCE Editor on the edit post admin page. I managed to hook the HTML content editor using the following code:
jQuery('#content').keydown(function(){
alert("keydown")
});
Here is my failed attempt at hooking the TinyMCE editor. The problem is that the editor hasn't been init yet so the variable ed is undefined.
var ed = tinyMCE.getInstanceById('tinymce');
ed.onChange.add(function(ed, l) {
alert("keydown");
});
Any help would be much appreciated!
A: the TinyMCE Editor has its own keydown event handler and its hooked to a function on initiation so to do that you can create a tinymce plugin or use the wordpress initiation of it with tiny_mce_before_init hook like this:
add_filter( 'tiny_mce_before_init', 'wpse24113_tiny_mce_before_init' );
function wpse24113_tiny_mce_before_init( $initArray )
{
$initArray['setup'] = <<<JS
[function(ed) {
ed.onKeyDown.add(function(ed, e) {
//your function goes here
console.debug('Key down event: ' + e.keyCode);
});
}][0]
JS;
return $initArray;
}
|
Q: Hook the Keydown Event in the TinyMCE Post Editor I would like to hook the keydown event in the TinyMCE Editor on the edit post admin page. I managed to hook the HTML content editor using the following code:
jQuery('#content').keydown(function(){
alert("keydown")
});
Here is my failed attempt at hooking the TinyMCE editor. The problem is that the editor hasn't been init yet so the variable ed is undefined.
var ed = tinyMCE.getInstanceById('tinymce');
ed.onChange.add(function(ed, l) {
alert("keydown");
});
Any help would be much appreciated!
A: the TinyMCE Editor has its own keydown event handler and its hooked to a function on initiation so to do that you can create a tinymce plugin or use the wordpress initiation of it with tiny_mce_before_init hook like this:
add_filter( 'tiny_mce_before_init', 'wpse24113_tiny_mce_before_init' );
function wpse24113_tiny_mce_before_init( $initArray )
{
$initArray['setup'] = <<<JS
[function(ed) {
ed.onKeyDown.add(function(ed, e) {
//your function goes here
console.debug('Key down event: ' + e.keyCode);
});
}][0]
JS;
return $initArray;
}
|
wordpress
|
{
"language": "en",
"length": 157,
"provenance": "stackexchange_00019.jsonl.gz:411667",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24113"
}
|
[
-0.00978851318359375,
-0.01389312744140625,
0.005218505859375,
0.01311492919921875,
-0.0145721435546875,
-0.0036468505859375,
0.03460693359375,
-0.03814697265625,
0.002407073974609375,
0.050445556640625,
0.039306640625,
-0.00047206878662109375,
0.036865234375,
-0.036163330078125,
-0.017120361328125,
0.03173828125,
0.0430908203125,
-0.039276123046875,
0.0118560791015625,
-0.00423431396484375,
0.003124237060546875,
0.01342010498046875,
0.041168212890625,
-0.038970947265625,
0.0248260498046875,
0.0126495361328125,
0.045867919921875,
-0.0270233154296875,
0.005588531494140625,
-0.01482391357421875,
0.02630615234375,
-0.006397247314453125,
0.0118865966796875,
0.0806884765625,
-0.09326171875,
0.02545166015625,
-0.032928466796875,
0.05145263671875,
0.00820159912109375,
0.0205230712890625,
0.017791748046875,
-0.00946807861328125,
-0.0010652542114257812,
0.0687255859375,
-0.03680419921875,
-0.046783447265625,
0.0197601318359375,
-0.027008056640625,
0.02337646484375,
-0.038848876953125,
-0.01812744140625,
0.04058837890625,
0.005359649658203125,
-0.0379638671875,
-0.01010894775390625,
0.007110595703125,
-0.053955078125,
-0.0190887451171875,
-0.0024318695068359375,
0.134765625,
0.048614501953125,
0.0173797607421875,
-0.032928466796875,
-0.0679931640625,
-0.0118560791015625,
0.004100799560546875,
-0.0301513671875,
0.0002799034118652344,
0.0212860107421875,
-0.00249481201171875,
-0.006076812744140625,
-0.015350341796875,
0.0089569091796875,
-0.01849365234375,
0.010009765625,
-0.0227203369140625,
0.0031986236572265625,
-0.0212860107421875,
-0.003650665283203125,
0.0018825531005859375,
0.005615234375,
0.0024967193603515625,
-0.0234222412109375,
-0.03070068359375,
0.00005227327346801758,
-0.0101776123046875,
-0.0089263916015625,
-0.01142120361328125,
-0.0191802978515625,
-0.01166534423828125,
-0.02691650390625,
0.0081024169921875,
0.00955963134765625,
0.0008072853088378906,
-0.043731689453125,
0.002887725830078125,
-0.0158843994140625,
-0.01690673828125,
0.0187225341796875,
0.0098114013671875,
0.031036376953125,
-0.03961181640625,
0.03326416015625,
-0.01509857177734375,
0.0161590576171875,
0.0257415771484375,
-0.00505828857421875,
-0.0083770751953125,
0.034149169921875,
0.01824951171875,
-0.02288818359375,
0.0181427001953125,
0.006488800048828125,
0.00867462158203125,
0.00968170166015625,
-0.0016193389892578125,
-0.031890869140625,
0.04083251953125,
-0.01445770263671875,
0.03948974609375,
0.017852783203125,
0.01261138916015625,
0.01543426513671875,
-0.001552581787109375,
-0.0005927085876464844,
-0.00815582275390625,
-0.0245513916015625,
-0.0171356201171875,
0.034881591796875,
-0.01314544677734375,
-0.03131103515625,
0.048065185546875,
0.059722900390625,
0.01419830322265625,
0.0080413818359375,
0.0023365020751953125,
-0.0078277587890625,
0.0223541259765625,
-0.002170562744140625,
-0.003902435302734375,
-0.028961181640625,
0.010589599609375,
0.031097412109375,
-0.0272216796875,
0.004550933837890625,
0.00791168212890625,
0.0174560546875,
0.008453369140625,
0.0160369873046875,
-0.0092315673828125,
-0.0188751220703125,
0.01250457763671875,
0.0419921875,
0.024627685546875,
-0.02691650390625,
-0.035491943359375,
0.041839599609375,
-0.05242919921875,
-0.0136566162109375,
-0.070556640625,
0.0418701171875,
-0.01499176025390625,
0.002735137939453125,
-0.053436279296875,
-0.060394287109375,
-0.011688232421875,
-0.059906005859375,
0.00007998943328857422,
0.01605224609375,
-0.002475738525390625,
0.046600341796875,
0.015472412109375,
-0.00847625732421875,
0.012786865234375,
0.01580810546875,
-0.01323699951171875,
-0.028106689453125,
0.036041259765625,
0.0164794921875,
0.0214691162109375,
0.029022216796875,
-0.0176239013671875,
0.07177734375,
0.01062774658203125,
-0.049835205078125,
0.0574951171875,
-0.00736236572265625,
0.057373046875,
0.018646240234375,
0.005504608154296875,
0.0020885467529296875,
0.028411865234375,
0.01189422607421875,
-0.04913330078125,
-0.0196075439453125,
-0.015869140625,
0.0116424560546875,
0.0024013519287109375,
-0.004730224609375,
0.0225830078125,
0.035797119140625,
-0.0016651153564453125,
-0.0141754150390625,
-0.01251983642578125,
-0.05010986328125,
-0.0089874267578125,
-0.006855010986328125,
0.0190277099609375,
0.0693359375,
0.012481689453125,
-0.0338134765625,
-0.00394439697265625,
0.034149169921875,
-0.049774169921875,
-0.051361083984375,
0.04656982421875,
-0.03594970703125,
0.0504150390625,
-0.00525665283203125,
0.05419921875,
-0.0004012584686279297,
-0.027587890625,
0.01148223876953125,
-0.0134124755859375,
-0.01058197021484375,
0.0031871795654296875,
-0.016571044921875,
-0.004436492919921875,
-0.008148193359375,
-0.0027484893798828125,
0.0260162353515625,
0.0237274169921875,
-0.00891876220703125,
0.0221710205078125,
-0.0233917236328125,
-0.0399169921875,
-0.03936767578125,
-0.07470703125,
0.033599853515625,
0.063720703125,
0.020904541015625,
0.03955078125,
-0.025299072265625,
-0.0019969940185546875,
0.058441162109375,
-0.006435394287109375,
0.01241302490234375,
-0.01361846923828125,
0.01605224609375,
0.057830810546875,
0.0210113525390625,
-0.0146942138671875,
0.002208709716796875,
-0.01282501220703125,
0.01226043701171875,
0.008056640625,
0.009521484375,
0.018402099609375,
0.0142669677734375,
-0.0274658203125,
0.01453399658203125,
-0.048309326171875,
-0.050262451171875,
-0.01169586181640625,
0.032318115234375,
0.01012420654296875,
0.05352783203125,
0.0435791015625,
-0.01009368896484375,
-0.0053253173828125,
0.0024509429931640625,
0.0233001708984375,
0.00711822509765625,
0.034515380859375,
0.0338134765625,
-0.008544921875,
-0.027618408203125,
-0.0167694091796875,
0.054290771484375,
0.01342010498046875,
-0.042724609375,
0.00928497314453125,
-0.0134735107421875,
-0.0173492431640625,
-0.0167999267578125,
-0.006130218505859375,
0.01464080810546875,
-0.051116943359375,
0.0170440673828125,
0.0004734992980957031,
0.00579833984375,
0.021026611328125,
-0.013671875,
0.037445068359375,
-0.00399017333984375,
-0.0180816650390625,
0.02294921875,
-0.006229400634765625,
0.00693511962890625,
0.0011806488037109375,
0.05841064453125,
0.061065673828125,
-0.0124969482421875,
0.02606201171875,
0.0260772705078125,
-0.057403564453125,
0.0007634162902832031,
0.049407958984375,
0.03497314453125,
0.0099945068359375,
-0.06787109375,
0.02813720703125,
0.02386474609375,
0.05926513671875,
-0.021759033203125,
-0.032379150390625,
-0.022308349609375,
0.03607177734375,
-0.046875,
-0.06524658203125,
-0.0162811279296875,
-0.105224609375,
0.0249481201171875,
-0.03216552734375,
-0.059967041015625,
-0.0016584396362304688,
0.0076751708984375,
0.01102447509765625,
-0.039825439453125,
0.0226898193359375,
-0.0306854248046875,
-0.01192474365234375,
-0.0237274169921875,
0.00811767578125,
-0.0302276611328125,
0.02386474609375,
0.022796630859375,
0.014129638671875,
0.003719329833984375,
-0.01445770263671875,
0.05364990234375,
-0.032440185546875,
-0.0265960693359375,
0.0246124267578125,
-0.030731201171875,
-0.031494140625,
-0.0045013427734375,
-0.0213623046875,
-0.01513671875,
0.0026950836181640625,
0.017913818359375,
0.0096588134765625,
-0.0193023681640625,
-0.0244140625,
0.0145721435546875,
0.0380859375,
0.02490234375,
0.0042724609375,
0.0635986328125,
-0.02874755859375,
-0.003955841064453125,
-0.00142669677734375,
-0.009246826171875,
0.01155853271484375,
-0.01277923583984375,
-0.002429962158203125,
0.00959014892578125,
0.031982421875,
0.0008392333984375,
0.0262451171875,
0.0189666748046875,
0.0048828125,
-0.0017042160034179688,
-0.0297088623046875,
-0.03582763671875,
-0.009246826171875,
0.00920867919921875,
-0.01499176025390625,
0.0004968643188476562,
-0.00644683837890625,
0.00978851318359375,
-0.0191650390625,
0.0064544677734375,
-0.049163818359375,
-0.0038852691650390625,
0.03143310546875,
0.02685546875,
0.04302978515625,
-0.00017464160919189453,
-0.032501220703125,
0.0055389404296875,
0.05523681640625,
0.0010385513305664062,
-0.00907135009765625,
-0.0201416015625,
-0.01018524169921875,
-0.0271759033203125,
0.001216888427734375,
-0.038421630859375,
0.01263427734375,
-0.030364990234375,
0.031829833984375,
0.0215911865234375,
0.002044677734375,
-0.0594482421875,
0.06646728515625,
-0.048553466796875,
-0.01239013671875,
0.01641845703125,
-0.0440673828125,
-0.0027217864990234375,
0.017242431640625,
-0.027130126953125,
-0.00213623046875,
-0.0019359588623046875,
-0.041534423828125,
-0.07220458984375,
-0.0115966796875,
-0.0160064697265625,
0.03851318359375,
0.0193328857421875,
-0.060760498046875,
-0.01276397705078125,
0.033172607421875,
0.01517486572265625,
-0.014312744140625,
0.0303802490234375,
0.0276641845703125,
-0.027313232421875,
-0.0596923828125,
0.003055572509765625,
-0.06396484375,
0.0251007080078125,
0.05816650390625,
-0.039886474609375,
0.01496124267578125,
-0.026123046875,
-0.06072998046875,
0.056884765625,
-0.07562255859375,
-0.08160400390625,
-0.005275726318359375,
-0.033721923828125,
-0.0167388916015625,
-0.03570556640625,
0.005718231201171875,
0.014495849609375,
-0.07305908203125,
0.01270294189453125,
-0.032135009765625,
-0.014404296875,
-0.019622802734375,
0.0428466796875,
0.033172607421875,
-0.006927490234375,
0.061737060546875,
-0.01092529296875,
0.0288543701171875,
0.028778076171875,
-0.0010509490966796875,
-0.01148223876953125,
-0.0216064453125,
0.042022705078125,
0.017852783203125,
0.01303863525390625,
-0.08489990234375,
0.09576416015625,
-0.0019435882568359375,
0.0302276611328125,
-0.01222991943359375,
-0.0054473876953125,
0.0220947265625,
-0.068359375,
-0.058013916015625,
0.040679931640625,
0.02178955078125,
-0.005153656005859375,
-0.03497314453125,
0.07135009765625,
0.01399993896484375,
-0.007221221923828125,
-0.00910186767578125,
0.054931640625,
0.03387451171875,
0.0249176025390625,
0.007160186767578125,
-0.00431060791015625,
0.0270538330078125,
-0.028533935546875,
0.021240234375,
-0.00403594970703125,
0.01448822021484375,
0.0009555816650390625,
-0.00390625,
-0.0207977294921875,
-0.0053863525390625,
-0.00948333740234375,
-0.0017938613891601562,
0.005130767822265625,
-0.0241546630859375,
-0.03753662109375,
-0.003238677978515625,
0.00539398193359375,
-0.01313018798828125,
-0.0127410888671875,
-0.01800537109375,
0.035736083984375,
-0.026824951171875,
0.0162811279296875,
0.0367431640625,
-0.0116729736328125,
-0.005596160888671875,
-0.033203125,
-0.0180816650390625,
-0.01415252685546875,
0.01038360595703125,
0.0198822021484375,
-0.0310211181640625,
0.006473541259765625,
0.004482269287109375,
0.04205322265625,
0.0229949951171875,
0.050384521484375,
0.01515960693359375,
-0.01161956787109375,
-0.02001953125,
0.035491943359375,
-0.041351318359375,
-0.00653076171875,
-0.021514892578125,
0.0255279541015625,
0.00640869140625,
0.005260467529296875,
0.006099700927734375,
-0.0067901611328125,
0.016082763671875,
-0.0120086669921875,
0.03387451171875,
0.0113067626953125,
-0.04547119140625,
-0.0001556873321533203,
0.018035888671875,
0.005176544189453125,
-0.0208892822265625,
-0.00714874267578125,
-0.0155029296875,
-0.041015625,
0.01006317138671875,
-0.00933837890625,
-0.0006623268127441406,
0.00844573974609375,
-0.0077056884765625,
-0.0069427490234375,
0.01250457763671875,
0.003917694091796875,
-0.06634521484375,
-0.06024169921875,
-0.00380706787109375,
0.022308349609375,
0.050750732421875,
-0.0021038055419921875,
-0.034515380859375,
-0.0173492431640625,
0.03533935546875,
-0.0562744140625,
-0.007762908935546875,
0.0255279541015625,
-0.005084991455078125,
0.0239410400390625,
-0.0172576904296875,
-0.02545166015625,
-0.02642822265625,
0.020965576171875,
-0.0241241455078125,
-0.032745361328125,
-0.02301025390625,
0.035491943359375,
0.036895751953125,
0.0240936279296875,
-0.01488494873046875,
0.04791259765625,
-0.00522613525390625,
-0.0220947265625,
0.045806884765625,
0.0092010498046875,
0.0196685791015625,
-0.0157928466796875,
0.055389404296875,
0.007335662841796875,
-0.0033416748046875,
-0.0098876953125,
-0.0260772705078125,
0.0263519287109375,
-0.015228271484375,
0.0029144287109375,
-0.005767822265625,
0.01065826416015625,
-0.06549072265625,
-0.0269317626953125,
-0.0125274658203125,
-0.0035114288330078125,
0.01032257080078125,
0.004039764404296875,
-0.017730712890625,
0.004329681396484375,
0.0114898681640625,
0.004150390625,
0.0287628173828125,
-0.059234619140625,
0.01015472412109375,
-0.01824951171875,
0.00962066650390625,
0.04156494140625,
-0.05072021484375,
0.0128631591796875,
0.06329345703125,
0.01474761962890625,
0.01534271240234375,
0.036712646484375,
-0.031494140625,
0.0114288330078125,
0.018585205078125,
-0.0102081298828125,
-0.005123138427734375,
-0.016387939453125,
0.0223541259765625,
0.027374267578125,
0.033966064453125,
-0.011871337890625,
0.0193328857421875,
0.0181884765625,
-0.0229339599609375,
-0.0235748291015625,
0.048919677734375,
0.069091796875,
-0.06231689453125,
-0.01568603515625,
0.0439453125,
-0.01299285888671875,
-0.048614501953125,
-0.0257415771484375,
-0.0033092498779296875,
-0.0132293701171875,
0.06292724609375,
0.0192108154296875,
-0.0192718505859375,
0.0291290283203125,
-0.00568389892578125,
-0.0242156982421875,
-0.0178985595703125,
0.0330810546875,
0.0205535888671875,
-0.01015472412109375,
0.038330078125,
0.0028896331787109375,
0.0318603515625,
-0.0124664306640625,
0.04473876953125,
-0.0242156982421875,
-0.02056884765625,
-0.05322265625,
-0.021759033203125,
0.0205078125,
-0.048492431640625,
0.030853271484375,
-0.0009794235229492188,
-0.021575927734375,
0.021820068359375,
-0.0186614990234375,
0.003509521484375,
-0.0013589859008789062,
-0.0263824462890625,
0.0048370361328125,
-0.01512908935546875,
-0.0014600753784179688,
0.029022216796875,
-0.020355224609375,
0.011749267578125,
0.004528045654296875,
-0.0009636878967285156,
0.0225067138671875,
0.02947998046875,
0.0178680419921875,
-0.0322265625,
-0.0141448974609375,
0.05023193359375,
-0.037933349609375,
-0.01873779296875,
-0.0311737060546875,
-0.00823211669921875,
-0.039306640625,
0.01059722900390625,
-0.0487060546875,
-0.020751953125,
0.0301666259765625,
-0.0467529296875,
-0.02911376953125,
0.143798828125,
-0.02490234375,
-0.00959014892578125,
0.0116424560546875,
0.06243896484375,
-0.06707763671875,
0.03863525390625,
-0.04010009765625,
0.042236328125,
-0.01232147216796875,
0.03387451171875,
-0.058013916015625,
0.005645751953125,
0.0001939535140991211,
0.0160064697265625,
0.02313232421875,
-0.0033111572265625,
-0.004825592041015625,
-0.0416259765625,
0.0096435546875,
0.0287933349609375,
0.0023632049560546875,
0.0131683349609375,
0.01280975341796875,
-0.0758056640625,
0.01140594482421875,
0.0445556640625,
0.03729248046875,
-0.031463623046875,
0.0027790069580078125,
0.019989013671875,
-0.0259552001953125,
-0.051422119140625,
0.024627685546875,
-0.0625,
0.0145416259765625,
0.0010051727294921875,
-0.049163818359375,
-0.007904052734375,
-0.041961669921875,
0.073486328125,
0.022369384765625,
-0.049102783203125,
-0.08349609375,
-0.0440673828125,
0.0252532958984375,
0.0030269622802734375,
-0.0281829833984375,
-0.0046539306640625,
0.0180511474609375,
-0.0389404296875,
-0.051910400390625,
-0.031951904296875,
0.01898193359375,
-0.0269927978515625,
0.036041259765625,
0.00818634033203125,
0.019439697265625,
-0.0216522216796875,
0.01554107666015625,
0.0178985595703125,
0.035858154296875,
-0.0308990478515625,
-0.05157470703125,
0.006717681884765625,
0.0252838134765625,
-0.0030612945556640625,
0.0306854248046875,
0.0022430419921875,
-0.01378631591796875,
0.06298828125,
0.03924560546875,
-0.03857421875,
-0.0030918121337890625,
0.02203369140625,
0.00931549072265625,
0.020111083984375,
0.0206146240234375,
-0.04437255859375,
-0.0302581787109375,
0.0214080810546875,
-0.00994110107421875,
0.0208282470703125,
-0.0008668899536132812,
0.043701171875,
-0.005008697509765625,
-0.01183319091796875,
-0.038970947265625,
-0.006237030029296875,
0.01412200927734375,
0.048248291015625,
-0.035614013671875,
0.03216552734375,
0.0017576217651367188,
0.034912109375,
0.0110321044921875,
0.00598907470703125,
0.0254058837890625,
0.01806640625,
-0.0227813720703125,
-0.0191650390625,
-0.025787353515625,
-0.02081298828125,
-0.0106964111328125,
-0.0241241455078125,
0.0024547576904296875,
0.0243682861328125,
-0.004150390625,
-0.0008454322814941406,
0.0005688667297363281,
0.049835205078125,
-0.0115814208984375,
0.00478363037109375,
-0.00026345252990722656,
-0.0228729248046875,
-0.00913238525390625,
-0.004352569580078125,
0.022064208984375,
0.0072479248046875,
-0.07440185546875,
0.01029205322265625,
-0.0217437744140625,
-0.09332275390625,
0.034942626953125,
0.054962158203125,
-0.03106689453125,
0.004878997802734375,
0.0009655952453613281,
-0.012298583984375,
0.0101318359375,
0.020355224609375,
-0.0158843994140625,
0.00638580322265625,
0.031219482421875,
-0.01009368896484375,
0.0154266357421875,
0.0072174072265625,
0.01018524169921875,
0.041412353515625,
0.0347900390625,
0.023468017578125,
-0.0029392242431640625,
0.0372314453125,
0.020660400390625,
-0.03253173828125,
0.0277252197265625,
0.020599365234375,
0.00024390220642089844,
0.00936126708984375,
-0.002162933349609375,
-0.034881591796875,
-0.04962158203125,
0.06292724609375,
-0.03314208984375,
0.024566650390625,
0.0164031982421875,
-0.0172882080078125,
0.01255035400390625,
0.05255126953125,
0.054779052734375,
0.0008955001831054688,
0.01340484619140625,
-0.0168609619140625,
-0.033355712890625,
0.05224609375,
0.039642333984375,
0.0063018798828125,
-0.015716552734375,
-0.013885498046875,
-0.0462646484375,
-0.0170440673828125,
0.023101806640625,
-0.05322265625,
0.020843505859375,
0.01422882080078125,
0.00791168212890625,
0.057373046875,
0.007617950439453125,
-0.004436492919921875,
0.054595947265625,
-0.0246734619140625,
0.045074462890625,
-0.061492919921875,
0.046661376953125,
0.040496826171875,
0.067626953125,
0.00811767578125,
0.01464080810546875,
0.00688934326171875,
0.01230621337890625,
0.0052642822265625,
0.00609588623046875,
-0.03192138671875,
-0.0224151611328125,
0.00925445556640625,
0.01593017578125,
0.0052032470703125,
-0.036834716796875,
-0.0335693359375,
-0.00670623779296875,
0.024688720703125,
-0.01088714599609375,
-0.029815673828125,
-0.003070831298828125,
-0.0166168212890625,
0.053680419921875,
-0.0156402587890625,
0.041961669921875,
-0.0198974609375,
0.0011463165283203125,
-0.0421142578125,
-0.03729248046875,
-0.03765869140625,
0.04595947265625,
-0.026153564453125,
0.023956298828125,
0.04833984375,
-0.0172576904296875,
-0.05841064453125,
0.0204620361328125,
-0.0004892349243164062,
0.0672607421875,
-0.056640625,
-0.004039764404296875,
0.0765380859375,
-0.0298004150390625,
-0.052978515625,
-0.046966552734375,
0.0018186569213867188,
-0.046051025390625,
0.01221466064453125,
0.006214141845703125,
-0.0142822265625,
-0.001483917236328125,
-0.05572509765625,
-0.10906982421875,
0.0120086669921875,
0.0021343231201171875,
-0.034759521484375,
-0.0097503662109375,
0.0102691650390625,
-0.0022678375244140625,
0.006656646728515625,
0.0011196136474609375,
-0.00629425048828125,
-0.00930023193359375,
0.0027980804443359375,
0.025909423828125,
0.0372314453125,
0.049163818359375,
0.0010433197021484375,
-0.036956787109375,
-0.004756927490234375,
-0.0377197265625,
0.0176544189453125,
0.01047515869140625,
-0.02496337890625,
0.04693603515625,
0.037994384765625,
-0.03314208984375,
-0.0557861328125,
0.0020008087158203125,
-0.0233306884765625,
-0.0308837890625,
-0.062347412109375,
-0.042938232421875,
-0.006923675537109375,
0.130615234375,
0.04718017578125,
0.0264129638671875,
-0.050933837890625,
-0.00914764404296875,
-0.03851318359375,
-0.046539306640625,
-0.0158233642578125,
0.0257110595703125,
-0.0701904296875,
0.0149993896484375,
0.0235748291015625,
0.006809234619140625,
-0.0122833251953125,
-0.02862548828125,
-0.01397705078125,
-0.0221099853515625,
-0.0187225341796875,
0.009918212890625,
-0.0111236572265625,
0.042572021484375,
0.07366943359375,
-0.0540771484375,
-0.03277587890625,
0.040374755859375,
-0.01435089111328125,
0.031097412109375,
0.03973388671875,
-0.0250244140625,
0.016510009765625,
-0.02935791015625,
0.01910400390625,
-0.00568389892578125,
0.006938934326171875,
-0.041046142578125,
0.01393890380859375,
-0.0190277099609375,
0.0019779205322265625,
0.0011434555053710938,
0.0007848739624023438,
0.0151519775390625,
-0.00498199462890625,
-0.0018491744995117188,
0.043701171875,
-0.048492431640625,
-0.03192138671875,
-0.03375244140625,
0.00243377685546875,
-0.01166534423828125,
0.0394287109375,
0.01337432861328125,
0.0186920166015625,
0.0215606689453125,
0.0237884521484375,
0.01390838623046875,
0.0290679931640625,
-0.00969696044921875,
0.00579071044921875,
-0.0189971923828125,
-0.007343292236328125
] |
099f8e181b0564b94a0a4c7a87b2cfffaeddde95
|
Wordpress Stackexchange
Q: Nicest way to 301 Redirect traffic when changing permalink settings If I change my permalink structure, is there is a nice way to handle when people/bots go to the old structure?
I presume I can add use .htaccess and write a rule to redirect based on a 301 but is it possible in my case?
I currently have site.com/%year%/%month%/%day%/%postname% and I will just want site.com/%category%/%postname%
A: Dean's Permalink Migration has always worked for me. Install it before you change your permalinks.
|
Q: Nicest way to 301 Redirect traffic when changing permalink settings If I change my permalink structure, is there is a nice way to handle when people/bots go to the old structure?
I presume I can add use .htaccess and write a rule to redirect based on a 301 but is it possible in my case?
I currently have site.com/%year%/%month%/%day%/%postname% and I will just want site.com/%category%/%postname%
A: Dean's Permalink Migration has always worked for me. Install it before you change your permalinks.
A: For people, you can try Smart 404.
A: You can typically perform the 301/302 redirect in the functions.php file of your theme.
Here is one of many references you can find - http://perishablepress.com/permanent-301-redirect-via-php-or-htaccess/
A: I would recommend two plugins for this: either Redirection - a good way to manage your changed urls / permalinks, and 404 Redirected, which is good for logging and manually fixing permalink errors.
|
wordpress
|
{
"language": "en",
"length": 150,
"provenance": "stackexchange_00019.jsonl.gz:411716",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24251"
}
|
[
0.046875,
0.00601959228515625,
-0.007129669189453125,
-0.004566192626953125,
0.0009331703186035156,
-0.03729248046875,
0.030609130859375,
-0.041900634765625,
-0.0120849609375,
0.0272064208984375,
0.0007085800170898438,
-0.002044677734375,
-0.00971221923828125,
-0.032806396484375,
0.004306793212890625,
-0.0174713134765625,
0.024627685546875,
-0.0283966064453125,
0.011474609375,
-0.0279998779296875,
0.01654052734375,
-0.00008946657180786133,
0.0264739990234375,
0.03851318359375,
0.0235748291015625,
-0.039154052734375,
0.07232666015625,
-0.0439453125,
0.01435089111328125,
-0.040924072265625,
0.0192108154296875,
0.010040283203125,
0.01558685302734375,
0.01114654541015625,
0.023529052734375,
0.077392578125,
0.052703857421875,
-0.0001919269561767578,
0.040618896484375,
0.03204345703125,
0.03997802734375,
-0.026123046875,
-0.0008149147033691406,
0.02691650390625,
0.0030612945556640625,
-0.03955078125,
0.0214691162109375,
-0.07666015625,
0.0193023681640625,
-0.03399658203125,
0.01349639892578125,
0.025360107421875,
0.008087158203125,
0.008636474609375,
-0.029052734375,
-0.00954437255859375,
-0.0204620361328125,
-0.036956787109375,
0.0274200439453125,
-0.01503753662109375,
-0.0172119140625,
-0.02545166015625,
0.037078857421875,
0.007266998291015625,
-0.038665771484375,
-0.00426483154296875,
-0.052581787109375,
0.01593017578125,
-0.036590576171875,
-0.037567138671875,
0.0311431884765625,
-0.037109375,
-0.0120849609375,
-0.030181884765625,
0.008819580078125,
-0.002529144287109375,
-0.0104522705078125,
-0.031463623046875,
0.00612640380859375,
0.0235595703125,
-0.0028533935546875,
-0.0080108642578125,
0.047454833984375,
-0.08782958984375,
0.05413818359375,
-0.034271240234375,
-0.0108642578125,
0.00399017333984375,
-0.05718994140625,
-0.0238189697265625,
-0.03466796875,
-0.002292633056640625,
-0.0791015625,
-0.006420135498046875,
-0.0067291259765625,
-0.017852783203125,
0.0283203125,
0.0295867919921875,
-0.0026454925537109375,
-0.0007290840148925781,
0.0010004043579101562,
-0.032257080078125,
-0.0127716064453125,
-0.017333984375,
-0.0003113746643066406,
-0.00047206878662109375,
0.023834228515625,
0.019500732421875,
0.036407470703125,
0.0089111328125,
-0.0128326416015625,
0.05126953125,
-0.01268768310546875,
0.0166473388671875,
-0.052490234375,
0.03118896484375,
-0.0184173583984375,
-0.0165863037109375,
-0.021820068359375,
0.048187255859375,
0.0054168701171875,
0.0419921875,
0.0244598388671875,
-0.015106201171875,
0.00035762786865234375,
0.003742218017578125,
-0.016265869140625,
-0.05499267578125,
-0.01412200927734375,
-0.0027313232421875,
-0.0104217529296875,
0.0104217529296875,
0.0193023681640625,
0.05743408203125,
0.01129913330078125,
-0.01125335693359375,
0.0791015625,
-0.04132080078125,
-0.0077667236328125,
0.0126190185546875,
0.0204620361328125,
-0.02679443359375,
-0.036376953125,
-0.008087158203125,
0.001605987548828125,
0.0223846435546875,
0.023834228515625,
0.00974273681640625,
-0.0144195556640625,
-0.025726318359375,
-0.004276275634765625,
-0.0168304443359375,
0.05902099609375,
-0.0218048095703125,
-0.044921875,
-0.045318603515625,
-0.0182952880859375,
-0.004940032958984375,
-0.01000213623046875,
-0.03961181640625,
0.037841796875,
-0.0014600753784179688,
0.0123291015625,
0.0014896392822265625,
-0.0275726318359375,
-0.0002510547637939453,
-0.07183837890625,
-0.0139617919921875,
0.020416259765625,
-0.00656890869140625,
0.0230255126953125,
-0.01160430908203125,
-0.0335693359375,
-0.0269622802734375,
0.0011959075927734375,
0.005031585693359375,
-0.005153656005859375,
0.01490020751953125,
-0.0107269287109375,
0.054901123046875,
0.032257080078125,
-0.034912109375,
-0.0171051025390625,
0.0195159912109375,
-0.054901123046875,
0.06317138671875,
-0.0012264251708984375,
0.056365966796875,
-0.005001068115234375,
0.0039520263671875,
0.033355712890625,
0.0458984375,
-0.0745849609375,
0.054534912109375,
-0.0120086669921875,
-0.02178955078125,
0.0307769775390625,
0.0018663406372070312,
0.002292633056640625,
-0.03228759765625,
-0.01861572265625,
0.01995849609375,
-0.0177001953125,
0.0496826171875,
0.030914306640625,
0.0165557861328125,
0.007293701171875,
-0.007038116455078125,
0.0240936279296875,
0.046234130859375,
-0.0084075927734375,
0.01515960693359375,
-0.0111083984375,
-0.038055419921875,
0.006153106689453125,
0.0386962890625,
-0.0166473388671875,
0.01264190673828125,
-0.00769805908203125,
0.0216522216796875,
0.0010738372802734375,
-0.042388916015625,
-0.01058197021484375,
0.002452850341796875,
-0.01012420654296875,
-0.0155487060546875,
-0.01444244384765625,
-0.0153656005859375,
-0.04827880859375,
0.01139068603515625,
-0.052642822265625,
0.0308837890625,
0.0213470458984375,
0.0212249755859375,
-0.01593017578125,
0.004604339599609375,
-0.004512786865234375,
-0.05810546875,
0.0009412765502929688,
0.048309326171875,
0.0186004638671875,
0.0031261444091796875,
-0.0394287109375,
0.007358551025390625,
-0.0120849609375,
-0.05633544921875,
-0.0158843994140625,
0.0228424072265625,
0.00036787986755371094,
0.0194854736328125,
0.007160186767578125,
-0.004566192626953125,
0.0255126953125,
-0.02105712890625,
-0.0235595703125,
0.041717529296875,
-0.007720947265625,
-0.02288818359375,
-0.004608154296875,
0.01947021484375,
0.01195526123046875,
-0.00467681884765625,
-0.03839111328125,
0.00342559814453125,
0.0300750732421875,
-0.036834716796875,
0.0020351409912109375,
-0.0117645263671875,
0.0160980224609375,
-0.01837158203125,
0.003520965576171875,
-0.06756591796875,
0.002300262451171875,
0.038543701171875,
0.0380859375,
-0.01007843017578125,
-0.020843505859375,
-0.0157623291015625,
0.033538818359375,
0.0231475830078125,
-0.03411865234375,
0.0115203857421875,
-0.02764892578125,
-0.0218353271484375,
-0.0218505859375,
-0.0078582763671875,
-0.003997802734375,
-0.01934814453125,
-0.00971221923828125,
0.027679443359375,
0.06781005859375,
-0.014739990234375,
-0.01739501953125,
-0.0211334228515625,
-0.01025390625,
-0.0193939208984375,
0.005886077880859375,
-0.057891845703125,
0.0465087890625,
-0.047027587890625,
0.0175628662109375,
0.06634521484375,
0.0089263916015625,
0.0009489059448242188,
-0.0012140274047851562,
0.021026611328125,
0.01277923583984375,
0.0003063678741455078,
-0.0139312744140625,
-0.0155181884765625,
-0.050201416015625,
-0.040130615234375,
0.0164031982421875,
0.0599365234375,
-0.0261077880859375,
-0.035858154296875,
0.01158905029296875,
0.0179290771484375,
-0.0233001708984375,
-0.018524169921875,
-0.067138671875,
0.0031986236572265625,
0.010955810546875,
0.052520751953125,
0.0290679931640625,
-0.013214111328125,
0.05303955078125,
0.0184173583984375,
0.05548095703125,
-0.0256805419921875,
-0.10076904296875,
-0.0267181396484375,
-0.082763671875,
0.00555419921875,
-0.0198974609375,
-0.00801849365234375,
-0.00006628036499023438,
-0.04254150390625,
-0.0269622802734375,
-0.044036865234375,
-0.01837158203125,
0.033111572265625,
0.0119171142578125,
-0.0243377685546875,
-0.00989532470703125,
0.0091400146484375,
0.0150299072265625,
-0.0016117095947265625,
0.071044921875,
0.04937744140625,
-0.053009033203125,
0.001636505126953125,
-0.0247344970703125,
-0.01369476318359375,
0.005382537841796875,
-0.048065185546875,
0.009307861328125,
-0.024261474609375,
-0.02374267578125,
-0.0648193359375,
-0.0190277099609375,
-0.0136871337890625,
-0.051483154296875,
-0.027496337890625,
0.019134521484375,
0.00457763671875,
0.002544403076171875,
-0.0172576904296875,
0.04180908203125,
0.035003662109375,
0.0009217262268066406,
-0.0135345458984375,
0.0306396484375,
0.0045928955078125,
0.0345458984375,
-0.040130615234375,
-0.0264434814453125,
-0.056365966796875,
0.04168701171875,
-0.0228424072265625,
-0.01401519775390625,
-0.006649017333984375,
0.0279998779296875,
-0.007598876953125,
-0.07208251953125,
0.027191162109375,
-0.088623046875,
0.0019359588623046875,
-0.06341552734375,
0.00036406517028808594,
-0.028045654296875,
0.0926513671875,
0.057525634765625,
-0.01544189453125,
-0.0216064453125,
-0.01080322265625,
-0.007415771484375,
0.004283905029296875,
-0.00765228271484375,
-0.016571044921875,
-0.06988525390625,
-0.031585693359375,
-0.00799560546875,
-0.05426025390625,
-0.0191650390625,
0.023040771484375,
-0.05035400390625,
-0.0177001953125,
0.031158447265625,
-0.0123443603515625,
0.0220947265625,
0.00029730796813964844,
0.004146575927734375,
-0.01052093505859375,
-0.0139007568359375,
-0.0209197998046875,
-0.0276336669921875,
-0.016571044921875,
0.0272216796875,
0.026458740234375,
0.01128387451171875,
-0.03948974609375,
0.01552581787109375,
0.0540771484375,
0.0032749176025390625,
-0.01177215576171875,
0.0177459716796875,
0.002574920654296875,
0.0123748779296875,
0.019989013671875,
-0.0030231475830078125,
-0.01177978515625,
0.000518798828125,
-0.041473388671875,
-0.049102783203125,
-0.012786865234375,
-0.0279541015625,
0.0335693359375,
0.01258087158203125,
-0.0247039794921875,
-0.08984375,
-0.01438140869140625,
-0.0338134765625,
0.00894927978515625,
-0.032562255859375,
0.000293731689453125,
-0.01129913330078125,
-0.107421875,
0.05474853515625,
-0.0128021240234375,
0.01123046875,
-0.01450347900390625,
0.07208251953125,
0.000316619873046875,
-0.0226287841796875,
0.026702880859375,
0.0374755859375,
0.0311431884765625,
-0.0347900390625,
0.048858642578125,
0.0003337860107421875,
-0.0088958740234375,
0.06585693359375,
-0.037506103515625,
-0.02801513671875,
-0.02471923828125,
0.02044677734375,
0.01070404052734375,
-0.005916595458984375,
-0.0018978118896484375,
-0.03363037109375,
0.056304931640625,
0.07086181640625,
0.0030078887939453125,
-0.004970550537109375,
-0.07476806640625,
0.0146026611328125,
0.033721923828125,
-0.0286865234375,
-0.059967041015625,
-0.027435302734375,
0.01898193359375,
0.02288818359375,
0.0347900390625,
0.0099029541015625,
-0.00418853759765625,
0.0115966796875,
0.012969970703125,
0.00005716085433959961,
-0.01873779296875,
-0.0286102294921875,
-0.01024627685546875,
0.02813720703125,
-0.0112457275390625,
0.00220489501953125,
-0.0012731552124023438,
-0.003963470458984375,
0.0323486328125,
0.0309906005859375,
-0.0011510848999023438,
0.0117950439453125,
-0.03173828125,
-0.042755126953125,
0.0099334716796875,
-0.016632080078125,
0.055755615234375,
0.0242462158203125,
-0.0011653900146484375,
0.0001646280288696289,
-0.04559326171875,
-0.0010528564453125,
-0.053985595703125,
0.0210723876953125,
0.0102081298828125,
-0.01416778564453125,
0.0092926025390625,
0.034820556640625,
0.042266845703125,
0.0004031658172607422,
-0.0126190185546875,
0.00970458984375,
0.00946044921875,
-0.01427459716796875,
0.00411224365234375,
0.036865234375,
0.0161285400390625,
-0.0546875,
0.03753662109375,
-0.034820556640625,
-0.03790283203125,
0.053558349609375,
0.065185546875,
-0.000016808509826660156,
0.01435089111328125,
-0.0182037353515625,
-0.00269317626953125,
-0.03240966796875,
0.052886962890625,
-0.00848388671875,
-0.07891845703125,
-0.039031982421875,
-0.0080108642578125,
0.01983642578125,
-0.0216522216796875,
-0.0090179443359375,
-0.01067352294921875,
-0.056854248046875,
0.003147125244140625,
0.033416748046875,
0.01123046875,
-0.0212249755859375,
-0.0369873046875,
0.0159759521484375,
-0.032135009765625,
0.0010633468627929688,
-0.006069183349609375,
0.03961181640625,
-0.043670654296875,
-0.011322021484375,
0.03814697265625,
0.0081939697265625,
0.037200927734375,
-0.0037899017333984375,
-0.049774169921875,
0.056304931640625,
-0.0069427490234375,
0.032928466796875,
-0.00406646728515625,
-0.05499267578125,
-0.00286102294921875,
-0.01654052734375,
0.01123046875,
0.0021343231201171875,
-0.026336669921875,
-0.01003265380859375,
-0.019989013671875,
0.022064208984375,
0.01280975341796875,
-0.005992889404296875,
-0.0206146240234375,
-0.004802703857421875,
0.015960693359375,
0.008026123046875,
0.0212554931640625,
-0.029052734375,
0.039398193359375,
0.00083160400390625,
0.0228118896484375,
-0.01332855224609375,
0.010589599609375,
0.0045623779296875,
-0.0155029296875,
0.00386810302734375,
-0.0555419921875,
-0.0323486328125,
-0.017059326171875,
-0.00632476806640625,
0.042022705078125,
0.04742431640625,
-0.0034885406494140625,
0.020904541015625,
0.0019283294677734375,
0.02862548828125,
-0.0285491943359375,
-0.03900146484375,
-0.08660888671875,
-0.01209259033203125,
-0.0305023193359375,
0.05279541015625,
0.0728759765625,
-0.032135009765625,
-0.046356201171875,
-0.0199432373046875,
0.031951904296875,
0.0221099853515625,
-0.02490234375,
-0.0222625732421875,
0.0119476318359375,
0.0478515625,
-0.0015888214111328125,
0.026947021484375,
0.020751953125,
-0.0053558349609375,
0.035797119140625,
-0.03668212890625,
0.0211639404296875,
0.0653076171875,
0.03851318359375,
-0.0249176025390625,
0.0220794677734375,
0.0267486572265625,
-0.0009918212890625,
-0.0225677490234375,
0.061981201171875,
0.047760009765625,
-0.09088134765625,
-0.010498046875,
0.00727081298828125,
0.006237030029296875,
0.0007100105285644531,
0.0152130126953125,
-0.00994110107421875,
0.0114898681640625,
-0.00730133056640625,
-0.0269012451171875,
-0.02215576171875,
-0.011016845703125,
0.0113372802734375,
-0.0187835693359375,
-0.01220703125,
0.0335693359375,
0.01012420654296875,
0.0018453598022460938,
-0.0243072509765625,
0.0060577392578125,
-0.0026416778564453125,
0.0013723373413085938,
0.0085296630859375,
-0.0015077590942382812,
-0.0144195556640625,
-0.0025691986083984375,
0.049407958984375,
-0.0242156982421875,
0.0174102783203125,
0.004428863525390625,
-0.013824462890625,
0.01531219482421875,
0.04345703125,
-0.0170135498046875,
-0.006008148193359375,
0.0207061767578125,
-0.039093017578125,
0.045806884765625,
-0.012603759765625,
-0.005138397216796875,
-0.036346435546875,
0.026397705078125,
-0.01174163818359375,
-0.00759124755859375,
-0.03607177734375,
-0.01023101806640625,
-0.0289154052734375,
0.044403076171875,
-0.03570556640625,
-0.00966644287109375,
0.0138702392578125,
0.018951416015625,
-0.003421783447265625,
0.0010442733764648438,
0.00856781005859375,
-0.01522064208984375,
-0.002109527587890625,
-0.01305389404296875,
-0.03662109375,
-0.00185394287109375,
-0.03741455078125,
-0.039886474609375,
0.0859375,
0.00954437255859375,
0.02947998046875,
0.03582763671875,
0.034820556640625,
-0.024017333984375,
0.0192108154296875,
-0.0180511474609375,
0.053924560546875,
-0.01108551025390625,
0.0281524658203125,
-0.0389404296875,
-0.01226806640625,
0.007534027099609375,
0.037384033203125,
0.0511474609375,
0.0078582763671875,
-0.078369140625,
0.010009765625,
0.06903076171875,
0.0181732177734375,
0.011871337890625,
0.0587158203125,
-0.055694580078125,
-0.00140380859375,
0.01483154296875,
-0.019561767578125,
0.01885986328125,
0.006938934326171875,
-0.0753173828125,
-0.036895751953125,
0.01462554931640625,
0.0175628662109375,
0.023773193359375,
-0.051605224609375,
-0.05352783203125,
0.0218505859375,
0.049163818359375,
-0.0182647705078125,
0.0247344970703125,
0.01381683349609375,
0.023834228515625,
-0.047698974609375,
0.01058197021484375,
-0.03790283203125,
0.0460205078125,
-0.006198883056640625,
0.0031986236572265625,
0.0228424072265625,
0.0107269287109375,
0.08294677734375,
-0.020172119140625,
-0.00824737548828125,
0.0205230712890625,
-0.00350189208984375,
0.06414794921875,
0.047576904296875,
0.0282745361328125,
-0.01305389404296875,
-0.06689453125,
0.0458984375,
0.09930419921875,
-0.0192413330078125,
0.0019464492797851562,
0.003936767578125,
0.000024080276489257812,
0.033782958984375,
-0.03912353515625,
0.051177978515625,
-0.0096588134765625,
-0.014801025390625,
0.01015472412109375,
0.00211334228515625,
0.029327392578125,
0.0369873046875,
0.015899658203125,
0.0034503936767578125,
-0.058624267578125,
0.01605224609375,
-0.049957275390625,
0.0138397216796875,
0.022186279296875,
0.06658935546875,
0.038726806640625,
0.02105712890625,
0.012664794921875,
-0.036376953125,
0.00959014892578125,
-0.03240966796875,
0.006870269775390625,
-0.0234375,
-0.007633209228515625,
-0.003643035888671875,
0.014923095703125,
0.047576904296875,
0.030914306640625,
-0.0195465087890625,
-0.001068115234375,
0.01103973388671875,
0.033447265625,
-0.00685882568359375,
0.0084991455078125,
-0.009490966796875,
0.06610107421875,
-0.035247802734375,
0.0250396728515625,
-0.030609130859375,
-0.028961181640625,
-0.0333251953125,
-0.006633758544921875,
0.0251922607421875,
-0.0155029296875,
0.037109375,
0.006954193115234375,
-0.025634765625,
0.04266357421875,
0.005962371826171875,
0.0867919921875,
0.0333251953125,
0.025787353515625,
-0.0002199411392211914,
-0.019378662109375,
-0.024810791015625,
-0.004756927490234375,
0.032989501953125,
0.024200439453125,
-0.019561767578125,
-0.0241851806640625,
-0.0030345916748046875,
0.031951904296875,
-0.0279541015625,
-0.01322174072265625,
0.003902435302734375,
0.008941650390625,
-0.0247039794921875,
-0.03399658203125,
-0.020111083984375,
-0.007213592529296875,
0.03497314453125,
0.007228851318359375,
0.061676025390625,
-0.0239105224609375,
0.0092315673828125,
-0.005939483642578125,
-0.007167816162109375,
0.0217742919921875,
-0.0153045654296875,
0.03955078125,
0.02294921875,
0.004024505615234375,
-0.0254974365234375,
-0.08245849609375,
0.0157470703125,
0.0015544891357421875,
-0.00203704833984375,
0.038909912109375,
-0.0352783203125,
0.0114593505859375,
-0.0020732879638671875,
-0.00005519390106201172,
-0.050994873046875,
-0.093505859375,
-0.05218505859375,
0.0274810791015625,
-0.042449951171875,
-0.0275726318359375,
-0.0185546875,
0.0249786376953125,
-0.010162353515625,
-0.00724029541015625,
-0.004253387451171875,
-0.017425537109375,
-0.010406494140625,
0.03668212890625,
-0.019439697265625,
0.0027618408203125,
0.039520263671875,
-0.008880615234375,
0.0209503173828125,
0.0229339599609375,
-0.00344085693359375,
0.047943115234375,
-0.0230865478515625,
-0.00959014892578125,
-0.045989990234375,
-0.0038299560546875,
-0.0308380126953125,
-0.019439697265625,
-0.0299224853515625,
0.004261016845703125,
0.0131683349609375,
0.01163482666015625,
-0.0208282470703125,
-0.010040283203125,
-0.0031528472900390625,
0.016845703125,
-0.004421234130859375,
-0.0186309814453125,
-0.04632568359375,
0.00853729248046875,
0.00815582275390625,
-0.0035305023193359375,
-0.05096435546875,
0.040618896484375,
-0.02545166015625,
0.055419921875,
-0.06671142578125,
-0.0016126632690429688,
0.00897216796875,
0.00417327880859375,
-0.059600830078125,
-0.00342559814453125,
-0.054840087890625,
-0.0199432373046875,
-0.056732177734375,
0.002971649169921875,
0.038299560546875,
-0.012664794921875,
-0.0130157470703125,
-0.018768310546875,
-0.0223388671875,
0.0404052734375,
-0.0445556640625,
-0.0120697021484375,
0.0189361572265625,
0.0145721435546875,
-0.00926971435546875,
-0.0457763671875,
-0.01293182373046875,
0.0167388916015625,
0.005733489990234375,
-0.0170135498046875,
-0.05364990234375,
-0.054718017578125,
-0.058135986328125,
-0.04083251953125,
0.080810546875,
-0.002414703369140625,
-0.0060272216796875,
-0.0203857421875,
-0.01061248779296875,
-0.0033245086669921875,
0.019683837890625,
0.011871337890625,
-0.0228729248046875,
-0.0247955322265625,
0.0237274169921875,
0.002079010009765625,
0.058074951171875,
-0.02105712890625,
-0.00760650634765625,
0.0255584716796875,
0.037994384765625,
0.044158935546875,
0.00679779052734375,
0.03564453125,
-0.041748046875,
0.054534912109375,
0.03662109375,
-0.045318603515625,
-0.0176849365234375,
-0.00821685791015625,
-0.019287109375,
0.01068115234375,
-0.035400390625,
-0.031829833984375,
-0.043182373046875,
0.028472900390625,
0.006633758544921875,
0.00559234619140625,
0.004642486572265625,
-0.045074462890625,
-0.04412841796875,
-0.00617218017578125,
-0.012786865234375,
0.020751953125,
-0.06365966796875,
0.0135040283203125,
-0.0035953521728515625,
-0.0095977783203125,
0.0006809234619140625,
0.01476287841796875,
-0.0113525390625,
0.0133514404296875,
0.0292816162109375,
-0.0211944580078125,
-0.00472259521484375,
0.042572021484375,
0.045257568359375,
-0.03497314453125,
-0.0090789794921875,
-0.0034332275390625,
0.0012273788452148438,
-0.0077667236328125,
-0.054840087890625,
0.043121337890625,
0.0195770263671875,
-0.01224517822265625,
0.005619049072265625,
0.0335693359375,
0.0433349609375,
-0.016448974609375,
-0.048675537109375,
0.0038471221923828125,
0.046234130859375,
0.0142059326171875,
0.06451416015625,
-0.05340576171875,
0.062164306640625,
0.0195465087890625,
0.037353515625,
-0.000759124755859375,
-0.00620269775390625,
-0.0037059783935546875,
0.037445068359375,
-0.027069091796875,
-0.00293731689453125,
-0.0035343170166015625,
-0.046173095703125,
0.017120361328125,
-0.0223846435546875,
0.03997802734375,
-0.023956298828125,
0.03082275390625,
-0.0430908203125,
0.0050811767578125,
0.0260009765625
] |
cbeaed966378b0597d30c877afc346ede4efcb21
|
Wordpress Stackexchange
Q: Force core to use .dev JavaScript files I was wondering if there's some constant telling WordPress not to use the minified versions of scripts but instead load .dev ones. Already tried define('SCRIPT_DEBUG', true); but it only turned off script unification.
A: I use a combination of constants on my local install.
define('CONCATENATE_SCRIPTS', false);
define('COMPRESS_SCRIPTS', false); // <--- this is likely the one you're after
define('COMPRESS_CSS', false);
define('SCRIPT_DEBUG', true);
I'd imagine the second constant listed above is the one you're after.
|
Q: Force core to use .dev JavaScript files I was wondering if there's some constant telling WordPress not to use the minified versions of scripts but instead load .dev ones. Already tried define('SCRIPT_DEBUG', true); but it only turned off script unification.
A: I use a combination of constants on my local install.
define('CONCATENATE_SCRIPTS', false);
define('COMPRESS_SCRIPTS', false); // <--- this is likely the one you're after
define('COMPRESS_CSS', false);
define('SCRIPT_DEBUG', true);
I'd imagine the second constant listed above is the one you're after.
|
wordpress
|
{
"language": "en",
"length": 81,
"provenance": "stackexchange_00019.jsonl.gz:411724",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24289"
}
|
[
0.00574493408203125,
-0.0016489028930664062,
-0.039764404296875,
-0.0237274169921875,
0.0010738372802734375,
-0.025238037109375,
0.0136566162109375,
0.0163726806640625,
-0.00864410400390625,
0.00852203369140625,
-0.005413055419921875,
-0.00228118896484375,
-0.0255584716796875,
-0.032196044921875,
0.00199127197265625,
-0.05059814453125,
0.06683349609375,
-0.030059814453125,
-0.007289886474609375,
-0.01995849609375,
0.00930023193359375,
0.021697998046875,
-0.018402099609375,
0.1558837890625,
-0.0250091552734375,
-0.016693115234375,
0.0738525390625,
-0.00577545166015625,
-0.03045654296875,
-0.0394287109375,
-0.0087890625,
0.028961181640625,
0.002628326416015625,
0.055328369140625,
-0.0238037109375,
0.0355224609375,
0.0172271728515625,
0.033905029296875,
0.037841796875,
0.0089111328125,
-0.011199951171875,
0.00749969482421875,
0.029266357421875,
-0.0040283203125,
-0.01727294921875,
-0.01160430908203125,
-0.003787994384765625,
-0.014984130859375,
0.0205230712890625,
0.0253143310546875,
-0.007450103759765625,
-0.00122833251953125,
-0.0025177001953125,
0.0090484619140625,
-0.0259246826171875,
-0.0236968994140625,
-0.0144500732421875,
-0.002986907958984375,
0.019775390625,
0.0347900390625,
0.0004401206970214844,
0.01239776611328125,
0.01110076904296875,
-0.01273345947265625,
0.02239990234375,
-0.03106689453125,
-0.052581787109375,
0.0264739990234375,
-0.048583984375,
0.0408935546875,
0.065673828125,
-0.06304931640625,
0.028045654296875,
-0.0007481575012207031,
-0.008697509765625,
-0.027801513671875,
0.01189422607421875,
0.00988006591796875,
0.018951416015625,
-0.01203155517578125,
0.005279541015625,
-0.0286102294921875,
-0.003589630126953125,
0.01007843017578125,
-0.0308074951171875,
0.025299072265625,
0.0014858245849609375,
0.0005726814270019531,
-0.040496826171875,
-0.006381988525390625,
-0.037200927734375,
-0.0155029296875,
-0.0282440185546875,
-0.0135040283203125,
-0.0187530517578125,
-0.0113525390625,
0.039031982421875,
0.059967041015625,
-0.0220184326171875,
-0.013580322265625,
0.007480621337890625,
-0.02337646484375,
-0.01332855224609375,
-0.0120849609375,
0.0014562606811523438,
0.057647705078125,
-0.0147247314453125,
0.0178375244140625,
0.0240325927734375,
0.0311431884765625,
0.02685546875,
-0.0273284912109375,
-0.038909912109375,
-0.029449462890625,
0.01300811767578125,
0.01221466064453125,
-0.06201171875,
0.0175323486328125,
-0.017181396484375,
0.0015811920166015625,
0.021728515625,
0.047088623046875,
0.0184783935546875,
0.005817413330078125,
-0.003360748291015625,
-0.003818511962890625,
-0.018707275390625,
-0.0443115234375,
-0.05438232421875,
0.022308349609375,
-0.0006341934204101562,
0.0136260986328125,
0.0283050537109375,
0.01508331298828125,
-0.0211639404296875,
-0.0296173095703125,
0.0182952880859375,
-0.01091766357421875,
-0.0097503662109375,
0.0040740966796875,
-0.01508331298828125,
0.004619598388671875,
0.0279693603515625,
-0.03521728515625,
-0.03302001953125,
0.00007861852645874023,
-0.00423431396484375,
0.01206207275390625,
0.01410675048828125,
-0.05059814453125,
-0.006580352783203125,
-0.0295562744140625,
0.037078857421875,
-0.0018758773803710938,
-0.019195556640625,
-0.040130615234375,
0.01216888427734375,
-0.040435791015625,
0.0004553794860839844,
-0.045501708984375,
-0.0296783447265625,
0.0003542900085449219,
0.0182037353515625,
-0.04150390625,
-0.046295166015625,
0.01055908203125,
0.00823974609375,
-0.007320404052734375,
0.0252838134765625,
0.027740478515625,
0.020965576171875,
-0.0394287109375,
0.0012264251708984375,
0.005680084228515625,
-0.009124755859375,
0.0228271484375,
0.0102691650390625,
0.0104522705078125,
0.029266357421875,
0.0120697021484375,
-0.0135040283203125,
-0.033905029296875,
0.0699462890625,
-0.03173828125,
-0.0673828125,
0.0279388427734375,
-0.000057220458984375,
0.03314208984375,
0.0251312255859375,
-0.0115509033203125,
0.05755615234375,
0.01837158203125,
0.008392333984375,
0.0197601318359375,
-0.0267791748046875,
-0.07537841796875,
-0.0196990966796875,
-0.00412750244140625,
-0.034393310546875,
0.028472900390625,
0.0278167724609375,
-0.007335662841796875,
0.00153350830078125,
-0.020660400390625,
-0.07293701171875,
0.0020160675048828125,
-0.043212890625,
0.040496826171875,
0.0176544189453125,
0.00963592529296875,
-0.010589599609375,
0.0257110595703125,
-0.0017547607421875,
-0.02947998046875,
0.005367279052734375,
0.08013916015625,
-0.0032787322998046875,
0.06103515625,
0.03839111328125,
0.017425537109375,
0.03448486328125,
-0.00872039794921875,
0.03265380859375,
-0.019775390625,
-0.004627227783203125,
0.00815582275390625,
-0.00980377197265625,
0.00823211669921875,
0.04229736328125,
0.007720947265625,
0.08343505859375,
-0.0025081634521484375,
0.049407958984375,
0.042816162109375,
-0.0001252889633178711,
-0.0082550048828125,
0.0172576904296875,
-0.07061767578125,
0.0110321044921875,
0.049407958984375,
0.03521728515625,
0.043853759765625,
-0.0249481201171875,
-0.05224609375,
0.0523681640625,
-0.00881195068359375,
0.0196685791015625,
-0.043243408203125,
0.024383544921875,
0.036895751953125,
-0.005779266357421875,
-0.0276031494140625,
0.0238494873046875,
-0.0791015625,
0.0306243896484375,
0.03118896484375,
-0.035308837890625,
-0.01015472412109375,
0.03631591796875,
-0.057342529296875,
0.030548095703125,
-0.0269012451171875,
-0.0241546630859375,
0.0013246536254882812,
0.000698089599609375,
0.02239990234375,
0.00728607177734375,
0.0304107666015625,
-0.01983642578125,
0.0164642333984375,
0.0038700103759765625,
-0.041107177734375,
-0.01297760009765625,
0.01824951171875,
0.005748748779296875,
0.0265960693359375,
-0.037078857421875,
0.004192352294921875,
0.01447296142578125,
0.02178955078125,
-0.04119873046875,
-0.033111572265625,
-0.0384521484375,
0.004894256591796875,
0.006694793701171875,
-0.02703857421875,
0.0287322998046875,
-0.001068115234375,
0.0145416259765625,
-0.014617919921875,
0.0301055908203125,
-0.003009796142578125,
0.0037860870361328125,
-0.00560760498046875,
0.0287628173828125,
-0.044097900390625,
0.07977294921875,
-0.03399658203125,
0.01076507568359375,
-0.001255035400390625,
0.0738525390625,
0.054931640625,
0.0127410888671875,
0.014739990234375,
-0.01218414306640625,
0.056671142578125,
0.01024627685546875,
-0.020294189453125,
-0.0247344970703125,
0.005611419677734375,
-0.04150390625,
-0.00888824462890625,
0.032501220703125,
0.043914794921875,
0.01432037353515625,
-0.0226593017578125,
-0.0095062255859375,
0.033721923828125,
-0.07501220703125,
-0.089111328125,
0.006824493408203125,
-0.0283355712890625,
0.023681640625,
-0.004795074462890625,
0.004276275634765625,
-0.041259765625,
0.0225372314453125,
0.009063720703125,
-0.022979736328125,
-0.024139404296875,
-0.0413818359375,
-0.05780029296875,
-0.06524658203125,
0.0243988037109375,
-0.00583648681640625,
0.006439208984375,
0.006046295166015625,
0.0204010009765625,
0.0169219970703125,
-0.0191192626953125,
0.0379638671875,
0.0124969482421875,
-0.0258331298828125,
-0.01123046875,
0.0210418701171875,
-0.0254058837890625,
-0.0192108154296875,
0.01409149169921875,
-0.03167724609375,
-0.0008897781372070312,
0.00930023193359375,
-0.02813720703125,
-0.0103759765625,
-0.025482177734375,
-0.0035247802734375,
0.048126220703125,
0.00537872314453125,
0.0030975341796875,
0.0185394287109375,
-0.0321044921875,
-0.035003662109375,
0.027191162109375,
-0.0262451171875,
0.029510498046875,
0.01383209228515625,
-0.044403076171875,
0.0109100341796875,
0.02178955078125,
0.09234619140625,
0.0280609130859375,
-0.0015230178833007812,
0.004283905029296875,
0.09027099609375,
0.015777587890625,
0.0765380859375,
-0.07373046875,
0.09149169921875,
-0.00858306884765625,
-0.03631591796875,
0.0210723876953125,
-0.006031036376953125,
0.0036144256591796875,
-0.056365966796875,
-0.0225830078125,
0.019561767578125,
0.01239013671875,
-0.024200439453125,
0.0447998046875,
-0.01043701171875,
0.005725860595703125,
-0.011810302734375,
0.039215087890625,
-0.04901123046875,
-0.0086669921875,
-0.01148223876953125,
0.00775146484375,
-0.0306396484375,
-0.024139404296875,
-0.049102783203125,
-0.0036983489990234375,
-0.017974853515625,
-0.00833892822265625,
-0.0212249755859375,
-0.01611328125,
-0.01739501953125,
0.0165557861328125,
-0.00013446807861328125,
-0.0297393798828125,
0.0284423828125,
-0.040802001953125,
-0.01166534423828125,
-0.001132965087890625,
0.0125579833984375,
-0.04913330078125,
0.00823211669921875,
-0.03741455078125,
-0.0994873046875,
-0.0182342529296875,
-0.04840087890625,
0.07989501953125,
0.0178985595703125,
0.0035266876220703125,
-0.00958251953125,
0.04852294921875,
-0.01727294921875,
-0.01027679443359375,
-0.001888275146484375,
0.0141448974609375,
-0.01499176025390625,
0.036102294921875,
0.0134735107421875,
-0.0091400146484375,
-0.007579803466796875,
0.0020732879638671875,
-0.0443115234375,
0.00568389892578125,
0.0006880760192871094,
-0.005596160888671875,
0.043182373046875,
-0.029144287109375,
-0.044769287109375,
-0.045135498046875,
0.0095672607421875,
-0.01366424560546875,
-0.0242156982421875,
0.0246734619140625,
-0.02044677734375,
-0.01036834716796875,
0.0548095703125,
0.01934814453125,
-0.0181427001953125,
-0.0139007568359375,
0.0273590087890625,
0.023834228515625,
-0.03253173828125,
0.0202484130859375,
0.020111083984375,
0.0157623291015625,
-0.05230712890625,
0.06707763671875,
0.022064208984375,
0.007457733154296875,
0.05499267578125,
-0.0345458984375,
0.031280517578125,
0.0263519287109375,
0.0294647216796875,
-0.00457763671875,
-0.02984619140625,
0.044097900390625,
0.012847900390625,
-0.0943603515625,
0.0024871826171875,
0.007495880126953125,
-0.01084136962890625,
0.01462554931640625,
0.033294677734375,
-0.0010595321655273438,
-0.0013561248779296875,
-0.027587890625,
-0.0138397216796875,
-0.0030574798583984375,
-0.00849151611328125,
0.08154296875,
0.039520263671875,
0.002620697021484375,
0.034423828125,
0.0399169921875,
0.0024318695068359375,
0.046966552734375,
0.041748046875,
-0.01534271240234375,
0.051055908203125,
0.0135650634765625,
-0.00940704345703125,
-0.006862640380859375,
-0.01861572265625,
0.0307159423828125,
0.016143798828125,
-0.04327392578125,
0.005016326904296875,
0.0207672119140625,
0.0380859375,
-0.00200653076171875,
0.01171112060546875,
0.016265869140625,
-0.0288543701171875,
-0.0259857177734375,
-0.004024505615234375,
-0.005481719970703125,
-0.038787841796875,
-0.0150299072265625,
0.0021762847900390625,
0.01453399658203125,
-0.0252685546875,
0.0178985595703125,
-0.016448974609375,
0.01470947265625,
-0.00467681884765625,
-0.01435089111328125,
0.019866943359375,
0.014404296875,
0.01171112060546875,
0.01403045654296875,
-0.0097198486328125,
0.010894775390625,
-0.0173797607421875,
0.01427459716796875,
-0.0203857421875,
-0.0037441253662109375,
0.0264739990234375,
0.020172119140625,
-0.0136871337890625,
-0.0034313201904296875,
0.017333984375,
-0.00884246826171875,
0.01300811767578125,
0.0011005401611328125,
-0.058074951171875,
-0.00737762451171875,
-0.043365478515625,
-0.04443359375,
0.035369873046875,
-0.00353240966796875,
0.0131378173828125,
0.0037937164306640625,
0.051177978515625,
0.0123138427734375,
0.023468017578125,
-0.058685302734375,
0.0073699951171875,
0.044525146484375,
-0.0175628662109375,
-0.0277252197265625,
0.014862060546875,
-0.052398681640625,
-0.017425537109375,
-0.0152740478515625,
0.0056610107421875,
0.02001953125,
0.00023305416107177734,
-0.00528717041015625,
-0.0279998779296875,
0.01062774658203125,
0.011505126953125,
0.0163116455078125,
0.03912353515625,
0.01019287109375,
-0.01155853271484375,
-0.0166473388671875,
-0.0704345703125,
-0.050323486328125,
-0.0869140625,
-0.033935546875,
-0.035858154296875,
0.03448486328125,
0.0013475418090820312,
0.0206146240234375,
-0.0166015625,
-0.0161590576171875,
-0.014190673828125,
0.027374267578125,
0.008087158203125,
0.0567626953125,
-0.0071563720703125,
0.0268707275390625,
-0.01544189453125,
0.00927734375,
-0.0164794921875,
-0.0028228759765625,
-0.0030460357666015625,
-0.006664276123046875,
0.0080108642578125,
-0.05224609375,
-0.03314208984375,
0.020904541015625,
-0.00897216796875,
0.00815582275390625,
0.0004973411560058594,
-0.002422332763671875,
0.053314208984375,
-0.0001544952392578125,
0.00911712646484375,
-0.01629638671875,
-0.0212554931640625,
-0.04412841796875,
0.046478271484375,
-0.01233673095703125,
0.005725860595703125,
-0.038360595703125,
-0.0078887939453125,
-0.07940673828125,
0.0438232421875,
0.04473876953125,
0.0008988380432128906,
0.002475738525390625,
-0.02203369140625,
0.0300140380859375,
0.034027099609375,
0.01171875,
0.012481689453125,
0.01898193359375,
0.007724761962890625,
-0.00412750244140625,
0.053192138671875,
-0.055389404296875,
-0.0328369140625,
-0.00252532958984375,
0.00464630126953125,
-0.006866455078125,
-0.01136016845703125,
0.00833892822265625,
0.014404296875,
0.0860595703125,
0.08929443359375,
-0.0804443359375,
-0.005931854248046875,
0.01389312744140625,
-0.037139892578125,
-0.019561767578125,
-0.0170440673828125,
0.02996826171875,
-0.00977325439453125,
0.004486083984375,
0.037200927734375,
-0.0198974609375,
-0.00307464599609375,
-0.00443267822265625,
0.00894927978515625,
-0.033416748046875,
0.0302276611328125,
0.01312255859375,
0.006114959716796875,
0.03997802734375,
-0.017364501953125,
0.06591796875,
0.012451171875,
0.01082611083984375,
-0.0190887451171875,
-0.029754638671875,
-0.04522705078125,
-0.0310821533203125,
-0.0289764404296875,
-0.0283660888671875,
-0.001369476318359375,
0.008056640625,
0.036346435546875,
0.0142669677734375,
-0.007656097412109375,
0.0107879638671875,
-0.01387786865234375,
0.041229248046875,
-0.0472412109375,
-0.0291595458984375,
0.029541015625,
-0.01171875,
-0.01192474365234375,
0.026458740234375,
-0.0224609375,
-0.055389404296875,
-0.0175323486328125,
-0.0093231201171875,
0.03179931640625,
-0.0084381103515625,
-0.017791748046875,
0.049896240234375,
0.034576416015625,
-0.02880859375,
-0.027984619140625,
0.051849365234375,
-0.0494384765625,
-0.0181427001953125,
-0.001476287841796875,
-0.036407470703125,
-0.025177001953125,
-0.049957275390625,
0.0192108154296875,
0.06488037109375,
-0.018646240234375,
-0.0189208984375,
0.056976318359375,
0.0272674560546875,
-0.00545501708984375,
0.04290771484375,
-0.0201568603515625,
0.0877685546875,
0.01090240478515625,
0.007266998291015625,
-0.03387451171875,
-0.006565093994140625,
0.01016998291015625,
0.01349639892578125,
-0.012939453125,
-0.0006399154663085938,
0.017578125,
0.0305023193359375,
0.0634765625,
0.0419921875,
0.013214111328125,
-0.0034236907958984375,
-0.0163726806640625,
-0.00478363037109375,
-0.0205535888671875,
-0.00875091552734375,
0.0279083251953125,
-0.06219482421875,
-0.037872314453125,
-0.00028824806213378906,
0.0297393798828125,
0.043609619140625,
0.00406646728515625,
-0.00662994384765625,
-0.0157928466796875,
0.0082855224609375,
0.00907135009765625,
0.033905029296875,
-0.01364898681640625,
-0.01358795166015625,
-0.016937255859375,
-0.04046630859375,
-0.08984375,
0.01364898681640625,
-0.0006780624389648438,
0.01081085205078125,
-0.046142578125,
0.01349639892578125,
0.004673004150390625,
-0.055206298828125,
-0.0055084228515625,
-0.032196044921875,
0.01496124267578125,
-0.00397491455078125,
0.00795745849609375,
0.01338958740234375,
0.037506103515625,
-0.0036525726318359375,
0.005840301513671875,
0.0289459228515625,
0.0203399658203125,
-0.007068634033203125,
-0.021575927734375,
0.0215301513671875,
0.017822265625,
-0.007244110107421875,
-0.01514434814453125,
-0.0052490234375,
-0.04632568359375,
0.006229400634765625,
0.0169677734375,
-0.0192718505859375,
0.02978515625,
-0.05029296875,
0.028778076171875,
0.045745849609375,
0.041534423828125,
0.033905029296875,
-0.0655517578125,
0.004390716552734375,
0.02996826171875,
0.0948486328125,
0.044036865234375,
0.0509033203125,
-0.0068817138671875,
-0.054840087890625,
-0.0166473388671875,
0.023284912109375,
0.0237579345703125,
0.01128387451171875,
-0.0166473388671875,
-0.00890350341796875,
0.0513916015625,
0.0289459228515625,
0.027191162109375,
0.0087738037109375,
0.0645751953125,
0.04266357421875,
-0.061981201171875,
-0.0026798248291015625,
0.07147216796875,
-0.018524169921875,
0.016693115234375,
-0.00574493408203125,
0.01715087890625,
0.01525115966796875,
-0.00902557373046875,
-0.017791748046875,
0.05462646484375,
0.0245361328125,
0.01081085205078125,
-0.0150909423828125,
0.0142669677734375,
-0.02313232421875,
0.0269622802734375,
-0.00335693359375,
0.049560546875,
0.0306396484375,
0.06689453125,
0.043914794921875,
-0.0244903564453125,
-0.023681640625,
-0.0139923095703125,
0.0190582275390625,
0.0040740966796875,
0.0296783447265625,
0.00937652587890625,
-0.0258026123046875,
-0.01348876953125,
0.02960205078125,
0.0192718505859375,
0.009368896484375,
0.00714111328125,
0.006114959716796875,
-0.02685546875,
-0.007427215576171875,
-0.0087890625,
0.0184783935546875,
0.0021514892578125,
0.0421142578125,
-0.004360198974609375,
0.01507568359375,
0.032318115234375,
-0.0018930435180664062,
0.0001710653305053711,
0.0328369140625,
-0.017669677734375,
-0.0241546630859375,
-0.00029778480529785156,
-0.012451171875,
-0.040313720703125,
0.04766845703125,
-0.01007080078125,
-0.00730133056640625,
0.03790283203125,
-0.01261138916015625,
0.005428314208984375,
0.012451171875,
-0.022308349609375,
-0.031890869140625,
-0.04962158203125,
0.028717041015625,
0.03997802734375,
-0.028289794921875,
-0.011505126953125,
0.0021381378173828125,
-0.0279998779296875,
0.036651611328125,
-0.054351806640625,
-0.001430511474609375,
0.0163116455078125,
-0.01071929931640625,
0.017730712890625,
0.07061767578125,
0.00908660888671875,
0.0178680419921875,
-0.0217132568359375,
0.0195159912109375,
0.005001068115234375,
0.002285003662109375,
-0.0029773712158203125,
-0.0479736328125,
0.01380157470703125,
0.046295166015625,
0.05328369140625,
0.00423431396484375,
0.03192138671875,
0.0028514862060546875,
-0.008453369140625,
0.018707275390625,
-0.0160980224609375,
-0.02752685546875,
-0.012054443359375,
0.00905609130859375,
0.01690673828125,
0.00905609130859375,
-0.032806396484375,
-0.005031585693359375,
-0.03265380859375,
0.054931640625,
0.0166015625,
-0.06732177734375,
0.007305145263671875,
-0.0165557861328125,
0.049163818359375,
-0.0014495849609375,
0.057403564453125,
-0.051300048828125,
-0.03271484375,
-0.0531005859375,
-0.0323486328125,
-0.0300140380859375,
0.07611083984375,
-0.003284454345703125,
0.048431396484375,
0.059844970703125,
-0.032470703125,
0.0081024169921875,
0.060394287109375,
0.024566650390625,
0.106689453125,
-0.035003662109375,
-0.0295562744140625,
0.002933502197265625,
-0.0004448890686035156,
-0.009124755859375,
-0.030670166015625,
0.0134124755859375,
-0.061859130859375,
-0.01538848876953125,
-0.0570068359375,
0.02203369140625,
0.0057373046875,
-0.040008544921875,
-0.090576171875,
0.038909912109375,
-0.027374267578125,
-0.033660888671875,
-0.04779052734375,
-0.0195465087890625,
0.021026611328125,
-0.01079559326171875,
-0.0231475830078125,
-0.0253143310546875,
-0.053131103515625,
0.01360321044921875,
0.01508331298828125,
0.0218658447265625,
0.0404052734375,
-0.0089263916015625,
0.003963470458984375,
0.0211029052734375,
0.016693115234375,
0.004261016845703125,
-0.0162200927734375,
0.0350341796875,
0.0252838134765625,
0.0799560546875,
0.017730712890625,
0.023590087890625,
-0.0145111083984375,
-0.0645751953125,
-0.0297393798828125,
-0.003368377685546875,
-0.00841522216796875,
0.01849365234375,
0.06561279296875,
0.057708740234375,
0.014068603515625,
-0.054931640625,
-0.02728271484375,
-0.02239990234375,
-0.007465362548828125,
0.0030231475830078125,
0.014984130859375,
-0.051849365234375,
0.013641357421875,
-0.0082550048828125,
0.0016994476318359375,
-0.00467681884765625,
-0.034942626953125,
-0.035675048828125,
-0.00870513916015625,
-0.00958251953125,
0.01389312744140625,
0.006320953369140625,
0.005634307861328125,
-0.00548553466796875,
0.01299285888671875,
0.05548095703125,
-0.0133819580078125,
0.0122222900390625,
0.0458984375,
0.060272216796875,
0.01451873779296875,
0.0288848876953125,
-0.01161956787109375,
-0.0076446533203125,
0.03240966796875,
0.040771484375,
0.005214691162109375,
-0.01335906982421875,
-0.019287109375,
0.0174407958984375,
0.00679779052734375,
0.0131683349609375,
-0.0213165283203125,
0.025634765625,
0.0085601806640625,
0.031768798828125,
-0.038360595703125,
-0.0416259765625,
-0.0406494140625,
0.01641845703125,
-0.011138916015625,
0.0187225341796875,
0.0281524658203125,
0.0069427490234375,
-0.0085296630859375,
0.0201568603515625,
-0.056732177734375,
-0.033447265625,
0.00836181640625,
-0.005443572998046875,
-0.0021533966064453125,
0.00567626953125
] |
6f705dc5da1b46f9cc98fc568f6dea7be2d00358
|
Wordpress Stackexchange
Q: How to install plugins in individual sites on a wordpress network? I'm trying to install plugins in my wordpress subsites instead of network activate that plugin. But i'm not seeing any "add new" link in my subsite plugin area. How to install plugins in my individual sites. Am i missing something?.
Thanks
A: *
*Install plugin in networ admin as usual for multisite.
*Do not activate plugin for whole network.
*Go to admin of individual site and enable plugin there for that site alone.
|
Q: How to install plugins in individual sites on a wordpress network? I'm trying to install plugins in my wordpress subsites instead of network activate that plugin. But i'm not seeing any "add new" link in my subsite plugin area. How to install plugins in my individual sites. Am i missing something?.
Thanks
A: *
*Install plugin in networ admin as usual for multisite.
*Do not activate plugin for whole network.
*Go to admin of individual site and enable plugin there for that site alone.
A: a) Install the applications to the maintain.
b) and active the site from your subdomain or sub-directly.
c) you need to be network admin when you're trying to active the plugins for specific domain.
A: Of simply use this plugin
https://wordpress.org/plugins/jamjar-plugin-installer/
it allows you to install plugins on individual sites without using network installation.
|
wordpress
|
{
"language": "en",
"length": 140,
"provenance": "stackexchange_00019.jsonl.gz:411738",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24326"
}
|
[
0.04888916015625,
-0.0094146728515625,
0.028076171875,
0.004764556884765625,
-0.003902435302734375,
-0.01995849609375,
0.0626220703125,
-0.0413818359375,
-0.0030651092529296875,
-0.01003265380859375,
-0.0311431884765625,
0.0352783203125,
-0.0489501953125,
-0.0250244140625,
0.0164642333984375,
-0.044342041015625,
0.02130126953125,
0.0171966552734375,
-0.00197601318359375,
-0.00023818016052246094,
-0.00010067224502563477,
0.03375244140625,
-0.05804443359375,
0.060394287109375,
0.007282257080078125,
0.015167236328125,
0.05950927734375,
-0.03619384765625,
0.01338958740234375,
-0.0236053466796875,
0.0208892822265625,
-0.01000213623046875,
0.004009246826171875,
0.01032257080078125,
-0.001407623291015625,
-0.070068359375,
-0.0240936279296875,
0.0020046234130859375,
0.0026531219482421875,
0.0206451416015625,
0.036895751953125,
-0.0144195556640625,
0.068359375,
0.069091796875,
0.030517578125,
-0.07562255859375,
0.073486328125,
-0.07177734375,
0.0128326416015625,
-0.04779052734375,
0.014129638671875,
-0.0256195068359375,
0.05902099609375,
-0.06005859375,
-0.03521728515625,
-0.035736083984375,
0.01611328125,
0.02740478515625,
0.01434326171875,
0.00041961669921875,
-0.0159759521484375,
0.031036376953125,
0.01461029052734375,
-0.00433349609375,
0.028564453125,
-0.0128326416015625,
0.0164947509765625,
0.034027099609375,
-0.08428955078125,
0.023773193359375,
0.06048583984375,
-0.052093505859375,
0.0149078369140625,
0.0175933837890625,
-0.024505615234375,
-0.06646728515625,
0.0232391357421875,
-0.0433349609375,
0.0185394287109375,
-0.0003552436828613281,
0.037841796875,
0.037200927734375,
0.0238037109375,
-0.037445068359375,
0.0311431884765625,
-0.0025348663330078125,
-0.007289886474609375,
-0.0218048095703125,
-0.04656982421875,
0.01171875,
-0.0423583984375,
-0.00775146484375,
0.01395416259765625,
-0.00650787353515625,
-0.0419921875,
0.0296478271484375,
0.0501708984375,
0.055267333984375,
0.007312774658203125,
0.006595611572265625,
0.005207061767578125,
-0.057159423828125,
0.036346435546875,
-0.04638671875,
0.0026416778564453125,
0.053070068359375,
-0.0010814666748046875,
-0.007289886474609375,
0.03741455078125,
0.0116119384765625,
0.0108184814453125,
0.052978515625,
0.007549285888671875,
-0.012908935546875,
-0.0097198486328125,
0.00948333740234375,
-0.016632080078125,
0.01287841796875,
-0.00284576416015625,
0.0009331703186035156,
-0.005481719970703125,
0.03369140625,
-0.053375244140625,
0.007701873779296875,
-0.0240020751953125,
-0.0234832763671875,
0.01534271240234375,
-0.01490020751953125,
-0.061065673828125,
-0.033050537109375,
-0.01158905029296875,
0.054443359375,
0.057098388671875,
0.034881591796875,
-0.01837158203125,
0.01361846923828125,
0.00931549072265625,
0.0343017578125,
-0.0048370361328125,
-0.0162811279296875,
0.0180816650390625,
-0.003971099853515625,
-0.00510406494140625,
-0.00811004638671875,
0.032745361328125,
-0.005344390869140625,
0.00183868408203125,
0.01419830322265625,
0.0306549072265625,
0.0308380126953125,
-0.00848388671875,
0.0017442703247070312,
-0.0033969879150390625,
-0.0110321044921875,
0.011566162109375,
-0.0207672119140625,
-0.00217437744140625,
0.0020580291748046875,
0.018096923828125,
-0.0019483566284179688,
-0.00391387939453125,
0.0112457275390625,
0.03497314453125,
-0.02655029296875,
-0.0177001953125,
-0.041473388671875,
-0.0175628662109375,
0.0113372802734375,
0.0303802490234375,
-0.002574920654296875,
-0.023529052734375,
-0.05523681640625,
0.038421630859375,
0.00621795654296875,
-0.0149078369140625,
0.057220458984375,
0.0308837890625,
0.0248565673828125,
0.0086517333984375,
0.043670654296875,
0.00262451171875,
-0.0043792724609375,
0.08795166015625,
-0.03131103515625,
-0.048583984375,
-0.0123291015625,
-0.0144500732421875,
0.004360198974609375,
0.05419921875,
0.0078887939453125,
0.03741455078125,
-0.01145172119140625,
-0.0192718505859375,
-0.0068206787109375,
-0.0245208740234375,
-0.0089111328125,
0.0178375244140625,
0.028717041015625,
-0.01119232177734375,
-0.011993408203125,
-0.05517578125,
0.00482177734375,
0.0167236328125,
0.033050537109375,
0.043212890625,
-0.006916046142578125,
0.0031948089599609375,
0.0166015625,
0.04632568359375,
-0.024993896484375,
-0.01511383056640625,
-0.045166015625,
0.07440185546875,
-0.126708984375,
-0.0792236328125,
0.0113983154296875,
-0.03314208984375,
0.06402587890625,
0.005794525146484375,
0.0287628173828125,
-0.0008864402770996094,
-0.0005979537963867188,
0.0223388671875,
-0.019439697265625,
0.034210205078125,
-0.01230621337890625,
-0.0165863037109375,
-0.0195159912109375,
-0.00689697265625,
0.0159759521484375,
-0.047393798828125,
0.03033447265625,
-0.0254669189453125,
0.0017490386962890625,
-0.0219879150390625,
0.0147857666015625,
0.0246734619140625,
0.0019025802612304688,
0.00982666015625,
0.015533447265625,
0.050445556640625,
-0.0131378173828125,
-0.0174407958984375,
-0.0243072509765625,
-0.0186309814453125,
-0.0501708984375,
0.0296478271484375,
-0.0280914306640625,
0.0020599365234375,
0.041412353515625,
-0.0056610107421875,
0.01235198974609375,
0.02032470703125,
-0.02752685546875,
0.017822265625,
0.030670166015625,
-0.002559661865234375,
-0.051483154296875,
0.017578125,
-0.001163482666015625,
0.013458251953125,
0.02471923828125,
-0.023681640625,
0.0214080810546875,
0.027587890625,
0.01007843017578125,
0.047332763671875,
0.038299560546875,
0.01377105712890625,
-0.01357269287109375,
-0.0024261474609375,
-0.0126800537109375,
0.0023212432861328125,
0.03900146484375,
0.0246429443359375,
0.00860595703125,
-0.036865234375,
-0.01250457763671875,
0.031280517578125,
0.0216217041015625,
-0.0134429931640625,
-0.002227783203125,
0.0032825469970703125,
-0.0204620361328125,
-0.000024139881134033203,
-0.032928466796875,
0.022308349609375,
-0.0191497802734375,
-0.039276123046875,
-0.024810791015625,
0.04443359375,
-0.0259246826171875,
-0.04461669921875,
-0.003841400146484375,
-0.026947021484375,
-0.036590576171875,
0.01027679443359375,
-0.05078125,
0.0294952392578125,
-0.045745849609375,
0.042449951171875,
0.064208984375,
-0.0034618377685546875,
-0.01207733154296875,
-0.005279541015625,
-0.01268768310546875,
0.00690460205078125,
0.00461578369140625,
-0.023162841796875,
0.0015039443969726562,
-0.08563232421875,
-0.0217742919921875,
0.0005598068237304688,
-0.035552978515625,
-0.0253448486328125,
-0.061920166015625,
-0.043731689453125,
-0.03924560546875,
-0.095458984375,
-0.01837158203125,
-0.0609130859375,
-0.07183837890625,
0.0355224609375,
-0.009490966796875,
-0.0215301513671875,
0.004947662353515625,
0.005859375,
0.041778564453125,
-0.0171966552734375,
-0.05517578125,
0.0005168914794921875,
-0.06671142578125,
-0.048614501953125,
0.01258087158203125,
0.0308685302734375,
0.009368896484375,
0.0034542083740234375,
0.0082855224609375,
-0.007686614990234375,
-0.0203094482421875,
-0.0030078887939453125,
-0.01242828369140625,
0.0087127685546875,
-0.0162811279296875,
0.0027751922607421875,
0.00024580955505371094,
0.004856109619140625,
0.0151519775390625,
0.019500732421875,
0.0283203125,
-0.038055419921875,
-0.031951904296875,
0.01285552978515625,
-0.00675201416015625,
0.0244140625,
-0.034759521484375,
-0.0139923095703125,
-0.003108978271484375,
-0.0173187255859375,
-0.04669189453125,
0.010040283203125,
0.0047454833984375,
-0.01090240478515625,
0.0196685791015625,
-0.035797119140625,
-0.009765625,
0.040191650390625,
0.0014352798461914062,
-0.006801605224609375,
-0.005367279052734375,
0.0009560585021972656,
-0.011138916015625,
-0.01085662841796875,
-0.0180511474609375,
-0.0140533447265625,
0.002521514892578125,
0.0311737060546875,
-0.005123138427734375,
0.02105712890625,
0.00882720947265625,
-0.0112457275390625,
-0.0416259765625,
0.03594970703125,
-0.038543701171875,
-0.00852203369140625,
0.0219879150390625,
-0.032806396484375,
0.0250396728515625,
-0.037567138671875,
-0.00792694091796875,
-0.0200653076171875,
0.0655517578125,
-0.07122802734375,
0.0150604248046875,
-0.0067596435546875,
0.003879547119140625,
0.0031833648681640625,
-0.0416259765625,
-0.0633544921875,
-0.0189208984375,
-0.02685546875,
-0.0048065185546875,
-0.01201629638671875,
-0.0240325927734375,
0.0039215087890625,
-0.031890869140625,
-0.0133209228515625,
-0.030853271484375,
0.0178985595703125,
-0.0052337646484375,
-0.019775390625,
0.00377655029296875,
-0.025360107421875,
-0.0210723876953125,
-0.006557464599609375,
-0.0142822265625,
-0.036651611328125,
0.00885772705078125,
-0.049468994140625,
0.02069091796875,
0.0050048828125,
0.0296630859375,
-0.0294036865234375,
0.0020236968994140625,
-0.017120361328125,
-0.01010894775390625,
-0.007045745849609375,
0.0195770263671875,
-0.026702880859375,
0.004791259765625,
-0.00679779052734375,
-0.0160675048828125,
0.0105743408203125,
-0.0025787353515625,
-0.051361083984375,
0.022857666015625,
-0.01165771484375,
0.052978515625,
0.0163421630859375,
-0.032806396484375,
0.00479888916015625,
-0.0027675628662109375,
-0.0201568603515625,
0.026702880859375,
-0.01415252685546875,
0.004039764404296875,
-0.0017290115356445312,
-0.004802703857421875,
0.0239105224609375,
-0.0226593017578125,
-0.0074615478515625,
0.00547027587890625,
0.058380126953125,
0.028076171875,
0.006076812744140625,
-0.0022029876708984375,
0.057952880859375,
0.055023193359375,
0.05670166015625,
0.0230255126953125,
0.0374755859375,
0.0036487579345703125,
-0.0411376953125,
0.046142578125,
0.054595947265625,
-0.045196533203125,
0.016845703125,
0.009735107421875,
-0.0276031494140625,
0.04876708984375,
0.0352783203125,
-0.005519866943359375,
0.0035381317138671875,
-0.022857666015625,
-0.0134429931640625,
-0.022491455078125,
0.012939453125,
-0.011566162109375,
0.04034423828125,
-0.0036716461181640625,
-0.0609130859375,
0.0287017822265625,
-0.033050537109375,
0.0096893310546875,
-0.0003523826599121094,
-0.0010423660278320312,
0.0194244384765625,
-0.006237030029296875,
0.0016565322875976562,
0.0340576171875,
0.01262664794921875,
-0.0164337158203125,
0.026702880859375,
0.00820159912109375,
-0.0257415771484375,
0.01442718505859375,
-0.016143798828125,
0.10845947265625,
-0.007640838623046875,
-0.0528564453125,
0.0001608133316040039,
-0.03948974609375,
0.0309600830078125,
0.0259552001953125,
0.00628662109375,
0.01108551025390625,
-0.00177764892578125,
-0.0029087066650390625,
0.007537841796875,
0.00013530254364013672,
-0.0045623779296875,
-0.0270538330078125,
-0.031585693359375,
-0.016387939453125,
-0.00917816162109375,
0.02001953125,
0.03179931640625,
-0.009674072265625,
0.0164794921875,
-0.010528564453125,
0.03826904296875,
0.052490234375,
-0.032501220703125,
0.00820159912109375,
0.037200927734375,
-0.0190582275390625,
-0.0457763671875,
0.0162353515625,
-0.01800537109375,
0.01224517822265625,
0.00014543533325195312,
0.04547119140625,
0.058837890625,
0.01386260986328125,
-0.01036834716796875,
-0.0333251953125,
-0.005126953125,
0.05828857421875,
-0.022613525390625,
-0.0970458984375,
-0.0162200927734375,
0.04449462890625,
0.0341796875,
-0.05352783203125,
0.005889892578125,
-0.0313720703125,
0.007843017578125,
-0.0004916191101074219,
0.007598876953125,
-0.06353759765625,
0.0239715576171875,
0.03863525390625,
0.0234527587890625,
0.008026123046875,
-0.0026149749755859375,
-0.00270843505859375,
-0.004032135009765625,
-0.0274658203125,
-0.0238037109375,
0.06591796875,
-0.00952911376953125,
0.012481689453125,
-0.0379638671875,
0.004322052001953125,
-0.046478271484375,
0.005092620849609375,
0.02984619140625,
-0.0005159378051757812,
-0.0782470703125,
0.02276611328125,
-0.0161895751953125,
-0.025360107421875,
-0.00194549560546875,
-0.01385498046875,
-0.06573486328125,
-0.026214599609375,
0.022186279296875,
0.0207366943359375,
-0.0205841064453125,
-0.057159423828125,
-0.0131683349609375,
-0.0023555755615234375,
0.0247344970703125,
-0.011566162109375,
0.013458251953125,
0.0195159912109375,
0.00910186767578125,
0.0689697265625,
0.035858154296875,
0.004520416259765625,
-0.0262451171875,
-0.0273284912109375,
-0.0123443603515625,
-0.0192718505859375,
-0.024658203125,
0.016021728515625,
-0.00386810302734375,
0.022430419921875,
0.024139404296875,
-0.005092620849609375,
-0.0231781005859375,
0.003795623779296875,
-0.00577545166015625,
-0.0126190185546875,
0.0146484375,
0.0528564453125,
0.01458740234375,
0.00047206878662109375,
-0.049560546875,
0.007476806640625,
0.0214691162109375,
-0.022705078125,
0.0144500732421875,
-0.01483917236328125,
0.0201873779296875,
0.036834716796875,
0.0016431808471679688,
0.01467132568359375,
0.047119140625,
0.0037078857421875,
0.0284423828125,
0.01015472412109375,
0.014984130859375,
0.0020198822021484375,
0.01038360595703125,
0.04302978515625,
-0.00733184814453125,
0.044708251953125,
-0.0094451904296875,
0.00983428955078125,
0.037200927734375,
-0.0269927978515625,
0.0032863616943359375,
0.0352783203125,
0.035247802734375,
-0.10614013671875,
0.0213623046875,
-0.0183563232421875,
0.0160980224609375,
0.0224609375,
-0.0227203369140625,
0.01441192626953125,
-0.00672149658203125,
0.047576904296875,
0.0243682861328125,
-0.0091400146484375,
0.0253143310546875,
-0.0200653076171875,
-0.01024627685546875,
-0.0028438568115234375,
0.0182342529296875,
0.00212860107421875,
-0.01511383056640625,
0.00457763671875,
-0.01505279541015625,
0.01422119140625,
-0.04327392578125,
-0.01549530029296875,
0.0225372314453125,
-0.014923095703125,
-0.04144287109375,
0.03302001953125,
-0.0265045166015625,
0.0259552001953125,
0.01473236083984375,
-0.004215240478515625,
0.00698089599609375,
0.04266357421875,
-0.0234375,
-0.0238494873046875,
0.03240966796875,
-0.0374755859375,
0.019683837890625,
-0.02642822265625,
0.007232666015625,
0.00894927978515625,
-0.0280609130859375,
0.0002548694610595703,
-0.0094757080078125,
-0.0245513916015625,
0.00490570068359375,
0.021026611328125,
0.046783447265625,
-0.0132293701171875,
-0.026397705078125,
0.04278564453125,
-0.0018758773803710938,
-0.00807952880859375,
-0.03375244140625,
0.0054168701171875,
-0.029876708984375,
0.01462554931640625,
-0.0225677490234375,
0.012420654296875,
-0.0025081634521484375,
-0.040008544921875,
-0.032501220703125,
0.1134033203125,
0.002880096435546875,
-0.026275634765625,
-0.0034332275390625,
0.06890869140625,
-0.04547119140625,
0.03997802734375,
-0.0006198883056640625,
0.0360107421875,
-0.03314208984375,
-0.0020427703857421875,
-0.0120849609375,
0.0050048828125,
-0.01068115234375,
0.0181732177734375,
0.03485107421875,
0.0201568603515625,
-0.037506103515625,
-0.0236358642578125,
-0.0024127960205078125,
0.00018453598022460938,
-0.0162353515625,
0.0496826171875,
0.01019287109375,
-0.00815582275390625,
0.040008544921875,
0.00872802734375,
0.0399169921875,
0.005672454833984375,
-0.0002884864807128906,
0.04052734375,
0.00007575750350952148,
-0.0212860107421875,
-0.0011806488037109375,
0.003910064697265625,
-0.025604248046875,
0.0021343231201171875,
-0.0007534027099609375,
0.019317626953125,
0.0106048583984375,
0.02178955078125,
0.0010986328125,
0.0467529296875,
-0.0098114013671875,
-0.004566192626953125,
0.025848388671875,
-0.0036602020263671875,
0.03887939453125,
0.010162353515625,
0.017059326171875,
0.0146026611328125,
-0.006870269775390625,
0.01029205322265625,
0.0400390625,
-0.039459228515625,
-0.0116424560546875,
-0.0014810562133789062,
0.0204010009765625,
-0.03704833984375,
-0.0179901123046875,
0.017059326171875,
0.00821685791015625,
-0.0007805824279785156,
-0.069091796875,
0.0012083053588867188,
-0.0182952880859375,
-0.0011119842529296875,
0.020263671875,
-0.002780914306640625,
-0.0276641845703125,
0.021453857421875,
-0.032257080078125,
-0.0193328857421875,
0.0312042236328125,
0.02227783203125,
0.0085296630859375,
0.02728271484375,
-0.0234222412109375,
-0.0298004150390625,
-0.0186767578125,
0.021575927734375,
0.01953125,
0.029876708984375,
-0.0146636962890625,
0.059661865234375,
-0.0237274169921875,
-0.00849151611328125,
-0.0029087066650390625,
0.038482666015625,
0.0079193115234375,
0.021148681640625,
-0.05706787109375,
-0.064697265625,
0.0196990966796875,
0.0380859375,
0.0137481689453125,
0.0168609619140625,
0.044403076171875,
0.058807373046875,
-0.0199432373046875,
-0.007259368896484375,
0.057281494140625,
-0.0083465576171875,
0.0182342529296875,
-0.030853271484375,
0.04620361328125,
0.02313232421875,
0.0009613037109375,
-0.0277099609375,
0.0312042236328125,
0.05902099609375,
-0.0210418701171875,
0.021728515625,
0.0084991455078125,
-0.0184478759765625,
0.0260009765625,
0.0003190040588378906,
0.0413818359375,
0.00466156005859375,
-0.049163818359375,
0.0266571044921875,
-0.06201171875,
-0.042236328125,
0.0297698974609375,
0.038055419921875,
-0.039642333984375,
0.044281005859375,
0.0110931396484375,
-0.0124053955078125,
0.0223541259765625,
0.003631591796875,
-0.00013518333435058594,
0.006320953369140625,
0.018035888671875,
-0.011260986328125,
-0.05194091796875,
0.001506805419921875,
-0.03741455078125,
0.01194000244140625,
0.016448974609375,
0.1439208984375,
-0.03961181640625,
0.020751953125,
0.02874755859375,
-0.0124969482421875,
0.01554107666015625,
0.027496337890625,
-0.033172607421875,
-0.01422119140625,
-0.00787353515625,
-0.0125274658203125,
-0.0307464599609375,
0.0099029541015625,
0.0261077880859375,
-0.031707763671875,
0.0016107559204101562,
0.008880615234375,
0.0194549560546875,
0.0076446533203125,
0.03631591796875,
-0.015655517578125,
-0.0309295654296875,
-0.059417724609375,
-0.03424072265625,
0.056304931640625,
0.062744140625,
0.004833221435546875,
-0.00440216064453125,
-0.0069122314453125,
-0.029327392578125,
0.0011110305786132812,
0.022491455078125,
-0.0261383056640625,
0.01285552978515625,
-0.0026569366455078125,
-0.0208282470703125,
0.04052734375,
-0.00827789306640625,
-0.00811767578125,
0.032012939453125,
0.0273284912109375,
0.0236053466796875,
-0.0494384765625,
0.02130126953125,
0.0213165283203125,
0.0205078125,
-0.026885986328125,
0.01129150390625,
0.0312042236328125,
-0.003047943115234375,
0.0025768280029296875,
-0.005687713623046875,
-0.0275421142578125,
-0.06787109375,
0.0157318115234375,
0.012481689453125,
-0.03558349609375,
-0.01116943359375,
-0.047210693359375,
0.018157958984375,
0.07391357421875,
-0.005123138427734375,
-0.06341552734375,
0.0111083984375,
-0.05841064453125,
0.0899658203125,
0.005855560302734375,
-0.047271728515625,
0.0096893310546875,
0.0128631591796875,
-0.034698486328125,
-0.0269775390625,
-0.034027099609375,
-0.00592803955078125,
-0.012542724609375,
0.03985595703125,
0.029083251953125,
-0.03167724609375,
0.0430908203125,
0.04925537109375,
0.04339599609375,
0.09967041015625,
0.009552001953125,
-0.0192718505859375,
0.0126953125,
-0.031951904296875,
0.01239776611328125,
-0.0260162353515625,
0.007450103759765625,
-0.07110595703125,
-0.03179931640625,
-0.08038330078125,
0.041839599609375,
0.02032470703125,
-0.05645751953125,
-0.053314208984375,
0.0751953125,
-0.038330078125,
-0.00954437255859375,
-0.06890869140625,
-0.0081024169921875,
-0.00472259521484375,
0.0147857666015625,
-0.04107666015625,
0.01264190673828125,
-0.05438232421875,
0.043304443359375,
0.0138702392578125,
0.0188751220703125,
-0.00812530517578125,
0.00640869140625,
0.0139923095703125,
0.058135986328125,
0.049468994140625,
-0.00597381591796875,
0.0361328125,
-0.05340576171875,
0.07440185546875,
0.0254058837890625,
-0.05474853515625,
-0.0029010772705078125,
0.01421356201171875,
-0.0029087066650390625,
-0.0215606689453125,
-0.03570556640625,
-0.0038089752197265625,
0.01551055908203125,
0.06573486328125,
0.041290283203125,
0.00933837890625,
-0.048614501953125,
-0.003086090087890625,
-0.0101470947265625,
-0.013336181640625,
-0.0246734619140625,
0.0145416259765625,
-0.0697021484375,
-0.019866943359375,
-0.005168914794921875,
-0.0196990966796875,
0.0309295654296875,
0.0185089111328125,
-0.01039886474609375,
0.0037555694580078125,
0.005588531494140625,
-0.04022216796875,
-0.0247650146484375,
-0.01116943359375,
0.04248046875,
-0.0119781494140625,
0.0131072998046875,
-0.0050201416015625,
-0.004730224609375,
0.0208282470703125,
0.0352783203125,
0.022796630859375,
-0.008941650390625,
-0.056610107421875,
0.0206146240234375,
-0.005767822265625,
0.07745361328125,
-0.044586181640625,
-0.053070068359375,
-0.015716552734375,
0.024993896484375,
-0.016357421875,
0.004688262939453125,
-0.0130462646484375,
0.0640869140625,
0.0162506103515625,
0.09869384765625,
0.0007834434509277344,
0.01277923583984375,
-0.0416259765625,
0.060882568359375,
-0.029815673828125,
-0.00733184814453125,
-0.00759124755859375,
0.00699615478515625,
0.00014972686767578125,
0.0003619194030761719,
-0.024932861328125,
-0.033538818359375,
0.0006794929504394531,
-0.0390625,
-0.011505126953125,
0.0085906982421875
] |
d4c9eb6561bcdb931dd8577641d0b4699695ae5e
|
Wordpress Stackexchange
Q: Multisite stuck at 1MB for max file size I have a Wordpress Multisite install on our FreeBSD development server. It seems to be stuck at 1MB.
I have the following settings in php.ini
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 300
All the regular WordPress installs on the site have a max upload size of 100MB, as expected. Regardless of the values I put the multisite install is stuck at 1MB.
The setup:
*
*FreeBSD 8.1
*PHP 5.3.3
*Wordpress Multisite 3.2.1
After moving the site to another server on Rackspace, it has the same issues.
Any help on getting this limit raised would be appreciated. If I left any pertinent information out let me know and I'll provide what I can.
A: There is a network admin settings page with a Max upload file size field, make sure this is also set correctly.
|
Q: Multisite stuck at 1MB for max file size I have a Wordpress Multisite install on our FreeBSD development server. It seems to be stuck at 1MB.
I have the following settings in php.ini
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 300
All the regular WordPress installs on the site have a max upload size of 100MB, as expected. Regardless of the values I put the multisite install is stuck at 1MB.
The setup:
*
*FreeBSD 8.1
*PHP 5.3.3
*Wordpress Multisite 3.2.1
After moving the site to another server on Rackspace, it has the same issues.
Any help on getting this limit raised would be appreciated. If I left any pertinent information out let me know and I'll provide what I can.
A: There is a network admin settings page with a Max upload file size field, make sure this is also set correctly.
|
wordpress
|
{
"language": "en",
"length": 145,
"provenance": "stackexchange_00019.jsonl.gz:411739",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24333"
}
|
[
-0.00901031494140625,
-0.04071044921875,
0.006610870361328125,
0.01251220703125,
-0.0538330078125,
-0.01390838623046875,
-0.004779815673828125,
-0.01312255859375,
0.037841796875,
0.0034656524658203125,
-0.038482666015625,
0.022125244140625,
-0.008697509765625,
-0.0116424560546875,
0.0086669921875,
-0.005725860595703125,
0.0293426513671875,
0.0015926361083984375,
0.02294921875,
0.0014333724975585938,
-0.0230255126953125,
0.032501220703125,
0.018798828125,
0.045440673828125,
-0.027862548828125,
0.0233306884765625,
0.0335693359375,
-0.0491943359375,
-0.04150390625,
-0.051727294921875,
0.00036835670471191406,
0.09124755859375,
0.04302978515625,
0.0020122528076171875,
-0.02593994140625,
-0.0537109375,
0.00386810302734375,
-0.03070068359375,
-0.035980224609375,
0.0579833984375,
0.025634765625,
-0.01018524169921875,
0.055145263671875,
0.02508544921875,
0.0197296142578125,
-0.051513671875,
0.036224365234375,
-0.06683349609375,
0.011260986328125,
-0.03741455078125,
0.006961822509765625,
0.019805908203125,
0.0233612060546875,
-0.0604248046875,
-0.021820068359375,
-0.0029964447021484375,
-0.00717926025390625,
0.0185699462890625,
0.0313720703125,
-0.0249786376953125,
-0.0411376953125,
-0.00830078125,
0.0200653076171875,
-0.0155487060546875,
-0.004741668701171875,
0.027313232421875,
0.00533294677734375,
0.0183563232421875,
-0.0172271728515625,
-0.0175018310546875,
-0.0036449432373046875,
-0.0382080078125,
0.005367279052734375,
0.003681182861328125,
-0.002166748046875,
-0.026397705078125,
0.022552490234375,
-0.0014858245849609375,
0.006061553955078125,
0.0017452239990234375,
0.0001157522201538086,
-0.03558349609375,
-0.005153656005859375,
-0.016143798828125,
0.003925323486328125,
0.020538330078125,
-0.00891876220703125,
-0.00679779052734375,
-0.0084686279296875,
0.0189971923828125,
-0.01120758056640625,
0.0184173583984375,
-0.01123046875,
0.0162353515625,
-0.0256500244140625,
-0.00048041343688964844,
0.01064300537109375,
-0.0170440673828125,
-0.0204620361328125,
-0.00017583370208740234,
0.006378173828125,
-0.025909423828125,
0.022186279296875,
0.00986480712890625,
0.01476287841796875,
0.0263519287109375,
0.007213592529296875,
-0.0214996337890625,
0.012969970703125,
-0.00254058837890625,
-0.019073486328125,
0.044586181640625,
-0.010101318359375,
-0.0086822509765625,
-0.046051025390625,
-0.0019397735595703125,
-0.03302001953125,
0.0005235671997070312,
0.00655364990234375,
-0.0035953521728515625,
-0.015625,
0.022308349609375,
-0.029693603515625,
-0.02813720703125,
0.017425537109375,
-0.0081634521484375,
-0.002574920654296875,
-0.0033702850341796875,
-0.02093505859375,
0.06719970703125,
-0.027557373046875,
-0.0051727294921875,
0.01139068603515625,
-0.0071868896484375,
-0.0221710205078125,
-0.021636962890625,
0.0172576904296875,
-0.038726806640625,
-0.0268096923828125,
0.0625,
-0.0438232421875,
-0.050384521484375,
0.0182342529296875,
-0.02978515625,
-0.0091705322265625,
0.03314208984375,
0.0216064453125,
0.00519561767578125,
-0.0162811279296875,
-0.06524658203125,
0.01104736328125,
-0.0174560546875,
0.054412841796875,
-0.0112152099609375,
-0.0457763671875,
-0.0631103515625,
0.032745361328125,
-0.051513671875,
-0.01549530029296875,
-0.06829833984375,
0.0019445419311523438,
-0.00205230712890625,
0.0211181640625,
-0.0162200927734375,
-0.02020263671875,
-0.01378631591796875,
-0.044647216796875,
-0.0014772415161132812,
0.0251922607421875,
-0.007843017578125,
-0.031829833984375,
-0.0003216266632080078,
0.039459228515625,
-0.008880615234375,
-0.012725830078125,
0.00734710693359375,
0.032562255859375,
-0.005130767822265625,
0.0212554931640625,
0.0278778076171875,
-0.015289306640625,
-0.024383544921875,
0.0482177734375,
-0.0237579345703125,
-0.00566864013671875,
-0.0055084228515625,
0.01116943359375,
0.01540374755859375,
-0.0048370361328125,
0.025909423828125,
0.006725311279296875,
0.033477783203125,
-0.0249786376953125,
-0.040618896484375,
0.0030117034912109375,
-0.029205322265625,
-0.0033168792724609375,
-0.02740478515625,
0.004276275634765625,
0.03662109375,
0.0050201416015625,
-0.0265045166015625,
0.026947021484375,
-0.0032863616943359375,
-0.023712158203125,
0.00197601318359375,
-0.0167388916015625,
0.01364898681640625,
-0.00852203369140625,
0.0030803680419921875,
0.00238037109375,
0.01432037353515625,
-0.00328826904296875,
-0.038604736328125,
-0.00798797607421875,
0.0177001953125,
-0.028045654296875,
0.0714111328125,
0.0032711029052734375,
0.056671142578125,
-0.025543212890625,
-0.0570068359375,
-0.0228271484375,
-0.045196533203125,
0.01959228515625,
0.0182342529296875,
-0.0227813720703125,
0.006130218505859375,
0.03387451171875,
0.032623291015625,
-0.002559661865234375,
-0.0018892288208007812,
-0.004680633544921875,
-0.019744873046875,
-0.050262451171875,
-0.03369140625,
-0.046234130859375,
-0.09259033203125,
0.0200958251953125,
0.0673828125,
0.034393310546875,
0.0286407470703125,
0.0135498046875,
0.0380859375,
0.0413818359375,
-0.01343536376953125,
0.02288818359375,
-0.0005354881286621094,
0.0229034423828125,
0.036376953125,
-0.0157318115234375,
-0.01555633544921875,
0.0283966064453125,
-0.0212249755859375,
0.00395965576171875,
0.0247039794921875,
-0.006984710693359375,
-0.04754638671875,
0.001220703125,
0.020721435546875,
0.007488250732421875,
-0.013641357421875,
-0.03155517578125,
0.0048370361328125,
-0.022064208984375,
0.060577392578125,
0.023101806640625,
0.039276123046875,
-0.042236328125,
0.056060791015625,
0.0130615234375,
-0.0193328857421875,
-0.00846099853515625,
-0.00164031982421875,
0.02392578125,
0.0084075927734375,
-0.029205322265625,
-0.0040283203125,
0.0037937164306640625,
-0.00891876220703125,
-0.035491943359375,
0.0249176025390625,
0.00044536590576171875,
-0.016693115234375,
-0.019805908203125,
-0.0240020751953125,
0.01514434814453125,
-0.011932373046875,
0.011627197265625,
-0.0007863044738769531,
0.0166015625,
0.027130126953125,
-0.016845703125,
0.044158935546875,
0.04278564453125,
-0.0228424072265625,
0.09100341796875,
-0.059478759765625,
0.040008544921875,
-0.01233673095703125,
0.117431640625,
0.07073974609375,
-0.022369384765625,
0.0296478271484375,
0.0034332275390625,
0.0194854736328125,
0.016265869140625,
0.0048370361328125,
-0.0268402099609375,
-0.0198974609375,
-0.05645751953125,
-0.036590576171875,
-0.0004172325134277344,
-0.02508544921875,
-0.01532745361328125,
-0.0149993896484375,
-0.0103912353515625,
-0.019989013671875,
-0.06427001953125,
-0.0455322265625,
-0.031280517578125,
-0.09698486328125,
0.0243988037109375,
-0.01253509521484375,
-0.039520263671875,
-0.0156097412109375,
0.01219940185546875,
0.0216827392578125,
0.00494384765625,
-0.05731201171875,
-0.028533935546875,
-0.045562744140625,
-0.040191650390625,
0.00800323486328125,
0.0139312744140625,
-0.01241302490234375,
-0.0040283203125,
0.033782958984375,
-0.0202484130859375,
-0.0819091796875,
-0.076904296875,
-0.0215606689453125,
-0.0139617919921875,
-0.042694091796875,
0.005695343017578125,
-0.0242919921875,
0.022247314453125,
0.0038299560546875,
-0.012451171875,
0.04638671875,
-0.0313720703125,
-0.01030731201171875,
-0.0236968994140625,
-0.0283966064453125,
-0.0216827392578125,
0.034149169921875,
0.028839111328125,
-0.04644775390625,
-0.0204925537109375,
-0.07965087890625,
-0.0011091232299804688,
-0.0282135009765625,
-0.03143310546875,
-0.0034389495849609375,
0.037261962890625,
-0.018280029296875,
-0.0305938720703125,
-0.0214385986328125,
-0.01114654541015625,
-0.0278167724609375,
-0.00693511962890625,
-0.06182861328125,
0.07049560546875,
0.00572967529296875,
-0.005962371826171875,
-0.01007843017578125,
0.039093017578125,
-0.0121002197265625,
0.03192138671875,
0.022735595703125,
-0.0003209114074707031,
-0.005390167236328125,
-0.0165863037109375,
-0.033660888671875,
-0.032135009765625,
0.041229248046875,
-0.0235443115234375,
0.056304931640625,
-0.07244873046875,
-0.0341796875,
-0.0574951171875,
0.0853271484375,
-0.062408447265625,
-0.0202789306640625,
-0.0164337158203125,
0.03753662109375,
-0.03564453125,
-0.075927734375,
0.0030803680419921875,
-0.0062408447265625,
-0.0032520294189453125,
0.01158905029296875,
-0.01438140869140625,
0.005367279052734375,
-0.0042572021484375,
-0.022674560546875,
0.003040313720703125,
-0.03131103515625,
0.0240936279296875,
-0.0472412109375,
0.03692626953125,
-0.0233306884765625,
0.041351318359375,
-0.07025146484375,
0.002010345458984375,
-0.05364990234375,
-0.07952880859375,
-0.01242828369140625,
-0.006954193115234375,
0.058197021484375,
-0.0281524658203125,
0.06402587890625,
-0.033447265625,
0.041961669921875,
0.01287078857421875,
0.0306243896484375,
-0.0024204254150390625,
-0.01477813720703125,
-0.010711669921875,
-0.0082244873046875,
0.01384735107421875,
-0.0183258056640625,
-0.0215606689453125,
-0.04254150390625,
-0.0498046875,
-0.0152587890625,
-0.007091522216796875,
-0.0143280029296875,
0.01201629638671875,
-0.011077880859375,
-0.06365966796875,
-0.0615234375,
-0.0154571533203125,
0.0081024169921875,
-0.037445068359375,
0.035064697265625,
-0.0665283203125,
-0.042877197265625,
0.0576171875,
-0.0194091796875,
0.005462646484375,
0.00037217140197753906,
0.0875244140625,
0.0035572052001953125,
-0.01251220703125,
-0.08441162109375,
-0.0297088623046875,
-0.0016202926635742188,
-0.0147552490234375,
0.04876708984375,
0.0163116455078125,
0.01045989990234375,
0.0179901123046875,
-0.021240234375,
0.01091766357421875,
0.026092529296875,
0.00846099853515625,
0.0233306884765625,
-0.01076507568359375,
0.0037784576416015625,
0.029541015625,
-0.049346923828125,
-0.035675048828125,
-0.036041259765625,
0.0288238525390625,
-0.040618896484375,
0.029083251953125,
0.0287628173828125,
-0.009246826171875,
-0.06060791015625,
-0.0928955078125,
0.040679931640625,
-0.07550048828125,
0.01197052001953125,
0.0014324188232421875,
-0.00391387939453125,
0.0679931640625,
0.03564453125,
0.00247955322265625,
0.04571533203125,
0.007534027099609375,
-0.007221221923828125,
0.03143310546875,
0.01552581787109375,
-0.01166534423828125,
0.03253173828125,
0.0130767822265625,
-0.004913330078125,
0.01226806640625,
-0.0066070556640625,
-0.034454345703125,
0.0114593505859375,
-0.0140533447265625,
-0.0021381378173828125,
0.015045166015625,
0.025726318359375,
0.0041656494140625,
-0.040771484375,
-0.01404571533203125,
0.018218994140625,
-0.0240325927734375,
-0.04278564453125,
-0.0394287109375,
-0.032257080078125,
-0.02825927734375,
0.00428009033203125,
-0.015411376953125,
-0.0187530517578125,
-0.0209503173828125,
0.01099395751953125,
0.0212860107421875,
0.04205322265625,
0.01751708984375,
0.02154541015625,
-0.00927734375,
-0.0222320556640625,
0.0005254745483398438,
-0.01263427734375,
0.0025463104248046875,
-0.00010186433792114258,
-0.01226806640625,
0.0189361572265625,
-0.0165252685546875,
0.01439666748046875,
0.0207366943359375,
-0.034454345703125,
-0.0164337158203125,
0.039276123046875,
0.00026035308837890625,
-0.0928955078125,
0.01146697998046875,
0.01534271240234375,
0.0030155181884765625,
-0.06817626953125,
0.00720977783203125,
-0.0048828125,
-0.03265380859375,
-0.0220489501953125,
0.034637451171875,
-0.034423828125,
-0.0257568359375,
-0.02117919921875,
0.00739288330078125,
-0.019561767578125,
-0.013946533203125,
-0.0491943359375,
0.00176239013671875,
-0.018707275390625,
-0.018096923828125,
0.02001953125,
-0.006805419921875,
0.0240936279296875,
-0.01214599609375,
-0.01369476318359375,
-0.01189422607421875,
0.030548095703125,
0.00800323486328125,
-0.004085540771484375,
0.0222930908203125,
0.0009217262268066406,
-0.02593994140625,
-0.0242462158203125,
0.043609619140625,
-0.00809478759765625,
-0.018035888671875,
-0.03143310546875,
-0.0241851806640625,
0.01215362548828125,
0.00315093994140625,
-0.005771636962890625,
-0.007808685302734375,
0.0048980712890625,
-0.0037593841552734375,
-0.0112457275390625,
-0.0703125,
0.0250396728515625,
0.0292816162109375,
-0.0178375244140625,
-0.0304107666015625,
0.0096893310546875,
0.06903076171875,
0.0022735595703125,
0.01861572265625,
-0.0323486328125,
-0.0215606689453125,
-0.0229034423828125,
0.019989013671875,
-0.0178985595703125,
-0.00861358642578125,
-0.00585174560546875,
0.0102691650390625,
-0.004161834716796875,
0.022186279296875,
-0.016998291015625,
-0.030975341796875,
0.0030155181884765625,
0.0025234222412109375,
0.00244903564453125,
-0.0158538818359375,
0.0249786376953125,
-0.0276031494140625,
-0.0005650520324707031,
0.017242431640625,
-0.020111083984375,
-0.00601959228515625,
0.044525146484375,
-0.0098114013671875,
0.0112457275390625,
0.049713134765625,
-0.0168609619140625,
0.0214080810546875,
0.00766754150390625,
0.009124755859375,
0.033966064453125,
0.0321044921875,
-0.0146942138671875,
-0.050750732421875,
0.00910186767578125,
-0.0018596649169921875,
-0.01861572265625,
-0.004535675048828125,
-0.007843017578125,
0.0297088623046875,
-0.01216888427734375,
0.063232421875,
0.005870819091796875,
0.01678466796875,
0.02447509765625,
-0.044769287109375,
0.0207977294921875,
-0.019073486328125,
0.01045989990234375,
-0.01129913330078125,
0.0132904052734375,
0.046173095703125,
-0.03814697265625,
-0.006381988525390625,
0.0325927734375,
-0.0028247833251953125,
-0.0288238525390625,
0.028167724609375,
0.01166534423828125,
-0.043792724609375,
0.0027446746826171875,
0.03289794921875,
-0.0030765533447265625,
0.0302276611328125,
0.0262908935546875,
-0.025299072265625,
-0.02655029296875,
-0.005054473876953125,
-0.00264739990234375,
-0.025146484375,
-0.0250244140625,
-0.02691650390625,
-0.0026912689208984375,
0.03570556640625,
0.054901123046875,
-0.009674072265625,
-0.0166168212890625,
0.051300048828125,
-0.0164031982421875,
-0.00853729248046875,
-0.0104217529296875,
0.022857666015625,
-0.00569915771484375,
0.0052032470703125,
0.0203704833984375,
0.000995635986328125,
-0.04510498046875,
-0.00014388561248779297,
-0.006931304931640625,
0.032012939453125,
-0.056610107421875,
0.01541900634765625,
0.043609619140625,
0.00582122802734375,
-0.0244140625,
-0.0006403923034667969,
0.039154052734375,
-0.07147216796875,
-0.04974365234375,
0.030975341796875,
-0.0238037109375,
-0.00875091552734375,
0.02459716796875,
-0.043121337890625,
0.10382080078125,
0.042388916015625,
0.004848480224609375,
0.014434814453125,
0.045135498046875,
-0.06329345703125,
0.0187530517578125,
-0.0165863037109375,
0.0196990966796875,
0.019287109375,
0.0185394287109375,
-0.00911712646484375,
-0.0049591064453125,
0.01282501220703125,
0.0262603759765625,
0.040283203125,
0.01100921630859375,
-0.027740478515625,
0.01097869873046875,
0.06951904296875,
0.02734375,
0.016448974609375,
0.042144775390625,
0.002971649169921875,
0.006740570068359375,
0.015655517578125,
0.017852783203125,
0.03369140625,
0.002658843994140625,
-0.046173095703125,
0.027923583984375,
-0.003002166748046875,
-0.0196075439453125,
-0.0249786376953125,
-0.032501220703125,
-0.042083740234375,
0.012054443359375,
0.00611114501953125,
0.042083740234375,
-0.01837158203125,
0.039337158203125,
0.0164794921875,
-0.0222625732421875,
0.0304718017578125,
-0.04437255859375,
0.058837890625,
0.002948760986328125,
0.0012464523315429688,
0.017578125,
0.0035572052001953125,
0.005245208740234375,
0.0030384063720703125,
-0.00325775146484375,
0.0095062255859375,
-0.00484466552734375,
0.0151519775390625,
0.0205230712890625,
0.026885986328125,
-0.02606201171875,
-0.0181884765625,
0.05010986328125,
0.03802490234375,
-0.01224517822265625,
-0.016693115234375,
0.01450347900390625,
0.0226898193359375,
-0.0308990478515625,
-0.0157623291015625,
-0.029632568359375,
0.0174407958984375,
0.07403564453125,
-0.038970947265625,
0.0095977783203125,
0.02154541015625,
0.017242431640625,
0.00046825408935546875,
0.016876220703125,
-0.023345947265625,
0.00504302978515625,
-0.01026153564453125,
0.01097869873046875,
0.00665283203125,
0.0259857177734375,
0.007144927978515625,
0.02044677734375,
-0.034576416015625,
0.0015010833740234375,
-0.032073974609375,
0.06610107421875,
-0.023651123046875,
0.025299072265625,
-0.039642333984375,
-0.050323486328125,
0.00914764404296875,
0.042144775390625,
0.01329803466796875,
0.034759521484375,
0.0665283203125,
0.07000732421875,
-0.054595947265625,
-0.006744384765625,
0.0908203125,
-0.00887298583984375,
-0.043182373046875,
-0.038238525390625,
-0.01537322998046875,
-0.02044677734375,
-0.0201263427734375,
0.006381988525390625,
0.04083251953125,
-0.020477294921875,
0.0382080078125,
-0.045928955078125,
0.0270843505859375,
-0.018310546875,
0.0357666015625,
0.027313232421875,
-0.0054779052734375,
0.05523681640625,
0.0063629150390625,
0.01229095458984375,
-0.0435791015625,
0.0159759521484375,
-0.0255584716796875,
0.0189971923828125,
0.027984619140625,
0.004993438720703125,
-0.01187896728515625,
-0.028839111328125,
0.020904541015625,
0.0318603515625,
-0.00493621826171875,
0.041839599609375,
0.0548095703125,
-0.0012273788452148438,
-0.08770751953125,
-0.03228759765625,
-0.039886474609375,
0.01247406005859375,
0.0009918212890625,
0.08929443359375,
-0.0135498046875,
0.0281982421875,
0.0275421142578125,
-0.01512908935546875,
0.033416748046875,
0.0035381317138671875,
0.001178741455078125,
0.0113525390625,
0.02117919921875,
-0.02911376953125,
-0.01415252685546875,
-0.0091705322265625,
0.033660888671875,
-0.0625,
-0.02734375,
0.0031585693359375,
0.0264892578125,
0.0004363059997558594,
0.016204833984375,
-0.022430419921875,
-0.006557464599609375,
-0.0192718505859375,
-0.0192413330078125,
0.0301055908203125,
0.01071929931640625,
-0.00652313232421875,
0.0306854248046875,
0.0311126708984375,
-0.0164642333984375,
0.02001953125,
-0.0183258056640625,
0.03521728515625,
0.036865234375,
-0.00812530517578125,
-0.05767822265625,
0.024658203125,
-0.0068817138671875,
-0.0263671875,
0.0206298828125,
0.03961181640625,
0.015472412109375,
-0.008148193359375,
0.041107177734375,
0.05487060546875,
0.029083251953125,
-0.0237579345703125,
-0.010345458984375,
0.06378173828125,
-0.04302978515625,
-0.00241851806640625,
0.001995086669921875,
-0.0158538818359375,
-0.0489501953125,
-0.0165252685546875,
0.01495361328125,
-0.036865234375,
-0.00577545166015625,
-0.035369873046875,
-0.00878143310546875,
0.017852783203125,
-0.017059326171875,
0.01544189453125,
0.0005445480346679688,
-0.058837890625,
-0.0233917236328125,
-0.00848388671875,
-0.034332275390625,
-0.005474090576171875,
0.01934814453125,
-0.024383544921875,
-0.06402587890625,
-0.045989990234375,
0.0518798828125,
-0.04443359375,
0.00806427001953125,
0.00899505615234375,
-0.01277923583984375,
0.035430908203125,
0.0006380081176757812,
0.01526641845703125,
0.05352783203125,
0.0006427764892578125,
-0.018768310546875,
0.0267486572265625,
0.00470733642578125,
-0.0231781005859375,
-0.06658935546875,
-0.014312744140625,
-0.032135009765625,
0.00632476806640625,
-0.032318115234375,
0.0197601318359375,
0.032012939453125,
-0.0167388916015625,
-0.04144287109375,
0.008697509765625,
-0.00395965576171875,
-0.0199432373046875,
-0.08380126953125,
-0.040191650390625,
-0.0222320556640625,
0.050750732421875,
-0.026611328125,
-0.0091705322265625,
-0.03399658203125,
0.0816650390625,
-0.003940582275390625,
-0.00948333740234375,
0.03302001953125,
-0.021026611328125,
-0.0271453857421875,
0.003925323486328125,
0.0209808349609375,
-0.014739990234375,
0.03607177734375,
-0.034698486328125,
0.0733642578125,
0.08428955078125,
0.01442718505859375,
0.01375579833984375,
0.0243377685546875,
-0.09564208984375,
-0.0276641845703125,
-0.0280609130859375,
-0.038970947265625,
-0.018218994140625,
0.090576171875,
0.08612060546875,
0.0203094482421875,
-0.03717041015625,
0.011627197265625,
-0.00033402442932128906,
-0.0338134765625,
-0.0102386474609375,
0.0328369140625,
-0.074462890625,
-0.0290985107421875,
0.00838470458984375,
-0.00351715087890625,
0.032989501953125,
0.038909912109375,
-0.0018463134765625,
0.004024505615234375,
0.042449951171875,
-0.0232391357421875,
-0.06842041015625,
0.037384033203125,
0.028167724609375,
-0.0272979736328125,
-0.006099700927734375,
0.00836181640625,
-0.02215576171875,
-0.00608062744140625,
0.01287078857421875,
-0.032989501953125,
0.039031982421875,
-0.052520751953125,
0.03564453125,
-0.0067138671875,
0.0357666015625,
-0.051116943359375,
0.0285491943359375,
0.016021728515625,
0.001743316650390625,
-0.00847625732421875,
0.006771087646484375,
0.032379150390625,
-0.0274810791015625,
-0.0255889892578125,
0.0291900634765625,
-0.03118896484375,
-0.0440673828125,
-0.0279998779296875,
0.015228271484375,
-0.034393310546875,
0.0189666748046875,
-0.0083770751953125,
-0.004756927490234375,
0.0207977294921875,
0.0087127685546875,
0.0023193359375,
-0.0179595947265625,
-0.0028400421142578125,
-0.03143310546875,
0.0083465576171875,
0.0102386474609375
] |
aedf8ff94c0067f900577aa5fc34f13d91e57528
|
Wordpress Stackexchange
Q: Are there any action like 'init_frontend' I've found init and init_admin. Are there any action that executes just in the frontend?
Thanks.
A: You can combine add_action() and an is_admin() check:
! is_admin() and add_action( 'init', 'my_custom_callback' );
Now the callback function will run on front-end only.
|
Q: Are there any action like 'init_frontend' I've found init and init_admin. Are there any action that executes just in the frontend?
Thanks.
A: You can combine add_action() and an is_admin() check:
! is_admin() and add_action( 'init', 'my_custom_callback' );
Now the callback function will run on front-end only.
A: 'template_redirect' is the most useful one.
A: Late to the party, but found the other answers not quite as clear.
There is no init-like hook that is front-end only.
admin_init only runs in the dashboard.
init runs on both the front-end as well as the dashboard.
So, combining the built-in WordPress function is_admin(), and the init hook, you can construct a function that allows you to do front-end only things:
add_action( 'init', 'my_init_frontend_only_function' );
function my_init_frontend_only_function() {
// exit function if not on front-end
if ( is_admin() ) {
return;
}
// remaining code will only run on the front end....
// do stuff here....
}
A: You can use wp_loaded action for this.
// If u want to load a function only in the front end.
add_action( 'wp_loaded', 'my_front_end_function');
function my_front_end_function() {
if ( !is_admin() ) {
// Only target the front end
// Do what you need to do
}
}
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_loaded
|
wordpress
|
{
"language": "en",
"length": 203,
"provenance": "stackexchange_00019.jsonl.gz:411750",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24364"
}
|
[
0.0457763671875,
0.0140533447265625,
-0.024810791015625,
-0.04583740234375,
0.01038360595703125,
-0.0229949951171875,
0.004825592041015625,
-0.0189666748046875,
0.0213623046875,
0.011260986328125,
-0.00531768798828125,
0.0204010009765625,
0.01202392578125,
-0.02349853515625,
0.013458251953125,
-0.01412200927734375,
0.042633056640625,
0.016693115234375,
0.053375244140625,
-0.006458282470703125,
0.0161590576171875,
0.0234375,
0.010101318359375,
0.0731201171875,
0.0271148681640625,
-0.026275634765625,
-0.00791168212890625,
0.025115966796875,
-0.00490570068359375,
0.0064697265625,
0.009124755859375,
-0.007198333740234375,
-0.0122222900390625,
0.03460693359375,
0.0153656005859375,
-0.0065155029296875,
-0.00823211669921875,
0.0357666015625,
0.03564453125,
0.00048613548278808594,
0.053436279296875,
-0.028839111328125,
0.029327392578125,
0.0416259765625,
0.0193328857421875,
-0.047698974609375,
0.083251953125,
-0.05914306640625,
0.004161834716796875,
-0.0458984375,
-0.0109100341796875,
-0.0099334716796875,
0.003932952880859375,
-0.04510498046875,
0.00811767578125,
0.0124969482421875,
-0.01422119140625,
-0.047576904296875,
0.049041748046875,
0.03662109375,
-0.040130615234375,
-0.0509033203125,
0.025177001953125,
-0.07171630859375,
0.0298004150390625,
0.002544403076171875,
-0.0266571044921875,
0.0213165283203125,
-0.025848388671875,
0.034393310546875,
0.0302276611328125,
-0.045257568359375,
-0.030059814453125,
0.0015382766723632812,
-0.054901123046875,
-0.0173187255859375,
0.0394287109375,
-0.0205230712890625,
-0.0171966552734375,
0.012603759765625,
-0.0032062530517578125,
0.01247406005859375,
-0.02496337890625,
-0.035614013671875,
-0.0014448165893554688,
-0.039794921875,
-0.014190673828125,
0.002689361572265625,
-0.034210205078125,
-0.03155517578125,
-0.0268402099609375,
-0.033203125,
-0.0242767333984375,
0.005462646484375,
-0.0125274658203125,
0.0022716522216796875,
0.0263671875,
0.0228271484375,
0.027740478515625,
-0.00799560546875,
0.01444244384765625,
-0.038055419921875,
0.00481414794921875,
-0.01201629638671875,
0.005802154541015625,
0.0523681640625,
0.01323699951171875,
0.0041656494140625,
-0.000037550926208496094,
-0.018402099609375,
-0.02667236328125,
-0.0079193115234375,
0.0107879638671875,
-0.0027637481689453125,
0.00786590576171875,
-0.019989013671875,
-0.032867431640625,
0.0450439453125,
0.00434112548828125,
0.021881103515625,
0.00470733642578125,
0.01003265380859375,
0.05108642578125,
-0.0222930908203125,
0.002399444580078125,
0.005870819091796875,
-0.02484130859375,
-0.06494140625,
0.04388427734375,
0.0173797607421875,
-0.0416259765625,
0.028961181640625,
0.03863525390625,
-0.05670166015625,
-0.0267791748046875,
-0.004909515380859375,
0.04791259765625,
0.042877197265625,
0.0196990966796875,
-0.01378631591796875,
0.06048583984375,
-0.05450439453125,
-0.0831298828125,
0.08087158203125,
0.0301971435546875,
-0.0128021240234375,
0.0037670135498046875,
0.00815582275390625,
-0.0000012516975402832031,
-0.025177001953125,
0.034912109375,
-0.0237579345703125,
-0.0233612060546875,
0.0288543701171875,
0.0416259765625,
0.05963134765625,
0.00765228271484375,
0.031707763671875,
-0.012725830078125,
0.034393310546875,
0.0019483566284179688,
-0.0171661376953125,
-0.0183868408203125,
-0.0301666259765625,
-0.06121826171875,
0.01393890380859375,
0.0001264810562133789,
0.003841400146484375,
0.01395416259765625,
0.041046142578125,
0.010894775390625,
0.0104217529296875,
0.021575927734375,
0.031463623046875,
-0.005023956298828125,
0.0008640289306640625,
-0.0132598876953125,
0.01180267333984375,
0.01432037353515625,
0.0098876953125,
-0.0197296142578125,
-0.0294342041015625,
-0.0006241798400878906,
0.01352691650390625,
-0.0341796875,
-0.0268402099609375,
0.004314422607421875,
0.005878448486328125,
0.0264434814453125,
0.0171051025390625,
0.003826141357421875,
-0.00205230712890625,
-0.0080413818359375,
0.0110015869140625,
-0.0126953125,
-0.02606201171875,
-0.00983428955078125,
-0.006450653076171875,
-0.029388427734375,
0.015716552734375,
0.02288818359375,
0.0258026123046875,
-0.0022983551025390625,
0.0128173828125,
-0.03546142578125,
0.01080322265625,
-0.01422882080078125,
0.0249786376953125,
0.033355712890625,
0.024871826171875,
-0.0222625732421875,
-0.0167999267578125,
0.0323486328125,
-0.05828857421875,
-0.041473388671875,
0.004726409912109375,
-0.027008056640625,
0.0164337158203125,
-0.0162200927734375,
0.01224517822265625,
-0.01297760009765625,
-0.005645751953125,
-0.0101776123046875,
-0.00913238525390625,
0.0176849365234375,
-0.0052337646484375,
0.00405120849609375,
-0.0032501220703125,
0.033538818359375,
0.0124359130859375,
-0.005283355712890625,
0.0033435821533203125,
0.0081024169921875,
-0.0088653564453125,
-0.032379150390625,
-0.022003173828125,
-0.01467132568359375,
-0.09222412109375,
0.011566162109375,
0.0714111328125,
0.022552490234375,
-0.003398895263671875,
0.01494598388671875,
0.044677734375,
0.047027587890625,
0.00925445556640625,
0.0191802978515625,
0.0053253173828125,
-0.034576416015625,
0.0207061767578125,
-0.06085205078125,
0.03265380859375,
0.032806396484375,
-0.05035400390625,
-0.01430511474609375,
0.060699462890625,
-0.0274200439453125,
-0.059295654296875,
0.002895355224609375,
-0.007396697998046875,
0.030364990234375,
-0.034271240234375,
-0.053741455078125,
0.00696563720703125,
-0.01165771484375,
-0.004589080810546875,
-0.0007257461547851562,
0.004486083984375,
-0.01276397705078125,
-0.0024967193603515625,
0.032562255859375,
0.01324462890625,
-0.0247955322265625,
0.09027099609375,
0.045196533203125,
-0.045166015625,
-0.044891357421875,
0.0004887580871582031,
-0.053253173828125,
0.033203125,
-0.030029296875,
0.0177001953125,
-0.0250244140625,
-0.0211334228515625,
-0.0281829833984375,
-0.04095458984375,
0.0231170654296875,
0.00902557373046875,
0.0274810791015625,
-0.034912109375,
0.000965118408203125,
-0.0193939208984375,
-0.06610107421875,
0.06884765625,
-0.0144805908203125,
-0.0675048828125,
-0.02801513671875,
0.02386474609375,
-0.0085601806640625,
-0.00946807861328125,
0.032958984375,
0.040069580078125,
-0.006839752197265625,
-0.005664825439453125,
0.0028591156005859375,
-0.0445556640625,
0.0148773193359375,
0.0142364501953125,
-0.005359649658203125,
-0.023834228515625,
-0.044891357421875,
-0.0157318115234375,
0.02398681640625,
0.09161376953125,
0.0035953521728515625,
-0.048553466796875,
0.01690673828125,
0.054290771484375,
-0.003326416015625,
-0.0283966064453125,
0.005451202392578125,
-0.08038330078125,
0.04058837890625,
-0.039276123046875,
-0.0234222412109375,
-0.015167236328125,
-0.0201263427734375,
0.020751953125,
0.043212890625,
0.001888275146484375,
0.0276641845703125,
0.0189971923828125,
-0.0188140869140625,
-0.049224853515625,
0.01557159423828125,
-0.0200042724609375,
-0.00380706787109375,
0.09112548828125,
0.0109710693359375,
-0.0574951171875,
0.01177215576171875,
-0.0005083084106445312,
-0.01369476318359375,
0.0452880859375,
0.0018444061279296875,
-0.020843505859375,
0.007480621337890625,
0.01026153564453125,
-0.00582122802734375,
-0.002178192138671875,
-0.004039764404296875,
-0.0216217041015625,
-0.0182037353515625,
-0.04376220703125,
-0.007144927978515625,
0.061737060546875,
0.0192718505859375,
-0.0273284912109375,
0.033477783203125,
-0.059600830078125,
-0.007038116455078125,
0.0162811279296875,
-0.0261688232421875,
-0.0038356781005859375,
0.012237548828125,
-0.025421142578125,
0.01251220703125,
-0.0017547607421875,
0.03448486328125,
0.03985595703125,
0.02020263671875,
0.0274658203125,
-0.0236358642578125,
-0.006244659423828125,
0.0208892822265625,
-0.0242767333984375,
0.0106353759765625,
-0.0147247314453125,
-0.00037026405334472656,
0.00936126708984375,
-0.004131317138671875,
-0.0018262863159179688,
-0.0031948089599609375,
-0.02105712890625,
-0.024261474609375,
0.033599853515625,
-0.0277862548828125,
0.03753662109375,
-0.0235137939453125,
-0.015533447265625,
0.0083160400390625,
0.086669921875,
-0.049591064453125,
0.010009765625,
0.0271453857421875,
0.0186004638671875,
-0.043701171875,
-0.023681640625,
-0.09637451171875,
-0.0016222000122070312,
-0.05023193359375,
0.0006895065307617188,
-0.0114288330078125,
-0.013885498046875,
-0.0147552490234375,
-0.01322174072265625,
-0.026947021484375,
-0.03521728515625,
0.020599365234375,
-0.044586181640625,
0.0014553070068359375,
-0.01149749755859375,
0.000028848648071289062,
-0.0509033203125,
0.01274871826171875,
-0.02783203125,
-0.0499267578125,
0.00740814208984375,
-0.06793212890625,
0.04437255859375,
0.0341796875,
0.0049896240234375,
0.00485992431640625,
0.037017822265625,
-0.01149749755859375,
0.00832366943359375,
0.0131378173828125,
0.0269317626953125,
-0.0009760856628417969,
-0.019561767578125,
-0.0005164146423339844,
-0.033599853515625,
-0.02398681640625,
-0.01093292236328125,
-0.0121917724609375,
0.028900146484375,
-0.002674102783203125,
-0.006336212158203125,
-0.01284027099609375,
-0.0117645263671875,
-0.02728271484375,
-0.033721923828125,
-0.052032470703125,
-0.0014104843139648438,
-0.026123046875,
0.00771331787109375,
-0.039825439453125,
-0.047882080078125,
-0.0455322265625,
-0.045501708984375,
-0.03741455078125,
0.0290374755859375,
-0.003971099853515625,
0.043914794921875,
0.0105743408203125,
0.039642333984375,
-0.043701171875,
0.021453857421875,
0.01739501953125,
0.005413055419921875,
-0.00420379638671875,
-0.0380859375,
0.06256103515625,
0.0012845993041992188,
0.0289764404296875,
-0.034942626953125,
0.040618896484375,
0.0226593017578125,
0.029083251953125,
-0.0191192626953125,
0.0254974365234375,
0.031005859375,
0.0258941650390625,
-0.0253143310546875,
0.0021495819091796875,
0.0015316009521484375,
0.0279388427734375,
-0.04534912109375,
0.0244293212890625,
-0.04034423828125,
0.0168304443359375,
-0.00707244873046875,
-0.0173797607421875,
0.03802490234375,
0.0262908935546875,
-0.00989532470703125,
-0.0222015380859375,
-0.005718231201171875,
0.015228271484375,
0.026336669921875,
0.02313232421875,
-0.02032470703125,
0.025634765625,
0.021392822265625,
-0.007244110107421875,
0.004512786865234375,
-0.004238128662109375,
0.0634765625,
-0.0050201416015625,
-0.032684326171875,
-0.0660400390625,
-0.00927734375,
0.033050537109375,
-0.0015439987182617188,
-0.0011892318725585938,
0.01143646240234375,
-0.0162353515625,
-0.0123443603515625,
-0.0001614093780517578,
-0.00888824462890625,
-0.005954742431640625,
-0.01335906982421875,
-0.0002868175506591797,
-0.01178741455078125,
0.01042938232421875,
0.002307891845703125,
0.056549072265625,
0.012786865234375,
0.0291595458984375,
-0.0256195068359375,
0.05755615234375,
0.02069091796875,
0.026153564453125,
-0.00797271728515625,
-0.0009908676147460938,
0.032958984375,
-0.007083892822265625,
0.0174102783203125,
-0.006092071533203125,
0.0031299591064453125,
0.043670654296875,
0.0301971435546875,
0.03277587890625,
0.02008056640625,
-0.029449462890625,
-0.0062103271484375,
-0.055908203125,
0.07037353515625,
0.030242919921875,
-0.0712890625,
-0.00931549072265625,
-0.0174713134765625,
-0.01543426513671875,
-0.0275726318359375,
0.0002911090850830078,
0.0237274169921875,
0.0185546875,
0.02197265625,
-0.04327392578125,
-0.044097900390625,
0.020050048828125,
0.050537109375,
0.0019369125366210938,
-0.02117919921875,
-0.0059814453125,
-0.007793426513671875,
-0.007293701171875,
-0.0201263427734375,
-0.0180206298828125,
0.04364013671875,
-0.002696990966796875,
0.0037364959716796875,
-0.017425537109375,
-0.00408172607421875,
-0.0648193359375,
-0.0027065277099609375,
0.077392578125,
0.0435791015625,
-0.042877197265625,
-0.003978729248046875,
-0.06219482421875,
-0.006877899169921875,
-0.04754638671875,
-0.041290283203125,
-0.028167724609375,
-0.00402069091796875,
-0.008880615234375,
-0.00013959407806396484,
-0.01526641845703125,
0.01183319091796875,
0.009857177734375,
0.052398681640625,
0.0080413818359375,
0.05462646484375,
0.0031948089599609375,
0.06378173828125,
-0.01076507568359375,
0.06414794921875,
0.0196685791015625,
0.0275726318359375,
-0.01654052734375,
-0.020965576171875,
0.00926971435546875,
-0.029937744140625,
-0.0061492919921875,
-0.0347900390625,
0.037078857421875,
0.0144500732421875,
0.0220184326171875,
0.003704071044921875,
-0.005313873291015625,
0.019775390625,
0.01194000244140625,
-0.01080322265625,
0.00638580322265625,
0.031463623046875,
-0.000843048095703125,
-0.0218353271484375,
-0.0338134765625,
-0.0280609130859375,
-0.037872314453125,
0.0092620849609375,
0.042877197265625,
-0.02984619140625,
0.0007529258728027344,
0.00908660888671875,
-0.057830810546875,
0.028076171875,
0.08978271484375,
0.041748046875,
0.07928466796875,
0.0004773139953613281,
0.03472900390625,
0.0435791015625,
0.03594970703125,
-0.045684814453125,
-0.044097900390625,
0.061981201171875,
0.033660888671875,
-0.02886962890625,
0.058135986328125,
-0.034515380859375,
0.036529541015625,
0.07293701171875,
0.08062744140625,
-0.119140625,
0.0270233154296875,
0.0110321044921875,
0.0097198486328125,
0.02899169921875,
-0.0364990234375,
0.0021839141845703125,
-0.03314208984375,
0.047393798828125,
0.041229248046875,
-0.0194244384765625,
0.005268096923828125,
-0.006320953369140625,
-0.002460479736328125,
-0.0174407958984375,
0.023223876953125,
0.00940704345703125,
0.045623779296875,
-0.0127716064453125,
-0.0201263427734375,
0.01387786865234375,
-0.055999755859375,
0.0277099609375,
-0.0156707763671875,
0.003910064697265625,
-0.011993408203125,
0.033905029296875,
0.0362548828125,
0.0302886962890625,
0.04974365234375,
-0.0023593902587890625,
0.0259552001953125,
0.045257568359375,
-0.028839111328125,
0.0567626953125,
-0.014739990234375,
0.0288543701171875,
-0.06829833984375,
-0.034576416015625,
0.01445770263671875,
0.0153045654296875,
-0.053131103515625,
0.03375244140625,
-0.041595458984375,
-0.043212890625,
0.0144500732421875,
0.0004661083221435547,
0.05548095703125,
-0.038818359375,
-0.0161895751953125,
0.0290374755859375,
-0.047088623046875,
-0.01136016845703125,
-0.004138946533203125,
-0.02154541015625,
-0.027496337890625,
0.006359100341796875,
-0.0200958251953125,
-0.03778076171875,
0.0266876220703125,
0.00830078125,
-0.054443359375,
0.1240234375,
-0.01279449462890625,
-0.0033473968505859375,
-0.0024814605712890625,
0.0550537109375,
-0.025115966796875,
0.02880859375,
-0.04595947265625,
0.0308990478515625,
-0.0024585723876953125,
0.0138397216796875,
-0.028045654296875,
0.0235137939453125,
-0.01197052001953125,
-0.0293426513671875,
0.032623291015625,
0.016021728515625,
-0.021942138671875,
-0.0027217864990234375,
0.0087127685546875,
-0.0017309188842773438,
-0.034912109375,
0.051239013671875,
-0.00885009765625,
0.0123291015625,
0.02081298828125,
-0.01052093505859375,
0.0338134765625,
-0.020965576171875,
-0.0196075439453125,
0.0234832763671875,
-0.00734710693359375,
-0.0179443359375,
0.005100250244140625,
0.035003662109375,
-0.037109375,
-0.0101470947265625,
0.03460693359375,
-0.047454833984375,
-0.06402587890625,
0.035858154296875,
-0.0390625,
-0.0035572052001953125,
0.0026760101318359375,
-0.039947509765625,
0.0186309814453125,
-0.0084991455078125,
-0.03631591796875,
-0.0112152099609375,
0.008026123046875,
-0.040252685546875,
-0.0257720947265625,
-0.02191162109375,
0.0643310546875,
-0.0599365234375,
0.034942626953125,
0.00016677379608154297,
0.034515380859375,
-0.04345703125,
-0.033294677734375,
-0.0213470458984375,
0.0517578125,
-0.0171356201171875,
-0.03729248046875,
-0.0001137852668762207,
0.0008764266967773438,
0.01824951171875,
0.031890869140625,
0.0335693359375,
-0.0267333984375,
0.002208709716796875,
-0.01357269287109375,
-0.01415252685546875,
-0.0021572113037109375,
0.032623291015625,
-0.002643585205078125,
0.0230255126953125,
-0.0235137939453125,
-0.041290283203125,
-0.019622802734375,
0.00763702392578125,
-0.00452423095703125,
0.032501220703125,
0.0284423828125,
0.023956298828125,
-0.0222015380859375,
-0.0145721435546875,
-0.031524658203125,
0.0272979736328125,
-0.027557373046875,
0.05181884765625,
-0.049652099609375,
-0.005107879638671875,
-0.02642822265625,
0.040924072265625,
0.027099609375,
0.049835205078125,
0.0228118896484375,
0.030364990234375,
0.06622314453125,
0.02142333984375,
0.042327880859375,
0.004619598388671875,
-0.0186920166015625,
-0.0159149169921875,
-0.00390625,
-0.00508880615234375,
0.0015611648559570312,
-0.003383636474609375,
0.06268310546875,
-0.0297393798828125,
-0.03253173828125,
-0.00614166259765625,
-0.0022144317626953125,
-0.043426513671875,
0.03851318359375,
-0.0144805908203125,
0.0712890625,
-0.0274505615234375,
-0.00396728515625,
-0.0023250579833984375,
-0.00091552734375,
-0.03814697265625,
0.0140533447265625,
0.035186767578125,
-0.038665771484375,
0.044036865234375,
0.04302978515625,
-0.0010004043579101562,
-0.03515625,
0.02264404296875,
0.0253448486328125,
-0.0215301513671875,
0.01654052734375,
0.025543212890625,
0.009185791015625,
0.01073455810546875,
0.0025691986083984375,
0.0256195068359375,
0.04302978515625,
0.030792236328125,
-0.01163482666015625,
0.04107666015625,
0.030364990234375,
0.0158538818359375,
-0.0034046173095703125,
0.019683837890625,
0.0135345458984375,
-0.0196533203125,
-0.0014171600341796875,
-0.02093505859375,
-0.039947509765625,
-0.0217437744140625,
0.0390625,
-0.04583740234375,
-0.01215362548828125,
0.003986358642578125,
0.0303192138671875,
-0.035308837890625,
0.064453125,
-0.009002685546875,
-0.032135009765625,
-0.04058837890625,
-0.0065155029296875,
0.041046142578125,
0.034271240234375,
-0.024749755859375,
0.0011997222900390625,
-0.02532958984375,
-0.038848876953125,
-0.0026454925537109375,
-0.00634002685546875,
-0.01496124267578125,
0.02911376953125,
-0.0156097412109375,
0.0180511474609375,
0.019195556640625,
-0.006778717041015625,
0.05780029296875,
0.01114654541015625,
0.01270294189453125,
0.0364990234375,
-0.0192718505859375,
-0.0025482177734375,
0.01043701171875,
0.033660888671875,
-0.045440673828125,
0.01322174072265625,
0.0234375,
0.0021839141845703125,
-0.00307464599609375,
-0.02545166015625,
-0.0009064674377441406,
-0.0439453125,
-0.032501220703125,
-0.0005407333374023438,
-0.04193115234375,
-0.050506591796875,
-0.0003528594970703125,
0.0303955078125,
0.03485107421875,
0.003955841064453125,
-0.05633544921875,
0.0321044921875,
-0.0548095703125,
0.034088134765625,
0.020904541015625,
-0.004024505615234375,
-0.005382537841796875,
0.031951904296875,
-0.0094451904296875,
-0.01806640625,
-0.03924560546875,
0.01320648193359375,
-0.018463134765625,
0.040985107421875,
0.0413818359375,
-0.0284271240234375,
-0.026458740234375,
0.03619384765625,
0.0027923583984375,
0.08709716796875,
0.022735595703125,
-0.0207977294921875,
-0.00360870361328125,
0.0223236083984375,
-0.0311737060546875,
-0.01029205322265625,
0.0216827392578125,
-0.00234222412109375,
-0.0294036865234375,
-0.031402587890625,
0.009033203125,
0.0133819580078125,
-0.040313720703125,
-0.10516357421875,
0.0199737548828125,
-0.0286102294921875,
-0.039215087890625,
-0.07147216796875,
0.04010009765625,
0.0206756591796875,
-0.0010623931884765625,
-0.03973388671875,
0.0321044921875,
-0.0158538818359375,
-0.002468109130859375,
0.0030231475830078125,
0.0153350830078125,
0.033843994140625,
-0.0027942657470703125,
-0.01479339599609375,
0.0154571533203125,
0.0154571533203125,
-0.0018968582153320312,
0.0185699462890625,
0.010498046875,
0.023712158203125,
0.07318115234375,
-0.011749267578125,
-0.00806427001953125,
-0.039215087890625,
-0.05584716796875,
-0.0148773193359375,
-0.01279449462890625,
-0.0009632110595703125,
0.0008935928344726562,
0.005168914794921875,
0.04541015625,
-0.00933074951171875,
-0.04376220703125,
-0.03387451171875,
-0.0276031494140625,
-0.005374908447265625,
-0.01239776611328125,
0.00433349609375,
-0.040557861328125,
-0.003856658935546875,
-0.00785064697265625,
-0.0207366943359375,
-0.0137481689453125,
0.037628173828125,
-0.0258941650390625,
0.0005230903625488281,
0.05291748046875,
-0.0019989013671875,
-0.032470703125,
-0.00566864013671875,
0.08380126953125,
-0.05181884765625,
-0.027313232421875,
0.027618408203125,
0.006374359130859375,
0.0218505859375,
0.0165557861328125,
0.0433349609375,
0.0162200927734375,
-0.0288238525390625,
0.0006823539733886719,
0.028564453125,
0.004566192626953125,
-0.0036468505859375,
-0.049224853515625,
-0.001934051513671875,
0.0433349609375,
-0.005382537841796875,
0.041351318359375,
-0.0015192031860351562,
0.06243896484375,
0.00007963180541992188,
0.039520263671875,
-0.019317626953125,
0.03277587890625,
-0.01418304443359375,
0.0303192138671875,
-0.02178955078125,
0.006229400634765625,
0.0242919921875,
-0.02984619140625,
-0.0155029296875,
-0.0032596588134765625,
-0.079833984375,
-0.06500244140625,
0.0137481689453125,
-0.01436614990234375,
-0.006771087646484375,
0.027191162109375
] |
803f2ef4f56d8657bb70001fbc40610cdfa264a4
|
Wordpress Stackexchange
Q: $GLOBALS array for WordPress Is there a file where WordPress defines $GLOBALS?
I'm just curious as to what WordPress uses it for and for what purpose.
That's all!
A: Unfortunately, no.
Globals definitions are scattered throught the codebase.
There's no documentation for most of them, either.
|
Q: $GLOBALS array for WordPress Is there a file where WordPress defines $GLOBALS?
I'm just curious as to what WordPress uses it for and for what purpose.
That's all!
A: Unfortunately, no.
Globals definitions are scattered throught the codebase.
There's no documentation for most of them, either.
A: $GLOBALS is an associative array containing references to all variables which are currently defined in the global scope. This is a PHP language tool.
Global variables can be defined simply by creating a new item in the $GLOBALS array like this:
$GLOBALS['foo'] = 'foo content';
WordPress Globals are used to share data across files. They are not defined in any specific place but you can find some of the most important ones here: http://codex.wordpress.org/Global_Variables
PHP makes it even easier to use $GLOBALS by allowing you to access the items by simply declaring it using the global keyword.
global $foo;
$foo = 'foo new content';
is the same as:
$GLOBALS['foo'] = 'foo new content';
Please note, if you didn't define $foo as global, it will not be linked to the global variable scope.
Some further reading on this:
http://www.php.net/manual/en/reserved.variables.globals.php
A: I'm not sure if all of these are WordPress globals, but I did a quick grep type search of the WordPress files and tried to extract all the globals I could..
This is the list I compiled. It may not be perfect, but should *hopefully* represent a lot of the $GLOBALS keys that WordPress uses It won't account for globalised variables that aren't explicitly defined as $GLOBAL, but still have global scope.
$GLOBALS['_menu_item_sort_prop']
$GLOBALS['_wp_sidebars_widgets']
$GLOBALS['blog_id']
$GLOBALS['body_id']
$GLOBALS['comment']
$GLOBALS['comment_depth']
$GLOBALS['content_width']
$GLOBALS['current_site']
$GLOBALS['current_user']
$GLOBALS['custom_background']
$GLOBALS['custom_image_header']
$GLOBALS['debug_bar']
$GLOBALS['editor_styles']
$GLOBALS['is_winIE']
$GLOBALS['link']
$GLOBALS['login_grace_period']
$GLOBALS['month']
$GLOBALS['month_abbrev']
$GLOBALS['more']
$GLOBALS['post']
$GLOBALS['post_type']
$GLOBALS['posts']
$GLOBALS['query_string']
$GLOBALS['request']
$GLOBALS['single']
$GLOBALS['submenu']
$GLOBALS['tab']
$GLOBALS['type']
$GLOBALS['weekday']
$GLOBALS['weekday_abbrev']
$GLOBALS['weekday_initial']
$GLOBALS['wp_admin_bar']
$GLOBALS['wp_filter']
$GLOBALS['wp_object_cache']
$GLOBALS['wp_post_types']
$GLOBALS['wp_query']
$GLOBALS['wp_styles']
$GLOBALS['wp_taxonomies']
$GLOBALS['wp_the_query']
$GLOBALS['wp_version']
If you wanted to get a better idea of everything inside the global array you could run something like the following to get a print out, because the above approach was obviously flawed since globals are defined in more than one way.
add_action( 'shutdown', 'print_them_globals' );
function print_them_globals() {
ksort( $GLOBALS );
echo '<ol>';
echo '<li>'. implode( '</li><li>', array_keys( $GLOBALS ) ) . '</li>';
echo '</ol>';
}
That should give you a more comprehensive list of variables in the global scope.
Hope that's helpful. :)
A: If you try to print out all the $GLOBALS and get an error 'allowed memory exceeded' or something like that, than put this code inside functions.php:
if(!function_exists("print_all_globals")){
function print_all_globals() {
$test = array_keys($GLOBALS);
echo "<pre style='background:blue;color:white;'>";
print_r($test);
echo "</pre>";
exit;
}
add_action('wp_enqueue_scripts','print_all_globals');
}
|
wordpress
|
{
"language": "en",
"length": 428,
"provenance": "stackexchange_00019.jsonl.gz:411751",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24367"
}
|
[
-0.016204833984375,
-0.017547607421875,
-0.0242919921875,
0.009033203125,
-0.037841796875,
-0.0158233642578125,
0.024200439453125,
0.005359649658203125,
-0.0025501251220703125,
-0.00001531839370727539,
-0.048095703125,
0.0010747909545898438,
-0.0072479248046875,
-0.01580810546875,
0.0178680419921875,
-0.042572021484375,
0.029632568359375,
-0.0487060546875,
-0.0129547119140625,
-0.00858306884765625,
-0.01512908935546875,
0.0134429931640625,
0.0202484130859375,
0.0202178955078125,
0.03839111328125,
-0.00164031982421875,
0.0227203369140625,
-0.0142059326171875,
0.0160064697265625,
-0.0113067626953125,
0.021636962890625,
0.01178741455078125,
-0.001750946044921875,
-0.0032062530517578125,
0.0209503173828125,
-0.037200927734375,
-0.0312042236328125,
0.0267791748046875,
0.0338134765625,
-0.0224456787109375,
0.01096343994140625,
-0.0089111328125,
0.040008544921875,
0.01342010498046875,
0.005584716796875,
-0.033111572265625,
0.027252197265625,
-0.04766845703125,
0.023956298828125,
-0.035400390625,
0.007293701171875,
0.026031494140625,
0.033538818359375,
-0.01387786865234375,
-0.004711151123046875,
0.0242767333984375,
0.0325927734375,
0.0158538818359375,
0.0443115234375,
-0.057525634765625,
-0.0657958984375,
-0.0076446533203125,
0.034576416015625,
0.00690460205078125,
-0.00814056396484375,
-0.015380859375,
-0.058258056640625,
0.01148223876953125,
-0.03973388671875,
-0.0001976490020751953,
0.04620361328125,
-0.0330810546875,
-0.0167388916015625,
-0.0038814544677734375,
0.0038928985595703125,
-0.038177490234375,
0.0225982666015625,
-0.052764892578125,
-0.0106353759765625,
0.05194091796875,
-0.0254669189453125,
-0.03289794921875,
-0.0382080078125,
-0.037994384765625,
0.0206298828125,
0.01297760009765625,
-0.0015974044799804688,
-0.0019989013671875,
-0.020172119140625,
-0.04364013671875,
-0.022125244140625,
0.027679443359375,
-0.049774169921875,
-0.0006823539733886719,
-0.0232086181640625,
-0.01377105712890625,
-0.00496673583984375,
0.037933349609375,
-0.0511474609375,
-0.01213836669921875,
-0.0156402587890625,
0.006839752197265625,
-0.016448974609375,
-0.0227813720703125,
-0.00972747802734375,
0.04412841796875,
0.01187896728515625,
-0.0155487060546875,
-0.01273345947265625,
0.024688720703125,
-0.0108184814453125,
-0.02166748046875,
0.0273590087890625,
-0.0228118896484375,
-0.037200927734375,
-0.007266998291015625,
-0.0166168212890625,
0.00711822509765625,
0.0180816650390625,
-0.006557464599609375,
0.028839111328125,
0.0122222900390625,
0.0098419189453125,
0.06573486328125,
-0.03289794921875,
-0.003589630126953125,
-0.004734039306640625,
-0.053680419921875,
-0.044525146484375,
0.061187744140625,
0.0014705657958984375,
-0.0008668899536132812,
0.024139404296875,
0.01739501953125,
-0.034210205078125,
-0.028045654296875,
0.056976318359375,
0.01300048828125,
0.011688232421875,
0.034759521484375,
-0.027374267578125,
-0.051300048828125,
-0.0104827880859375,
0.01032257080078125,
0.03216552734375,
-0.007251739501953125,
0.0289154052734375,
0.0494384765625,
-0.011138916015625,
-0.023529052734375,
0.049285888671875,
0.02410888671875,
0.004161834716796875,
0.036346435546875,
0.0253753662109375,
0.015716552734375,
0.05609130859375,
-0.03167724609375,
-0.0281982421875,
-0.007770538330078125,
-0.052734375,
-0.029449462890625,
-0.01197052001953125,
-0.04180908203125,
-0.042694091796875,
0.037994384765625,
0.041961669921875,
0.0111846923828125,
0.023895263671875,
-0.002552032470703125,
0.004779815673828125,
0.0014715194702148438,
0.050201416015625,
0.030120849609375,
0.010589599609375,
0.0250091552734375,
-0.01291656494140625,
-0.051513671875,
0.02508544921875,
0.058349609375,
-0.0038242340087890625,
-0.0243377685546875,
-0.03936767578125,
0.017730712890625,
-0.039031982421875,
0.0057525634765625,
-0.0018205642700195312,
0.0244598388671875,
0.050750732421875,
0.007328033447265625,
0.0023212432861328125,
-0.0166778564453125,
-0.006671905517578125,
0.047454833984375,
-0.00013577938079833984,
-0.009521484375,
-0.027587890625,
0.0256195068359375,
-0.018096923828125,
-0.051605224609375,
0.032867431640625,
-0.0179290771484375,
0.01136016845703125,
-0.01238250732421875,
-0.07867431640625,
0.01511383056640625,
-0.0307159423828125,
0.0146484375,
-0.0017795562744140625,
0.00965118408203125,
0.0065765380859375,
0.0012912750244140625,
-0.007335662841796875,
-0.058746337890625,
-0.03338623046875,
0.038421630859375,
-0.009368896484375,
0.0338134765625,
0.023406982421875,
0.0266265869140625,
-0.00186920166015625,
-0.0029430389404296875,
-0.0035247802734375,
-0.00046539306640625,
0.004634857177734375,
-0.0078125,
-0.0273590087890625,
-0.001804351806640625,
-0.007442474365234375,
-0.0186004638671875,
0.01007843017578125,
0.0460205078125,
0.0081024169921875,
0.0369873046875,
-0.0009441375732421875,
-0.0227508544921875,
-0.0173187255859375,
-0.078369140625,
0.01342010498046875,
0.045379638671875,
0.05181884765625,
0.03912353515625,
0.0272064208984375,
-0.0175323486328125,
0.0572509765625,
-0.0012140274047851562,
0.061279296875,
-0.055877685546875,
-0.0171661376953125,
0.0155792236328125,
0.01374053955078125,
-0.004764556884765625,
0.0012464523315429688,
-0.054656982421875,
-0.019195556640625,
0.0207061767578125,
-0.0228424072265625,
-0.007175445556640625,
0.00212860107421875,
0.033447265625,
-0.017425537109375,
0.01190948486328125,
0.0252532958984375,
-0.0215301513671875,
0.031463623046875,
-0.010009765625,
0.02203369140625,
0.01210784912109375,
-0.02716064453125,
0.002529144287109375,
0.0179443359375,
-0.013641357421875,
0.0005130767822265625,
-0.0153961181640625,
0.006069183349609375,
0.031707763671875,
-0.006893157958984375,
-0.0024738311767578125,
-0.0007314682006835938,
-0.010040283203125,
-0.0246124267578125,
-0.021484375,
-0.0308837890625,
-0.00513458251953125,
0.0174713134765625,
-0.01204681396484375,
0.0283203125,
-0.00428009033203125,
-0.0028285980224609375,
-0.03857421875,
-0.00469970703125,
0.01052093505859375,
-0.0667724609375,
0.06005859375,
0.02117919921875,
-0.052459716796875,
-0.0006880760192871094,
-0.01320648193359375,
0.01194000244140625,
-0.03497314453125,
-0.007732391357421875,
0.041748046875,
-0.01364898681640625,
0.01165771484375,
0.0033626556396484375,
0.01454925537109375,
0.03515625,
-0.0061187744140625,
-0.0019197463989257812,
-0.0011224746704101562,
-0.0404052734375,
-0.01861572265625,
-0.00989532470703125,
0.028656005859375,
-0.044677734375,
-0.06683349609375,
-0.03314208984375,
-0.007251739501953125,
-0.086669921875,
-0.037017822265625,
0.0145263671875,
-0.051177978515625,
-0.01168060302734375,
-0.012237548828125,
-0.019378662109375,
-0.004779815673828125,
0.0014390945434570312,
-0.0030765533447265625,
-0.01473236083984375,
-0.03662109375,
-0.05401611328125,
-0.091552734375,
-0.09503173828125,
-0.01336669921875,
0.01157379150390625,
0.037994384765625,
-0.0109100341796875,
0.0770263671875,
0.00998687744140625,
-0.0205078125,
-0.02471923828125,
-0.004985809326171875,
0.004146575927734375,
0.0009908676147460938,
0.0496826171875,
-0.060455322265625,
0.0047454833984375,
-0.000005185604095458984,
0.0494384765625,
0.031036376953125,
-0.0287628173828125,
0.00713348388671875,
0.0093841552734375,
0.020843505859375,
0.02447509765625,
-0.01030731201171875,
-0.034149169921875,
-0.0318603515625,
-0.03497314453125,
-0.06585693359375,
-0.034881591796875,
0.046600341796875,
-0.0240478515625,
-0.03143310546875,
-0.000009000301361083984,
-0.0304107666015625,
-0.0207061767578125,
-0.002475738525390625,
-0.0028438568115234375,
-0.019744873046875,
-0.0309906005859375,
-0.04034423828125,
0.046417236328125,
0.024932861328125,
0.03826904296875,
0.017791748046875,
-0.017059326171875,
-0.042572021484375,
0.0188140869140625,
-0.009063720703125,
-0.0143585205078125,
-0.0026798248291015625,
0.02496337890625,
0.0110321044921875,
-0.007320404052734375,
0.049072265625,
0.001720428466796875,
0.00988006591796875,
-0.01258087158203125,
-0.03265380859375,
-0.00765228271484375,
0.05706787109375,
-0.007007598876953125,
-0.00666046142578125,
0.0100555419921875,
0.00981903076171875,
-0.053741455078125,
-0.037384033203125,
-0.038238525390625,
-0.0092620849609375,
-0.0174407958984375,
0.039154052734375,
0.01016998291015625,
0.005588531494140625,
-0.0177764892578125,
0.053802490234375,
-0.0027523040771484375,
-0.0360107421875,
-0.0003762245178222656,
-0.0443115234375,
0.031524658203125,
-0.0178680419921875,
0.00887298583984375,
-0.0229339599609375,
0.023040771484375,
-0.07745361328125,
-0.04815673828125,
-0.00618743896484375,
-0.0053253173828125,
0.048309326171875,
0.0311279296875,
-0.0343017578125,
0.025726318359375,
0.050994873046875,
0.014312744140625,
-0.00777435302734375,
0.043548583984375,
0.007190704345703125,
0.034698486328125,
0.0042877197265625,
0.01739501953125,
-0.022552490234375,
-0.0088348388671875,
0.03460693359375,
-0.015899658203125,
0.022613525390625,
-0.00586700439453125,
-0.062347412109375,
0.055938720703125,
-0.06365966796875,
-0.0380859375,
-0.0098114013671875,
0.029266357421875,
0.025634765625,
0.00521087646484375,
0.01360321044921875,
-0.0142974853515625,
-0.0234222412109375,
0.0272064208984375,
0.06585693359375,
-0.02581787109375,
0.0257110595703125,
0.044342041015625,
0.005084991455078125,
-0.0419921875,
-0.1436767578125,
0.006015777587890625,
0.04144287109375,
-0.0213165283203125,
0.04888916015625,
0.01445770263671875,
-0.01146697998046875,
0.0289459228515625,
0.0097198486328125,
0.000362396240234375,
0.0021190643310546875,
0.019256591796875,
-0.0062255859375,
-0.0222320556640625,
0.004268646240234375,
-0.0283203125,
0.028717041015625,
0.00567626953125,
-0.0061492919921875,
-0.0241241455078125,
-0.006053924560546875,
0.060821533203125,
-0.0260162353515625,
0.03369140625,
-0.042877197265625,
-0.03570556640625,
0.01375579833984375,
-0.056671142578125,
0.050994873046875,
0.00403594970703125,
0.009979248046875,
0.01126861572265625,
0.01497650146484375,
0.02130126953125,
0.0239715576171875,
0.01617431640625,
0.004894256591796875,
0.0175323486328125,
0.050201416015625,
0.01462554931640625,
-0.0027866363525390625,
-0.0058441162109375,
0.0516357421875,
0.006099700927734375,
-0.048248291015625,
0.02227783203125,
-0.019622802734375,
0.00209808349609375,
0.030548095703125,
-0.0310821533203125,
0.04083251953125,
0.043609619140625,
-0.0222015380859375,
0.0177764892578125,
0.0009684562683105469,
-0.0196380615234375,
-0.032012939453125,
0.034027099609375,
0.0215606689453125,
-0.00899505615234375,
-0.01131439208984375,
0.090087890625,
-0.03082275390625,
0.052276611328125,
-0.001312255859375,
0.033599853515625,
0.032684326171875,
0.014617919921875,
0.0037288665771484375,
0.035064697265625,
-0.007312774658203125,
0.003650665283203125,
-0.0055389404296875,
-0.0345458984375,
-0.0093536376953125,
0.0201416015625,
0.01495361328125,
0.0007009506225585938,
-0.008941650390625,
0.0229644775390625,
0.0133209228515625,
-0.015777587890625,
0.0274658203125,
-0.0263824462890625,
-0.03466796875,
-0.0263671875,
-0.01251983642578125,
0.034515380859375,
-0.0107269287109375,
-0.01338958740234375,
-0.00604248046875,
-0.0310516357421875,
0.00020074844360351562,
0.0042724609375,
-0.0237274169921875,
-0.01142120361328125,
-0.00612640380859375,
-0.0693359375,
-0.00396728515625,
-0.0013341903686523438,
-0.0572509765625,
-0.07000732421875,
0.0078582763671875,
-0.02008056640625,
0.047332763671875,
-0.03228759765625,
0.0386962890625,
-0.0162200927734375,
-0.01367950439453125,
-0.01490020751953125,
0.015869140625,
0.0635986328125,
0.05120849609375,
-0.06695556640625,
-0.0099945068359375,
-0.033294677734375,
-0.022674560546875,
0.006923675537109375,
-0.01751708984375,
-0.05572509765625,
-0.0034885406494140625,
-0.0040130615234375,
0.020172119140625,
-0.0024242401123046875,
0.007091522216796875,
0.005863189697265625,
0.031463623046875,
-0.0061187744140625,
0.044525146484375,
-0.0009822845458984375,
0.0006194114685058594,
0.017578125,
0.0014972686767578125,
0.016510009765625,
0.01242828369140625,
-0.01165771484375,
-0.0281219482421875,
0.038055419921875,
-0.01212310791015625,
-0.0439453125,
-0.03759765625,
-0.04052734375,
-0.01641845703125,
0.042327880859375,
-0.0245208740234375,
0.0299530029296875,
-0.02508544921875,
0.01287078857421875,
0.0027103424072265625,
-0.019287109375,
-0.055938720703125,
-0.04327392578125,
0.051177978515625,
-0.00792694091796875,
-0.005588531494140625,
-0.0223388671875,
-0.044342041015625,
0.03265380859375,
0.0032939910888671875,
0.0159149169921875,
0.022308349609375,
-0.06182861328125,
0.051483154296875,
0.0699462890625,
0.005558013916015625,
0.0251007080078125,
-0.0035114288330078125,
-0.00989532470703125,
-0.00817108154296875,
0.0260162353515625,
-0.035797119140625,
-0.04620361328125,
0.0233001708984375,
0.00923919677734375,
-0.034027099609375,
0.021636962890625,
-0.0255279541015625,
-0.00726318359375,
0.06011962890625,
0.063720703125,
-0.047210693359375,
-0.00939178466796875,
0.0227813720703125,
-0.002475738525390625,
0.00595855712890625,
0.00628662109375,
-0.0247344970703125,
-0.0248260498046875,
0.002040863037109375,
-0.018280029296875,
-0.0367431640625,
0.0062103271484375,
0.0162811279296875,
0.016387939453125,
-0.008697509765625,
0.0594482421875,
-0.0018453598022460938,
-0.038726806640625,
-0.0172119140625,
0.00478363037109375,
0.0283050537109375,
-0.021514892578125,
0.007755279541015625,
-0.0179290771484375,
-0.00720977783203125,
-0.0229034423828125,
0.006046295166015625,
-0.0243988037109375,
0.0147705078125,
-0.0306854248046875,
-0.0264739990234375,
0.011444091796875,
0.0250396728515625,
-0.0157623291015625,
-0.024627685546875,
-0.0119476318359375,
0.00853729248046875,
-0.04669189453125,
-0.0107879638671875,
0.04278564453125,
0.040435791015625,
-0.03729248046875,
0.0309906005859375,
-0.043304443359375,
-0.0237884521484375,
-0.0227203369140625,
-0.00286865234375,
0.05084228515625,
-0.02001953125,
-0.01690673828125,
0.034332275390625,
0.04205322265625,
-0.0236968994140625,
-0.0052947998046875,
0.00269317626953125,
-0.049224853515625,
-0.020660400390625,
-0.001041412353515625,
-0.02667236328125,
0.004154205322265625,
-0.0203704833984375,
-0.0396728515625,
0.052001953125,
0.0157318115234375,
-0.01483154296875,
0.006988525390625,
0.024200439453125,
-0.0240936279296875,
0.003108978271484375,
-0.019134521484375,
0.040008544921875,
0.02618408203125,
0.0609130859375,
-0.034698486328125,
-0.018951416015625,
0.02532958984375,
0.0704345703125,
0.0191802978515625,
-0.007534027099609375,
0.03076171875,
-0.0167388916015625,
0.0182647705078125,
0.031585693359375,
-0.005001068115234375,
-0.00408935546875,
0.0009741783142089844,
0.004207611083984375,
-0.01904296875,
-0.0280609130859375,
0.030853271484375,
-0.09527587890625,
-0.019744873046875,
0.00736236572265625,
0.00896453857421875,
-0.0222625732421875,
0.048797607421875,
-0.0190582275390625,
-0.0282440185546875,
0.034088134765625,
-0.0014886856079101562,
0.02789306640625,
-0.0205230712890625,
0.03546142578125,
-0.03466796875,
0.0256195068359375,
-0.0435791015625,
-0.00527191162109375,
0.01947021484375,
-0.0225067138671875,
0.0156707763671875,
0.08160400390625,
0.0161895751953125,
0.044525146484375,
-0.008392333984375,
0.01114654541015625,
-0.00928497314453125,
0.00899505615234375,
0.041595458984375,
0.044342041015625,
0.034393310546875,
-0.033782958984375,
-0.038482666015625,
0.0298614501953125,
0.073974609375,
-0.03753662109375,
-0.04315185546875,
0.00687408447265625,
-0.0197906494140625,
-0.0021305084228515625,
-0.0012426376342773438,
0.006076812744140625,
-0.01904296875,
-0.0031452178955078125,
-0.007587432861328125,
-0.0011167526245117188,
0.036041259765625,
0.005153656005859375,
0.021514892578125,
0.03546142578125,
-0.04632568359375,
-0.001800537109375,
-0.0291290283203125,
-0.043182373046875,
0.0025196075439453125,
0.0797119140625,
0.0596923828125,
0.041107177734375,
-0.005146026611328125,
-0.039276123046875,
-0.013916015625,
0.044189453125,
0.0016164779663085938,
0.0206146240234375,
-0.048828125,
-0.02716064453125,
0.00545501708984375,
0.04644775390625,
0.013153076171875,
-0.019683837890625,
0.06024169921875,
0.043121337890625,
-0.054962158203125,
-0.0191802978515625,
0.0005888938903808594,
-0.033782958984375,
-0.038848876953125,
-0.01629638671875,
0.01451873779296875,
0.045257568359375,
0.007335662841796875,
0.004131317138671875,
0.02972412109375,
0.0489501953125,
-0.01262664794921875,
0.021453857421875,
0.005954742431640625,
-0.0328369140625,
0.01436614990234375,
-0.0005750656127929688,
0.061737060546875,
0.0243377685546875,
-0.018768310546875,
-0.0125579833984375,
-0.03485107421875,
-0.0174560546875,
0.0278472900390625,
0.040283203125,
0.0198516845703125,
0.0064544677734375,
0.00412750244140625,
-0.039581298828125,
0.012542724609375,
0.019744873046875,
-0.00565338134765625,
-0.042144775390625,
0.01541900634765625,
-0.036285400390625,
-0.061553955078125,
-0.0400390625,
-0.032257080078125,
0.0208892822265625,
0.0535888671875,
0.05169677734375,
0.003421783447265625,
0.0279083251953125,
0.00742340087890625,
0.00022649765014648438,
-0.00024437904357910156,
0.0118255615234375,
-0.00811004638671875,
0.032257080078125,
0.0175628662109375,
-0.034454345703125,
-0.01537322998046875,
0.028717041015625,
0.043853759765625,
-0.024169921875,
0.0221405029296875,
0.00392913818359375,
0.0216064453125,
-0.0301666259765625,
0.00942230224609375,
-0.009521484375,
-0.037689208984375,
0.0151824951171875,
0.0142974853515625,
0.0018253326416015625,
0.029449462890625,
0.01395416259765625,
-0.0139617919921875,
0.0073089599609375,
-0.07354736328125,
0.03875732421875,
-0.0166168212890625,
0.0015516281127929688,
0.007293701171875,
0.0809326171875,
-0.054473876953125,
-0.032501220703125,
-0.0265960693359375,
-0.02294921875,
-0.0013799667358398438,
0.0423583984375,
-0.035797119140625,
-0.0285797119140625,
-0.019927978515625,
0.0189666748046875,
0.0347900390625,
-0.02374267578125,
0.0005254745483398438,
0.02294921875,
-0.014739990234375,
-0.006542205810546875,
-0.012115478515625,
-0.0172271728515625,
-0.028350830078125,
0.0017795562744140625,
0.0186614990234375,
-0.015960693359375,
-0.0263824462890625,
-0.046417236328125,
-0.014068603515625,
0.0273284912109375,
-0.0158843994140625,
-0.013458251953125,
-0.0139617919921875,
-0.02496337890625,
0.040252685546875,
-0.02740478515625,
-0.006313323974609375,
0.008880615234375,
0.003406524658203125,
-0.0253448486328125,
0.006900787353515625,
-0.01184844970703125,
0.0106048583984375,
0.040313720703125,
0.059051513671875,
0.060516357421875,
-0.0731201171875,
0.0526123046875,
0.10833740234375,
0.09100341796875,
0.14599609375,
-0.01074981689453125,
-0.031036376953125,
0.01322174072265625,
0.0243072509765625,
-0.0172576904296875,
-0.06817626953125,
-0.015472412109375,
-0.04229736328125,
0.0263214111328125,
-0.00022161006927490234,
0.006740570068359375,
0.00215911865234375,
-0.057403564453125,
-0.1593017578125,
0.09185791015625,
-0.048980712890625,
-0.056365966796875,
-0.051605224609375,
0.005748748779296875,
0.01666259765625,
-0.034698486328125,
-0.0229034423828125,
-0.02557373046875,
-0.04522705078125,
0.0165863037109375,
0.017303466796875,
-0.013916015625,
0.045135498046875,
-0.007343292236328125,
-0.0313720703125,
-0.00531768798828125,
0.006534576416015625,
0.011810302734375,
-0.00560760498046875,
0.0028820037841796875,
0.0015211105346679688,
0.032745361328125,
-0.007793426513671875,
-0.03106689453125,
0.0008130073547363281,
-0.0149078369140625,
-0.0244903564453125,
-0.0158843994140625,
0.0122833251953125,
0.005847930908203125,
0.030303955078125,
0.0189971923828125,
-0.01284027099609375,
-0.019622802734375,
0.0306396484375,
0.023223876953125,
-0.055572509765625,
-0.0177764892578125,
0.0142364501953125,
-0.0200653076171875,
-0.0141448974609375,
-0.0343017578125,
-0.01490020751953125,
0.0169219970703125,
-0.03436279296875,
-0.0333251953125,
0.004825592041015625,
-0.01003265380859375,
-0.00560760498046875,
0.014373779296875,
-0.031707763671875,
0.01441192626953125,
-0.0096588134765625,
0.0235443115234375,
-0.00942230224609375,
0.0234222412109375,
0.01030731201171875,
0.040374755859375,
0.02056884765625,
0.04437255859375,
-0.037750244140625,
0.02386474609375,
0.0176849365234375,
0.02471923828125,
-0.033355712890625,
-0.02081298828125,
-0.0218505859375,
0.0309295654296875,
0.01140594482421875,
0.0286712646484375,
-0.0204925537109375,
0.072021484375,
0.01165771484375,
0.055084228515625,
-0.021514892578125,
0.0298919677734375,
-0.00998687744140625,
0.047088623046875,
-0.062164306640625,
-0.0012464523315429688,
-0.01806640625,
-0.058563232421875,
0.0078277587890625,
-0.032012939453125,
-0.003932952880859375,
-0.0178070068359375,
-0.0129852294921875,
-0.0036773681640625,
-0.01042938232421875,
0.016571044921875
] |
0ebfa5e3135c033b026dcd1c018ac503ab596bfa
|
Wordpress Stackexchange
Q: get_categories returns an array with one category I'm running a query on a custom plugin to display all categories and put them into a dropdown (the select parts are outside the loop) which looks like this:
<?php
$ember_categories = get_categories();
foreach($ember_categories as $ember_category) {
echo '<option value="' . $ember_category->cat_ID . '">' . $ember_category->name . '</option>';
}
?>
For some reason though, it's only returning my default category (Uncategorized) - even though there are six more added to the system (including one I added afterwards, just as a curiosity). I'm wondering whether I'm doing something glaringly wrong?
A: Try get_categories( array('hide_empty' => 0 ) );
|
Q: get_categories returns an array with one category I'm running a query on a custom plugin to display all categories and put them into a dropdown (the select parts are outside the loop) which looks like this:
<?php
$ember_categories = get_categories();
foreach($ember_categories as $ember_category) {
echo '<option value="' . $ember_category->cat_ID . '">' . $ember_category->name . '</option>';
}
?>
For some reason though, it's only returning my default category (Uncategorized) - even though there are six more added to the system (including one I added afterwards, just as a curiosity). I'm wondering whether I'm doing something glaringly wrong?
A: Try get_categories( array('hide_empty' => 0 ) );
|
wordpress
|
{
"language": "en",
"length": 105,
"provenance": "stackexchange_00019.jsonl.gz:411754",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24373"
}
|
[
-0.00806427001953125,
0.007320404052734375,
-0.03326416015625,
-0.00868988037109375,
0.01107025146484375,
-0.02276611328125,
0.03179931640625,
-0.005046844482421875,
0.008056640625,
-0.002330780029296875,
-0.043426513671875,
-0.024383544921875,
-0.01873779296875,
-0.029449462890625,
0.000675201416015625,
-0.0577392578125,
0.046478271484375,
0.010406494140625,
0.056793212890625,
0.007373809814453125,
-0.004459381103515625,
0.03253173828125,
0.042144775390625,
0.07073974609375,
0.01788330078125,
-0.05792236328125,
0.050933837890625,
-0.032684326171875,
0.00789642333984375,
-0.04705810546875,
0.0123443603515625,
0.046478271484375,
0.005947113037109375,
0.0160675048828125,
0.0232391357421875,
0.0146331787109375,
0.015228271484375,
0.005290985107421875,
0.02838134765625,
0.0239715576171875,
0.055328369140625,
-0.03704833984375,
0.032623291015625,
0.0035305023193359375,
0.0136871337890625,
-0.04052734375,
0.07672119140625,
-0.041107177734375,
0.0112457275390625,
-0.0294342041015625,
0.0239715576171875,
0.00704193115234375,
0.034637451171875,
-0.04315185546875,
-0.00818634033203125,
0.031524658203125,
0.00872039794921875,
0.0003559589385986328,
0.05511474609375,
0.005451202392578125,
-0.052398681640625,
-0.032073974609375,
0.023712158203125,
-0.060394287109375,
0.0046844482421875,
-0.0036334991455078125,
0.0204315185546875,
0.031097412109375,
0.00345611572265625,
-0.0218963623046875,
0.0030689239501953125,
0.00983428955078125,
0.02301025390625,
-0.019927978515625,
-0.039703369140625,
0.0016355514526367188,
-0.00308990478515625,
0.01078033447265625,
0.026031494140625,
-0.029327392578125,
-0.010986328125,
0.0020656585693359375,
-0.062103271484375,
-0.023406982421875,
0.030609130859375,
0.006443023681640625,
-0.015655517578125,
-0.0168304443359375,
-0.0288238525390625,
-0.0110626220703125,
-0.016571044921875,
-0.015533447265625,
-0.0526123046875,
0.0638427734375,
0.01544952392578125,
0.0064849853515625,
0.038116455078125,
0.020172119140625,
0.017791748046875,
-0.0287322998046875,
0.0007309913635253906,
-0.045379638671875,
-0.03363037109375,
0.00588226318359375,
0.0027217864990234375,
-0.00991058349609375,
-0.021209716796875,
0.028106689453125,
0.05657958984375,
0.04400634765625,
-0.0088958740234375,
0.03314208984375,
-0.0095367431640625,
-0.0014095306396484375,
-0.002643585205078125,
-0.02874755859375,
-0.06610107421875,
0.03564453125,
-0.002490997314453125,
-0.00576019287109375,
0.022186279296875,
0.032257080078125,
0.00955963134765625,
-0.0027103424072265625,
0.0029449462890625,
0.01175689697265625,
-0.0161285400390625,
-0.0362548828125,
-0.007595062255859375,
-0.023956298828125,
-0.0297698974609375,
0.03631591796875,
0.0452880859375,
0.01715087890625,
0.0029468536376953125,
0.00443267822265625,
-0.013092041015625,
0.02191162109375,
0.03619384765625,
-0.008880615234375,
0.0111236572265625,
-0.0054168701171875,
0.045013427734375,
0.01371002197265625,
-0.00238800048828125,
-0.0274810791015625,
0.002391815185546875,
0.0377197265625,
0.0241851806640625,
0.00934600830078125,
0.019866943359375,
-0.0012617111206054688,
0.04827880859375,
-0.0204620361328125,
0.01343536376953125,
0.0180511474609375,
0.053863525390625,
-0.0168304443359375,
-0.05975341796875,
-0.0206298828125,
0.037078857421875,
-0.011749267578125,
-0.0253448486328125,
-0.0115814208984375,
-0.04046630859375,
0.01483917236328125,
-0.028564453125,
-0.0055389404296875,
0.0164031982421875,
0.0355224609375,
-0.0169525146484375,
-0.0166473388671875,
0.03106689453125,
0.006591796875,
-0.013153076171875,
0.01812744140625,
-0.03924560546875,
-0.0281524658203125,
0.038787841796875,
-0.00640869140625,
-0.032989501953125,
-0.033233642578125,
-0.0294342041015625,
0.0184478759765625,
-0.07000732421875,
0.06512451171875,
0.0032939910888671875,
0.079345703125,
0.0092315673828125,
0.009857177734375,
0.0247955322265625,
0.058441162109375,
-0.0240020751953125,
-0.0076904296875,
0.0216064453125,
0.005279541015625,
-0.043975830078125,
-0.002300262451171875,
0.008697509765625,
-0.0323486328125,
0.01971435546875,
-0.0167388916015625,
0.007488250732421875,
0.0031452178955078125,
-0.048583984375,
-0.00037097930908203125,
-0.00897979736328125,
0.0167694091796875,
-0.03875732421875,
0.0201416015625,
0.0182342529296875,
0.0219573974609375,
-0.0325927734375,
-0.0032196044921875,
0.011474609375,
0.0305633544921875,
-0.007114410400390625,
0.0032482147216796875,
-0.01499176025390625,
-0.033203125,
-0.00794219970703125,
0.0007257461547851562,
-0.0033473968505859375,
0.0714111328125,
0.048583984375,
0.017669677734375,
-0.0343017578125,
-0.02301025390625,
0.0086669921875,
0.01120758056640625,
-0.09234619140625,
0.034149169921875,
0.0204010009765625,
0.0623779296875,
-0.0214080810546875,
0.0027751922607421875,
0.0143585205078125,
-0.006343841552734375,
0.01149749755859375,
0.0282135009765625,
0.02008056640625,
0.0074310302734375,
-0.035064697265625,
-0.0286865234375,
0.0631103515625,
-0.045745849609375,
-0.0276336669921875,
0.0020236968994140625,
-0.0134429931640625,
0.01212310791015625,
0.0430908203125,
0.0058135986328125,
0.0005474090576171875,
0.03729248046875,
0.01546478271484375,
-0.00817108154296875,
-0.03143310546875,
-0.011627197265625,
-0.01284027099609375,
-0.006366729736328125,
0.01425933837890625,
-0.0273284912109375,
-0.00887298583984375,
-0.007293701171875,
0.0249176025390625,
-0.006168365478515625,
-0.0035953521728515625,
0.0027484893798828125,
-0.0270843505859375,
0.023284912109375,
0.012298583984375,
-0.0235443115234375,
-0.005611419677734375,
0.056304931640625,
-0.005771636962890625,
-0.007633209228515625,
-0.031982421875,
-0.0161590576171875,
0.01087188720703125,
0.019195556640625,
0.01763916015625,
0.07574462890625,
0.0215911865234375,
-0.022369384765625,
-0.01641845703125,
-0.006397247314453125,
-0.0268402099609375,
-0.007266998291015625,
-0.039825439453125,
-0.01331329345703125,
0.0093994140625,
0.072998046875,
-0.01262664794921875,
0.028411865234375,
-0.0219879150390625,
0.0283203125,
0.01201629638671875,
-0.0316162109375,
0.031585693359375,
-0.0250701904296875,
0.048797607421875,
0.06243896484375,
-0.01190185546875,
0.00787353515625,
0.001621246337890625,
0.00009590387344360352,
0.0005269050598144531,
0.00693511962890625,
-0.011199951171875,
-0.0099334716796875,
-0.031829833984375,
0.024322509765625,
0.034912109375,
0.0421142578125,
0.0022430419921875,
-0.05322265625,
-0.0204010009765625,
0.041351318359375,
-0.048248291015625,
-0.01380157470703125,
0.0213775634765625,
-0.032379150390625,
0.039520263671875,
-0.03607177734375,
-0.002979278564453125,
-0.031036376953125,
-0.03155517578125,
0.0230255126953125,
0.060821533203125,
-0.02191162109375,
-0.0716552734375,
-0.0218963623046875,
-0.07159423828125,
-0.013397216796875,
-0.01934814453125,
-0.0095062255859375,
0.01509857177734375,
0.08978271484375,
0.033172607421875,
-0.031097412109375,
0.009368896484375,
0.0234527587890625,
-0.030670166015625,
0.006885528564453125,
0.0154571533203125,
-0.02386474609375,
-0.0130767822265625,
0.00379180908203125,
0.005748748779296875,
0.0264739990234375,
-0.0287628173828125,
-0.00445556640625,
-0.023712158203125,
0.01149749755859375,
0.048126220703125,
-0.025634765625,
-0.00905609130859375,
0.0760498046875,
0.06072998046875,
0.0139923095703125,
-0.005340576171875,
-0.03424072265625,
-0.027618408203125,
0.00823974609375,
0.0160980224609375,
0.0164642333984375,
-0.05889892578125,
0.04327392578125,
-0.0413818359375,
-0.017120361328125,
-0.026641845703125,
-0.049835205078125,
0.034942626953125,
-0.016448974609375,
0.0009107589721679688,
0.03076171875,
0.0457763671875,
-0.024993896484375,
-0.015625,
0.0143585205078125,
-0.023895263671875,
0.0001251697540283203,
-0.03192138671875,
-0.0111846923828125,
-0.05096435546875,
0.052398681640625,
-0.0028820037841796875,
-0.006565093994140625,
-0.03759765625,
-0.027923583984375,
-0.0002624988555908203,
0.09600830078125,
-0.03717041015625,
-0.0169219970703125,
0.0145111083984375,
0.0232696533203125,
-0.025115966796875,
-0.0377197265625,
-0.033355712890625,
-0.0222625732421875,
-0.095458984375,
-0.0223388671875,
-0.0234832763671875,
-0.045257568359375,
0.00662994384765625,
-0.0184326171875,
-0.0653076171875,
-0.06365966796875,
0.022918701171875,
-0.054473876953125,
0.0462646484375,
-0.0452880859375,
0.0616455078125,
-0.09027099609375,
0.017059326171875,
-0.040679931640625,
-0.040252685546875,
-0.0006704330444335938,
0.045623779296875,
0.0005125999450683594,
-0.0379638671875,
0.037567138671875,
-0.029022216796875,
0.0487060546875,
-0.00762939453125,
-0.0017910003662109375,
0.01175689697265625,
0.042205810546875,
-0.0217742919921875,
-0.01070404052734375,
0.0059661865234375,
-0.0340576171875,
-0.0443115234375,
-0.0548095703125,
0.01044464111328125,
-0.014068603515625,
-0.0203704833984375,
-0.00162506103515625,
-0.0367431640625,
0.00466156005859375,
-0.03826904296875,
-0.0242767333984375,
-0.007068634033203125,
-0.006656646728515625,
-0.0019388198852539062,
-0.006626129150390625,
-0.01009368896484375,
-0.027587890625,
0.031005859375,
0.00411224365234375,
0.004314422607421875,
0.008453369140625,
0.0555419921875,
0.01059722900390625,
-0.022369384765625,
-0.044830322265625,
0.004169464111328125,
0.024658203125,
-0.0179443359375,
0.051055908203125,
-0.0072479248046875,
-0.03216552734375,
0.11871337890625,
-0.0159149169921875,
0.045196533203125,
-0.0197296142578125,
0.0687255859375,
0.00308990478515625,
-0.0003287792205810547,
0.0240478515625,
0.029052734375,
-0.0823974609375,
0.047637939453125,
-0.0164947509765625,
0.0036640167236328125,
-0.013580322265625,
0.001644134521484375,
-0.01910400390625,
-0.0081634521484375,
-0.0104522705078125,
-0.04449462890625,
0.0006003379821777344,
0.018829345703125,
0.04803466796875,
0.031402587890625,
-0.0097503662109375,
0.037750244140625,
0.033782958984375,
0.0147857666015625,
0.004093170166015625,
0.040557861328125,
-0.027099609375,
0.046905517578125,
-0.01357269287109375,
-0.00829315185546875,
-0.01348876953125,
0.00836181640625,
-0.0164337158203125,
-0.0182647705078125,
-0.0404052734375,
-0.0148162841796875,
-0.00675201416015625,
-0.01561737060546875,
0.037506103515625,
-0.0357666015625,
0.00405120849609375,
-0.00543212890625,
-0.01277923583984375,
0.0106048583984375,
-0.04583740234375,
0.001850128173828125,
-0.0087738037109375,
0.0128326416015625,
-0.00795745849609375,
-0.00018227100372314453,
0.03326416015625,
0.0474853515625,
0.0001856088638305664,
0.040679931640625,
-0.0290374755859375,
-0.0048675537109375,
-0.024444580078125,
0.0262451171875,
0.027008056640625,
-0.0034160614013671875,
-0.00611114501953125,
-0.001117706298828125,
-0.009552001953125,
-0.04156494140625,
-0.0008854866027832031,
0.01132965087890625,
0.016845703125,
0.0303497314453125,
-0.01434326171875,
0.0284423828125,
0.010101318359375,
-0.0162200927734375,
0.032562255859375,
-0.01222991943359375,
-0.0264739990234375,
-0.028533935546875,
-0.01396942138671875,
0.0234527587890625,
0.00806427001953125,
-0.02630615234375,
0.01006317138671875,
-0.01067352294921875,
0.002132415771484375,
0.0261993408203125,
-0.041656494140625,
0.00812530517578125,
0.019195556640625,
-0.053192138671875,
-0.0228424072265625,
0.01555633544921875,
-0.06341552734375,
-0.0111083984375,
-0.01483154296875,
-0.0419921875,
0.007656097412109375,
-0.03790283203125,
0.05792236328125,
-0.0250091552734375,
-0.026031494140625,
-0.032135009765625,
0.004573822021484375,
0.054656982421875,
0.054779052734375,
-0.0638427734375,
-0.01181793212890625,
-0.0528564453125,
-0.007755279541015625,
-0.001293182373046875,
-0.03363037109375,
-0.037353515625,
-0.0150909423828125,
-0.0008320808410644531,
0.00460052490234375,
0.036712646484375,
0.021759033203125,
-0.031494140625,
0.007747650146484375,
0.0158538818359375,
0.005893707275390625,
-0.023681640625,
-0.01067352294921875,
0.057769775390625,
-0.00772857666015625,
-0.0104217529296875,
-0.0223388671875,
0.0137176513671875,
-0.0159912109375,
-0.01399993896484375,
-0.0694580078125,
0.01461029052734375,
0.0202789306640625,
0.0029735565185546875,
0.010345458984375,
0.00339508056640625,
0.031982421875,
0.0002923011779785156,
0.0212249755859375,
0.00836944580078125,
0.003192901611328125,
-0.02728271484375,
0.06414794921875,
0.0107574462890625,
0.039520263671875,
0.00389862060546875,
-0.010040283203125,
0.007686614990234375,
-0.01245880126953125,
-0.009429931640625,
0.010528564453125,
0.0002282857894897461,
-0.04180908203125,
-0.015869140625,
0.040008544921875,
0.05206298828125,
-0.0203704833984375,
0.01934814453125,
0.0190582275390625,
0.00916290283203125,
0.0024471282958984375,
-0.00148773193359375,
0.0257415771484375,
0.0176849365234375,
0.042999267578125,
-0.0189666748046875,
0.0026569366455078125,
0.021942138671875,
-0.02813720703125,
-0.0248565673828125,
0.0214996337890625,
0.0233306884765625,
-0.07122802734375,
0.039215087890625,
0.030548095703125,
0.037078857421875,
-0.00817108154296875,
0.0199737548828125,
-0.03546142578125,
-0.04229736328125,
-0.002887725830078125,
-0.048797607421875,
-0.0288543701171875,
-0.0250701904296875,
0.01219940185546875,
0.0081634521484375,
0.01009368896484375,
0.0239715576171875,
0.0101318359375,
-0.0355224609375,
0.0015287399291992188,
0.0173797607421875,
0.01194000244140625,
0.00782012939453125,
-0.01324462890625,
0.0225372314453125,
-0.047607421875,
-0.054290771484375,
0.0161285400390625,
-0.003902435302734375,
-0.0222015380859375,
-0.01123809814453125,
-0.027252197265625,
0.004901885986328125,
0.0187835693359375,
-0.004581451416015625,
-0.02484130859375,
0.01467132568359375,
-0.0931396484375,
-0.01268768310546875,
-0.00896453857421875,
0.013336181640625,
0.036285400390625,
-0.044647216796875,
0.02093505859375,
-0.0147705078125,
0.02239990234375,
-0.017669677734375,
-0.048248291015625,
0.0594482421875,
-0.02947998046875,
-0.0096588134765625,
-0.00803375244140625,
0.01123046875,
0.01496124267578125,
-0.009552001953125,
0.00010114908218383789,
-0.01251983642578125,
0.042877197265625,
0.0014715194702148438,
0.056243896484375,
0.025115966796875,
0.01058197021484375,
-0.061309814453125,
0.006000518798828125,
0.01013946533203125,
0.040283203125,
0.01039886474609375,
-0.0277252197265625,
0.00313568115234375,
-0.0296478271484375,
-0.033721923828125,
0.0389404296875,
0.047149658203125,
0.01300811767578125,
-0.045623779296875,
-0.035369873046875,
0.004467010498046875,
0.05230712890625,
0.0215606689453125,
0.0016326904296875,
-0.0019311904907226562,
0.01099395751953125,
0.045196533203125,
0.0308074951171875,
-0.0033702850341796875,
0.003833770751953125,
0.0273284912109375,
0.015350341796875,
0.08270263671875,
0.0294647216796875,
0.047576904296875,
0.0316162109375,
-0.01149749755859375,
0.03729248046875,
0.0217437744140625,
0.05352783203125,
-0.00039577484130859375,
0.0033817291259765625,
-0.001811981201171875,
-0.01287078857421875,
0.006114959716796875,
-0.01461029052734375,
0.035614013671875,
0.0362548828125,
0.0665283203125,
-0.01629638671875,
0.05572509765625,
-0.0260772705078125,
0.069580078125,
0.007633209228515625,
0.007129669189453125,
0.02691650390625,
0.0143890380859375,
0.01078033447265625,
-0.049072265625,
0.004863739013671875,
-0.004108428955078125,
-0.0276336669921875,
0.02996826171875,
0.01544189453125,
0.0299072265625,
-0.038818359375,
-0.046112060546875,
0.0869140625,
0.0679931640625,
-0.023345947265625,
-0.09283447265625,
0.007808685302734375,
0.023162841796875,
0.03338623046875,
0.045928955078125,
0.04705810546875,
0.0179901123046875,
0.106201171875,
-0.040191650390625,
-0.00873565673828125,
0.036041259765625,
0.01267242431640625,
0.006866455078125,
-0.017364501953125,
-0.00726318359375,
-0.034637451171875,
-0.05126953125,
0.0294952392578125,
-0.01036834716796875,
0.0516357421875,
0.0200653076171875,
0.04150390625,
-0.03765869140625,
-0.034515380859375,
-0.0027217864990234375,
0.040191650390625,
-0.01169586181640625,
0.0086212158203125,
0.004993438720703125,
0.0107269287109375,
-0.037200927734375,
-0.00457763671875,
0.052764892578125,
-0.01165008544921875,
0.055999755859375,
0.06585693359375,
-0.0229339599609375,
-0.0017442703247070312,
0.03155517578125,
0.01422882080078125,
-0.0465087890625,
-0.039398193359375,
0.0301361083984375,
0.05224609375,
0.027587890625,
0.019775390625,
0.0088043212890625,
0.06195068359375,
-0.0123443603515625,
0.031646728515625,
-0.0017185211181640625,
-0.02264404296875,
0.00562286376953125,
-0.0401611328125,
0.0621337890625,
0.002376556396484375,
-0.0616455078125,
-0.002960205078125,
-0.0323486328125,
-0.032989501953125,
0.003925323486328125,
0.0335693359375,
-0.0074005126953125,
0.01045989990234375,
-0.0278167724609375,
-0.035064697265625,
-0.0101165771484375,
0.0263214111328125,
-0.0030670166015625,
-0.02801513671875,
-0.0035572052001953125,
-0.04534912109375,
-0.0262603759765625,
-0.022125244140625,
0.0198516845703125,
0.0300140380859375,
0.0299835205078125,
-0.0272216796875,
0.037872314453125,
0.007015228271484375,
-0.032257080078125,
0.0430908203125,
-0.06427001953125,
-0.0430908203125,
0.0100250244140625,
-0.0212860107421875,
0.004146575927734375,
0.0096588134765625,
-0.0015764236450195312,
0.00545501708984375,
0.050323486328125,
-0.0599365234375,
-0.0200958251953125,
0.0173492431640625,
0.014862060546875,
-0.0177001953125,
0.047882080078125,
-0.0087738037109375,
-0.021331787109375,
-0.052215576171875,
-0.0322265625,
0.049530029296875,
0.0882568359375,
0.0297393798828125,
-0.0167999267578125,
-0.0216522216796875,
-0.022552490234375,
-0.00435638427734375,
0.01165771484375,
-0.01409149169921875,
0.0265350341796875,
-0.018798828125,
0.002017974853515625,
0.0015192031860351562,
-0.00403594970703125,
0.01332855224609375,
0.0156707763671875,
-0.0022602081298828125,
0.016021728515625,
0.035552978515625,
0.0261688232421875,
0.054779052734375,
0.047515869140625,
-0.040740966796875,
0.0289154052734375,
0.038482666015625,
0.00981903076171875,
0.019256591796875,
-0.0136871337890625,
-0.0257110595703125,
-0.040374755859375,
-0.0301055908203125,
-0.0202789306640625,
-0.0261688232421875,
-0.0799560546875,
-0.018524169921875,
0.0084381103515625,
0.0160675048828125,
-0.01861572265625,
-0.0036830902099609375,
0.00775909423828125,
-0.0384521484375,
0.0204925537109375,
-0.032257080078125,
-0.033203125,
0.03826904296875,
0.06793212890625,
-0.0426025390625,
0.0192413330078125,
0.01806640625,
-0.0472412109375,
0.0032100677490234375,
-0.0196533203125,
-0.0242156982421875,
0.00751495361328125,
-0.0126190185546875,
0.021484375,
-0.005344390869140625,
0.046295166015625,
0.0012531280517578125,
-0.00023162364959716797,
-0.028167724609375,
0.03741455078125,
-0.055206298828125,
-0.03436279296875,
0.051239013671875,
-0.024658203125,
-0.04351806640625,
-0.004520416259765625,
-0.0032978057861328125,
0.0250244140625,
-0.035888671875,
-0.05828857421875,
0.046417236328125,
-0.00995635986328125,
-0.030731201171875,
0.0028362274169921875,
0.00788116455078125,
0.0022640228271484375,
-0.01409912109375,
-0.000888824462890625,
0.007598876953125,
-0.01390838623046875,
0.0004773139953613281,
0.032379150390625,
-0.0188446044921875,
0.0362548828125,
0.0086669921875,
-0.1168212890625,
-0.01117706298828125,
-0.033050537109375,
0.01953125,
-0.033111572265625,
0.0253753662109375,
0.0128021240234375,
0.03564453125,
-0.0058441162109375,
-0.01311492919921875,
0.0154571533203125,
-0.034912109375,
0.055938720703125,
-0.0268402099609375,
-0.079833984375,
-0.040130615234375,
0.017852783203125,
0.0228118896484375,
0.0272674560546875,
-0.01165771484375,
-0.06719970703125,
-0.0278778076171875,
-0.0035648345947265625,
-0.031524658203125,
0.03265380859375,
-0.0963134765625,
-0.0092315673828125,
0.01325225830078125,
-0.01445770263671875,
0.01435089111328125,
0.0029735565185546875,
-0.03460693359375,
-0.0164947509765625,
-0.0260009765625,
-0.038604736328125,
-0.03729248046875,
-0.01291656494140625,
-0.044219970703125,
-0.00047707557678222656,
-0.044342041015625,
-0.0172576904296875,
0.01291656494140625,
-0.06512451171875,
-0.006465911865234375,
-0.0234527587890625,
-0.0303497314453125,
0.0166473388671875,
0.022186279296875,
-0.000835418701171875,
-0.0210723876953125,
0.019683837890625,
0.005214691162109375,
-0.00501251220703125,
0.004360198974609375,
-0.00409698486328125,
-0.0022296905517578125,
-0.005313873291015625,
0.013519287109375,
0.0196990966796875,
0.00977325439453125,
-0.044647216796875,
0.04437255859375,
-0.01751708984375,
0.020263671875,
0.0024585723876953125,
0.01959228515625,
0.052276611328125,
-0.0158843994140625,
-0.0044097900390625,
0.00922393798828125,
-0.01230621337890625,
-0.0213470458984375,
0.006160736083984375,
0.0037784576416015625,
0.0016994476318359375,
0.008209228515625
] |
a91e0ac989ca1fca75800de39ce3c941fd9203c5
|
Wordpress Stackexchange
Q: How to get page's ID if I know the title only? Is there an exact opposite funciton to this one:
get_the_title(ID)
I know there's:
get_the_id()
But it doesn't seem to accept any arguments.
So, basically, I'm looking for something like:
$title = 'Something';
get_the_id($title);
I already know this solution:
global $wpdb;
$post_name = get_query_var('name');
$post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = $post_name");
But maybe there's something bulit-in that I'm missing?
A: I'm not sure how to get it via the title, but you can get it via the slug (which is often more useful in my experience) using this:
http://erikt.tumblr.com/post/278953342/get-a-wordpress-page-id-with-the-slug
Just change "$page" to "$post" if you want to return slugs for posts instead of pages.
G'luck!
|
Q: How to get page's ID if I know the title only? Is there an exact opposite funciton to this one:
get_the_title(ID)
I know there's:
get_the_id()
But it doesn't seem to accept any arguments.
So, basically, I'm looking for something like:
$title = 'Something';
get_the_id($title);
I already know this solution:
global $wpdb;
$post_name = get_query_var('name');
$post_id = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = $post_name");
But maybe there's something bulit-in that I'm missing?
A: I'm not sure how to get it via the title, but you can get it via the slug (which is often more useful in my experience) using this:
http://erikt.tumblr.com/post/278953342/get-a-wordpress-page-id-with-the-slug
Just change "$page" to "$post" if you want to return slugs for posts instead of pages.
G'luck!
A: get_page_by_title( $title, [$output = 'object'], [$post_type = 'page'] ) exists for this very purpose. I'm using it in one of my projects now to display all attachments for a particular page in my sidebar:
if ( $oPage = get_page_by_title('Proudly Supporting...') ) {
$children = get_posts(array(
'post_type' => 'attachment',
'post_mime_type' => 'image',
'numberposts' => 3,
'post_status' => null,
'post_parent' => $oPage->ID, /* Using the Page ID */
'orderby' => 'rand',
));
if ( $children ) {
/* Do something with the children */
}
}
A: I had the same problem. I used the next code:
$my_title = 'My title';
global $wpdb;
$mypost = $wpdb->get_row( "SELECT * FROM wp_posts WHERE post_title = '" . $my_title . "' " );
echo $mypost->ID;
A: There are a built in function to do it.
Use:
get_page_by_title();
See the referrence here http://codex.wordpress.org/Function_Reference/get_page_by_title
|
wordpress
|
{
"language": "en",
"length": 258,
"provenance": "stackexchange_00019.jsonl.gz:411755",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24377"
}
|
[
-0.00403594970703125,
-0.00888824462890625,
0.013916015625,
0.03033447265625,
-0.0196075439453125,
-0.0185699462890625,
0.04058837890625,
-0.0307769775390625,
0.017486572265625,
0.007415771484375,
-0.05535888671875,
0.017333984375,
-0.035797119140625,
-0.00872039794921875,
0.002635955810546875,
-0.04278564453125,
0.04583740234375,
-0.0362548828125,
0.03546142578125,
-0.0011548995971679688,
0.006893157958984375,
0.019317626953125,
0.058380126953125,
0.03350830078125,
0.0577392578125,
-0.08905029296875,
0.033935546875,
0.00311279296875,
0.033477783203125,
-0.02008056640625,
0.038848876953125,
0.0035247802734375,
0.0138702392578125,
-0.038665771484375,
0.055023193359375,
0.004459381103515625,
0.02044677734375,
-0.019500732421875,
0.039825439453125,
-0.00875091552734375,
0.0248260498046875,
0.0144195556640625,
-0.0081024169921875,
0.021697998046875,
-0.03125,
-0.03857421875,
0.02618408203125,
-0.01300048828125,
0.00807952880859375,
0.0089874267578125,
-0.0022029876708984375,
0.018890380859375,
-0.005523681640625,
0.034912109375,
0.004486083984375,
0.00003975629806518555,
0.039764404296875,
-0.04193115234375,
0.041351318359375,
-0.07012939453125,
-0.049346923828125,
-0.0310211181640625,
0.055877685546875,
0.00392913818359375,
-0.0017910003662109375,
0.0233612060546875,
0.0294952392578125,
-0.0025310516357421875,
0.0182037353515625,
0.00012159347534179688,
-0.00791168212890625,
-0.011627197265625,
-0.00496673583984375,
-0.01038360595703125,
-0.038787841796875,
-0.026123046875,
0.013824462890625,
-0.0521240234375,
0.003261566162109375,
0.00829315185546875,
-0.0149688720703125,
-0.062255859375,
-0.085693359375,
0.03167724609375,
0.01300811767578125,
0.064453125,
-0.0157318115234375,
-0.0211181640625,
-0.03155517578125,
-0.0262603759765625,
-0.0254669189453125,
0.0123443603515625,
-0.016143798828125,
-0.0157470703125,
-0.042816162109375,
-0.006008148193359375,
0.0163421630859375,
0.0711669921875,
-0.0213623046875,
0.015289306640625,
-0.019775390625,
-0.017181396484375,
0.014434814453125,
-0.040771484375,
0.01432037353515625,
0.0096282958984375,
0.01462554931640625,
-0.01139068603515625,
0.0186614990234375,
0.0019779205322265625,
-0.0149383544921875,
0.0200653076171875,
0.007568359375,
0.003108978271484375,
-0.024932861328125,
0.025726318359375,
-0.0200042724609375,
-0.01470947265625,
-0.01318359375,
0.00957489013671875,
0.0017461776733398438,
0.0029010772705078125,
0.005519866943359375,
0.023193359375,
0.00753021240234375,
0.01084136962890625,
-0.0224151611328125,
-0.024444580078125,
0.003482818603515625,
-0.0230712890625,
-0.025421142578125,
0.0234222412109375,
0.08123779296875,
0.034759521484375,
0.01143646240234375,
-0.0105438232421875,
-0.056427001953125,
-0.012908935546875,
0.0045013427734375,
-0.0283050537109375,
-0.0063934326171875,
0.0012235641479492188,
0.044097900390625,
-0.01114654541015625,
-0.0271148681640625,
-0.0016660690307617188,
-0.003932952880859375,
0.0333251953125,
0.004306793212890625,
-0.038787841796875,
0.01534271240234375,
-0.014312744140625,
-0.00873565673828125,
0.03460693359375,
0.01568603515625,
-0.0028743743896484375,
0.0018968582153320312,
-0.0250244140625,
0.035980224609375,
-0.02020263671875,
0.044769287109375,
0.000560760498046875,
-0.0189361572265625,
0.01317596435546875,
-0.013824462890625,
-0.01409912109375,
-0.0213165283203125,
-0.00876617431640625,
0.005649566650390625,
0.048736572265625,
0.0213165283203125,
-0.01189422607421875,
-0.0264739990234375,
-0.0009975433349609375,
-0.0201873779296875,
-0.0086212158203125,
-0.016448974609375,
-0.010650634765625,
0.01306915283203125,
0.006134033203125,
-0.01274871826171875,
-0.0272216796875,
-0.00966644287109375,
0.00884246826171875,
-0.04241943359375,
0.048980712890625,
0.01052093505859375,
0.053131103515625,
0.004962921142578125,
0.01395416259765625,
0.0086822509765625,
0.03546142578125,
-0.0643310546875,
0.0204925537109375,
-0.004390716552734375,
-0.0066375732421875,
-0.0001837015151977539,
0.0066070556640625,
-0.0115509033203125,
-0.00804901123046875,
0.0178985595703125,
-0.0145263671875,
0.020477294921875,
0.0229339599609375,
0.0031890869140625,
-0.0186920166015625,
0.006107330322265625,
0.012725830078125,
0.006130218505859375,
0.0055694580078125,
0.01617431640625,
-0.01258087158203125,
-0.0230560302734375,
-0.020233154296875,
-0.05950927734375,
-0.02001953125,
-0.0219573974609375,
-0.06719970703125,
-0.0399169921875,
-0.02423095703125,
-0.04852294921875,
0.0202789306640625,
-0.07122802734375,
0.0295867919921875,
0.086669921875,
-0.0024623870849609375,
-0.004749298095703125,
-0.0286407470703125,
0.085205078125,
0.004932403564453125,
-0.039337158203125,
0.0115966796875,
0.02008056640625,
0.054412841796875,
-0.0152740478515625,
-0.01555633544921875,
-0.0187225341796875,
-0.045013427734375,
0.0202484130859375,
0.041748046875,
0.031707763671875,
0.0111236572265625,
-0.0101165771484375,
-0.015960693359375,
-0.00106048583984375,
-0.06146240234375,
0.003910064697265625,
-0.024322509765625,
0.01580810546875,
0.05938720703125,
0.0303497314453125,
0.029510498046875,
0.01194000244140625,
0.01299285888671875,
-0.0032978057861328125,
0.038604736328125,
-0.024688720703125,
0.0299072265625,
-0.00914764404296875,
-0.0201416015625,
-0.0104217529296875,
-0.0281219482421875,
0.0204925537109375,
-0.032135009765625,
-0.002971649169921875,
0.021575927734375,
0.0160064697265625,
0.0296630859375,
-0.004924774169921875,
-0.018524169921875,
-0.0007328987121582031,
0.00884246826171875,
0.004608154296875,
0.04046630859375,
0.020660400390625,
-0.0209197998046875,
-0.024658203125,
-0.0137939453125,
0.0019664764404296875,
0.0022373199462890625,
-0.00939178466796875,
0.019378662109375,
0.003711700439453125,
-0.01555633544921875,
0.007770538330078125,
-0.05902099609375,
0.0024356842041015625,
-0.000018358230590820312,
0.01018524169921875,
-0.0019702911376953125,
-0.0005941390991210938,
0.06402587890625,
-0.031707763671875,
0.06573486328125,
0.008697509765625,
0.005889892578125,
0.076416015625,
-0.036407470703125,
0.032501220703125,
-0.0222320556640625,
0.05975341796875,
0.0587158203125,
-0.0255279541015625,
0.0166473388671875,
0.005535125732421875,
-0.033538818359375,
0.01519775390625,
-0.01174163818359375,
-0.0010967254638671875,
0.0212249755859375,
-0.07940673828125,
0.0440673828125,
0.01195526123046875,
0.08599853515625,
-0.0229339599609375,
-0.06256103515625,
0.00395965576171875,
0.0197906494140625,
-0.10955810546875,
-0.127197265625,
0.033721923828125,
-0.06109619140625,
-0.013824462890625,
-0.01739501953125,
-0.03472900390625,
0.0062408447265625,
0.0196685791015625,
-0.01312255859375,
0.0206756591796875,
-0.0201568603515625,
-0.08538818359375,
-0.046630859375,
-0.09149169921875,
-0.0216522216796875,
-0.02496337890625,
0.032623291015625,
0.004993438720703125,
-0.0176849365234375,
0.00849151611328125,
-0.0238037109375,
0.03912353515625,
0.07025146484375,
-0.0017843246459960938,
-0.0179443359375,
-0.01091766357421875,
-0.0230255126953125,
-0.00894927978515625,
0.01328277587890625,
-0.03472900390625,
-0.005657196044921875,
0.043243408203125,
-0.0172119140625,
-0.0246124267578125,
0.0322265625,
0.01241302490234375,
0.04327392578125,
0.035980224609375,
0.056976318359375,
0.043212890625,
-0.0075531005859375,
-0.038299560546875,
-0.04791259765625,
-0.0697021484375,
0.04510498046875,
0.048248291015625,
0.017669677734375,
-0.0262451171875,
0.0285797119140625,
0.023193359375,
0.004894256591796875,
-0.006671905517578125,
0.00632476806640625,
0.036895751953125,
0.0015001296997070312,
0.0225830078125,
-0.0006356239318847656,
0.0217132568359375,
-0.00363922119140625,
-0.01019287109375,
-0.0006690025329589844,
0.0280914306640625,
0.006580352783203125,
-0.0031299591064453125,
-0.027374267578125,
-0.018463134765625,
0.03912353515625,
0.005462646484375,
0.034210205078125,
-0.008514404296875,
-0.04071044921875,
0.00971221923828125,
0.09088134765625,
-0.023895263671875,
-0.02825927734375,
-0.012542724609375,
0.0281524658203125,
-0.012664794921875,
-0.0693359375,
-0.003932952880859375,
-0.0190277099609375,
-0.044464111328125,
0.00853729248046875,
-0.0221710205078125,
-0.005359649658203125,
-0.0022125244140625,
0.0673828125,
0.013580322265625,
-0.019744873046875,
0.0274200439453125,
-0.0113983154296875,
-0.011993408203125,
0.057220458984375,
-0.02191162109375,
0.04913330078125,
-0.048583984375,
0.004852294921875,
-0.0418701171875,
-0.01544952392578125,
0.050750732421875,
0.0117950439453125,
-0.03887939453125,
0.01444244384765625,
-0.00769805908203125,
0.0303497314453125,
-0.00893402099609375,
0.024017333984375,
0.001308441162109375,
0.0146636962890625,
-0.01617431640625,
0.000743865966796875,
0.0040435791015625,
-0.039398193359375,
0.00798797607421875,
-0.0125885009765625,
-0.02886962890625,
0.01079559326171875,
-0.040191650390625,
0.0168609619140625,
-0.032867431640625,
-0.02105712890625,
-0.04010009765625,
-0.032562255859375,
0.0294647216796875,
0.014617919921875,
0.00466156005859375,
0.018707275390625,
-0.039520263671875,
-0.047210693359375,
0.067626953125,
0.054229736328125,
-0.008209228515625,
-0.021240234375,
0.049591064453125,
0.01541900634765625,
-0.07940673828125,
-0.0105743408203125,
-0.0191802978515625,
0.0413818359375,
-0.035858154296875,
0.038848876953125,
0.016387939453125,
-0.0467529296875,
0.08575439453125,
-0.0003209114074707031,
-0.0279388427734375,
0.006053924560546875,
0.048797607421875,
-0.023345947265625,
-0.037933349609375,
0.0198211669921875,
-0.07440185546875,
0.022216796875,
0.04547119140625,
-0.029541015625,
-0.007579803466796875,
-0.0016908645629882812,
0.035675048828125,
-0.04046630859375,
0.0516357421875,
-0.022918701171875,
-0.0229644775390625,
0.00196075439453125,
0.010009765625,
-0.0015392303466796875,
0.0089874267578125,
0.00931549072265625,
0.0016040802001953125,
0.0042572021484375,
0.00208282470703125,
0.011993408203125,
0.0307159423828125,
0.00421905517578125,
0.0298309326171875,
0.00908660888671875,
-0.0058746337890625,
-0.02264404296875,
-0.01195526123046875,
0.045379638671875,
0.005947113037109375,
-0.0294342041015625,
0.0249481201171875,
-0.02825927734375,
0.01502227783203125,
0.01326751708984375,
0.027496337890625,
0.0150146484375,
0.0322265625,
-0.0029850006103515625,
0.007415771484375,
0.01064300537109375,
0.027496337890625,
-0.018890380859375,
0.0014019012451171875,
0.01312255859375,
-0.00933074951171875,
0.0018167495727539062,
0.07220458984375,
-0.0129852294921875,
0.04119873046875,
-0.0221405029296875,
0.0482177734375,
0.01708984375,
0.06524658203125,
-0.016815185546875,
-0.0257110595703125,
0.01018524169921875,
0.0401611328125,
-0.004459381103515625,
-0.022003173828125,
0.0149688720703125,
0.043182373046875,
0.0260162353515625,
0.00415802001953125,
-0.0292205810546875,
0.006000518798828125,
-0.033203125,
-0.006244659423828125,
0.032379150390625,
0.01122283935546875,
-0.0292510986328125,
-0.034637451171875,
-0.00001531839370727539,
0.0222930908203125,
0.01324462890625,
0.0140533447265625,
0.0084686279296875,
0.015106201171875,
0.0066375732421875,
0.0010519027709960938,
-0.02764892578125,
-0.0035839080810546875,
0.01568603515625,
0.0155181884765625,
-0.0272979736328125,
0.0010738372802734375,
0.00704193115234375,
0.0128631591796875,
-0.0284271240234375,
-0.00592041015625,
0.037017822265625,
0.0033893585205078125,
0.0987548828125,
-0.051788330078125,
-0.0443115234375,
0.0077056884765625,
-0.01200103759765625,
0.051544189453125,
0.03118896484375,
0.00931549072265625,
0.01255035400390625,
-0.04388427734375,
-0.002964019775390625,
0.01338958740234375,
-0.046722412109375,
-0.019744873046875,
-0.056793212890625,
-0.0232696533203125,
0.0226593017578125,
-0.0048980712890625,
0.033935546875,
-0.0217742919921875,
0.0225677490234375,
-0.0101776123046875,
0.045654296875,
-0.00719451904296875,
0.038818359375,
0.029296875,
0.0193939208984375,
0.022308349609375,
0.00751495361328125,
-0.0250396728515625,
-0.0205841064453125,
0.0035800933837890625,
-0.0204620361328125,
-0.016326904296875,
-0.01013946533203125,
0.0242462158203125,
-0.006114959716796875,
0.00803375244140625,
0.0033969879150390625,
0.01226806640625,
-0.0192108154296875,
0.00258636474609375,
-0.0130462646484375,
0.0001723766326904297,
-0.01861572265625,
-0.0560302734375,
0.056060791015625,
-0.045440673828125,
-0.030364990234375,
0.0057830810546875,
0.04498291015625,
-0.0189971923828125,
-0.0408935546875,
-0.0221405029296875,
0.0372314453125,
-0.016510009765625,
0.040771484375,
0.07574462890625,
0.0156097412109375,
0.03717041015625,
0.0038204193115234375,
0.00879669189453125,
-0.0022735595703125,
0.026123046875,
-0.020172119140625,
-0.030792236328125,
0.061798095703125,
0.0265960693359375,
-0.0134429931640625,
0.0615234375,
-0.028839111328125,
0.01519775390625,
0.006488800048828125,
0.049560546875,
-0.018890380859375,
0.01383209228515625,
0.0225830078125,
-0.01557159423828125,
-0.01232147216796875,
-0.01261138916015625,
-0.01483154296875,
-0.041473388671875,
0.042144775390625,
-0.01318359375,
-0.0178375244140625,
0.01291656494140625,
-0.00021755695343017578,
-0.0030841827392578125,
-0.04150390625,
0.055419921875,
0.005794525146484375,
-0.01342010498046875,
-0.00725555419921875,
0.0021343231201171875,
-0.001987457275390625,
-0.04876708984375,
-0.020660400390625,
0.0285186767578125,
-0.0168609619140625,
-0.054443359375,
0.05303955078125,
-0.0099029541015625,
0.03558349609375,
0.03936767578125,
0.049530029296875,
-0.0005726814270019531,
0.04510498046875,
0.01264190673828125,
-0.004489898681640625,
0.020416259765625,
-0.034423828125,
-0.0142364501953125,
-0.0006136894226074219,
-0.00786590576171875,
0.022613525390625,
-0.0188140869140625,
0.011322021484375,
-0.0294952392578125,
0.006500244140625,
-0.00334930419921875,
-0.03668212890625,
0.06109619140625,
-0.019287109375,
-0.0284423828125,
0.0069732666015625,
0.0024929046630859375,
0.00502777099609375,
-0.0103759765625,
0.021240234375,
-0.01084136962890625,
0.0386962890625,
-0.0030422210693359375,
0.0246734619140625,
-0.0121002197265625,
-0.0095367431640625,
-0.067626953125,
0.08319091796875,
0.032623291015625,
0.01092529296875,
-0.00392913818359375,
0.0277099609375,
-0.040802001953125,
0.0006947517395019531,
-0.049835205078125,
0.0745849609375,
-0.0245208740234375,
0.054046630859375,
-0.0458984375,
-0.00556182861328125,
0.02374267578125,
0.01153564453125,
0.0950927734375,
0.0175018310546875,
-0.03375244140625,
-0.0248565673828125,
0.045196533203125,
0.061248779296875,
-0.0012388229370117188,
0.036285400390625,
0.0169677734375,
0.0301055908203125,
0.054107666015625,
-0.049346923828125,
0.02001953125,
-0.0219268798828125,
0.025238037109375,
0.033416748046875,
0.0197601318359375,
0.01230621337890625,
0.043365478515625,
-0.0155181884765625,
-0.04046630859375,
0.0130767822265625,
0.0278167724609375,
-0.03619384765625,
0.02276611328125,
0.040985107421875,
0.06195068359375,
-0.0478515625,
-0.0252227783203125,
-0.03424072265625,
0.061553955078125,
0.0142974853515625,
0.0088348388671875,
0.0185089111328125,
0.0149688720703125,
0.0308990478515625,
-0.01544189453125,
-0.005359649658203125,
-0.0017185211181640625,
-0.0005574226379394531,
0.07525634765625,
0.022216796875,
0.01279449462890625,
-0.07696533203125,
0.000027298927307128906,
0.0633544921875,
0.09674072265625,
-0.06439208984375,
0.002109527587890625,
0.020904541015625,
-0.01068878173828125,
-0.0011777877807617188,
-0.027252197265625,
0.01297760009765625,
0.04388427734375,
0.026031494140625,
-0.01239776611328125,
0.01285552978515625,
0.046661376953125,
0.01032257080078125,
0.003467559814453125,
-0.005252838134765625,
-0.04681396484375,
0.021026611328125,
-0.046539306640625,
0.024383544921875,
0.033477783203125,
0.054718017578125,
-0.0014362335205078125,
0.0704345703125,
-0.031646728515625,
-0.0182342529296875,
0.0284881591796875,
0.019012451171875,
-0.00434112548828125,
-0.02301025390625,
-0.00673675537109375,
-0.052001953125,
-0.0032978057861328125,
0.00930023193359375,
0.05609130859375,
0.0002510547637939453,
0.045135498046875,
0.008697509765625,
-0.0212860107421875,
0.0113983154296875,
-0.01093292236328125,
-0.017303466796875,
0.0262298583984375,
-0.01267242431640625,
0.016632080078125,
-0.0007686614990234375,
-0.018096923828125,
-0.031036376953125,
0.0308990478515625,
0.0161285400390625,
-0.01354217529296875,
0.042572021484375,
0.0018100738525390625,
-0.00775146484375,
0.030364990234375,
0.022735595703125,
0.0236053466796875,
0.00872039794921875,
-0.10003662109375,
-0.007221221923828125,
-0.02374267578125,
-0.050933837890625,
0.00959014892578125,
0.035797119140625,
-0.018707275390625,
0.00719451904296875,
-0.0126953125,
0.0250701904296875,
-0.00241851806640625,
-0.0190582275390625,
0.00746917724609375,
0.0296478271484375,
0.031585693359375,
0.0235748291015625,
-0.040283203125,
-0.0181884765625,
-0.006191253662109375,
0.009765625,
0.020843505859375,
0.00555419921875,
0.01824951171875,
0.025634765625,
-0.042510986328125,
0.0711669921875,
-0.0859375,
-0.0394287109375,
0.044647216796875,
0.0076751708984375,
0.02056884765625,
-0.004955291748046875,
-0.0572509765625,
0.052520751953125,
0.0099334716796875,
0.032806396484375,
0.036865234375,
-0.0223541259765625,
0.01934814453125,
0.00981903076171875,
0.001750946044921875,
-0.005523681640625,
0.0190582275390625,
0.0017786026000976562,
-0.0230712890625,
0.06005859375,
0.057098388671875,
0.00040030479431152344,
0.00494384765625,
-0.03857421875,
-0.038787841796875,
0.007656097412109375,
-0.0212860107421875,
-0.0099945068359375,
0.028045654296875,
-0.0218353271484375,
-0.03582763671875,
0.01129150390625,
0.0006976127624511719,
0.0109710693359375,
0.023651123046875,
0.0164642333984375,
0.0175018310546875,
-0.00121307373046875,
-0.031829833984375,
-0.03570556640625,
0.0287933349609375,
-0.005535125732421875,
0.01445770263671875,
-0.0307159423828125,
0.01052093505859375,
-0.03387451171875,
-0.0645751953125,
-0.03118896484375,
-0.05377197265625,
-0.00293731689453125,
0.0301361083984375,
-0.018585205078125,
0.0107574462890625,
-0.0226593017578125,
-0.0158538818359375,
-0.0160369873046875,
-0.01910400390625,
0.005832672119140625,
0.022430419921875,
-0.0290374755859375,
-0.01708984375,
-0.042205810546875,
0.034393310546875,
0.0015735626220703125,
0.0135650634765625,
-0.065673828125,
0.00931549072265625,
-0.03179931640625,
-0.0190277099609375,
-0.0145721435546875,
0.03204345703125,
0.05340576171875,
-0.037384033203125,
-0.035552978515625,
0.0254364013671875,
0.0272369384765625,
0.072021484375,
-0.0007185935974121094,
-0.0211639404296875,
0.01325225830078125,
0.01074981689453125,
-0.01555633544921875,
-0.03973388671875,
0.0257110595703125,
-0.048614501953125,
-0.009552001953125,
-0.004425048828125,
-0.0091094970703125,
-0.00366973876953125,
-0.0293731689453125,
-0.006717681884765625,
0.06280517578125,
0.0076141357421875,
-0.02008056640625,
-0.0127410888671875,
0.018402099609375,
0.007244110107421875,
-0.0177459716796875,
-0.00032210350036621094,
-0.0238189697265625,
-0.013580322265625,
-0.0030345916748046875,
0.02313232421875,
0.01152801513671875,
0.0147857666015625,
0.04266357421875,
-0.06549072265625,
0.02545166015625,
-0.0100555419921875,
-0.002353668212890625,
0.01424407958984375,
-0.0106048583984375,
-0.0015115737915039062,
0.01201629638671875,
-0.07635498046875,
-0.0198974609375,
-0.041015625,
0.046661376953125,
-0.02001953125,
0.002811431884765625,
-0.024688720703125,
0.004558563232421875,
0.042205810546875,
0.09228515625,
0.0152740478515625,
-0.041839599609375,
-0.0024089813232421875,
0.0181884765625,
-0.0556640625,
0.004085540771484375,
0.04547119140625,
-0.054779052734375,
-0.007183074951171875,
0.0040740966796875,
-0.0301513671875,
-0.01406097412109375,
-0.004940032958984375,
-0.044769287109375,
-0.0143890380859375,
-0.052032470703125,
-0.016571044921875,
-0.01554107666015625,
-0.021514892578125,
0.052734375,
-0.03997802734375,
-0.006786346435546875,
-0.0103759765625,
0.03759765625,
0.01517486572265625,
-0.047607421875,
0.005466461181640625,
0.03277587890625,
-0.02325439453125,
0.01519775390625,
0.01141357421875,
0.0115203857421875,
-0.0271453857421875,
-0.00335693359375,
-0.020050048828125,
0.04241943359375,
0.017364501953125,
0.051116943359375,
-0.004848480224609375,
0.01351165771484375,
0.01198577880859375,
0.01461029052734375,
0.00946044921875,
0.030059814453125,
0.004852294921875,
0.054840087890625,
-0.0005970001220703125,
-0.0306854248046875,
0.0114288330078125,
-0.05352783203125,
-0.003353118896484375,
-0.00237274169921875,
0.019622802734375,
-0.042144775390625,
0.0208282470703125,
-0.0144805908203125,
0.010467529296875,
0.019744873046875
] |
9d08b1c735ef093165908ca0fb1c2fbcbd45c30b
|
Wordpress Stackexchange
Q: wp_insert_post not returning post ID? I've had a read of the existing posts on here and still can't see why my instance is doing this, but I'm using wp_insert_post to add a post with some data it's given, and it's inserting the post just fine but the function is returning 0 in place of the post ID - does it have to be triggered to use this?
$ember_prepare_post = array(
'post_author' => $ember_current_user_id,
'post_category' => $ember_post_category,
'post_content' => $ember_post_content,
'post_title' => $ember_post_title,
'post_status' => 'publish',
'post_excerpt' => $ember_post_excerpt,
'tags_input' => $ember_post_tags
);
// now we've prepared an array with the data, we're going to save it into the WP database and obtain the resulting post ID.
$ember_newpost_id = wp_insert_post($ember_prepare_post, true);
I'm not seeing any errors, and have had a read of the wp_insert_post function itself and cannot see why it wouldn't work. The ID's of the posts it creates definitely aren't zero, either.
Thanks!
|
Q: wp_insert_post not returning post ID? I've had a read of the existing posts on here and still can't see why my instance is doing this, but I'm using wp_insert_post to add a post with some data it's given, and it's inserting the post just fine but the function is returning 0 in place of the post ID - does it have to be triggered to use this?
$ember_prepare_post = array(
'post_author' => $ember_current_user_id,
'post_category' => $ember_post_category,
'post_content' => $ember_post_content,
'post_title' => $ember_post_title,
'post_status' => 'publish',
'post_excerpt' => $ember_post_excerpt,
'tags_input' => $ember_post_tags
);
// now we've prepared an array with the data, we're going to save it into the WP database and obtain the resulting post ID.
$ember_newpost_id = wp_insert_post($ember_prepare_post, true);
I'm not seeing any errors, and have had a read of the wp_insert_post function itself and cannot see why it wouldn't work. The ID's of the posts it creates definitely aren't zero, either.
Thanks!
|
wordpress
|
{
"language": "en",
"length": 155,
"provenance": "stackexchange_00019.jsonl.gz:411756",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24380"
}
|
[
0.0323486328125,
0.0130462646484375,
-0.0019359588623046875,
0.024993896484375,
0.0216827392578125,
-0.032501220703125,
0.058868408203125,
-0.0562744140625,
0.0016326904296875,
0.02197265625,
-0.053314208984375,
-0.004390716552734375,
0.00899505615234375,
-0.0153350830078125,
-0.006435394287109375,
-0.03460693359375,
0.0311431884765625,
-0.0169830322265625,
0.03753662109375,
-0.0174407958984375,
-0.005840301513671875,
-0.018951416015625,
0.07525634765625,
0.017791748046875,
0.04034423828125,
-0.034820556640625,
0.0198822021484375,
-0.01522064208984375,
0.0301513671875,
-0.005092620849609375,
0.03857421875,
-0.0102081298828125,
0.0191192626953125,
0.005218505859375,
-0.0250091552734375,
0.007076263427734375,
-0.006565093994140625,
0.003772735595703125,
0.0052490234375,
0.0089111328125,
0.0209503173828125,
-0.0032482147216796875,
0.039031982421875,
0.01551055908203125,
0.0012969970703125,
-0.0687255859375,
0.0537109375,
-0.02386474609375,
0.0291595458984375,
-0.0089569091796875,
-0.0014886856079101562,
-0.0015954971313476562,
0.0094451904296875,
-0.003612518310546875,
-0.01861572265625,
0.0023174285888671875,
-0.00811004638671875,
0.01070404052734375,
0.0574951171875,
0.0245361328125,
-0.05126953125,
-0.035430908203125,
0.005466461181640625,
-0.0833740234375,
-0.0015277862548828125,
-0.007572174072265625,
0.03912353515625,
0.030426025390625,
-0.0119171142578125,
-0.0140533447265625,
0.019744873046875,
0.002422332763671875,
-0.0027904510498046875,
0.0016736984252929688,
-0.035797119140625,
-0.034881591796875,
0.054656982421875,
-0.00455474853515625,
-0.0172882080078125,
0.0207061767578125,
-0.01739501953125,
0.002452850341796875,
-0.040618896484375,
-0.04962158203125,
0.023468017578125,
-0.0093231201171875,
-0.0213623046875,
-0.0037631988525390625,
-0.0243072509765625,
-0.03271484375,
-0.032440185546875,
-0.051788330078125,
-0.01195526123046875,
-0.0011873245239257812,
-0.016387939453125,
-0.022491455078125,
0.0084075927734375,
0.03643798828125,
-0.01261138916015625,
0.0018177032470703125,
0.006801605224609375,
-0.039886474609375,
0.0254974365234375,
-0.0228271484375,
0.0147552490234375,
0.04736328125,
-0.0166015625,
-0.06280517578125,
0.004329681396484375,
0.01117706298828125,
-0.0009622573852539062,
0.00469970703125,
0.01134490966796875,
-0.0097198486328125,
-0.00600433349609375,
-0.01200103759765625,
-0.030731201171875,
0.0002110004425048828,
-0.000942230224609375,
-0.02447509765625,
0.00959014892578125,
0.0211639404296875,
-0.0268402099609375,
0.0203704833984375,
0.0294189453125,
0.0250244140625,
-0.007129669189453125,
-0.006465911865234375,
-0.01136016845703125,
-0.0162353515625,
-0.032196044921875,
0.03594970703125,
0.12310791015625,
0.0282745361328125,
0.0138397216796875,
-0.0122222900390625,
-0.0259246826171875,
-0.0239105224609375,
-0.00896453857421875,
0.0005903244018554688,
-0.0096435546875,
-0.040740966796875,
0.0171051025390625,
-0.005802154541015625,
0.00870513916015625,
0.0197601318359375,
0.016571044921875,
0.004505157470703125,
0.00658416748046875,
-0.050689697265625,
0.01215362548828125,
-0.0308990478515625,
0.013580322265625,
-0.0021457672119140625,
0.050323486328125,
-0.0210723876953125,
0.033843994140625,
-0.0260467529296875,
0.03387451171875,
-0.00440216064453125,
0.03289794921875,
0.00513458251953125,
-0.0006508827209472656,
-0.008056640625,
-0.05126953125,
0.00870513916015625,
-0.037445068359375,
-0.006557464599609375,
0.02252197265625,
0.12451171875,
-0.0310821533203125,
-0.009765625,
-0.0211181640625,
0.00875091552734375,
-0.0230255126953125,
-0.006702423095703125,
0.05975341796875,
-0.03753662109375,
0.01032257080078125,
0.056884765625,
-0.0203399658203125,
-0.01279449462890625,
0.005535125732421875,
-0.020904541015625,
-0.033599853515625,
0.04449462890625,
0.030242919921875,
0.06304931640625,
-0.006496429443359375,
0.024017333984375,
0.0270538330078125,
0.04400634765625,
-0.025238037109375,
0.005153656005859375,
0.006999969482421875,
-0.00838470458984375,
-0.047088623046875,
-0.0030670166015625,
-0.0201416015625,
0.004802703857421875,
-0.032623291015625,
0.00600433349609375,
0.0002875328063964844,
0.031646728515625,
-0.056610107421875,
0.0100555419921875,
-0.0310516357421875,
0.037506103515625,
-0.007354736328125,
0.0280609130859375,
0.0308074951171875,
0.03021240234375,
-0.031341552734375,
-0.00807952880859375,
-0.0063629150390625,
0.0316162109375,
-0.0526123046875,
-0.01139068603515625,
-0.0433349609375,
0.016845703125,
-0.0838623046875,
0.007274627685546875,
-0.06591796875,
0.007080078125,
0.061248779296875,
0.003997802734375,
-0.00890350341796875,
-0.02874755859375,
0.052825927734375,
0.005451202392578125,
-0.01715087890625,
0.0250701904296875,
0.0140838623046875,
0.01409149169921875,
-0.04901123046875,
-0.006328582763671875,
-0.0269012451171875,
-0.026458740234375,
0.0102386474609375,
0.0631103515625,
0.029815673828125,
0.03924560546875,
0.00931549072265625,
-0.002544403076171875,
0.012908935546875,
-0.039764404296875,
0.0167999267578125,
-0.0304107666015625,
0.01267242431640625,
0.0706787109375,
0.0300750732421875,
0.004375457763671875,
-0.00970458984375,
-0.06817626953125,
-0.0009870529174804688,
0.0306243896484375,
-0.042266845703125,
0.0006513595581054688,
-0.00988006591796875,
-0.013153076171875,
-0.007076263427734375,
-0.0653076171875,
0.0196075439453125,
-0.045318603515625,
0.0019073486328125,
0.0185699462890625,
0.03717041015625,
0.0343017578125,
-0.007778167724609375,
0.0021762847900390625,
0.005023956298828125,
-0.007373809814453125,
0.00606536865234375,
0.042083740234375,
0.0188140869140625,
0.01788330078125,
-0.05218505859375,
-0.01457977294921875,
0.04827880859375,
0.0304107666015625,
-0.0082550048828125,
0.0732421875,
0.006557464599609375,
-0.0173187255859375,
-0.022796630859375,
-0.021240234375,
-0.015533447265625,
-0.001949310302734375,
-0.005413055419921875,
-0.0352783203125,
-0.013916015625,
0.059112548828125,
-0.0272064208984375,
0.057342529296875,
0.01401519775390625,
-0.0081329345703125,
-0.0074310302734375,
-0.08935546875,
0.051605224609375,
-0.040313720703125,
0.07708740234375,
0.084716796875,
0.00598907470703125,
0.01308441162109375,
-0.0015325546264648438,
0.035736083984375,
-0.01146697998046875,
0.01055145263671875,
-0.016510009765625,
-0.0321044921875,
0.0006628036499023438,
0.042022705078125,
0.032135009765625,
0.0947265625,
-0.01354217529296875,
-0.052337646484375,
0.0037288665771484375,
0.042633056640625,
-0.054412841796875,
-0.09222412109375,
-0.0136871337890625,
-0.01494598388671875,
-0.01605224609375,
-0.031646728515625,
-0.0033855438232421875,
0.01311492919921875,
-0.040557861328125,
0.00029277801513671875,
-0.00954437255859375,
-0.017547607421875,
-0.053375244140625,
-0.055938720703125,
-0.06634521484375,
-0.0002760887145996094,
-0.015869140625,
0.01259613037109375,
0.0125885009765625,
0.085205078125,
0.034576416015625,
-0.01031494140625,
0.0364990234375,
0.0251922607421875,
-0.05303955078125,
-0.022674560546875,
-0.0023212432861328125,
-0.01171875,
-0.006378173828125,
0.00591278076171875,
-0.0006918907165527344,
0.01119232177734375,
-0.01018524169921875,
-0.0022487640380859375,
-0.0163116455078125,
0.007595062255859375,
0.030364990234375,
0.0142822265625,
0.013885498046875,
0.025665283203125,
0.04730224609375,
-0.01067352294921875,
0.00504302978515625,
-0.05621337890625,
-0.042633056640625,
0.0278167724609375,
0.0172271728515625,
0.01690673828125,
-0.0362548828125,
0.0233154296875,
-0.018402099609375,
-0.0172271728515625,
0.0233917236328125,
-0.0139312744140625,
0.0271453857421875,
-0.0272979736328125,
-0.036468505859375,
-0.0185546875,
0.04901123046875,
-0.006252288818359375,
0.0292205810546875,
0.017333984375,
0.0132904052734375,
-0.006038665771484375,
-0.032073974609375,
-0.06854248046875,
-0.049346923828125,
0.0233612060546875,
-0.0088348388671875,
0.0233612060546875,
-0.0241241455078125,
-0.02154541015625,
0.007843017578125,
0.07867431640625,
-0.0279083251953125,
-0.01336669921875,
0.00960540771484375,
0.0220184326171875,
-0.0275421142578125,
-0.065185546875,
-0.03131103515625,
-0.009124755859375,
0.0204925537109375,
-0.0033206939697265625,
-0.01215362548828125,
0.0095062255859375,
0.0008578300476074219,
0.04400634765625,
0.0231475830078125,
-0.0056304931640625,
0.038848876953125,
-0.0194244384765625,
0.033294677734375,
-0.0166473388671875,
0.0263671875,
-0.021636962890625,
-0.01629638671875,
-0.0116424560546875,
-0.1004638671875,
-0.00829315185546875,
0.0218658447265625,
0.0289154052734375,
-0.0452880859375,
0.035186767578125,
-0.031982421875,
0.028106689453125,
-0.0171051025390625,
0.028656005859375,
-0.004150390625,
0.05377197265625,
-0.031005859375,
-0.033416748046875,
-0.0069122314453125,
-0.03515625,
-0.0263824462890625,
-0.045379638671875,
-0.007762908935546875,
0.00769805908203125,
-0.035675048828125,
0.01197052001953125,
-0.04107666015625,
0.006427764892578125,
-0.056671142578125,
-0.04534912109375,
0.02117919921875,
0.032745361328125,
0.01021575927734375,
0.0003731250762939453,
-0.06573486328125,
-0.0361328125,
0.05218505859375,
-0.00821685791015625,
0.02630615234375,
-0.016082763671875,
0.09552001953125,
0.0189971923828125,
-0.025360107421875,
0.0199432373046875,
0.02154541015625,
0.02337646484375,
-0.0026950836181640625,
0.0225067138671875,
0.0095062255859375,
-0.014373779296875,
0.01434326171875,
-0.0032806396484375,
0.01485443115234375,
-0.023345947265625,
0.058990478515625,
-0.007694244384765625,
-0.01580810546875,
0.0246734619140625,
-0.006603240966796875,
-0.022918701171875,
0.032318115234375,
-0.029296875,
-0.01300048828125,
0.00502777099609375,
0.049591064453125,
-0.053680419921875,
0.04986572265625,
-0.031494140625,
-0.0380859375,
0.0179595947265625,
-0.02447509765625,
-0.01447296142578125,
0.004047393798828125,
0.0073394775390625,
-0.0242462158203125,
-0.024169921875,
0.0031185150146484375,
0.034820556640625,
0.01396942138671875,
0.00748443603515625,
0.0220184326171875,
0.0426025390625,
-0.00760650634765625,
0.0168609619140625,
-0.00963592529296875,
0.044830322265625,
0.022979736328125,
-0.01678466796875,
-0.00390625,
-0.00044727325439453125,
-0.00939178466796875,
-0.0169525146484375,
-0.005840301513671875,
-0.0031833648681640625,
0.0286102294921875,
0.01253509521484375,
-0.0010499954223632812,
0.015106201171875,
0.01873779296875,
-0.004863739013671875,
-0.00051116943359375,
0.021087646484375,
-0.0284423828125,
0.0184173583984375,
0.0300140380859375,
0.031005859375,
0.006412506103515625,
-0.0287628173828125,
0.0309295654296875,
0.0010223388671875,
0.041290283203125,
0.0129547119140625,
-0.013702392578125,
-0.0006575584411621094,
0.02581787109375,
-0.01140594482421875,
-0.035491943359375,
0.029327392578125,
0.0254669189453125,
0.01432037353515625,
0.037322998046875,
-0.01922607421875,
0.013458251953125,
-0.00862884521484375,
0.0004756450653076172,
0.0303497314453125,
-0.0157012939453125,
-0.041229248046875,
-0.01203155517578125,
0.005367279052734375,
0.0301513671875,
-0.0156402587890625,
0.0009593963623046875,
-0.0127410888671875,
-0.0172882080078125,
0.011077880859375,
0.01239013671875,
0.01522064208984375,
-0.016998291015625,
-0.02947998046875,
-0.01751708984375,
-0.04473876953125,
-0.0031757354736328125,
0.01904296875,
0.03485107421875,
-0.0413818359375,
-0.038116455078125,
0.0299835205078125,
-0.01233673095703125,
0.018341064453125,
-0.0323486328125,
0.0005178451538085938,
-0.028228759765625,
0.00702667236328125,
0.03753662109375,
0.00955963134765625,
-0.00762176513671875,
-0.025482177734375,
-0.0280914306640625,
-0.005245208740234375,
0.0157470703125,
-0.0188751220703125,
-0.009857177734375,
-0.0170135498046875,
0.011505126953125,
0.0115814208984375,
-0.01403045654296875,
-0.036895751953125,
-0.032012939453125,
0.004180908203125,
0.03961181640625,
0.0135498046875,
0.017669677734375,
0.0179443359375,
0.0038814544677734375,
0.03558349609375,
0.0289459228515625,
0.01385498046875,
0.00991058349609375,
-0.046905517578125,
-0.0130157470703125,
-0.053924560546875,
0.0230712890625,
0.0030651092529296875,
0.05096435546875,
-0.0088348388671875,
-0.0280303955078125,
0.0143890380859375,
0.0179901123046875,
0.0386962890625,
0.0193328857421875,
-0.00780487060546875,
-0.05670166015625,
0.0509033203125,
-0.006069183349609375,
0.040130615234375,
-0.0298614501953125,
-0.018310546875,
0.018798828125,
0.07177734375,
-0.04150390625,
-0.031707763671875,
-0.0264892578125,
-0.0017423629760742188,
-0.01329803466796875,
0.0173797607421875,
0.053955078125,
0.0296783447265625,
0.05548095703125,
-0.0120391845703125,
0.0367431640625,
0.0194854736328125,
0.035736083984375,
-0.047393798828125,
-0.021942138671875,
0.050079345703125,
0.0165863037109375,
-0.0308685302734375,
0.0330810546875,
-0.0275726318359375,
0.03350830078125,
0.036895751953125,
0.03826904296875,
-0.06396484375,
0.0278167724609375,
-0.0048675537109375,
-0.059295654296875,
0.00547027587890625,
-0.0293426513671875,
0.0148773193359375,
-0.038177490234375,
0.06231689453125,
0.0240631103515625,
-0.00403594970703125,
0.01275634765625,
-0.0237274169921875,
0.0090179443359375,
-0.03216552734375,
0.0116424560546875,
0.0161895751953125,
-0.0007910728454589844,
0.0290374755859375,
0.005825042724609375,
0.037322998046875,
-0.0300445556640625,
0.002010345458984375,
0.00576019287109375,
-0.0237884521484375,
-0.0789794921875,
0.00007981061935424805,
-0.005641937255859375,
-0.016845703125,
0.0147247314453125,
0.0036334991455078125,
0.075927734375,
0.031097412109375,
0.037200927734375,
-0.0357666015625,
0.01328277587890625,
-0.0014181137084960938,
-0.059814453125,
-0.038238525390625,
0.0157623291015625,
0.0709228515625,
-0.030792236328125,
0.04412841796875,
0.003063201904296875,
-0.0191497802734375,
0.0011920928955078125,
-0.0223846435546875,
0.0687255859375,
-0.0775146484375,
0.00927734375,
-0.002666473388671875,
-0.01523590087890625,
0.028778076171875,
-0.022003173828125,
-0.0031585693359375,
-0.016082763671875,
0.0322265625,
-0.0246124267578125,
0.021392822265625,
0.019805908203125,
-0.017852783203125,
-0.08978271484375,
0.1229248046875,
0.05267333984375,
0.056365966796875,
-0.017974853515625,
0.029754638671875,
-0.039581298828125,
-0.000009775161743164062,
-0.039276123046875,
0.032928466796875,
0.00634002685546875,
0.002872467041015625,
-0.03302001953125,
-0.0101776123046875,
-0.004428863525390625,
0.0210418701171875,
0.07098388671875,
0.01128387451171875,
-0.002338409423828125,
-0.0186004638671875,
0.0301513671875,
0.031494140625,
-0.01483154296875,
0.0220184326171875,
0.007236480712890625,
0.006816864013671875,
0.048553466796875,
-0.00249481201171875,
0.0440673828125,
-0.01256561279296875,
-0.011962890625,
0.016693115234375,
0.0217132568359375,
0.034942626953125,
-0.019012451171875,
-0.033416748046875,
-0.0034770965576171875,
-0.0036563873291015625,
0.003604888916015625,
-0.00453948974609375,
0.0458984375,
0.0183258056640625,
0.07220458984375,
-0.04644775390625,
-0.00583648681640625,
-0.029754638671875,
0.061187744140625,
0.023773193359375,
0.005218505859375,
0.012664794921875,
0.013214111328125,
-0.007282257080078125,
-0.02850341796875,
-0.0087890625,
0.0011682510375976562,
-0.0211639404296875,
0.035888671875,
0.0298919677734375,
0.0207061767578125,
-0.06781005859375,
-0.046783447265625,
0.0989990234375,
0.0845947265625,
-0.03692626953125,
-0.002826690673828125,
0.029052734375,
0.0343017578125,
-0.0201263427734375,
-0.0028514862060546875,
0.036865234375,
0.002529144287109375,
0.01555633544921875,
0.011749267578125,
-0.0130157470703125,
-0.002300262451171875,
0.0147247314453125,
0.0228271484375,
0.0278167724609375,
-0.0207366943359375,
-0.0179901123046875,
-0.036773681640625,
0.0265045166015625,
0.007366180419921875,
0.04644775390625,
0.003948211669921875,
0.061126708984375,
-0.0509033203125,
-0.013336181640625,
-0.0106201171875,
0.020355224609375,
0.0172271728515625,
0.01000213623046875,
0.0105438232421875,
-0.004116058349609375,
0.022491455078125,
-0.005275726318359375,
0.049957275390625,
0.054351806640625,
0.07843017578125,
0.02166748046875,
-0.0452880859375,
0.00513458251953125,
-0.005168914794921875,
-0.029022216796875,
-0.031768798828125,
-0.035614013671875,
-0.005382537841796875,
0.00969696044921875,
0.0022411346435546875,
0.03497314453125,
0.00017011165618896484,
0.0257568359375,
-0.0208282470703125,
0.029327392578125,
-0.0031948089599609375,
-0.02044677734375,
0.054656982421875,
0.012451171875,
0.0633544921875,
0.006847381591796875,
-0.083984375,
0.004512786865234375,
-0.0526123046875,
-0.039703369140625,
0.0025119781494140625,
0.01534271240234375,
-0.0094451904296875,
0.01206207275390625,
0.00998687744140625,
0.0024204254150390625,
-0.0018453598022460938,
-0.007610321044921875,
0.0176239013671875,
0.0005755424499511719,
0.022003173828125,
0.0080108642578125,
-0.01971435546875,
-0.0004596710205078125,
0.02880859375,
0.0029659271240234375,
-0.0078887939453125,
0.007633209228515625,
0.0117950439453125,
-0.00522613525390625,
-0.04388427734375,
0.027008056640625,
-0.0533447265625,
-0.0209808349609375,
0.00525665283203125,
0.004817962646484375,
0.01971435546875,
0.004222869873046875,
-0.03570556640625,
0.01456451416015625,
0.0283355712890625,
0.0030460357666015625,
0.004497528076171875,
-0.0218353271484375,
0.0251922607421875,
0.021026611328125,
0.0226898193359375,
-0.00872039794921875,
0.006885528564453125,
-0.01270294189453125,
-0.01026153564453125,
0.060577392578125,
0.0445556640625,
0.003787994384765625,
0.03936767578125,
-0.0259857177734375,
-0.059478759765625,
0.031829833984375,
-0.09814453125,
0.017852783203125,
0.0115966796875,
0.02716064453125,
-0.01421356201171875,
-0.01288604736328125,
-0.021331787109375,
-0.0226593017578125,
0.01535797119140625,
-0.01245880126953125,
0.00482177734375,
-0.04998779296875,
0.00803375244140625,
0.06622314453125,
0.0679931640625,
-0.0095062255859375,
0.039764404296875,
0.0267333984375,
-0.016021728515625,
0.044036865234375,
-0.00969696044921875,
-0.012725830078125,
-0.0338134765625,
-0.02471923828125,
0.004978179931640625,
-0.037109375,
-0.029510498046875,
-0.053985595703125,
-0.004055023193359375,
-0.00774383544921875,
-0.020904541015625,
-0.002109527587890625,
0.0157928466796875,
-0.01503753662109375,
0.007404327392578125,
-0.038177490234375,
0.0175323486328125,
0.01288604736328125,
0.065673828125,
-0.06597900390625,
0.004444122314453125,
-0.00467681884765625,
-0.026702880859375,
-0.027984619140625,
-0.004302978515625,
0.01122283935546875,
-0.01485443115234375,
-0.0347900390625,
-0.0015726089477539062,
0.0009074211120605469,
0.021820068359375,
0.03082275390625,
-0.0064544677734375,
-0.0108184814453125,
0.025299072265625,
-0.03192138671875,
-0.060516357421875,
0.03228759765625,
-0.068603515625,
-0.035003662109375,
-0.06646728515625,
0.037750244140625,
0.049224853515625,
-0.0177154541015625,
-0.045135498046875,
0.01343536376953125,
-0.0195159912109375,
-0.019287109375,
-0.006206512451171875,
-0.0284271240234375,
-0.019287109375,
-0.0175933837890625,
-0.01483917236328125,
-0.01007843017578125,
-0.01271820068359375,
0.05316162109375,
0.004970550537109375,
-0.0282440185546875,
0.0743408203125,
-0.0147247314453125,
-0.06707763671875,
-0.045806884765625,
-0.038116455078125,
-0.01580810546875,
0.007244110107421875,
-0.0028209686279296875,
0.0161285400390625,
0.035247802734375,
-0.046112060546875,
-0.01131439208984375,
-0.00785064697265625,
0.01580810546875,
-0.0007557868957519531,
-0.00647735595703125,
-0.036651611328125,
0.0091705322265625,
0.05902099609375,
0.0452880859375,
0.0250091552734375,
-0.04443359375,
-0.0170135498046875,
-0.01580810546875,
-0.003086090087890625,
-0.006092071533203125,
-0.00811004638671875,
-0.029571533203125,
-0.003795623779296875,
-0.0293426513671875,
-0.017669677734375,
-0.00936126708984375,
-0.015960693359375,
-0.02886962890625,
-0.00891876220703125,
-0.030242919921875,
-0.0207366943359375,
-0.01175689697265625,
-0.05706787109375,
0.05267333984375,
-0.042694091796875,
-0.04302978515625,
0.022552490234375,
0.037109375,
-0.01690673828125,
0.0090179443359375,
0.000324249267578125,
-0.02642822265625,
0.0097503662109375,
0.023651123046875,
0.01152801513671875,
0.01096343994140625,
-0.01220703125,
-0.0169219970703125,
0.019073486328125,
0.004077911376953125,
-0.036773681640625,
-0.006458282470703125,
0.048614501953125,
0.0242462158203125,
-0.04559326171875,
0.08880615234375,
-0.01806640625,
0.039794921875,
-0.0115509033203125,
0.03521728515625,
-0.0433349609375,
0.01568603515625,
-0.03375244140625,
0.00885772705078125,
-0.0032749176025390625,
0.035675048828125,
0.007587432861328125,
-0.0021076202392578125,
-0.0097808837890625,
0.017608642578125,
0.0195465087890625,
-0.0173187255859375
] |
e1503142710288183a0737239b5b921f129d8854
|
Wordpress Stackexchange
Q: How to remove "featured image" functionality from a custom post type? I have made a custom post type for a child theme. I removed "thumbnail" from the supports array in functions.php and that prevents a featured image meta box from being displayed. However, when in the "add an image" modal dialogue thing, there is still a "Use as featured image" link. Why, oh why? More to the point, does anyone know how to remove?
I tried...
remove_post_type_support( 'itinerary', 'post-thumbnail' );
...where itinerary is the name of my custom post type. Any help would be greatly appreciated!
Steve
A: Some where in your theme you should have:
add_theme_support( 'post-thumbnails' );
Instead of removing support for a post type try only adding support for the post types you want:
add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) );
|
Q: How to remove "featured image" functionality from a custom post type? I have made a custom post type for a child theme. I removed "thumbnail" from the supports array in functions.php and that prevents a featured image meta box from being displayed. However, when in the "add an image" modal dialogue thing, there is still a "Use as featured image" link. Why, oh why? More to the point, does anyone know how to remove?
I tried...
remove_post_type_support( 'itinerary', 'post-thumbnail' );
...where itinerary is the name of my custom post type. Any help would be greatly appreciated!
Steve
A: Some where in your theme you should have:
add_theme_support( 'post-thumbnails' );
Instead of removing support for a post type try only adding support for the post types you want:
add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) );
A: To add to Brady's answer...
add_theme_support( 'post-thumbnails', array( 'post', 'movie' ) );
If you only want to add support to a single post type, keep the array() in the declaration. With debugging turned on, if you declare add_theme_support( 'post-thumbnails', 'post' ); wordpress will complain that it is expecting an array when on the post edit page. So to enable Featured Images to only posts...
add_theme_support( 'post-thumbnails', array( 'post' ) );
A: A more modern approach is to use remove_post_type_support(post_type, 'thumbnail').
Option #1: Remove it immediately after creating your custom post type:
$args = []; //your args here
register_post_type('my_post_type', $args);
remove_post_type_support('my_post_type', 'thumbnail');
Option #2: Remove it from an existing post type:
function remove_thumbnail_support()
{
remove_post_type_support('my_post_type', 'thumbnail');
}
add_action('init', 'remove_thumbnail_support', 11);
|
wordpress
|
{
"language": "en",
"length": 255,
"provenance": "stackexchange_00019.jsonl.gz:411767",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24416"
}
|
[
0.07037353515625,
0.0003001689910888672,
0.0231170654296875,
0.0038242340087890625,
0.03521728515625,
-0.04400634765625,
0.0863037109375,
-0.058319091796875,
0.021240234375,
0.0147857666015625,
0.046630859375,
-0.032928466796875,
-0.0115966796875,
-0.049468994140625,
-0.0250091552734375,
-0.006145477294921875,
0.04022216796875,
-0.0308380126953125,
0.035186767578125,
-0.0095672607421875,
0.0053863525390625,
0.01140594482421875,
0.0350341796875,
0.03900146484375,
0.01393890380859375,
0.0007891654968261719,
0.0423583984375,
-0.0205535888671875,
-0.0141448974609375,
-0.0202484130859375,
0.0104522705078125,
0.014190673828125,
-0.022125244140625,
0.06427001953125,
-0.0115814208984375,
0.0038127899169921875,
0.010498046875,
0.0352783203125,
0.0335693359375,
0.012847900390625,
-0.007076263427734375,
0.0250701904296875,
-0.022247314453125,
-0.0291290283203125,
-0.039581298828125,
-0.0171661376953125,
-0.0300445556640625,
-0.01184844970703125,
0.00460052490234375,
0.002288818359375,
0.0296783447265625,
0.018096923828125,
0.05328369140625,
-0.056304931640625,
-0.0122833251953125,
-0.03570556640625,
-0.07940673828125,
0.04180908203125,
0.019256591796875,
0.03887939453125,
0.01065826416015625,
0.0007143020629882812,
-0.0142822265625,
-0.0228271484375,
0.0014324188232421875,
0.004772186279296875,
-0.055084228515625,
0.0023956298828125,
-0.050933837890625,
0.0065155029296875,
0.03387451171875,
-0.05657958984375,
-0.005970001220703125,
-0.01454925537109375,
-0.01171112060546875,
0.020782470703125,
-0.01885986328125,
-0.0176544189453125,
0.0269927978515625,
-0.0107269287109375,
-0.0024242401123046875,
-0.0176239013671875,
-0.00531768798828125,
0.002201080322265625,
0.01373291015625,
0.040771484375,
-0.0149078369140625,
-0.0161285400390625,
-0.0227508544921875,
-0.00432586669921875,
-0.0152130126953125,
-0.0672607421875,
-0.0469970703125,
0.0743408203125,
0.0312347412109375,
0.0013265609741210938,
0.0736083984375,
0.043731689453125,
-0.0072174072265625,
-0.033233642578125,
0.024810791015625,
-0.06182861328125,
0.02069091796875,
-0.021270751953125,
0.01873779296875,
0.0181732177734375,
-0.0380859375,
-0.061859130859375,
0.0389404296875,
0.056732177734375,
0.0213165283203125,
-0.0008897781372070312,
-0.0012521743774414062,
0.00812530517578125,
-0.03558349609375,
0.01641845703125,
-0.00978851318359375,
-0.00623321533203125,
-0.01366424560546875,
0.03863525390625,
0.046539306640625,
0.035980224609375,
0.0110321044921875,
-0.06561279296875,
0.039215087890625,
0.005428314208984375,
-0.079345703125,
-0.01329803466796875,
0.0006809234619140625,
0.03759765625,
-0.06573486328125,
-0.0145721435546875,
0.0804443359375,
0.038299560546875,
0.0323486328125,
-0.038330078125,
0.01556396484375,
-0.033447265625,
0.0002455711364746094,
0.0191192626953125,
0.0062255859375,
-0.0251617431640625,
0.01313018798828125,
0.0008420944213867188,
0.02020263671875,
0.00875091552734375,
0.002910614013671875,
0.0309600830078125,
0.0170440673828125,
-0.0226593017578125,
0.03564453125,
-0.045623779296875,
0.03564453125,
0.03057861328125,
0.0029621124267578125,
-0.01068878173828125,
0.0775146484375,
-0.042724609375,
-0.0127410888671875,
-0.057769775390625,
0.0277099609375,
-0.0249176025390625,
-0.0022563934326171875,
0.00374603271484375,
-0.046966552734375,
0.0391845703125,
-0.047454833984375,
-0.01094818115234375,
0.020751953125,
-0.00022518634796142578,
0.00604248046875,
-0.031097412109375,
-0.0128021240234375,
0.0183563232421875,
-0.007099151611328125,
0.040283203125,
0.01812744140625,
0.04248046875,
0.0045166015625,
0.06231689453125,
0.0032787322998046875,
-0.0567626953125,
0.0709228515625,
-0.050933837890625,
-0.0518798828125,
0.0394287109375,
0.0207366943359375,
0.044677734375,
-0.01200103759765625,
0.013397216796875,
0.06402587890625,
0.04150390625,
-0.031951904296875,
0.0014028549194335938,
0.043548583984375,
-0.02496337890625,
-0.035003662109375,
-0.055206298828125,
0.00849151611328125,
0.01446533203125,
0.03607177734375,
0.01222991943359375,
0.00800323486328125,
-0.0311737060546875,
-0.03692626953125,
-0.0025787353515625,
-0.0133056640625,
0.04461669921875,
-0.04168701171875,
0.0298919677734375,
0.035400390625,
0.0170440673828125,
-0.0640869140625,
0.0501708984375,
0.0242462158203125,
-0.0008368492126464844,
-0.016571044921875,
0.0225372314453125,
-0.01194000244140625,
0.051025390625,
-0.016845703125,
-0.025787353515625,
-0.03466796875,
-0.0172576904296875,
0.0526123046875,
0.0352783203125,
-0.040557861328125,
-0.007038116455078125,
0.008148193359375,
0.0167236328125,
-0.070556640625,
0.055084228515625,
-0.0163116455078125,
-0.056060791015625,
-0.0372314453125,
-0.00102996826171875,
0.0283355712890625,
-0.07708740234375,
0.006023406982421875,
0.06341552734375,
0.029022216796875,
0.04522705078125,
-0.0106964111328125,
0.017669677734375,
0.041534423828125,
-0.01001739501953125,
0.01422882080078125,
-0.003749847412109375,
-0.0178375244140625,
-0.0201416015625,
0.0092315673828125,
-0.004180908203125,
0.0374755859375,
-0.0084075927734375,
0.04425048828125,
0.0288848876953125,
0.00412750244140625,
-0.0213165283203125,
0.0027179718017578125,
0.00432586669921875,
0.0215911865234375,
0.00982666015625,
-0.0450439453125,
0.0172576904296875,
0.038818359375,
0.012908935546875,
0.03033447265625,
0.0222320556640625,
-0.03363037109375,
0.0020694732666015625,
0.0214691162109375,
0.0270843505859375,
-0.0078582763671875,
0.0330810546875,
0.052337646484375,
0.0020198822021484375,
-0.035369873046875,
-0.005168914794921875,
-0.0013828277587890625,
0.017791748046875,
-0.005016326904296875,
-0.01045989990234375,
-0.0087738037109375,
0.01557159423828125,
-0.0005354881286621094,
-0.06048583984375,
0.03936767578125,
0.057098388671875,
0.00616455078125,
-0.02880859375,
-0.0043792724609375,
0.0179901123046875,
-0.00768280029296875,
0.036224365234375,
-0.0024280548095703125,
-0.025054931640625,
-0.0110321044921875,
-0.0307159423828125,
0.035430908203125,
-0.018035888671875,
0.05279541015625,
0.06329345703125,
-0.017974853515625,
0.020233154296875,
0.0039215087890625,
-0.01113128662109375,
-0.01971435546875,
0.040496826171875,
0.0224761962890625,
-0.026885986328125,
-0.01532745361328125,
0.039581298828125,
0.04248046875,
0.0283050537109375,
0.0186004638671875,
-0.00151824951171875,
0.0136566162109375,
0.04876708984375,
-0.0249481201171875,
-0.0367431640625,
0.01250457763671875,
-0.033355712890625,
-0.020355224609375,
-0.0064239501953125,
-0.0289764404296875,
-0.0112457275390625,
0.01386260986328125,
-0.00431060791015625,
0.00876617431640625,
-0.01009368896484375,
-0.0287017822265625,
-0.02789306640625,
-0.04632568359375,
-0.0310516357421875,
0.0015888214111328125,
0.01328277587890625,
0.007579803466796875,
0.0819091796875,
0.024261474609375,
-0.048614501953125,
0.035369873046875,
0.0321044921875,
-0.028350830078125,
0.039581298828125,
0.0131072998046875,
-0.015533447265625,
0.00519561767578125,
0.01131439208984375,
-0.01319122314453125,
0.01129150390625,
-0.01800537109375,
-0.0241851806640625,
-0.01200103759765625,
0.00975799560546875,
-0.0166168212890625,
0.053192138671875,
0.0479736328125,
0.017669677734375,
0.0222320556640625,
-0.0287628173828125,
-0.04046630859375,
-0.027862548828125,
-0.06060791015625,
-0.0224761962890625,
0.02728271484375,
0.0216827392578125,
-0.03857421875,
0.029083251953125,
0.025146484375,
0.01641845703125,
0.03253173828125,
-0.02618408203125,
0.06500244140625,
0.00894927978515625,
0.01422119140625,
-0.06964111328125,
0.03900146484375,
-0.0024623870849609375,
0.047271728515625,
0.032562255859375,
0.042327880859375,
0.002593994140625,
0.01282501220703125,
-0.0418701171875,
-0.035980224609375,
0.026214599609375,
-0.013275146484375,
0.0191650390625,
0.00032329559326171875,
-0.0170440673828125,
0.01515960693359375,
0.0740966796875,
-0.05853271484375,
-0.008514404296875,
-0.0203399658203125,
-0.015533447265625,
0.0143280029296875,
-0.007396697998046875,
-0.044464111328125,
-0.007091522216796875,
-0.07666015625,
-0.00554656982421875,
-0.015716552734375,
-0.0174713134765625,
-0.0017499923706054688,
0.00742340087890625,
-0.03973388671875,
-0.042022705078125,
0.04315185546875,
-0.023468017578125,
-0.01026153564453125,
0.047088623046875,
-0.0211944580078125,
0.01488494873046875,
-0.045654296875,
-0.019134521484375,
-0.08001708984375,
-0.0153045654296875,
-0.0042724609375,
0.05584716796875,
-0.02825927734375,
0.01934814453125,
-0.058685302734375,
0.02911376953125,
0.035797119140625,
0.005962371826171875,
0.0031642913818359375,
-0.03594970703125,
0.0005817413330078125,
0.040069580078125,
0.0323486328125,
0.0046844482421875,
-0.0183868408203125,
-0.012725830078125,
-0.03875732421875,
-0.0090179443359375,
-0.0085296630859375,
-0.0158233642578125,
0.035430908203125,
-0.0139312744140625,
0.013885498046875,
-0.00373077392578125,
-0.00847625732421875,
0.04168701171875,
0.01531982421875,
-0.018157958984375,
-0.033843994140625,
-0.01003265380859375,
0.045135498046875,
-0.006809234619140625,
-0.0025157928466796875,
0.0240631103515625,
0.085205078125,
0.0082244873046875,
-0.0289154052734375,
-0.103515625,
0.0097503662109375,
0.037567138671875,
-0.00875091552734375,
0.01248931884765625,
0.01467132568359375,
-0.0161590576171875,
-0.004486083984375,
0.0124359130859375,
-0.00545501708984375,
-0.0081939697265625,
0.06573486328125,
0.013153076171875,
-0.00540924072265625,
-0.0020236968994140625,
-0.020477294921875,
0.01390838623046875,
-0.01247406005859375,
0.01076507568359375,
-0.0282745361328125,
0.002437591552734375,
0.01213836669921875,
0.019317626953125,
-0.0014638900756835938,
-0.01216888427734375,
0.00894927978515625,
-0.0007123947143554688,
0.005764007568359375,
0.0389404296875,
0.0293731689453125,
-0.01251983642578125,
-0.007747650146484375,
-0.0006866455078125,
-0.0006647109985351562,
-0.00992584228515625,
-0.0272064208984375,
0.005359649658203125,
0.035308837890625,
-0.0200042724609375,
0.022491455078125,
0.0030117034912109375,
0.018890380859375,
-0.0197906494140625,
-0.00994873046875,
-0.0170440673828125,
-0.08837890625,
0.0229644775390625,
0.0291595458984375,
-0.0095367431640625,
0.0084228515625,
0.03558349609375,
0.021881103515625,
0.006511688232421875,
-0.00839996337890625,
0.002910614013671875,
0.00992584228515625,
-0.039520263671875,
-0.01849365234375,
0.00624847412109375,
-0.01116180419921875,
0.020599365234375,
0.0260467529296875,
-0.0191497802734375,
0.025787353515625,
-0.0131988525390625,
0.02886962890625,
-0.0169830322265625,
0.042633056640625,
-0.00959014892578125,
0.04083251953125,
-0.0003476142883300781,
0.032989501953125,
0.01035308837890625,
-0.027679443359375,
-0.0219879150390625,
-0.0011568069458007812,
0.048492431640625,
-0.02593994140625,
-0.0123291015625,
0.026214599609375,
-0.01528167724609375,
-0.01788330078125,
0.004547119140625,
-0.00714874267578125,
-0.0372314453125,
0.006893157958984375,
0.0016298294067382812,
0.0009236335754394531,
-0.01555633544921875,
-0.044403076171875,
0.033447265625,
-0.0419921875,
-0.0017547607421875,
-0.0240020751953125,
-0.04986572265625,
0.0161590576171875,
0.035400390625,
-0.037841796875,
-0.026580810546875,
-0.01019287109375,
-0.0073394775390625,
-0.018890380859375,
-0.0164642333984375,
-0.009307861328125,
0.0177154541015625,
-0.05780029296875,
0.01885986328125,
0.00240325927734375,
0.00453948974609375,
-0.0236663818359375,
0.038299560546875,
0.0033588409423828125,
0.0060272216796875,
-0.05828857421875,
0.02569580078125,
-0.034027099609375,
0.0089111328125,
-0.006328582763671875,
-0.057525634765625,
-0.038665771484375,
-0.028289794921875,
0.00928497314453125,
0.038665771484375,
-0.0160980224609375,
-0.0182952880859375,
0.01244354248046875,
0.0027370452880859375,
0.00494384765625,
0.1004638671875,
-0.0347900390625,
0.0157318115234375,
0.0254669189453125,
0.047210693359375,
-0.0034656524658203125,
-0.011871337890625,
0.02239990234375,
-0.0391845703125,
-0.0154571533203125,
-0.055450439453125,
-0.0015430450439453125,
0.0050048828125,
-0.0021572113037109375,
0.053802490234375,
0.052093505859375,
0.0103759765625,
-0.017578125,
-0.00811767578125,
-0.0009598731994628906,
-0.049468994140625,
0.0219268798828125,
-0.02294921875,
0.01605224609375,
-0.06585693359375,
-0.036529541015625,
0.00466156005859375,
0.0241851806640625,
0.021240234375,
-0.011077880859375,
-0.0233612060546875,
-0.0294647216796875,
0.051513671875,
-0.00667572021484375,
0.03070068359375,
0.051666259765625,
-0.005504608154296875,
0.0413818359375,
0.02093505859375,
0.01123046875,
0.00214385986328125,
0.03192138671875,
-0.05029296875,
-0.05133056640625,
0.038421630859375,
0.0311126708984375,
0.01277923583984375,
0.04486083984375,
0.004329681396484375,
0.00441741943359375,
0.004711151123046875,
0.03192138671875,
-0.0221710205078125,
0.00807952880859375,
0.00597381591796875,
0.006038665771484375,
0.05572509765625,
-0.005939483642578125,
0.006206512451171875,
0.00843048095703125,
-0.048309326171875,
0.0091400146484375,
-0.048583984375,
-0.047210693359375,
0.005523681640625,
-0.01342010498046875,
0.0103759765625,
-0.018157958984375,
-0.0006122589111328125,
-0.050048828125,
-0.0186767578125,
0.049407958984375,
-0.03851318359375,
0.00849151611328125,
0.01259613037109375,
-0.0169677734375,
-0.0214385986328125,
-0.061004638671875,
-0.0261688232421875,
-0.0230712890625,
-0.0189056396484375,
0.06512451171875,
0.0174560546875,
-0.00193023681640625,
0.035614013671875,
-0.01412200927734375,
0.0394287109375,
-0.0077362060546875,
-0.03265380859375,
0.0004646778106689453,
-0.03912353515625,
-0.00334930419921875,
-0.00267791748046875,
-0.047607421875,
0.0165252685546875,
-0.032257080078125,
-0.0168914794921875,
-0.004329681396484375,
-0.0195770263671875,
0.06427001953125,
-0.0189056396484375,
-0.0276947021484375,
0.0206756591796875,
0.00792694091796875,
-0.0178070068359375,
-0.01186370849609375,
0.04425048828125,
-0.04254150390625,
-0.0163116455078125,
-0.005950927734375,
-0.0247344970703125,
-0.004360198974609375,
-0.03277587890625,
-0.04595947265625,
0.09320068359375,
-0.03863525390625,
0.022918701171875,
0.007232666015625,
0.035491943359375,
-0.00795745849609375,
0.01080322265625,
0.003566741943359375,
0.01934814453125,
-0.0252532958984375,
0.039276123046875,
0.0024280548095703125,
0.009857177734375,
0.0206146240234375,
0.01180267333984375,
0.05120849609375,
0.016571044921875,
0.019317626953125,
-0.01233673095703125,
0.0631103515625,
0.050537109375,
-0.007610321044921875,
-0.0071868896484375,
-0.03326416015625,
-0.0139923095703125,
0.021453857421875,
-0.0290374755859375,
0.0274658203125,
-0.0210723876953125,
-0.03485107421875,
-0.0111846923828125,
0.03631591796875,
0.055328369140625,
0.0005941390991210938,
0.00262451171875,
-0.031585693359375,
0.003658294677734375,
0.04400634765625,
-0.02630615234375,
0.0006809234619140625,
0.041015625,
0.0207366943359375,
-0.006298065185546875,
-0.0063629150390625,
-0.02008056640625,
0.042236328125,
0.0076446533203125,
0.0594482421875,
-0.0145416259765625,
0.0291900634765625,
-0.007411956787109375,
-0.0249481201171875,
0.0169219970703125,
0.039337158203125,
-0.0732421875,
0.0035190582275390625,
0.00223541259765625,
0.018341064453125,
-0.0340576171875,
0.04876708984375,
0.041595458984375,
0.004241943359375,
-0.043426513671875,
-0.045654296875,
0.00234222412109375,
0.005970001220703125,
0.019805908203125,
-0.024658203125,
-0.00494384765625,
-0.025115966796875,
0.029296875,
-0.03533935546875,
0.01067352294921875,
0.04437255859375,
0.0237274169921875,
-0.001407623291015625,
0.0110321044921875,
-0.055938720703125,
-0.0024585723876953125,
-0.0185546875,
0.0004105567932128906,
0.0214996337890625,
0.0161285400390625,
-0.0004191398620605469,
0.044525146484375,
0.006046295166015625,
0.0116729736328125,
-0.0132904052734375,
0.013763427734375,
-0.02313232421875,
0.0190582275390625,
-0.0352783203125,
-0.04449462890625,
0.023834228515625,
0.026458740234375,
0.02667236328125,
-0.01364898681640625,
0.037139892578125,
0.031829833984375,
-0.046600341796875,
-0.002040863037109375,
0.05279541015625,
-0.009033203125,
-0.0325927734375,
-0.04278564453125,
0.0089569091796875,
0.03399658203125,
0.0018434524536132812,
0.003177642822265625,
-0.035858154296875,
0.06549072265625,
-0.0095367431640625,
0.023040771484375,
-0.00534820556640625,
-0.0226287841796875,
0.05181884765625,
-0.0218963623046875,
0.07171630859375,
0.005458831787109375,
-0.057830810546875,
-0.0180206298828125,
-0.0216522216796875,
-0.0294952392578125,
0.0161895751953125,
0.0184478759765625,
-0.048492431640625,
0.046295166015625,
0.03173828125,
0.01451873779296875,
0.0075531005859375,
-0.034393310546875,
0.00472259521484375,
-0.0201568603515625,
0.027862548828125,
0.01690673828125,
-0.0115203857421875,
-0.027984619140625,
0.011138916015625,
0.04144287109375,
-0.0259857177734375,
0.0458984375,
-0.027252197265625,
0.01508331298828125,
-0.04595947265625,
0.036041259765625,
-0.057220458984375,
-0.007602691650390625,
-0.00128936767578125,
0.0127105712890625,
-0.0127410888671875,
-0.00872802734375,
-0.05145263671875,
0.0028820037841796875,
0.046905517578125,
-0.0183563232421875,
-0.0191650390625,
0.03118896484375,
0.0123291015625,
-0.0173187255859375,
0.0138397216796875,
-0.03350830078125,
0.003520965576171875,
-0.026763916015625,
-0.051116943359375,
0.0367431640625,
-0.01120758056640625,
0.031402587890625,
0.0161285400390625,
0.044921875,
-0.01349639892578125,
0.038055419921875,
-0.0232086181640625,
0.0826416015625,
0.05108642578125,
-0.0275726318359375,
-0.0413818359375,
-0.00312042236328125,
-0.00975799560546875,
0.003185272216796875,
0.007755279541015625,
0.0295257568359375,
0.026580810546875,
-0.06298828125,
-0.0007185935974121094,
-0.0227508544921875,
-0.0028171539306640625,
-0.037689208984375,
-0.031280517578125,
0.023284912109375,
-0.0199127197265625,
-0.0443115234375,
0.0243682861328125,
0.006542205810546875,
-0.044464111328125,
-0.0185394287109375,
0.022552490234375,
-0.035400390625,
-0.003475189208984375,
-0.056671142578125,
0.01019287109375,
0.04638671875,
0.04754638671875,
-0.1044921875,
0.063232421875,
0.0209808349609375,
0.0258026123046875,
0.03875732421875,
-0.0303955078125,
0.0126190185546875,
0.05780029296875,
-0.01003265380859375,
-0.040985107421875,
-0.0177764892578125,
0.023162841796875,
-0.052703857421875,
0.0251922607421875,
0.0296630859375,
-0.0275115966796875,
0.00006967782974243164,
0.030059814453125,
0.005184173583984375,
0.08563232421875,
-0.01375579833984375,
-0.03466796875,
-0.024871826171875,
0.0214080810546875,
-0.004558563232421875,
-0.0100250244140625,
0.026214599609375,
-0.0313720703125,
-0.03466796875,
0.0084075927734375,
-0.01023101806640625,
0.0145263671875,
-0.030364990234375,
-0.07122802734375,
0.07489013671875,
-0.00014781951904296875,
-0.02996826171875,
-0.048553466796875,
0.0109100341796875,
-0.0289764404296875,
0.064208984375,
0.0019245147705078125,
-0.00518035888671875,
0.004486083984375,
0.05328369140625,
0.0203857421875,
-0.0257720947265625,
0.0626220703125,
-0.01971435546875,
-0.007625579833984375,
0.01342010498046875,
0.0237579345703125,
0.0010175704956054688,
0.01800537109375,
0.00499725341796875,
0.0234222412109375,
0.023590087890625,
-0.051055908203125,
0.0173492431640625,
-0.0171661376953125,
0.0014963150024414062,
-0.028167724609375,
-0.0012655258178710938,
-0.010833740234375,
-0.0088958740234375,
0.0565185546875,
0.0579833984375,
0.0124359130859375,
-0.009765625,
0.005889892578125,
-0.052978515625,
0.0013704299926757812,
-0.02423095703125,
0.018310546875,
-0.0963134765625,
-0.038848876953125,
0.07470703125,
-0.027923583984375,
0.014251708984375,
-0.031219482421875,
-0.050445556640625,
0.002964019775390625,
-0.0257415771484375,
0.01139068603515625,
-0.06085205078125,
0.05255126953125,
0.012664794921875,
-0.01995849609375,
0.0288848876953125,
-0.031341552734375,
-0.0154876708984375,
0.033447265625,
-0.0164794921875,
-0.0200042724609375,
0.0012884140014648438,
0.0014562606811523438,
0.04376220703125,
-0.0157623291015625,
0.00635528564453125,
-0.041015625,
0.0142059326171875,
-0.004886627197265625,
0.01418304443359375,
0.007114410400390625,
0.032867431640625,
-0.0003573894500732422,
0.0204620361328125,
0.01104736328125,
0.002197265625,
-0.00024247169494628906,
0.0098876953125,
-0.00690460205078125,
0.003082275390625,
0.0024280548095703125,
-0.0025882720947265625,
0.04205322265625,
-0.01300048828125,
0.01416015625,
0.006649017333984375,
-0.00653839111328125,
-0.0157470703125,
-0.00861358642578125,
0.0026569366455078125,
-0.0267791748046875,
0.00707244873046875
] |
07c3dbf80bef367e6259e1ebfa5a64641b6726c2
|
Wordpress Stackexchange
Q: How safe / sanitized is wp_insert_posts()? Looking at the Codex for wp_insert_post() it states that this function "...sanitizes variables, does some checks, fills in missing variables like date/time, etc. " (EDIT: I updated the Codex entry to include a more robust example that includes security as well as post meta and category assignment)
Just wondering whether I need to do any further sanitization to prevent XSS hacks and the like or whether enough is being done through the function.
To be honest, I've checked through the function in core and haven't found any wp_kses() or other sanitization on post_content for example, so I'm a little concerned. All I can see that it does is stripslashes_deep() on the data.
So should I be running wp_kses() or anything else when I build my arguments to wp_insert_post()?
What's the best practice here? The Codex is pretty cavalier about security in its example.
Thanks
A: You don't have to do anything.
On WP load:
'init' hook -> kses_init() -> kses_init_filters()
Later:
wp_insert_post() -> sanitize_post() -> sanitize_post_field() -> 'content_save_pre' -> wp_filter_post_kses()
Similarly for post titles, comment text etc.
Conclusion: wp_insert_post() is very sanitized. :)
|
Q: How safe / sanitized is wp_insert_posts()? Looking at the Codex for wp_insert_post() it states that this function "...sanitizes variables, does some checks, fills in missing variables like date/time, etc. " (EDIT: I updated the Codex entry to include a more robust example that includes security as well as post meta and category assignment)
Just wondering whether I need to do any further sanitization to prevent XSS hacks and the like or whether enough is being done through the function.
To be honest, I've checked through the function in core and haven't found any wp_kses() or other sanitization on post_content for example, so I'm a little concerned. All I can see that it does is stripslashes_deep() on the data.
So should I be running wp_kses() or anything else when I build my arguments to wp_insert_post()?
What's the best practice here? The Codex is pretty cavalier about security in its example.
Thanks
A: You don't have to do anything.
On WP load:
'init' hook -> kses_init() -> kses_init_filters()
Later:
wp_insert_post() -> sanitize_post() -> sanitize_post_field() -> 'content_save_pre' -> wp_filter_post_kses()
Similarly for post titles, comment text etc.
Conclusion: wp_insert_post() is very sanitized. :)
|
wordpress
|
{
"language": "en",
"length": 190,
"provenance": "stackexchange_00019.jsonl.gz:411774",
"question_score": "13",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24436"
}
|
[
0.061309814453125,
0.0077667236328125,
0.0044403076171875,
-0.036651611328125,
0.0252227783203125,
-0.03118896484375,
0.0439453125,
-0.030059814453125,
-0.026763916015625,
0.040740966796875,
0.00823211669921875,
0.0233917236328125,
-0.0030574798583984375,
-0.018341064453125,
0.005153656005859375,
-0.0014886856079101562,
0.0154571533203125,
-0.01311492919921875,
0.056060791015625,
-0.0007567405700683594,
0.0091400146484375,
-0.0162811279296875,
0.06512451171875,
-0.057708740234375,
0.002105712890625,
-0.00968170166015625,
0.062744140625,
-0.004940032958984375,
0.019012451171875,
0.01172637939453125,
0.0257415771484375,
-0.04937744140625,
0.01222991943359375,
0.05181884765625,
-0.060150146484375,
0.04388427734375,
-0.007152557373046875,
0.038543701171875,
0.01702880859375,
0.0129852294921875,
0.003917694091796875,
0.00423431396484375,
0.03118896484375,
0.003177642822265625,
-0.0010700225830078125,
-0.020355224609375,
0.0205230712890625,
-0.0131072998046875,
0.006755828857421875,
-0.033111572265625,
0.02056884765625,
-0.0006909370422363281,
0.05328369140625,
-0.0965576171875,
-0.0096435546875,
-0.00499725341796875,
-0.084228515625,
0.03594970703125,
0.021392822265625,
0.06317138671875,
0.01523590087890625,
-0.0106048583984375,
-0.032012939453125,
-0.0367431640625,
0.0205841064453125,
-0.01055908203125,
0.01477813720703125,
0.0187225341796875,
-0.09136962890625,
0.008544921875,
0.06707763671875,
-0.0430908203125,
0.0257110595703125,
-0.051849365234375,
0.0148773193359375,
0.006015777587890625,
-0.04071044921875,
-0.030029296875,
0.045196533203125,
-0.022186279296875,
-0.004512786865234375,
-0.028472900390625,
0.0014162063598632812,
-0.0423583984375,
0.0172119140625,
-0.025421142578125,
-0.00836944580078125,
0.0237884521484375,
0.004032135009765625,
-0.0029926300048828125,
-0.0096435546875,
-0.0019483566284179688,
0.007320404052734375,
0.017486572265625,
-0.014373779296875,
-0.002838134765625,
-0.01401519775390625,
0.0179290771484375,
-0.0205078125,
0.035308837890625,
0.0027828216552734375,
-0.03375244140625,
0.045745849609375,
-0.029876708984375,
0.0146942138671875,
0.039398193359375,
0.0004487037658691406,
-0.01837158203125,
0.0195465087890625,
0.00727081298828125,
-0.005321502685546875,
0.0077667236328125,
0.0265045166015625,
-0.02935791015625,
-0.055206298828125,
0.02813720703125,
0.03912353515625,
-0.02496337890625,
0.0187530517578125,
-0.0084228515625,
0.00997161865234375,
0.0133209228515625,
0.0115509033203125,
-0.05572509765625,
-0.006801605224609375,
-0.04571533203125,
-0.04351806640625,
0.00946807861328125,
0.00974273681640625,
0.0369873046875,
-0.054168701171875,
0.0040283203125,
0.09942626953125,
0.02081298828125,
0.0179901123046875,
-0.03961181640625,
-0.0085601806640625,
-0.0008769035339355469,
0.0101470947265625,
0.03302001953125,
-0.031402587890625,
-0.045166015625,
0.0197601318359375,
-0.0145416259765625,
0.03106689453125,
0.0249786376953125,
0.01177215576171875,
0.0241241455078125,
0.0245361328125,
-0.05169677734375,
0.043426513671875,
-0.0207672119140625,
0.039825439453125,
-0.011566162109375,
-0.0169677734375,
-0.034942626953125,
-0.02960205078125,
-0.01983642578125,
0.00785064697265625,
-0.0209808349609375,
0.0203704833984375,
0.0021915435791015625,
0.0259552001953125,
0.01511383056640625,
-0.01110076904296875,
0.0016336441040039062,
-0.031097412109375,
-0.006198883056640625,
0.00969696044921875,
0.0396728515625,
-0.0148162841796875,
-0.00630950927734375,
-0.047027587890625,
-0.0261688232421875,
-0.019134521484375,
-0.0102691650390625,
0.007038116455078125,
0.01007843017578125,
0.0210113525390625,
0.065185546875,
0.028106689453125,
-0.0161590576171875,
0.05950927734375,
-0.005496978759765625,
-0.0051116943359375,
-0.02740478515625,
0.0179595947265625,
0.0209808349609375,
0.01377105712890625,
0.031951904296875,
-0.01045989990234375,
0.0041961669921875,
0.01398468017578125,
-0.02545166015625,
0.018035888671875,
-0.048919677734375,
0.030609130859375,
-0.0216827392578125,
0.010650634765625,
0.0160675048828125,
0.00614166259765625,
-0.023284912109375,
0.048736572265625,
-0.0019683837890625,
-0.0266876220703125,
0.00795745849609375,
-0.031341552734375,
0.0267181396484375,
-0.026702880859375,
0.0276031494140625,
0.031951904296875,
-0.0035247802734375,
-0.0219573974609375,
-0.0128936767578125,
-0.0023937225341796875,
-0.0180816650390625,
-0.043914794921875,
0.0250244140625,
-0.0160675048828125,
0.050048828125,
-0.020294189453125,
-0.00606536865234375,
-0.01424407958984375,
-0.054412841796875,
0.04058837890625,
-0.017364501953125,
-0.005855560302734375,
-0.0195770263671875,
0.0212249755859375,
-0.00789642333984375,
0.03338623046875,
0.03436279296875,
0.08673095703125,
0.03399658203125,
-0.029541015625,
-0.00228118896484375,
0.004878997802734375,
-0.06256103515625,
-0.0155792236328125,
0.06805419921875,
0.034912109375,
0.06201171875,
-0.020538330078125,
-0.036407470703125,
0.0794677734375,
-0.0655517578125,
-0.01081085205078125,
-0.0207672119140625,
0.02850341796875,
0.07550048828125,
-0.02899169921875,
0.00946807861328125,
-0.004978179931640625,
-0.06982421875,
0.0313720703125,
0.0149078369140625,
-0.0286407470703125,
-0.03411865234375,
0.00933074951171875,
0.01087188720703125,
-0.00015401840209960938,
-0.0361328125,
0.0013713836669921875,
-0.0238494873046875,
0.0426025390625,
-0.037322998046875,
0.01514434814453125,
-0.0004870891571044922,
0.016204833984375,
-0.03106689453125,
0.0110015869140625,
-0.0556640625,
-0.0133819580078125,
0.0229949951171875,
0.0250244140625,
0.009552001953125,
-0.0657958984375,
0.015960693359375,
0.0166473388671875,
0.0218963623046875,
0.008026123046875,
0.065673828125,
0.0275115966796875,
-0.01415252685546875,
-0.029083251953125,
-0.0305328369140625,
0.00909423828125,
0.023162841796875,
0.0018062591552734375,
-0.0305633544921875,
0.0007200241088867188,
0.00457000732421875,
-0.03253173828125,
0.0421142578125,
0.0008311271667480469,
-0.0300140380859375,
-0.00035500526428222656,
-0.054962158203125,
0.0264129638671875,
-0.018585205078125,
0.059356689453125,
0.07025146484375,
0.0216217041015625,
-0.01195526123046875,
0.017578125,
0.0011348724365234375,
0.0127410888671875,
0.031402587890625,
-0.00269317626953125,
-0.0335693359375,
-0.041656494140625,
-0.03790283203125,
0.0253448486328125,
0.09466552734375,
-0.0526123046875,
-0.045989990234375,
-0.008056640625,
0.039764404296875,
-0.03533935546875,
-0.0277862548828125,
-0.036956787109375,
-0.009063720703125,
-0.05914306640625,
-0.0200042724609375,
-0.015472412109375,
0.04656982421875,
-0.0489501953125,
-0.00962066650390625,
-0.0193328857421875,
-0.01357269287109375,
-0.04132080078125,
-0.02197265625,
-0.03125,
0.041656494140625,
-0.0013914108276367188,
-0.0037937164306640625,
0.01030731201171875,
0.087646484375,
0.015411376953125,
-0.04693603515625,
0.0228271484375,
0.005985260009765625,
-0.025604248046875,
0.0283966064453125,
-0.0384521484375,
-0.0089569091796875,
0.00437164306640625,
-0.0178680419921875,
-0.001407623291015625,
-0.002452850341796875,
0.0262451171875,
-0.0013103485107421875,
0.01297760009765625,
-0.00943756103515625,
0.0164031982421875,
0.043304443359375,
-0.01425933837890625,
-0.01407623291015625,
0.034881591796875,
-0.048492431640625,
0.01557159423828125,
0.003612518310546875,
-0.0005011558532714844,
-0.0167999267578125,
-0.021392822265625,
-0.015960693359375,
-0.0113983154296875,
0.01305389404296875,
0.01465606689453125,
0.02862548828125,
0.040924072265625,
0.0077056884765625,
-0.0189971923828125,
-0.01239776611328125,
-0.00807952880859375,
-0.02642822265625,
-0.00777435302734375,
-0.032928466796875,
0.0230865478515625,
-0.01092529296875,
-0.01316070556640625,
-0.0170440673828125,
0.009918212890625,
-0.025787353515625,
-0.019989013671875,
0.0276947021484375,
-0.023834228515625,
0.048492431640625,
-0.050872802734375,
-0.0168609619140625,
-0.049102783203125,
0.053741455078125,
-0.036529541015625,
-0.0008015632629394531,
0.00033926963806152344,
-0.004032135009765625,
-0.0426025390625,
-0.037109375,
-0.06207275390625,
0.000823974609375,
-0.041229248046875,
0.01233673095703125,
-0.0017061233520507812,
-0.0220489501953125,
-0.0169525146484375,
-0.0087127685546875,
-0.0221405029296875,
-0.01088714599609375,
0.0235748291015625,
-0.01148223876953125,
0.00978851318359375,
0.01169586181640625,
-0.0184478759765625,
0.0035419464111328125,
-0.031463623046875,
-0.00856781005859375,
-0.0953369140625,
-0.01042938232421875,
-0.0021419525146484375,
0.07122802734375,
0.0071868896484375,
-0.034088134765625,
-0.03179931640625,
0.033538818359375,
0.007793426513671875,
0.0350341796875,
0.01580810546875,
0.02679443359375,
-0.0139617919921875,
-0.01861572265625,
0.029571533203125,
-0.02935791015625,
-0.002399444580078125,
-0.01058197021484375,
-0.033233642578125,
-0.0521240234375,
-0.02783203125,
-0.03680419921875,
0.01456451416015625,
-0.03057861328125,
-0.0061798095703125,
-0.04443359375,
-0.01885986328125,
0.01537322998046875,
-0.00921630859375,
-0.00563812255859375,
-0.043701171875,
-0.0084381103515625,
0.05670166015625,
-0.007320404052734375,
0.00007599592208862305,
-0.0162353515625,
0.07647705078125,
0.01284027099609375,
-0.017364501953125,
-0.0203399658203125,
-0.0125732421875,
0.005031585693359375,
-0.0303955078125,
0.055633544921875,
0.026123046875,
0.01593017578125,
-0.006160736083984375,
-0.03704833984375,
-0.0018606185913085938,
-0.03436279296875,
0.0816650390625,
-0.0113372802734375,
0.0340576171875,
-0.021575927734375,
-0.035125732421875,
0.042816162109375,
0.005077362060546875,
-0.0027179718017578125,
-0.00548553466796875,
0.0005364418029785156,
0.0214080810546875,
-0.009521484375,
0.0242767333984375,
-0.01216888427734375,
-0.036224365234375,
0.01006317138671875,
0.00771331787109375,
-0.0017976760864257812,
0.00408935546875,
0.004852294921875,
-0.0044097900390625,
-0.007801055908203125,
0.0077056884765625,
0.0002753734588623047,
0.0033855438232421875,
0.006275177001953125,
0.042877197265625,
-0.01132965087890625,
0.0107879638671875,
-0.01412200927734375,
-0.007663726806640625,
0.028533935546875,
-0.007671356201171875,
-0.0173492431640625,
-0.02093505859375,
-0.005809783935546875,
0.00852203369140625,
0.030670166015625,
0.020416259765625,
-0.0135650634765625,
0.0017843246459960938,
0.000415802001953125,
0.0305938720703125,
0.047943115234375,
-0.0019350051879882812,
0.00666046142578125,
-0.0190582275390625,
-0.00502777099609375,
-0.01461029052734375,
0.039703369140625,
0.004261016845703125,
-0.01080322265625,
0.0228118896484375,
-0.030181884765625,
0.048828125,
0.040740966796875,
0.0208282470703125,
0.0278472900390625,
-0.0146331787109375,
-0.01142120361328125,
-0.01078033447265625,
-0.043182373046875,
-0.0292510986328125,
-0.040679931640625,
0.01409912109375,
-0.00672149658203125,
-0.044036865234375,
0.0004792213439941406,
0.0406494140625,
0.0361328125,
-0.01546478271484375,
0.018951416015625,
-0.009857177734375,
-0.032012939453125,
-0.01910400390625,
-0.007022857666015625,
0.02508544921875,
0.003910064697265625,
-0.001026153564453125,
0.006877899169921875,
-0.048675537109375,
-0.0006570816040039062,
-0.00504302978515625,
0.025482177734375,
-0.05218505859375,
-0.06719970703125,
0.0096893310546875,
-0.054412841796875,
-0.0341796875,
0.0211334228515625,
0.052978515625,
-0.04095458984375,
-0.0277557373046875,
0.047576904296875,
-0.0249786376953125,
0.05511474609375,
-0.025543212890625,
-0.00606536865234375,
0.059906005859375,
0.030029296875,
-0.01273345947265625,
-0.0242919921875,
0.0182952880859375,
-0.01331329345703125,
-0.0271759033203125,
-0.0285797119140625,
-0.004680633544921875,
0.0191650390625,
-0.04644775390625,
0.00799560546875,
-0.00647735595703125,
0.04132080078125,
-0.026580810546875,
-0.0274200439453125,
0.0222930908203125,
0.00933074951171875,
-0.019927978515625,
0.044189453125,
-0.0263519287109375,
0.05218505859375,
-0.0089874267578125,
0.006290435791015625,
-0.0027751922607421875,
0.025909423828125,
0.0176544189453125,
-0.008026123046875,
-0.031982421875,
-0.06475830078125,
0.03411865234375,
0.0047454833984375,
0.05010986328125,
0.049224853515625,
0.0113525390625,
0.01849365234375,
0.0418701171875,
0.009674072265625,
0.02203369140625,
-0.00855255126953125,
-0.02978515625,
-0.0171051025390625,
-0.00872039794921875,
0.06402587890625,
-0.01549530029296875,
0.01384735107421875,
-0.00550079345703125,
0.0051422119140625,
-0.0029449462890625,
-0.01371002197265625,
-0.0045166015625,
0.0103759765625,
-0.027069091796875,
0.033416748046875,
0.06939697265625,
0.021728515625,
0.058258056640625,
0.007144927978515625,
0.0233306884765625,
0.0098419189453125,
-0.0141143798828125,
-0.027557373046875,
-0.03057861328125,
0.0180816650390625,
0.0023899078369140625,
0.007232666015625,
0.038665771484375,
-0.006683349609375,
0.04443359375,
0.09375,
0.10003662109375,
-0.0745849609375,
-0.010833740234375,
0.018798828125,
-0.0775146484375,
0.01053619384765625,
-0.014617919921875,
0.0172271728515625,
-0.0020160675048828125,
0.055755615234375,
-0.031829833984375,
-0.007122039794921875,
0.032806396484375,
-0.03790283203125,
-0.01073455810546875,
-0.0198516845703125,
0.07183837890625,
0.0173797607421875,
-0.0303955078125,
0.0242919921875,
-0.0018320083618164062,
-0.0008859634399414062,
-0.026458740234375,
0.033050537109375,
0.0035858154296875,
-0.0137481689453125,
-0.0810546875,
0.000022530555725097656,
0.006256103515625,
-0.0304718017578125,
-0.0204925537109375,
0.02239990234375,
0.055999755859375,
0.0615234375,
0.010894775390625,
-0.03509521484375,
0.036285400390625,
0.023773193359375,
-0.0182952880859375,
-0.020111083984375,
0.0258026123046875,
0.052581787109375,
-0.01543426513671875,
0.02899169921875,
0.01198577880859375,
-0.0280609130859375,
-0.0006990432739257812,
0.00914764404296875,
0.073974609375,
-0.0302734375,
-0.0129547119140625,
0.01117706298828125,
0.0097198486328125,
0.014373779296875,
-0.01444244384765625,
0.03485107421875,
-0.057891845703125,
-0.0222320556640625,
0.002651214599609375,
-0.0069732666015625,
-0.0293121337890625,
-0.0039215087890625,
-0.09344482421875,
0.089599609375,
0.059814453125,
0.042236328125,
-0.01352691650390625,
0.02349853515625,
-0.0643310546875,
-0.0291748046875,
-0.0150299072265625,
0.051910400390625,
0.00223541259765625,
0.01242828369140625,
-0.0570068359375,
-0.0190887451171875,
0.00007671117782592773,
0.06414794921875,
0.027587890625,
0.003292083740234375,
0.01323699951171875,
-0.0303955078125,
0.00467681884765625,
0.02630615234375,
-0.02142333984375,
0.00627899169921875,
0.00022733211517333984,
0.03778076171875,
0.03546142578125,
-0.028411865234375,
0.0308990478515625,
-0.0206756591796875,
-0.0277862548828125,
0.006725311279296875,
0.005336761474609375,
-0.0228118896484375,
0.0010423660278320312,
-0.016448974609375,
-0.0009832382202148438,
-0.005176544189453125,
-0.01342010498046875,
0.01178741455078125,
-0.0119781494140625,
0.0272369384765625,
0.01203155517578125,
-0.0204010009765625,
-0.0304107666015625,
-0.028076171875,
0.034576416015625,
0.004169464111328125,
0.045135498046875,
0.07220458984375,
0.02581787109375,
0.059600830078125,
0.0137786865234375,
0.032928466796875,
0.0057525634765625,
0.0045623779296875,
0.0204925537109375,
0.0274658203125,
0.0092620849609375,
-0.0379638671875,
-0.032470703125,
0.06671142578125,
0.050018310546875,
-0.0218963623046875,
-0.0016717910766601562,
0.0174560546875,
0.02032470703125,
-0.038055419921875,
-0.042694091796875,
-0.0350341796875,
-0.028228759765625,
0.0157318115234375,
0.0033283233642578125,
-0.01203155517578125,
0.00855255126953125,
0.0125274658203125,
0.007717132568359375,
0.03094482421875,
-0.0012302398681640625,
-0.004421234130859375,
-0.041015625,
-0.00012087821960449219,
-0.0013456344604492188,
0.0546875,
0.032012939453125,
0.037017822265625,
-0.006072998046875,
-0.0240020751953125,
-0.0229339599609375,
0.05242919921875,
0.036041259765625,
0.01100921630859375,
0.0157470703125,
-0.01462554931640625,
0.04180908203125,
-0.00702667236328125,
0.02044677734375,
0.059112548828125,
0.05340576171875,
0.0020732879638671875,
-0.043487548828125,
0.0011606216430664062,
0.051666259765625,
-0.039276123046875,
-0.046630859375,
-0.0188446044921875,
-0.01090240478515625,
0.037139892578125,
-0.01027679443359375,
0.02276611328125,
0.01800537109375,
0.0244598388671875,
0.025421142578125,
0.01230621337890625,
0.0140838623046875,
-0.00655364990234375,
0.0355224609375,
0.01123809814453125,
0.0005164146423339844,
0.051025390625,
0.00238800048828125,
-0.0000928044319152832,
-0.006458282470703125,
-0.04217529296875,
-0.0016298294067382812,
0.021484375,
0.0260772705078125,
-0.00605010986328125,
0.069091796875,
-0.05419921875,
0.040771484375,
0.03857421875,
0.00275421142578125,
-0.02191162109375,
0.0255279541015625,
-0.0164031982421875,
-0.0311126708984375,
-0.005008697509765625,
0.0160675048828125,
0.0217132568359375,
-0.0469970703125,
0.042724609375,
-0.0186004638671875,
-0.012664794921875,
-0.016571044921875,
-0.0045623779296875,
-0.0279388427734375,
0.0204010009765625,
-0.00527191162109375,
-0.0008282661437988281,
0.004482269287109375,
-0.002685546875,
0.0029773712158203125,
0.020233154296875,
0.01910400390625,
-0.036376953125,
0.007781982421875,
-0.024932861328125,
0.020263671875,
-0.0186614990234375,
0.04595947265625,
-0.016693115234375,
-0.0011081695556640625,
-0.059783935546875,
-0.0208282470703125,
0.055694580078125,
0.0140838623046875,
-0.0088348388671875,
0.0570068359375,
0.01160430908203125,
-0.005496978759765625,
0.029327392578125,
-0.07171630859375,
0.0091705322265625,
0.013946533203125,
0.0095367431640625,
0.00884246826171875,
-0.005901336669921875,
-0.0215301513671875,
-0.0196990966796875,
0.0310821533203125,
-0.0499267578125,
0.004711151123046875,
-0.039093017578125,
-0.042999267578125,
0.053741455078125,
0.056396484375,
0.0241546630859375,
0.0347900390625,
-0.0103302001953125,
-0.033660888671875,
0.0023860931396484375,
-0.0140228271484375,
-0.0277862548828125,
-0.03070068359375,
-0.0296630859375,
0.01094818115234375,
-0.047149658203125,
-0.08563232421875,
-0.0777587890625,
-0.024871826171875,
0.0159149169921875,
-0.02801513671875,
0.02001953125,
-0.041015625,
-0.01239776611328125,
0.025787353515625,
-0.021514892578125,
0.03369140625,
-0.0215606689453125,
0.0010824203491210938,
-0.050537109375,
-0.052398681640625,
-0.0283660888671875,
0.0565185546875,
-0.037445068359375,
0.01427459716796875,
0.0249786376953125,
-0.005756378173828125,
-0.0220184326171875,
0.0248870849609375,
0.01143646240234375,
0.06884765625,
-0.0060577392578125,
-0.02008056640625,
0.0262603759765625,
0.00673675537109375,
-0.0179595947265625,
-0.08184814453125,
-0.001415252685546875,
-0.0626220703125,
0.031402587890625,
-0.0258941650390625,
-0.00027751922607421875,
0.014129638671875,
-0.03765869140625,
-0.07769775390625,
0.0811767578125,
-0.0263671875,
-0.0280609130859375,
-0.033935546875,
0.008392333984375,
-0.00455474853515625,
0.022674560546875,
-0.00856781005859375,
-0.00965118408203125,
-0.02374267578125,
0.01343536376953125,
0.00222015380859375,
0.01995849609375,
0.028564453125,
0.003993988037109375,
-0.0289764404296875,
0.003177642822265625,
-0.017303466796875,
-0.0142364501953125,
0.01873779296875,
0.0031452178955078125,
0.048553466796875,
0.046600341796875,
-0.026702880859375,
0.0577392578125,
0.00260162353515625,
-0.0169677734375,
-0.024169921875,
-0.00225830078125,
-0.00848388671875,
0.005420684814453125,
0.08319091796875,
0.050872802734375,
0.0180511474609375,
-0.041748046875,
0.0247955322265625,
-0.026519775390625,
0.0092620849609375,
0.01329803466796875,
-0.0239715576171875,
-0.005336761474609375,
-0.00926971435546875,
0.0018596649169921875,
0.0361328125,
-0.0029697418212890625,
-0.0119476318359375,
0.034515380859375,
-0.0360107421875,
0.0248870849609375,
-0.023590087890625,
0.044830322265625,
-0.03759765625,
0.043914794921875,
-0.0411376953125,
-0.048919677734375,
0.037872314453125,
0.0162353515625,
-0.0215301513671875,
0.06732177734375,
0.0297088623046875,
-0.00848388671875,
-0.026611328125,
-0.02838134765625,
0.028350830078125,
0.036651611328125,
0.0036792755126953125,
-0.05010986328125,
0.0026683807373046875,
0.01331329345703125,
-0.0175018310546875,
0.0200347900390625,
0.016845703125,
0.03961181640625,
-0.01030731201171875,
0.07513427734375,
-0.048248291015625,
0.025115966796875,
-0.01192474365234375,
0.0004398822784423828,
-0.019287109375,
0.023193359375,
0.04205322265625,
-0.01561737060546875,
-0.0010957717895507812,
0.0026645660400390625,
-0.004657745361328125,
-0.01617431640625,
0.002109527587890625,
-0.03009033203125,
0.01053619384765625,
0.004730224609375
] |
68142ef935e89a3e8d80efc894413c599c713889
|
Wordpress Stackexchange
Q: Disable WordPress' blogging functionality and disable 'posts' I'm currently using WordPress for a website and it will simply be acting as a CMS rather than a blogging platform. This means that WordPress' 'posts' are not needed. Is there anyway of disabling them by adding some code to functions.php?
It would be acceptable to just remove the 'posts' option from wp-admin.
A: Posts are a broader category than they initially appear to be. The post is any content, even if you're using WP as a CMS. While it might seem like a post is a blog post, really it's anything you post on the site. Disabling it will kill all content. Better to turn off the various bloggy components, such as comments, and then edit the template files to remove references to the author, date posted, etc, to achieve a CMS site.
|
Q: Disable WordPress' blogging functionality and disable 'posts' I'm currently using WordPress for a website and it will simply be acting as a CMS rather than a blogging platform. This means that WordPress' 'posts' are not needed. Is there anyway of disabling them by adding some code to functions.php?
It would be acceptable to just remove the 'posts' option from wp-admin.
A: Posts are a broader category than they initially appear to be. The post is any content, even if you're using WP as a CMS. While it might seem like a post is a blog post, really it's anything you post on the site. Disabling it will kill all content. Better to turn off the various bloggy components, such as comments, and then edit the template files to remove references to the author, date posted, etc, to achieve a CMS site.
A: I don't know if I'm covering everywhere the post functionality is linked from, but adding the following code to functions.php should at least remove the comments links from the administration menu, the toolbar, and the dashboard:
add_action( 'admin_menu', 'remove_admin_menus' );
add_action( 'wp_before_admin_bar_render', 'remove_toolbar_menus' );
add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' );
function remove_admin_menus() {
remove_menu_page( 'edit.php' );
}
function remove_toolbar_menus() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu( 'new-post' );
}
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);
}
The only links I can see that are remaining are in the "Right Now" metabox on the dashboard; you can also remove this entire box by adding the following code into the remove_dashboard_widgets function:
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
A: Use this Hide admin panels plugin to hide panels.
|
wordpress
|
{
"language": "en",
"length": 260,
"provenance": "stackexchange_00019.jsonl.gz:411781",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24454"
}
|
[
0.08489990234375,
0.00263214111328125,
0.030120849609375,
0.03289794921875,
0.0021953582763671875,
-0.049591064453125,
0.0887451171875,
-0.06549072265625,
0.019561767578125,
0.0257568359375,
-0.005828857421875,
-0.034881591796875,
0.00275421142578125,
-0.0253448486328125,
-0.031524658203125,
-0.030426025390625,
0.03564453125,
0.0081634521484375,
0.0222320556640625,
-0.0107574462890625,
0.0017042160034179688,
0.01255035400390625,
0.0231475830078125,
0.050567626953125,
0.0004267692565917969,
0.015350341796875,
0.0557861328125,
-0.031646728515625,
-0.00432586669921875,
-0.0265655517578125,
0.00743865966796875,
0.01454925537109375,
0.002048492431640625,
0.05364990234375,
-0.0416259765625,
-0.041046142578125,
-0.054656982421875,
0.03289794921875,
0.0106048583984375,
-0.01346588134765625,
0.005756378173828125,
-0.0002956390380859375,
0.028778076171875,
0.01276397705078125,
-0.005626678466796875,
-0.01251220703125,
-0.004978179931640625,
-0.04168701171875,
0.0341796875,
-0.0267181396484375,
-0.013671875,
0.016387939453125,
0.01035308837890625,
-0.04962158203125,
-0.0322265625,
-0.0345458984375,
0.0166168212890625,
0.0097503662109375,
0.033111572265625,
-0.023773193359375,
-0.0350341796875,
-0.009185791015625,
0.016510009765625,
-0.01421356201171875,
0.0310516357421875,
-0.01473236083984375,
0.018157958984375,
0.031585693359375,
-0.1109619140625,
0.02716064453125,
0.0845947265625,
-0.0748291015625,
0.01155853271484375,
-0.023284912109375,
0.0288543701171875,
-0.011322021484375,
-0.0194244384765625,
-0.01490020751953125,
0.01422882080078125,
0.023712158203125,
0.007720947265625,
0.0215606689453125,
-0.014923095703125,
-0.0360107421875,
0.0038242340087890625,
-0.0234222412109375,
-0.01470184326171875,
-0.01007080078125,
-0.030242919921875,
-0.0277252197265625,
-0.02740478515625,
-0.006649017333984375,
-0.0533447265625,
0.0009379386901855469,
-0.00168609619140625,
-0.0192108154296875,
0.01396942138671875,
0.018524169921875,
-0.0202178955078125,
-0.0280914306640625,
0.002593994140625,
-0.0240631103515625,
-0.0262298583984375,
0.00254058837890625,
0.01538848876953125,
0.057220458984375,
-0.034820556640625,
-0.0360107421875,
0.04296875,
0.0294036865234375,
0.02056884765625,
0.00896453857421875,
0.0099639892578125,
-0.004451751708984375,
-0.0016050338745117188,
0.00487518310546875,
-0.0201416015625,
0.038238525390625,
0.002685546875,
0.0182647705078125,
-0.00292205810546875,
0.0299530029296875,
-0.0287017822265625,
0.002086639404296875,
-0.0014324188232421875,
0.00820159912109375,
0.00872039794921875,
-0.0157318115234375,
0.035430908203125,
0.00725555419921875,
-0.034942626953125,
0.0037937164306640625,
0.0509033203125,
0.0164794921875,
0.007404327392578125,
-0.01418304443359375,
0.007251739501953125,
-0.0182342529296875,
-0.001766204833984375,
0.00390625,
0.01122283935546875,
-0.0443115234375,
-0.0213775634765625,
0.00922393798828125,
0.01194000244140625,
-0.009613037109375,
0.00847625732421875,
0.03570556640625,
0.0272064208984375,
-0.00537109375,
0.00858306884765625,
0.0166473388671875,
0.0025634765625,
0.027618408203125,
0.00785064697265625,
-0.00667572021484375,
0.024993896484375,
-0.0266265869140625,
0.015960693359375,
-0.034027099609375,
0.0206451416015625,
0.00521087646484375,
0.028717041015625,
-0.0028858184814453125,
-0.0223541259765625,
-0.002674102783203125,
-0.03009033203125,
-0.00940704345703125,
0.026123046875,
0.0005488395690917969,
0.005260467529296875,
-0.041534423828125,
0.020111083984375,
0.0186767578125,
0.004802703857421875,
0.046234130859375,
0.00836181640625,
-0.03448486328125,
0.0128631591796875,
0.06329345703125,
0.0276336669921875,
-0.0008668899536132812,
0.0250396728515625,
0.0124969482421875,
-0.064453125,
0.02569580078125,
0.039520263671875,
0.05718994140625,
-0.0073089599609375,
0.0229949951171875,
0.08709716796875,
0.0242919921875,
0.012481689453125,
0.01448822021484375,
0.0035114288330078125,
-0.058197021484375,
-0.024932861328125,
-0.00873565673828125,
-0.01247406005859375,
0.0010652542114257812,
0.057098388671875,
0.037322998046875,
-0.031982421875,
-0.0242462158203125,
-0.0682373046875,
-0.005870819091796875,
-0.0090484619140625,
0.03179931640625,
-0.01132965087890625,
0.040618896484375,
0.019073486328125,
0.01186370849609375,
-0.040802001953125,
0.00695037841796875,
-0.0180816650390625,
-0.0284271240234375,
-0.0280303955078125,
0.01505279541015625,
-0.00823974609375,
0.021026611328125,
-0.01094818115234375,
-0.003326416015625,
0.005397796630859375,
0.023712158203125,
0.056060791015625,
-0.044342041015625,
0.016510009765625,
-0.05364990234375,
0.033477783203125,
-0.0167694091796875,
-0.035064697265625,
0.045196533203125,
0.011993408203125,
-0.00534820556640625,
-0.029022216796875,
0.0157623291015625,
0.0151519775390625,
-0.03057861328125,
-0.01427459716796875,
0.040740966796875,
0.0305328369140625,
0.0059967041015625,
-0.0037708282470703125,
0.0112457275390625,
0.005176544189453125,
-0.0298614501953125,
0.01195526123046875,
0.0062713623046875,
0.01120758056640625,
0.044891357421875,
0.01580810546875,
-0.004787445068359375,
0.01552581787109375,
-0.0166778564453125,
0.00385284423828125,
0.027069091796875,
-0.019195556640625,
0.00736236572265625,
0.016357421875,
-0.0220947265625,
0.01308441162109375,
0.0126190185546875,
-0.0121612548828125,
-0.00649261474609375,
0.03485107421875,
0.0093231201171875,
0.019317626953125,
0.0160675048828125,
-0.041046142578125,
0.031524658203125,
0.0290985107421875,
-0.01374053955078125,
-0.00614166259765625,
0.014373779296875,
0.04986572265625,
-0.033447265625,
-0.029052734375,
-0.0244903564453125,
0.007221221923828125,
0.0038661956787109375,
-0.0205078125,
-0.015411376953125,
-0.0136871337890625,
-0.01041412353515625,
0.01216888427734375,
-0.07244873046875,
0.02728271484375,
0.031341552734375,
-0.007640838623046875,
-0.024200439453125,
-0.003063201904296875,
0.018890380859375,
-0.0164642333984375,
0.0307464599609375,
0.026458740234375,
-0.024932861328125,
-0.01467132568359375,
-0.05096435546875,
0.049896240234375,
-0.0189666748046875,
0.0188446044921875,
0.0819091796875,
0.0130767822265625,
0.025299072265625,
0.0265960693359375,
-0.0079193115234375,
0.045257568359375,
0.006977081298828125,
0.004848480224609375,
0.0304107666015625,
-0.068359375,
-0.0013723373413085938,
0.01189422607421875,
0.03387451171875,
-0.00844573974609375,
-0.0362548828125,
-0.0013980865478515625,
0.03240966796875,
-0.05438232421875,
-0.045379638671875,
-0.01287841796875,
-0.0635986328125,
0.01203155517578125,
-0.0023136138916015625,
-0.0248260498046875,
-0.01654052734375,
0.0340576171875,
0.01313018798828125,
-0.022369384765625,
0.010894775390625,
-0.017303466796875,
-0.02349853515625,
-0.0526123046875,
-0.0201263427734375,
-0.0014505386352539062,
0.0277557373046875,
0.005939483642578125,
0.10760498046875,
0.002178192138671875,
-0.074951171875,
-0.00006598234176635742,
-0.032379150390625,
-0.0282135009765625,
0.04022216796875,
-0.00920867919921875,
0.017364501953125,
0.005084991455078125,
0.0151519775390625,
-0.021484375,
0.0124969482421875,
-0.018280029296875,
-0.026885986328125,
0.0023593902587890625,
0.00801849365234375,
0.0025272369384765625,
-0.039154052734375,
0.0031375885009765625,
-0.00959014892578125,
-0.0440673828125,
-0.051605224609375,
-0.058563232421875,
-0.0171356201171875,
-0.08740234375,
-0.035614013671875,
0.044403076171875,
0.0233917236328125,
-0.032928466796875,
0.008636474609375,
0.01189422607421875,
0.002349853515625,
-0.021820068359375,
-0.0176849365234375,
0.045074462890625,
0.010772705078125,
0.0406494140625,
-0.0021381378173828125,
-0.005619049072265625,
-0.042510986328125,
0.02813720703125,
-0.0182342529296875,
-0.0276947021484375,
-0.041046142578125,
0.0086822509765625,
-0.04046630859375,
-0.02557373046875,
0.033599853515625,
-0.033935546875,
-0.02410888671875,
0.017974853515625,
-0.00527191162109375,
0.0298309326171875,
0.045440673828125,
-0.0271453857421875,
0.0027408599853515625,
-0.01482391357421875,
-0.00659942626953125,
-0.014007568359375,
-0.038482666015625,
-0.055023193359375,
-0.00484466552734375,
-0.025848388671875,
0.0156707763671875,
-0.0175628662109375,
0.01049041748046875,
-0.01160430908203125,
0.040496826171875,
-0.00701904296875,
-0.01885986328125,
0.01287078857421875,
0.0018558502197265625,
-0.01332855224609375,
0.0031833648681640625,
-0.034271240234375,
0.000007212162017822266,
-0.0196533203125,
0.006786346435546875,
-0.03289794921875,
-0.00044226646423339844,
0.02496337890625,
-0.019989013671875,
-0.0068817138671875,
-0.0107574462890625,
-0.0010881423950195312,
0.021820068359375,
-0.019439697265625,
-0.0014524459838867188,
0.03515625,
0.032440185546875,
-0.0029277801513671875,
0.01457977294921875,
0.016632080078125,
-0.01861572265625,
-0.012115478515625,
-0.0012407302856445312,
0.0212249755859375,
0.0258026123046875,
-0.0189971923828125,
-0.0177459716796875,
0.00603485107421875,
-0.00928497314453125,
-0.02374267578125,
-0.00986480712890625,
-0.0254364013671875,
0.0273284912109375,
-0.030853271484375,
0.007232666015625,
-0.01488494873046875,
-0.040863037109375,
0.049774169921875,
-0.0130615234375,
-0.00580596923828125,
-0.0025348663330078125,
0.09942626953125,
0.0208587646484375,
-0.01239013671875,
-0.029754638671875,
0.00698089599609375,
0.044281005859375,
0.007152557373046875,
0.053131103515625,
0.039398193359375,
-0.0199432373046875,
0.03668212890625,
0.023162841796875,
-0.0263214111328125,
-0.020599365234375,
0.061248779296875,
-0.0061492919921875,
-0.00595855712890625,
0.00208282470703125,
-0.03265380859375,
0.048736572265625,
0.0218963623046875,
0.01690673828125,
-0.0440673828125,
0.0281524658203125,
0.06298828125,
-0.004703521728515625,
-0.01416778564453125,
-0.046478271484375,
-0.01444244384765625,
0.005828857421875,
-0.015380859375,
-0.0005211830139160156,
0.007610321044921875,
0.010162353515625,
-0.0228271484375,
-0.00754547119140625,
-0.01206207275390625,
0.0029964447021484375,
0.01409149169921875,
-0.0224151611328125,
0.00872802734375,
0.0122833251953125,
-0.032012939453125,
-0.007678985595703125,
-0.003711700439453125,
0.01751708984375,
-0.0214080810546875,
-0.0687255859375,
-0.01068878173828125,
0.01010894775390625,
0.059051513671875,
0.04266357421875,
-0.0027790069580078125,
0.05108642578125,
-0.01389312744140625,
0.0005106925964355469,
-0.00870513916015625,
-0.052642822265625,
-0.0277862548828125,
-0.051025390625,
-0.0011949539184570312,
0.0217132568359375,
-0.010162353515625,
0.0565185546875,
0.0197601318359375,
0.0046539306640625,
0.0396728515625,
-0.0285491943359375,
0.040924072265625,
0.043609619140625,
0.0188751220703125,
0.006397247314453125,
-0.0154571533203125,
-0.0094146728515625,
-0.0164642333984375,
-0.00576019287109375,
-0.03399658203125,
-0.02752685546875,
0.0111236572265625,
0.03631591796875,
0.0250396728515625,
0.00635528564453125,
-0.0010938644409179688,
0.0033111572265625,
-0.0183258056640625,
0.03912353515625,
0.01204681396484375,
-0.0413818359375,
-0.01165771484375,
-0.01297760009765625,
0.00787353515625,
-0.01102447509765625,
-0.0005202293395996094,
0.002735137939453125,
-0.021942138671875,
0.0020351409912109375,
-0.003509521484375,
-0.0214385986328125,
-0.005039215087890625,
0.006191253662109375,
-0.0203399658203125,
-0.0257568359375,
-0.0033550262451171875,
-0.0118408203125,
-0.025543212890625,
-0.00907135009765625,
0.01165008544921875,
0.00356292724609375,
-0.0242462158203125,
0.013916015625,
-0.01580810546875,
0.003692626953125,
0.0220947265625,
0.014556884765625,
0.0426025390625,
0.01535797119140625,
-0.09393310546875,
-0.0018053054809570312,
-0.058380126953125,
-0.0142974853515625,
-0.07476806640625,
-0.03924560546875,
-0.07501220703125,
0.024993896484375,
0.00798797607421875,
0.0109710693359375,
0.0033512115478515625,
-0.01282501220703125,
-0.025726318359375,
0.01091766357421875,
0.00890350341796875,
0.040771484375,
-0.0230865478515625,
0.059356689453125,
-0.00147247314453125,
0.048095703125,
0.021484375,
0.051483154296875,
-0.003231048583984375,
-0.041259765625,
0.04913330078125,
-0.051025390625,
-0.06341552734375,
-0.0250396728515625,
-0.052581787109375,
-0.0004718303680419922,
0.01253509521484375,
-0.0209808349609375,
0.005962371826171875,
-0.0131072998046875,
0.00560760498046875,
-0.03155517578125,
-0.04217529296875,
-0.034210205078125,
0.00846099853515625,
-0.050018310546875,
-0.0038394927978515625,
0.031768798828125,
-0.0209808349609375,
-0.0192108154296875,
0.017547607421875,
-0.00691986083984375,
0.0213470458984375,
0.00495147705078125,
0.0208892822265625,
0.007694244384765625,
0.03948974609375,
-0.0220184326171875,
0.0204620361328125,
0.027923583984375,
0.00936126708984375,
-0.00968170166015625,
0.0280609130859375,
-0.0396728515625,
-0.031341552734375,
0.0258026123046875,
0.01273345947265625,
-0.02239990234375,
0.0256500244140625,
-0.0299072265625,
0.0384521484375,
0.08843994140625,
0.09033203125,
-0.1090087890625,
0.0247955322265625,
0.007534027099609375,
-0.031646728515625,
0.06817626953125,
-0.02069091796875,
-0.01087188720703125,
-0.03631591796875,
0.046112060546875,
0.027069091796875,
-0.01425933837890625,
0.01303863525390625,
0.004001617431640625,
0.003993988037109375,
-0.00965118408203125,
0.07177734375,
0.0181121826171875,
-0.03564453125,
0.006771087646484375,
0.01512908935546875,
0.006351470947265625,
-0.03466796875,
-0.010650634765625,
0.00806427001953125,
-0.03118896484375,
-0.0823974609375,
0.006130218505859375,
-0.0130157470703125,
0.00452423095703125,
0.01493072509765625,
0.0012235641479492188,
-0.0285491943359375,
0.06640625,
-0.04766845703125,
0.034912109375,
0.024932861328125,
-0.041748046875,
-0.08416748046875,
-0.052490234375,
0.027862548828125,
0.046142578125,
-0.0275421142578125,
0.05828857421875,
0.01534271240234375,
-0.0711669921875,
-0.01459503173828125,
0.00888824462890625,
0.09613037109375,
-0.00424957275390625,
-0.03729248046875,
0.0178985595703125,
-0.0125274658203125,
-0.0187835693359375,
-0.052001953125,
0.0087738037109375,
-0.03155517578125,
0.034271240234375,
-0.045440673828125,
0.01898193359375,
0.01071929931640625,
-0.0643310546875,
-0.043243408203125,
0.1397705078125,
-0.033111572265625,
0.0110321044921875,
0.004825592041015625,
0.06427001953125,
-0.0167236328125,
0.0457763671875,
-0.016357421875,
0.037200927734375,
-0.00696563720703125,
0.054412841796875,
-0.046539306640625,
-0.0132598876953125,
0.0243988037109375,
0.04278564453125,
0.0794677734375,
0.01154327392578125,
-0.007053375244140625,
-0.04034423828125,
0.0243377685546875,
0.060760498046875,
-0.0027904510498046875,
0.000850677490234375,
-0.037811279296875,
0.045654296875,
-0.01385498046875,
-0.06884765625,
0.0231781005859375,
-0.031402587890625,
-0.056610107421875,
-0.007747650146484375,
0.01084136962890625,
0.0202178955078125,
0.00408935546875,
0.0060882568359375,
0.01348114013671875,
-0.00677490234375,
-0.00620269775390625,
0.0009288787841796875,
-0.0279388427734375,
0.050689697265625,
0.0335693359375,
-0.059967041015625,
-0.002094268798828125,
-0.0489501953125,
0.050445556640625,
0.0185089111328125,
0.01324462890625,
0.0118408203125,
0.0245361328125,
-0.01511383056640625,
-0.0274200439453125,
0.0152587890625,
0.0206756591796875,
-0.057952880859375,
0.0250244140625,
0.02288818359375,
0.0276641845703125,
-0.017242431640625,
0.007472991943359375,
0.0005068778991699219,
0.0216827392578125,
-0.0287933349609375,
-0.00994110107421875,
0.0029811859130859375,
-0.0011072158813476562,
0.0151824951171875,
-0.036102294921875,
0.005695343017578125,
0.00201416015625,
0.0007801055908203125,
0.0067291259765625,
0.00949859619140625,
0.0239105224609375,
-0.013397216796875,
0.0134429931640625,
0.059967041015625,
-0.0301361083984375,
0.031524658203125,
0.00662994384765625,
-0.0205535888671875,
-0.003692626953125,
0.021820068359375,
0.014984130859375,
0.02008056640625,
-0.033111572265625,
-0.00771331787109375,
-0.00872039794921875,
0.036468505859375,
-0.0087890625,
0.0132904052734375,
-0.0640869140625,
-0.078125,
0.0028400421142578125,
0.0506591796875,
0.0031585693359375,
0.03143310546875,
0.04534912109375,
0.06329345703125,
-0.01971435546875,
-0.010894775390625,
0.08563232421875,
-0.0086822509765625,
-0.017486572265625,
-0.022247314453125,
-0.03460693359375,
-0.005672454833984375,
-0.010498046875,
0.0027179718017578125,
0.021697998046875,
0.004299163818359375,
-0.003894805908203125,
-0.0111846923828125,
0.01904296875,
-0.007617950439453125,
0.07293701171875,
0.0198974609375,
0.0240325927734375,
0.032012939453125,
-0.06915283203125,
-0.01146697998046875,
-0.022430419921875,
-0.0570068359375,
0.0101318359375,
0.031280517578125,
-0.039093017578125,
0.0241546630859375,
0.006683349609375,
0.0281829833984375,
0.0169830322265625,
-0.03485107421875,
0.0009388923645019531,
0.003963470458984375,
0.0257415771484375,
0.00858306884765625,
-0.037139892578125,
-0.0300750732421875,
-0.023681640625,
0.061126708984375,
0.004276275634765625,
0.1131591796875,
-0.054473876953125,
0.021514892578125,
-0.0279693603515625,
-0.0023193359375,
-0.0303802490234375,
0.00824737548828125,
-0.0501708984375,
-0.0140533447265625,
-0.00919342041015625,
0.003795623779296875,
-0.0245819091796875,
0.032562255859375,
0.029296875,
-0.00848388671875,
0.057708740234375,
-0.049224853515625,
0.0022907257080078125,
-0.037506103515625,
-0.01421356201171875,
-0.040069580078125,
-0.00597381591796875,
-0.01078033447265625,
-0.00571441650390625,
0.0005049705505371094,
-0.04425048828125,
-0.00772857666015625,
0.0171661376953125,
0.0108184814453125,
-0.03997802734375,
0.01119232177734375,
-0.03289794921875,
0.0002999305725097656,
0.024200439453125,
0.06646728515625,
-0.052215576171875,
-0.0121002197265625,
-0.0165252685546875,
-0.0341796875,
0.02117919921875,
-0.01161956787109375,
0.00960540771484375,
-0.07293701171875,
-0.049407958984375,
0.024505615234375,
0.043182373046875,
0.0360107421875,
0.02191162109375,
-0.026947021484375,
-0.0238494873046875,
-0.0242462158203125,
0.00038433074951171875,
0.00759124755859375,
0.01363372802734375,
-0.05157470703125,
0.00806427001953125,
-0.037933349609375,
-0.0733642578125,
-0.07122802734375,
-0.0236358642578125,
0.0139923095703125,
0.004024505615234375,
-0.03466796875,
0.0175018310546875,
-0.0179443359375,
0.004398345947265625,
-0.03753662109375,
0.00022494792938232422,
-0.00829315185546875,
0.0190582275390625,
-0.0273590087890625,
-0.015594482421875,
-0.019622802734375,
0.018280029296875,
-0.01311492919921875,
0.06964111328125,
0.07855224609375,
-0.05926513671875,
0.005863189697265625,
0.049530029296875,
0.04833984375,
0.09759521484375,
0.0015392303466796875,
0.0030612945556640625,
-0.005645751953125,
0.032196044921875,
-0.026458740234375,
-0.04931640625,
0.0240020751953125,
-0.016265869140625,
-0.0270233154296875,
-0.0290069580078125,
-0.0162506103515625,
-0.004131317138671875,
-0.045318603515625,
-0.08038330078125,
-0.004364013671875,
-0.00376129150390625,
-0.045684814453125,
-0.0197601318359375,
-0.01580810546875,
-0.01125335693359375,
-0.0038127899169921875,
-0.004009246826171875,
-0.03607177734375,
-0.02789306640625,
0.033935546875,
0.007785797119140625,
-0.00414276123046875,
0.03228759765625,
0.005474090576171875,
-0.03216552734375,
0.0118560791015625,
0.0065460205078125,
-0.003917694091796875,
-0.007282257080078125,
-0.005748748779296875,
0.0272979736328125,
0.026092529296875,
-0.043365478515625,
0.0177764892578125,
0.0165863037109375,
0.034759521484375,
-0.01415252685546875,
-0.01500701904296875,
-0.03533935546875,
-0.0228424072265625,
0.055419921875,
0.06573486328125,
0.022247314453125,
-0.0180206298828125,
-0.01482391357421875,
-0.05767822265625,
-0.00864410400390625,
-0.0224456787109375,
0.007122039794921875,
-0.043121337890625,
0.0170135498046875,
0.01009368896484375,
0.00637054443359375,
-0.001220703125,
-0.030029296875,
-0.015228271484375,
-0.036102294921875,
-0.059906005859375,
-0.0260009765625,
0.00592803955078125,
-0.01641845703125,
0.0277862548828125,
-0.01114654541015625,
0.035186767578125,
-0.009368896484375,
0.017913818359375,
0.041229248046875,
0.038360595703125,
-0.034423828125,
-0.019195556640625,
0.006000518798828125,
0.03155517578125,
-0.011383056640625,
0.047821044921875,
-0.01187896728515625,
0.01763916015625,
0.01110076904296875,
0.024139404296875,
0.002574920654296875,
0.034332275390625,
-0.0010890960693359375,
0.0191497802734375,
-0.01268768310546875,
0.018707275390625,
0.00444793701171875,
0.0183258056640625,
-0.01190948486328125,
0.0509033203125,
0.0009274482727050781,
-0.034149169921875,
0.0251007080078125,
-0.03900146484375,
0.006381988525390625,
0.025726318359375,
0.01035308837890625,
-0.02685546875,
0.0328369140625,
-0.04364013671875,
0.0175323486328125,
0.0024204254150390625
] |
7f124f57e69501605afeddf12567f7be5beeebec
|
Wordpress Stackexchange
Q: Adding style sheet to specific page I have set a page as a homepage for my site. There are specific style sheets just for the homepage that I don't need to use globally. I'm still new to WordPress so this is so confusing to me.
I have read http://codex.wordpress.org/Function_Reference/wp_enqueue_style but I still don't understand how to incorporate it in my page. Can someone please help me?
A: Utilize the wordpress conditional tags to selectively enqueue / load your stylesheets. This is best practice so you can call any dependancies as well.
I've provided an example of this in practice. Often we only want to include styles for the front page and then style accordingly to your sub page:
<?php
// Is this the front page or home page ?
if (is_front_page() && is_home() ) {
// if so then lets enqueue this!
// for reference the function uses the following parameters:
// wp_enqueue_style( $handle, $src, $deps, $ver, $media ) ?
wp_enqueue_style( 'mystyle', TEMPLATEPATH . 'foo.css', array('my-dependency-styles', 'reset-style'), '1.0.1', 'only screen and print' );
} else {
wp_enqueue_style( 'mystyle', TEMPLATEPATH . 'sub-page.css', array('my-dependency-styles', 'reset-style'), '1.0.1', 'only screen and print' ); ?>
}
|
Q: Adding style sheet to specific page I have set a page as a homepage for my site. There are specific style sheets just for the homepage that I don't need to use globally. I'm still new to WordPress so this is so confusing to me.
I have read http://codex.wordpress.org/Function_Reference/wp_enqueue_style but I still don't understand how to incorporate it in my page. Can someone please help me?
A: Utilize the wordpress conditional tags to selectively enqueue / load your stylesheets. This is best practice so you can call any dependancies as well.
I've provided an example of this in practice. Often we only want to include styles for the front page and then style accordingly to your sub page:
<?php
// Is this the front page or home page ?
if (is_front_page() && is_home() ) {
// if so then lets enqueue this!
// for reference the function uses the following parameters:
// wp_enqueue_style( $handle, $src, $deps, $ver, $media ) ?
wp_enqueue_style( 'mystyle', TEMPLATEPATH . 'foo.css', array('my-dependency-styles', 'reset-style'), '1.0.1', 'only screen and print' );
} else {
wp_enqueue_style( 'mystyle', TEMPLATEPATH . 'sub-page.css', array('my-dependency-styles', 'reset-style'), '1.0.1', 'only screen and print' ); ?>
}
A: Use an action hook to attach that enqueue to a specific page with conditional logic, similar to Chris' approach, just wrapped inside a function.
add_action( 'wp_enqueue_scripts', 'enqueue_custom_styles_or_scripts' );
function enqueue_custom_styles_or_scripts() {
// If it's not the front page, stop executing code, ie. return
if( !is_front_page() )
return;
// Else we reach here and perform the enqueue
wp_enqueue_style( 'your-style-handle', get_stylesheet_directory_uri() . '/yourfile.css' );
}
Note, despite the action name, it is also appropriate for styles to, i wish the devs would either rename that or add a style one alongside it, the naming would suggest it's for scripts only(but that's really not the case).
You can add the code to the top of your theme's functions.php file after the opening PHP tag(<?php) on a new line.
|
wordpress
|
{
"language": "en",
"length": 318,
"provenance": "stackexchange_00019.jsonl.gz:411783",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24465"
}
|
[
-0.033416748046875,
0.02520751953125,
-0.08197021484375,
-0.0180511474609375,
0.0157012939453125,
-0.042938232421875,
-0.0027484893798828125,
-0.00676727294921875,
-0.0030765533447265625,
-0.004566192626953125,
-0.0634765625,
0.019927978515625,
-0.0259552001953125,
-0.0079498291015625,
0.041717529296875,
-0.045806884765625,
0.05548095703125,
-0.039581298828125,
0.01111602783203125,
0.00347900390625,
-0.0291595458984375,
0.027679443359375,
0.01837158203125,
0.07080078125,
0.0218048095703125,
-0.048492431640625,
0.0391845703125,
0.002498626708984375,
0.0180206298828125,
0.0123291015625,
0.022003173828125,
-0.025482177734375,
0.03045654296875,
0.004669189453125,
-0.01419830322265625,
-0.027252197265625,
0.00487518310546875,
-0.01529693603515625,
0.00010150671005249023,
0.024688720703125,
0.0239105224609375,
-0.006015777587890625,
-0.0013294219970703125,
0.056304931640625,
-0.0125274658203125,
-0.040283203125,
0.027557373046875,
-0.035186767578125,
-0.02691650390625,
0.03466796875,
0.0294952392578125,
-0.044647216796875,
0.0198516845703125,
0.0007963180541992188,
-0.00861358642578125,
-0.012481689453125,
0.0211029052734375,
-0.035797119140625,
0.0137786865234375,
-0.003963470458984375,
-0.0143585205078125,
0.007091522216796875,
0.029632568359375,
-0.00856781005859375,
-0.01314544677734375,
0.0113067626953125,
0.0007462501525878906,
0.007167816162109375,
-0.04461669921875,
-0.02130126953125,
0.0230865478515625,
-0.044464111328125,
-0.009521484375,
-0.0254669189453125,
-0.05865478515625,
0.038787841796875,
-0.005016326904296875,
-0.01934814453125,
0.0266876220703125,
-0.0297393798828125,
-0.0197296142578125,
-0.0241241455078125,
-0.05267333984375,
-0.0660400390625,
0.049774169921875,
-0.01259613037109375,
-0.0113067626953125,
0.0027904510498046875,
-0.0196075439453125,
-0.0160369873046875,
-0.016082763671875,
-0.0192718505859375,
0.00492095947265625,
-0.01386260986328125,
-0.0243988037109375,
-0.00910186767578125,
0.037506103515625,
0.09649658203125,
-0.01641845703125,
0.0293731689453125,
-0.0087127685546875,
-0.044769287109375,
0.03936767578125,
-0.058563232421875,
0.030242919921875,
0.035125732421875,
-0.0171356201171875,
-0.0017137527465820312,
0.051544189453125,
0.02630615234375,
0.012939453125,
0.01076507568359375,
-0.00011861324310302734,
-0.013946533203125,
-0.01433563232421875,
0.000736236572265625,
-0.0177154541015625,
-0.0191802978515625,
-0.00971221923828125,
-0.0296173095703125,
0.00702667236328125,
0.05657958984375,
-0.020233154296875,
-0.07794189453125,
0.006565093994140625,
-0.0142822265625,
0.003696441650390625,
-0.0557861328125,
0.06695556640625,
0.0328369140625,
-0.0246124267578125,
0.006267547607421875,
0.05084228515625,
-0.032989501953125,
-0.02587890625,
-0.02435302734375,
0.036590576171875,
0.0011386871337890625,
-0.019317626953125,
0.0183563232421875,
0.027374267578125,
-0.0462646484375,
-0.033172607421875,
0.0007929801940917969,
-0.0092620849609375,
-0.0249481201171875,
0.018646240234375,
0.07476806640625,
-0.01079559326171875,
-0.032745361328125,
0.090087890625,
-0.0423583984375,
0.0271453857421875,
-0.0138702392578125,
-0.01377105712890625,
-0.0224456787109375,
-0.0018930435180664062,
-0.00881195068359375,
0.0069580078125,
-0.0214691162109375,
-0.03411865234375,
-0.003658294677734375,
0.03204345703125,
-0.022216796875,
0.0010204315185546875,
-0.0169677734375,
-0.01201629638671875,
0.0138397216796875,
0.03509521484375,
0.0160064697265625,
-0.023284912109375,
-0.04248046875,
0.045440673828125,
0.002544403076171875,
-0.02301025390625,
0.0458984375,
-0.0218963623046875,
0.01995849609375,
0.0190887451171875,
0.032745361328125,
-0.0018177032470703125,
-0.025482177734375,
0.0504150390625,
-0.0158233642578125,
-0.02349853515625,
-0.0421142578125,
0.027984619140625,
0.038818359375,
0.007720947265625,
0.04736328125,
0.03948974609375,
-0.016754150390625,
-0.07135009765625,
-0.01183319091796875,
-0.002040863037109375,
0.0200653076171875,
-0.0104827880859375,
0.00583648681640625,
0.009033203125,
0.00934600830078125,
0.0171051025390625,
-0.01235198974609375,
0.041534423828125,
-0.032379150390625,
-0.04119873046875,
0.01432037353515625,
-0.0234832763671875,
0.048431396484375,
-0.02130126953125,
-0.0186767578125,
0.015869140625,
-0.0159149169921875,
0.0107879638671875,
-0.07330322265625,
-0.06439208984375,
0.0258941650390625,
0.0105438232421875,
0.03497314453125,
0.01271820068359375,
0.01666259765625,
0.0276947021484375,
-0.035186767578125,
0.007549285888671875,
0.02288818359375,
0.0135498046875,
-0.0026226043701171875,
-0.0298919677734375,
-0.024810791015625,
-0.01318359375,
0.003753662109375,
-0.04608154296875,
0.05938720703125,
0.04388427734375,
0.05426025390625,
-0.0213623046875,
-0.0036830902099609375,
0.023040771484375,
-0.007610321044921875,
0.00974273681640625,
0.02288818359375,
0.039031982421875,
0.021453857421875,
0.0017480850219726562,
0.00708770751953125,
0.0684814453125,
0.003902435302734375,
0.0197296142578125,
-0.01364898681640625,
-0.0135498046875,
0.0012235641479492188,
-0.0012044906616210938,
0.009979248046875,
0.034332275390625,
-0.07855224609375,
0.00524139404296875,
0.045623779296875,
-0.035247802734375,
0.037017822265625,
-0.02227783203125,
0.0034580230712890625,
-0.011260986328125,
0.04949951171875,
0.042938232421875,
-0.0074615478515625,
0.0189056396484375,
-0.024017333984375,
0.01059722900390625,
-0.016448974609375,
-0.006237030029296875,
-0.01372528076171875,
0.0292205810546875,
-0.0189971923828125,
0.00923919677734375,
0.0364990234375,
-0.0070648193359375,
-0.03717041015625,
-0.0045166015625,
-0.0057373046875,
-0.0264892578125,
-0.01187896728515625,
-0.0013837814331054688,
0.037322998046875,
-0.034515380859375,
-0.01381683349609375,
-0.03521728515625,
-0.092041015625,
0.007106781005859375,
0.041961669921875,
0.043243408203125,
0.04217529296875,
0.059051513671875,
0.0267333984375,
-0.0219268798828125,
0.04864501953125,
0.0120391845703125,
-0.00984954833984375,
-0.007289886474609375,
0.00867462158203125,
0.01367950439453125,
-0.01067352294921875,
-0.00307464599609375,
0.0478515625,
-0.00872039794921875,
0.0015716552734375,
0.00942230224609375,
0.020965576171875,
0.02294921875,
0.007015228271484375,
0.0037288665771484375,
-0.006107330322265625,
-0.051605224609375,
-0.0156097412109375,
0.029449462890625,
0.00798797607421875,
0.031829833984375,
-0.01036834716796875,
-0.0035190582275390625,
0.0279388427734375,
-0.06353759765625,
-0.09454345703125,
-0.0184478759765625,
-0.0516357421875,
0.03436279296875,
-0.0103302001953125,
-0.0027751922607421875,
-0.0186004638671875,
0.017303466796875,
0.0244903564453125,
-0.053466796875,
-0.0350341796875,
-0.00861358642578125,
-0.1007080078125,
-0.0628662109375,
-0.03375244140625,
0.01230621337890625,
0.020843505859375,
0.00316619873046875,
0.0748291015625,
0.0081634521484375,
-0.052459716796875,
0.00569915771484375,
0.01690673828125,
-0.025634765625,
0.00543975830078125,
0.0230712890625,
-0.062225341796875,
-0.03436279296875,
0.0077972412109375,
-0.001941680908203125,
-0.01175689697265625,
0.01215362548828125,
-0.008148193359375,
-0.0308685302734375,
-0.0283966064453125,
-0.049713134765625,
0.0662841796875,
0.061187744140625,
-0.036773681640625,
-0.0002351999282836914,
-0.04736328125,
-0.048553466796875,
0.004268646240234375,
-0.05419921875,
0.0255584716796875,
0.0270843505859375,
-0.01458740234375,
-0.00035834312438964844,
0.0205078125,
0.0174560546875,
-0.0062408447265625,
0.037384033203125,
-0.013641357421875,
0.01580810546875,
-0.015411376953125,
-0.0207366943359375,
-0.039154052734375,
0.043060302734375,
-0.00450897216796875,
0.047119140625,
0.03619384765625,
-0.0037784576416015625,
-0.0224456787109375,
-0.0027904510498046875,
-0.05072021484375,
-0.060577392578125,
0.0214691162109375,
-0.0142059326171875,
0.033660888671875,
-0.0206451416015625,
-0.022186279296875,
0.01690673828125,
0.09197998046875,
-0.043853759765625,
-0.0006198883056640625,
0.01461029052734375,
0.0179443359375,
-0.056915283203125,
-0.0445556640625,
-0.052490234375,
0.01403045654296875,
-0.05792236328125,
0.01071929931640625,
-0.0233612060546875,
-0.035430908203125,
-0.006404876708984375,
-0.04046630859375,
-0.042327880859375,
-0.046295166015625,
0.0167999267578125,
0.034393310546875,
-0.0223846435546875,
0.042266845703125,
-0.049163818359375,
0.04766845703125,
-0.0012674331665039062,
-0.017333984375,
-0.09918212890625,
-0.00286102294921875,
-0.02020263671875,
0.06170654296875,
0.021636962890625,
-0.02490234375,
0.005451202392578125,
0.058319091796875,
0.002223968505859375,
-0.0135040283203125,
0.03118896484375,
0.026458740234375,
0.0021610260009765625,
-0.007213592529296875,
0.00763702392578125,
-0.034942626953125,
0.00885009765625,
0.0478515625,
-0.049224853515625,
0.043975830078125,
-0.0083465576171875,
0.01528167724609375,
0.06390380859375,
-0.049224853515625,
-0.0234375,
-0.02239990234375,
0.0219879150390625,
-0.0099639892578125,
0.0028667449951171875,
-0.00013911724090576172,
-0.01558685302734375,
-0.005695343017578125,
0.02288818359375,
0.02734375,
-0.0163421630859375,
0.0015192031860351562,
-0.00019347667694091797,
0.0247955322265625,
-0.045501708984375,
-0.00830078125,
-0.0039520263671875,
0.0245819091796875,
0.0036907196044921875,
-0.0003104209899902344,
-0.0401611328125,
-0.033355712890625,
0.047821044921875,
-0.0087432861328125,
0.0051422119140625,
-0.01151275634765625,
0.04473876953125,
-0.0010347366333007812,
-0.058349609375,
0.041290283203125,
-0.007457733154296875,
-0.01324462890625,
0.054290771484375,
0.00588226318359375,
-0.01251220703125,
0.017364501953125,
-0.01100921630859375,
-0.0032196044921875,
-0.017181396484375,
0.00966644287109375,
-0.0196685791015625,
-0.0179595947265625,
0.035125732421875,
0.05816650390625,
0.0321044921875,
-0.002994537353515625,
0.0235137939453125,
0.054046630859375,
-0.00975799560546875,
0.052459716796875,
0.05010986328125,
0.0013675689697265625,
0.035675048828125,
0.025909423828125,
-0.0217437744140625,
-0.002178192138671875,
-0.00936126708984375,
0.033599853515625,
-0.00966644287109375,
-0.07476806640625,
0.00240325927734375,
-0.00270843505859375,
0.049652099609375,
0.034393310546875,
0.0174560546875,
0.0606689453125,
-0.01320648193359375,
-0.05487060546875,
-0.02398681640625,
-0.00989532470703125,
-0.053497314453125,
-0.07177734375,
0.0011110305786132812,
-0.0143890380859375,
-0.0160675048828125,
0.007625579833984375,
0.0310211181640625,
0.033538818359375,
0.00305938720703125,
-0.023162841796875,
-0.0259857177734375,
-0.0095367431640625,
-0.005695343017578125,
-0.0007901191711425781,
0.054046630859375,
0.0161285400390625,
-0.0088348388671875,
0.09881591796875,
-0.03302001953125,
-0.004314422607421875,
0.03594970703125,
0.063720703125,
-0.021881103515625,
-0.0239410400390625,
0.0031070709228515625,
-0.0279388427734375,
-0.0194854736328125,
0.02325439453125,
-0.01152801513671875,
-0.0517578125,
-0.00807952880859375,
0.01354217529296875,
0.0147552490234375,
-0.0107421875,
-0.00800323486328125,
0.0243988037109375,
-0.0033245086669921875,
0.048309326171875,
0.0011749267578125,
-0.004604339599609375,
0.01070404052734375,
-0.01064300537109375,
-0.0032520294189453125,
0.002948760986328125,
0.0145263671875,
-0.054168701171875,
-0.035003662109375,
-0.02203369140625,
-0.0193023681640625,
0.02325439453125,
-0.037017822265625,
0.037353515625,
-0.03302001953125,
-0.0170440673828125,
-0.03143310546875,
0.027923583984375,
0.022857666015625,
0.033538818359375,
-0.028106689453125,
-0.00487518310546875,
-0.044189453125,
-0.01280975341796875,
-0.0316162109375,
-0.054534912109375,
-0.0162353515625,
-0.00522613525390625,
-0.02569580078125,
0.0125732421875,
-0.053070068359375,
-0.0361328125,
-0.05157470703125,
0.0301666259765625,
0.05340576171875,
0.052703857421875,
-0.03375244140625,
0.07208251953125,
-0.0015687942504882812,
0.030120849609375,
-0.00794219970703125,
0.0206146240234375,
0.005542755126953125,
-0.0006008148193359375,
-0.00376129150390625,
-0.045013427734375,
0.0130157470703125,
-0.02532958984375,
0.0157928466796875,
0.040008544921875,
0.0712890625,
0.0102386474609375,
0.028900146484375,
-0.0157623291015625,
0.004425048828125,
-0.032501220703125,
-0.00917816162109375,
-0.04937744140625,
-0.00762176513671875,
0.01486968994140625,
0.0220947265625,
0.06866455078125,
-0.026153564453125,
-0.0192108154296875,
0.026702880859375,
-0.0191497802734375,
0.06488037109375,
-0.0180816650390625,
-0.034027099609375,
0.04754638671875,
0.06500244140625,
0.0287933349609375,
0.04583740234375,
-0.016357421875,
0.01560211181640625,
0.00848388671875,
0.0146331787109375,
-0.0224151611328125,
0.0065765380859375,
0.044769287109375,
-0.02191162109375,
-0.015838623046875,
-0.0038433074951171875,
-0.02288818359375,
0.004863739013671875,
0.043853759765625,
0.042633056640625,
-0.061676025390625,
-0.0018415451049804688,
-0.01148223876953125,
-0.0067901611328125,
0.055084228515625,
-0.006885528564453125,
0.021697998046875,
-0.0012464523315429688,
0.09228515625,
0.0242767333984375,
0.01690673828125,
0.061065673828125,
-0.017242431640625,
-0.014892578125,
-0.046112060546875,
-0.0041656494140625,
-0.011138916015625,
-0.036834716796875,
-0.00601959228515625,
0.0302734375,
-0.064697265625,
-0.0017719268798828125,
0.0036563873291015625,
-0.0189971923828125,
-0.030181884765625,
-0.0263671875,
0.0030574798583984375,
-0.0086822509765625,
-0.021453857421875,
0.0029888153076171875,
0.0107421875,
-0.01044464111328125,
0.02874755859375,
-0.0229949951171875,
0.03173828125,
-0.0084228515625,
0.016021728515625,
-0.0027675628662109375,
-0.0249481201171875,
0.031463623046875,
-0.0065460205078125,
-0.07647705078125,
0.0285797119140625,
-0.03656005859375,
-0.01812744140625,
-0.010528564453125,
-0.0021419525146484375,
0.077880859375,
-0.0268096923828125,
-0.015045166015625,
-0.0267181396484375,
0.0291900634765625,
0.0430908203125,
-0.03485107421875,
0.005809783935546875,
-0.052093505859375,
-0.032196044921875,
-0.0017614364624023438,
-0.050689697265625,
-0.031280517578125,
-0.0465087890625,
-0.055145263671875,
0.0767822265625,
-0.07379150390625,
0.058135986328125,
0.044403076171875,
0.017242431640625,
-0.0128021240234375,
-0.00885772705078125,
-0.0012884140014648438,
0.02557373046875,
0.017669677734375,
0.01471710205078125,
-0.01055908203125,
-0.0117950439453125,
0.025482177734375,
0.0557861328125,
0.024810791015625,
0.006526947021484375,
-0.0001208186149597168,
0.01324462890625,
0.0440673828125,
0.0193023681640625,
-0.0073699951171875,
0.0158538818359375,
-0.04638671875,
-0.01271820068359375,
-0.0263671875,
-0.03594970703125,
0.0306549072265625,
-0.032501220703125,
-0.06768798828125,
-0.0199737548828125,
-0.007293701171875,
-0.01203155517578125,
0.01482391357421875,
0.040618896484375,
-0.043792724609375,
0.0182952880859375,
0.0309295654296875,
-0.0105743408203125,
0.004245758056640625,
0.0258636474609375,
-0.0069122314453125,
0.01178741455078125,
-0.035797119140625,
-0.0006093978881835938,
0.012481689453125,
-0.011566162109375,
-0.01398468017578125,
0.01094818115234375,
0.0070343017578125,
0.037384033203125,
0.005336761474609375,
-0.0099334716796875,
0.02783203125,
0.005405426025390625,
0.047393798828125,
0.00533294677734375,
0.032867431640625,
-0.0164642333984375,
0.01666259765625,
-0.04779052734375,
0.01148223876953125,
-0.039459228515625,
-0.01169586181640625,
0.00970458984375,
-0.01282501220703125,
0.001739501953125,
-0.033111572265625,
-0.00643157958984375,
-0.027374267578125,
-0.0128326416015625,
-0.0184326171875,
0.00853729248046875,
0.0217437744140625,
-0.0214691162109375,
-0.0063323974609375,
0.00215911865234375,
-0.0035610198974609375,
0.047088623046875,
-0.045166015625,
0.0293426513671875,
0.004425048828125,
0.0239410400390625,
0.0214996337890625,
0.0024318695068359375,
0.0225677490234375,
0.005138397216796875,
-0.046966552734375,
0.04412841796875,
0.0303192138671875,
0.04656982421875,
-0.0079345703125,
0.036376953125,
-0.01532745361328125,
0.023529052734375,
0.002658843994140625,
-0.01416778564453125,
0.035247802734375,
0.0094451904296875,
-0.07171630859375,
-0.0167694091796875,
0.01200103759765625,
-0.03546142578125,
0.0166015625,
0.00045943260192871094,
0.0118255615234375,
0.0053558349609375,
-0.0200958251953125,
-0.01428985595703125,
0.03436279296875,
0.022735595703125,
-0.01517486572265625,
0.0237884521484375,
0.0025310516357421875,
0.00531768798828125,
0.01904296875,
0.0109405517578125,
0.00896453857421875,
0.01342010498046875,
-0.0303192138671875,
-0.00783538818359375,
-0.015411376953125,
0.0194854736328125,
-0.00159454345703125,
0.0184326171875,
-0.00756072998046875,
0.0389404296875,
0.048614501953125,
-0.0172119140625,
-0.00543975830078125,
0.003910064697265625,
0.00933074951171875,
0.0206146240234375,
0.027587890625,
0.021270751953125,
-0.0697021484375,
-0.0293426513671875,
-0.02325439453125,
0.0253753662109375,
0.00836181640625,
0.09698486328125,
-0.0149993896484375,
0.02154541015625,
0.024749755859375,
0.0261993408203125,
-0.002979278564453125,
-0.01398468017578125,
0.054718017578125,
-0.0062103271484375,
0.0304412841796875,
-0.020111083984375,
-0.0294342041015625,
0.0129547119140625,
0.028594970703125,
-0.0265655517578125,
0.005718231201171875,
0.0027713775634765625,
0.0033168792724609375,
-0.0212554931640625,
0.00998687744140625,
-0.024993896484375,
-0.0178070068359375,
-0.0377197265625,
-0.011474609375,
0.0210418701171875,
0.00850677490234375,
0.00766754150390625,
0.0308990478515625,
0.0217132568359375,
-0.037322998046875,
0.044586181640625,
-0.034912109375,
0.066650390625,
0.025604248046875,
0.016082763671875,
-0.053070068359375,
0.01983642578125,
0.00867462158203125,
-0.0019817352294921875,
0.023345947265625,
0.04119873046875,
0.0260467529296875,
-0.0404052734375,
0.05316162109375,
0.025115966796875,
0.049896240234375,
-0.00714874267578125,
0.00264739990234375,
0.061492919921875,
-0.0106658935546875,
-0.05126953125,
-0.046600341796875,
-0.00787353515625,
-0.0567626953125,
-0.01428985595703125,
0.017181396484375,
-0.038604736328125,
-0.032501220703125,
-0.004108428955078125,
0.0201873779296875,
0.037841796875,
-0.0102996826171875,
-0.038330078125,
0.0205841064453125,
-0.04541015625,
0.059906005859375,
0.006534576416015625,
0.02142333984375,
-0.02496337890625,
-0.00652313232421875,
-0.0478515625,
-0.01181793212890625,
-0.0633544921875,
0.0168304443359375,
-0.04412841796875,
0.0107879638671875,
0.06451416015625,
-0.016387939453125,
0.0282745361328125,
-0.01467132568359375,
-0.000946044921875,
0.051361083984375,
-0.088134765625,
-0.0179290771484375,
0.0289764404296875,
-0.01318359375,
-0.00010639429092407227,
-0.06134033203125,
-0.0054779052734375,
-0.06622314453125,
0.02001953125,
0.01479339599609375,
-0.0137939453125,
0.0162506103515625,
-0.033599853515625,
-0.05926513671875,
0.0364990234375,
0.0026092529296875,
-0.035430908203125,
-0.02392578125,
0.006252288818359375,
0.01131439208984375,
-0.0291290283203125,
-0.00510406494140625,
-0.048492431640625,
-0.01898193359375,
0.0225372314453125,
0.01322174072265625,
0.041290283203125,
0.0303955078125,
-0.0077056884765625,
-0.03765869140625,
0.007411956787109375,
0.002071380615234375,
0.0231475830078125,
-0.0180511474609375,
-0.017303466796875,
0.020965576171875,
0.0024852752685546875,
-0.035491943359375,
-0.018646240234375,
0.032012939453125,
0.00933837890625,
0.0023059844970703125,
0.0092620849609375,
-0.0225067138671875,
-0.00855255126953125,
0.047882080078125,
0.01218414306640625,
0.00592803955078125,
0.002086639404296875,
-0.01255035400390625,
-0.003108978271484375,
-0.01340484619140625,
-0.0156402587890625,
0.01305389404296875,
-0.04168701171875,
-0.00457000732421875,
-0.02789306640625,
-0.0219268798828125,
-0.041748046875,
-0.01617431640625,
-0.061309814453125,
-0.006195068359375,
-0.024627685546875,
0.0170135498046875,
-0.0221710205078125,
-0.0072479248046875,
0.034423828125,
-0.0090484619140625,
0.036376953125,
0.0035991668701171875,
0.002315521240234375,
0.0267791748046875,
0.060089111328125,
0.0013418197631835938,
0.062469482421875,
-0.07476806640625,
-0.00887298583984375,
-0.000957489013671875,
-0.0194091796875,
-0.040802001953125,
0.018035888671875,
0.0303955078125,
-0.008514404296875,
-0.01287841796875,
-0.0157470703125,
0.01183319091796875,
0.0130157470703125,
-0.03857421875,
0.034515380859375,
-0.007007598876953125,
0.023895263671875,
0.004749298095703125,
0.004421234130859375,
0.0169219970703125,
-0.01068878173828125,
0.0440673828125,
-0.0134124755859375,
0.00951385498046875,
-0.0015192031860351562,
-0.01032257080078125,
-0.034332275390625,
0.0150299072265625,
-0.01146697998046875,
-0.0006647109985351562,
0.0033969879150390625
] |
a0efbd6b59c411b662bc847ad72a4eb1358935b4
|
Wordpress Stackexchange
Q: wp_insert_term - parent & child problem I have a car database that I want to import into Wordpress as taxonomies. The problem is I can't create 2 taxonomies at once (first is parent, last ones are childs of first).
$p = wp_insert_term("Acura", "classified-category", array("description" => "Acura"));
$c = wp_insert_term("Acura CL", "classified-category", array("parent" => $p["term_id"], "description" => "Acura CL"));
print_r($p);
print_r($c);
returns:
Array ( [term_id] => 13 [term_taxonomy_id] => 4720 )
Array ( [term_id] => 2589 [term_taxonomy_id] => 4721 )
But in Dashboard appears just parent category. The problem is similar to this one: https://wordpress.stackexchange.com/questions/23125/create-two-categories-at-once-parent-child
Any idea ?
A: The issue is with the taxonomy cache. You have to clear it after you insert the terms in order to see them. I had the same issue, which someone answered for me here:
delete_option("classified-category_children");
Insert that after the term inserts and you should be good.
|
Q: wp_insert_term - parent & child problem I have a car database that I want to import into Wordpress as taxonomies. The problem is I can't create 2 taxonomies at once (first is parent, last ones are childs of first).
$p = wp_insert_term("Acura", "classified-category", array("description" => "Acura"));
$c = wp_insert_term("Acura CL", "classified-category", array("parent" => $p["term_id"], "description" => "Acura CL"));
print_r($p);
print_r($c);
returns:
Array ( [term_id] => 13 [term_taxonomy_id] => 4720 )
Array ( [term_id] => 2589 [term_taxonomy_id] => 4721 )
But in Dashboard appears just parent category. The problem is similar to this one: https://wordpress.stackexchange.com/questions/23125/create-two-categories-at-once-parent-child
Any idea ?
A: The issue is with the taxonomy cache. You have to clear it after you insert the terms in order to see them. I had the same issue, which someone answered for me here:
delete_option("classified-category_children");
Insert that after the term inserts and you should be good.
|
wordpress
|
{
"language": "en",
"length": 144,
"provenance": "stackexchange_00019.jsonl.gz:411793",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24498"
}
|
[
0.0198974609375,
0.027374267578125,
-0.052642822265625,
-0.01442718505859375,
0.03887939453125,
-0.049102783203125,
0.02410888671875,
-0.034637451171875,
-0.0195770263671875,
0.00672149658203125,
-0.03076171875,
-0.040618896484375,
-0.04656982421875,
-0.0266571044921875,
-0.040069580078125,
-0.0697021484375,
0.0021762847900390625,
-0.01309967041015625,
-0.0089263916015625,
-0.0172119140625,
-0.01776123046875,
-0.021453857421875,
0.0250701904296875,
-0.014556884765625,
0.019134521484375,
-0.010833740234375,
-0.0021820068359375,
-0.05322265625,
0.0019369125366210938,
-0.042205810546875,
0.0017900466918945312,
0.050628662109375,
0.006580352783203125,
-0.004261016845703125,
0.01297760009765625,
-0.004695892333984375,
0.033905029296875,
0.007556915283203125,
0.0279388427734375,
0.0265045166015625,
0.03521728515625,
-0.004543304443359375,
-0.01363372802734375,
0.0328369140625,
-0.03717041015625,
-0.013031005859375,
-0.0019779205322265625,
-0.0170135498046875,
0.0201416015625,
-0.03314208984375,
0.034454345703125,
-0.0037136077880859375,
0.056427001953125,
-0.04498291015625,
-0.01873779296875,
0.00867462158203125,
-0.02947998046875,
0.047027587890625,
0.0204620361328125,
0.0172576904296875,
-0.031524658203125,
0.0165252685546875,
-0.0020618438720703125,
-0.033172607421875,
0.01427459716796875,
0.01070404052734375,
-0.00795745849609375,
0.0177154541015625,
-0.051666259765625,
0.005458831787109375,
0.018157958984375,
-0.040435791015625,
-0.0017061233520507812,
-0.0159912109375,
-0.017242431640625,
0.00103759765625,
0.019805908203125,
0.0055999755859375,
0.0004436969757080078,
0.004779815673828125,
0.046234130859375,
0.0226287841796875,
-0.049468994140625,
0.018951416015625,
0.006015777587890625,
0.034881591796875,
0.0025177001953125,
-0.03900146484375,
-0.0276336669921875,
-0.0068206787109375,
-0.021636962890625,
-0.093994140625,
-0.00885009765625,
0.051849365234375,
0.0007596015930175781,
0.0005888938903808594,
0.01119232177734375,
0.0743408203125,
-0.061676025390625,
0.0080413818359375,
-0.033233642578125,
-0.0039215087890625,
-0.007389068603515625,
-0.048248291015625,
0.0450439453125,
0.0017461776733398438,
-0.039764404296875,
-0.059600830078125,
0.056488037109375,
0.0266876220703125,
-0.0027828216552734375,
0.082275390625,
0.0006580352783203125,
-0.06976318359375,
0.0180511474609375,
0.03533935546875,
0.0223846435546875,
0.0251312255859375,
0.035888671875,
-0.00677490234375,
-0.01549530029296875,
0.0243377685546875,
-0.0673828125,
0.0018167495727539062,
0.005859375,
-0.016693115234375,
0.0038547515869140625,
0.030517578125,
-0.0205078125,
-0.00553131103515625,
-0.0419921875,
0.0186767578125,
0.117431640625,
0.06390380859375,
0.034881591796875,
-0.00647735595703125,
0.0255126953125,
-0.01413726806640625,
0.0235595703125,
-0.02801513671875,
0.0482177734375,
0.006031036376953125,
-0.002471923828125,
0.013824462890625,
0.00330352783203125,
0.0179595947265625,
0.01439666748046875,
0.00899505615234375,
-0.00811767578125,
-0.0256805419921875,
-0.004261016845703125,
-0.0256195068359375,
0.08575439453125,
-0.0233154296875,
-0.10382080078125,
-0.045196533203125,
-0.01031494140625,
-0.0357666015625,
-0.02996826171875,
-0.08935546875,
0.0020236968994140625,
0.006397247314453125,
0.03326416015625,
-0.03851318359375,
-0.031951904296875,
0.0005421638488769531,
-0.05877685546875,
-0.0209503173828125,
0.02264404296875,
-0.0226593017578125,
0.024810791015625,
-0.047760009765625,
-0.0275115966796875,
0.001102447509765625,
0.005008697509765625,
0.034881591796875,
-0.0390625,
-0.0372314453125,
0.0592041015625,
-0.01387786865234375,
-0.03936767578125,
-0.0273590087890625,
0.01116180419921875,
0.0032749176025390625,
-0.03399658203125,
0.005279541015625,
0.036712646484375,
0.043609619140625,
-0.0193328857421875,
0.03167724609375,
0.05328369140625,
0.029144287109375,
-0.032806396484375,
0.038055419921875,
0.03179931640625,
-0.03009033203125,
-0.03533935546875,
-0.01922607421875,
0.00428009033203125,
-0.0234527587890625,
-0.026397705078125,
0.00691986083984375,
-0.005390167236328125,
0.0150604248046875,
-0.0283966064453125,
0.01666259765625,
-0.02227783203125,
0.0408935546875,
-0.04010009765625,
-0.007450103759765625,
0.0196380615234375,
-0.0200653076171875,
-0.0117340087890625,
-0.0260772705078125,
-0.029937744140625,
-0.00580596923828125,
-0.00453948974609375,
0.01010894775390625,
-0.026824951171875,
0.0026702880859375,
-0.03759765625,
-0.01690673828125,
-0.037384033203125,
0.02777099609375,
0.041351318359375,
0.03924560546875,
-0.02447509765625,
0.01678466796875,
0.020660400390625,
0.0271759033203125,
-0.022064208984375,
0.0193328857421875,
0.0364990234375,
0.0254364013671875,
-0.01540374755859375,
0.02020263671875,
0.035491943359375,
-0.058197021484375,
0.0008883476257324219,
0.027801513671875,
0.0172271728515625,
-0.0010366439819335938,
-0.0280609130859375,
-0.006801605224609375,
0.031707763671875,
-0.060760498046875,
-0.0311279296875,
0.006130218505859375,
-0.0085906982421875,
0.0264129638671875,
-0.0020618438720703125,
0.0129547119140625,
0.01512908935546875,
-0.026336669921875,
0.0179901123046875,
0.03680419921875,
-0.027862548828125,
-0.0496826171875,
0.01380157470703125,
-0.0273284912109375,
0.0198211669921875,
-0.1009521484375,
-0.053497314453125,
-0.0159454345703125,
0.06158447265625,
-0.005084991455078125,
0.046112060546875,
0.029998779296875,
-0.004062652587890625,
-0.0031890869140625,
-0.0009765625,
-0.021331787109375,
0.0034332275390625,
-0.005245208740234375,
0.0007767677307128906,
0.00678253173828125,
-0.037322998046875,
0.0265045166015625,
-0.00426483154296875,
-0.01267242431640625,
0.0214691162109375,
0.0794677734375,
-0.026092529296875,
-0.021240234375,
-0.048980712890625,
-0.01390838623046875,
-0.0168304443359375,
0.0197601318359375,
-0.08709716796875,
-0.0223236083984375,
0.0037975311279296875,
0.057861328125,
-0.01580810546875,
0.0153350830078125,
-0.03912353515625,
0.032562255859375,
0.0256195068359375,
-0.01534271240234375,
0.02911376953125,
-0.0139923095703125,
0.0123138427734375,
0.052825927734375,
0.021453857421875,
-0.0202789306640625,
0.0024471282958984375,
-0.00408935546875,
0.0213470458984375,
-0.0124969482421875,
-0.012359619140625,
-0.008575439453125,
-0.0188140869140625,
0.027496337890625,
0.030670166015625,
0.0628662109375,
0.009429931640625,
-0.042022705078125,
0.01374053955078125,
0.05010986328125,
-0.0027484893798828125,
-0.0030689239501953125,
-0.01922607421875,
0.01030731201171875,
0.018585205078125,
0.0022220611572265625,
0.0035762786865234375,
-0.01560211181640625,
-0.0064697265625,
0.00844573974609375,
0.0330810546875,
-0.046112060546875,
-0.03814697265625,
-0.043212890625,
-0.054443359375,
-0.0144195556640625,
0.01568603515625,
-0.01971435546875,
0.0197906494140625,
0.05230712890625,
0.01763916015625,
-0.046905517578125,
0.04119873046875,
0.0179290771484375,
-0.039825439453125,
0.0209808349609375,
0.0212860107421875,
-0.024139404296875,
0.007320404052734375,
0.005123138427734375,
-0.01293182373046875,
0.0278778076171875,
-0.01476287841796875,
-0.01074981689453125,
0.0037746429443359375,
0.0631103515625,
0.038116455078125,
-0.0280914306640625,
-0.0100555419921875,
0.059417724609375,
0.0090179443359375,
-0.00589752197265625,
0.0186309814453125,
-0.0162811279296875,
-0.003452301025390625,
-0.01470184326171875,
-0.0195159912109375,
0.01666259765625,
-0.0170440673828125,
-0.0046844482421875,
-0.0224151611328125,
0.02178955078125,
-0.020965576171875,
-0.0004558563232421875,
-0.003238677978515625,
-0.0206146240234375,
-0.054412841796875,
0.033203125,
0.023468017578125,
-0.021697998046875,
0.014129638671875,
-0.007328033447265625,
0.0237884521484375,
-0.00429534912109375,
-0.0058135986328125,
-0.038238525390625,
-0.07110595703125,
0.0221099853515625,
-0.08441162109375,
-0.0225067138671875,
-0.0567626953125,
0.00678253173828125,
-0.0232391357421875,
0.054229736328125,
-0.054107666015625,
0.003292083740234375,
0.0026035308837890625,
0.01326751708984375,
-0.051300048828125,
-0.047088623046875,
-0.08026123046875,
0.00591278076171875,
-0.00897979736328125,
0.010467529296875,
0.0050201416015625,
-0.006649017333984375,
-0.02166748046875,
0.021209716796875,
-0.022003173828125,
-0.01104736328125,
0.059814453125,
-0.07623291015625,
0.0126953125,
0.00860595703125,
-0.00992584228515625,
-0.0212554931640625,
-0.047882080078125,
-0.01837158203125,
-0.05181884765625,
-0.005901336669921875,
-0.01001739501953125,
0.04254150390625,
-0.00905609130859375,
0.0216522216796875,
-0.004756927490234375,
0.056365966796875,
0.0030117034912109375,
0.03558349609375,
-0.00836181640625,
0.0038661956787109375,
-0.0242156982421875,
0.007358551025390625,
0.005977630615234375,
-0.0130767822265625,
-0.05084228515625,
-0.059722900390625,
0.03240966796875,
0.007904052734375,
-0.0233154296875,
-0.001720428466796875,
-0.046295166015625,
0.037353515625,
-0.051422119140625,
-0.048187255859375,
-0.05291748046875,
-0.0265350341796875,
-0.0212860107421875,
-0.00688934326171875,
-0.0235137939453125,
-0.06854248046875,
0.0038280487060546875,
-0.028564453125,
0.00974273681640625,
0.0153656005859375,
0.07830810546875,
0.0190277099609375,
0.004199981689453125,
0.00042176246643066406,
-0.0175018310546875,
-0.00247955322265625,
-0.0087127685546875,
0.034149169921875,
0.00618743896484375,
0.016265869140625,
-0.0143585205078125,
-0.030548095703125,
-0.01421356201171875,
-0.0013418197631835938,
0.047088623046875,
0.005802154541015625,
-0.03192138671875,
0.0146636962890625,
-0.0156402587890625,
0.020233154296875,
0.0240478515625,
-0.02093505859375,
-0.030517578125,
-0.0245361328125,
0.059906005859375,
-0.025787353515625,
0.033905029296875,
-0.04913330078125,
-0.01529693603515625,
0.0146331787109375,
-0.0269622802734375,
0.005634307861328125,
0.0207977294921875,
-0.0097808837890625,
-0.0220184326171875,
-0.04901123046875,
-0.01166534423828125,
0.00872039794921875,
0.0121612548828125,
0.0083465576171875,
0.0202789306640625,
0.00926971435546875,
-0.01174163818359375,
-0.002349853515625,
0.0129547119140625,
-0.0191650390625,
-0.009765625,
-0.0362548828125,
-0.037384033203125,
0.0182342529296875,
0.021026611328125,
0.01265716552734375,
0.013427734375,
-0.022430419921875,
-0.0121917724609375,
0.01070404052734375,
0.001506805419921875,
0.006622314453125,
0.005275726318359375,
0.00901031494140625,
-0.0206756591796875,
-0.007083892822265625,
-0.0276031494140625,
-0.0033283233642578125,
0.0262908935546875,
-0.016937255859375,
0.00399017333984375,
-0.005764007568359375,
0.0170135498046875,
-0.0015096664428710938,
0.0308380126953125,
0.015533447265625,
-0.01470947265625,
0.0290679931640625,
-0.01219940185546875,
0.01513671875,
-0.032470703125,
-0.03704833984375,
0.04046630859375,
0.0380859375,
-0.0183868408203125,
-0.00542449951171875,
-0.0012712478637695312,
0.0173492431640625,
-0.034912109375,
-0.022796630859375,
-0.0343017578125,
-0.00789642333984375,
-0.01776123046875,
0.0280914306640625,
0.04388427734375,
0.034698486328125,
-0.0034770965576171875,
0.036163330078125,
-0.029296875,
0.032379150390625,
0.0199127197265625,
0.0234527587890625,
-0.0194549560546875,
-0.04058837890625,
-0.0308380126953125,
-0.0299530029296875,
0.00861358642578125,
-0.012420654296875,
0.0124359130859375,
-0.03076171875,
-0.020233154296875,
0.02703857421875,
-0.000568389892578125,
0.023101806640625,
-0.018798828125,
-0.0175628662109375,
0.031829833984375,
-0.01739501953125,
0.061737060546875,
0.034912109375,
0.032623291015625,
-0.028167724609375,
-0.032745361328125,
-0.035125732421875,
-0.031585693359375,
-0.033294677734375,
-0.01534271240234375,
0.004688262939453125,
-0.0153656005859375,
0.0084381103515625,
0.0015859603881835938,
-0.0009245872497558594,
0.0018463134765625,
0.01398468017578125,
0.004192352294921875,
-0.00800323486328125,
-0.00667572021484375,
0.020050048828125,
0.0027713775634765625,
0.00699615478515625,
0.00888824462890625,
0.00688934326171875,
0.00151824951171875,
-0.023956298828125,
-0.027069091796875,
-0.0758056640625,
0.0161590576171875,
0.01552581787109375,
-0.0369873046875,
0.0263519287109375,
0.038848876953125,
0.006134033203125,
0.047119140625,
0.004390716552734375,
-0.0007371902465820312,
0.004322052001953125,
-0.024932861328125,
0.00531768798828125,
0.0193634033203125,
0.07293701171875,
-0.052459716796875,
0.0014629364013671875,
-0.00229644775390625,
0.01995849609375,
0.0260009765625,
-0.06329345703125,
0.0244598388671875,
0.04595947265625,
-0.0238189697265625,
0.0164337158203125,
0.005458831787109375,
0.006000518798828125,
0.0426025390625,
-0.016143798828125,
0.044464111328125,
0.0223388671875,
0.02783203125,
-0.0587158203125,
-0.018798828125,
-0.006839752197265625,
-0.0124664306640625,
-0.00496673583984375,
-0.032196044921875,
-0.01313018798828125,
-0.032745361328125,
0.0002589225769042969,
-0.0012683868408203125,
0.0028438568115234375,
-0.015350341796875,
-0.007534027099609375,
-0.01253509521484375,
0.0098724365234375,
0.030548095703125,
-0.0003733634948730469,
-0.00977325439453125,
-0.04144287109375,
0.013946533203125,
-0.019683837890625,
-0.0087738037109375,
0.025787353515625,
-0.011932373046875,
-0.0022563934326171875,
-0.02374267578125,
0.0071258544921875,
-0.0011577606201171875,
0.0159912109375,
0.0010042190551757812,
0.02783203125,
-0.022430419921875,
0.01995849609375,
0.0186614990234375,
0.005924224853515625,
-0.0306243896484375,
0.053070068359375,
-0.01446533203125,
0.005115509033203125,
0.00830078125,
0.004474639892578125,
0.035491943359375,
0.0256805419921875,
-0.0017938613891601562,
-0.0203094482421875,
0.00690460205078125,
-0.0120849609375,
-0.0205078125,
0.0019550323486328125,
0.00473785400390625,
-0.016387939453125,
-0.039520263671875,
0.00455474853515625,
-0.056793212890625,
0.00746917724609375,
-0.005401611328125,
-0.04034423828125,
0.0137786865234375,
-0.039520263671875,
0.00897216796875,
0.034423828125,
0.0240936279296875,
0.007534027099609375,
0.01081085205078125,
0.024932861328125,
-0.04058837890625,
-0.040252685546875,
0.0230255126953125,
-0.031982421875,
0.0027256011962890625,
0.01090240478515625,
-0.096435546875,
0.1314697265625,
-0.0147247314453125,
0.08251953125,
-0.0001964569091796875,
0.032318115234375,
-0.0218658447265625,
-0.0036907196044921875,
-0.0184173583984375,
0.03741455078125,
0.07440185546875,
-0.0245208740234375,
-0.0138702392578125,
-0.00897979736328125,
-0.0132598876953125,
0.046142578125,
0.05352783203125,
0.0052642822265625,
-0.0261383056640625,
-0.00547027587890625,
0.037261962890625,
-0.0177764892578125,
-0.034271240234375,
0.06781005859375,
0.0015411376953125,
-0.042144775390625,
0.0113983154296875,
0.00876617431640625,
0.0242462158203125,
-0.0020656585693359375,
-0.015350341796875,
0.0144805908203125,
0.01904296875,
0.03076171875,
-0.022369384765625,
0.06072998046875,
0.002620697021484375,
-0.028411865234375,
0.0184173583984375,
-0.02764892578125,
0.04205322265625,
0.001140594482421875,
0.0173797607421875,
-0.0007700920104980469,
0.03680419921875,
-0.014068603515625,
0.046783447265625,
-0.01302337646484375,
0.0325927734375,
0.03082275390625,
0.015289306640625,
0.01134490966796875,
0.01328277587890625,
0.034210205078125,
0.045623779296875,
-0.038299560546875,
0.031585693359375,
0.009002685546875,
0.03369140625,
-0.0361328125,
0.0171356201171875,
0.042022705078125,
0.0518798828125,
-0.037811279296875,
-0.0498046875,
0.01385498046875,
0.0379638671875,
0.0019931793212890625,
0.04681396484375,
0.040863037109375,
0.0256500244140625,
0.0911865234375,
-0.028076171875,
-0.01033782958984375,
-0.006465911865234375,
0.0186309814453125,
-0.0022830963134765625,
0.01177215576171875,
-0.000537872314453125,
-0.009429931640625,
-0.053863525390625,
0.0328369140625,
0.0211944580078125,
0.060638427734375,
-0.00786590576171875,
0.07550048828125,
-0.034698486328125,
-0.0264434814453125,
-0.0286865234375,
0.032623291015625,
0.040863037109375,
-0.01078033447265625,
-0.0252838134765625,
-0.01032257080078125,
0.045196533203125,
0.01183319091796875,
-0.0167388916015625,
0.07257080078125,
0.05474853515625,
0.06207275390625,
-0.00995635986328125,
-0.01360321044921875,
0.061126708984375,
-0.02947998046875,
-0.008575439453125,
-0.037567138671875,
-0.004467010498046875,
0.005229949951171875,
0.002490997314453125,
-0.00022125244140625,
0.025665283203125,
0.01503753662109375,
0.01015472412109375,
-0.01422882080078125,
0.0035533905029296875,
-0.0294342041015625,
0.07183837890625,
-0.0156707763671875,
0.03564453125,
0.027130126953125,
-0.1153564453125,
-0.0180206298828125,
-0.06304931640625,
-0.020172119140625,
0.0528564453125,
0.04150390625,
-0.01010894775390625,
0.0132598876953125,
0.053253173828125,
-0.05322265625,
-0.01041412353515625,
0.03253173828125,
0.0440673828125,
0.0163116455078125,
-0.0177001953125,
0.015716552734375,
-0.0254058837890625,
-0.005767822265625,
0.003505706787109375,
0.0215911865234375,
-0.00003725290298461914,
0.08233642578125,
-0.009979248046875,
0.00513458251953125,
-0.01360321044921875,
0.0254058837890625,
-0.0223541259765625,
-0.004512786865234375,
0.0164794921875,
0.0004661083221435547,
-0.0105743408203125,
-0.0162811279296875,
-0.024200439453125,
0.018585205078125,
0.0340576171875,
-0.035186767578125,
0.0154266357421875,
-0.0164337158203125,
0.005146026611328125,
-0.0177459716796875,
0.06292724609375,
0.0017709732055664062,
0.004070281982421875,
-0.047637939453125,
-0.040252685546875,
0.06591796875,
0.0509033203125,
-0.0178375244140625,
0.01444244384765625,
0.05120849609375,
-0.039825439453125,
0.04583740234375,
-0.03411865234375,
0.07598876953125,
0.03076171875,
0.0277557373046875,
-0.0291595458984375,
-0.008697509765625,
-0.0147552490234375,
-0.0015201568603515625,
0.00676727294921875,
0.0251617431640625,
0.016876220703125,
-0.03448486328125,
0.0089874267578125,
0.029052734375,
0.0263519287109375,
-0.049957275390625,
0.0018205642700195312,
0.040008544921875,
-0.0173492431640625,
0.01076507568359375,
-0.0166473388671875,
-0.0255279541015625,
-0.028228759765625,
-0.0168609619140625,
0.004779815673828125,
-0.0190582275390625,
-0.057647705078125,
-0.0628662109375,
0.0234832763671875,
0.07354736328125,
0.0240631103515625,
-0.0159454345703125,
0.0242156982421875,
-0.041595458984375,
0.00762939453125,
0.054107666015625,
-0.04541015625,
0.00171661376953125,
0.0085906982421875,
-0.033905029296875,
-0.0197296142578125,
-0.03375244140625,
0.0085296630859375,
-0.044525146484375,
0.007160186767578125,
0.01342010498046875,
-0.02362060546875,
0.0016326904296875,
0.0080413818359375,
0.0265350341796875,
0.040740966796875,
0.056182861328125,
-0.0209808349609375,
-0.041412353515625,
0.023223876953125,
-0.0203094482421875,
0.006023406982421875,
0.035186767578125,
-0.0007996559143066406,
-0.0496826171875,
-0.050567626953125,
0.03350830078125,
0.0235595703125,
-0.044891357421875,
-0.06842041015625,
0.0770263671875,
-0.03466796875,
-0.03570556640625,
0.015625,
-0.03179931640625,
-0.042877197265625,
0.051910400390625,
0.016693115234375,
-0.019287109375,
0.00888824462890625,
0.05108642578125,
-0.010223388671875,
0.03741455078125,
-0.0220489501953125,
-0.034027099609375,
-0.028656005859375,
0.008575439453125,
0.02294921875,
0.0026092529296875,
0.0053558349609375,
0.025421142578125,
0.010162353515625,
0.0625,
-0.0064544677734375,
0.0185089111328125,
-0.00750732421875,
-0.054718017578125,
-0.00197601318359375,
-0.02276611328125,
0.0163726806640625,
-0.0097503662109375,
0.029388427734375,
-0.035614013671875,
-0.0007648468017578125,
0.00461578369140625,
-0.045654296875,
-0.0379638671875,
0.00727081298828125,
-0.001735687255859375,
0.00848388671875,
-0.06488037109375,
0.006183624267578125,
0.0230255126953125,
-0.00920867919921875,
0.013885498046875,
0.005100250244140625,
-0.019195556640625,
-0.01267242431640625,
0.02960205078125,
0.001461029052734375,
-0.06207275390625,
0.0311737060546875,
-0.026275634765625,
-0.01433563232421875,
-0.062347412109375,
-0.0113677978515625,
-0.00673675537109375,
-0.07904052734375,
-0.00836944580078125,
0.0159454345703125,
0.01407623291015625,
-0.034759521484375,
0.002777099609375,
0.021026611328125,
-0.0200347900390625,
-0.001556396484375,
-0.01227569580078125,
-0.010772705078125,
-0.015716552734375,
-0.01126861572265625,
-0.04254150390625,
-0.0201873779296875,
0.0582275390625,
-0.0099639892578125,
0.073486328125,
-0.0015716552734375,
0.0151824951171875,
-0.0266571044921875,
0.059478759765625,
-0.037109375,
-0.0149078369140625,
-0.026702880859375,
-0.0007328987121582031,
0.00426483154296875,
0.003192901611328125,
0.00887298583984375,
-0.0290679931640625,
0.0159454345703125,
0.020965576171875,
0.01849365234375,
0.0248870849609375
] |
ad21e35b6d1857766dfa2bea69551e98bb7915fd
|
Wordpress Stackexchange
Q: The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better? Lately I've been reading about MariaDB and Percona Server, two strong alternatives to MySQL that have gained popularity since Oracle bought Sun.
As far as I know, both of them could be used with WordPress, but I'd like to know if anyone uses them, and if they really help make our blogs and servers run better than they did with MySQL.
A: I have personally worked with Percona Server and MySQL, not with MariaDB as of yet.
Percona provides support for MariaDB, Drizzle, Amazon RDS, and other MySQL products.
I learned at Percona Live NYC that Percona gets the latest version of MySQL and injects 30,000 lines of C/C++ that is unique to its Performance Enhancements. MySQL (eh, Oracle) tries to keep up with its own enhancements of InnoDB.
Unless your website is very heavily trafficked, there is no decent performance difference you can feel or see. However, if you do have high traffic and you want to compare MySQL, Percona, and MariaDB, I have posted an article in the DBA StackExchange on how to go about doing this.
|
Q: The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better? Lately I've been reading about MariaDB and Percona Server, two strong alternatives to MySQL that have gained popularity since Oracle bought Sun.
As far as I know, both of them could be used with WordPress, but I'd like to know if anyone uses them, and if they really help make our blogs and servers run better than they did with MySQL.
A: I have personally worked with Percona Server and MySQL, not with MariaDB as of yet.
Percona provides support for MariaDB, Drizzle, Amazon RDS, and other MySQL products.
I learned at Percona Live NYC that Percona gets the latest version of MySQL and injects 30,000 lines of C/C++ that is unique to its Performance Enhancements. MySQL (eh, Oracle) tries to keep up with its own enhancements of InnoDB.
Unless your website is very heavily trafficked, there is no decent performance difference you can feel or see. However, if you do have high traffic and you want to compare MySQL, Percona, and MariaDB, I have posted an article in the DBA StackExchange on how to go about doing this.
A: Might want to check out comparison results at http://vbtechsupport.com/606/ and http://vbtechsupport.com/657/ :)
My preference would be MariaDB 5.2
|
wordpress
|
{
"language": "en",
"length": 218,
"provenance": "stackexchange_00019.jsonl.gz:411806",
"question_score": "12",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24544"
}
|
[
0.041656494140625,
-0.0145721435546875,
0.0130157470703125,
-0.005161285400390625,
-0.00695037841796875,
-0.033050537109375,
0.054412841796875,
-0.0206756591796875,
0.035675048828125,
0.0224609375,
-0.032623291015625,
-0.0062408447265625,
0.016571044921875,
-0.0255889892578125,
-0.012237548828125,
-0.006122589111328125,
0.034912109375,
-0.0175323486328125,
0.0341796875,
-0.0014696121215820312,
-0.0115509033203125,
0.020782470703125,
0.043060302734375,
-0.0011806488037109375,
0.048431396484375,
-0.044189453125,
0.035247802734375,
-0.04132080078125,
0.0560302734375,
0.01053619384765625,
0.0276641845703125,
-0.04022216796875,
0.004177093505859375,
0.0203399658203125,
0.0325927734375,
0.007755279541015625,
-0.00804901123046875,
0.0242156982421875,
0.0269927978515625,
0.01282501220703125,
0.0135345458984375,
-0.01092529296875,
0.049530029296875,
0.0181121826171875,
0.029144287109375,
-0.037109375,
0.0252532958984375,
-0.07958984375,
-0.0231475830078125,
-0.04925537109375,
0.006969451904296875,
0.0244140625,
0.0238800048828125,
-0.00472259521484375,
0.005825042724609375,
0.043121337890625,
0.00222015380859375,
0.035369873046875,
0.023895263671875,
-0.0156402587890625,
-0.04132080078125,
0.01355743408203125,
0.0038433074951171875,
0.0014009475708007812,
-0.037200927734375,
0.0004906654357910156,
-0.0341796875,
0.00849151611328125,
0.0276947021484375,
-0.033203125,
-0.0006003379821777344,
0.00948333740234375,
-0.04559326171875,
-0.020721435546875,
-0.053863525390625,
0.04852294921875,
0.048095703125,
-0.01522064208984375,
-0.0225830078125,
0.0219268798828125,
-0.0018186569213867188,
-0.0159454345703125,
-0.0292205810546875,
-0.02655029296875,
0.0091552734375,
-0.006511688232421875,
-0.0033016204833984375,
-0.0025615692138671875,
-0.034149169921875,
-0.041015625,
-0.01175689697265625,
-0.0775146484375,
-0.08892822265625,
0.0281524658203125,
0.02484130859375,
-0.0273895263671875,
0.0035076141357421875,
-0.0338134765625,
0.00113677978515625,
-0.00914764404296875,
0.028045654296875,
-0.044525146484375,
0.0301055908203125,
0.00572967529296875,
-0.00811004638671875,
0.017425537109375,
0.008941650390625,
0.0011281967163085938,
0.0035037994384765625,
0.0020160675048828125,
-0.02886962890625,
-0.005611419677734375,
0.0204315185546875,
-0.0189208984375,
-0.01470947265625,
0.0139617919921875,
0.00830841064453125,
-0.011474609375,
-0.01666259765625,
-0.0093841552734375,
-0.01175689697265625,
0.0097808837890625,
-0.0250701904296875,
0.002552032470703125,
0.036895751953125,
0.0008921623229980469,
-0.026702880859375,
0.024139404296875,
-0.086181640625,
0.08697509765625,
-0.014190673828125,
-0.0289154052734375,
0.01465606689453125,
0.056365966796875,
-0.005954742431640625,
-0.03485107421875,
0.050323486328125,
0.0184173583984375,
0.009613037109375,
0.01049041748046875,
0.02984619140625,
-0.054473876953125,
-0.058135986328125,
0.0298614501953125,
0.0248565673828125,
-0.0225372314453125,
0.035675048828125,
0.042205810546875,
0.0019741058349609375,
0.037750244140625,
-0.0239105224609375,
0.067626953125,
-0.002628326416015625,
-0.007106781005859375,
0.040985107421875,
-0.005985260009765625,
-0.0024929046630859375,
0.00814056396484375,
0.013946533203125,
0.0301971435546875,
0.015472412109375,
0.0026226043701171875,
0.045013427734375,
-0.004207611083984375,
-0.028045654296875,
0.003231048583984375,
-0.0755615234375,
-0.0196533203125,
0.0210418701171875,
-0.0367431640625,
0.006649017333984375,
0.01165008544921875,
0.06787109375,
-0.0188140869140625,
-0.01233673095703125,
-0.00635528564453125,
-0.02044677734375,
0.049407958984375,
0.03814697265625,
0.013671875,
0.0182037353515625,
-0.0244293212890625,
0.10760498046875,
-0.018035888671875,
-0.0241851806640625,
0.0498046875,
0.00012981891632080078,
0.05950927734375,
0.0038623809814453125,
0.0193939208984375,
-0.021240234375,
0.0162811279296875,
-0.045013427734375,
0.0831298828125,
-0.032745361328125,
-0.03985595703125,
-0.0107574462890625,
0.01666259765625,
-0.0384521484375,
-0.02923583984375,
0.044403076171875,
0.0556640625,
-0.03790283203125,
-0.006450653076171875,
-0.10491943359375,
0.045623779296875,
-0.041748046875,
0.040740966796875,
0.017181396484375,
0.0135345458984375,
0.0005145072937011719,
-0.01025390625,
-0.00881195068359375,
0.0002923011779785156,
-0.03118896484375,
0.005401611328125,
-0.0093231201171875,
0.05218505859375,
0.00817108154296875,
0.03662109375,
0.02154541015625,
-0.080322265625,
0.024078369140625,
0.01129913330078125,
-0.0174102783203125,
-0.00518798828125,
-0.0169525146484375,
0.00725555419921875,
-0.019683837890625,
0.00527191162109375,
0.025482177734375,
0.036346435546875,
0.0018291473388671875,
0.01323699951171875,
0.006206512451171875,
0.00711822509765625,
0.00927734375,
-0.0853271484375,
0.013885498046875,
0.04229736328125,
0.02325439453125,
-0.0231781005859375,
-0.0186614990234375,
0.005519866943359375,
-0.0157928466796875,
-0.05029296875,
0.0198516845703125,
-0.01149749755859375,
-0.015869140625,
0.0035152435302734375,
0.01165771484375,
-0.0014715194702148438,
0.0113372802734375,
-0.033294677734375,
-0.0070648193359375,
0.029449462890625,
0.00234222412109375,
0.0161285400390625,
-0.02520751953125,
0.029052734375,
-0.01160430908203125,
0.03509521484375,
0.02386474609375,
0.01053619384765625,
-0.02008056640625,
0.026123046875,
0.0208740234375,
0.0159759521484375,
0.00037360191345214844,
0.0109405517578125,
0.0012693405151367188,
-0.00925445556640625,
0.0110931396484375,
0.0194244384765625,
-0.039947509765625,
0.043060302734375,
-0.019439697265625,
-0.005462646484375,
0.004535675048828125,
0.0079193115234375,
-0.006923675537109375,
0.00580596923828125,
-0.00928497314453125,
-0.0068817138671875,
0.00360870361328125,
-0.061065673828125,
0.0032176971435546875,
0.013275146484375,
-0.0611572265625,
-0.019073486328125,
0.01959228515625,
0.03228759765625,
-0.026885986328125,
0.0158538818359375,
-0.00931549072265625,
-0.0026378631591796875,
0.038726806640625,
0.01654052734375,
0.00543212890625,
-0.01039886474609375,
0.018829345703125,
0.03619384765625,
-0.0292816162109375,
0.0245208740234375,
-0.003498077392578125,
0.00274658203125,
0.025970458984375,
0.0013189315795898438,
-0.021240234375,
-0.01552581787109375,
-0.06494140625,
-0.051239013671875,
0.00827789306640625,
0.0047760009765625,
0.023712158203125,
-0.028900146484375,
0.01398468017578125,
0.01800537109375,
-0.041473388671875,
-0.052337646484375,
-0.02496337890625,
-0.007266998291015625,
-0.0189056396484375,
0.0104827880859375,
-0.005916595458984375,
0.01287841796875,
-0.00032806396484375,
0.0020923614501953125,
0.022369384765625,
-0.031402587890625,
-0.057861328125,
-0.048980712890625,
-0.0828857421875,
-0.0079193115234375,
-0.0020275115966796875,
0.0202484130859375,
0.014923095703125,
-0.00862884521484375,
-0.007526397705078125,
-0.05242919921875,
-0.00864410400390625,
-0.03948974609375,
-0.005603790283203125,
-0.005489349365234375,
0.0224609375,
-0.0199432373046875,
-0.027679443359375,
0.0014905929565429688,
0.072509765625,
0.0290985107421875,
-0.04998779296875,
0.0140533447265625,
-0.00396728515625,
0.0242767333984375,
0.017852783203125,
-0.050384521484375,
0.00545501708984375,
0.056182861328125,
-0.016998291015625,
-0.03057861328125,
-0.02655029296875,
0.0377197265625,
-0.02935791015625,
-0.0237579345703125,
-0.0035991668701171875,
-0.0308685302734375,
0.005687713623046875,
-0.0032863616943359375,
0.02386474609375,
-0.026580810546875,
0.0166778564453125,
-0.0309600830078125,
-0.0181732177734375,
0.01129150390625,
0.042236328125,
-0.01474761962890625,
-0.00102996826171875,
-0.052490234375,
0.020904541015625,
-0.0159912109375,
-0.022186279296875,
-0.01236724853515625,
0.01161956787109375,
-0.0174560546875,
-0.0251922607421875,
0.0615234375,
0.009674072265625,
0.0150909423828125,
-0.0224609375,
-0.039306640625,
-0.0016641616821289062,
0.07928466796875,
0.020965576171875,
-0.0301666259765625,
0.0000960230827331543,
0.034576416015625,
-0.07977294921875,
0.00379180908203125,
-0.01367950439453125,
0.0199432373046875,
0.022979736328125,
-0.042083740234375,
-0.00525665283203125,
-0.03515625,
0.01248931884765625,
-0.0082550048828125,
0.01198577880859375,
0.006145477294921875,
0.02325439453125,
-0.031646728515625,
0.00820159912109375,
0.00661468505859375,
0.00347137451171875,
-0.0269012451171875,
-0.007396697998046875,
-0.041412353515625,
-0.09442138671875,
-0.0262603759765625,
-0.02520751953125,
0.06939697265625,
0.0020122528076171875,
0.0031528472900390625,
-0.0248870849609375,
0.033966064453125,
-0.0093841552734375,
-0.0006346702575683594,
-0.019927978515625,
0.00600433349609375,
-0.010406494140625,
-0.042572021484375,
-0.030548095703125,
-0.0307464599609375,
-0.0200042724609375,
-0.06231689453125,
-0.00323486328125,
-0.041412353515625,
-0.0293731689453125,
0.0008707046508789062,
-0.033721923828125,
-0.0006818771362304688,
-0.03759765625,
-0.005306243896484375,
0.005222320556640625,
0.019744873046875,
-0.03790283203125,
0.01898193359375,
-0.01404571533203125,
-0.0509033203125,
0.068603515625,
-0.0025997161865234375,
0.004230499267578125,
-0.01206207275390625,
0.048583984375,
0.0011310577392578125,
-0.03155517578125,
0.0000019073486328125,
-0.0113677978515625,
0.01363372802734375,
-0.0259246826171875,
0.039581298828125,
0.0048065185546875,
-0.01346588134765625,
0.040863037109375,
-0.00968170166015625,
-0.028961181640625,
0.0130615234375,
-0.00853729248046875,
0.0193328857421875,
-0.00037217140197753906,
-0.017669677734375,
0.002758026123046875,
0.037261962890625,
0.04779052734375,
-0.00434112548828125,
-0.007503509521484375,
-0.002635955810546875,
0.02044677734375,
0.01416015625,
-0.048797607421875,
-0.0377197265625,
-0.0177764892578125,
0.01312255859375,
-0.07647705078125,
0.06842041015625,
0.0205078125,
-0.0198516845703125,
0.0290069580078125,
-0.0064697265625,
-0.041839599609375,
0.05694580078125,
0.023651123046875,
0.042144775390625,
0.0234375,
0.0184173583984375,
-0.0233001708984375,
0.01425933837890625,
-0.01403045654296875,
0.09173583984375,
0.00597381591796875,
-0.038787841796875,
-0.010955810546875,
-0.037811279296875,
-0.007602691650390625,
0.0194091796875,
-0.032379150390625,
0.035064697265625,
0.0233001708984375,
-0.04156494140625,
-0.0137786865234375,
-0.043975830078125,
-0.024383544921875,
-0.03900146484375,
0.040863037109375,
-0.0160064697265625,
0.005855560302734375,
0.0179595947265625,
0.04736328125,
-0.00981903076171875,
0.0382080078125,
-0.011962890625,
0.02532958984375,
0.00841522216796875,
0.03839111328125,
0.004425048828125,
-0.0140228271484375,
0.00576019287109375,
0.02972412109375,
0.024658203125,
-0.056549072265625,
-0.044342041015625,
-0.018341064453125,
0.06072998046875,
-0.036712646484375,
-0.00379180908203125,
0.0498046875,
0.0007753372192382812,
-0.01702880859375,
-0.006626129150390625,
0.007537841796875,
0.00429534912109375,
0.00438690185546875,
-0.0158538818359375,
-0.0126800537109375,
0.0130462646484375,
-0.0194854736328125,
0.020965576171875,
-0.01702880859375,
0.03515625,
0.027496337890625,
0.006710052490234375,
0.0013151168823242188,
-0.01727294921875,
0.06036376953125,
-0.032196044921875,
-0.043121337890625,
0.0268707275390625,
0.030914306640625,
-0.0283050537109375,
0.00762939453125,
0.0166015625,
0.01071929931640625,
0.0220184326171875,
-0.05157470703125,
0.00875091552734375,
-0.06390380859375,
-0.02398681640625,
0.0526123046875,
0.03228759765625,
0.0038909912109375,
-0.03936767578125,
-0.0435791015625,
-0.048980712890625,
-0.0209197998046875,
0.026885986328125,
-0.033843994140625,
0.01477813720703125,
0.0031414031982421875,
0.006153106689453125,
-0.0256195068359375,
-0.04815673828125,
-0.0189971923828125,
0.01995849609375,
0.027008056640625,
0.01168060302734375,
0.0198822021484375,
0.0599365234375,
-0.0167694091796875,
0.058624267578125,
0.041290283203125,
0.049560546875,
-0.0180511474609375,
-0.046417236328125,
0.0247650146484375,
-0.043182373046875,
-0.025726318359375,
-0.04107666015625,
-0.01184844970703125,
-0.002040863037109375,
0.0038623809814453125,
-0.00251007080078125,
0.0061187744140625,
-0.015380859375,
0.0203399658203125,
-0.0260009765625,
0.0188446044921875,
-0.02593994140625,
-0.0219573974609375,
0.032379150390625,
-0.0134735107421875,
0.028533935546875,
-0.0310821533203125,
-0.03802490234375,
0.022125244140625,
-0.00923919677734375,
0.0015268325805664062,
0.048248291015625,
0.0250244140625,
0.042449951171875,
0.05120849609375,
-0.0312042236328125,
0.0205535888671875,
0.0305023193359375,
-0.026092529296875,
0.002777099609375,
-0.0195465087890625,
-0.01555633544921875,
0.02154541015625,
0.016632080078125,
-0.004852294921875,
0.0030498504638671875,
0.00710296630859375,
-0.0096435546875,
-0.031829833984375,
0.04351806640625,
0.03460693359375,
-0.036590576171875,
-0.0203857421875,
0.01476287841796875,
-0.02587890625,
-0.0654296875,
-0.04449462890625,
0.005950927734375,
-0.03143310546875,
0.02935791015625,
0.0259857177734375,
-0.0474853515625,
-0.042633056640625,
-0.00902557373046875,
-0.0146484375,
-0.0276641845703125,
0.03656005859375,
0.022125244140625,
-0.01189422607421875,
0.020751953125,
0.01042938232421875,
0.005001068115234375,
0.0007352828979492188,
0.0029697418212890625,
-0.0200042724609375,
-0.033966064453125,
-0.0226898193359375,
-0.00955963134765625,
-0.0239715576171875,
-0.005886077880859375,
0.003955841064453125,
0.034576416015625,
0.04034423828125,
0.031829833984375,
0.01084136962890625,
-0.02606201171875,
0.039093017578125,
0.01538848876953125,
-0.00278472900390625,
-0.0179901123046875,
0.0316162109375,
-0.005649566650390625,
-0.030303955078125,
0.01457977294921875,
-0.0345458984375,
-0.01837158203125,
0.01558685302734375,
0.0272979736328125,
0.07427978515625,
-0.0469970703125,
-0.006740570068359375,
0.0423583984375,
-0.0302581787109375,
-0.02105712890625,
0.0003190040588378906,
0.0107269287109375,
-0.061248779296875,
-0.05810546875,
0.0085906982421875,
-0.07305908203125,
-0.01462554931640625,
-0.0052642822265625,
-0.061126708984375,
0.0687255859375,
0.021728515625,
0.0087738037109375,
0.026153564453125,
0.0241851806640625,
-0.044342041015625,
-0.007434844970703125,
-0.00775909423828125,
0.05615234375,
-0.0015201568603515625,
0.003509521484375,
-0.0218658447265625,
0.008331298828125,
0.0039825439453125,
0.0084991455078125,
-0.022705078125,
-0.00731658935546875,
-0.05224609375,
-0.013763427734375,
0.029541015625,
0.0219268798828125,
0.0274810791015625,
0.038055419921875,
-0.013397216796875,
-0.007015228271484375,
0.045928955078125,
-0.0139923095703125,
0.012359619140625,
0.0222320556640625,
-0.010284423828125,
0.005828857421875,
0.0033168792724609375,
0.0162200927734375,
0.0196380615234375,
0.0185394287109375,
0.007595062255859375,
-0.002216339111328125,
0.0009412765502929688,
-0.041015625,
-0.00305938720703125,
0.0028858184814453125,
-0.0241546630859375,
-0.062744140625,
-0.056304931640625,
-0.018707275390625,
0.0275115966796875,
-0.01983642578125,
-0.034027099609375,
0.03228759765625,
0.00539398193359375,
-0.04107666015625,
0.01100921630859375,
-0.0186614990234375,
0.009735107421875,
0.0138702392578125,
0.039886474609375,
0.0245513916015625,
0.02093505859375,
-0.0283966064453125,
0.01021575927734375,
0.0675048828125,
0.05267333984375,
-0.048431396484375,
-0.03594970703125,
0.019744873046875,
0.03277587890625,
0.01067352294921875,
0.0022068023681640625,
0.01134490966796875,
0.00559234619140625,
0.06732177734375,
0.025848388671875,
-0.0081787109375,
-0.0027065277099609375,
-0.0258941650390625,
0.0156707763671875,
0.0384521484375,
0.0268707275390625,
0.031585693359375,
0.003810882568359375,
-0.0260009765625,
-0.011444091796875,
0.05047607421875,
0.008392333984375,
0.07525634765625,
-0.0281982421875,
-0.0277252197265625,
-0.00727081298828125,
-0.0002930164337158203,
-0.06011962890625,
0.022857666015625,
-0.06524658203125,
-0.0640869140625,
-0.005115509033203125,
0.0732421875,
0.0079803466796875,
0.08331298828125,
0.0283355712890625,
0.0300140380859375,
0.05706787109375,
0.0208892822265625,
0.07525634765625,
-0.01126861572265625,
-0.00799560546875,
-0.04339599609375,
-0.04949951171875,
-0.0171661376953125,
-0.032867431640625,
0.040069580078125,
0.00655364990234375,
-0.0208282470703125,
0.01288604736328125,
-0.01174163818359375,
0.0168914794921875,
-0.0310821533203125,
0.00592041015625,
0.0311279296875,
0.00742340087890625,
0.0290374755859375,
0.007167816162109375,
-0.0272216796875,
0.03839111328125,
0.04315185546875,
-0.021636962890625,
0.021240234375,
0.042388916015625,
-0.01110076904296875,
0.01209259033203125,
-0.017486572265625,
-0.0125885009765625,
0.0301666259765625,
-0.0243072509765625,
-0.03765869140625,
0.03192138671875,
-0.02655029296875,
0.01038360595703125,
0.0128631591796875,
0.0114593505859375,
0.01434326171875,
-0.001956939697265625,
0.06707763671875,
-0.036712646484375,
0.00873565673828125,
-0.0267333984375,
-0.01216888427734375,
-0.006656646728515625,
-0.0107879638671875,
-0.024871826171875,
0.0198822021484375,
0.0015745162963867188,
-0.0086212158203125,
-0.01251983642578125,
-0.0236053466796875,
0.051727294921875,
-0.063720703125,
-0.030609130859375,
0.006580352783203125,
0.0235443115234375,
-0.0186614990234375,
0.004261016845703125,
-0.030548095703125,
-0.0261383056640625,
-0.00417327880859375,
0.020782470703125,
0.0016736984252929688,
0.0075531005859375,
-0.01096343994140625,
0.0179901123046875,
-0.00853729248046875,
-0.00836181640625,
0.01432037353515625,
-0.0109100341796875,
0.045654296875,
0.044921875,
-0.05609130859375,
0.0164642333984375,
0.00897216796875,
-0.0217437744140625,
0.000919342041015625,
0.00508880615234375,
-0.0244293212890625,
0.020050048828125,
-0.0694580078125,
0.0221405029296875,
0.040557861328125,
0.0455322265625,
-0.018524169921875,
0.0185546875,
0.01611328125,
-0.0010328292846679688,
0.03900146484375,
0.046966552734375,
-0.01611328125,
0.025115966796875,
-0.039581298828125,
-0.010009765625,
-0.0254364013671875,
-0.07794189453125,
-0.09478759765625,
0.0005407333374023438,
0.00933074951171875,
-0.0110931396484375,
0.00908660888671875,
0.013336181640625,
-0.0418701171875,
-0.02783203125,
-0.01873779296875,
-0.0809326171875,
0.0208740234375,
0.032196044921875,
0.021026611328125,
-0.039154052734375,
-0.035858154296875,
0.0208740234375,
-0.0244293212890625,
0.002590179443359375,
0.01329803466796875,
-0.0152130126953125,
0.01073455810546875,
-0.03143310546875,
0.0150146484375,
0.0251007080078125,
0.007354736328125,
-0.002498626708984375,
0.01715087890625,
0.007595062255859375,
-0.03167724609375,
-0.04638671875,
0.0195770263671875,
-0.042144775390625,
-0.0169677734375,
-0.1033935546875,
0.0294952392578125,
-0.0073394775390625,
-0.034912109375,
-0.03985595703125,
0.055145263671875,
-0.032623291015625,
-0.005615234375,
-0.03619384765625,
-0.015411376953125,
-0.0172271728515625,
0.051513671875,
0.0033111572265625,
-0.00920867919921875,
-0.01038360595703125,
0.04730224609375,
0.011810302734375,
0.0229949951171875,
-0.022369384765625,
0.0234527587890625,
-0.032958984375,
0.084716796875,
0.0626220703125,
0.040008544921875,
0.0024433135986328125,
0.0201263427734375,
-0.0003635883331298828,
0.0293731689453125,
-0.02325439453125,
0.0235443115234375,
-0.00975799560546875,
-0.0182952880859375,
-0.0310211181640625,
0.024169921875,
-0.037628173828125,
0.006458282470703125,
0.103759765625,
0.06903076171875,
0.03558349609375,
-0.04705810546875,
-0.05731201171875,
-0.053131103515625,
-0.016845703125,
-0.03643798828125,
0.026763916015625,
-0.0986328125,
-0.00815582275390625,
0.018310546875,
-0.00836944580078125,
0.00826263427734375,
0.0079345703125,
-0.0091400146484375,
0.00908660888671875,
0.0382080078125,
-0.0227203369140625,
-0.005313873291015625,
0.0018634796142578125,
0.07177734375,
-0.047515869140625,
-0.01442718505859375,
0.026397705078125,
0.002033233642578125,
0.0225677490234375,
0.031829833984375,
-0.03662109375,
-0.05029296875,
0.055450439453125,
0.04132080078125,
0.0111083984375,
-0.0133819580078125,
0.02288818359375,
-0.0005459785461425781,
-0.00832366943359375,
0.0260772705078125,
0.01007843017578125,
0.03326416015625,
-0.0144195556640625,
0.039154052734375,
0.0196380615234375,
0.03936767578125,
0.00885009765625,
-0.05389404296875,
-0.0298614501953125,
0.027984619140625,
0.0116424560546875,
-0.02789306640625,
0.060791015625,
-0.043731689453125,
-0.001995086669921875,
-0.01251983642578125,
-0.0218658447265625,
-0.050048828125,
0.0077056884765625,
-0.0006403923034667969,
-0.00872802734375,
0.0198516845703125
] |
3467bf3f9d3b26d40c3df31b868a0da9848a1b88
|
Wordpress Stackexchange
Q: Conditional wp_enqueue_script on a page For efficiency we are trying to hook some JS scripts only a certain page template of a theme that is to hold a form: page-with-form.php
On the theme functions.php we've defined a init_method as such:
function my_init_method(){
$dir = get_bloginfo('stylesheet_directory')."/js/jquery.js";
wp_deregister_script('jquery');
wp_register_script('jquery',$dir);
wp_enqueue_script('jquery');
$dir = get_bloginfo('stylesheet_directory')."/js/jquery.validate.min.js";
wp_deregister_script('jquery.validate.min');
wp_register_script('jquery.validate',$dir);
wp_enqueue_script('jquery.validate.min');
$dir = get_bloginfo('stylesheet_directory')."/js/funcion.js";
wp_deregister_script('funcion');
wp_register_script('funcion',$dir);
wp_enqueue_script('funcion');
}
We then expected we could just add at the firts line of page-with-form.php page template (before get_header()) :
add_action('init', 'my_init_method');
*
*Is this not possible?
*Are we forced to add an if rule to the functions.php function to detect that we are on that page?
Code modifications based on answers:
On the page template load the function directly, no need to add_action("init"...
my_init_method();
...
get_header();
A: init is much earlier than page template loading and not appropriate place for enqueues (despite many tutorials and docs using it for that).
Hook your function to wp_enqueue_scripts and make sure you are doing that hooking before wp_head() call in template.
|
Q: Conditional wp_enqueue_script on a page For efficiency we are trying to hook some JS scripts only a certain page template of a theme that is to hold a form: page-with-form.php
On the theme functions.php we've defined a init_method as such:
function my_init_method(){
$dir = get_bloginfo('stylesheet_directory')."/js/jquery.js";
wp_deregister_script('jquery');
wp_register_script('jquery',$dir);
wp_enqueue_script('jquery');
$dir = get_bloginfo('stylesheet_directory')."/js/jquery.validate.min.js";
wp_deregister_script('jquery.validate.min');
wp_register_script('jquery.validate',$dir);
wp_enqueue_script('jquery.validate.min');
$dir = get_bloginfo('stylesheet_directory')."/js/funcion.js";
wp_deregister_script('funcion');
wp_register_script('funcion',$dir);
wp_enqueue_script('funcion');
}
We then expected we could just add at the firts line of page-with-form.php page template (before get_header()) :
add_action('init', 'my_init_method');
*
*Is this not possible?
*Are we forced to add an if rule to the functions.php function to detect that we are on that page?
Code modifications based on answers:
On the page template load the function directly, no need to add_action("init"...
my_init_method();
...
get_header();
A: init is much earlier than page template loading and not appropriate place for enqueues (despite many tutorials and docs using it for that).
Hook your function to wp_enqueue_scripts and make sure you are doing that hooking before wp_head() call in template.
A: When you loaded your template file, you already passed the 'template_redirect' hook, which is too late (See: Plugin/Action API Reference).
You need to set the add_action call in your functions.php file, which is loaded before the after_setup_theme hook - which is the first available hook for themes.
A: In addition to using the correct hook (as pointed out by @Rarst), you will need to move your functional code to functions.php, and wrap the function contents in an if ( is_page( 'page-with-form' ) ) conditional.
|
wordpress
|
{
"language": "en",
"length": 254,
"provenance": "stackexchange_00019.jsonl.gz:411817",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24580"
}
|
[
0.007801055908203125,
0.0035552978515625,
-0.067626953125,
-0.03570556640625,
0.025604248046875,
-0.035064697265625,
0.01873779296875,
0.018218994140625,
-0.0195770263671875,
-0.0138397216796875,
-0.05303955078125,
0.03839111328125,
-0.0643310546875,
-0.01116180419921875,
0.01580810546875,
-0.06658935546875,
0.0438232421875,
-0.0433349609375,
0.019256591796875,
-0.0158233642578125,
0.0377197265625,
0.005023956298828125,
0.0108795166015625,
0.0660400390625,
0.0192108154296875,
-0.0242919921875,
0.1004638671875,
0.0006036758422851562,
0.0099639892578125,
-0.0145263671875,
0.029541015625,
-0.0233917236328125,
0.032257080078125,
-0.0010471343994140625,
-0.0150146484375,
0.04833984375,
0.015838623046875,
0.01129150390625,
0.01458740234375,
0.033966064453125,
0.02191162109375,
-0.00835418701171875,
-0.007488250732421875,
0.02490234375,
-0.031524658203125,
-0.05682373046875,
0.028472900390625,
-0.01001739501953125,
0.0182342529296875,
0.019012451171875,
0.0082855224609375,
-0.01018524169921875,
0.00984954833984375,
0.007183074951171875,
0.0007977485656738281,
0.0233612060546875,
-0.03631591796875,
-0.0297088623046875,
0.0263824462890625,
0.103515625,
0.0208282470703125,
-0.0255126953125,
-0.01953125,
-0.0914306640625,
-0.0285186767578125,
-0.0059051513671875,
-0.0557861328125,
0.0079345703125,
-0.03955078125,
-0.022308349609375,
0.031585693359375,
-0.04559326171875,
-0.016693115234375,
-0.007671356201171875,
-0.0367431640625,
0.00783538818359375,
0.030609130859375,
0.004486083984375,
0.0010404586791992188,
0.00791168212890625,
-0.004207611083984375,
-0.03826904296875,
-0.021240234375,
0.0182037353515625,
0.0029315948486328125,
0.041534423828125,
-0.00982666015625,
-0.0172119140625,
-0.04254150390625,
-0.01242828369140625,
-0.0306549072265625,
-0.0263214111328125,
-0.0290679931640625,
-0.03912353515625,
0.002346038818359375,
-0.037628173828125,
0.0697021484375,
0.06317138671875,
0.050201416015625,
0.0124359130859375,
-0.0003025531768798828,
-0.056640625,
0.01039886474609375,
-0.0443115234375,
0.0116119384765625,
0.086669921875,
0.0012865066528320312,
-0.0245361328125,
0.0160369873046875,
-0.007556915283203125,
0.0292205810546875,
0.01151275634765625,
0.01349639892578125,
-0.005344390869140625,
-0.05657958984375,
-0.00670623779296875,
-0.00670623779296875,
-0.0184173583984375,
0.0160369873046875,
0.0036449432373046875,
0.002597808837890625,
0.045867919921875,
0.02471923828125,
-0.045989990234375,
0.0005245208740234375,
-0.0102386474609375,
-0.0017642974853515625,
-0.06256103515625,
0.0110931396484375,
0.0291748046875,
0.005222320556640625,
0.00846099853515625,
0.011932373046875,
-0.009063720703125,
-0.038543701171875,
-0.018585205078125,
0.02618408203125,
0.0146942138671875,
0.0069122314453125,
-0.0283203125,
0.02325439453125,
-0.018341064453125,
0.0004944801330566406,
0.017303466796875,
-0.03717041015625,
0.0081329345703125,
0.01220703125,
0.006610870361328125,
-0.0202178955078125,
-0.0439453125,
0.0126495361328125,
-0.01316070556640625,
0.04351806640625,
0.0017108917236328125,
-0.01514434814453125,
0.000011742115020751953,
0.0261077880859375,
-0.01287078857421875,
-0.041107177734375,
-0.03338623046875,
-0.01837158203125,
-0.000005066394805908203,
-0.00312042236328125,
-0.07373046875,
-0.07025146484375,
-0.043731689453125,
-0.00019037723541259766,
0.0020771026611328125,
0.0196685791015625,
0.05035400390625,
-0.0149383544921875,
-0.0251617431640625,
0.015960693359375,
0.0102996826171875,
-0.021881103515625,
0.0156402587890625,
-0.0188446044921875,
0.0228118896484375,
0.033966064453125,
0.00737762451171875,
-0.00861358642578125,
-0.032440185546875,
0.0521240234375,
-0.0171966552734375,
-0.0517578125,
0.01441192626953125,
0.0301971435546875,
0.050018310546875,
-0.0002315044403076172,
0.008880615234375,
0.08447265625,
0.0215301513671875,
-0.036651611328125,
-0.0008311271667480469,
-0.0105133056640625,
-0.01617431640625,
0.0254669189453125,
0.0121917724609375,
0.0093536376953125,
-0.00827789306640625,
0.0265045166015625,
0.000001430511474609375,
0.01502227783203125,
-0.0404052734375,
-0.054351806640625,
-0.004787445068359375,
-0.0231781005859375,
0.04974365234375,
0.01534271240234375,
0.0080413818359375,
-0.0020427703857421875,
0.01483917236328125,
-0.0256805419921875,
-0.005290985107421875,
-0.0333251953125,
0.0173797607421875,
-0.0443115234375,
0.06268310546875,
-0.0137176513671875,
0.0311737060546875,
-0.0018177032470703125,
-0.03857421875,
0.0203704833984375,
0.0037860870361328125,
-0.0140533447265625,
-0.025177001953125,
-0.0125732421875,
-0.02117919921875,
-0.01422119140625,
0.01763916015625,
-0.0224456787109375,
0.026611328125,
0.00458526611328125,
0.0318603515625,
-0.0390625,
-0.0268707275390625,
-0.031280517578125,
-0.0034198760986328125,
0.0111846923828125,
0.0323486328125,
0.029205322265625,
0.0162353515625,
-0.00424957275390625,
0.0162200927734375,
0.061614990234375,
-0.04412841796875,
-0.005157470703125,
0.01491546630859375,
-0.0206756591796875,
0.00406646728515625,
-0.01027679443359375,
0.02593994140625,
0.0303802490234375,
-0.007564544677734375,
0.0006933212280273438,
0.04730224609375,
-0.0306854248046875,
-0.01042938232421875,
0.0127716064453125,
-0.01352691650390625,
0.00406646728515625,
-0.0251312255859375,
-0.011993408203125,
-0.0130615234375,
0.05426025390625,
-0.0254669189453125,
0.01129913330078125,
-0.00835418701171875,
-0.0364990234375,
0.00626373291015625,
0.0199432373046875,
-0.038421630859375,
-0.00911712646484375,
0.0120849609375,
0.047210693359375,
-0.0123138427734375,
-0.047119140625,
0.005039215087890625,
0.0147705078125,
0.01268768310546875,
-0.01062774658203125,
0.0172119140625,
-0.0158233642578125,
-0.01351165771484375,
-0.01361846923828125,
-0.060150146484375,
0.01435089111328125,
0.036041259765625,
0.04693603515625,
0.0166778564453125,
0.051025390625,
-0.019073486328125,
-0.03759765625,
0.03912353515625,
0.0131378173828125,
-0.06396484375,
0.0195465087890625,
0.006763458251953125,
0.007904052734375,
-0.006626129150390625,
0.006847381591796875,
0.02685546875,
-0.01357269287109375,
-0.004131317138671875,
0.004154205322265625,
-0.026580810546875,
0.044921875,
-0.0077972412109375,
-0.002017974853515625,
-0.029144287109375,
-0.0207977294921875,
0.00403594970703125,
0.024139404296875,
0.028350830078125,
0.028289794921875,
-0.01457977294921875,
0.0213775634765625,
0.0187530517578125,
-0.05828857421875,
-0.08306884765625,
-0.018402099609375,
-0.048736572265625,
0.054229736328125,
-0.0128173828125,
-0.0033855438232421875,
-0.0307159423828125,
0.01080322265625,
0.0254974365234375,
-0.038848876953125,
-0.0149078369140625,
-0.01462554931640625,
-0.039337158203125,
-0.046905517578125,
0.028961181640625,
0.0024929046630859375,
0.00899505615234375,
0.0055389404296875,
0.003856658935546875,
-0.0017242431640625,
-0.057403564453125,
0.007282257080078125,
0.01995849609375,
-0.0059967041015625,
0.0209808349609375,
0.01287078857421875,
-0.047119140625,
-0.02569580078125,
0.009002685546875,
-0.038330078125,
-0.01788330078125,
0.0311431884765625,
-0.01885986328125,
-0.004123687744140625,
-0.02117919921875,
0.0009107589721679688,
0.055328369140625,
0.003398895263671875,
-0.0308837890625,
0.030242919921875,
-0.052764892578125,
-0.0247344970703125,
0.00750732421875,
-0.03546142578125,
0.003726959228515625,
0.031097412109375,
-0.027801513671875,
0.00905609130859375,
0.0013074874877929688,
0.02911376953125,
-0.01012420654296875,
-0.0026416778564453125,
-0.01042938232421875,
0.05828857421875,
-0.001720428466796875,
0.0196075439453125,
-0.0312042236328125,
0.046539306640625,
-0.020172119140625,
-0.006679534912109375,
0.00592041015625,
-0.002559661865234375,
-0.0083465576171875,
-0.0269622802734375,
-0.044891357421875,
-0.007137298583984375,
0.003948211669921875,
-0.0216217041015625,
0.03216552734375,
-0.0030765533447265625,
0.006801605224609375,
-0.0006666183471679688,
0.039031982421875,
-0.0290069580078125,
-0.0206451416015625,
0.016571044921875,
0.028656005859375,
-0.049224853515625,
-0.043975830078125,
-0.02740478515625,
-0.01537322998046875,
-0.042449951171875,
0.00046133995056152344,
-0.01155853271484375,
-0.005298614501953125,
-0.020599365234375,
-0.015350341796875,
-0.042572021484375,
-0.029571533203125,
0.0311431884765625,
-0.038299560546875,
0.0019283294677734375,
0.0408935546875,
0.00922393798828125,
0.0037631988525390625,
-0.0089569091796875,
-0.04534912109375,
-0.07257080078125,
-0.01508331298828125,
-0.04833984375,
0.0601806640625,
0.0233917236328125,
-0.00811004638671875,
-0.0116119384765625,
0.047332763671875,
-0.0082550048828125,
0.007099151611328125,
0.0262603759765625,
0.031707763671875,
-0.0010309219360351562,
-0.018646240234375,
0.00621795654296875,
-0.042327880859375,
-0.01390838623046875,
-0.01177215576171875,
-0.04779052734375,
-0.014801025390625,
-0.007595062255859375,
-0.003765106201171875,
0.0311737060546875,
-0.0184173583984375,
-0.0155181884765625,
-0.01149749755859375,
-0.034454345703125,
-0.006256103515625,
-0.0001779794692993164,
-0.0258941650390625,
-0.0171356201171875,
-0.03662109375,
0.0177001953125,
-0.0650634765625,
0.006870269775390625,
-0.0033588409423828125,
0.051727294921875,
0.0283966064453125,
0.01308441162109375,
0.060943603515625,
0.02044677734375,
0.0236053466796875,
0.03125,
0.05535888671875,
0.003208160400390625,
-0.019989013671875,
0.06695556640625,
0.0257720947265625,
0.006389617919921875,
0.0189208984375,
0.0457763671875,
0.020294189453125,
0.0223388671875,
-0.0191192626953125,
0.030426025390625,
-0.0199127197265625,
-0.00972747802734375,
-0.01467132568359375,
0.0251922607421875,
0.037109375,
-0.0260009765625,
-0.030792236328125,
0.00791168212890625,
0.0164337158203125,
-0.0081634521484375,
-0.0203399658203125,
0.0101470947265625,
0.047119140625,
0.054534912109375,
-0.01247406005859375,
0.032623291015625,
0.05224609375,
-0.01143646240234375,
0.0374755859375,
0.03228759765625,
-0.0273284912109375,
0.021270751953125,
0.0372314453125,
-0.0204925537109375,
0.005626678466796875,
-0.00841522216796875,
0.0158233642578125,
0.00635528564453125,
-0.025970458984375,
-0.04144287109375,
0.0135650634765625,
0.0740966796875,
-0.0180511474609375,
0.0200653076171875,
0.0406494140625,
0.010009765625,
-0.01284027099609375,
-0.02593994140625,
0.0036182403564453125,
-0.0023365020751953125,
-0.038238525390625,
-0.01151275634765625,
0.0010128021240234375,
-0.0157928466796875,
-0.00835418701171875,
-0.006534576416015625,
0.039764404296875,
-0.029205322265625,
-0.00972747802734375,
0.047027587890625,
-0.007503509521484375,
0.035125732421875,
0.0278472900390625,
-0.01213836669921875,
-0.0034503936767578125,
-0.0007872581481933594,
-0.0224151611328125,
-0.03143310546875,
-0.005401611328125,
0.020050048828125,
0.02313232421875,
-0.0186920166015625,
-0.005825042724609375,
0.016204833984375,
0.01433563232421875,
-0.0080108642578125,
0.0085601806640625,
0.0309600830078125,
-0.0009832382202148438,
0.006103515625,
0.01116180419921875,
0.0141143798828125,
0.0231781005859375,
0.01557159423828125,
0.0150146484375,
0.00806427001953125,
0.00824737548828125,
-0.007904052734375,
-0.028961181640625,
-0.0018157958984375,
-0.003814697265625,
-0.0020809173583984375,
0.0133209228515625,
-0.00015687942504882812,
-0.048095703125,
-0.058502197265625,
0.0084075927734375,
0.0031414031982421875,
0.002887725830078125,
-0.032623291015625,
0.00473785400390625,
-0.0494384765625,
0.03948974609375,
-0.036407470703125,
0.0207366943359375,
0.0175018310546875,
-0.0016002655029296875,
-0.041961669921875,
0.00574493408203125,
-0.043792724609375,
-0.00457763671875,
-0.07244873046875,
-0.0643310546875,
-0.027618408203125,
-0.0012388229370117188,
-0.0182952880859375,
0.018035888671875,
-0.0426025390625,
-0.0142669677734375,
-0.0006718635559082031,
0.004856109619140625,
0.0098876953125,
0.0247955322265625,
-0.04400634765625,
0.0670166015625,
0.03179931640625,
-0.00005060434341430664,
0.00791168212890625,
0.038787841796875,
0.01123809814453125,
-0.0004642009735107422,
-0.021575927734375,
-0.07147216796875,
0.0236663818359375,
0.006221771240234375,
0.00127410888671875,
0.057464599609375,
0.04730224609375,
0.024871826171875,
0.028717041015625,
0.004375457763671875,
0.01641845703125,
-0.01505279541015625,
0.003940582275390625,
0.0170440673828125,
0.011688232421875,
0.024932861328125,
-0.009613037109375,
-0.010009765625,
-0.0031375885009765625,
-0.0116119384765625,
0.05084228515625,
-0.005764007568359375,
0.02447509765625,
-0.0197296142578125,
-0.06573486328125,
0.06634521484375,
0.031158447265625,
0.02227783203125,
0.031646728515625,
-0.0274505615234375,
0.0173187255859375,
-0.01036834716796875,
0.01019287109375,
-0.03570556640625,
-0.044342041015625,
0.026123046875,
-0.00763702392578125,
-0.01177978515625,
0.0221710205078125,
-0.01113128662109375,
0.0069427490234375,
0.0307159423828125,
0.059539794921875,
-0.06683349609375,
0.0221710205078125,
0.00872802734375,
0.000016570091247558594,
-0.00856781005859375,
-0.047576904296875,
0.01861572265625,
-0.0011301040649414062,
0.0721435546875,
0.0183258056640625,
-0.0274505615234375,
0.0191192626953125,
-0.01398468017578125,
-0.0408935546875,
-0.026275634765625,
0.00974273681640625,
0.03338623046875,
-0.0014190673828125,
0.0640869140625,
0.0013875961303710938,
0.0218048095703125,
-0.01434326171875,
0.015777587890625,
0.009552001953125,
-0.0299072265625,
-0.026275634765625,
0.0185546875,
-0.0044403076171875,
-0.038482666015625,
-0.00670623779296875,
-0.025421142578125,
0.0731201171875,
0.014251708984375,
0.01061248779296875,
-0.035247802734375,
-0.016754150390625,
0.01073455810546875,
-0.0550537109375,
-0.031707763671875,
0.036590576171875,
0.00960540771484375,
-0.049346923828125,
0.03704833984375,
-0.01297760009765625,
-0.0421142578125,
0.00174713134765625,
-0.0175628662109375,
0.0416259765625,
-0.047393798828125,
-0.00676727294921875,
0.0274658203125,
-0.00872039794921875,
-0.00556182861328125,
-0.017913818359375,
0.0013437271118164062,
-0.0703125,
-0.0552978515625,
-0.00788116455078125,
-0.10009765625,
-0.03497314453125,
-0.05029296875,
-0.0546875,
0.0968017578125,
-0.004791259765625,
-0.0064697265625,
-0.00627899169921875,
0.053558349609375,
-0.02398681640625,
0.0164794921875,
-0.0183563232421875,
0.04156494140625,
-0.0247955322265625,
0.02496337890625,
-0.01165008544921875,
0.0133209228515625,
0.0159454345703125,
0.001964569091796875,
-0.00522613525390625,
-0.01812744140625,
0.058563232421875,
0.00310516357421875,
0.0340576171875,
0.047698974609375,
-0.0089111328125,
-0.048004150390625,
-0.0079345703125,
0.01439666748046875,
-0.0257110595703125,
-0.033843994140625,
0.0233154296875,
-0.04864501953125,
-0.05194091796875,
0.00585174560546875,
-0.004119873046875,
-0.00189971923828125,
0.0011777877807617188,
0.0226287841796875,
-0.07861328125,
0.018402099609375,
0.04644775390625,
0.0389404296875,
-0.04302978515625,
0.06158447265625,
-0.0064697265625,
0.01473236083984375,
-0.0576171875,
-0.02496337890625,
0.0118255615234375,
-0.0130767822265625,
0.00725555419921875,
0.0158538818359375,
0.023895263671875,
0.032562255859375,
-0.0201873779296875,
0.006702423095703125,
0.035247802734375,
-0.049163818359375,
0.0253448486328125,
0.018890380859375,
0.02801513671875,
-0.0033779144287109375,
-0.0241241455078125,
-0.004154205322265625,
0.022857666015625,
-0.01273345947265625,
-0.007526397705078125,
-0.00530242919921875,
0.01373291015625,
0.01251983642578125,
-0.038543701171875,
0.01009368896484375,
0.0174560546875,
0.034149169921875,
-0.0170135498046875,
-0.027923583984375,
0.00807952880859375,
-0.01309967041015625,
-0.0068359375,
-0.01384735107421875,
0.054046630859375,
0.0243682861328125,
-0.055816650390625,
0.05279541015625,
0.0181884765625,
0.07275390625,
-0.00457000732421875,
0.06268310546875,
-0.0197601318359375,
-0.0306854248046875,
-0.0245208740234375,
0.0474853515625,
0.003414154052734375,
0.0283203125,
-0.0196685791015625,
0.00844573974609375,
-0.0200042724609375,
0.0269622802734375,
0.0301361083984375,
0.0031948089599609375,
0.0299224853515625,
0.0118865966796875,
-0.01425933837890625,
0.010162353515625,
0.05242919921875,
-0.0084381103515625,
0.038116455078125,
0.00307464599609375,
0.0216522216796875,
0.01332855224609375,
-0.0104522705078125,
-0.006740570068359375,
0.050628662109375,
0.0301513671875,
-0.06561279296875,
0.01181793212890625,
-0.0002073049545288086,
-0.03912353515625,
0.055206298828125,
0.036895751953125,
0.08660888671875,
0.002532958984375,
-0.029266357421875,
-0.00612640380859375,
-0.0017766952514648438,
-0.047698974609375,
0.029632568359375,
0.058624267578125,
-0.01275634765625,
-0.00125885009765625,
0.12396240234375,
-0.01381683349609375,
-0.00862884521484375,
0.01515960693359375,
0.0227813720703125,
-0.0260162353515625,
0.05755615234375,
0.0413818359375,
-0.01113128662109375,
-0.0009541511535644531,
-0.0085601806640625,
0.01311492919921875,
0.01435089111328125,
0.043792724609375,
-0.0144805908203125,
0.024444580078125,
0.0301971435546875,
-0.03472900390625,
0.035064697265625,
-0.0027256011962890625,
0.043243408203125,
-0.030059814453125,
-0.0069122314453125,
-0.017547607421875,
-0.030517578125,
0.03173828125,
0.0029506683349609375,
0.00234222412109375,
0.0247650146484375,
-0.024871826171875,
0.0150604248046875,
0.01390838623046875,
0.05279541015625,
-0.01666259765625,
-0.035919189453125,
-0.052154541015625,
0.0008330345153808594,
0.047271728515625,
0.049591064453125,
-0.00817108154296875,
0.0114593505859375,
-0.0364990234375,
-0.04071044921875,
-0.010833740234375,
-0.0229034423828125,
-0.045318603515625,
0.0221710205078125,
0.01605224609375,
0.015411376953125,
0.0269927978515625,
-0.01015472412109375,
0.0293121337890625,
0.0178070068359375,
0.000453948974609375,
0.01538848876953125,
-0.0193939208984375,
0.0035076141357421875,
0.049530029296875,
0.0270538330078125,
-0.0024871826171875,
0.01181793212890625,
0.037353515625,
-0.058807373046875,
-0.0091400146484375,
-0.04486083984375,
-0.028228759765625,
-0.03729248046875,
-0.01332855224609375,
0.00412750244140625,
-0.02215576171875,
-0.05303955078125,
-0.01419830322265625,
0.02093505859375,
0.01849365234375,
-0.021270751953125,
-0.054229736328125,
0.006328582763671875,
-0.060028076171875,
0.10809326171875,
-0.045440673828125,
0.036865234375,
-0.01462554931640625,
-0.03057861328125,
-0.07745361328125,
-0.00492095947265625,
-0.0296630859375,
0.0256805419921875,
0.0088958740234375,
0.0188446044921875,
0.06121826171875,
-0.0220489501953125,
-0.02520751953125,
-0.0012884140014648438,
-0.0010347366333007812,
0.064208984375,
-0.037078857421875,
-0.0294036865234375,
0.018524169921875,
0.01153564453125,
0.006732940673828125,
-0.056060791015625,
-0.0256195068359375,
-0.043853759765625,
0.033416748046875,
-0.01343536376953125,
-0.0180816650390625,
-0.0085906982421875,
-0.043121337890625,
-0.094970703125,
0.0628662109375,
-0.01132965087890625,
-0.03607177734375,
-0.046875,
0.01381683349609375,
0.0215911865234375,
-0.0085601806640625,
-0.025482177734375,
-0.048248291015625,
-0.045867919921875,
0.0070648193359375,
0.01050567626953125,
-0.0005898475646972656,
0.06890869140625,
-0.0123748779296875,
-0.04852294921875,
-0.01971435546875,
-0.018157958984375,
-0.0020999908447265625,
-0.0054931640625,
-0.0022869110107421875,
0.0257415771484375,
0.04998779296875,
0.0030059814453125,
0.00998687744140625,
-0.0060577392578125,
-0.046844482421875,
0.0110626220703125,
-0.0017414093017578125,
-0.05426025390625,
-0.01074981689453125,
0.09552001953125,
0.006103515625,
0.034881591796875,
-0.0223846435546875,
-0.037994384765625,
-0.031768798828125,
-0.0098876953125,
0.002777099609375,
0.0273590087890625,
-0.0484619140625,
0.025482177734375,
0.0126190185546875,
-0.005550384521484375,
-0.051116943359375,
-0.0237274169921875,
-0.051849365234375,
-0.01456451416015625,
-0.02264404296875,
0.0195159912109375,
-0.0008897781372070312,
-0.0765380859375,
0.075927734375,
-0.018890380859375,
0.0204925537109375,
0.0232391357421875,
0.048797607421875,
0.04241943359375,
0.05072021484375,
0.0024051666259765625,
0.07440185546875,
-0.07366943359375,
-0.006626129150390625,
-0.0034770965576171875,
-0.01326751708984375,
-0.040740966796875,
0.017120361328125,
-0.0019931793212890625,
0.0186614990234375,
0.0118408203125,
0.01641845703125,
-0.0222930908203125,
0.016204833984375,
-0.01239776611328125,
0.0308837890625,
-0.053802490234375,
0.0289764404296875,
-0.00347137451171875,
-0.032928466796875,
0.0036182403564453125,
0.0419921875,
0.07818603515625,
-0.01343536376953125,
-0.01198577880859375,
0.01119232177734375,
-0.030853271484375,
-0.048370361328125,
0.032196044921875,
-0.048309326171875,
0.0252532958984375,
0.01385498046875
] |
b58b91597c61fb1c4eb808027903012a149c7436
|
Wordpress Stackexchange
Q: How can I get only parent terms? Is there any way to get only parent terms from custom taxonomy or category?
A: Yes, just pass in the parent parameter to get_terms when you call it, as Michael pointed out.
Since WP 4.5 this is the recommend usage:
$myterms = get_terms( array( 'taxonomy' => 'taxonomy_name', 'parent' => 0 ) );
Prior to WP 4.5 this was the default usage:
$myterms = get_terms( 'taxonomy_name_here', array( 'parent' => 0 ) );
Will return all terms that have a parent value of 0, ie. top level terms.
|
Q: How can I get only parent terms? Is there any way to get only parent terms from custom taxonomy or category?
A: Yes, just pass in the parent parameter to get_terms when you call it, as Michael pointed out.
Since WP 4.5 this is the recommend usage:
$myterms = get_terms( array( 'taxonomy' => 'taxonomy_name', 'parent' => 0 ) );
Prior to WP 4.5 this was the default usage:
$myterms = get_terms( 'taxonomy_name_here', array( 'parent' => 0 ) );
Will return all terms that have a parent value of 0, ie. top level terms.
A: use the 'parent' parameter:
http://codex.wordpress.org/Function_Reference/get_terms
or
http://codex.wordpress.org/Function_Reference/get_categories
A: for woocommerce email templates use the following:
$terms = get_the_terms( $_product->id , 'product_cat');
if($terms) {
foreach( $terms as $term ) {
$term = get_term_by("id", $term->parent, "product_cat");
if ($term->parent > 0) {
$term = get_term_by("id", $term->parent, "product_cat");
}
$cat_obj = get_term($term->term_id, 'product_cat');
$cat_name = $cat_obj->name;
}
}
echo '<br />('. $cat_name . ')';
A: $archive_cats= get_terms( 'archivecat', 'orderby=count&hide_empty=0&parent=0' );
A: For this demonstration, we will assume that we have a taxonomy called "Books".
And we might have a hierarchy of:
Fiction (id: 699)
- This is a Fiction Story.
Non-Fiction
- Title of Non-fiction
Fantasy
- ...
We want to get the parent term of the taxonomy "Books" of the current post.
/* Get the Parent Taxonomy Term Name by post Id */
function get_parent_term_by_post_id($taxname, $taxid=null){
if(isset($taxid)):
//Get by term Id passed in function
$parent_tax = get_term_by('id', $taxid, $taxname);
return $parent_tax ->name; //use name, slug, or id
else:
//Get by PostId of current page
$terms = wp_get_post_terms( get_the_id(), $taxname);
$tax_parent_id = $terms[0]->parent;
if($tax_parent_id == 0):
$tax_parent_id = $terms[0]->parent; //get the next parent ID
endif;
$parent_tax = get_term_by('id', $tax_parent_id , $taxname);
return $parent_tax ->name; //use name, slug, or id
endif;
}
Then you just run on you template like this:
//enter custom tax name. will grab by post id
echo get_parent_term_name_by_post_id('books'); //returns Fiction
or
//by term ID
echo get_parent_term_name_by_post_id('books', 699); //returns Fiction
|
wordpress
|
{
"language": "en",
"length": 323,
"provenance": "stackexchange_00019.jsonl.gz:411818",
"question_score": "26",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24582"
}
|
[
0.0200653076171875,
0.0026302337646484375,
-0.01276397705078125,
-0.040252685546875,
-0.01532745361328125,
-0.00234222412109375,
-0.0231475830078125,
-0.0038776397705078125,
0.0102386474609375,
0.00363922119140625,
-0.0237579345703125,
-0.0233306884765625,
-0.033905029296875,
-0.03302001953125,
-0.0168609619140625,
-0.0546875,
0.03436279296875,
-0.050201416015625,
0.0006532669067382812,
-0.0178375244140625,
0.0189666748046875,
-0.005657196044921875,
0.037078857421875,
0.0289154052734375,
0.03228759765625,
-0.03021240234375,
0.035552978515625,
-0.040802001953125,
0.02215576171875,
-0.03082275390625,
0.015960693359375,
0.0164794921875,
0.0176239013671875,
-0.0203094482421875,
0.039215087890625,
-0.056610107421875,
0.0020294189453125,
-0.004180908203125,
-0.0019197463989257812,
0.010833740234375,
0.0215606689453125,
0.0024738311767578125,
-0.04949951171875,
0.048065185546875,
-0.056121826171875,
-0.0266265869140625,
0.00344085693359375,
-0.0127105712890625,
0.0163116455078125,
-0.05889892578125,
0.038726806640625,
-0.020050048828125,
0.06298828125,
-0.0662841796875,
-0.0277557373046875,
0.006320953369140625,
0.01507568359375,
-0.0222015380859375,
0.0352783203125,
-0.046783447265625,
-0.044036865234375,
-0.0084228515625,
0.041900634765625,
0.0270538330078125,
0.01229095458984375,
0.0184326171875,
-0.0215911865234375,
0.020782470703125,
-0.03515625,
0.0174102783203125,
0.03326416015625,
-0.049041748046875,
0.01270294189453125,
0.01445770263671875,
-0.0276336669921875,
-0.08447265625,
0.025238037109375,
-0.047515869140625,
0.01209259033203125,
0.023406982421875,
0.01006317138671875,
-0.03955078125,
-0.069580078125,
0.036376953125,
0.00897216796875,
0.063232421875,
-0.005046844482421875,
-0.03204345703125,
-0.02325439453125,
-0.01247406005859375,
-0.0167083740234375,
-0.017547607421875,
-0.05718994140625,
0.027923583984375,
0.01007080078125,
-0.026611328125,
0.020660400390625,
0.042083740234375,
-0.05517578125,
-0.03662109375,
-0.032928466796875,
0.007709503173828125,
-0.044464111328125,
-0.01157379150390625,
0.0277862548828125,
0.01953125,
-0.0156707763671875,
-0.03558349609375,
0.06414794921875,
0.0240936279296875,
0.01032257080078125,
0.0723876953125,
0.005619049072265625,
-0.0023365020751953125,
-0.01352691650390625,
0.037872314453125,
0.0008807182312011719,
-0.0021610260009765625,
-0.0206451416015625,
0.0269317626953125,
-0.00640869140625,
0.017059326171875,
0.00630950927734375,
0.0185394287109375,
0.0012722015380859375,
0.0029659271240234375,
-0.006511688232421875,
-0.0174102783203125,
-0.0047607421875,
0.01413726806640625,
-0.036224365234375,
0.01110076904296875,
0.05279541015625,
0.032562255859375,
0.0167083740234375,
-0.0106658935546875,
0.0017213821411132812,
0.0190887451171875,
0.0162353515625,
-0.016571044921875,
0.037567138671875,
-0.011962890625,
0.0160369873046875,
0.02435302734375,
0.00039505958557128906,
-0.0169677734375,
0.0211029052734375,
0.038604736328125,
-0.003814697265625,
-0.000980377197265625,
0.00797271728515625,
0.0167694091796875,
0.038787841796875,
0.008941650390625,
-0.04766845703125,
-0.007221221923828125,
0.0252532958984375,
-0.02667236328125,
-0.045806884765625,
-0.06390380859375,
0.01543426513671875,
-0.0184783935546875,
-0.0069122314453125,
0.0133819580078125,
-0.0165863037109375,
0.0213623046875,
-0.00988006591796875,
-0.00553131103515625,
0.02032470703125,
-0.0272369384765625,
0.048126220703125,
-0.0164031982421875,
-0.021942138671875,
0.02691650390625,
0.0256805419921875,
0.0169219970703125,
-0.036346435546875,
0.00460052490234375,
0.032135009765625,
-0.0057373046875,
-0.020263671875,
-0.045440673828125,
-0.005645751953125,
0.0123443603515625,
-0.00881195068359375,
-0.006542205810546875,
0.003448486328125,
0.018341064453125,
0.00400543212890625,
0.021575927734375,
-0.0033550262451171875,
0.01458740234375,
-0.0650634765625,
0.024505615234375,
0.018707275390625,
0.0220947265625,
-0.0469970703125,
-0.003063201904296875,
-0.01409912109375,
-0.0243682861328125,
-0.0037479400634765625,
-0.02069091796875,
0.013336181640625,
-0.018585205078125,
-0.0357666015625,
-0.014312744140625,
-0.016571044921875,
0.03173828125,
-0.022186279296875,
0.017120361328125,
0.024658203125,
-0.0006351470947265625,
-0.029296875,
-0.01544952392578125,
-0.019683837890625,
-0.006622314453125,
0.00428009033203125,
0.0248260498046875,
-0.0004944801330566406,
-0.022613525390625,
0.0213165283203125,
-0.02081298828125,
0.022430419921875,
0.058319091796875,
0.01264190673828125,
0.0267791748046875,
-0.0265655517578125,
0.019317626953125,
0.038726806640625,
0.04119873046875,
-0.015716552734375,
-0.0198822021484375,
0.0177764892578125,
-0.00450897216796875,
-0.020263671875,
0.01026153564453125,
0.0369873046875,
-0.04888916015625,
-0.0005040168762207031,
0.02996826171875,
0.0269927978515625,
0.01006317138671875,
-0.0428466796875,
-0.039215087890625,
0.047271728515625,
-0.0565185546875,
-0.0312347412109375,
-0.00640106201171875,
0.016937255859375,
0.039581298828125,
-0.0031604766845703125,
-0.017333984375,
0.0182647705078125,
-0.0167388916015625,
0.02227783203125,
0.0259552001953125,
-0.0194549560546875,
-0.01824951171875,
-0.030853271484375,
0.0019931793212890625,
0.0141143798828125,
-0.04608154296875,
-0.03753662109375,
-0.003452301025390625,
0.0003685951232910156,
0.031768798828125,
0.01971435546875,
0.03411865234375,
-0.027557373046875,
0.01486968994140625,
0.01122283935546875,
-0.00301361083984375,
0.0013208389282226562,
0.039520263671875,
0.03314208984375,
-0.0301513671875,
-0.01861572265625,
-0.008270263671875,
-0.0001462697982788086,
0.004932403564453125,
0.0164794921875,
0.04638671875,
0.0179901123046875,
-0.0005369186401367188,
-0.0241546630859375,
-0.037933349609375,
0.021759033203125,
0.06463623046875,
-0.05157470703125,
-0.024383544921875,
0.0179443359375,
0.027374267578125,
-0.00704193115234375,
-0.0216217041015625,
-0.00395965576171875,
0.0106658935546875,
-0.041778564453125,
-0.01788330078125,
0.0306549072265625,
-0.0182952880859375,
-0.01056671142578125,
0.043487548828125,
0.0124664306640625,
-0.01375579833984375,
-0.0009198188781738281,
-0.04486083984375,
-0.011474609375,
-0.0045928955078125,
-0.0301361083984375,
0.0159759521484375,
-0.091064453125,
0.0109710693359375,
0.0007147789001464844,
0.0628662109375,
-0.04583740234375,
-0.047637939453125,
-0.019866943359375,
0.011810302734375,
-0.0258026123046875,
0.0018320083618164062,
0.029815673828125,
-0.01605224609375,
-0.0289459228515625,
-0.01453399658203125,
-0.006927490234375,
-0.00969696044921875,
-0.0249786376953125,
-0.01122283935546875,
0.0282440185546875,
-0.05389404296875,
-0.04241943359375,
-0.04412841796875,
-0.08331298828125,
0.005374908447265625,
0.018463134765625,
0.0222625732421875,
-0.005207061767578125,
0.1016845703125,
0.03192138671875,
-0.022918701171875,
0.0294342041015625,
0.0577392578125,
-0.0151519775390625,
0.01629638671875,
-0.0140533447265625,
-0.006122589111328125,
0.005096435546875,
0.00962066650390625,
-0.055816650390625,
0.0032176971435546875,
0.00450897216796875,
-0.0225982666015625,
0.006359100341796875,
0.0390625,
0.02642822265625,
0.010528564453125,
-0.004131317138671875,
0.03411865234375,
0.0345458984375,
-0.0123443603515625,
-0.037933349609375,
-0.016510009765625,
-0.043121337890625,
0.0579833984375,
-0.0025882720947265625,
0.003826141357421875,
-0.00714111328125,
0.040008544921875,
-0.0077667236328125,
0.00649261474609375,
-0.02349853515625,
-0.01290130615234375,
0.0225830078125,
0.007457733154296875,
-0.0019893646240234375,
0.0207977294921875,
0.01348876953125,
-0.036651611328125,
0.01873779296875,
0.0020046234130859375,
-0.008941650390625,
-0.0135650634765625,
0.004009246826171875,
-0.0212554931640625,
-0.05169677734375,
0.032562255859375,
-0.07196044921875,
0.021270751953125,
-0.06646728515625,
-0.0003879070281982422,
-0.0083465576171875,
0.10784912109375,
-0.004032135009765625,
-0.01739501953125,
-0.0276947021484375,
0.003536224365234375,
-0.0034542083740234375,
-0.044403076171875,
-0.023284912109375,
-0.0238494873046875,
-0.07073974609375,
-0.017303466796875,
-0.00872802734375,
-0.029083251953125,
0.00971221923828125,
-0.016387939453125,
-0.03961181640625,
-0.0372314453125,
0.032501220703125,
-0.04547119140625,
-0.0227203369140625,
0.00609588623046875,
-0.0214080810546875,
-0.02813720703125,
-0.0212249755859375,
-0.00672149658203125,
-0.03436279296875,
-0.00922393798828125,
-0.00485992431640625,
0.0025424957275390625,
-0.01678466796875,
0.0152130126953125,
0.0006570816040039062,
0.056488037109375,
-0.003574371337890625,
-0.009552001953125,
0.01055908203125,
0.026763916015625,
-0.0252532958984375,
0.01210784912109375,
0.0118560791015625,
-0.026092529296875,
-0.031341552734375,
-0.026947021484375,
0.0158538818359375,
0.03369140625,
0.0003490447998046875,
-0.0008826255798339844,
-0.00518035888671875,
-0.005687713623046875,
-0.037445068359375,
-0.0577392578125,
-0.09320068359375,
-0.0233917236328125,
-0.03546142578125,
-0.007080078125,
-0.0601806640625,
-0.06353759765625,
0.031005859375,
0.02093505859375,
-0.0243988037109375,
0.0032939910888671875,
0.053314208984375,
0.0200958251953125,
-0.03558349609375,
-0.0191497802734375,
-0.0132598876953125,
0.00015926361083984375,
-0.0248260498046875,
0.02374267578125,
-0.0279693603515625,
-0.0211029052734375,
0.08642578125,
-0.048004150390625,
0.0173492431640625,
-0.00040078163146972656,
0.04833984375,
0.003826141357421875,
-0.0258026123046875,
0.0316162109375,
-0.0026721954345703125,
-0.03411865234375,
0.0311126708984375,
-0.032806396484375,
-0.0440673828125,
-0.0227508544921875,
0.08502197265625,
-0.04449462890625,
0.05902099609375,
-0.06744384765625,
-0.02349853515625,
0.01197052001953125,
-0.0148773193359375,
-0.00418853759765625,
0.0289459228515625,
-0.020477294921875,
-0.016693115234375,
-0.0305328369140625,
0.0159454345703125,
-0.0240325927734375,
-0.0016946792602539062,
-0.01491546630859375,
0.0248870849609375,
-0.005764007568359375,
-0.0021610260009765625,
-0.0016794204711914062,
0.00637054443359375,
0.033111572265625,
-0.032928466796875,
-0.0743408203125,
0.0205230712890625,
-0.02691650390625,
0.0028591156005859375,
0.048187255859375,
-0.01114654541015625,
0.0272674560546875,
-0.009674072265625,
-0.006267547607421875,
-0.00513458251953125,
-0.047149658203125,
0.00899505615234375,
-0.03082275390625,
0.022247314453125,
0.00588226318359375,
-0.0158538818359375,
-0.0246429443359375,
0.06280517578125,
-0.007656097412109375,
0.01557159423828125,
-0.00025463104248046875,
-0.032012939453125,
-0.046630859375,
0.039031982421875,
0.0245819091796875,
-0.0261383056640625,
0.044036865234375,
-0.01180267333984375,
0.058685302734375,
-0.02764892578125,
-0.020538330078125,
0.0245819091796875,
0.02728271484375,
-0.02044677734375,
-0.024261474609375,
0.01483917236328125,
-0.0089874267578125,
-0.033416748046875,
-0.007659912109375,
-0.023223876953125,
-0.004390716552734375,
-0.034393310546875,
-0.045379638671875,
0.00891876220703125,
0.04364013671875,
-0.0310516357421875,
0.019683837890625,
-0.038665771484375,
0.005252838134765625,
-0.00562286376953125,
-0.0347900390625,
0.01519775390625,
0.0228424072265625,
-0.0528564453125,
-0.0095367431640625,
0.01445770263671875,
-0.04974365234375,
-0.035888671875,
-0.01953125,
-0.0294647216796875,
0.033905029296875,
-0.006256103515625,
0.037445068359375,
-0.0323486328125,
-0.0226287841796875,
-0.00644683837890625,
-0.00823974609375,
0.07000732421875,
0.037567138671875,
-0.0269317626953125,
-0.0081024169921875,
-0.052337646484375,
-0.0029964447021484375,
-0.04913330078125,
-0.06378173828125,
-0.01326751708984375,
0.00738525390625,
-0.00463104248046875,
-0.00682830810546875,
0.0369873046875,
0.041259765625,
-0.0012960433959960938,
0.02978515625,
-0.0107574462890625,
-0.0312347412109375,
0.00568389892578125,
0.048248291015625,
-0.035858154296875,
0.0290069580078125,
0.018035888671875,
0.031463623046875,
-0.01142120361328125,
-0.034393310546875,
0.0157318115234375,
-0.071533203125,
-0.03173828125,
-0.0093231201171875,
-0.01739501953125,
0.01168060302734375,
-0.00505828857421875,
0.00652313232421875,
0.0091400146484375,
-0.0007987022399902344,
0.00864410400390625,
0.0061492919921875,
-0.00983428955078125,
-0.006343841552734375,
-0.019775390625,
0.041107177734375,
-0.01447296142578125,
0.00731658935546875,
0.0088348388671875,
-0.0168914794921875,
0.03857421875,
-0.0030689239501953125,
0.04693603515625,
-0.0017719268798828125,
-0.00811004638671875,
0.025054931640625,
-0.0008745193481445312,
-0.0291900634765625,
0.0292205810546875,
-0.00225830078125,
0.0261688232421875,
0.016326904296875,
0.03741455078125,
-0.03302001953125,
-0.052276611328125,
0.0256195068359375,
0.01477813720703125,
-0.00800323486328125,
0.02545166015625,
-0.018218994140625,
-0.036163330078125,
-0.0256500244140625,
0.002895355224609375,
0.0008697509765625,
0.01416015625,
0.028076171875,
-0.000522613525390625,
-0.035980224609375,
0.05291748046875,
-0.0192413330078125,
-0.0281219482421875,
-0.02978515625,
-0.037078857421875,
-0.0135650634765625,
-0.003955841064453125,
0.00006240606307983398,
-0.0173797607421875,
-0.01526641845703125,
0.04461669921875,
0.0143280029296875,
0.027069091796875,
-0.01424407958984375,
-0.0214691162109375,
0.00968170166015625,
-0.0163726806640625,
0.01390838623046875,
-0.00341033935546875,
-0.0085906982421875,
-0.0367431640625,
0.0067138671875,
-0.0135955810546875,
0.002513885498046875,
0.02288818359375,
0.0037708282470703125,
-0.01291656494140625,
0.0343017578125,
-0.0169830322265625,
0.0147705078125,
0.010986328125,
-0.10296630859375,
-0.04241943359375,
-0.0184326171875,
0.0219573974609375,
0.00736236572265625,
-0.0517578125,
0.0312347412109375,
-0.046630859375,
-0.0173187255859375,
-0.0172882080078125,
-0.05096435546875,
0.027374267578125,
-0.01462554931640625,
-0.00827789306640625,
0.01397705078125,
0.0555419921875,
0.0079803466796875,
-0.01049041748046875,
0.0021686553955078125,
-0.033935546875,
0.01145172119140625,
-0.0117950439453125,
0.0020236968994140625,
0.0099639892578125,
-0.0201416015625,
-0.060546875,
0.1331787109375,
0.00034308433532714844,
0.031646728515625,
0.01806640625,
0.04736328125,
-0.037567138671875,
0.01934814453125,
-0.051300048828125,
0.0318603515625,
0.10198974609375,
0.0182952880859375,
-0.0193328857421875,
-0.025421142578125,
-0.01395416259765625,
0.039276123046875,
0.05682373046875,
0.004077911376953125,
-0.0019054412841796875,
-0.00630950927734375,
0.05267333984375,
0.03173828125,
-0.030548095703125,
0.030242919921875,
0.028594970703125,
-0.00395965576171875,
0.07135009765625,
0.013763427734375,
0.041595458984375,
0.0007610321044921875,
0.022003173828125,
0.049468994140625,
0.0191192626953125,
0.0194244384765625,
-0.0241546630859375,
-0.0030422210693359375,
-0.02667236328125,
-0.01995849609375,
0.0189361572265625,
-0.02239990234375,
0.0301055908203125,
0.0303802490234375,
0.0240325927734375,
-0.0333251953125,
0.00405120849609375,
-0.01873779296875,
0.0447998046875,
-0.023162841796875,
0.02911376953125,
0.037689208984375,
0.0187225341796875,
0.05670166015625,
-0.0265960693359375,
0.0205535888671875,
0.0058746337890625,
-0.0248260498046875,
0.006412506103515625,
-0.0074462890625,
0.01125335693359375,
-0.0540771484375,
0.0177154541015625,
0.00726318359375,
0.0204010009765625,
-0.031951904296875,
-0.059906005859375,
0.01551055908203125,
-0.011383056640625,
-0.0166778564453125,
0.039886474609375,
-0.0025463104248046875,
0.0955810546875,
0.10821533203125,
-0.0654296875,
0.0066375732421875,
0.03253173828125,
0.05535888671875,
-0.005344390869140625,
-0.0142974853515625,
-0.05859375,
-0.03509521484375,
0.00019228458404541016,
-0.04876708984375,
0.018768310546875,
0.0192718505859375,
0.03448486328125,
0.016632080078125,
-0.01263427734375,
-0.006275177001953125,
-0.01462554931640625,
-0.00342559814453125,
0.00417327880859375,
0.0108642578125,
0.0017528533935546875,
0.03155517578125,
-0.003997802734375,
0.00910186767578125,
0.040252685546875,
0.00510406494140625,
0.034423828125,
0.0296173095703125,
-0.0054168701171875,
0.01334381103515625,
0.0379638671875,
-0.00870513916015625,
-0.00450897216796875,
-0.04144287109375,
0.0227813720703125,
0.036529541015625,
0.01107025146484375,
0.01102447509765625,
-0.003917694091796875,
0.06689453125,
-0.0126953125,
0.05377197265625,
-0.0029010772705078125,
0.011199951171875,
0.0430908203125,
-0.00855255126953125,
0.048187255859375,
0.0262451171875,
-0.070556640625,
-0.0052337646484375,
-0.058624267578125,
0.003925323486328125,
0.03857421875,
0.04022216796875,
0.0045623779296875,
0.005245208740234375,
0.00867462158203125,
-0.0035572052001953125,
-0.0257720947265625,
0.00946044921875,
0.0115203857421875,
-0.048492431640625,
0.0078887939453125,
-0.016387939453125,
-0.01262664794921875,
0.01459503173828125,
-0.00820159912109375,
0.00885009765625,
0.0242156982421875,
0.0406494140625,
-0.0017642974853515625,
0.02508544921875,
-0.0020198822021484375,
0.05535888671875,
-0.046173095703125,
-0.034881591796875,
0.048614501953125,
-0.031524658203125,
0.0111083984375,
-0.005474090576171875,
-0.04754638671875,
0.032501220703125,
0.04534912109375,
-0.003185272216796875,
0.052642822265625,
-0.0170440673828125,
0.0004401206970214844,
-0.06488037109375,
0.076171875,
-0.005992889404296875,
-0.01071929931640625,
-0.028594970703125,
-0.05462646484375,
0.06317138671875,
0.049530029296875,
0.0222320556640625,
0.02081298828125,
0.0037746429443359375,
-0.0445556640625,
0.036346435546875,
-0.033599853515625,
0.059539794921875,
0.038726806640625,
-0.0142974853515625,
-0.016876220703125,
-0.0024127960205078125,
-0.01137542724609375,
0.02496337890625,
-0.004161834716796875,
0.005084991455078125,
0.02191162109375,
-0.0816650390625,
0.007411956787109375,
-0.01380157470703125,
0.005611419677734375,
-0.06951904296875,
-0.0013141632080078125,
0.0294189453125,
0.0031566619873046875,
-0.0078582763671875,
-0.062042236328125,
-0.033050537109375,
-0.0654296875,
-0.0131988525390625,
0.0086822509765625,
-0.030487060546875,
-0.043365478515625,
0.002166748046875,
0.0134735107421875,
0.05792236328125,
0.00974273681640625,
-0.0147552490234375,
0.02984619140625,
-0.05438232421875,
0.0080413818359375,
0.0369873046875,
-0.018402099609375,
0.0289154052734375,
0.02947998046875,
-0.042327880859375,
-0.01012420654296875,
-0.0099639892578125,
-0.007770538330078125,
-0.0295562744140625,
0.031097412109375,
0.0222625732421875,
-0.0292816162109375,
0.0089263916015625,
0.0638427734375,
0.023040771484375,
0.11102294921875,
0.01393890380859375,
-0.0256195068359375,
-0.018310546875,
0.017181396484375,
-0.0234222412109375,
0.00946807861328125,
0.0491943359375,
-0.0303192138671875,
-0.0653076171875,
-0.0215301513671875,
0.00688934326171875,
0.01293182373046875,
-0.055694580078125,
-0.0906982421875,
0.037261962890625,
-0.0240478515625,
-0.052398681640625,
-0.0391845703125,
0.016326904296875,
-0.0113372802734375,
-0.023895263671875,
-0.00763702392578125,
0.00389862060546875,
0.0223388671875,
0.044464111328125,
0.0187835693359375,
0.005275726318359375,
0.007472991943359375,
0.023590087890625,
-0.0576171875,
0.0217742919921875,
0.00205230712890625,
-0.004146575927734375,
-0.01100921630859375,
0.0311431884765625,
-0.0022945404052734375,
0.061279296875,
-0.0120391845703125,
0.004337310791015625,
-0.0098876953125,
-0.042724609375,
0.0030727386474609375,
-0.04119873046875,
0.007328033447265625,
-0.035675048828125,
0.0297088623046875,
-0.029998779296875,
-0.004520416259765625,
0.007354736328125,
-0.0721435546875,
-0.03961181640625,
-0.041748046875,
0.0010938644409179688,
0.03851318359375,
-0.0748291015625,
0.029998779296875,
0.0300750732421875,
-0.026580810546875,
-0.02056884765625,
0.00411224365234375,
-0.056976318359375,
-0.0114593505859375,
-0.033233642578125,
-0.00916290283203125,
-0.032623291015625,
0.04718017578125,
-0.029998779296875,
-0.01861572265625,
-0.04583740234375,
-0.006855010986328125,
-0.0197906494140625,
-0.057830810546875,
-0.01532745361328125,
0.016876220703125,
0.035888671875,
0.00418853759765625,
-0.0059661865234375,
0.0499267578125,
-0.019287109375,
0.039886474609375,
-0.0043487548828125,
-0.03607177734375,
0.00910186767578125,
0.0225677490234375,
-0.00797271728515625,
-0.033905029296875,
0.0406494140625,
0.038543701171875,
0.0309906005859375,
0.006465911865234375,
0.0259857177734375,
-0.001789093017578125,
0.040008544921875,
-0.01922607421875,
-0.0178070068359375,
-0.01398468017578125,
-0.032806396484375,
-0.00675201416015625,
-0.0235443115234375,
-0.02630615234375,
-0.05035400390625,
0.019195556640625,
-0.01117706298828125,
-0.02099609375,
0.0295257568359375
] |
68b70dfdbeeb6fa6446cd76d7f2e74730e04941c
|
Wordpress Stackexchange
Q: How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html? How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?
I read and it seems its not possible when using permalinks?
The objective is to reduce the server load for 404 errors by not loading php.
A: .htaccess skip WordPress 404 error handling for static files.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(robots\.txt|sitemap\.xml(\.gz)?)
RewriteCond %{REQUEST_FILENAME} \.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
RewriteRule .* - [L]
</IfModule>
Note: These rules were generated by the W3 Total Cache plugin*
Nginx skip WordPress 404 handling for static files.
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
if ($request_uri ~ "(robots\.txt|sitemap\.xml(\.gz)?)") {
break;
}
if ($request_uri ~* \.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$) {
return 404;
}
|
Q: How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html? How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?
I read and it seems its not possible when using permalinks?
The objective is to reduce the server load for 404 errors by not loading php.
A: .htaccess skip WordPress 404 error handling for static files.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(robots\.txt|sitemap\.xml(\.gz)?)
RewriteCond %{REQUEST_FILENAME} \.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$ [NC]
RewriteRule .* - [L]
</IfModule>
Note: These rules were generated by the W3 Total Cache plugin*
Nginx skip WordPress 404 handling for static files.
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
if ($request_uri ~ "(robots\.txt|sitemap\.xml(\.gz)?)") {
break;
}
if ($request_uri ~* \.(css|js|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$) {
return 404;
}
A: Maybe a simple solution. Use the conditional tag is_404() and create an redirect to your static file; include the code in the file header.php or index.php of the theme.
Here a example.
if ( is_404() ) {
wp_redirect( 'static.htm' );
exit;
}
Links
*
*http://codex.wordpress.org/Function_Reference/wp_redirect
*http://codex.wordpress.org/Function_Reference/is_404
A: To extend on what Chris_O said....I would install W3 Total Cache and use the settings from that plugin to not cache static files. The plugin in itself is very useful and a must to speed up your site, especially with the latest update.
Also I recommend you have a look at Creating an Error 404 Page from Wordpress to see how to handle 404 for static files, 403 (forbidden), etc. Its a good read.
A: I'm not sure that this is possible. If you look at the htaccess code that WordPress creates when you enable permalinks, it basically says: "If the file/directory cannot be found, send it to index.php." This includes all actual 404 requests. Outside of creating a list of every dynamically-generated public resource that WordPress knows of and directly inserting this into .htaccess, you'll need to load php to handle the 404's.
A: I liked the idea of Chris_O, but I made my own version, which is more safe.
So what I did, I just added folders to exception, so if your requests starts from those lines - it's definitely not a valid permalink. The majority of requests are coming from bots that are trying to check the contents of those folders for exploits. They will be effectively filtered, and if needed you can display some small static 404 page.
Other requests will still be handled by wordpress, and if someone enters a wrong address it will display a user friendly not found message within your template. The solution of Chris_O will only work for requests that look like file extensions, otherwise they will also be handled by wordpress.
To make it even more reliable, you can retrieve your raw access file and search for 404 errors. If you notice many requests that start with particular lines, you can also include them to this filter:
#adding your own handler
ErrorDocument 404 /404/index.html
<IfModule mod_rewrite.c>
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !^/(404|cgi-bin|wp-admin|wp-content|wp-includes)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
A: I have multiples CMS installed on my site so I use something like this to use the same 404 error page for all CMS's. I use this conf for Nginx+FastCgi and it's working fine:
server {
...
error_page 404 /404.html; #enable custom 404 error page
location ~ /\.ht {
deny all; #disable access to htaccess
}
location ~ [^/]\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_intercept_errors on; #disable PHP 404 error intercept
}
location /wordpress/ {
try_files $uri $uri/ /wordpress/index.php?$args;
}
}
I use this config together with this in php.ini :
cgi.fix_pathinfo = 1
wordpress is installed like this http://example.com/wordpress/ . the 404.html is located in the root of the http://example.com/ .
P.S. Do not forget that PHP and Nginx services need to be restarted after making changes to the php.ini or nginx.conf files for the changes to take effect.
A: There are 3 ways of doing this
*
*By changing your 404.php code.
*By using wordpress plugins.
*By editing your .htaccess file .
Complete tutorial - (link dead and redirected to spam)
|
wordpress
|
{
"language": "en",
"length": 700,
"provenance": "stackexchange_00019.jsonl.gz:411819",
"question_score": "19",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24587"
}
|
[
0.09747314453125,
-0.004741668701171875,
0.031219482421875,
-0.0595703125,
0.01261138916015625,
0.0011196136474609375,
0.025665283203125,
-0.0286865234375,
-0.0018014907836914062,
0.0233612060546875,
-0.00595855712890625,
-0.0021266937255859375,
0.020111083984375,
-0.03155517578125,
0.0286865234375,
-0.00908660888671875,
0.00238037109375,
0.014984130859375,
0.03076171875,
-0.0098724365234375,
0.00229644775390625,
-0.00780487060546875,
0.0296630859375,
-0.0275115966796875,
-0.0207366943359375,
-0.01007843017578125,
0.046722412109375,
-0.0244598388671875,
-0.034210205078125,
-0.04095458984375,
-0.0179901123046875,
0.053436279296875,
0.007785797119140625,
0.035797119140625,
-0.035888671875,
-0.03851318359375,
-0.01788330078125,
0.031524658203125,
0.0082244873046875,
0.006946563720703125,
0.031951904296875,
-0.031585693359375,
0.0631103515625,
0.0166778564453125,
0.0063018798828125,
-0.0050201416015625,
0.0240936279296875,
-0.048675537109375,
0.00759124755859375,
-0.00891876220703125,
0.00850677490234375,
0.039337158203125,
0.044403076171875,
-0.043243408203125,
-0.029022216796875,
-0.024078369140625,
0.043060302734375,
0.0413818359375,
0.00232696533203125,
-0.030975341796875,
-0.0186309814453125,
0.0831298828125,
-0.002414703369140625,
0.018341064453125,
-0.0197296142578125,
-0.03253173828125,
-0.0439453125,
0.0300750732421875,
-0.059295654296875,
-0.0225982666015625,
0.04296875,
-0.0299835205078125,
-0.00437164306640625,
-0.006000518798828125,
0.0217437744140625,
0.0007104873657226562,
0.022064208984375,
0.01311492919921875,
0.0036773681640625,
0.02947998046875,
0.047088623046875,
-0.0338134765625,
0.027984619140625,
-0.042877197265625,
0.05792236328125,
0.0048980712890625,
0.01324462890625,
-0.022796630859375,
-0.00464630126953125,
-0.0167388916015625,
-0.0216522216796875,
0.004180908203125,
0.00360107421875,
-0.0023593902587890625,
-0.0218963623046875,
-0.0266571044921875,
0.007305145263671875,
-0.01551055908203125,
-0.00724029541015625,
-0.022125244140625,
0.022064208984375,
-0.029876708984375,
-0.0253143310546875,
0.001247406005859375,
-0.0162200927734375,
0.0292816162109375,
0.00717926025390625,
0.01387786865234375,
0.015777587890625,
0.0186920166015625,
0.00571441650390625,
0.0189361572265625,
-0.00913238525390625,
-0.056060791015625,
-0.0233612060546875,
0.04779052734375,
0.022705078125,
-0.027008056640625,
0.000056803226470947266,
-0.0270843505859375,
0.0106353759765625,
0.0245361328125,
-0.01531982421875,
0.002056121826171875,
0.00011092424392700195,
-0.0169677734375,
-0.004932403564453125,
-0.01508331298828125,
0.0052337646484375,
0.00878143310546875,
-0.00042438507080078125,
0.0165252685546875,
-0.0167388916015625,
0.002193450927734375,
-0.031768798828125,
-0.0081024169921875,
0.0595703125,
-0.0026798248291015625,
-0.0188446044921875,
0.03131103515625,
0.0027599334716796875,
-0.04681396484375,
-0.03466796875,
-0.006084442138671875,
-0.0015707015991210938,
0.026214599609375,
0.039337158203125,
0.01441192626953125,
-0.0207672119140625,
-0.064453125,
0.006511688232421875,
0.00955963134765625,
0.0297393798828125,
-0.01189422607421875,
-0.0182342529296875,
-0.06329345703125,
-0.006763458251953125,
-0.038665771484375,
0.00882720947265625,
-0.050048828125,
0.004528045654296875,
-0.0013666152954101562,
0.04443359375,
-0.02203369140625,
-0.02850341796875,
-0.0014743804931640625,
-0.0426025390625,
-0.015167236328125,
0.0185546875,
0.0469970703125,
-0.0234832763671875,
0.0101165771484375,
0.0020999908447265625,
-0.00351715087890625,
-0.0025177001953125,
-0.008087158203125,
-0.018585205078125,
-0.00621795654296875,
-0.003810882568359375,
0.075439453125,
0.041656494140625,
-0.0132904052734375,
0.0128936767578125,
0.02490234375,
-0.0689697265625,
0.04241943359375,
-0.00511932373046875,
0.04840087890625,
0.00867462158203125,
-0.00600433349609375,
0.046844482421875,
0.0020008087158203125,
-0.0164642333984375,
0.07183837890625,
-0.025634765625,
-0.045013427734375,
-0.01390838623046875,
0.01348114013671875,
-0.0214691162109375,
-0.015228271484375,
-0.01708984375,
0.019622802734375,
-0.0199127197265625,
0.0067596435546875,
0.0191650390625,
-0.0200958251953125,
0.0146331787109375,
0.0199127197265625,
-0.0274200439453125,
0.03887939453125,
0.0203704833984375,
0.0005207061767578125,
-0.031982421875,
0.02825927734375,
0.017547607421875,
0.002468109130859375,
-0.01326751708984375,
0.0225372314453125,
-0.01450347900390625,
0.036834716796875,
-0.0033359527587890625,
-0.021087646484375,
-0.00414276123046875,
0.0032196044921875,
-0.00453948974609375,
-0.03948974609375,
0.00838470458984375,
-0.0008344650268554688,
0.022735595703125,
0.01119232177734375,
-0.004848480224609375,
-0.005161285400390625,
0.030303955078125,
0.039031982421875,
-0.033416748046875,
-0.01078033447265625,
-0.007312774658203125,
-0.04168701171875,
0.00672149658203125,
0.041900634765625,
0.040924072265625,
0.01300048828125,
-0.034820556640625,
-0.0182342529296875,
0.004505157470703125,
-0.05853271484375,
-0.004009246826171875,
-0.0102386474609375,
-0.00931549072265625,
-0.038604736328125,
0.010650634765625,
-0.033935546875,
0.043792724609375,
-0.04156494140625,
-0.005855560302734375,
0.02508544921875,
-0.00696563720703125,
-0.035369873046875,
-0.0338134765625,
0.04534912109375,
0.0208892822265625,
0.011962890625,
-0.0302734375,
0.007778167724609375,
-0.0009975433349609375,
0.012054443359375,
-0.01374053955078125,
0.00029659271240234375,
-0.01421356201171875,
0.0022735595703125,
0.024871826171875,
-0.0282135009765625,
0.0177764892578125,
0.04766845703125,
0.00453948974609375,
0.01166534423828125,
-0.01152801513671875,
-0.021240234375,
0.0277557373046875,
0.0423583984375,
-0.01617431640625,
0.0020599365234375,
0.00030040740966796875,
-0.009613037109375,
-0.00850677490234375,
-0.06207275390625,
0.0194244384765625,
0.002048492431640625,
0.009857177734375,
0.0188751220703125,
0.0352783203125,
0.01280975341796875,
-0.0010156631469726562,
0.00386810302734375,
0.0255584716796875,
-0.0132904052734375,
-0.01442718505859375,
-0.051361083984375,
0.056793212890625,
-0.0400390625,
0.050140380859375,
0.07110595703125,
-0.0179901123046875,
0.044464111328125,
0.013885498046875,
-0.006809234619140625,
0.03155517578125,
-0.00878143310546875,
-0.02099609375,
0.0185699462890625,
-0.07635498046875,
-0.00713348388671875,
0.029266357421875,
0.01136016845703125,
0.0234832763671875,
-0.01224517822265625,
-0.0061798095703125,
0.032073974609375,
-0.0501708984375,
-0.1107177734375,
0.0147552490234375,
-0.05828857421875,
0.03851318359375,
0.029998779296875,
-0.0177764892578125,
-0.052734375,
0.07611083984375,
0.0276336669921875,
-0.0278778076171875,
0.0015411376953125,
-0.07843017578125,
-0.050506591796875,
-0.09039306640625,
-0.02606201171875,
-0.0278167724609375,
0.036041259765625,
0.012969970703125,
-0.004459381103515625,
-0.0030155181884765625,
-0.0416259765625,
-0.0018758773803710938,
-0.0013475418090820312,
-0.00864410400390625,
-0.0037517547607421875,
-0.00321197509765625,
-0.01357269287109375,
0.0308837890625,
-0.004047393798828125,
0.037322998046875,
0.042572021484375,
-0.042266845703125,
-0.004650115966796875,
-0.0206756591796875,
-0.035400390625,
-0.01715087890625,
0.01396942138671875,
0.02886962890625,
-0.055023193359375,
-0.0078582763671875,
-0.07061767578125,
-0.034576416015625,
-0.0014238357543945312,
-0.06475830078125,
-0.037506103515625,
0.049041748046875,
0.00035858154296875,
-0.0299530029296875,
-0.0180206298828125,
0.0267333984375,
-0.0015382766723632812,
0.0236663818359375,
-0.0207977294921875,
0.0040283203125,
0.01155853271484375,
0.028350830078125,
-0.031982421875,
0.06329345703125,
-0.00528717041015625,
0.01328277587890625,
0.0256195068359375,
-0.018890380859375,
-0.0253753662109375,
-0.01824951171875,
-0.061798095703125,
-0.020355224609375,
0.0285186767578125,
-0.036956787109375,
0.0095062255859375,
-0.0175018310546875,
-0.0187530517578125,
0.00012958049774169922,
0.061553955078125,
0.021636962890625,
-0.017913818359375,
-0.0231170654296875,
0.01123046875,
-0.0221710205078125,
-0.069091796875,
0.007564544677734375,
-0.0075836181640625,
-0.072265625,
0.01262664794921875,
-0.00797271728515625,
-0.0299835205078125,
0.03240966796875,
-0.056488037109375,
-0.00965118408203125,
-0.065673828125,
0.0191192626953125,
-0.0430908203125,
0.0098876953125,
0.0006871223449707031,
0.0233306884765625,
-0.02923583984375,
0.0109100341796875,
-0.0555419921875,
-0.036712646484375,
-0.038116455078125,
-0.01137542724609375,
0.07861328125,
0.029144287109375,
-0.0227203369140625,
-0.002651214599609375,
0.05279541015625,
-0.01206207275390625,
-0.0181884765625,
0.00444793701171875,
0.00867462158203125,
-0.0139617919921875,
0.01617431640625,
-0.009429931640625,
0.0029582977294921875,
0.0240020751953125,
-0.005161285400390625,
-0.0386962890625,
0.005649566650390625,
-0.0279693603515625,
-0.0164947509765625,
0.0205841064453125,
-0.054962158203125,
-0.0270843505859375,
-0.026092529296875,
-0.03179931640625,
0.0253143310546875,
-0.0021820068359375,
-0.015899658203125,
-0.0289459228515625,
-0.051727294921875,
0.0303192138671875,
0.004547119140625,
-0.00630950927734375,
0.00811004638671875,
0.0098114013671875,
0.0161590576171875,
-0.03021240234375,
-0.019012451171875,
-0.0157623291015625,
0.0161590576171875,
-0.0193023681640625,
0.0531005859375,
0.0017595291137695312,
-0.002613067626953125,
0.0921630859375,
-0.037322998046875,
-0.029998779296875,
0.00997161865234375,
0.00023889541625976562,
-0.01392364501953125,
-0.040496826171875,
0.0091400146484375,
-0.0279083251953125,
0.03863525390625,
0.07000732421875,
0.0212249755859375,
-0.0289306640625,
-0.01140594482421875,
0.054168701171875,
-0.0264739990234375,
0.00992584228515625,
-0.0166168212890625,
-0.0158233642578125,
-0.009307861328125,
0.0096893310546875,
0.035980224609375,
0.04766845703125,
-0.0028228759765625,
0.045135498046875,
0.070556640625,
-0.0174102783203125,
0.0377197265625,
0.06463623046875,
0.0081787109375,
0.0107269287109375,
0.06842041015625,
-0.0247039794921875,
-0.0207366943359375,
-0.0016117095947265625,
0.0462646484375,
0.0062103271484375,
-0.048126220703125,
-0.0046844482421875,
-0.0037860870361328125,
-0.030792236328125,
0.005237579345703125,
-0.02655029296875,
0.03533935546875,
0.03436279296875,
-0.0394287109375,
-0.00157928466796875,
-0.052459716796875,
-0.004817962646484375,
-0.052215576171875,
0.032073974609375,
0.0230712890625,
-0.0079498291015625,
0.03192138671875,
0.03533935546875,
0.0367431640625,
0.00214385986328125,
-0.0042877197265625,
0.00269317626953125,
-0.012115478515625,
0.048126220703125,
0.005680084228515625,
-0.03033447265625,
-0.01178741455078125,
0.04815673828125,
0.0099334716796875,
-0.046875,
-0.0139312744140625,
-0.0030841827392578125,
0.07611083984375,
-0.041961669921875,
-0.041107177734375,
0.017852783203125,
-0.043304443359375,
0.00035262107849121094,
0.0211181640625,
-0.017669677734375,
-0.0254974365234375,
-0.03363037109375,
-0.03448486328125,
0.0309906005859375,
-0.010467529296875,
-0.03558349609375,
0.047027587890625,
-0.008392333984375,
0.0318603515625,
0.0679931640625,
-0.051910400390625,
0.027557373046875,
0.041839599609375,
0.030670166015625,
-0.016326904296875,
-0.004230499267578125,
-0.077880859375,
0.004207611083984375,
-0.036865234375,
0.0081329345703125,
0.024871826171875,
0.002193450927734375,
0.0008254051208496094,
-0.0216217041015625,
0.0086669921875,
0.040771484375,
-0.0025634765625,
0.0187225341796875,
-0.00891876220703125,
0.00005710124969482422,
-0.00339508056640625,
-0.040313720703125,
-0.0384521484375,
-0.0025997161865234375,
-0.00011640787124633789,
-0.048919677734375,
0.01152801513671875,
0.0143280029296875,
0.0011196136474609375,
0.0174407958984375,
-0.0219268798828125,
-0.023040771484375,
0.004024505615234375,
0.01204681396484375,
-0.0215911865234375,
-0.019561767578125,
0.0195159912109375,
-0.00571441650390625,
-0.01433563232421875,
-0.00206756591796875,
0.02215576171875,
0.0289459228515625,
-0.014434814453125,
-0.007541656494140625,
-0.0257415771484375,
-0.00847625732421875,
0.0160675048828125,
-0.03045654296875,
0.029388427734375,
0.07061767578125,
0.0164642333984375,
-0.020355224609375,
-0.0159912109375,
0.0007839202880859375,
-0.02972412109375,
0.049713134765625,
0.00013530254364013672,
-0.00024056434631347656,
-0.0183563232421875,
0.01198577880859375,
-0.00014209747314453125,
-0.0191497802734375,
-0.051055908203125,
0.03485107421875,
0.035614013671875,
0.0189056396484375,
-0.04052734375,
-0.0447998046875,
0.051422119140625,
0.1025390625,
0.04681396484375,
0.07440185546875,
0.0034427642822265625,
0.0233306884765625,
0.036468505859375,
0.056884765625,
0.047576904296875,
-0.01995849609375,
0.040191650390625,
0.0038776397705078125,
-0.024078369140625,
-0.00909423828125,
-0.0284423828125,
0.0118560791015625,
0.07769775390625,
0.058990478515625,
-0.0958251953125,
-0.0079345703125,
0.01458740234375,
-0.0129241943359375,
-0.00035309791564941406,
0.012847900390625,
-0.0080413818359375,
-0.00482177734375,
0.0062408447265625,
-0.01142120361328125,
-0.0156402587890625,
0.00882720947265625,
0.0230560302734375,
-0.0205535888671875,
-0.0207061767578125,
0.0210723876953125,
0.0157318115234375,
-0.0477294921875,
0.00569915771484375,
0.03350830078125,
-0.0226287841796875,
-0.0210113525390625,
0.0200958251953125,
-0.0157470703125,
0.006298065185546875,
-0.016754150390625,
0.03076171875,
-0.00894927978515625,
-0.0019683837890625,
0.053741455078125,
-0.01953125,
-0.031829833984375,
0.05731201171875,
-0.046478271484375,
0.0306549072265625,
0.007480621337890625,
-0.037933349609375,
0.057525634765625,
-0.00897979736328125,
-0.030487060546875,
-0.0296783447265625,
-0.01055908203125,
-0.01122283935546875,
-0.01708984375,
0.020904541015625,
0.006137847900390625,
-0.0269622802734375,
0.053253173828125,
-0.0210723876953125,
-0.0201873779296875,
0.00649261474609375,
-0.01059722900390625,
0.009521484375,
-0.0238800048828125,
0.005672454833984375,
-0.05694580078125,
-0.00878143310546875,
0.0009832382202148438,
0.0246124267578125,
0.01386260986328125,
-0.018341064453125,
-0.04205322265625,
0.0736083984375,
-0.042266845703125,
0.0533447265625,
0.05718994140625,
0.004547119140625,
-0.0232696533203125,
0.00839996337890625,
-0.0136871337890625,
0.05035400390625,
-0.01485443115234375,
0.0268402099609375,
-0.002376556396484375,
0.0003197193145751953,
0.035675048828125,
0.0193023681640625,
0.05145263671875,
0.015655517578125,
-0.086181640625,
0.013031005859375,
0.08642578125,
0.053314208984375,
0.0548095703125,
0.049346923828125,
-0.019012451171875,
0.0177154541015625,
-0.0236053466796875,
-0.033599853515625,
0.019744873046875,
-0.061492919921875,
-0.057220458984375,
-0.0152740478515625,
0.024932861328125,
0.012908935546875,
0.01532745361328125,
-0.016021728515625,
-0.0253753662109375,
0.00411224365234375,
0.01690673828125,
0.025634765625,
-0.003086090087890625,
0.021759033203125,
0.03997802734375,
-0.08428955078125,
-0.01215362548828125,
-0.036041259765625,
0.057769775390625,
-0.0031185150146484375,
0.0258331298828125,
-0.01316070556640625,
0.0033206939697265625,
0.037933349609375,
-0.004451751708984375,
0.00372314453125,
0.058013916015625,
-0.02020263671875,
0.03631591796875,
0.00879669189453125,
0.0278167724609375,
-0.0179290771484375,
0.0147705078125,
0.0109100341796875,
0.0419921875,
-0.034393310546875,
-0.0455322265625,
0.0051727294921875,
-0.0097198486328125,
0.024200439453125,
-0.018035888671875,
0.03765869140625,
-0.05279541015625,
-0.0261383056640625,
0.019927978515625,
-0.01242828369140625,
0.007617950439453125,
0.0205078125,
-0.002727508544921875,
-0.00511932373046875,
-0.007083892822265625,
0.0177154541015625,
-0.04156494140625,
-0.0144500732421875,
-0.005298614501953125,
0.06292724609375,
0.054718017578125,
0.03082275390625,
0.017852783203125,
-0.043060302734375,
-0.004810333251953125,
0.03619384765625,
-0.0229339599609375,
0.0048980712890625,
-0.01142120361328125,
-0.026947021484375,
-0.018341064453125,
0.035675048828125,
0.01111602783203125,
0.01666259765625,
0.022979736328125,
0.021942138671875,
-0.0006303787231445312,
-0.01076507568359375,
0.01461029052734375,
-0.01189422607421875,
0.0182342529296875,
-0.009674072265625,
0.003665924072265625,
-0.01389312744140625,
-0.0230865478515625,
-0.0164794921875,
0.026031494140625,
0.01107025146484375,
-0.0008974075317382812,
0.00814056396484375,
-0.0034618377685546875,
-0.03729248046875,
0.01971435546875,
-0.01922607421875,
0.041015625,
0.008331298828125,
-0.07049560546875,
-0.04132080078125,
0.051025390625,
0.029815673828125,
0.01445770263671875,
0.037750244140625,
-0.007526397705078125,
0.038238525390625,
-0.006916046142578125,
-0.006587982177734375,
-0.01242828369140625,
-0.0184478759765625,
0.0338134765625,
0.0058135986328125,
-0.018280029296875,
0.02197265625,
-0.03466796875,
-0.01788330078125,
-0.0223388671875,
0.022796630859375,
0.017578125,
0.106689453125,
-0.055755615234375,
0.017059326171875,
-0.016937255859375,
0.005222320556640625,
-0.021728515625,
0.01148223876953125,
-0.0143585205078125,
0.01218414306640625,
0.01065826416015625,
-0.015777587890625,
-0.031341552734375,
0.0804443359375,
0.01419830322265625,
-0.0008120536804199219,
0.04376220703125,
0.00021541118621826172,
0.003871917724609375,
-0.0018129348754882812,
-0.002468109130859375,
-0.050201416015625,
-0.0987548828125,
-0.065673828125,
0.0308837890625,
-0.023529052734375,
-0.006237030029296875,
-0.03692626953125,
0.04656982421875,
0.003387451171875,
-0.0028858184814453125,
0.0296630859375,
-0.0374755859375,
0.056549072265625,
0.040863037109375,
-0.061614990234375,
-0.01425933837890625,
0.0035419464111328125,
-0.0120697021484375,
0.00942230224609375,
-0.0023479461669921875,
0.014556884765625,
-0.021148681640625,
-0.019317626953125,
-0.03533935546875,
-0.0275115966796875,
-0.006450653076171875,
-0.02203369140625,
0.006153106689453125,
-0.01413726806640625,
0.0006132125854492188,
0.018524169921875,
-0.037628173828125,
0.0012388229370117188,
0.014495849609375,
-0.0215301513671875,
0.034149169921875,
0.0020122528076171875,
-0.005474090576171875,
-0.0157470703125,
0.01108551025390625,
-0.0189056396484375,
-0.01377105712890625,
-0.0516357421875,
0.038116455078125,
-0.03192138671875,
0.038360595703125,
-0.06488037109375,
0.0017948150634765625,
-0.0171051025390625,
-0.00786590576171875,
-0.041900634765625,
-0.042724609375,
-0.038818359375,
0.04229736328125,
-0.0361328125,
0.0185699462890625,
0.056365966796875,
-0.006687164306640625,
-0.0203857421875,
-0.04107666015625,
-0.01715087890625,
0.0241546630859375,
-0.04705810546875,
-0.00377655029296875,
0.04498291015625,
-0.01369476318359375,
-0.03765869140625,
-0.07183837890625,
-0.0035266876220703125,
-0.0369873046875,
0.006069183349609375,
0.00807952880859375,
-0.026519775390625,
-0.02923583984375,
-0.049346923828125,
-0.05523681640625,
0.04266357421875,
0.01413726806640625,
-0.029205322265625,
-0.041412353515625,
-0.0001901388168334961,
-0.010345458984375,
0.032318115234375,
-0.006214141845703125,
0.0046844482421875,
-0.0274200439453125,
0.02496337890625,
0.0222930908203125,
-0.0025959014892578125,
0.006931304931640625,
0.03887939453125,
-0.0037097930908203125,
0.07843017578125,
0.0677490234375,
0.01142120361328125,
-0.00004684925079345703,
-0.01043701171875,
0.0614013671875,
0.06756591796875,
-0.004108428955078125,
0.041107177734375,
0.013824462890625,
-0.0303955078125,
-0.00066375732421875,
-0.0276031494140625,
-0.040557861328125,
-0.03466796875,
0.0804443359375,
0.028228759765625,
0.01467132568359375,
-0.01025390625,
-0.038909912109375,
-0.014556884765625,
-0.035003662109375,
-0.04571533203125,
0.041351318359375,
-0.09912109375,
-0.0180511474609375,
-0.01554107666015625,
-0.0242462158203125,
0.03271484375,
-0.02044677734375,
-0.04193115234375,
0.0270233154296875,
0.015289306640625,
-0.0159759521484375,
-0.0300750732421875,
0.00012183189392089844,
0.051727294921875,
-0.0323486328125,
0.0115814208984375,
-0.0237274169921875,
0.029205322265625,
0.03997802734375,
-0.034423828125,
-0.0148773193359375,
0.0108489990234375,
0.00638580322265625,
0.0236663818359375,
0.017608642578125,
0.0005984306335449219,
-0.0010509490966796875,
0.01540374755859375,
-0.023590087890625,
0.0017261505126953125,
0.01322174072265625,
0.01374053955078125,
-0.0142974853515625,
-0.0078125,
0.01873779296875,
0.037841796875,
-0.022064208984375,
0.03582763671875,
-0.0205535888671875,
0.054962158203125,
-0.031402587890625,
0.004974365234375,
0.01506805419921875,
-0.029693603515625,
0.0094146728515625,
0.047027587890625,
-0.0236358642578125,
-0.03924560546875,
0.00824737548828125,
0.00472259521484375,
0.0172882080078125,
0.006351470947265625
] |
bc4a03b618e2f7481c4078d1dbdfb83819f99f3a
|
Wordpress Stackexchange
Q: How to control accept encoding on HTTP API requests? Related to this ticket about issues with inflating data.
So far it had been suggested by API's support to request gzip instead of deflate.
However I cannot find a way to override WP settings that set deflate with highest priority as accepted encoding for all requests.
Related functions - WP_Http_Encoding::is_available() and WP_Http_Encoding::accept_encoding().
Is there any hook or other option to control this that I am missing?
A: Quite an edge case, but the accepted encoding types should be filterable nonetheless. I can see a few situations where fine, granular control over this header would be useful (as in adding an API that uses non-standard encoding).
So, while there's no stock hook for this, I have created a Trac ticket for it and submitted a patch. If you voice support on the ticket, maybe we can raise enough noise to get it incorporated into a future release.
|
Q: How to control accept encoding on HTTP API requests? Related to this ticket about issues with inflating data.
So far it had been suggested by API's support to request gzip instead of deflate.
However I cannot find a way to override WP settings that set deflate with highest priority as accepted encoding for all requests.
Related functions - WP_Http_Encoding::is_available() and WP_Http_Encoding::accept_encoding().
Is there any hook or other option to control this that I am missing?
A: Quite an edge case, but the accepted encoding types should be filterable nonetheless. I can see a few situations where fine, granular control over this header would be useful (as in adding an API that uses non-standard encoding).
So, while there's no stock hook for this, I have created a Trac ticket for it and submitted a patch. If you voice support on the ticket, maybe we can raise enough noise to get it incorporated into a future release.
A: Short answer: No, there's no hook for that.
Long answer: You could possibly submit a patch at WordPress Trac, if you really need to adjust this option. Personally, I didn't ever had problemes with WP_Http_Encoding::accept_encoding() and the question you mentioned could be answered by manually gzinflate() the response. IMHO, this seems to be the only solution until someone submits a patch.
|
wordpress
|
{
"language": "en",
"length": 218,
"provenance": "stackexchange_00019.jsonl.gz:411828",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24612"
}
|
[
0.033905029296875,
-0.0162811279296875,
-0.028167724609375,
0.0188751220703125,
0.021392822265625,
-0.0418701171875,
0.07659912109375,
-0.00211334228515625,
0.01313018798828125,
-0.004596710205078125,
-0.01091766357421875,
-0.0233612060546875,
0.0072021484375,
-0.0374755859375,
-0.00009077787399291992,
-0.026397705078125,
0.0333251953125,
-0.0297393798828125,
-0.01151275634765625,
-0.022216796875,
-0.01541900634765625,
-0.00396728515625,
0.01410675048828125,
0.0435791015625,
-0.0018138885498046875,
-0.01288604736328125,
0.046966552734375,
-0.02838134765625,
-0.01068115234375,
-0.0265350341796875,
-0.009307861328125,
0.028472900390625,
-0.002349853515625,
0.07476806640625,
-0.05645751953125,
0.0246124267578125,
0.01465606689453125,
0.0361328125,
0.0026836395263671875,
0.036163330078125,
0.0305633544921875,
-0.0191192626953125,
-0.00766754150390625,
0.047271728515625,
-0.01184844970703125,
-0.033294677734375,
0.03924560546875,
-0.03375244140625,
0.0110015869140625,
0.0300445556640625,
-0.00971221923828125,
0.0177001953125,
-0.0010728836059570312,
0.0005750656127929688,
-0.02130126953125,
-0.036651611328125,
0.020782470703125,
0.0377197265625,
0.003513336181640625,
-0.0428466796875,
-0.031982421875,
0.04913330078125,
0.00901031494140625,
0.035858154296875,
0.0200958251953125,
0.0009083747863769531,
0.0294952392578125,
0.0095672607421875,
-0.017974853515625,
0.0443115234375,
0.033203125,
-0.01071929931640625,
-0.02642822265625,
-0.03887939453125,
-0.059051513671875,
0.05853271484375,
0.0023136138916015625,
-0.01238250732421875,
0.0210418701171875,
-0.0316162109375,
0.08184814453125,
-0.0214385986328125,
0.061981201171875,
-0.0127410888671875,
0.035736083984375,
0.0200042724609375,
0.01763916015625,
-0.037506103515625,
0.00537872314453125,
-0.01052093505859375,
-0.0298919677734375,
-0.029327392578125,
0.0168304443359375,
0.0303497314453125,
-0.0242767333984375,
0.0011396408081054688,
0.00742340087890625,
-0.0469970703125,
0.0171661376953125,
0.009735107421875,
0.044830322265625,
-0.0732421875,
0.0706787109375,
-0.01197052001953125,
0.028472900390625,
-0.015380859375,
-0.017486572265625,
-0.01531982421875,
0.07574462890625,
0.03955078125,
-0.0015687942504882812,
0.08636474609375,
0.020782470703125,
-0.028839111328125,
0.004306793212890625,
-0.0230560302734375,
-0.01277923583984375,
0.031982421875,
0.0094451904296875,
-0.045623779296875,
0.029388427734375,
0.037994384765625,
0.04437255859375,
-0.0531005859375,
-0.0271148681640625,
-0.00972747802734375,
-0.03375244140625,
-0.057037353515625,
-0.0455322265625,
0.037139892578125,
0.018798828125,
0.01383209228515625,
-0.0122528076171875,
0.026153564453125,
-0.0292816162109375,
-0.00986480712890625,
0.042266845703125,
-0.002803802490234375,
-0.007015228271484375,
0.005786895751953125,
0.0012416839599609375,
-0.006595611572265625,
-0.0196075439453125,
-0.0222930908203125,
-0.0015401840209960938,
0.018280029296875,
0.01483154296875,
0.0015745162963867188,
-0.006458282470703125,
-0.06866455078125,
0.0212860107421875,
-0.02972412109375,
0.021453857421875,
0.01336669921875,
-0.011322021484375,
0.00705718994140625,
0.05615234375,
-0.03033447265625,
-0.042877197265625,
-0.046905517578125,
-0.022552490234375,
-0.0438232421875,
-0.01076507568359375,
0.00318145751953125,
-0.023651123046875,
0.058441162109375,
0.0204315185546875,
0.00885009765625,
0.01467132568359375,
0.0443115234375,
-0.016387939453125,
0.03826904296875,
-0.01971435546875,
-0.0233917236328125,
-0.0224609375,
-0.03643798828125,
0.0262451171875,
0.039642333984375,
-0.0037326812744140625,
0.06243896484375,
0.024505615234375,
-0.040740966796875,
0.0672607421875,
-0.024688720703125,
-0.0208587646484375,
0.028717041015625,
0.02496337890625,
0.0726318359375,
-0.006389617919921875,
0.035430908203125,
-0.015106201171875,
0.030181884765625,
-0.04107666015625,
0.0020046234130859375,
-0.0203704833984375,
-0.0191802978515625,
-0.00469207763671875,
-0.0128173828125,
-0.007389068603515625,
0.01861572265625,
0.0006051063537597656,
-0.0013027191162109375,
-0.006916046142578125,
-0.0102081298828125,
-0.01079559326171875,
-0.0241851806640625,
0.0015048980712890625,
0.0221405029296875,
0.003963470458984375,
0.00029015541076660156,
0.0034465789794921875,
-0.023162841796875,
-0.0162200927734375,
0.04107666015625,
-0.02191162109375,
-0.00679779052734375,
0.0005955696105957031,
0.03167724609375,
0.004871368408203125,
0.0264892578125,
-0.0010089874267578125,
-0.005584716796875,
0.00041985511779785156,
0.01511383056640625,
-0.007038116455078125,
-0.021697998046875,
0.019195556640625,
-0.0033512115478515625,
0.07025146484375,
-0.00707244873046875,
0.0753173828125,
-0.032684326171875,
0.04949951171875,
0.06396484375,
0.00450897216796875,
-0.00988006591796875,
0.0041046142578125,
-0.09600830078125,
0.01137542724609375,
0.05517578125,
0.038360595703125,
0.00844573974609375,
-0.0020351409912109375,
0.007717132568359375,
0.03631591796875,
-0.012664794921875,
0.022857666015625,
-0.019256591796875,
0.027801513671875,
0.002422332763671875,
-0.00858306884765625,
-0.08575439453125,
0.0235443115234375,
-0.13330078125,
0.04034423828125,
0.0019178390502929688,
-0.03326416015625,
-0.046875,
0.0274200439453125,
0.01251983642578125,
0.00691986083984375,
0.00390625,
0.0021724700927734375,
-0.0011768341064453125,
0.0032291412353515625,
-0.001758575439453125,
0.0041961669921875,
0.01007843017578125,
0.004894256591796875,
-0.0237274169921875,
0.0259552001953125,
0.0037975311279296875,
-0.0030364990234375,
0.060211181640625,
0.046295166015625,
0.0261077880859375,
-0.050201416015625,
-0.0248260498046875,
0.032745361328125,
0.0491943359375,
0.0038127899169921875,
0.0267486572265625,
-0.0303955078125,
-0.0105438232421875,
-0.004634857177734375,
-0.031524658203125,
-0.0006985664367675781,
0.035369873046875,
-0.006191253662109375,
-0.00030493736267089844,
0.01145172119140625,
0.0491943359375,
0.010040283203125,
0.01006317138671875,
0.01119232177734375,
0.0021533966064453125,
0.010040283203125,
-0.0233306884765625,
0.0288238525390625,
-0.0149383544921875,
0.032379150390625,
0.056610107421875,
0.007717132568359375,
-0.0113525390625,
0.0029926300048828125,
-0.025634765625,
-0.017364501953125,
0.040130615234375,
0.0036411285400390625,
-0.05572509765625,
0.005825042724609375,
0.0178070068359375,
0.02459716796875,
0.0234527587890625,
-0.005214691162109375,
-0.0421142578125,
-0.022674560546875,
0.0038242340087890625,
-0.068359375,
-0.05584716796875,
0.07080078125,
-0.024658203125,
-0.006008148193359375,
-0.01219940185546875,
-0.006465911865234375,
-0.031402587890625,
-0.007511138916015625,
-0.024993896484375,
-0.0015153884887695312,
0.02288818359375,
0.0016088485717773438,
-0.00897979736328125,
-0.0250701904296875,
-0.0176544189453125,
-0.0129241943359375,
0.005031585693359375,
-0.00598907470703125,
0.0039825439453125,
-0.016143798828125,
-0.049041748046875,
-0.043975830078125,
0.0124053955078125,
-0.005092620849609375,
-0.04046630859375,
-0.029266357421875,
-0.025421142578125,
0.004650115966796875,
-0.028045654296875,
0.0305938720703125,
0.0384521484375,
-0.0135650634765625,
0.04327392578125,
-0.047271728515625,
-0.0230865478515625,
-0.04443359375,
0.035308837890625,
0.0589599609375,
-0.041351318359375,
-0.019775390625,
-0.0599365234375,
0.0111236572265625,
0.0103607177734375,
-0.01319122314453125,
-0.06256103515625,
0.00707244873046875,
-0.0243377685546875,
-0.0176849365234375,
-0.0214385986328125,
-0.01229095458984375,
0.00738525390625,
0.018157958984375,
-0.0204010009765625,
0.0338134765625,
-0.014739990234375,
-0.018890380859375,
-0.02410888671875,
0.04400634765625,
-0.004520416259765625,
-0.0150909423828125,
0.020263671875,
0.004970550537109375,
0.012847900390625,
-0.0014810562133789062,
-0.014984130859375,
-0.0341796875,
0.02197265625,
-0.0015172958374023438,
0.04571533203125,
-0.0226593017578125,
-0.0294342041015625,
-0.01525115966796875,
0.086669921875,
0.01495361328125,
-0.0333251953125,
0.00884246826171875,
0.0282440185546875,
-0.052886962890625,
-0.036224365234375,
-0.0027217864990234375,
-0.01158905029296875,
0.058502197265625,
-0.0264434814453125,
-0.031158447265625,
-0.0041961669921875,
-0.016326904296875,
-0.021209716796875,
0.0312347412109375,
-0.00589752197265625,
0.0204620361328125,
-0.0230560302734375,
-0.0096893310546875,
0.018768310546875,
0.006748199462890625,
-0.0355224609375,
-0.00010418891906738281,
-0.019439697265625,
-0.09228515625,
-0.01019287109375,
-0.057861328125,
0.07916259765625,
0.054718017578125,
-0.06488037109375,
0.0164337158203125,
0.061767578125,
0.003513336181640625,
0.050445556640625,
-0.0117034912109375,
-0.004154205322265625,
-0.00001537799835205078,
0.0241546630859375,
0.004764556884765625,
-0.0036296844482421875,
-0.0273284912109375,
0.015380859375,
-0.0208282470703125,
0.03692626953125,
0.004665374755859375,
-0.035858154296875,
0.0231170654296875,
-0.041961669921875,
-0.1075439453125,
-0.07745361328125,
-0.06005859375,
-0.007389068603515625,
-0.0352783203125,
-0.0030612945556640625,
-0.06939697265625,
-0.10064697265625,
0.05963134765625,
0.033966064453125,
0.00780487060546875,
-0.01502227783203125,
0.08782958984375,
0.006298065185546875,
-0.038055419921875,
-0.03802490234375,
-0.0150909423828125,
0.01560211181640625,
-0.00910186767578125,
0.04583740234375,
0.0204620361328125,
-0.0207366943359375,
0.07330322265625,
0.002197265625,
0.044586181640625,
0.00896453857421875,
-0.0106048583984375,
0.011474609375,
-0.0036678314208984375,
0.00799560546875,
0.041229248046875,
-0.034942626953125,
0.0038909912109375,
0.00921630859375,
0.0110626220703125,
0.0179595947265625,
-0.001255035400390625,
0.0009870529174804688,
-0.0318603515625,
-0.01739501953125,
-0.05908203125,
0.034423828125,
-0.00048542022705078125,
-0.01934814453125,
-0.0196075439453125,
0.0081634521484375,
-0.01025390625,
-0.01502227783203125,
0.0138092041015625,
-0.06451416015625,
0.03497314453125,
-0.049957275390625,
0.0562744140625,
-0.0594482421875,
-0.00254058837890625,
-0.045379638671875,
-0.0194549560546875,
0.0657958984375,
-0.0250244140625,
-0.07440185546875,
0.00926971435546875,
-0.01325225830078125,
0.04888916015625,
0.04168701171875,
-0.004791259765625,
-0.008697509765625,
-0.03662109375,
-0.01983642578125,
0.01934814453125,
-0.03204345703125,
-0.02142333984375,
-0.0256195068359375,
0.041015625,
0.002704620361328125,
0.0007381439208984375,
0.0267181396484375,
0.0172882080078125,
-0.01812744140625,
0.0321044921875,
-0.001708984375,
-0.00006437301635742188,
0.007656097412109375,
0.032989501953125,
0.037017822265625,
-0.01617431640625,
-0.0272979736328125,
0.040557861328125,
-0.01142120361328125,
-0.0210723876953125,
-0.029266357421875,
-0.002742767333984375,
0.0233154296875,
-0.032073974609375,
0.0007805824279785156,
0.039459228515625,
0.018707275390625,
-0.005489349365234375,
0.045501708984375,
0.01227569580078125,
-0.048309326171875,
-0.0019931793212890625,
0.0026683807373046875,
0.00749969482421875,
-0.029388427734375,
0.0007686614990234375,
0.01531219482421875,
0.0219879150390625,
0.0239715576171875,
-0.001651763916015625,
-0.017303466796875,
-0.0013761520385742188,
0.0221710205078125,
0.0193634033203125,
-0.0215301513671875,
-0.0254669189453125,
-0.048187255859375,
0.004573822021484375,
-0.0224609375,
-0.00002491474151611328,
0.053619384765625,
-0.02996826171875,
0.00301361083984375,
-0.000911712646484375,
-0.004344940185546875,
-0.01995849609375,
0.0196380615234375,
0.0308685302734375,
0.0193634033203125,
-0.00426483154296875,
-0.0187835693359375,
-0.0556640625,
-0.0299835205078125,
-0.0015859603881835938,
-0.0243377685546875,
-0.0256500244140625,
0.00339508056640625,
0.0190582275390625,
0.0197906494140625,
0.0088348388671875,
-0.01053619384765625,
-0.008697509765625,
0.0467529296875,
0.018585205078125,
0.06634521484375,
-0.05340576171875,
0.0193023681640625,
0.00724029541015625,
-0.0019407272338867188,
-0.0242156982421875,
0.015899658203125,
0.0687255859375,
0.0005478858947753906,
-0.0002853870391845703,
-0.0811767578125,
-0.042327880859375,
0.0160064697265625,
-0.01526641845703125,
0.057830810546875,
0.018707275390625,
-0.0162353515625,
0.01155853271484375,
-0.03857421875,
-0.001026153564453125,
-0.01654052734375,
0.058685302734375,
-0.045013427734375,
-0.0182952880859375,
0.0281982421875,
0.0138702392578125,
0.0066070556640625,
-0.0567626953125,
-0.054901123046875,
0.040985107421875,
0.021759033203125,
0.033203125,
-0.02606201171875,
0.00501251220703125,
0.0022983551025390625,
0.0248565673828125,
0.041748046875,
0.046112060546875,
0.012542724609375,
0.046600341796875,
-0.005519866943359375,
0.03155517578125,
0.02972412109375,
-0.005558013916015625,
-0.03411865234375,
-0.032257080078125,
0.039947509765625,
-0.0665283203125,
0.00543212890625,
0.016357421875,
0.0772705078125,
0.07806396484375,
-0.10693359375,
0.0014162063598632812,
0.0311431884765625,
-0.018157958984375,
-0.0164337158203125,
0.0098724365234375,
-0.03814697265625,
-0.043243408203125,
0.044586181640625,
-0.0733642578125,
-0.0226898193359375,
0.009674072265625,
-0.0177764892578125,
-0.0174713134765625,
-0.016876220703125,
0.00969696044921875,
0.01107025146484375,
-0.0183563232421875,
0.00347137451171875,
0.0089874267578125,
-0.021697998046875,
0.0293731689453125,
0.02203369140625,
0.00821685791015625,
-0.048095703125,
-0.04681396484375,
-0.0047760009765625,
-0.01226806640625,
-0.07281494140625,
0.00443267822265625,
-0.0059661865234375,
0.014373779296875,
0.048736572265625,
-0.02362060546875,
0.002960205078125,
0.0289306640625,
-0.029693603515625,
0.04730224609375,
-0.0237274169921875,
0.00899505615234375,
0.033111572265625,
-0.03857421875,
0.0001308917999267578,
0.005229949951171875,
-0.00004279613494873047,
-0.004322052001953125,
-0.0030231475830078125,
0.0511474609375,
-0.02056884765625,
-0.01171112060546875,
0.027923583984375,
-0.005279541015625,
-0.0185394287109375,
-0.01540374755859375,
-0.02734375,
-0.03167724609375,
-0.005802154541015625,
-0.02197265625,
-0.039031982421875,
-0.004276275634765625,
-0.0231170654296875,
-0.0316162109375,
0.049407958984375,
0.03607177734375,
-0.0112457275390625,
-0.01214599609375,
0.0216522216796875,
-0.040313720703125,
0.002117156982421875,
-0.02203369140625,
0.00774383544921875,
-0.04638671875,
0.0131683349609375,
-0.04656982421875,
0.017364501953125,
-0.0183868408203125,
0.003589630126953125,
-0.015899658203125,
-0.001461029052734375,
-0.0426025390625,
-0.0025043487548828125,
0.01015472412109375,
-0.00519561767578125,
0.006534576416015625,
0.0616455078125,
0.007572174072265625,
-0.010162353515625,
0.0284881591796875,
-0.00730133056640625,
0.0277557373046875,
-0.0172576904296875,
-0.005672454833984375,
0.0180816650390625,
0.033203125,
0.05670166015625,
0.01187896728515625,
0.0364990234375,
-0.01395416259765625,
0.002422332763671875,
0.03863525390625,
-0.04132080078125,
0.01097869873046875,
0.01092529296875,
0.0174407958984375,
-0.0870361328125,
-0.04144287109375,
-0.0233001708984375,
0.0312042236328125,
-0.01202392578125,
-0.0113525390625,
0.0260772705078125,
0.0220947265625,
-0.0225982666015625,
-0.00371551513671875,
-0.00127410888671875,
0.0276947021484375,
-0.038482666015625,
0.0200042724609375,
-0.0031833648681640625,
0.025726318359375,
-0.00641632080078125,
0.036346435546875,
-0.005157470703125,
0.0035076141357421875,
-0.01453399658203125,
-0.0069122314453125,
0.01015472412109375,
0.01383209228515625,
0.031280517578125,
-0.01119232177734375,
0.056488037109375,
-0.041473388671875,
-0.032623291015625,
-0.037689208984375,
0.004177093505859375,
0.0223846435546875,
0.0445556640625,
0.02081298828125,
0.048614501953125,
-0.07989501953125,
-0.044403076171875,
-0.03265380859375,
-0.00409698486328125,
-0.0136566162109375,
0.054840087890625,
0.03802490234375,
0.0194244384765625,
-0.039825439453125,
-0.035797119140625,
-0.009490966796875,
0.0008139610290527344,
-0.00638580322265625,
-0.0195770263671875,
-0.00588226318359375,
-0.024810791015625,
-0.0012731552124023438,
0.023406982421875,
-0.0205535888671875,
-0.00970458984375,
0.044891357421875,
0.05633544921875,
-0.068359375,
-0.0277862548828125,
0.075439453125,
-0.020111083984375,
0.03369140625,
-0.04486083984375,
0.0075225830078125,
-0.006809234619140625,
-0.01629638671875,
-0.0133819580078125,
-0.044403076171875,
0.04345703125,
-0.037567138671875,
0.05657958984375,
-0.005367279052734375,
-0.0189971923828125,
0.032501220703125,
-0.006114959716796875,
0.06439208984375,
-0.0015745162963867188,
-0.0158538818359375,
-0.0166473388671875,
-0.04046630859375,
0.0302581787109375,
0.031585693359375,
0.036712646484375,
0.0296630859375,
0.009613037109375,
0.05938720703125,
-0.060546875,
0.0147552490234375,
0.0435791015625,
0.0028820037841796875,
-0.00563812255859375,
0.0138397216796875,
-0.00620269775390625,
-0.0548095703125,
-0.053985595703125,
-0.00525665283203125,
0.0655517578125,
-0.018218994140625,
0.048858642578125,
-0.0106658935546875,
0.0211944580078125,
0.01629638671875,
-0.0158233642578125,
0.046478271484375,
0.027099609375,
-0.01080322265625,
0.0266265869140625,
0.01148223876953125,
-0.034515380859375,
-0.06768798828125,
0.0070953369140625,
0.01513671875,
-0.0180816650390625,
0.034942626953125,
-0.0408935546875,
0.01178741455078125,
-0.0183868408203125,
-0.01212310791015625,
-0.039306640625,
-0.04046630859375,
-0.031280517578125,
-0.01056671142578125,
-0.0015268325805664062,
-0.016571044921875,
-0.0020236968994140625,
0.0260162353515625,
-0.0006690025329589844,
0.01013946533203125,
0.007488250732421875,
0.0109100341796875,
0.0345458984375,
0.022613525390625,
-0.07061767578125,
0.0518798828125,
0.037506103515625,
-0.0228118896484375,
0.034027099609375,
0.00885772705078125,
-0.016632080078125,
0.026397705078125,
-0.0128326416015625,
-0.027099609375,
0.02886962890625,
0.02178955078125,
0.005199432373046875,
-0.0015869140625,
0.01953125,
-0.032745361328125,
-0.0172271728515625,
-0.0118408203125,
0.0036983489990234375,
0.0303802490234375,
-0.017578125,
0.00408172607421875,
0.04827880859375,
-0.005695343017578125,
0.00527191162109375,
-0.01427459716796875,
0.0182647705078125,
-0.044464111328125,
0.050079345703125,
-0.049530029296875,
-0.05889892578125,
0.0372314453125,
-0.030853271484375,
-0.0186004638671875,
-0.0149383544921875,
0.0014219284057617188,
-0.044891357421875,
-0.04840087890625,
-0.04620361328125,
0.031463623046875,
-0.06536865234375,
0.00702667236328125,
0.0184326171875,
0.0019779205322265625,
-0.007434844970703125,
-0.01375579833984375,
-0.01800537109375,
0.0303955078125,
-0.02191162109375,
-0.019805908203125,
-0.0079193115234375,
0.0188751220703125,
-0.03399658203125,
-0.040435791015625,
0.01055145263671875,
-0.023162841796875,
0.003040313720703125,
-0.001499176025390625,
-0.006267547607421875,
0.0012540817260742188,
-0.0439453125,
-0.06280517578125,
0.049041748046875,
0.005584716796875,
-0.028472900390625,
-0.0133514404296875,
0.01306915283203125,
0.00925445556640625,
-0.0073089599609375,
0.00402069091796875,
-0.0189971923828125,
-0.0252532958984375,
-0.0122833251953125,
0.00820159912109375,
0.0216064453125,
-0.002658843994140625,
0.006496429443359375,
-0.0258026123046875,
0.0310516357421875,
0.0307769775390625,
0.007076263427734375,
-0.0234222412109375,
-0.00860595703125,
0.03826904296875,
0.0228424072265625,
-0.0022563934326171875,
0.0660400390625,
0.041778564453125,
0.00641632080078125,
-0.02447509765625,
-0.045440673828125,
-0.0174407958984375,
-0.00322723388671875,
0.06781005859375,
0.046539306640625,
0.00949859619140625,
-0.042083740234375,
0.0080108642578125,
-0.018646240234375,
0.01050567626953125,
-0.0015869140625,
-0.0113677978515625,
-0.00994110107421875,
0.00775909423828125,
-0.0099639892578125,
0.0185394287109375,
-0.0085906982421875,
-0.0268707275390625,
0.006305694580078125,
-0.024932861328125,
0.0200653076171875,
-0.0052337646484375,
0.02978515625,
-0.0137939453125,
0.01715087890625,
-0.027923583984375,
-0.03033447265625,
0.0051727294921875,
0.0125732421875,
-0.0308685302734375,
0.013641357421875,
-0.0279083251953125,
0.01111602783203125,
-0.0085601806640625,
-0.002498626708984375,
0.00099945068359375,
-0.0154876708984375,
0.0012083053588867188,
0.0281524658203125,
-0.0197296142578125,
0.0175018310546875,
0.02044677734375,
0.0413818359375,
-0.011077880859375,
-0.0170135498046875,
0.01088714599609375,
-0.02984619140625,
-0.039337158203125,
-0.036590576171875,
-0.0208740234375,
-0.00331878662109375,
-0.01464080810546875,
0.02630615234375,
0.05047607421875,
-0.0228424072265625,
0.0142974853515625,
-0.00885772705078125,
0.0150299072265625,
-0.01241302490234375,
0.004974365234375,
-0.0120849609375,
-0.01457977294921875,
0.007022857666015625
] |
c8f0b360f68ba62c7ab6e4ce8846b381077362ad
|
Wordpress Stackexchange
Q: How to Detect if I am on a bbpress 'plugin' page? How can I check if I am on a forum page or forum post inside my theme. I am using the bbpress plugin (not standalone bbpress). There should be some conditional like is_bbpress() or something?
A: Indeed, there is a function named is_bbpress(). Use the RC1 version, it was introduced in r3344.
|
Q: How to Detect if I am on a bbpress 'plugin' page? How can I check if I am on a forum page or forum post inside my theme. I am using the bbpress plugin (not standalone bbpress). There should be some conditional like is_bbpress() or something?
A: Indeed, there is a function named is_bbpress(). Use the RC1 version, it was introduced in r3344.
A: This page explains the is_bbpress() function. http://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template
It also details another way which involves creating a new template which matches one of the key names for example forum.php. Than all forum pages will be loaded with that template rather than page.php, meaning you don't have to use is_bbpress() to test if it's a forum page anymore.
|
wordpress
|
{
"language": "en",
"length": 121,
"provenance": "stackexchange_00019.jsonl.gz:411848",
"question_score": "13",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24683"
}
|
[
0.0433349609375,
0.0241241455078125,
0.0013332366943359375,
-0.021148681640625,
0.01009368896484375,
-0.00823211669921875,
0.0016756057739257812,
-0.043243408203125,
0.02410888671875,
0.00011914968490600586,
-0.031158447265625,
0.00426483154296875,
-0.048248291015625,
-0.0224456787109375,
-0.02740478515625,
-0.03973388671875,
0.017547607421875,
0.0119171142578125,
0.025909423828125,
-0.02435302734375,
0.024566650390625,
-0.00962066650390625,
0.0098724365234375,
0.038604736328125,
0.0289764404296875,
-0.0011720657348632812,
0.112548828125,
-0.0214691162109375,
0.06103515625,
0.01326751708984375,
0.04632568359375,
-0.0849609375,
-0.0029773712158203125,
0.04608154296875,
-0.01788330078125,
-0.005535125732421875,
-0.030364990234375,
0.03857421875,
0.029937744140625,
0.004833221435546875,
0.034088134765625,
-0.005153656005859375,
-0.0157318115234375,
0.051422119140625,
-0.025177001953125,
-0.029937744140625,
-0.0002465248107910156,
-0.0556640625,
0.008941650390625,
-0.01038360595703125,
-0.01953125,
-0.01030731201171875,
-0.0051422119140625,
-0.0228729248046875,
-0.01593017578125,
-0.00916290283203125,
-0.0294036865234375,
0.027862548828125,
0.0298309326171875,
0.011688232421875,
-0.0228729248046875,
-0.0277557373046875,
0.01012420654296875,
-0.03253173828125,
-0.00566864013671875,
-0.00855255126953125,
-0.048309326171875,
0.030181884765625,
-0.020111083984375,
-0.0276947021484375,
0.0169677734375,
-0.028900146484375,
0.035064697265625,
0.01947021484375,
-0.058013916015625,
-0.08721923828125,
0.03289794921875,
-0.045684814453125,
0.016876220703125,
-0.024078369140625,
-0.060546875,
-0.0223846435546875,
-0.06817626953125,
-0.0124969482421875,
-0.01457977294921875,
0.031494140625,
-0.01238250732421875,
0.00023663043975830078,
-0.027557373046875,
0.00885009765625,
-0.0186767578125,
-0.032379150390625,
-0.034454345703125,
0.045257568359375,
0.01239776611328125,
0.00675201416015625,
0.020782470703125,
0.0386962890625,
-0.035064697265625,
0.005725860595703125,
-0.0129547119140625,
-0.0278167724609375,
0.034698486328125,
-0.032806396484375,
0.003570556640625,
0.05120849609375,
-0.01358795166015625,
-0.0496826171875,
0.0151214599609375,
0.0189056396484375,
0.007396697998046875,
-0.0007810592651367188,
-0.032196044921875,
-0.01132965087890625,
-0.055450439453125,
0.006500244140625,
-0.054168701171875,
-0.0364990234375,
-0.0015592575073242188,
-0.0161590576171875,
0.00449371337890625,
0.0212249755859375,
0.040069580078125,
-0.01953125,
-0.0015048980712890625,
-0.006824493408203125,
-0.029876708984375,
-0.0477294921875,
-0.03765869140625,
0.026519775390625,
-0.00922393798828125,
0.0185546875,
0.0223236083984375,
-0.011199951171875,
-0.03289794921875,
-0.018035888671875,
0.0275115966796875,
-0.003753662109375,
0.012420654296875,
-0.002773284912109375,
0.0131988525390625,
-0.0295867919921875,
-0.01678466796875,
0.00678253173828125,
-0.0311431884765625,
0.008087158203125,
0.022003173828125,
0.0128631591796875,
-0.048065185546875,
-0.045806884765625,
0.0198822021484375,
-0.030059814453125,
0.00875091552734375,
-0.007659912109375,
0.037017822265625,
-0.03326416015625,
0.0225982666015625,
-0.0174407958984375,
0.0185699462890625,
-0.006175994873046875,
0.05352783203125,
-0.0016469955444335938,
0.0002486705780029297,
0.0028820037841796875,
-0.033294677734375,
-0.006748199462890625,
-0.040191650390625,
0.0015392303466796875,
0.029022216796875,
-0.010772705078125,
-0.005893707275390625,
-0.004817962646484375,
0.058135986328125,
0.0161590576171875,
-0.000629425048828125,
0.033660888671875,
-0.011871337890625,
0.038726806640625,
0.0288543701171875,
0.04681396484375,
0.0026702880859375,
-0.021392822265625,
0.0645751953125,
-0.01007843017578125,
-0.046661376953125,
0.04931640625,
0.002651214599609375,
0.05133056640625,
0.010986328125,
0.0083770751953125,
0.0308837890625,
0.022216796875,
-0.00559234619140625,
0.0225830078125,
-0.00864410400390625,
-0.0310211181640625,
0.006473541259765625,
0.006092071533203125,
-0.0178680419921875,
0.000013947486877441406,
0.0116424560546875,
0.00186920166015625,
-0.01270294189453125,
-0.0036525726318359375,
-0.039581298828125,
-0.01085662841796875,
-0.00711822509765625,
0.0187225341796875,
0.063232421875,
0.01444244384765625,
-0.031219482421875,
-0.01100921630859375,
0.026763916015625,
-0.07318115234375,
-0.059600830078125,
0.02764892578125,
-0.01491546630859375,
-0.0167083740234375,
0.0045928955078125,
-0.0042724609375,
-0.0169219970703125,
0.03900146484375,
-0.044342041015625,
-0.0072784423828125,
0.041717529296875,
0.0207366943359375,
-0.02056884765625,
-0.0112152099609375,
0.0167083740234375,
0.030975341796875,
-0.0267791748046875,
0.01085662841796875,
-0.0003452301025390625,
-0.002841949462890625,
0.004863739013671875,
0.0174407958984375,
0.00928497314453125,
-0.071533203125,
0.01322174072265625,
0.03900146484375,
0.026123046875,
0.03753662109375,
-0.00981903076171875,
0.0167236328125,
0.057647705078125,
-0.0445556640625,
-0.0067901611328125,
0.0189666748046875,
0.06976318359375,
0.09100341796875,
-0.06744384765625,
-0.00481414794921875,
0.01175689697265625,
-0.03900146484375,
0.01708984375,
0.03240966796875,
0.002925872802734375,
0.002384185791015625,
0.025848388671875,
-0.006374359130859375,
-0.00888824462890625,
0.016021728515625,
0.00249481201171875,
0.004970550537109375,
0.068359375,
-0.04705810546875,
0.045318603515625,
0.0193328857421875,
0.013153076171875,
-0.039581298828125,
-0.008514404296875,
-0.037200927734375,
0.0016231536865234375,
0.0222930908203125,
0.04583740234375,
0.02349853515625,
-0.049713134765625,
-0.0258636474609375,
0.064697265625,
0.033294677734375,
-0.05023193359375,
-0.038818359375,
-0.049102783203125,
-0.006221771240234375,
0.013031005859375,
-0.02752685546875,
0.0196685791015625,
-0.0289154052734375,
-0.00925445556640625,
-0.0184478759765625,
0.0135955810546875,
0.0250244140625,
-0.041656494140625,
0.06640625,
-0.030914306640625,
-0.02972412109375,
-0.03204345703125,
-0.06402587890625,
0.051605224609375,
-0.05181884765625,
0.006282806396484375,
0.06866455078125,
0.0028858184814453125,
0.0034236907958984375,
-0.006336212158203125,
-0.004306793212890625,
-0.01371002197265625,
0.0259246826171875,
-0.0086517333984375,
-0.03753662109375,
-0.0247344970703125,
0.00807952880859375,
0.006877899169921875,
-0.023712158203125,
0.017547607421875,
-0.0268096923828125,
-0.0236663818359375,
-0.004261016845703125,
-0.0985107421875,
-0.052398681640625,
-0.040435791015625,
-0.074951171875,
0.00444793701171875,
-0.0171051025390625,
-0.018798828125,
0.008087158203125,
0.0066375732421875,
0.007030487060546875,
-0.0293121337890625,
-0.01183319091796875,
-0.0160064697265625,
-0.06439208984375,
-0.045562744140625,
-0.00562286376953125,
-0.008270263671875,
0.0008492469787597656,
0.00473785400390625,
0.04351806640625,
0.006107330322265625,
-0.054840087890625,
-0.01036834716796875,
0.038604736328125,
-0.01387786865234375,
0.00040078163146972656,
-0.021026611328125,
0.0253753662109375,
-0.0400390625,
0.03631591796875,
0.00688934326171875,
-0.0250244140625,
-0.016937255859375,
-0.036163330078125,
-0.01439666748046875,
-0.0430908203125,
-0.0206451416015625,
-0.0162200927734375,
0.0252227783203125,
-0.03631591796875,
-0.0176544189453125,
-0.052825927734375,
0.001918792724609375,
0.0215606689453125,
-0.0308074951171875,
-0.01082611083984375,
0.0027828216552734375,
-0.037994384765625,
0.017303466796875,
-0.0177459716796875,
0.04461669921875,
0.02496337890625,
0.01078033447265625,
-0.00020229816436767578,
0.0509033203125,
-0.0007610321044921875,
0.0290374755859375,
-0.05029296875,
-0.045684814453125,
-0.05731201171875,
0.024932861328125,
-0.04278564453125,
-0.0289459228515625,
-0.025634765625,
0.0333251953125,
0.007297515869140625,
-0.0038814544677734375,
0.016693115234375,
-0.00876617431640625,
0.052703857421875,
-0.025970458984375,
-0.00771331787109375,
-0.02960205078125,
0.06549072265625,
-0.0440673828125,
-0.007598876953125,
0.0093841552734375,
0.0026912689208984375,
-0.019256591796875,
-0.011932373046875,
-0.0804443359375,
-0.007537841796875,
-0.050323486328125,
-0.018280029296875,
-0.0119171142578125,
-0.03399658203125,
-0.005523681640625,
0.0129241943359375,
-0.043426513671875,
-0.034271240234375,
0.0279083251953125,
-0.067138671875,
0.0159912109375,
-0.003704071044921875,
-0.0168304443359375,
-0.0244903564453125,
-0.01183319091796875,
-0.0501708984375,
-0.06658935546875,
0.00531005859375,
-0.051055908203125,
0.04266357421875,
0.01493072509765625,
-0.0276947021484375,
-0.03179931640625,
0.01464080810546875,
0.00753021240234375,
0.0479736328125,
0.00982666015625,
-0.003021240234375,
0.029052734375,
0.0192718505859375,
0.02783203125,
-0.00757598876953125,
0.02362060546875,
0.02215576171875,
-0.03179931640625,
-0.005023956298828125,
-0.034332275390625,
-0.047454833984375,
0.021636962890625,
-0.057098388671875,
0.0060882568359375,
-0.01702880859375,
0.00360107421875,
0.00981903076171875,
-0.00933074951171875,
0.007579803466796875,
-0.0164794921875,
0.015777587890625,
0.01611328125,
-0.034423828125,
-0.0290985107421875,
0.0263214111328125,
0.0538330078125,
0.0211029052734375,
0.017303466796875,
-0.0693359375,
0.004016876220703125,
0.0260162353515625,
0.00872802734375,
0.0592041015625,
0.029205322265625,
-0.00800323486328125,
0.032440185546875,
0.00504302978515625,
-0.0194854736328125,
-0.02862548828125,
0.035797119140625,
-0.0113067626953125,
-0.01544189453125,
0.001575469970703125,
-0.04388427734375,
0.0567626953125,
0.0152435302734375,
-0.0087890625,
-0.0243682861328125,
-0.00582122802734375,
0.04681396484375,
-0.006526947021484375,
0.006946563720703125,
-0.040435791015625,
-0.05621337890625,
0.02337646484375,
0.03338623046875,
0.0080718994140625,
0.017578125,
-0.006618499755859375,
0.046112060546875,
0.0167083740234375,
0.0037078857421875,
0.0213165283203125,
0.057037353515625,
-0.0360107421875,
0.033447265625,
0.0178985595703125,
-0.0240478515625,
-0.0279388427734375,
0.0094757080078125,
0.02618408203125,
-0.041168212890625,
-0.06268310546875,
-0.05322265625,
-0.021820068359375,
0.0328369140625,
0.05224609375,
0.063720703125,
0.007808685302734375,
-0.029388427734375,
-0.03765869140625,
-0.0064544677734375,
0.05950927734375,
-0.0194854736328125,
-0.029266357421875,
-0.0440673828125,
-0.0145721435546875,
-0.01715087890625,
0.038726806640625,
0.033843994140625,
0.0019483566284179688,
0.0310821533203125,
-0.0240478515625,
0.0168914794921875,
0.0296630859375,
0.045684814453125,
0.03961181640625,
-0.0643310546875,
-0.01293182373046875,
0.00778961181640625,
-0.0203857421875,
0.01467132568359375,
0.004108428955078125,
0.01282501220703125,
-0.01451873779296875,
0.01165771484375,
0.0302581787109375,
-0.0027008056640625,
0.0141448974609375,
-0.034912109375,
0.053985595703125,
0.049774169921875,
-0.02532958984375,
-0.0296630859375,
-0.00939178466796875,
0.031982421875,
0.0238189697265625,
0.0031299591064453125,
-0.0118255615234375,
0.01103973388671875,
0.01192474365234375,
-0.041229248046875,
-0.038299560546875,
0.02056884765625,
0.03900146484375,
-0.029327392578125,
-0.029022216796875,
-0.001697540283203125,
-0.037689208984375,
0.0118408203125,
-0.034637451171875,
-0.0225982666015625,
0.028961181640625,
-0.0194091796875,
0.028228759765625,
-0.02923583984375,
-0.0008358955383300781,
0.0027751922607421875,
0.002166748046875,
0.058013916015625,
0.031768798828125,
-0.035797119140625,
-0.03607177734375,
-0.04901123046875,
-0.0435791015625,
-0.07080078125,
-0.0546875,
-0.024627685546875,
0.026763916015625,
0.018035888671875,
0.028961181640625,
-0.012420654296875,
-0.00994110107421875,
0.01103973388671875,
0.0203857421875,
-0.0039520263671875,
0.03765869140625,
-0.0114898681640625,
0.0450439453125,
0.0146942138671875,
0.04913330078125,
0.00884246826171875,
0.01502227783203125,
-0.021881103515625,
-0.01529693603515625,
0.0111846923828125,
-0.01522064208984375,
-0.00678253173828125,
-0.01123809814453125,
0.00835418701171875,
-0.0272979736328125,
-0.00019073486328125,
0.00010716915130615234,
-0.015594482421875,
-0.004985809326171875,
0.00206756591796875,
-0.0251312255859375,
-0.003940582275390625,
0.01165771484375,
-0.006549835205078125,
-0.01800537109375,
-0.03839111328125,
-0.0555419921875,
0.01445770263671875,
-0.0054779052734375,
-0.01186370849609375,
0.0247955322265625,
-0.033905029296875,
0.01148223876953125,
-0.07928466796875,
0.07476806640625,
0.09637451171875,
0.0350341796875,
0.034332275390625,
0.02398681640625,
0.009735107421875,
-0.046142578125,
0.045654296875,
0.015777587890625,
-0.027313232421875,
0.04705810546875,
0.0213775634765625,
0.0022983551025390625,
0.035430908203125,
-0.0177001953125,
0.0184478759765625,
0.031707763671875,
0.0345458984375,
-0.087890625,
0.0266571044921875,
0.007598876953125,
0.00792694091796875,
0.0255279541015625,
-0.0404052734375,
0.0182037353515625,
0.006031036376953125,
0.097412109375,
0.018524169921875,
-0.0083160400390625,
0.053436279296875,
-0.02532958984375,
-0.0167694091796875,
-0.0265655517578125,
0.034637451171875,
0.029052734375,
-0.00719451904296875,
0.01340484619140625,
0.0182342529296875,
-0.01509857177734375,
-0.04632568359375,
0.009490966796875,
-0.00048279762268066406,
-0.0074462890625,
-0.04254150390625,
0.037689208984375,
-0.001453399658203125,
0.0084991455078125,
0.024688720703125,
0.014739990234375,
0.03802490234375,
0.043701171875,
-0.0012874603271484375,
-0.008026123046875,
0.0128021240234375,
-0.0252838134765625,
-0.02838134765625,
-0.001560211181640625,
0.03155517578125,
0.01849365234375,
-0.053955078125,
0.01617431640625,
-0.045989990234375,
-0.001888275146484375,
-0.0115966796875,
-0.0258636474609375,
0.08966064453125,
-0.0249481201171875,
-0.025054931640625,
0.004764556884765625,
-0.01313018798828125,
0.0016870498657226562,
-0.01226043701171875,
0.0262451171875,
-0.02862548828125,
0.02386474609375,
-0.001300811767578125,
0.016632080078125,
-0.01352691650390625,
-0.021484375,
-0.07659912109375,
0.0677490234375,
0.01308441162109375,
0.025604248046875,
-0.03277587890625,
0.015899658203125,
-0.0017642974853515625,
-0.006816864013671875,
-0.03302001953125,
0.032745361328125,
-0.0050811767578125,
0.070556640625,
-0.04022216796875,
-0.00441741943359375,
0.01070404052734375,
0.045196533203125,
0.0227203369140625,
-0.00261688232421875,
0.018890380859375,
0.0184326171875,
0.08197021484375,
0.049468994140625,
0.0180206298828125,
-0.018829345703125,
-0.00664520263671875,
0.0056610107421875,
0.03289794921875,
-0.043487548828125,
0.035858154296875,
-0.038726806640625,
0.0165557861328125,
0.00701141357421875,
0.004058837890625,
0.010894775390625,
-0.045562744140625,
-0.0153961181640625,
0.0199127197265625,
-0.0249481201171875,
-0.019317626953125,
-0.005176544189453125,
0.0016717910766601562,
0.0243682861328125,
0.0001208186149597168,
-0.031768798828125,
-0.005519866943359375,
-0.035064697265625,
0.036285400390625,
-0.03302001953125,
0.058197021484375,
0.04132080078125,
0.0224456787109375,
0.018157958984375,
-0.0277252197265625,
0.0269927978515625,
-0.00487518310546875,
-0.037200927734375,
0.052520751953125,
0.044342041015625,
0.021209716796875,
-0.0272369384765625,
0.0014448165893554688,
0.0031757354736328125,
0.057586669921875,
-0.0491943359375,
-0.06939697265625,
0.008331298828125,
-0.00269317626953125,
0.00283050537109375,
0.02984619140625,
0.00206756591796875,
-0.01361846923828125,
0.04669189453125,
0.007354736328125,
-0.018829345703125,
0.0253448486328125,
0.029632568359375,
0.0264892578125,
-0.00021195411682128906,
-0.029388427734375,
-0.027191162109375,
-0.007434844970703125,
0.00249481201171875,
0.025909423828125,
-0.0018014907836914062,
0.00482177734375,
0.01031494140625,
0.037841796875,
0.0295257568359375,
-0.033477783203125,
0.0367431640625,
0.0237274169921875,
0.04534912109375,
-0.042144775390625,
0.00005453824996948242,
0.040191650390625,
0.035308837890625,
-0.00672149658203125,
0.0194244384765625,
0.01514434814453125,
0.03857421875,
0.0035686492919921875,
-0.00630950927734375,
0.07781982421875,
-0.01137542724609375,
0.0033969879150390625,
-0.0318603515625,
0.0060272216796875,
0.017547607421875,
-0.0240020751953125,
-0.004413604736328125,
0.004093170166015625,
0.035858154296875,
-0.004730224609375,
0.01132965087890625,
0.015899658203125,
0.003925323486328125,
0.0382080078125,
0.010223388671875,
0.0114593505859375,
0.025665283203125,
-0.0435791015625,
-0.01629638671875,
0.004062652587890625,
-0.044342041015625,
0.0275726318359375,
0.051727294921875,
-0.01126861572265625,
-0.005352020263671875,
0.05712890625,
0.0011987686157226562,
0.04766845703125,
-0.0400390625,
0.012237548828125,
0.0252838134765625,
0.03228759765625,
0.0171661376953125,
0.016143798828125,
-0.0078582763671875,
0.01279449462890625,
0.036407470703125,
-0.00040841102600097656,
0.036865234375,
-0.026702880859375,
0.01387786865234375,
-0.0242919921875,
-0.01062774658203125,
0.011688232421875,
-0.01520538330078125,
0.0195465087890625,
0.043304443359375,
-0.006870269775390625,
-0.0294189453125,
-0.061767578125,
0.0401611328125,
0.01116943359375,
0.01389312744140625,
0.031005859375,
-0.01140594482421875,
0.010467529296875,
0.00067901611328125,
-0.005218505859375,
-0.02362060546875,
0.00275421142578125,
0.04901123046875,
0.0133056640625,
0.00858306884765625,
0.005207061767578125,
0.01204681396484375,
0.02130126953125,
-0.0440673828125,
-0.0102386474609375,
-0.032989501953125,
0.01544952392578125,
-0.08416748046875,
0.02825927734375,
-0.0233917236328125,
-0.0416259765625,
-0.0161895751953125,
-0.0130157470703125,
0.0098419189453125,
0.013458251953125,
0.036376953125,
0.0170745849609375,
0.0129852294921875,
0.041900634765625,
0.004405975341796875,
0.0196990966796875,
-0.052001953125,
-0.005901336669921875,
0.03558349609375,
0.02301025390625,
-0.02001953125,
-0.01271820068359375,
-0.019775390625,
-0.04364013671875,
-0.0071868896484375,
0.00946807861328125,
-0.032958984375,
-0.0170135498046875,
-0.019195556640625,
-0.013092041015625,
0.01012420654296875,
-0.022796630859375,
-0.003856658935546875,
-0.01320648193359375,
-0.02740478515625,
0.0242156982421875,
-0.03216552734375,
0.006839752197265625,
0.01425933837890625,
0.06317138671875,
-0.036041259765625,
0.026519775390625,
-0.00030541419982910156,
-0.0308380126953125,
0.0117034912109375,
0.04541015625,
0.07080078125,
-0.05865478515625,
-0.0160369873046875,
0.0123291015625,
0.054534912109375,
0.062042236328125,
0.01302337646484375,
-0.037994384765625,
0.03778076171875,
-0.0260162353515625,
-0.00431060791015625,
-0.045806884765625,
-0.00011146068572998047,
-0.059722900390625,
-0.015380859375,
-0.01558685302734375,
0.01348114013671875,
0.0222320556640625,
-0.02679443359375,
-0.0811767578125,
0.053314208984375,
-0.01097869873046875,
-0.036590576171875,
-0.07794189453125,
0.0217437744140625,
0.031829833984375,
-0.05108642578125,
-0.042510986328125,
-0.0016460418701171875,
-0.063232421875,
0.018646240234375,
0.024322509765625,
-0.0019588470458984375,
0.0310516357421875,
0.032196044921875,
-0.033447265625,
0.0212860107421875,
0.00579833984375,
0.006927490234375,
0.0236053466796875,
-0.004779815673828125,
0.00948333740234375,
0.0273284912109375,
-0.04827880859375,
-0.0276947021484375,
-0.024993896484375,
0.01522064208984375,
0.014617919921875,
-0.046966552734375,
0.02294921875,
0.011566162109375,
0.006988525390625,
-0.00902557373046875,
-0.006256103515625,
-0.036956787109375,
-0.0170440673828125,
-0.0416259765625,
-0.012115478515625,
0.0313720703125,
0.01239776611328125,
-0.027435302734375,
0.037109375,
0.030120849609375,
-0.0254364013671875,
-0.007762908935546875,
0.0028057098388671875,
-0.053466796875,
-0.00836944580078125,
-0.041900634765625,
-0.027618408203125,
-0.01190185546875,
-0.05963134765625,
0.0472412109375,
-0.04168701171875,
-0.031402587890625,
0.04150390625,
0.0225982666015625,
0.003108978271484375,
0.050262451171875,
0.027252197265625,
0.028839111328125,
-0.038543701171875,
-0.007556915283203125,
0.0224609375,
0.05401611328125,
0.00510406494140625,
-0.032867431640625,
0.00909423828125,
0.02703857421875,
-0.0161285400390625,
0.0141143798828125,
-0.044097900390625,
0.040985107421875,
-0.0284271240234375,
0.0919189453125,
0.0293121337890625,
-0.010650634765625,
0.00289154052734375,
0.038818359375,
0.0161590576171875,
-0.039276123046875,
-0.004276275634765625,
-0.031280517578125,
-0.01165771484375,
0.04193115234375,
-0.012786865234375,
-0.041656494140625,
0.01763916015625,
-0.024658203125,
0.0362548828125,
0.003276824951171875
] |
ec55924cf39766970b6a1972f0cc79f41003954f
|
Wordpress Stackexchange
Q: Is it possible to stop selected plugins from loading on certain template pages? I have a template page that has form on that is only used once in my site. The form uses form validation using jquery validate plugin (such a great plugin). Once the cart66 Plugin is loaded, the form validation stops working.
Rather spending ages looking for the conflict, I thought it would be easiest to just turn off the plugin for that template page as cart66 is not need on this page.
Is it possible to stop plugins loading on individual template pages? I am using WordPress 3.2.1
A: Use Plugin Organizer. http://wordpress.org/extend/plugins/plugin-organizer/. It cant disable plugins by template but it can disable them by post, page, custom post_type, or arbitrary URL.
|
Q: Is it possible to stop selected plugins from loading on certain template pages? I have a template page that has form on that is only used once in my site. The form uses form validation using jquery validate plugin (such a great plugin). Once the cart66 Plugin is loaded, the form validation stops working.
Rather spending ages looking for the conflict, I thought it would be easiest to just turn off the plugin for that template page as cart66 is not need on this page.
Is it possible to stop plugins loading on individual template pages? I am using WordPress 3.2.1
A: Use Plugin Organizer. http://wordpress.org/extend/plugins/plugin-organizer/. It cant disable plugins by template but it can disable them by post, page, custom post_type, or arbitrary URL.
A: It sounds like the javascript from cart66 and your form plugin are in conflict. You can 'turn off' javascript per page/ post etc. by using the enqueue script function.
Hopefully both of your plugins are written well and include their javascript with this method.
http://codex.wordpress.org/Function_Reference/wp_enqueue_script
If so, they will have a handle that you can use to deregister (or dequeue) the script.
http://codex.wordpress.org/Function_Reference/wp_deregister_script
You'll need to write a conditional script
<?php if(!is_page('FORM-PAGE-SLUG')){wp_dequeue('form-javascript-handle')}?>
that should be a good starting place.
A: Yes, you can disable specific plugins or scripts form appearing on certain pages.
Check this example how I disabled the easy fancybox plugin from appearing
Hope it helps :)
|
wordpress
|
{
"language": "en",
"length": 236,
"provenance": "stackexchange_00019.jsonl.gz:411857",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24710"
}
|
[
0.05682373046875,
0.028594970703125,
-0.0099334716796875,
-0.06341552734375,
0.0174407958984375,
-0.0177764892578125,
-0.00959014892578125,
-0.0205535888671875,
0.0005254745483398438,
-0.00594329833984375,
-0.0302886962890625,
-0.005382537841796875,
-0.0195465087890625,
-0.03118896484375,
0.00864410400390625,
-0.046783447265625,
0.01232147216796875,
0.0155487060546875,
0.0173187255859375,
-0.01232147216796875,
0.0246429443359375,
-0.00644683837890625,
-0.02801513671875,
0.0740966796875,
-0.0066986083984375,
0.0066070556640625,
0.1033935546875,
-0.00658416748046875,
-0.009521484375,
-0.036468505859375,
0.01468658447265625,
-0.018402099609375,
-0.0011577606201171875,
0.049530029296875,
-0.056365966796875,
-0.041900634765625,
-0.004802703857421875,
0.034515380859375,
0.0015239715576171875,
0.02239990234375,
0.0335693359375,
-0.0233154296875,
-0.0177154541015625,
0.023834228515625,
-0.0189056396484375,
-0.0225830078125,
0.0295867919921875,
-0.043731689453125,
0.01145172119140625,
-0.01422882080078125,
0.018890380859375,
0.00399017333984375,
0.0294952392578125,
0.005573272705078125,
-0.03387451171875,
-0.02972412109375,
-0.0963134765625,
0.07855224609375,
0.0170440673828125,
0.072265625,
0.0236663818359375,
0.019866943359375,
-0.045013427734375,
-0.039093017578125,
-0.0091552734375,
-0.00823974609375,
-0.05560302734375,
0.0105743408203125,
-0.0162811279296875,
0.0294036865234375,
0.042724609375,
-0.045562744140625,
0.01064300537109375,
-0.0157470703125,
-0.046722412109375,
-0.006420135498046875,
0.04638671875,
-0.01383209228515625,
-0.00905609130859375,
-0.012847900390625,
0.057403564453125,
-0.036956787109375,
0.00852203369140625,
0.0139617919921875,
0.0245208740234375,
0.053314208984375,
0.01385498046875,
-0.027130126953125,
0.0015726089477539062,
-0.00934600830078125,
-0.0269775390625,
0.032806396484375,
-0.004032135009765625,
0.019622802734375,
-0.042388916015625,
0.026611328125,
0.04541015625,
0.031280517578125,
0.013397216796875,
-0.01494598388671875,
-0.0033206939697265625,
-0.0565185546875,
0.008575439453125,
-0.01885986328125,
-0.005191802978515625,
0.0836181640625,
0.00959014892578125,
0.0225982666015625,
0.0283966064453125,
-0.00243377685546875,
0.044677734375,
-0.00096893310546875,
-0.0131988525390625,
-0.00951385498046875,
-0.01291656494140625,
0.006610870361328125,
-0.037567138671875,
-0.002635955810546875,
-0.00948333740234375,
-0.005275726318359375,
-0.0167388916015625,
0.0032062530517578125,
0.01529693603515625,
-0.037017822265625,
0.01140594482421875,
-0.0227508544921875,
-0.037506103515625,
-0.0168914794921875,
-0.03680419921875,
-0.01126861572265625,
-0.01110076904296875,
0.009368896484375,
0.0158843994140625,
0.07293701171875,
0.030609130859375,
0.00362396240234375,
-0.029998779296875,
0.004207611083984375,
0.00946044921875,
-0.007106781005859375,
0.0187835693359375,
-0.046600341796875,
0.007122039794921875,
0.0106048583984375,
-0.0196685791015625,
-0.044281005859375,
0.0208740234375,
0.048675537109375,
-0.0207672119140625,
0.00867462158203125,
-0.0188140869140625,
0.04437255859375,
0.0479736328125,
0.0006923675537109375,
0.0034580230712890625,
-0.03143310546875,
0.08526611328125,
-0.046844482421875,
-0.036224365234375,
-0.06610107421875,
-0.0116729736328125,
0.0171966552734375,
0.0211029052734375,
-0.0872802734375,
-0.0855712890625,
-0.032958984375,
-0.018951416015625,
-0.0082550048828125,
0.0190277099609375,
-0.011932373046875,
-0.04296875,
0.0176239013671875,
0.0295562744140625,
0.0237579345703125,
0.00490570068359375,
0.040557861328125,
0.0258941650390625,
0.057159423828125,
0.003875732421875,
0.0162353515625,
-0.0152435302734375,
-0.035064697265625,
0.09796142578125,
-0.0457763671875,
-0.06884765625,
0.0275726318359375,
0.0152435302734375,
0.0204315185546875,
-0.00341796875,
-0.0033245086669921875,
0.0909423828125,
0.03448486328125,
-0.014495849609375,
0.0102996826171875,
0.01087188720703125,
-0.041717529296875,
0.006633758544921875,
0.005710601806640625,
0.0034809112548828125,
-0.00795745849609375,
0.0135345458984375,
0.0089263916015625,
0.00943756103515625,
-0.032012939453125,
-0.07598876953125,
0.003940582275390625,
-0.03173828125,
0.057342529296875,
-0.035430908203125,
0.0207366943359375,
0.034332275390625,
0.00574493408203125,
-0.047027587890625,
0.043701171875,
0.03302001953125,
0.0204925537109375,
-0.0272979736328125,
0.05548095703125,
0.01129913330078125,
0.0267181396484375,
0.040557861328125,
-0.06011962890625,
0.035797119140625,
-0.006000518798828125,
-0.012237548828125,
0.03900146484375,
-0.05126953125,
0.007701873779296875,
-0.047271728515625,
0.0189666748046875,
-0.005184173583984375,
0.034454345703125,
-0.0005216598510742188,
0.04339599609375,
-0.032928466796875,
-0.020599365234375,
-0.0474853515625,
-0.04083251953125,
0.0016202926635742188,
0.04913330078125,
0.0230560302734375,
0.036163330078125,
-0.0235748291015625,
0.0028095245361328125,
-0.00787353515625,
-0.058319091796875,
-0.00490570068359375,
0.0204925537109375,
0.03118896484375,
0.0157470703125,
-0.02313232421875,
-0.0113372802734375,
0.04364013671875,
-0.0024204254150390625,
0.035308837890625,
0.03265380859375,
-0.02398681640625,
-0.03131103515625,
0.03143310546875,
0.005229949951171875,
-0.0017566680908203125,
0.005931854248046875,
0.0019025802612304688,
-0.005252838134765625,
0.027618408203125,
-0.01812744140625,
0.048797607421875,
0.031219482421875,
0.01165771484375,
-0.0258026123046875,
-0.0020847320556640625,
-0.03387451171875,
0.0036773681640625,
0.0021305084228515625,
0.030426025390625,
0.027099609375,
-0.046966552734375,
0.004261016845703125,
0.0233917236328125,
0.0149383544921875,
-0.017303466796875,
-0.03216552734375,
-0.040679931640625,
0.004802703857421875,
-0.002178192138671875,
-0.0880126953125,
0.0243682861328125,
0.06591796875,
-0.0281524658203125,
-0.0122833251953125,
0.005481719970703125,
0.0318603515625,
-0.031829833984375,
0.0257415771484375,
0.032135009765625,
-0.02044677734375,
-0.017608642578125,
-0.024566650390625,
0.022918701171875,
-0.0232696533203125,
0.033599853515625,
0.04571533203125,
-0.0011539459228515625,
0.00812530517578125,
0.01380157470703125,
0.01165771484375,
0.059051513671875,
-0.0274200439453125,
-0.005924224853515625,
0.03387451171875,
-0.0491943359375,
-0.003650665283203125,
0.02398681640625,
0.057342529296875,
0.0226898193359375,
-0.03662109375,
0.03204345703125,
0.037933349609375,
-0.0262451171875,
-0.06463623046875,
-0.0242462158203125,
-0.0032062530517578125,
0.01422119140625,
-0.007106781005859375,
0.0220947265625,
-0.0099945068359375,
0.00037860870361328125,
0.0154571533203125,
-0.0149688720703125,
-0.027679443359375,
-0.034271240234375,
-0.05194091796875,
-0.0450439453125,
0.0036563873291015625,
0.00525665283203125,
-0.01084136962890625,
-0.002147674560546875,
0.0985107421875,
-0.0112457275390625,
-0.096435546875,
-0.047088623046875,
-0.002521514892578125,
-0.022003173828125,
0.012115478515625,
-0.00579833984375,
-0.029144287109375,
0.0391845703125,
0.005588531494140625,
-0.005367279052734375,
0.0155792236328125,
0.0037670135498046875,
-0.0231475830078125,
-0.0128631591796875,
-0.026763916015625,
0.02813720703125,
0.0103912353515625,
-0.0079498291015625,
-0.005462646484375,
0.036956787109375,
-0.026123046875,
-0.059234619140625,
-0.006786346435546875,
-0.0933837890625,
0.0006008148193359375,
0.0772705078125,
-0.006107330322265625,
0.01372528076171875,
-0.0443115234375,
0.0247650146484375,
0.03643798828125,
0.001056671142578125,
-0.0161590576171875,
0.04278564453125,
-0.0014095306396484375,
0.01519775390625,
-0.021881103515625,
0.052703857421875,
-0.01302337646484375,
-0.028839111328125,
0.00867462158203125,
-0.00986480712890625,
-0.0182342529296875,
-0.021575927734375,
-0.0268707275390625,
-0.03778076171875,
0.0281829833984375,
-0.04547119140625,
0.0034465789794921875,
-0.0284271240234375,
0.005397796630859375,
0.0100555419921875,
0.06988525390625,
-0.0115509033203125,
-0.0200042724609375,
-0.01172637939453125,
0.00272369384765625,
0.0159912109375,
-0.014556884765625,
-0.0229949951171875,
-0.0308074951171875,
-0.031829833984375,
-0.01192474365234375,
-0.006122589111328125,
-0.0263519287109375,
-0.0033779144287109375,
0.0023250579833984375,
-0.01070404052734375,
-0.0313720703125,
0.023956298828125,
-0.04388427734375,
-0.0011272430419921875,
-0.006793975830078125,
-0.02191162109375,
-0.0204315185546875,
0.00109100341796875,
-0.030426025390625,
-0.07354736328125,
-0.01812744140625,
-0.0148773193359375,
0.051544189453125,
0.016632080078125,
-0.034393310546875,
-0.02130126953125,
0.02105712890625,
0.00705718994140625,
0.04681396484375,
-0.018402099609375,
-0.0006833076477050781,
-0.0009813308715820312,
0.00418853759765625,
0.018218994140625,
-0.00505828857421875,
0.01324462890625,
0.01287841796875,
-0.035430908203125,
-0.025421142578125,
-0.0295257568359375,
-0.051177978515625,
0.00980377197265625,
-0.045745849609375,
-0.004329681396484375,
-0.034088134765625,
-0.02728271484375,
-0.017791748046875,
-0.005092620849609375,
-0.01568603515625,
-0.0184478759765625,
-0.0032215118408203125,
0.046112060546875,
-0.0167236328125,
0.01096343994140625,
0.00036835670471191406,
0.067626953125,
0.0133209228515625,
-0.01776123046875,
-0.02191162109375,
0.0037021636962890625,
0.0162200927734375,
0.01305389404296875,
0.032379150390625,
-0.01013946533203125,
-0.00769805908203125,
0.031524658203125,
-0.023040771484375,
-0.0114593505859375,
-0.04266357421875,
0.08349609375,
-0.003986358642578125,
-0.0289154052734375,
0.02099609375,
-0.0299072265625,
0.0260162353515625,
0.018646240234375,
-0.001102447509765625,
0.006015777587890625,
0.00307464599609375,
-0.00572967529296875,
0.00533294677734375,
-0.00856781005859375,
-0.0032215118408203125,
-0.010406494140625,
0.002628326416015625,
0.032012939453125,
0.035980224609375,
0.0153961181640625,
0.00862884521484375,
0.027191162109375,
0.0158843994140625,
-0.021026611328125,
0.0249481201171875,
0.044281005859375,
0.01519012451171875,
0.01531219482421875,
0.056915283203125,
-0.0128326416015625,
-0.02117919921875,
-0.0009140968322753906,
0.0112762451171875,
-0.0279693603515625,
-0.050384521484375,
-0.033477783203125,
-0.00948333740234375,
-0.01412200927734375,
0.027099609375,
0.0084228515625,
0.03564453125,
-0.0345458984375,
0.0011987686157226562,
-0.02496337890625,
-0.0233001708984375,
-0.0157470703125,
-0.03863525390625,
-0.04913330078125,
0.003047943115234375,
-0.036529541015625,
-0.035552978515625,
0.030914306640625,
0.0142669677734375,
-0.0201263427734375,
-0.0080413818359375,
0.0211181640625,
-0.0186767578125,
0.0110931396484375,
0.0308685302734375,
0.006916046142578125,
0.0015583038330078125,
-0.0252685546875,
-0.0014781951904296875,
-0.0416259765625,
-0.01018524169921875,
-0.0118865966796875,
0.0159149169921875,
-0.0146636962890625,
-0.00772857666015625,
0.0513916015625,
0.01543426513671875,
-0.0138397216796875,
0.054595947265625,
-0.0177001953125,
-0.06927490234375,
-0.02789306640625,
0.0141143798828125,
0.039794921875,
-0.0225067138671875,
0.00843048095703125,
0.0068817138671875,
-0.01519012451171875,
-0.051116943359375,
0.0748291015625,
-0.09893798828125,
-0.00801849365234375,
0.0125274658203125,
-0.012542724609375,
-0.0266265869140625,
0.003917694091796875,
-0.0384521484375,
-0.00433349609375,
-0.01506805419921875,
0.00133514404296875,
0.006244659423828125,
-0.029815673828125,
0.036468505859375,
-0.037567138671875,
0.0015668869018554688,
-0.008148193359375,
0.036895751953125,
-0.0218505859375,
-0.0193328857421875,
-0.050262451171875,
-0.01971435546875,
-0.08416748046875,
-0.052703857421875,
-0.10479736328125,
-0.02850341796875,
-0.0640869140625,
0.045318603515625,
0.002349853515625,
0.036651611328125,
-0.032440185546875,
-0.007259368896484375,
0.01318359375,
0.0003025531768798828,
-0.0100250244140625,
0.053009033203125,
-0.008331298828125,
0.058502197265625,
-0.002689361572265625,
0.03948974609375,
0.017791748046875,
0.022613525390625,
-0.0162353515625,
-0.020355224609375,
-0.014556884765625,
-0.046783447265625,
-0.0195770263671875,
0.040802001953125,
-0.08416748046875,
0.044891357421875,
0.08392333984375,
0.006275177001953125,
-0.0133209228515625,
-0.03533935546875,
0.008636474609375,
-0.029144287109375,
0.0584716796875,
-0.0355224609375,
-0.034393310546875,
-0.01493072509765625,
-0.020355224609375,
-0.0080718994140625,
-0.01171875,
-0.0203704833984375,
0.02825927734375,
0.0024242401123046875,
0.0169677734375,
0.0059967041015625,
0.0169525146484375,
0.017242431640625,
0.00030541419982910156,
-0.0013570785522460938,
0.0279998779296875,
0.01229095458984375,
0.02032470703125,
-0.0208587646484375,
0.031768798828125,
0.01335906982421875,
-0.042266845703125,
0.06268310546875,
0.0224456787109375,
-0.0135955810546875,
0.04766845703125,
-0.01800537109375,
0.0100555419921875,
0.060760498046875,
0.029327392578125,
-0.08935546875,
0.0010509490966796875,
-0.029693603515625,
-0.006160736083984375,
0.01947021484375,
-0.040740966796875,
0.0224761962890625,
-0.0157623291015625,
0.0250244140625,
0.063232421875,
-0.01861572265625,
-0.0005965232849121094,
-0.0003216266632080078,
-0.0172119140625,
-0.0009083747863769531,
0.050323486328125,
0.026947021484375,
-0.0390625,
0.01038360595703125,
0.0225677490234375,
-0.01035308837890625,
-0.0465087890625,
-0.00545501708984375,
0.014801025390625,
-0.015899658203125,
-0.043670654296875,
0.03619384765625,
-0.01183319091796875,
0.0191497802734375,
0.0074920654296875,
0.01861572265625,
0.03271484375,
0.0491943359375,
-0.01412200927734375,
0.0115509033203125,
0.018707275390625,
-0.0036525726318359375,
0.00812530517578125,
-0.01427459716796875,
-0.01129913330078125,
0.021209716796875,
-0.02471923828125,
0.01070404052734375,
0.0064239501953125,
-0.01025390625,
-0.01261138916015625,
0.01194000244140625,
0.0748291015625,
0.03155517578125,
-0.0572509765625,
0.0302276611328125,
0.00826263427734375,
-0.041351318359375,
-0.013671875,
-0.01666259765625,
-0.001239776611328125,
0.0367431640625,
-0.0233154296875,
-0.0166778564453125,
-0.0238800048828125,
-0.05609130859375,
-0.10833740234375,
0.0926513671875,
0.059356689453125,
0.06341552734375,
-0.0106353759765625,
0.028961181640625,
-0.05450439453125,
-0.0137939453125,
-0.0304107666015625,
0.044219970703125,
0.0269012451171875,
0.01514434814453125,
-0.00370025634765625,
0.00638580322265625,
-0.00670623779296875,
0.0064239501953125,
-0.018951416015625,
-0.00742340087890625,
0.00684356689453125,
-0.0107574462890625,
0.044036865234375,
0.040679931640625,
0.01137542724609375,
0.006252288818359375,
0.01264190673828125,
-0.009765625,
-0.0019474029541015625,
-0.007526397705078125,
0.032012939453125,
-0.0623779296875,
0.0007233619689941406,
0.035980224609375,
0.00640869140625,
0.006305694580078125,
-0.018035888671875,
0.00904083251953125,
-0.03948974609375,
-0.01434326171875,
0.029296875,
0.01171875,
0.0106048583984375,
0.032806396484375,
0.0374755859375,
0.0197601318359375,
-0.0280303955078125,
-0.0009250640869140625,
0.031494140625,
0.0251312255859375,
0.0007300376892089844,
-0.0257720947265625,
-0.00008100271224975586,
0.044952392578125,
-0.03302001953125,
-0.01519012451171875,
0.0226287841796875,
-0.02532958984375,
0.003658294677734375,
-0.028564453125,
0.0209197998046875,
-0.043670654296875,
0.0011377334594726562,
-0.0107269287109375,
-0.01078033447265625,
-0.01186370849609375,
-0.0264739990234375,
0.0160980224609375,
0.023590087890625,
-0.026153564453125,
-0.0202789306640625,
-0.025787353515625,
-0.04351806640625,
0.01654052734375,
-0.026641845703125,
-0.0224609375,
-0.007671356201171875,
0.0301361083984375,
-0.0222625732421875,
-0.0250396728515625,
0.006664276123046875,
-0.0213165283203125,
-0.004367828369140625,
-0.01534271240234375,
-0.007312774658203125,
0.01178741455078125,
0.004528045654296875,
0.022491455078125,
-0.005290985107421875,
0.00860595703125,
-0.020599365234375,
0.018646240234375,
-0.039764404296875,
0.0322265625,
-0.0452880859375,
-0.014373779296875,
-0.045379638671875,
0.042510986328125,
0.01319122314453125,
0.04156494140625,
0.07965087890625,
0.072265625,
-0.0254669189453125,
-0.003749847412109375,
0.0797119140625,
-0.0023784637451171875,
-0.01152801513671875,
-0.023590087890625,
0.0051727294921875,
0.032257080078125,
-0.01338958740234375,
0.0025787353515625,
-0.002391815185546875,
0.047607421875,
-0.03277587890625,
0.0023250579833984375,
0.00308990478515625,
-0.04290771484375,
0.006168365478515625,
-0.023895263671875,
0.035369873046875,
0.0005698204040527344,
-0.09307861328125,
-0.02825927734375,
-0.0262908935546875,
0.0247802734375,
-0.0045623779296875,
0.01354217529296875,
-0.0265655517578125,
0.05419921875,
0.0469970703125,
-0.011383056640625,
-0.00848388671875,
-0.0115814208984375,
0.0287628173828125,
-0.0270233154296875,
-0.003444671630859375,
0.0056610107421875,
-0.052581787109375,
0.004817962646484375,
-0.0184478759765625,
-0.01367950439453125,
0.004322052001953125,
0.0743408203125,
0.011688232421875,
-0.004085540771484375,
0.01904296875,
-0.0188446044921875,
0.0271148681640625,
-0.005031585693359375,
-0.0081787109375,
-0.0060577392578125,
-0.01503753662109375,
-0.01262664794921875,
-0.028961181640625,
0.035400390625,
-0.0009608268737792969,
-0.0218353271484375,
0.0264892578125,
-0.031982421875,
-0.00556182861328125,
0.006183624267578125,
0.0241241455078125,
-0.0203704833984375,
-0.0406494140625,
-0.050262451171875,
-0.0079803466796875,
0.0240936279296875,
0.028350830078125,
-0.0263671875,
0.018524169921875,
-0.043243408203125,
-0.04534912109375,
0.0006265640258789062,
-0.028289794921875,
-0.032562255859375,
0.01343536376953125,
0.00875091552734375,
-0.0306549072265625,
0.0435791015625,
-0.00867462158203125,
0.033294677734375,
0.01227569580078125,
0.06024169921875,
0.0313720703125,
-0.055145263671875,
0.01406097412109375,
0.0019321441650390625,
0.01091766357421875,
-0.034393310546875,
0.0022640228271484375,
0.0194244384765625,
0.0030040740966796875,
-0.0103302001953125,
-0.037872314453125,
-0.0242919921875,
-0.041015625,
0.00244903564453125,
0.02313232421875,
-0.02069091796875,
-0.0012903213500976562,
-0.015472412109375,
0.009185791015625,
0.001911163330078125,
0.004436492919921875,
-0.07373046875,
0.0269927978515625,
-0.0203704833984375,
0.044097900390625,
-0.021881103515625,
0.0253753662109375,
-0.00493621826171875,
-0.007083892822265625,
-0.07037353515625,
0.006320953369140625,
-0.02471923828125,
-0.0036792755126953125,
0.0013036727905273438,
0.0126495361328125,
0.03973388671875,
-0.01555633544921875,
-0.0233001708984375,
0.006175994873046875,
0.007656097412109375,
0.06689453125,
-0.01131439208984375,
0.0013751983642578125,
0.07183837890625,
-0.0255279541015625,
-0.0234832763671875,
-0.060577392578125,
-0.023773193359375,
-0.0185546875,
0.0255584716796875,
-0.042327880859375,
-0.01110076904296875,
-0.025177001953125,
-0.061920166015625,
-0.060150146484375,
0.0677490234375,
-0.004138946533203125,
-0.0196075439453125,
-0.042510986328125,
0.020477294921875,
0.006702423095703125,
0.001895904541015625,
-0.00476837158203125,
-0.0380859375,
-0.005359649658203125,
0.051116943359375,
0.01418304443359375,
-0.007053375244140625,
0.061676025390625,
0.0081024169921875,
0.0148468017578125,
0.0310821533203125,
0.031829833984375,
-0.0026702880859375,
-0.008880615234375,
-0.0177154541015625,
0.041595458984375,
0.0290985107421875,
-0.046112060546875,
0.02301025390625,
0.01324462890625,
0.038238525390625,
-0.0011625289916992188,
-0.004405975341796875,
-0.00632476806640625,
-0.0015230178833007812,
0.033599853515625,
0.0506591796875,
0.0101470947265625,
-0.032379150390625,
0.0181121826171875,
0.00008493661880493164,
-0.00641632080078125,
-0.007511138916015625,
0.0184326171875,
-0.060302734375,
-0.0294342041015625,
0.00937652587890625,
-0.01555633544921875,
0.0282745361328125,
-0.003902435302734375,
-0.0272674560546875,
0.00038743019104003906,
-0.0181121826171875,
-0.0357666015625,
-0.042236328125,
0.047271728515625,
-0.0023746490478515625,
-0.00814056396484375,
0.0098724365234375,
-0.024749755859375,
-0.0008645057678222656,
-0.0046234130859375,
-0.0216217041015625,
0.034515380859375,
0.03546142578125,
-0.052459716796875,
0.0174713134765625,
0.003658294677734375,
0.038665771484375,
-0.04083251953125,
-0.02203369140625,
-0.02642822265625,
0.02801513671875,
0.0030155181884765625,
0.0228118896484375,
-0.01363372802734375,
0.045135498046875,
0.031982421875,
0.035247802734375,
0.01512908935546875,
-0.036773681640625,
-0.004512786865234375,
0.0138092041015625,
0.0104217529296875,
-0.02294921875,
0.030792236328125,
-0.0283355712890625,
0.005138397216796875,
0.0278778076171875,
-0.0207672119140625,
-0.0176849365234375,
0.0192413330078125,
-0.0478515625,
0.004833221435546875,
-0.010101318359375
] |
5da81b92d9d1e2cc062376885a648080332a2aeb
|
Wordpress Stackexchange
Q: Test if post has a category I need to display some HTML only if the post being displayed has a category - not a specific category, just any category at all.
I tried if (!is_empty(get_the_category($post->ID))), but for some reason this isn't working. Has anone else had the same issue?
A: Use has_category instead.
if (has_category('',$post->ID)) ...
If you want to use it in The Loop, you don't need to specify the ID.
if (has_category()) ...
|
Q: Test if post has a category I need to display some HTML only if the post being displayed has a category - not a specific category, just any category at all.
I tried if (!is_empty(get_the_category($post->ID))), but for some reason this isn't working. Has anone else had the same issue?
A: Use has_category instead.
if (has_category('',$post->ID)) ...
If you want to use it in The Loop, you don't need to specify the ID.
if (has_category()) ...
|
wordpress
|
{
"language": "en",
"length": 76,
"provenance": "stackexchange_00019.jsonl.gz:411858",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24711"
}
|
[
0.032958984375,
0.01026153564453125,
-0.03192138671875,
-0.03778076171875,
0.0362548828125,
-0.0272979736328125,
0.0225067138671875,
-0.024017333984375,
0.0109100341796875,
-0.01139068603515625,
-0.059814453125,
-0.0220947265625,
-0.01110076904296875,
-0.03582763671875,
0.0003075599670410156,
-0.05084228515625,
0.03448486328125,
-0.010498046875,
0.044342041015625,
-0.00930023193359375,
0.017730712890625,
0.006267547607421875,
0.054595947265625,
0.0167999267578125,
0.02313232421875,
-0.03875732421875,
0.0546875,
-0.047149658203125,
-0.002681732177734375,
-0.048919677734375,
0.025146484375,
0.0296630859375,
-0.004852294921875,
0.021270751953125,
0.0018825531005859375,
0.03790283203125,
-0.0244598388671875,
0.02679443359375,
0.034454345703125,
0.00699615478515625,
0.023651123046875,
-0.014312744140625,
0.0304412841796875,
-0.01715087890625,
0.013641357421875,
-0.01128387451171875,
0.01416015625,
-0.062255859375,
0.0088348388671875,
-0.056396484375,
0.035888671875,
0.0151824951171875,
0.051971435546875,
-0.034698486328125,
-0.03173828125,
0.01373291015625,
-0.01995849609375,
0.0166778564453125,
0.0650634765625,
-0.026123046875,
-0.057342529296875,
-0.05145263671875,
0.03375244140625,
-0.042633056640625,
0.00878143310546875,
0.00913238525390625,
0.0037689208984375,
0.02349853515625,
-0.0260772705078125,
0.00397491455078125,
0.027862548828125,
-0.0347900390625,
-0.0047454833984375,
0.0013141632080078125,
-0.03643798828125,
-0.046661376953125,
0.02252197265625,
-0.050079345703125,
0.0055389404296875,
0.00768280029296875,
-0.0498046875,
-0.02532958984375,
-0.0288543701171875,
-0.01459503173828125,
-0.0015649795532226562,
0.007213592529296875,
-0.0237884521484375,
0.00472259521484375,
-0.025177001953125,
-0.057769775390625,
-0.0133819580078125,
0.01149749755859375,
-0.05474853515625,
-0.0199432373046875,
-0.01071929931640625,
-0.053924560546875,
0.057586669921875,
0.06732177734375,
-0.0305938720703125,
-0.0189056396484375,
-0.005619049072265625,
-0.0396728515625,
-0.012451171875,
-0.0233154296875,
0.027587890625,
0.046234130859375,
-0.0038471221923828125,
-0.004840850830078125,
0.053558349609375,
0.01393890380859375,
0.0148162841796875,
0.0682373046875,
-0.0211181640625,
0.0038166046142578125,
-0.0203704833984375,
0.0242767333984375,
-0.043060302734375,
-0.002696990966796875,
-0.035400390625,
0.0236663818359375,
0.014068603515625,
0.0330810546875,
0.0321044921875,
-0.0178070068359375,
-0.003582000732421875,
0.0251922607421875,
-0.01739501953125,
-0.0640869140625,
0.04534912109375,
-0.0196075439453125,
-0.037445068359375,
0.0269317626953125,
0.053009033203125,
0.010955810546875,
0.005741119384765625,
-0.01241302490234375,
-0.0182342529296875,
-0.020416259765625,
-0.007511138916015625,
0.0095977783203125,
-0.0144195556640625,
-0.034149169921875,
0.0171661376953125,
-0.032928466796875,
-0.0017728805541992188,
0.0394287109375,
0.01110076904296875,
-0.0175628662109375,
-0.006649017333984375,
-0.07720947265625,
0.053955078125,
-0.07293701171875,
0.01373291015625,
0.00978851318359375,
0.024017333984375,
0.005382537841796875,
0.0306854248046875,
-0.019866943359375,
-0.035736083984375,
-0.0167083740234375,
0.041107177734375,
0.00849151611328125,
0.0180816650390625,
-0.0114593505859375,
-0.043548583984375,
-0.00475311279296875,
-0.054168701171875,
-0.0175933837890625,
0.03033447265625,
0.048187255859375,
0.018310546875,
0.01538848876953125,
0.05120849609375,
0.020904541015625,
-0.000843048095703125,
0.0019989013671875,
-0.005859375,
-0.0399169921875,
0.042388916015625,
0.036590576171875,
-0.026885986328125,
-0.016754150390625,
0.0283966064453125,
-0.005817413330078125,
-0.04864501953125,
0.03289794921875,
0.0158843994140625,
0.063720703125,
0.00746917724609375,
0.0172882080078125,
0.02880859375,
0.0057525634765625,
-0.046051025390625,
-0.01119232177734375,
0.03424072265625,
-0.005062103271484375,
-0.00720977783203125,
-0.0195465087890625,
0.027191162109375,
-0.0172271728515625,
0.0623779296875,
-0.014434814453125,
-0.0246734619140625,
-0.00372314453125,
-0.052886962890625,
-0.0296783447265625,
-0.00038504600524902344,
0.004718780517578125,
-0.00548553466796875,
0.0222320556640625,
0.0018339157104492188,
-0.00970458984375,
-0.00377655029296875,
-0.047882080078125,
-0.0210418701171875,
0.0157623291015625,
-0.012725830078125,
-0.0261688232421875,
-0.024749755859375,
-0.01125335693359375,
-0.038482666015625,
0.0231781005859375,
-0.046630859375,
0.0399169921875,
0.052581787109375,
0.0231170654296875,
-0.01239776611328125,
-0.0163421630859375,
0.0194549560546875,
0.04486083984375,
-0.0723876953125,
-0.0148468017578125,
0.0770263671875,
0.059295654296875,
-0.043548583984375,
-0.0014142990112304688,
0.01093292236328125,
-0.044921875,
-0.006679534912109375,
0.057708740234375,
0.0305328369140625,
0.016937255859375,
-0.027374267578125,
-0.023956298828125,
0.050750732421875,
-0.0379638671875,
-0.002750396728515625,
-0.01332855224609375,
-0.00766754150390625,
0.0287628173828125,
0.0288848876953125,
0.019439697265625,
0.0166015625,
0.0087890625,
-0.0170135498046875,
0.0416259765625,
0.012542724609375,
-0.00432586669921875,
-0.004608154296875,
0.007366180419921875,
0.0047760009765625,
0.0225830078125,
-0.0267181396484375,
0.012115478515625,
0.0280303955078125,
0.01348114013671875,
0.0352783203125,
0.0205535888671875,
-0.0211639404296875,
0.017242431640625,
-0.003322601318359375,
-0.0224609375,
-0.0017337799072265625,
0.06402587890625,
0.0258026123046875,
0.04620361328125,
-0.040008544921875,
-0.0292205810546875,
0.0277099609375,
0.051666259765625,
-0.0205535888671875,
0.03741455078125,
0.01535797119140625,
-0.0200042724609375,
-0.0296478271484375,
-0.06787109375,
0.004039764404296875,
-0.0241241455078125,
-0.0180816650390625,
-0.005115509033203125,
0.0341796875,
0.0173187255859375,
-0.007678985595703125,
0.02435302734375,
-0.024169921875,
-0.00457763671875,
-0.009490966796875,
-0.047454833984375,
0.04278564453125,
-0.04193115234375,
0.01470947265625,
0.05828857421875,
-0.0034580230712890625,
0.0182342529296875,
0.01560211181640625,
0.01666259765625,
0.00786590576171875,
0.03948974609375,
0.01264190673828125,
0.0112152099609375,
-0.049468994140625,
0.00818634033203125,
0.03466796875,
0.05657958984375,
0.0044097900390625,
-0.039886474609375,
0.0175628662109375,
0.019775390625,
-0.0537109375,
-0.0826416015625,
0.01528167724609375,
-0.0175933837890625,
0.00026726722717285156,
0.0143890380859375,
0.005794525146484375,
-0.0209808349609375,
0.0110626220703125,
-0.004261016845703125,
-0.00872802734375,
-0.0153656005859375,
-0.07647705078125,
-0.07421875,
-0.0848388671875,
-0.014373779296875,
-0.0169219970703125,
0.00399017333984375,
-0.0030040740966796875,
0.08160400390625,
0.0035343170166015625,
-0.0787353515625,
-0.0225372314453125,
0.020751953125,
-0.02099609375,
0.0199737548828125,
-0.0017681121826171875,
-0.006160736083984375,
-0.017120361328125,
0.004947662353515625,
0.00397491455078125,
-0.0082550048828125,
0.0027942657470703125,
-0.00432586669921875,
-0.0236663818359375,
0.007236480712890625,
0.018951416015625,
0.00357818603515625,
0.01398468017578125,
0.048126220703125,
0.0283203125,
0.001949310302734375,
-0.01183319091796875,
-0.01617431640625,
-0.039520263671875,
0.004550933837890625,
0.01253509521484375,
0.002040863037109375,
-0.00814056396484375,
-0.0159759521484375,
-0.00597381591796875,
-0.002071380615234375,
-0.005832672119140625,
-0.027069091796875,
0.038909912109375,
-0.00370025634765625,
0.0243682861328125,
0.0123138427734375,
-0.0496826171875,
-0.04803466796875,
0.0010576248168945312,
-0.05572509765625,
0.0009984970092773438,
-0.010833740234375,
0.0173187255859375,
0.004528045654296875,
-0.043701171875,
0.03070068359375,
-0.003620147705078125,
0.0171356201171875,
-0.0280609130859375,
-0.033721923828125,
-0.00856781005859375,
0.072021484375,
0.0132293701171875,
-0.029571533203125,
-0.0271759033203125,
-0.00617218017578125,
-0.02789306640625,
-0.0171661376953125,
-0.0228271484375,
-0.0016698837280273438,
-0.01474761962890625,
-0.01308441162109375,
-0.006381988525390625,
-0.0215606689453125,
-0.034454345703125,
0.03302001953125,
-0.033599853515625,
-0.0055084228515625,
0.0343017578125,
-0.035308837890625,
0.024993896484375,
-0.0222015380859375,
0.01415252685546875,
-0.0294036865234375,
-0.022369384765625,
-0.02508544921875,
-0.02728271484375,
0.01227569580078125,
-0.0016918182373046875,
-0.032135009765625,
-0.0155029296875,
0.026611328125,
0.01654052734375,
0.0174102783203125,
0.021759033203125,
-0.01213836669921875,
0.02197265625,
0.005504608154296875,
-0.007904052734375,
-0.00936126708984375,
0.00811004638671875,
-0.0274200439453125,
-0.00872039794921875,
-0.0205841064453125,
0.021148681640625,
0.042388916015625,
-0.047088623046875,
-0.0022373199462890625,
-0.05560302734375,
0.007080078125,
-0.017578125,
-0.00482177734375,
-0.0009331703186035156,
0.012054443359375,
-0.0087890625,
0.0009598731994628906,
-0.01158905029296875,
-0.0172882080078125,
0.0305023193359375,
0.03277587890625,
-0.0181121826171875,
0.00023889541625976562,
0.042266845703125,
0.0174560546875,
-0.035980224609375,
-0.046661376953125,
0.0132598876953125,
0.040863037109375,
-0.006114959716796875,
0.0643310546875,
0.015350341796875,
-0.040557861328125,
0.09136962890625,
0.0167694091796875,
-0.01203155517578125,
-0.0168609619140625,
0.08465576171875,
-0.0113983154296875,
-0.01107025146484375,
0.01291656494140625,
-0.0199737548828125,
0.01116180419921875,
0.05670166015625,
0.00666046142578125,
-0.00804901123046875,
0.008331298828125,
0.01461029052734375,
-0.0237579345703125,
-0.00702667236328125,
-0.008331298828125,
0.0101318359375,
-0.0103759765625,
0.033416748046875,
0.058807373046875,
0.059844970703125,
-0.0025310516357421875,
0.01605224609375,
0.030303955078125,
-0.01198577880859375,
-0.01187896728515625,
0.022064208984375,
-0.0161895751953125,
0.0249176025390625,
-0.0083465576171875,
-0.0156402587890625,
-0.03240966796875,
0.00494384765625,
0.0172271728515625,
-0.01206207275390625,
-0.053924560546875,
-0.0290069580078125,
-0.0015926361083984375,
0.042327880859375,
0.040191650390625,
-0.00435638427734375,
0.02508544921875,
-0.005176544189453125,
-0.0184478759765625,
0.014312744140625,
-0.020477294921875,
-0.0281219482421875,
-0.0303955078125,
-0.0291900634765625,
0.0261383056640625,
-0.04443359375,
0.03729248046875,
-0.0174102783203125,
0.021484375,
0.0024433135986328125,
-0.0082855224609375,
0.026641845703125,
0.00826263427734375,
0.04022216796875,
0.03179931640625,
-0.038360595703125,
-0.0157318115234375,
-0.00440216064453125,
-0.0195159912109375,
-0.060302734375,
-0.043792724609375,
0.01351165771484375,
0.061614990234375,
-0.04388427734375,
-0.024322509765625,
0.04718017578125,
0.0169525146484375,
-0.0235443115234375,
0.03515625,
0.0029468536376953125,
-0.0285491943359375,
-0.02923583984375,
-0.00878143310546875,
0.0136566162109375,
0.006504058837890625,
-0.0183563232421875,
0.0121307373046875,
-0.0209808349609375,
0.0164337158203125,
0.034698486328125,
-0.042572021484375,
0.0169219970703125,
0.02392578125,
-0.0550537109375,
-0.040252685546875,
0.01076507568359375,
0.02734375,
0.0288543701171875,
-0.0281219482421875,
-0.047027587890625,
0.0296478271484375,
0.0063629150390625,
0.0343017578125,
-0.0215606689453125,
-0.040618896484375,
0.0030994415283203125,
0.0014476776123046875,
0.0487060546875,
0.02227783203125,
-0.07196044921875,
0.0118560791015625,
-0.0819091796875,
-0.00632476806640625,
-0.03533935546875,
-0.06414794921875,
-0.052001953125,
-0.009521484375,
0.0186004638671875,
0.0254669189453125,
-0.0018520355224609375,
-0.024749755859375,
-0.05224609375,
0.020660400390625,
0.050506591796875,
0.0574951171875,
-0.010772705078125,
0.025238037109375,
0.01345062255859375,
0.028228759765625,
0.00911712646484375,
0.0103759765625,
0.006195068359375,
-0.0212554931640625,
-0.002216339111328125,
-0.03851318359375,
-0.0062255859375,
0.022979736328125,
-0.0124969482421875,
-0.029754638671875,
-0.01904296875,
0.005645751953125,
-0.02435302734375,
-0.01303863525390625,
-0.001834869384765625,
-0.00958251953125,
0.021942138671875,
0.0201416015625,
-0.01119232177734375,
0.0295562744140625,
-0.01036834716796875,
-0.003856658935546875,
0.0021648406982421875,
0.00020575523376464844,
0.014404296875,
-0.01556396484375,
0.012237548828125,
0.006134033203125,
-0.0290374755859375,
0.04913330078125,
0.04376220703125,
0.00567626953125,
0.03216552734375,
0.02001953125,
0.024932861328125,
-0.003108978271484375,
-0.00537872314453125,
0.01198577880859375,
-0.0178985595703125,
0.047332763671875,
0.0072021484375,
0.004840850830078125,
0.0504150390625,
-0.0267181396484375,
-0.0185546875,
0.06591796875,
0.050445556640625,
-0.054473876953125,
-0.020416259765625,
0.0279083251953125,
-0.01128387451171875,
-0.027435302734375,
-0.0178985595703125,
-0.0105743408203125,
-0.0174560546875,
0.0258026123046875,
-0.0112457275390625,
-0.0338134765625,
0.004222869873046875,
-0.0123748779296875,
0.0051727294921875,
-0.0191802978515625,
0.0684814453125,
0.037139892578125,
-0.07281494140625,
0.03167724609375,
0.0594482421875,
0.004764556884765625,
-0.04058837890625,
0.004375457763671875,
0.004917144775390625,
-0.022003173828125,
-0.0714111328125,
0.0289306640625,
0.0086212158203125,
0.001983642578125,
0.023101806640625,
0.004878997802734375,
-0.01329803466796875,
0.024749755859375,
-0.008087158203125,
0.004299163818359375,
-0.005336761474609375,
-0.0595703125,
-0.0079498291015625,
-0.0039005279541015625,
0.0239105224609375,
0.07305908203125,
-0.043670654296875,
0.02569580078125,
0.0020809173583984375,
0.005451202392578125,
-0.017730712890625,
-0.055877685546875,
0.0743408203125,
-0.0274658203125,
-0.0163726806640625,
-0.00403594970703125,
0.036285400390625,
0.00415802001953125,
-0.00768280029296875,
0.02227783203125,
0.0246429443359375,
0.054229736328125,
-0.00980377197265625,
0.0269317626953125,
-0.007671356201171875,
-0.028594970703125,
-0.07623291015625,
0.039154052734375,
-0.006153106689453125,
0.053558349609375,
-0.0064849853515625,
0.0004546642303466797,
0.003963470458984375,
-0.0130462646484375,
-0.0419921875,
0.05181884765625,
0.0194091796875,
0.0019130706787109375,
-0.060821533203125,
-0.0092620849609375,
-0.0256500244140625,
0.024078369140625,
0.0009589195251464844,
-0.013763427734375,
0.0184783935546875,
0.01090240478515625,
0.032928466796875,
0.03887939453125,
0.00356292724609375,
-0.01302337646484375,
-0.022979736328125,
0.01274871826171875,
0.0172119140625,
-0.03936767578125,
0.0309906005859375,
-0.0148468017578125,
-0.0318603515625,
-0.006805419921875,
0.0200042724609375,
0.032958984375,
-0.01343536376953125,
-0.0163726806640625,
-0.010894775390625,
-0.006427764892578125,
0.01093292236328125,
-0.0138092041015625,
0.008087158203125,
0.048980712890625,
0.055511474609375,
-0.09820556640625,
-0.01198577880859375,
-0.04180908203125,
0.06634521484375,
-0.00801849365234375,
0.0252838134765625,
0.03472900390625,
0.00789642333984375,
0.07769775390625,
0.0011034011840820312,
0.02142333984375,
0.020843505859375,
-0.00814056396484375,
0.049896240234375,
0.054107666015625,
0.0303802490234375,
0.0180816650390625,
-0.0047149658203125,
0.017059326171875,
0.0460205078125,
-0.0210418701171875,
-0.0513916015625,
0.003696441650390625,
0.01042938232421875,
0.01195526123046875,
0.006969451904296875,
-0.0028476715087890625,
0.0565185546875,
0.0968017578125,
-0.072021484375,
-0.0044708251953125,
0.036590576171875,
0.051513671875,
-0.011993408203125,
-0.04278564453125,
-0.0518798828125,
-0.0235443115234375,
-0.046844482421875,
0.0214385986328125,
0.023223876953125,
0.08270263671875,
0.00926971435546875,
0.0693359375,
-0.044036865234375,
-0.035491943359375,
0.021881103515625,
0.01026153564453125,
-0.0138397216796875,
-0.0137786865234375,
-0.0090484619140625,
-0.037994384765625,
0.0068359375,
0.023101806640625,
0.017730712890625,
-0.0168914794921875,
0.02392578125,
0.0611572265625,
0.018157958984375,
-0.00936126708984375,
0.03076171875,
0.0011434555053710938,
-0.0026607513427734375,
-0.036834716796875,
0.023223876953125,
0.0219268798828125,
0.00627899169921875,
0.0167083740234375,
0.018035888671875,
0.0498046875,
-0.032623291015625,
0.056732177734375,
0.0015096664428710938,
-0.0255889892578125,
0.036163330078125,
0.00830078125,
0.09844970703125,
0.0218048095703125,
-0.06427001953125,
-0.0236968994140625,
-0.0069427490234375,
-0.038299560546875,
0.0193328857421875,
0.041168212890625,
-0.0221405029296875,
0.022369384765625,
0.005916595458984375,
-0.0270843505859375,
0.0283660888671875,
0.000213623046875,
0.0031261444091796875,
-0.0190277099609375,
0.0097808837890625,
-0.0083465576171875,
-0.0155792236328125,
-0.0135345458984375,
0.0130767822265625,
0.008453369140625,
0.00275421142578125,
0.01039886474609375,
0.018829345703125,
0.006275177001953125,
-0.0265045166015625,
0.07818603515625,
-0.09930419921875,
-0.041168212890625,
0.054962158203125,
-0.0130462646484375,
0.01690673828125,
-0.0083465576171875,
-0.00882720947265625,
0.0258026123046875,
0.041595458984375,
-0.01279449462890625,
0.0217132568359375,
-0.0195465087890625,
0.00469207763671875,
-0.0301513671875,
0.02630615234375,
-0.015411376953125,
-0.0254669189453125,
-0.0433349609375,
-0.003589630126953125,
0.036285400390625,
0.045562744140625,
-0.0017271041870117188,
0.0210113525390625,
-0.029327392578125,
-0.040191650390625,
-0.007549285888671875,
-0.01367950439453125,
-0.038330078125,
0.03448486328125,
-0.003078460693359375,
0.0009794235229492188,
0.00168609619140625,
-0.0218048095703125,
0.00940704345703125,
0.028961181640625,
-0.0249176025390625,
0.0157623291015625,
-0.00514984130859375,
-0.019195556640625,
0.054107666015625,
0.034149169921875,
-0.0214080810546875,
0.028839111328125,
0.012481689453125,
-0.0200042724609375,
0.01015472412109375,
-0.0003159046173095703,
-0.0404052734375,
-0.0300140380859375,
-0.013763427734375,
-0.0148468017578125,
-0.0276031494140625,
-0.0606689453125,
-0.0262298583984375,
-0.0161285400390625,
0.009857177734375,
-0.03082275390625,
0.0121307373046875,
-0.01837158203125,
-0.04022216796875,
0.035736083984375,
-0.07269287109375,
0.0142669677734375,
0.01085662841796875,
0.03082275390625,
-0.058258056640625,
0.04754638671875,
-0.01287841796875,
-0.042144775390625,
0.0259857177734375,
0.0465087890625,
0.040740966796875,
-0.07647705078125,
-0.035736083984375,
0.040252685546875,
0.0567626953125,
0.06719970703125,
0.08245849609375,
0.0094451904296875,
0.002140045166015625,
0.0228271484375,
-0.05584716796875,
-0.01084136962890625,
0.051727294921875,
-0.022216796875,
-0.045013427734375,
-0.05072021484375,
0.01497650146484375,
0.0248870849609375,
-0.0362548828125,
-0.0810546875,
0.04730224609375,
-0.0372314453125,
-0.0265045166015625,
0.00672149658203125,
0.00513458251953125,
-0.015960693359375,
0.018157958984375,
0.01369476318359375,
-0.0287322998046875,
0.0014629364013671875,
0.0161895751953125,
0.02874755859375,
-0.0015001296997070312,
0.044525146484375,
0.01446533203125,
-0.044647216796875,
-0.0047760009765625,
-0.02215576171875,
0.0184783935546875,
-0.0101318359375,
0.01355743408203125,
-0.0273895263671875,
0.0287933349609375,
-0.04376220703125,
-0.068359375,
-0.024932861328125,
0.0193634033203125,
0.0283355712890625,
-0.0404052734375,
-0.04840087890625,
-0.04437255859375,
0.04052734375,
-0.00634002685546875,
0.01690673828125,
0.01058197021484375,
-0.052947998046875,
-0.050506591796875,
-0.01557159423828125,
-0.01013946533203125,
0.01508331298828125,
-0.0518798828125,
0.036651611328125,
-0.004604339599609375,
0.0018320083618164062,
0.01387786865234375,
-0.020172119140625,
-0.038604736328125,
-0.01377105712890625,
-0.04095458984375,
0.01116180419921875,
-0.058380126953125,
0.018218994140625,
0.0018548965454101562,
-0.0164337158203125,
-0.027496337890625,
0.007381439208984375,
0.0012750625610351562,
-0.020721435546875,
-0.015655517578125,
0.0211334228515625,
0.0213165283203125,
-0.0247650146484375,
-0.006359100341796875,
0.0230865478515625,
0.0184478759765625,
-0.006969451904296875,
-0.01393890380859375,
-0.02471923828125,
0.01155853271484375,
0.0002510547637939453,
0.00244903564453125,
0.024688720703125,
-0.0174560546875,
0.0169830322265625,
-0.00457763671875,
-0.00325775146484375,
0.027801513671875,
0.0026569366455078125,
0.047515869140625,
0.0018815994262695312,
-0.031494140625,
0.040191650390625,
-0.061553955078125,
-0.0122833251953125,
0.004119873046875,
-0.0182647705078125,
-0.0401611328125,
0.04901123046875,
-0.0309295654296875,
0.0009431838989257812,
0.028656005859375
] |
db95b0a84cef2268389b626d41bed58a9c1dc4c1
|
Wordpress Stackexchange
Q: wordpress sanitize array? I have a custom post form that sends data to a page which uses wp_insert_post to create a post. I can easily sanitize most data, but I have some troubles with my tags, I retrieve in an array:
$tags = $_POST['tags'];
Before using these tags as tags_input, how can I successfully sanitize all names?
Thanks!
A: I needed a recursive sanitation, so here's my solution:
/**
* Recursive sanitation for an array
*
* @param $array
*
* @return mixed
*/
function recursive_sanitize_text_field($array) {
foreach ( $array as $key => &$value ) {
if ( is_array( $value ) ) {
$value = recursive_sanitize_text_field($value);
}
else {
$value = sanitize_text_field( $value );
}
}
return $array;
}
|
Q: wordpress sanitize array? I have a custom post form that sends data to a page which uses wp_insert_post to create a post. I can easily sanitize most data, but I have some troubles with my tags, I retrieve in an array:
$tags = $_POST['tags'];
Before using these tags as tags_input, how can I successfully sanitize all names?
Thanks!
A: I needed a recursive sanitation, so here's my solution:
/**
* Recursive sanitation for an array
*
* @param $array
*
* @return mixed
*/
function recursive_sanitize_text_field($array) {
foreach ( $array as $key => &$value ) {
if ( is_array( $value ) ) {
$value = recursive_sanitize_text_field($value);
}
else {
$value = sanitize_text_field( $value );
}
}
return $array;
}
A: Here's a way to do it with PHP's array map function:
// Good idea to make sure things are set before using them
$tags = isset( $_POST['tags'] ) ? (array) $_POST['tags'] : array();
// Any of the WordPress data sanitization functions can be used here
$tags = array_map( 'esc_attr', $tags );
A: If anyone is interested, I solved it like this:
$tags = $_POST['tags'];
if (count($tags) > 5){
echo 'Niet meer dan 5 tags';
$stop = true;
}
if (is_array($tags)) {
foreach ($tags as &$tag) {
$tag = esc_attr($tag);
}
unset($tag );
} else {
$tags = esc_attr($tags);
}
A: You can use this function for almost all cases.
/**
* Recursive sanitation for text or array
*
* @param $array_or_string (array|string)
* @since 0.1
* @return mixed
*/
function sanitize_text_or_array_field($array_or_string) {
if( is_string($array_or_string) ){
$array_or_string = sanitize_text_field($array_or_string);
}elseif( is_array($array_or_string) ){
foreach ( $array_or_string as $key => &$value ) {
if ( is_array( $value ) ) {
$value = sanitize_text_or_array_field($value);
}
else {
$value = sanitize_text_field( $value );
}
}
}
return $array_or_string;
}
|
wordpress
|
{
"language": "en",
"length": 295,
"provenance": "stackexchange_00019.jsonl.gz:411867",
"question_score": "16",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24736"
}
|
[
0.058074951171875,
0.0321044921875,
-0.044769287109375,
-0.0601806640625,
0.045867919921875,
-0.0304718017578125,
0.0267181396484375,
-0.01245880126953125,
0.007244110107421875,
0.0253448486328125,
-0.0307769775390625,
-0.0045013427734375,
-0.0207672119140625,
-0.00727081298828125,
-0.03070068359375,
-0.0428466796875,
0.009429931640625,
-0.007335662841796875,
0.035980224609375,
-0.0122222900390625,
0.023345947265625,
-0.0274505615234375,
0.0377197265625,
-0.049407958984375,
0.00897979736328125,
-0.004669189453125,
0.052337646484375,
-0.00266265869140625,
0.00548553466796875,
-0.01236724853515625,
0.0209503173828125,
-0.01319122314453125,
0.012054443359375,
0.026702880859375,
-0.0283203125,
0.036712646484375,
0.0158538818359375,
0.00811004638671875,
0.0221099853515625,
0.022796630859375,
0.041168212890625,
-0.0301055908203125,
0.040191650390625,
0.018402099609375,
0.00678253173828125,
-0.0234527587890625,
0.057708740234375,
-0.0162353515625,
0.0168304443359375,
-0.035675048828125,
0.0085601806640625,
0.025665283203125,
0.039337158203125,
-0.058258056640625,
-0.018524169921875,
0.018585205078125,
-0.00948333740234375,
0.0026149749755859375,
0.00861358642578125,
0.0538330078125,
-0.00379180908203125,
0.031402587890625,
-0.0261077880859375,
-0.042266845703125,
0.0286712646484375,
-0.005413055419921875,
0.028533935546875,
0.0218658447265625,
-0.0687255859375,
0.0086517333984375,
0.056243896484375,
-0.04486083984375,
-0.0012521743774414062,
-0.0362548828125,
0.030609130859375,
0.0008835792541503906,
-0.01678466796875,
-0.032135009765625,
0.00334930419921875,
0.0290679931640625,
-0.03387451171875,
-0.06353759765625,
-0.02606201171875,
0.01369476318359375,
-0.0144195556640625,
0.0236663818359375,
-0.0205230712890625,
0.019012451171875,
-0.00203704833984375,
-0.0164947509765625,
-0.021697998046875,
-0.007282257080078125,
-0.0088958740234375,
0.0172119140625,
-0.01126861572265625,
-0.0186767578125,
0.014190673828125,
0.01296234130859375,
-0.0132598876953125,
0.0228729248046875,
0.03045654296875,
-0.05682373046875,
0.06109619140625,
-0.0268402099609375,
0.007904052734375,
-0.004940032958984375,
-0.0109405517578125,
-0.00777435302734375,
0.0307159423828125,
0.020965576171875,
-0.026580810546875,
0.0126495361328125,
-0.005584716796875,
-0.030364990234375,
-0.0182037353515625,
0.031005859375,
0.00991058349609375,
-0.023223876953125,
0.0034160614013671875,
-0.058074951171875,
-0.0110321044921875,
0.00952911376953125,
-0.04345703125,
0.0259246826171875,
0.00589752197265625,
-0.00539398193359375,
0.026611328125,
0.0106201171875,
0.0240325927734375,
0.0093994140625,
-0.042327880859375,
0.0167999267578125,
0.07818603515625,
0.0131683349609375,
0.0009131431579589844,
-0.017608642578125,
0.005992889404296875,
-0.042510986328125,
-0.0020771026611328125,
0.029876708984375,
-0.016998291015625,
-0.032684326171875,
0.03350830078125,
-0.012115478515625,
0.04254150390625,
0.01238250732421875,
0.019500732421875,
0.0093536376953125,
0.004978179931640625,
-0.024505615234375,
0.0302276611328125,
-0.01482391357421875,
0.03948974609375,
0.015411376953125,
-0.04693603515625,
-0.00696563720703125,
-0.0018453598022460938,
-0.025665283203125,
-0.01537322998046875,
-0.048919677734375,
0.04437255859375,
-0.009674072265625,
0.0009474754333496094,
0.01190948486328125,
0.0004267692565917969,
-0.0125274658203125,
-0.04833984375,
-0.002529144287109375,
0.024749755859375,
-0.03094482421875,
0.031585693359375,
0.016845703125,
0.018524169921875,
0.025421142578125,
0.026702880859375,
0.013916015625,
-0.00620269775390625,
0.0204925537109375,
0.006103515625,
0.0360107421875,
0.01708984375,
-0.0362548828125,
0.01068115234375,
0.00545501708984375,
-0.056488037109375,
-0.00965118408203125,
0.00893402099609375,
0.06512451171875,
0.047760009765625,
0.02618408203125,
0.030975341796875,
-0.032379150390625,
-0.0283966064453125,
0.033477783203125,
0.0218048095703125,
-0.01241302490234375,
-0.0198516845703125,
0.00893402099609375,
0.007289886474609375,
-0.046142578125,
-0.0103912353515625,
-0.00679779052734375,
0.0205841064453125,
-0.027587890625,
-0.0443115234375,
-0.0001741647720336914,
-0.0217437744140625,
0.037689208984375,
-0.036376953125,
0.012237548828125,
0.04266357421875,
-0.007419586181640625,
-0.0572509765625,
0.066162109375,
0.01476287841796875,
0.0170440673828125,
-0.0225067138671875,
0.019500732421875,
-0.006992340087890625,
0.00684356689453125,
0.01015472412109375,
-0.027618408203125,
0.0102081298828125,
-0.00913238525390625,
0.007602691650390625,
-0.0032939910888671875,
-0.01519012451171875,
0.01180267333984375,
-0.0015897750854492188,
0.0092315673828125,
0.0124969482421875,
0.0120849609375,
0.049957275390625,
0.0222930908203125,
-0.0172271728515625,
-0.0209503173828125,
0.0011157989501953125,
-0.080322265625,
-0.004459381103515625,
0.06689453125,
0.017303466796875,
0.032196044921875,
-0.02032470703125,
-0.016754150390625,
0.08319091796875,
-0.022369384765625,
-0.01708984375,
0.006500244140625,
0.032958984375,
0.038665771484375,
-0.048583984375,
-0.00821685791015625,
0.0310821533203125,
-0.07073974609375,
0.027740478515625,
0.034759521484375,
-0.07366943359375,
-0.0157318115234375,
0.0118255615234375,
-0.0285491943359375,
0.0022602081298828125,
-0.04425048828125,
0.018280029296875,
-0.046295166015625,
0.05499267578125,
-0.0101165771484375,
0.0121612548828125,
-0.0059967041015625,
-0.0340576171875,
0.018951416015625,
0.0224761962890625,
-0.049285888671875,
0.0003216266632080078,
-0.0012464523315429688,
-0.024505615234375,
-0.01459503173828125,
-0.01226043701171875,
0.0243072509765625,
-0.004756927490234375,
-0.0160675048828125,
0.00823211669921875,
0.08599853515625,
0.0294036865234375,
-0.0164337158203125,
-0.055084228515625,
-0.03765869140625,
0.018707275390625,
0.024810791015625,
-0.0516357421875,
-0.033111572265625,
-0.0151214599609375,
0.0555419921875,
-0.01593017578125,
0.0111236572265625,
0.014984130859375,
0.0036373138427734375,
-0.0081939697265625,
-0.0069427490234375,
0.0172119140625,
-0.0018968582153320312,
0.0223541259765625,
0.0692138671875,
0.00882720947265625,
0.00411224365234375,
0.0093994140625,
-0.0011539459228515625,
0.0237274169921875,
-0.0023345947265625,
-0.016448974609375,
-0.0213623046875,
-0.07354736328125,
-0.056976318359375,
0.026397705078125,
0.06036376953125,
-0.0217742919921875,
-0.05865478515625,
-0.018798828125,
0.038543701171875,
-0.07781982421875,
-0.0772705078125,
0.0244293212890625,
-0.034332275390625,
-0.038665771484375,
-0.0260467529296875,
-0.0283966064453125,
0.017242431640625,
-0.03009033203125,
-0.007228851318359375,
-0.0167999267578125,
0.0096435546875,
-0.06817626953125,
-0.0240936279296875,
-0.03240966796875,
0.056640625,
-0.031097412109375,
0.004550933837890625,
0.006565093994140625,
0.055206298828125,
0.005741119384765625,
-0.055450439453125,
0.010345458984375,
0.0003345012664794922,
-0.013885498046875,
0.02081298828125,
-0.027099609375,
-0.01953125,
0.0268402099609375,
-0.006626129150390625,
-0.0092620849609375,
-0.0164642333984375,
0.0260772705078125,
-0.016632080078125,
0.030120849609375,
-0.037689208984375,
0.040252685546875,
0.017486572265625,
-0.0435791015625,
0.003940582275390625,
0.05609130859375,
-0.037353515625,
-0.0025310516357421875,
0.007747650146484375,
-0.0072479248046875,
-0.036224365234375,
-0.0235748291015625,
-0.020843505859375,
-0.034515380859375,
0.030364990234375,
0.0012969970703125,
0.0091552734375,
-0.0113525390625,
0.01079559326171875,
-0.00281524658203125,
0.002178192138671875,
-0.0007395744323730469,
0.0009217262268066406,
-0.0015316009521484375,
-0.0312042236328125,
0.007259368896484375,
-0.01934814453125,
-0.017181396484375,
-0.01334381103515625,
-0.007625579833984375,
-0.042572021484375,
-0.033599853515625,
0.048248291015625,
-0.00531005859375,
0.037506103515625,
-0.040252685546875,
-0.0300445556640625,
-0.0270233154296875,
0.0682373046875,
-0.03948974609375,
-0.0076141357421875,
-0.0204315185546875,
0.002590179443359375,
0.004474639892578125,
-0.0035247802734375,
-0.02001953125,
-0.0188140869140625,
-0.0875244140625,
0.003448486328125,
-0.039886474609375,
-0.0232696533203125,
0.011688232421875,
-0.035308837890625,
-0.011962890625,
-0.06298828125,
0.00901031494140625,
-0.063232421875,
0.01316070556640625,
-0.02197265625,
0.029632568359375,
-0.07421875,
-0.00018680095672607422,
-0.032318115234375,
-0.102783203125,
-0.026611328125,
0.01375579833984375,
0.07342529296875,
0.0118255615234375,
-0.045166015625,
0.003398895263671875,
0.07366943359375,
-0.01206207275390625,
-0.0168914794921875,
-0.00091552734375,
0.031646728515625,
-0.01678466796875,
-0.002593994140625,
-0.016510009765625,
-0.022979736328125,
-0.007488250732421875,
-0.0023784637451171875,
-0.00818634033203125,
-0.01470184326171875,
-0.0273895263671875,
-0.0266571044921875,
0.007656097412109375,
-0.036285400390625,
0.006290435791015625,
-0.037689208984375,
-0.040863037109375,
0.01412200927734375,
-0.02020263671875,
-0.013427734375,
-0.036895751953125,
-0.021820068359375,
0.042327880859375,
0.0032634735107421875,
-0.01666259765625,
0.01326751708984375,
0.06500244140625,
0.01078033447265625,
-0.02069091796875,
-0.09912109375,
-0.016693115234375,
0.04107666015625,
-0.00351715087890625,
0.0290985107421875,
0.01415252685546875,
-0.039459228515625,
0.054168701171875,
0.0102691650390625,
0.00287628173828125,
0.01413726806640625,
0.04547119140625,
-0.005481719970703125,
-0.0027942657470703125,
-0.005603790283203125,
-0.019317626953125,
-0.01904296875,
0.06964111328125,
0.0020294189453125,
-0.0258941650390625,
-0.0195465087890625,
0.025115966796875,
-0.02728271484375,
0.0021991729736328125,
-0.0134735107421875,
-0.0618896484375,
0.025634765625,
0.00861358642578125,
-0.01416015625,
0.01239013671875,
-0.011566162109375,
0.0245361328125,
-0.03424072265625,
0.0232696533203125,
-0.04559326171875,
-0.0117950439453125,
-0.0204315185546875,
0.0167083740234375,
0.0009284019470214844,
0.0152435302734375,
-0.00586700439453125,
-0.00262451171875,
0.049591064453125,
-0.01276397705078125,
-0.0253448486328125,
-0.02197265625,
-0.031463623046875,
-0.01160430908203125,
0.03179931640625,
-0.011077880859375,
-0.00970458984375,
0.005718231201171875,
0.002788543701171875,
0.03924560546875,
-0.01531219482421875,
0.0186309814453125,
0.0010118484497070312,
-0.0194549560546875,
0.0002675056457519531,
-0.010894775390625,
-0.033721923828125,
0.078125,
-0.006099700927734375,
0.01055908203125,
-0.007251739501953125,
0.00745391845703125,
-0.004840850830078125,
0.0211029052734375,
0.00843048095703125,
-0.01084136962890625,
0.0241241455078125,
-0.0227203369140625,
0.01983642578125,
-0.046966552734375,
-0.017364501953125,
0.0240631103515625,
0.031494140625,
0.0003650188446044922,
-0.01175689697265625,
0.024078369140625,
0.002742767333984375,
-0.023284912109375,
0.011505126953125,
-0.05328369140625,
-0.053131103515625,
-0.031707763671875,
-0.0030269622802734375,
0.0255126953125,
-0.01537322998046875,
-0.00969696044921875,
0.02734375,
-0.049102783203125,
0.01861572265625,
0.0185394287109375,
0.0285491943359375,
-0.0302581787109375,
-0.037261962890625,
0.024505615234375,
-0.01374053955078125,
-0.01433563232421875,
-0.0166778564453125,
-0.0014925003051757812,
-0.01160430908203125,
-0.02850341796875,
0.040618896484375,
-0.020965576171875,
0.042327880859375,
-0.036529541015625,
-0.0009245872497558594,
-0.0043792724609375,
0.00649261474609375,
0.054840087890625,
0.032379150390625,
-0.03814697265625,
0.0012989044189453125,
-0.0284271240234375,
-0.006473541259765625,
0.01390838623046875,
-0.023956298828125,
-0.03448486328125,
-0.019683837890625,
0.0009136199951171875,
0.0555419921875,
0.00786590576171875,
0.024505615234375,
0.0262603759765625,
-0.020233154296875,
-0.0694580078125,
0.045074462890625,
-0.03662109375,
0.0162353515625,
0.006275177001953125,
0.00820159912109375,
-0.0242156982421875,
-0.0074005126953125,
0.022552490234375,
0.00403594970703125,
-0.0197296142578125,
-0.06201171875,
0.00542449951171875,
0.002758026123046875,
0.010345458984375,
0.057037353515625,
0.039703369140625,
0.0079193115234375,
0.046173095703125,
-0.0165252685546875,
0.0164947509765625,
0.005199432373046875,
0.012542724609375,
-0.051849365234375,
0.00528717041015625,
0.0443115234375,
0.002407073974609375,
-0.0264434814453125,
0.00910186767578125,
-0.00838470458984375,
-0.030242919921875,
0.0418701171875,
-0.0233001708984375,
-0.025299072265625,
0.0031452178955078125,
-0.00640106201171875,
0.02130126953125,
0.006389617919921875,
0.0272369384765625,
0.00595855712890625,
0.01418304443359375,
-0.006656646728515625,
-0.02716064453125,
-0.040771484375,
0.0097808837890625,
0.0491943359375,
0.009918212890625,
0.00965118408203125,
0.06097412109375,
-0.0055694580078125,
-0.0304718017578125,
0.0249786376953125,
0.05609130859375,
-0.036865234375,
0.0026416778564453125,
0.03265380859375,
0.00507354736328125,
-0.0384521484375,
-0.01038360595703125,
0.0087127685546875,
0.01776123046875,
0.028167724609375,
-0.007488250732421875,
-0.0252838134765625,
0.0218658447265625,
0.01131439208984375,
-0.00995635986328125,
-0.0255889892578125,
0.0867919921875,
0.006866455078125,
-0.0311279296875,
0.0022869110107421875,
0.0077972412109375,
-0.0250701904296875,
-0.0011587142944335938,
0.0198822021484375,
-0.02935791015625,
-0.03936767578125,
-0.05596923828125,
-0.03564453125,
-0.00952911376953125,
-0.032745361328125,
-0.042266845703125,
-0.024169921875,
0.05999755859375,
0.0267181396484375,
-0.002269744873046875,
-0.057830810546875,
0.006946563720703125,
-0.035614013671875,
-0.0201416015625,
-0.037139892578125,
-0.024688720703125,
0.0193328857421875,
0.0018053054809570312,
0.0104522705078125,
-0.0034732818603515625,
-0.0175628662109375,
-0.0175018310546875,
0.039947509765625,
0.07366943359375,
0.047515869140625,
-0.053802490234375,
0.0080108642578125,
0.00824737548828125,
0.01386260986328125,
-0.043731689453125,
0.0211181640625,
-0.057891845703125,
-0.03179931640625,
-0.012451171875,
-0.036102294921875,
-0.0005044937133789062,
-0.053497314453125,
-0.08502197265625,
0.11260986328125,
0.0509033203125,
0.02911376953125,
0.002727508544921875,
0.040985107421875,
-0.0697021484375,
-0.00612640380859375,
-0.0166015625,
0.018157958984375,
0.0212554931640625,
0.01434326171875,
-0.03631591796875,
-0.0286407470703125,
0.0038166046142578125,
0.07012939453125,
-0.002971649169921875,
-0.0015382766723632812,
0.0249176025390625,
-0.01538848876953125,
0.0017547607421875,
0.032379150390625,
-0.024871826171875,
-0.0115203857421875,
0.005878448486328125,
-0.016754150390625,
0.02459716796875,
-0.02032470703125,
0.028533935546875,
-0.02923583984375,
0.0098419189453125,
0.0175933837890625,
0.0172576904296875,
0.00508880615234375,
-0.0165557861328125,
-0.010345458984375,
-0.03643798828125,
0.0003383159637451172,
0.01873779296875,
0.00844573974609375,
0.0049896240234375,
0.009063720703125,
0.043701171875,
-0.0108795166015625,
-0.0224609375,
-0.013641357421875,
0.042266845703125,
0.031402587890625,
0.07183837890625,
0.0687255859375,
0.0286102294921875,
0.0914306640625,
0.0244598388671875,
0.04888916015625,
0.00887298583984375,
-0.004833221435546875,
0.0185394287109375,
0.0042877197265625,
0.01433563232421875,
-0.038482666015625,
-0.0245361328125,
0.07098388671875,
0.0494384765625,
-0.027099609375,
-0.021209716796875,
0.0028743743896484375,
0.0150604248046875,
0.0177001953125,
-0.0052490234375,
0.040283203125,
-0.00501251220703125,
0.012969970703125,
-0.0253753662109375,
0.0133514404296875,
0.0296783447265625,
0.019195556640625,
-0.00283050537109375,
0.0240936279296875,
-0.0406494140625,
0.0157318115234375,
-0.05511474609375,
0.007480621337890625,
0.0006585121154785156,
0.056915283203125,
0.028411865234375,
0.03326416015625,
0.01763916015625,
-0.0240325927734375,
-0.01800537109375,
0.0572509765625,
0.03485107421875,
0.0109100341796875,
0.0146026611328125,
0.00736236572265625,
0.00275421142578125,
-0.0126953125,
0.0066070556640625,
0.042938232421875,
0.048614501953125,
0.02435302734375,
-0.03192138671875,
-0.00243377685546875,
0.07379150390625,
-0.0283660888671875,
-0.04620361328125,
-0.0328369140625,
-0.0153350830078125,
0.016815185546875,
-0.0021190643310546875,
0.019775390625,
0.0291900634765625,
-0.004070281982421875,
0.01111602783203125,
0.028656005859375,
0.00972747802734375,
-0.004650115966796875,
-0.0031032562255859375,
-0.00823974609375,
-0.0203399658203125,
0.04229736328125,
-0.00934600830078125,
-0.0032978057861328125,
-0.0413818359375,
-0.006603240966796875,
0.015167236328125,
0.026580810546875,
0.01070404052734375,
0.01311492919921875,
0.06524658203125,
-0.07904052734375,
0.034423828125,
0.076171875,
0.0128631591796875,
0.042510986328125,
0.0005941390991210938,
0.0038242340087890625,
-0.0496826171875,
-0.030120849609375,
0.0264892578125,
0.031646728515625,
-0.031646728515625,
0.0345458984375,
0.0063629150390625,
-0.016510009765625,
-0.04974365234375,
0.035308837890625,
-0.0706787109375,
-0.050323486328125,
0.055450439453125,
-0.006927490234375,
-0.0120697021484375,
0.00005459785461425781,
0.0021820068359375,
0.020660400390625,
0.02032470703125,
-0.059356689453125,
-0.0172271728515625,
0.01081085205078125,
0.0207977294921875,
-0.0105438232421875,
0.06610107421875,
-0.01042938232421875,
-0.0782470703125,
-0.075439453125,
0.0029506683349609375,
0.034271240234375,
0.1087646484375,
0.0117645263671875,
0.02532958984375,
-0.0216522216796875,
-0.0002684593200683594,
0.026275634765625,
-0.047454833984375,
0.0159149169921875,
0.01044464111328125,
-0.0186920166015625,
-0.03515625,
-0.0035419464111328125,
-0.014434814453125,
-0.0081329345703125,
0.0243377685546875,
0.01331329345703125,
0.0077667236328125,
-0.013214111328125,
-0.032318115234375,
0.037506103515625,
0.05096435546875,
0.050506591796875,
0.036895751953125,
-0.0306243896484375,
-0.032379150390625,
-0.0137176513671875,
-0.042816162109375,
-0.0174713134765625,
-0.023529052734375,
-0.0200653076171875,
0.0283050537109375,
-0.0233917236328125,
-0.033905029296875,
-0.05755615234375,
-0.0013360977172851562,
0.01375579833984375,
-0.026458740234375,
-0.0019311904907226562,
-0.0036067962646484375,
-0.04345703125,
0.0325927734375,
-0.0279998779296875,
-0.0079193115234375,
-0.0027065277099609375,
0.0040130615234375,
-0.04766845703125,
-0.054931640625,
-0.0275726318359375,
0.047882080078125,
-0.0345458984375,
0.0218048095703125,
0.012939453125,
-0.0135650634765625,
-0.00994873046875,
0.02862548828125,
0.03216552734375,
0.05645751953125,
0.032470703125,
-0.0153045654296875,
0.0113983154296875,
0.0208282470703125,
-0.01422882080078125,
-0.12481689453125,
-0.01149749755859375,
-0.09228515625,
0.06182861328125,
0.01456451416015625,
-0.017059326171875,
0.00539398193359375,
-0.042083740234375,
-0.1134033203125,
0.07415771484375,
-0.016204833984375,
-0.038421630859375,
0.00936126708984375,
0.024810791015625,
0.0192718505859375,
-0.01470184326171875,
0.00939178466796875,
-0.0168304443359375,
-0.017547607421875,
-0.0364990234375,
0.0010595321655273438,
0.051483154296875,
0.02545166015625,
0.00927734375,
-0.01522064208984375,
-0.005046844482421875,
-0.0244598388671875,
-0.01349639892578125,
0.007709503173828125,
-0.007537841796875,
0.0304412841796875,
0.048187255859375,
-0.028839111328125,
0.0426025390625,
0.006320953369140625,
-0.017578125,
0.0177154541015625,
-0.0092315673828125,
-0.01297760009765625,
-0.003833770751953125,
0.0184173583984375,
0.037384033203125,
0.0179443359375,
-0.039947509765625,
-0.01505279541015625,
-0.01534271240234375,
0.0280914306640625,
0.0031223297119140625,
-0.013458251953125,
-0.035858154296875,
-0.0011386871337890625,
0.01108551025390625,
0.0212860107421875,
0.00634002685546875,
-0.01104736328125,
0.0154571533203125,
-0.0238189697265625,
0.0283660888671875,
-0.00978851318359375,
0.0270843505859375,
-0.054107666015625,
0.016143798828125,
-0.0265045166015625,
-0.0567626953125,
0.007476806640625,
0.039947509765625,
-0.04339599609375,
0.0085601806640625,
0.01142120361328125,
-0.0197296142578125,
0.009429931640625,
-0.0129852294921875,
0.0240325927734375,
0.0003345012664794922,
0.024658203125,
-0.01953125,
-0.0164031982421875,
0.0110321044921875,
-0.01546478271484375,
0.0174713134765625,
0.0135650634765625,
0.01352691650390625,
0.00604248046875,
0.032440185546875,
-0.036407470703125,
0.02532958984375,
-0.0179290771484375,
0.037567138671875,
0.00738525390625,
0.00075531005859375,
0.06634521484375,
-0.024627685546875,
0.0022735595703125,
0.004116058349609375,
-0.00543212890625,
-0.055084228515625,
0.0233306884765625,
-0.0007224082946777344,
0.03216552734375,
0.0179443359375
] |
98e8fd28a7c54f7dc14af92b2df11c4b209afa0d
|
Wordpress Stackexchange
Q: Remove top admin bar whenever admin or any other user logs in a top bar menu ads up. Now I made login for everybody, so I do not want this bar.
First I added display:none to admin-bar.css, but the main problem is that wordpress is still adding a white line on the top with:
html {
margin-top: 28px !important;
}
How to remove this as this is causing some design flaws.
A: To remove the top margin left by the admin bar, it's not enough just to set show_admin_bar to false. You also need to remove the admin bar bump callback:
remove_action( 'wp_head', '_admin_bar_bump_cb' );
|
Q: Remove top admin bar whenever admin or any other user logs in a top bar menu ads up. Now I made login for everybody, so I do not want this bar.
First I added display:none to admin-bar.css, but the main problem is that wordpress is still adding a white line on the top with:
html {
margin-top: 28px !important;
}
How to remove this as this is causing some design flaws.
A: To remove the top margin left by the admin bar, it's not enough just to set show_admin_bar to false. You also need to remove the admin bar bump callback:
remove_action( 'wp_head', '_admin_bar_bump_cb' );
A: http://vudu.me/88
Has an article about it.
But basically
/* Disable the Admin Bar. */
add_filter( 'show_admin_bar', '__return_false' );
or also
//REMOVE ADMIN BAR
remove_action('init', 'wp_admin_bar_init');
I believe in your functions.php will disable it. Probably a better way than just hiding it thriough css
THe reason you still get the gap with the menu hidden is because WP adds this css as well
html { margin-top: 28px !important; }
* html body { margin-top: 28px !important; }
So a margin is added up top.... you could negate that css in yours, but just disabling the bar is probably better if that's what you want to do
A: If you're talking about the top bar that shows up with quicklinks for the admin, you can also disable it per user when you setup their profiles.
It's just a checkbox in the admin under the profile.
A: Add this function in functions.php of your theme
function hide_admin_bar_from_front_end(){
if (is_blog_admin()) {
return true;
}
return false;
}
add_filter( 'show_admin_bar', 'hide_admin_bar_from_front_end' );
A: The best way I've found to remove that white space (it's not caused by the admin bar) is to search out this CSS in style.css:
#page {
margin: 2em auto;
max-width: 1000px;
}
and switch the 2em to 0em or some variation of the same. That will remove the white space.
A: Disable the WordPress Admin Bar Using CSS
You only have to copy and paste the CSS code below in Appearance > Customize > Additional CSS, or your style.css file.
The CSS code to disable the toolbar is:
#wpadminbar { display:none !important;}
A: Only valid php solution:
1) For Front-End:
show_admin_bar(false); //same as: add_filter( 'show_admin_bar', '__return_false');
2) For Back-End (tricky solution per hook):
if ($from_dashboard_too)
{
remove_action( 'in_admin_header', 'wp_admin_bar_render', 0 );
//disables top margin
add_filter( 'admin_title', function(){ $GLOBALS['wp_query']->is_embed=true; add_action('admin_xml_ns', function(){ $GLOBALS['wp_query']->is_embed=false; } ); } );
}
A: I don't have access to the functions.php and I was trying to solve the same issue just via frontend with the Enfold theme I was using. Like the previous answer from @DavidTaubmann, I used the same CSS edit, but that will still leave a 28px blank space at the top of the page, so here is the solution that worked for me.
From your-wordpress-site.com/wp-admin dashboard, go down to
*
*Appearance > Customize
*Click Additional CSS.
Copy and paste this:
#wpadminbar { display:none !important;}
html { margin-top: 0px !important; }
html body { margin-top: 0px !important; }
*
*Click Publish!
For other helpful solutions you can refer to:
*
*How to Disable the WordPress Admin Bar- va
*How do I remove the admin bar (styling) from frontend only?
A: To remove the top admin bar you need to go to Users in the left Menu, then Edit the user and then disable the Show toolbar when viewing website checkbox. Save. Done.
Do this to all users.
|
wordpress
|
{
"language": "en",
"length": 578,
"provenance": "stackexchange_00019.jsonl.gz:411882",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24773"
}
|
[
0.0626220703125,
0.0030574798583984375,
0.014801025390625,
0.01000213623046875,
0.007015228271484375,
-0.0521240234375,
0.05859375,
-0.038726806640625,
-0.02783203125,
0.011077880859375,
0.0227813720703125,
-0.0028514862060546875,
-0.0219879150390625,
-0.04656982421875,
0.00226593017578125,
-0.0179595947265625,
0.013824462890625,
0.015838623046875,
0.021484375,
-0.006946563720703125,
-0.0003025531768798828,
0.018096923828125,
-0.00942230224609375,
0.07196044921875,
0.0026454925537109375,
-0.04400634765625,
0.10821533203125,
-0.002330780029296875,
0.0022678375244140625,
-0.018218994140625,
0.016143798828125,
-0.0174713134765625,
-0.02642822265625,
0.042694091796875,
0.016021728515625,
0.0113525390625,
-0.042388916015625,
0.046783447265625,
0.056365966796875,
-0.050384521484375,
0.00934600830078125,
0.01180267333984375,
-0.0201263427734375,
0.0230712890625,
-0.041839599609375,
-0.0275115966796875,
-0.0031585693359375,
-0.0098419189453125,
0.0309906005859375,
-0.032867431640625,
0.0173797607421875,
0.01293182373046875,
0.033050537109375,
-0.01506805419921875,
-0.0273590087890625,
0.01535797119140625,
-0.0242919921875,
-0.0306549072265625,
0.0282135009765625,
0.04541015625,
0.0060577392578125,
-0.0189361572265625,
0.006725311279296875,
-0.050384521484375,
-0.01873779296875,
0.00994873046875,
-0.049652099609375,
-0.0070037841796875,
-0.03851318359375,
-0.01552581787109375,
0.036346435546875,
-0.044525146484375,
0.011993408203125,
0.0271148681640625,
-0.039581298828125,
-0.04974365234375,
-0.01271820068359375,
-0.0091400146484375,
0.043975830078125,
-0.01160430908203125,
0.0164947509765625,
0.0384521484375,
-0.0281219482421875,
-0.0194854736328125,
0.01238250732421875,
0.01261138916015625,
-0.01092529296875,
-0.0233612060546875,
-0.0129852294921875,
-0.018341064453125,
-0.01461029052734375,
-0.01306915283203125,
-0.0236663818359375,
0.019287109375,
-0.01047515869140625,
-0.033477783203125,
0.034942626953125,
0.0105743408203125,
0.03741455078125,
-0.05743408203125,
0.01220703125,
-0.032928466796875,
-0.0989990234375,
0.026153564453125,
-0.0026531219482421875,
0.040802001953125,
-0.01137542724609375,
0.00630950927734375,
0.029449462890625,
0.01483154296875,
0.02264404296875,
-0.0199432373046875,
-0.03729248046875,
-0.00992584228515625,
-0.01139068603515625,
0.056915283203125,
-0.037506103515625,
0.006206512451171875,
-0.01215362548828125,
0.035003662109375,
-0.0012788772583007812,
-0.017578125,
-0.028472900390625,
0.024627685546875,
0.015625,
0.000858306884765625,
-0.0517578125,
0.054595947265625,
-0.0538330078125,
0.0087432861328125,
-0.029083251953125,
0.0298309326171875,
0.046234130859375,
0.04534912109375,
0.00946807861328125,
-0.01035308837890625,
0.0273590087890625,
-0.002719879150390625,
0.0157623291015625,
0.01013946533203125,
0.0030994415283203125,
-0.033477783203125,
-0.006404876708984375,
0.0072174072265625,
-0.0007834434509277344,
0.01160430908203125,
0.0015201568603515625,
0.01262664794921875,
0.0189056396484375,
-0.034942626953125,
0.0157928466796875,
-0.05023193359375,
0.0266265869140625,
0.037628173828125,
-0.01326751708984375,
0.05963134765625,
0.064697265625,
-0.0091705322265625,
-0.0814208984375,
-0.0159149169921875,
-0.0099334716796875,
0.0193939208984375,
0.032684326171875,
-0.0215301513671875,
-0.00708770751953125,
-0.0272216796875,
-0.022705078125,
0.011810302734375,
0.040557861328125,
-0.031890869140625,
0.0288238525390625,
-0.036895751953125,
0.031890869140625,
0.01500701904296875,
0.00585174560546875,
0.037750244140625,
0.03472900390625,
0.01308441162109375,
0.012359619140625,
0.0243072509765625,
-0.0297698974609375,
-0.049530029296875,
0.035491943359375,
-0.0467529296875,
-0.04046630859375,
-0.006092071533203125,
0.01486968994140625,
0.03790283203125,
0.0134735107421875,
0.03021240234375,
0.0406494140625,
-0.00820159912109375,
0.002025604248046875,
-0.050384521484375,
0.0228118896484375,
0.01751708984375,
-0.040130615234375,
-0.009918212890625,
-0.001308441162109375,
0.012359619140625,
0.00724029541015625,
0.0195159912109375,
-0.006061553955078125,
-0.00989532470703125,
-0.0244903564453125,
0.00482177734375,
-0.005809783935546875,
0.049041748046875,
0.03057861328125,
0.014312744140625,
-0.004314422607421875,
0.01549530029296875,
-0.01074981689453125,
-0.038330078125,
-0.04852294921875,
-0.00717926025390625,
0.01343536376953125,
0.07269287109375,
-0.01496124267578125,
0.057220458984375,
-0.02972412109375,
-0.0379638671875,
-0.0189361572265625,
-0.02899169921875,
0.0472412109375,
-0.002166748046875,
-0.0400390625,
-0.0234527587890625,
0.0215911865234375,
-0.037506103515625,
-0.00562286376953125,
0.0936279296875,
0.0057830810546875,
0.032257080078125,
-0.004093170166015625,
0.0015087127685546875,
-0.009765625,
-0.08074951171875,
0.0027637481689453125,
0.04376220703125,
0.038421630859375,
0.046875,
0.004245758056640625,
0.0197601318359375,
0.00494384765625,
-0.08441162109375,
0.0027313232421875,
0.0019483566284179688,
-0.035888671875,
-0.0295867919921875,
0.0306549072265625,
-0.0189361572265625,
0.0265350341796875,
-0.058685302734375,
-0.00411224365234375,
0.0235443115234375,
-0.0157012939453125,
-0.0355224609375,
-0.01367950439453125,
0.0328369140625,
0.006893157958984375,
-0.0008759498596191406,
-0.005950927734375,
-0.0094757080078125,
-0.0477294921875,
-0.00463104248046875,
0.0024509429931640625,
-0.00023472309112548828,
-0.0218963623046875,
-0.040771484375,
0.05255126953125,
0.076171875,
-0.01922607421875,
0.007537841796875,
0.022308349609375,
-0.047576904296875,
-0.04107666015625,
0.00301361083984375,
0.004669189453125,
-0.0198516845703125,
0.0047454833984375,
0.0325927734375,
0.059112548828125,
-0.01398468017578125,
0.016632080078125,
0.01238250732421875,
0.0200958251953125,
-0.003658294677734375,
-0.014892578125,
-0.0548095703125,
0.0018720626831054688,
-0.009613037109375,
-0.041168212890625,
0.032257080078125,
-0.0005688667297363281,
-0.044647216796875,
-0.005023956298828125,
0.0244140625,
0.0037555694580078125,
-0.014251708984375,
0.0701904296875,
0.06005859375,
-0.0182952880859375,
0.01495361328125,
-0.0034313201904296875,
0.0026798248291015625,
0.0005984306335449219,
0.0012798309326171875,
0.0007653236389160156,
-0.004283905029296875,
-0.000014781951904296875,
0.035400390625,
0.02685546875,
0.0150146484375,
-0.0019664764404296875,
-0.01849365234375,
-0.035186767578125,
0.0158233642578125,
-0.033233642578125,
-0.0186614990234375,
-0.035736083984375,
-0.061614990234375,
-0.0218353271484375,
0.0197906494140625,
-0.0386962890625,
0.0238189697265625,
0.0499267578125,
0.0043792724609375,
0.045806884765625,
-0.011688232421875,
-0.019989013671875,
0.018890380859375,
-0.0267181396484375,
-0.032958984375,
-0.01445770263671875,
-0.03778076171875,
0.0027065277099609375,
0.051055908203125,
-0.01239013671875,
-0.0396728515625,
-0.026519775390625,
-0.038787841796875,
-0.00475311279296875,
-0.0080413818359375,
-0.01287841796875,
-0.0279693603515625,
-0.006916046142578125,
-0.007266998291015625,
-0.0389404296875,
-0.031219482421875,
0.028411865234375,
-0.0173492431640625,
-0.0153350830078125,
-0.03759765625,
-0.00201416015625,
0.0010080337524414062,
0.0106048583984375,
-0.03326416015625,
-0.0008420944213867188,
-0.059234619140625,
0.017974853515625,
0.0027675628662109375,
-0.0056610107421875,
-0.0145721435546875,
-0.007198333740234375,
-0.028076171875,
0.0063323974609375,
-0.01470184326171875,
0.0196533203125,
-0.0117645263671875,
-0.00048089027404785156,
0.004512786865234375,
-0.0304718017578125,
-0.0041351318359375,
0.0292816162109375,
-0.004436492919921875,
0.0018520355224609375,
-0.048065185546875,
-0.00004202127456665039,
-0.003589630126953125,
-0.026214599609375,
0.00400543212890625,
-0.01337432861328125,
0.04534912109375,
-0.00316619873046875,
0.0545654296875,
0.0301055908203125,
0.03997802734375,
-0.00879669189453125,
-0.033203125,
0.0027618408203125,
0.08502197265625,
-0.044189453125,
-0.01552581787109375,
-0.0089874267578125,
0.004787445068359375,
-0.03350830078125,
0.006053924560546875,
-0.0655517578125,
-0.00775146484375,
-0.10284423828125,
0.0267181396484375,
0.0066986083984375,
-0.027008056640625,
-0.037261962890625,
0.02838134765625,
-0.087158203125,
-0.04290771484375,
0.04156494140625,
-0.0011186599731445312,
0.0236358642578125,
0.003009796142578125,
0.0107879638671875,
-0.0254058837890625,
-0.003021240234375,
-0.01739501953125,
-0.01123046875,
0.0035915374755859375,
-0.043060302734375,
0.017578125,
0.022674560546875,
0.0047607421875,
-0.016632080078125,
0.0031375885009765625,
-0.02593994140625,
-0.0345458984375,
0.011016845703125,
0.044525146484375,
-0.0153350830078125,
-0.01155853271484375,
-0.023773193359375,
-0.0265960693359375,
-0.0307159423828125,
-0.032318115234375,
-0.0192718505859375,
-0.0233612060546875,
-0.0209197998046875,
-0.019500732421875,
0.03582763671875,
-0.002593994140625,
-0.053466796875,
-0.0504150390625,
-0.0198822021484375,
-0.0183258056640625,
-0.004520416259765625,
0.0023059844970703125,
-0.0208587646484375,
-0.0250396728515625,
-0.004608154296875,
-0.026275634765625,
-0.0474853515625,
0.031280517578125,
-0.0005335807800292969,
0.0212860107421875,
-0.0036029815673828125,
-0.003803253173828125,
0.00867462158203125,
0.0675048828125,
0.003162384033203125,
0.00933074951171875,
0.026336669921875,
-0.043365478515625,
0.04693603515625,
0.045684814453125,
0.0270843505859375,
-0.0297698974609375,
0.04193115234375,
-0.01079559326171875,
-0.02435302734375,
0.0416259765625,
-0.0131683349609375,
-0.01971435546875,
0.002140045166015625,
-0.0117645263671875,
0.02532958984375,
-0.035552978515625,
-0.0222015380859375,
0.049072265625,
-0.0511474609375,
-0.0129547119140625,
0.01107025146484375,
-0.0019855499267578125,
-0.0190582275390625,
0.044281005859375,
0.04193115234375,
-0.00946044921875,
-0.006900787353515625,
0.0024566650390625,
-0.0180816650390625,
-0.0287933349609375,
-0.0174407958984375,
-0.0338134765625,
0.004863739013671875,
0.00928497314453125,
-0.032623291015625,
-0.004413604736328125,
-0.01361083984375,
0.0738525390625,
0.0172576904296875,
-0.057342529296875,
0.0233306884765625,
-0.017852783203125,
0.07427978515625,
0.01033782958984375,
0.038177490234375,
0.04681396484375,
-0.034332275390625,
-0.006587982177734375,
-0.016387939453125,
-0.0026683807373046875,
-0.037322998046875,
-0.0421142578125,
0.02294921875,
0.013641357421875,
-0.01190185546875,
0.022369384765625,
0.0323486328125,
0.02032470703125,
0.01015472412109375,
-0.02093505859375,
0.01284027099609375,
-0.044219970703125,
0.06597900390625,
-0.0003552436828613281,
-0.0088043212890625,
0.0267181396484375,
0.033966064453125,
0.01230621337890625,
-0.043548583984375,
-0.0022029876708984375,
0.00986480712890625,
0.06512451171875,
0.0711669921875,
0.0009579658508300781,
-0.0262603759765625,
-0.0390625,
-0.0111846923828125,
0.06854248046875,
-0.00923919677734375,
-0.06390380859375,
-0.01538848876953125,
-0.012359619140625,
0.00989532470703125,
-0.043121337890625,
-0.0089569091796875,
0.004436492919921875,
-0.043182373046875,
-0.0157470703125,
0.03619384765625,
-0.037109375,
-0.021087646484375,
-0.01486968994140625,
-0.043365478515625,
-0.0065155029296875,
-0.0084228515625,
-0.035675048828125,
-0.02886962890625,
-0.0122528076171875,
-0.01812744140625,
0.06414794921875,
-0.0294189453125,
0.007511138916015625,
-0.01995849609375,
0.0182952880859375,
-0.001804351806640625,
0.0030345916748046875,
0.038604736328125,
0.01690673828125,
-0.05419921875,
-0.0152130126953125,
-0.0601806640625,
-0.02264404296875,
-0.065185546875,
-0.019378662109375,
-0.035675048828125,
0.026763916015625,
0.035736083984375,
0.0162811279296875,
-0.01061248779296875,
-0.048858642578125,
-0.03912353515625,
0.04595947265625,
0.07366943359375,
0.0848388671875,
-0.0281524658203125,
0.03851318359375,
-0.0008897781372070312,
-0.020416259765625,
-0.01255035400390625,
0.0156402587890625,
0.02227783203125,
0.007411956787109375,
0.0275726318359375,
0.0262603759765625,
-0.0199127197265625,
-0.0258331298828125,
0.00444793701171875,
-0.0357666015625,
0.037811279296875,
-0.0198516845703125,
0.036041259765625,
0.005535125732421875,
0.0208892822265625,
-0.0289306640625,
-0.0289306640625,
-0.038299560546875,
-0.0006909370422363281,
-0.0296478271484375,
0.00888824462890625,
0.080810546875,
-0.038238525390625,
0.002899169921875,
-0.0157928466796875,
-0.0187835693359375,
0.043914794921875,
0.007022857666015625,
-0.0181732177734375,
0.04412841796875,
0.051971435546875,
-0.007747650146484375,
0.0308837890625,
0.03997802734375,
0.01236724853515625,
-0.005611419677734375,
-0.01491546630859375,
0.0219268798828125,
0.0035152435302734375,
0.04364013671875,
0.0028228759765625,
0.0258331298828125,
0.045928955078125,
-0.016876220703125,
0.0188140869140625,
0.078857421875,
0.08245849609375,
-0.103271484375,
0.0195770263671875,
0.0273284912109375,
-0.00872802734375,
0.056793212890625,
0.01007080078125,
-0.031036376953125,
-0.041473388671875,
0.02789306640625,
-0.0306854248046875,
-0.01309967041015625,
0.00807952880859375,
-0.0176849365234375,
-0.01241302490234375,
-0.0020599365234375,
-0.0021419525146484375,
0.0165557861328125,
0.00904083251953125,
-0.01227569580078125,
0.00789642333984375,
0.0152130126953125,
0.0046844482421875,
-0.007137298583984375,
0.00954437255859375,
-0.036102294921875,
-0.0653076171875,
0.004589080810546875,
-0.0194244384765625,
-0.02587890625,
0.0430908203125,
-0.0035610198974609375,
0.00213623046875,
0.05609130859375,
-0.033355712890625,
0.04681396484375,
-0.01380157470703125,
0.0006623268127441406,
0.0081024169921875,
-0.0171661376953125,
-0.014801025390625,
0.007236480712890625,
-0.0229949951171875,
0.00894927978515625,
-0.018035888671875,
-0.018585205078125,
0.006511688232421875,
-0.01229095458984375,
0.05078125,
-0.0413818359375,
-0.007137298583984375,
0.0163116455078125,
-0.0092315673828125,
0.014129638671875,
-0.04010009765625,
0.0631103515625,
-0.061126708984375,
0.005092620849609375,
-0.0047149658203125,
0.02301025390625,
0.0013036727905273438,
-0.0242156982421875,
-0.05743408203125,
0.0367431640625,
-0.030059814453125,
0.038604736328125,
0.038818359375,
-0.005382537841796875,
-0.014404296875,
-0.0215301513671875,
-0.01296234130859375,
0.060150146484375,
0.0504150390625,
-0.032135009765625,
-0.0194854736328125,
-0.01678466796875,
-0.0178070068359375,
0.025787353515625,
0.014984130859375,
0.005496978759765625,
0.007080078125,
0.0014667510986328125,
0.019439697265625,
0.0092620849609375,
0.0006303787231445312,
0.0238189697265625,
-0.01270294189453125,
0.01861572265625,
-0.0202789306640625,
-0.0308685302734375,
0.0283050537109375,
-0.032928466796875,
-0.05841064453125,
0.0243377685546875,
0.0191497802734375,
0.0165863037109375,
0.023773193359375,
0.02056884765625,
-0.0217132568359375,
0.02227783203125,
0.02593994140625,
-0.0245819091796875,
-0.0173492431640625,
0.0017595291137695312,
-0.01351165771484375,
-0.0123748779296875,
0.035247802734375,
-0.040283203125,
0.0267333984375,
0.020172119140625,
-0.0008778572082519531,
-0.0230560302734375,
0.0164642333984375,
-0.0295867919921875,
-0.0572509765625,
-0.01178741455078125,
0.0296783447265625,
-0.059326171875,
0.0087738037109375,
-0.00394439697265625,
0.03826904296875,
-0.04150390625,
0.000005781650543212891,
0.0088958740234375,
0.02069091796875,
-0.0082244873046875,
-0.025238037109375,
0.00820159912109375,
-0.0016641616821289062,
-0.004119873046875,
0.0017538070678710938,
0.0027294158935546875,
-0.0254364013671875,
0.01617431640625,
-0.023834228515625,
-0.0108184814453125,
-0.0224456787109375,
-0.012420654296875,
-0.01047515869140625,
0.0352783203125,
0.0256805419921875,
0.0203704833984375,
-0.00963592529296875,
-0.03619384765625,
0.0037975311279296875,
0.0091552734375,
0.05078125,
-0.038604736328125,
0.0350341796875,
-0.0057525634765625,
-0.0184173583984375,
0.0155181884765625,
-0.01181793212890625,
0.018096923828125,
-0.025848388671875,
-0.0175628662109375,
-0.02545166015625,
0.024658203125,
-0.0005846023559570312,
-0.031158447265625,
0.01092529296875,
0.0085906982421875,
-0.039093017578125,
-0.037384033203125,
0.005901336669921875,
-0.020477294921875,
0.001407623291015625,
-0.007602691650390625,
0.0185546875,
0.041290283203125,
0.00926971435546875,
-0.01146697998046875,
0.03741455078125,
0.03515625,
0.030120849609375,
-0.005619049072265625,
0.029541015625,
-0.0189056396484375,
-0.0015172958374023438,
0.01654052734375,
-0.001712799072265625,
0.057342529296875,
-0.04248046875,
-0.0418701171875,
0.036956787109375,
-0.00799560546875,
-0.005779266357421875,
0.027801513671875,
-0.0026397705078125,
0.00897216796875,
0.0208587646484375,
0.004611968994140625,
-0.0010271072387695312,
-0.040313720703125,
0.038726806640625,
-0.0200653076171875,
-0.00972747802734375,
0.0150604248046875,
-0.032928466796875,
-0.00957489013671875,
-0.00372314453125,
0.00913238525390625,
0.0080108642578125,
-0.000003337860107421875,
0.033966064453125,
0.020263671875,
-0.059173583984375,
0.047210693359375,
-0.062103271484375,
-0.035003662109375,
0.00238037109375,
0.016845703125,
-0.0037212371826171875,
0.013519287109375,
-0.0748291015625,
0.0149383544921875,
0.0347900390625,
-0.02581787109375,
0.047882080078125,
0.0268707275390625,
-0.02264404296875,
-0.06353759765625,
-0.0127716064453125,
-0.00254058837890625,
-0.00762939453125,
0.02099609375,
0.019775390625,
0.024444580078125,
0.038360595703125,
-0.0223388671875,
0.0255126953125,
-0.01044464111328125,
-0.01418304443359375,
0.0248565673828125,
-0.0211944580078125,
0.0386962890625,
0.032073974609375,
-0.0423583984375,
0.03863525390625,
-0.0145721435546875,
-0.01739501953125,
0.031768798828125,
-0.0030384063720703125,
-0.0291595458984375,
0.02838134765625,
0.02392578125,
0.01428985595703125,
0.0124359130859375,
0.029327392578125,
-0.0224609375,
0.00919342041015625,
0.0113677978515625,
-0.0006394386291503906,
-0.01157379150390625,
0.0272979736328125,
-0.020965576171875,
0.0028228759765625,
-0.029754638671875,
0.01873779296875,
-0.0159149169921875,
-0.0660400390625,
-0.131591796875,
0.06640625,
0.0278472900390625,
0.0103607177734375,
-0.0975341796875,
0.07470703125,
-0.0254058837890625,
0.054443359375,
0.005680084228515625,
0.04296875,
-0.0247650146484375,
0.00527191162109375,
-0.05078125,
-0.03741455078125,
-0.05535888671875,
0.027374267578125,
-0.0609130859375,
-0.0251007080078125,
-0.014556884765625,
0.0157928466796875,
0.0278778076171875,
-0.06719970703125,
-0.028564453125,
-0.0158233642578125,
-0.0242156982421875,
0.0032291412353515625,
0.00774383544921875,
0.03057861328125,
-0.01444244384765625,
-0.054534912109375,
-0.010101318359375,
0.008544921875,
-0.015228271484375,
-0.0123138427734375,
0.0135650634765625,
0.020294189453125,
-0.0236663818359375,
-0.01580810546875,
-0.0201263427734375,
0.015228271484375,
-0.027313232421875,
0.004093170166015625,
-0.004436492919921875,
-0.0229034423828125,
0.0301055908203125,
-0.00026679039001464844,
-0.00765228271484375,
0.0202178955078125,
0.0274505615234375,
0.03094482421875,
-0.02813720703125,
0.072509765625,
-0.0169525146484375,
-0.004955291748046875,
0.0045013427734375,
0.03253173828125,
0.023895263671875,
-0.0258026123046875,
0.02691650390625,
0.01293182373046875,
0.02215576171875,
-0.004825592041015625,
0.0178070068359375,
0.0233154296875,
-0.0275421142578125,
-0.0035228729248046875,
-0.0017728805541992188,
-0.027130126953125,
-0.0016603469848632812,
0.0156402587890625,
0.08563232421875,
0.01201629638671875,
-0.02008056640625,
-0.07708740234375,
-0.050872802734375,
0.0266571044921875,
-0.041534423828125,
0.0032482147216796875,
-0.09503173828125,
-0.0205841064453125,
0.006763458251953125,
-0.0323486328125,
0.01332855224609375,
-0.0061492919921875,
-0.034881591796875,
0.0158843994140625,
0.004703521728515625,
0.0106658935546875,
-0.0533447265625,
0.0167236328125,
0.013031005859375,
-0.020172119140625,
-0.035491943359375,
-0.00830078125,
0.01468658447265625,
-0.0233612060546875,
-0.031829833984375,
0.0309906005859375,
-0.01418304443359375,
-0.0701904296875,
0.025054931640625,
-0.0124359130859375,
0.033355712890625,
-0.061431884765625,
-0.054534912109375,
-0.00826263427734375,
0.003997802734375,
-0.00040721893310546875,
0.01461029052734375,
0.00801849365234375,
0.01541900634765625,
0.026947021484375,
-0.02264404296875,
0.01279449462890625,
0.0716552734375,
-0.0167999267578125,
0.057830810546875,
0.026763916015625,
-0.047760009765625,
0.05072021484375,
-0.041107177734375,
-0.005023956298828125,
0.0099334716796875,
0.0474853515625,
-0.08551025390625,
0.062042236328125,
0.034423828125,
0.06695556640625,
0.0457763671875
] |
1d22f46f5283c215dd3d0d3cd7aefa98396a737d
|
Wordpress Stackexchange
Q: Simplest way to add a second html editor to the post/page admin? What's the simplest way to add a second HTML editor to the post/page admin and show the content in a template?
What I need is something like a custom field that supports html, but I don't need the options to name the field. And I don't need a visual editor like tinyMCE; just html will do.
What I'm thinking of is simply a small text-editor box that sits under the main visual/html editor and shows the resulting html in a template via <?php if ( function_exists('my_extra_editor_content') ) ... with the text/html in a styleable div.
Plugins like http://wordpress.org/extend/plugins/custom-field-template/ and http://wordpress.org/extend/plugins/developers-custom-fields/ offer too much in terms of functions and choices.
A: I use Bill Erickson's custom meta boxes
or plugin like Secondary HTML Content (probably the easiest solution)
|
Q: Simplest way to add a second html editor to the post/page admin? What's the simplest way to add a second HTML editor to the post/page admin and show the content in a template?
What I need is something like a custom field that supports html, but I don't need the options to name the field. And I don't need a visual editor like tinyMCE; just html will do.
What I'm thinking of is simply a small text-editor box that sits under the main visual/html editor and shows the resulting html in a template via <?php if ( function_exists('my_extra_editor_content') ) ... with the text/html in a styleable div.
Plugins like http://wordpress.org/extend/plugins/custom-field-template/ and http://wordpress.org/extend/plugins/developers-custom-fields/ offer too much in terms of functions and choices.
A: I use Bill Erickson's custom meta boxes
or plugin like Secondary HTML Content (probably the easiest solution)
A: I dont know if this will help but any Custom Field input will support html. I use html there all the time for headings and custom text in posts and pages.
A: For future travelers, the custom metaboxes are not a good idea for adding a second editor in pages. You should use wp_editor function inside the edit_page_form action so the form can be displayed. (You should use edit_form_advanced action for custom post types)
Then you can use the save_post and get the value of the editor from $_POST object. Here's an example:
add_action( 'edit_page_form', 'se24801_add_second_editor' );
function se24801_add_second_editor() {
echo '<h2>Second Content </h2>';
$content = get_post_meta( $post->ID, 'second_content', true );
wp_editor(
$content,
'second_content',
array(
'media_buttons' => true,
)
);
}
add_action( 'save_post', 'se24801_save_second_content' );
function se24801_save_second_content( $post_id ) {
if(isset( $_POST['second_content'] ) ) {
update_post_meta( $post_id, 'second_content', $_POST['second_content'] );
}
}
A: Have you tried a textarea in a meta box? Meta boxes are more user friendly.
About your requirement, it sounds like just a textarea will do. Please be aware that even full tinyMce based editors are possible using existing WordPress libraries.
A: Update from 2020. This is now extremely easily achievable with the Advanced Custom Fields plugin and using its provided function call the_field('field_ref') to insert in the page.
|
wordpress
|
{
"language": "en",
"length": 353,
"provenance": "stackexchange_00019.jsonl.gz:411889",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24801"
}
|
[
0.02020263671875,
-0.028106689453125,
0.01148223876953125,
-0.0179595947265625,
-0.0209197998046875,
-0.01678466796875,
0.01015472412109375,
-0.0308837890625,
-0.047760009765625,
0.040008544921875,
0.02056884765625,
0.0255889892578125,
-0.0277862548828125,
-0.0282440185546875,
-0.00653076171875,
-0.0306549072265625,
0.0211944580078125,
-0.006988525390625,
0.01641845703125,
-0.00664520263671875,
0.0025081634521484375,
0.00263214111328125,
0.016815185546875,
-0.021759033203125,
0.005245208740234375,
0.01541900634765625,
0.046051025390625,
-0.0238494873046875,
-0.0044097900390625,
-0.017608642578125,
0.01000213623046875,
0.00264739990234375,
0.0240631103515625,
0.000949859619140625,
-0.034027099609375,
-0.03192138671875,
-0.0188140869140625,
-0.0020771026611328125,
-0.025177001953125,
0.0196380615234375,
0.007843017578125,
-0.00496673583984375,
0.03515625,
0.0189361572265625,
0.0033721923828125,
-0.026458740234375,
0.0199127197265625,
-0.04412841796875,
-0.0033931732177734375,
-0.052520751953125,
0.0173797607421875,
-0.0028667449951171875,
0.046234130859375,
-0.03692626953125,
-0.01104736328125,
0.00616455078125,
0.001312255859375,
-0.047332763671875,
0.023590087890625,
0.00493621826171875,
0.01239013671875,
-0.026123046875,
0.0187530517578125,
-0.00032329559326171875,
0.004772186279296875,
0.0116729736328125,
-0.01354217529296875,
0.005077362060546875,
-0.0105438232421875,
-0.003787994384765625,
0.01220703125,
-0.039581298828125,
0.0211334228515625,
-0.045562744140625,
0.005352020263671875,
0.01690673828125,
0.0020351409912109375,
-0.01305389404296875,
0.00818634033203125,
-0.0236053466796875,
-0.01190948486328125,
0.033203125,
0.0231781005859375,
-0.0538330078125,
0.0008554458618164062,
-0.02740478515625,
-0.0300445556640625,
-0.00441741943359375,
0.006317138671875,
-0.001979827880859375,
-0.0024318695068359375,
-0.046844482421875,
0.0016183853149414062,
0.031646728515625,
-0.0026378631591796875,
-0.022491455078125,
0.01538848876953125,
-0.0101470947265625,
0.018096923828125,
0.022247314453125,
0.01274871826171875,
-0.06298828125,
0.0767822265625,
-0.025115966796875,
0.019927978515625,
0.044677734375,
-0.01555633544921875,
-0.004741668701171875,
0.04998779296875,
0.0066986083984375,
-0.0004596710205078125,
0.0190277099609375,
0.01421356201171875,
-0.0128021240234375,
0.0021457672119140625,
-0.00823211669921875,
-0.0029315948486328125,
0.02374267578125,
-0.0026836395263671875,
-0.004444122314453125,
-0.01459503173828125,
-0.00702667236328125,
0.01412200927734375,
-0.027740478515625,
-0.022064208984375,
-0.04449462890625,
-0.0269622802734375,
-0.00766754150390625,
0.0247039794921875,
-0.041778564453125,
-0.0203094482421875,
0.03411865234375,
0.0811767578125,
0.053466796875,
0.0266876220703125,
0.008209228515625,
0.01097869873046875,
-0.01494598388671875,
-0.00012671947479248047,
-0.0082244873046875,
-0.018890380859375,
0.01056671142578125,
0.0171356201171875,
-0.03448486328125,
-0.04949951171875,
0.04931640625,
0.0204925537109375,
0.0007033348083496094,
-0.01163482666015625,
-0.08935546875,
-0.0006570816040039062,
-0.0265045166015625,
-0.00450897216796875,
0.0221405029296875,
0.0211639404296875,
-0.0282135009765625,
0.00501251220703125,
-0.0166015625,
0.056243896484375,
-0.01314544677734375,
-0.0250701904296875,
-0.002193450927734375,
0.05633544921875,
-0.07720947265625,
-0.044891357421875,
0.0025787353515625,
-0.08489990234375,
-0.005100250244140625,
0.021240234375,
-0.0250396728515625,
0.05035400390625,
-0.004161834716796875,
0.01093292236328125,
0.01352691650390625,
-0.0039520263671875,
0.0106964111328125,
0.004329681396484375,
0.0223388671875,
0.00848388671875,
0.0223388671875,
0.0011234283447265625,
-0.028411865234375,
0.060699462890625,
-0.020355224609375,
-0.07257080078125,
0.043212890625,
-0.0245513916015625,
0.0577392578125,
0.051544189453125,
-0.0030879974365234375,
0.0103302001953125,
-0.00603485107421875,
0.0273895263671875,
-0.01934814453125,
-0.006053924560546875,
-0.0149993896484375,
-0.0253143310546875,
0.01519775390625,
-0.022003173828125,
-0.0254974365234375,
-0.008819580078125,
0.0082550048828125,
-0.01303863525390625,
0.018829345703125,
-0.027435302734375,
0.0019130706787109375,
-0.0143585205078125,
0.02349853515625,
0.00209808349609375,
-0.01198577880859375,
0.0083465576171875,
-0.0243682861328125,
0.005428314208984375,
-0.04632568359375,
-0.0584716796875,
-0.0009188652038574219,
-0.0164031982421875,
0.043487548828125,
0.0114288330078125,
0.0243682861328125,
0.04742431640625,
-0.044189453125,
0.0301361083984375,
0.0188446044921875,
0.042205810546875,
0.0166015625,
-0.03466796875,
-0.004802703857421875,
0.03338623046875,
0.02227783203125,
-0.03143310546875,
0.042236328125,
0.0182952880859375,
-0.005268096923828125,
-0.021820068359375,
0.005382537841796875,
-0.004840850830078125,
-0.0767822265625,
-0.007518768310546875,
0.0596923828125,
0.021575927734375,
0.032684326171875,
-0.002399444580078125,
0.030517578125,
0.09326171875,
-0.01052093505859375,
0.00798797607421875,
-0.0057525634765625,
0.0007348060607910156,
0.036712646484375,
-0.0187225341796875,
-0.023101806640625,
0.015838623046875,
-0.093994140625,
0.0022068023681640625,
0.038604736328125,
-0.00498199462890625,
0.006694793701171875,
0.0102081298828125,
-0.019378662109375,
0.0230865478515625,
-0.0090789794921875,
-0.03302001953125,
0.004978179931640625,
0.0716552734375,
0.02154541015625,
0.07470703125,
0.061370849609375,
-0.0243072509765625,
0.0028629302978515625,
-0.00548553466796875,
0.018829345703125,
-0.00007325410842895508,
-0.0213775634765625,
0.01418304443359375,
0.0253753662109375,
-0.02984619140625,
0.004150390625,
0.0199432373046875,
-0.01465606689453125,
-0.0180511474609375,
0.048187255859375,
-0.0191192626953125,
-0.0265045166015625,
-0.0222320556640625,
-0.0323486328125,
-0.00939178466796875,
-0.04083251953125,
0.0311431884765625,
0.0055084228515625,
0.035400390625,
0.013092041015625,
-0.0224761962890625,
0.036773681640625,
0.0028476715087890625,
-0.021575927734375,
0.0546875,
-0.03387451171875,
0.04541015625,
-0.0093841552734375,
0.0419921875,
0.048431396484375,
0.0007963180541992188,
-0.01422882080078125,
-0.01016998291015625,
-0.0020732879638671875,
-0.022918701171875,
0.0172576904296875,
-0.00937652587890625,
-0.02392578125,
-0.04412841796875,
-0.009552001953125,
0.02484130859375,
0.0054168701171875,
0.0037784576416015625,
-0.0271453857421875,
-0.0151519775390625,
0.0242767333984375,
-0.05450439453125,
-0.0233306884765625,
-0.0150299072265625,
-0.057373046875,
-0.038848876953125,
0.031280517578125,
-0.052581787109375,
0.00716400146484375,
0.06903076171875,
-0.00759124755859375,
0.0054473876953125,
-0.04498291015625,
-0.0288848876953125,
-0.06103515625,
-0.0791015625,
-0.0294342041015625,
0.00467681884765625,
0.01080322265625,
0.0220794677734375,
0.00981903076171875,
0.003986358642578125,
-0.033599853515625,
0.043975830078125,
-0.0263824462890625,
-0.0161895751953125,
0.05340576171875,
0.0112457275390625,
-0.038116455078125,
-0.01142120361328125,
0.00447845458984375,
-0.0302886962890625,
-0.00681304931640625,
0.0171051025390625,
-0.0263214111328125,
-0.0399169921875,
0.01079559326171875,
0.0018749237060546875,
-0.019073486328125,
0.0291748046875,
0.0256500244140625,
0.019622802734375,
-0.031951904296875,
0.029937744140625,
0.001735687255859375,
-0.0048828125,
-0.019561767578125,
-0.044769287109375,
-0.00689697265625,
-0.007335662841796875,
0.01171875,
-0.006378173828125,
0.002292633056640625,
0.057037353515625,
-0.0075531005859375,
-0.052276611328125,
-0.0233917236328125,
-0.0362548828125,
-0.019378662109375,
-0.020721435546875,
-0.03826904296875,
0.01108551025390625,
-0.025482177734375,
-0.016204833984375,
-0.017852783203125,
0.01061248779296875,
-0.00901031494140625,
-0.059661865234375,
0.054168701171875,
-0.004962921142578125,
0.04803466796875,
-0.07666015625,
-0.047332763671875,
-0.043060302734375,
0.10986328125,
-0.03802490234375,
-0.00391387939453125,
-0.0031909942626953125,
0.00017535686492919922,
-0.003665924072265625,
-0.022674560546875,
-0.04736328125,
-0.028289794921875,
-0.058929443359375,
0.009857177734375,
-0.00325775146484375,
-0.01529693603515625,
-0.040740966796875,
0.0697021484375,
-0.049591064453125,
-0.0149078369140625,
0.0252685546875,
-0.075927734375,
-0.00679779052734375,
0.044769287109375,
-0.033660888671875,
0.00618743896484375,
-0.0219879150390625,
-0.058929443359375,
-0.03387451171875,
-0.01001739501953125,
-0.03131103515625,
0.0248870849609375,
0.0029125213623046875,
0.0203857421875,
-0.030029296875,
0.01267242431640625,
-0.0242919921875,
0.01357269287109375,
-0.005962371826171875,
0.03948974609375,
-0.0152435302734375,
-0.02850341796875,
-0.0011377334594726562,
-0.050384521484375,
0.004375457763671875,
-0.00649261474609375,
-0.0033740997314453125,
0.01654052734375,
-0.046783447265625,
-0.043975830078125,
-0.02520751953125,
-0.0238800048828125,
-0.0305633544921875,
-0.020050048828125,
-0.0382080078125,
-0.0097808837890625,
-0.0236053466796875,
-0.01456451416015625,
-0.0012559890747070312,
-0.043060302734375,
0.02490234375,
0.00926971435546875,
-0.00482177734375,
0.0126495361328125,
0.036285400390625,
0.0201873779296875,
-0.0200042724609375,
-0.04241943359375,
-0.00794219970703125,
0.042022705078125,
0.01560211181640625,
0.00988006591796875,
0.041107177734375,
-0.0172271728515625,
-0.007080078125,
0.029632568359375,
0.01038360595703125,
-0.0531005859375,
0.041717529296875,
0.0020236968994140625,
0.000743865966796875,
0.0027256011962890625,
-0.00982666015625,
0.038116455078125,
-0.01296234130859375,
-0.015106201171875,
0.0010232925415039062,
-0.029266357421875,
0.01239013671875,
0.0214691162109375,
0.0229644775390625,
-0.0294036865234375,
-0.0055084228515625,
-0.0258331298828125,
0.010223388671875,
0.0513916015625,
0.052520751953125,
-0.0025539398193359375,
0.0081329345703125,
0.055755615234375,
0.006504058837890625,
0.023956298828125,
-0.009979248046875,
0.01551055908203125,
0.007808685302734375,
0.03656005859375,
-0.007236480712890625,
0.023712158203125,
-0.010467529296875,
0.034576416015625,
0.0159149169921875,
-0.033294677734375,
-0.02349853515625,
0.007320404052734375,
0.036865234375,
-0.024749755859375,
-0.021728515625,
0.004718780517578125,
0.0233001708984375,
0.001972198486328125,
0.0377197265625,
0.020599365234375,
-0.01727294921875,
-0.00788116455078125,
-0.044403076171875,
0.004913330078125,
-0.0200653076171875,
0.0125579833984375,
0.03033447265625,
0.00860595703125,
0.0087127685546875,
-0.0248870849609375,
0.058990478515625,
0.01297760009765625,
0.040374755859375,
0.0286712646484375,
-0.00673675537109375,
0.0034961700439453125,
-0.00881195068359375,
-0.058624267578125,
-0.0169525146484375,
-0.0223236083984375,
-0.0011386871337890625,
0.055999755859375,
-0.0084228515625,
-0.0016698837280273438,
0.0017528533935546875,
-0.04388427734375,
-0.0243377685546875,
0.00244903564453125,
0.03204345703125,
-0.0291595458984375,
0.024993896484375,
0.04498291015625,
-0.013946533203125,
0.00841522216796875,
0.0026397705078125,
0.0250091552734375,
-0.00701141357421875,
0.0184173583984375,
0.020538330078125,
-0.032470703125,
-0.0106964111328125,
-0.004978179931640625,
-0.01557159423828125,
0.00637054443359375,
0.01152801513671875,
-0.0743408203125,
-0.060211181640625,
-0.0014781951904296875,
0.003387451171875,
0.04876708984375,
-0.0297698974609375,
0.007518768310546875,
-0.0160369873046875,
0.004581451416015625,
-0.06646728515625,
0.0129241943359375,
0.041778564453125,
0.04913330078125,
-0.029388427734375,
-0.0204925537109375,
-0.055908203125,
-0.030914306640625,
-0.046142578125,
-0.0257720947265625,
-0.02545166015625,
0.0236968994140625,
0.02532958984375,
0.027557373046875,
0.00881195068359375,
-0.036956787109375,
0.00846099853515625,
0.0121307373046875,
0.004085540771484375,
0.0577392578125,
-0.01013946533203125,
0.059173583984375,
-0.0128631591796875,
0.0792236328125,
-0.0011749267578125,
0.019805908203125,
-0.014739990234375,
-0.026580810546875,
0.040130615234375,
-0.0421142578125,
-0.0435791015625,
-0.037445068359375,
-0.02264404296875,
-0.00391387939453125,
-0.0006237030029296875,
-0.0201568603515625,
0.00547027587890625,
-0.00933074951171875,
0.0013561248779296875,
-0.0058135986328125,
0.0037555694580078125,
0.01395416259765625,
-0.0265655517578125,
0.058837890625,
-0.04400634765625,
0.0019359588623046875,
0.00699615478515625,
0.01873779296875,
0.040802001953125,
-0.03204345703125,
0.019256591796875,
0.028900146484375,
-0.00498199462890625,
0.0229949951171875,
0.01715087890625,
0.0011796951293945312,
0.03802490234375,
0.006839752197265625,
0.028961181640625,
0.0003292560577392578,
-0.007083892822265625,
-0.009765625,
0.012176513671875,
0.04522705078125,
0.0015249252319335938,
-0.0007243156433105469,
0.0380859375,
-0.00792694091796875,
0.0232391357421875,
0.0482177734375,
0.07769775390625,
-0.0657958984375,
0.0180511474609375,
0.03131103515625,
-0.036529541015625,
-0.004985809326171875,
-0.03924560546875,
-0.020477294921875,
-0.05426025390625,
0.08551025390625,
0.01239013671875,
-0.00864410400390625,
0.03326416015625,
-0.008880615234375,
-0.02020263671875,
-0.0310821533203125,
0.0230712890625,
0.030303955078125,
0.0229339599609375,
0.04412841796875,
-0.00644683837890625,
0.05035400390625,
-0.0198516845703125,
0.0151214599609375,
0.0018148422241210938,
-0.021331787109375,
-0.05865478515625,
0.0014448165893554688,
0.00965118408203125,
-0.007213592529296875,
0.0347900390625,
0.0172882080078125,
0.0142974853515625,
0.04498291015625,
-0.007015228271484375,
0.01049041748046875,
0.0122833251953125,
0.006744384765625,
0.004787445068359375,
-0.0177764892578125,
-0.0162200927734375,
-0.0298614501953125,
-0.01348114013671875,
0.0024261474609375,
-0.0338134765625,
-0.0188751220703125,
0.00020110607147216797,
0.0205535888671875,
0.057647705078125,
0.01015472412109375,
-0.04998779296875,
0.0303192138671875,
-0.01323699951171875,
-0.0194854736328125,
-0.004428863525390625,
-0.039703369140625,
-0.05499267578125,
-0.0134124755859375,
-0.03643798828125,
-0.059051513671875,
0.0243377685546875,
-0.0215911865234375,
-0.07391357421875,
0.1424560546875,
0.04498291015625,
0.0244140625,
0.0263824462890625,
0.04681396484375,
-0.10015869140625,
-0.018096923828125,
-0.0103912353515625,
0.005706787109375,
0.021820068359375,
-0.00630950927734375,
-0.0204620361328125,
-0.00588226318359375,
-0.0203094482421875,
0.03955078125,
0.0121002197265625,
0.00228118896484375,
-0.0251312255859375,
0.004741668701171875,
0.0241241455078125,
-0.0037555694580078125,
-0.030731201171875,
0.054656982421875,
0.0199432373046875,
-0.00667572021484375,
0.029327392578125,
0.0126800537109375,
0.03424072265625,
-0.0130767822265625,
-0.0155487060546875,
0.0274810791015625,
0.00298309326171875,
-0.00479888916015625,
0.00647735595703125,
-0.0154876708984375,
-0.0088653564453125,
0.0022830963134765625,
0.005268096923828125,
-0.0576171875,
-0.007762908935546875,
0.0294036865234375,
0.0136871337890625,
-0.003078460693359375,
-0.02789306640625,
-0.0255584716796875,
0.0285186767578125,
0.01442718505859375,
-0.01456451416015625,
-0.028839111328125,
0.002410888671875,
-0.041778564453125,
0.0031528472900390625,
-0.0041961669921875,
0.04888916015625,
-0.02764892578125,
0.0188446044921875,
-0.054107666015625,
-0.012451171875,
-0.09814453125,
-0.00832366943359375,
0.02630615234375,
0.0267333984375,
-0.0234832763671875,
-0.0174407958984375,
0.00997161865234375,
0.0052642822265625,
-0.0090789794921875,
-0.0140380859375,
-0.024200439453125,
0.038665771484375,
0.05316162109375,
-0.024017333984375,
-0.011474609375,
0.002857208251953125,
-0.0020427703857421875,
-0.00820159912109375,
-0.019073486328125,
0.021759033203125,
0.006877899169921875,
-0.04278564453125,
-0.012176513671875,
0.0215911865234375,
0.049560546875,
0.037200927734375,
0.03656005859375,
0.0021724700927734375,
-0.0201873779296875,
-0.03997802734375,
0.035736083984375,
0.004032135009765625,
0.041473388671875,
-0.041656494140625,
-0.02294921875,
0.0130767822265625,
0.031951904296875,
0.01219940185546875,
0.036712646484375,
0.032623291015625,
0.007190704345703125,
-0.023773193359375,
-0.01052093505859375,
-0.0170440673828125,
-0.0316162109375,
0.0248260498046875,
-0.05712890625,
0.0189971923828125,
-0.00836944580078125,
-0.01152801513671875,
-0.011871337890625,
-0.041961669921875,
0.055999755859375,
-0.034942626953125,
-0.014556884765625,
0.0024280548095703125,
-0.0430908203125,
0.040191650390625,
-0.0231475830078125,
0.026580810546875,
-0.010772705078125,
-0.0704345703125,
0.0198211669921875,
-0.020599365234375,
-0.08465576171875,
0.0296630859375,
0.041748046875,
-0.07171630859375,
0.040283203125,
0.0321044921875,
-0.00972747802734375,
-0.0287933349609375,
-0.0140380859375,
0.06304931640625,
0.01512908935546875,
-0.0159912109375,
0.0386962890625,
-0.033538818359375,
-0.029205322265625,
-0.02813720703125,
0.056396484375,
0.0219268798828125,
0.02838134765625,
-0.01195526123046875,
0.049285888671875,
-0.02606201171875,
0.037109375,
-0.031494140625,
-0.041534423828125,
0.050018310546875,
0.01153564453125,
-0.0017709732055664062,
-0.0231170654296875,
-0.0079803466796875,
0.02545166015625,
0.0110626220703125,
-0.03826904296875,
-0.007366180419921875,
0.0006914138793945312,
-0.00193023681640625,
-0.0167388916015625,
0.0047607421875,
-0.0193023681640625,
-0.046478271484375,
-0.047149658203125,
0.0046234130859375,
0.017425537109375,
0.0210418701171875,
-0.0267791748046875,
0.0127105712890625,
0.0185089111328125,
-0.0261993408203125,
0.003299713134765625,
-0.0247344970703125,
-0.0028324127197265625,
0.032379150390625,
0.0131072998046875,
-0.035064697265625,
0.061798095703125,
0.005176544189453125,
0.0247802734375,
0.0236968994140625,
0.059356689453125,
0.0276641845703125,
-0.064453125,
0.01470184326171875,
0.0019321441650390625,
0.04345703125,
-0.005924224853515625,
0.0006775856018066406,
-0.006557464599609375,
0.0001748800277709961,
0.007038116455078125,
0.0034160614013671875,
-0.0173492431640625,
-0.059600830078125,
0.0029850006103515625,
0.020660400390625,
-0.0278778076171875,
-0.029632568359375,
-0.0673828125,
0.007480621337890625,
0.037872314453125,
-0.010833740234375,
-0.02984619140625,
0.01180267333984375,
-0.033660888671875,
0.049102783203125,
0.00005233287811279297,
0.0011396408081054688,
0.004230499267578125,
0.038543701171875,
-0.01415252685546875,
-0.0177001953125,
-0.034027099609375,
0.020172119140625,
-0.04547119140625,
0.0300445556640625,
0.0265350341796875,
-0.020263671875,
0.01084136962890625,
0.0273895263671875,
0.0070648193359375,
0.07708740234375,
-0.006206512451171875,
-0.01227569580078125,
0.01727294921875,
0.0013952255249023438,
-0.030517578125,
-0.053924560546875,
0.0200042724609375,
-0.043487548828125,
-0.0101776123046875,
-0.0017747879028320312,
0.0074310302734375,
0.0128936767578125,
-0.0572509765625,
-0.108154296875,
0.01129913330078125,
-0.0104217529296875,
-0.04095458984375,
0.0007963180541992188,
-0.0188140869140625,
-0.0252227783203125,
-0.0015954971313476562,
-0.00421905517578125,
-0.0211639404296875,
0.0072784423828125,
0.036895751953125,
0.0049896240234375,
-0.00661468505859375,
0.044036865234375,
-0.006256103515625,
-0.06011962890625,
-0.024810791015625,
-0.0291748046875,
-0.0238800048828125,
0.0289459228515625,
-0.01910400390625,
0.0164947509765625,
0.0241851806640625,
-0.062286376953125,
-0.053314208984375,
-0.0284881591796875,
-0.0018405914306640625,
-0.0160980224609375,
-0.0478515625,
-0.05865478515625,
-0.0382080078125,
0.0880126953125,
0.0748291015625,
0.024658203125,
-0.0224609375,
0.007610321044921875,
-0.05438232421875,
-0.0228271484375,
-0.01061248779296875,
0.0025653839111328125,
-0.044830322265625,
0.00717926025390625,
0.024383544921875,
-0.01508331298828125,
0.01318359375,
0.002597808837890625,
-0.043853759765625,
0.0006737709045410156,
0.0117034912109375,
0.031341552734375,
-0.102294921875,
0.033233642578125,
0.09967041015625,
-0.049407958984375,
0.031951904296875,
0.0038776397705078125,
-0.0140838623046875,
0.07080078125,
0.0040435791015625,
0.0128021240234375,
-0.0584716796875,
-0.043670654296875,
0.056304931640625,
-0.034332275390625,
0.05633544921875,
-0.06573486328125,
-0.046295166015625,
-0.0215606689453125,
0.01070404052734375,
-0.01290130615234375,
-0.0159759521484375,
-0.01395416259765625,
0.04681396484375,
0.0124969482421875,
0.072265625,
-0.03466796875,
-0.0168609619140625,
-0.046844482421875,
0.0328369140625,
-0.015045166015625,
0.01220703125,
0.0090179443359375,
-0.0008511543273925781,
0.0006422996520996094,
0.01959228515625,
0.0004944801330566406,
-0.048675537109375,
0.0159149169921875,
0.01080322265625,
0.0267486572265625,
0.0202484130859375
] |
3f930ea1d393d3c793af299b66588567d6d493bf
|
Wordpress Stackexchange
Q: List page for custom post type? I have created a custom post type in wordpress and have 90% of the functionality working correctly, but I am having a bit of trouble trying to create a custom listing page template.
Currently it is using the default index.php page to bring out all the posts and I have tried to override this by creating a page-post-type.php page but didn't seem to work.
What would be the best method for creating a custom post type listing page?
Cheers,
Jamie.
A: I think you want to create archive page for custom post type, create archive-{post_type}.php and it'll display you custom post type content.
Also see codex: http://codex.wordpress.org/Template_Hierarchy#Custom_Post_Types_display
|
Q: List page for custom post type? I have created a custom post type in wordpress and have 90% of the functionality working correctly, but I am having a bit of trouble trying to create a custom listing page template.
Currently it is using the default index.php page to bring out all the posts and I have tried to override this by creating a page-post-type.php page but didn't seem to work.
What would be the best method for creating a custom post type listing page?
Cheers,
Jamie.
A: I think you want to create archive page for custom post type, create archive-{post_type}.php and it'll display you custom post type content.
Also see codex: http://codex.wordpress.org/Template_Hierarchy#Custom_Post_Types_display
|
wordpress
|
{
"language": "en",
"length": 114,
"provenance": "stackexchange_00019.jsonl.gz:411891",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24808"
}
|
[
0.047210693359375,
0.008331298828125,
0.0084991455078125,
0.0182037353515625,
0.0196533203125,
-0.0379638671875,
0.08837890625,
-0.0238494873046875,
-0.043426513671875,
-0.021026611328125,
0.0169525146484375,
-0.003154754638671875,
-0.048828125,
-0.058807373046875,
0.03826904296875,
-0.051422119140625,
0.043426513671875,
-0.018218994140625,
0.0455322265625,
-0.0279541015625,
0.01274871826171875,
-0.007061004638671875,
0.0806884765625,
0.05859375,
0.023162841796875,
-0.0109100341796875,
0.034515380859375,
-0.01035308837890625,
0.0282440185546875,
0.00502777099609375,
0.022003173828125,
-0.0215911865234375,
0.0157928466796875,
0.01155853271484375,
0.0166778564453125,
0.02996826171875,
0.0135650634765625,
0.003437042236328125,
0.0283050537109375,
0.0067291259765625,
0.01390838623046875,
-0.00847625732421875,
0.025421142578125,
-0.0118560791015625,
0.00031065940856933594,
-0.0142669677734375,
0.00157928466796875,
-0.040985107421875,
0.00968170166015625,
-0.054107666015625,
0.006305694580078125,
0.0089874267578125,
0.03045654296875,
-0.0489501953125,
-0.019439697265625,
-0.00203704833984375,
0.0178680419921875,
-0.01446533203125,
0.034515380859375,
-0.06805419921875,
-0.0260772705078125,
-0.0135498046875,
0.053619384765625,
0.05267333984375,
-0.003612518310546875,
-0.00966644287109375,
0.00839996337890625,
0.0217742919921875,
-0.050384521484375,
-0.01169586181640625,
0.0309295654296875,
-0.02728271484375,
0.029754638671875,
-0.01334381103515625,
-0.006595611572265625,
-0.01560211181640625,
0.0194549560546875,
0.0098419189453125,
-0.0003669261932373047,
-0.0017271041870117188,
0.0011568069458007812,
-0.0019893646240234375,
-0.0222930908203125,
-0.045928955078125,
0.0026607513427734375,
-0.0199127197265625,
-0.0111083984375,
-0.00919342041015625,
-0.00119781494140625,
0.0019550323486328125,
-0.01435089111328125,
-0.01302337646484375,
0.011077880859375,
0.03662109375,
-0.01407623291015625,
-0.00835418701171875,
0.0126800537109375,
0.03179931640625,
0.002353668212890625,
0.035858154296875,
0.00782012939453125,
-0.0447998046875,
0.07818603515625,
-0.049957275390625,
0.015838623046875,
0.0231475830078125,
0.003124237060546875,
0.0260467529296875,
0.05096435546875,
0.0272674560546875,
0.0026378631591796875,
0.0288543701171875,
-0.0037937164306640625,
0.0003230571746826172,
-0.037628173828125,
-0.00627899169921875,
-0.0283203125,
-0.0115966796875,
-0.00743865966796875,
-0.0129241943359375,
0.017913818359375,
0.037445068359375,
0.04937744140625,
-0.0390625,
-0.0196685791015625,
0.00917816162109375,
-0.0072479248046875,
-0.097412109375,
0.0546875,
0.017974853515625,
-0.04046630859375,
-0.0007581710815429688,
0.029083251953125,
0.01418304443359375,
0.01226806640625,
-0.01297760009765625,
0.003871917724609375,
-0.027008056640625,
-0.00937652587890625,
0.0234527587890625,
-0.004024505615234375,
-0.0384521484375,
0.0053558349609375,
-0.000720977783203125,
0.0147247314453125,
0.042877197265625,
0.00720977783203125,
0.0012989044189453125,
-0.009307861328125,
-0.0236968994140625,
-0.007061004638671875,
-0.0259246826171875,
0.031707763671875,
-0.00901031494140625,
0.017120361328125,
-0.0693359375,
0.0191650390625,
-0.050048828125,
0.0302581787109375,
-0.034515380859375,
0.0135498046875,
-0.0064697265625,
-0.0160369873046875,
-0.032012939453125,
-0.048583984375,
0.0247802734375,
-0.01922607421875,
-0.007556915283203125,
0.0239410400390625,
-0.03521728515625,
0.03936767578125,
-0.014404296875,
0.00423431396484375,
0.0164031982421875,
0.014556884765625,
0.004833221435546875,
0.0016832351684570312,
-0.02978515625,
0.0224456787109375,
0.038299560546875,
0.0001678466796875,
-0.022735595703125,
0.00525665283203125,
0.0112762451171875,
-0.078369140625,
0.0673828125,
0.01541900634765625,
0.076904296875,
0.005401611328125,
0.01064300537109375,
0.054046630859375,
0.0215301513671875,
-0.06201171875,
0.0124969482421875,
0.0034389495849609375,
-0.01186370849609375,
-0.00672149658203125,
-0.01319122314453125,
-0.0098114013671875,
0.01406097412109375,
-0.048095703125,
0.0253753662109375,
-0.0189666748046875,
0.061279296875,
0.005229949951171875,
0.0225982666015625,
-0.004791259765625,
0.025390625,
0.034027099609375,
0.00595855712890625,
0.0111083984375,
0.0013866424560546875,
-0.0007047653198242188,
-0.049041748046875,
-0.04345703125,
0.0237274169921875,
-0.0008687973022460938,
0.0011053085327148438,
-0.0143280029296875,
-0.014312744140625,
-0.00395965576171875,
-0.01324462890625,
-0.01375579833984375,
0.0433349609375,
0.05645751953125,
0.016326904296875,
-0.039337158203125,
-0.01497650146484375,
-0.007633209228515625,
0.045013427734375,
-0.10797119140625,
0.03070068359375,
0.01512908935546875,
-0.003490447998046875,
-0.0518798828125,
-0.0172271728515625,
-0.021636962890625,
-0.0156402587890625,
-0.00414276123046875,
0.06414794921875,
0.0102691650390625,
0.0428466796875,
-0.00067138671875,
0.03741455078125,
0.05029296875,
0.01018524169921875,
0.018310546875,
0.009368896484375,
0.010162353515625,
0.01800537109375,
0.0227203369140625,
0.0030517578125,
0.029815673828125,
-0.0246124267578125,
0.03497314453125,
0.0273590087890625,
0.0113372802734375,
0.0110931396484375,
0.01001739501953125,
-0.0196533203125,
0.004741668701171875,
0.00658416748046875,
-0.0225677490234375,
0.01275634765625,
0.07147216796875,
0.015960693359375,
0.06927490234375,
0.04571533203125,
-0.036773681640625,
0.003780364990234375,
0.0010309219360351562,
-0.0088043212890625,
0.003650665283203125,
-0.01036834716796875,
-0.00811004638671875,
-0.0064849853515625,
-0.04742431640625,
0.0138702392578125,
0.0247344970703125,
-0.0189666748046875,
0.00040650367736816406,
0.026397705078125,
-0.0191192626953125,
-0.0072479248046875,
0.0023937225341796875,
-0.08087158203125,
-0.00914764404296875,
0.038818359375,
-0.0263671875,
-0.0140228271484375,
0.002376556396484375,
0.00662994384765625,
-0.044281005859375,
0.0228424072265625,
0.0045318603515625,
-0.01885986328125,
0.027130126953125,
-0.0728759765625,
0.0640869140625,
-0.058624267578125,
0.046600341796875,
0.065673828125,
-0.0312042236328125,
0.0187530517578125,
-0.007266998291015625,
0.025726318359375,
0.0083465576171875,
0.0158843994140625,
-0.0107879638671875,
-0.06317138671875,
0.0078277587890625,
-0.0093994140625,
0.03271484375,
0.040313720703125,
0.040435791015625,
-0.00215911865234375,
0.026519775390625,
0.041351318359375,
-0.0049896240234375,
-0.0565185546875,
0.051605224609375,
-0.05010986328125,
0.012847900390625,
-0.03399658203125,
-0.02197265625,
-0.028717041015625,
-0.01166534423828125,
-0.002048492431640625,
-0.001697540283203125,
-0.047149658203125,
-0.036712646484375,
-0.0809326171875,
-0.08209228515625,
-0.05950927734375,
0.01520538330078125,
0.0118865966796875,
0.011322021484375,
0.0606689453125,
0.006359100341796875,
-0.08001708984375,
0.0046844482421875,
0.034942626953125,
-0.02435302734375,
0.027587890625,
0.031158447265625,
-0.0200347900390625,
0.030120849609375,
0.0135955810546875,
0.026947021484375,
0.03753662109375,
-0.027862548828125,
-0.038299560546875,
-0.048370361328125,
-0.013031005859375,
-0.0273590087890625,
0.0295257568359375,
0.0631103515625,
-0.023162841796875,
-0.0016622543334960938,
-0.049285888671875,
-0.037139892578125,
-0.00453948974609375,
-0.034881591796875,
-0.0159912109375,
0.00616455078125,
-0.004344940185546875,
-0.050140380859375,
0.0484619140625,
-0.01641845703125,
0.01776123046875,
0.0311431884765625,
-0.03692626953125,
0.024139404296875,
0.000004947185516357422,
-0.00539398193359375,
0.0008606910705566406,
0.03533935546875,
-0.0158233642578125,
0.00543975830078125,
0.016632080078125,
0.00832366943359375,
-0.002696990966796875,
0.004909515380859375,
-0.0249481201171875,
-0.1192626953125,
0.06134033203125,
-0.007232666015625,
-0.008056640625,
-0.0306396484375,
-0.0328369140625,
0.02618408203125,
0.126220703125,
-0.030914306640625,
-0.00563812255859375,
-0.006805419921875,
0.012298583984375,
-0.016082763671875,
-0.03802490234375,
-0.03753662109375,
-0.00557708740234375,
-0.06890869140625,
0.038543701171875,
0.0096282958984375,
-0.01080322265625,
-0.0280303955078125,
0.003467559814453125,
-0.041717529296875,
-0.032470703125,
0.036468505859375,
-0.056488037109375,
0.0033588409423828125,
0.007404327392578125,
-0.007579803466796875,
-0.043701171875,
-0.0192108154296875,
-0.038818359375,
-0.0740966796875,
-0.01528167724609375,
-0.0194854736328125,
0.038238525390625,
0.00852203369140625,
-0.022216796875,
-0.0062255859375,
0.0229949951171875,
0.048370361328125,
0.0271759033203125,
0.008392333984375,
-0.024017333984375,
0.01073455810546875,
-0.0280914306640625,
0.0141448974609375,
-0.03607177734375,
-0.0235137939453125,
-0.01128387451171875,
-0.003635406494140625,
0.03094482421875,
-0.01544952392578125,
-0.0013322830200195312,
-0.00014793872833251953,
-0.014068603515625,
-0.0465087890625,
-0.03826904296875,
-0.0008335113525390625,
0.02099609375,
0.038177490234375,
-0.0301513671875,
-0.043121337890625,
-0.05950927734375,
0.0210723876953125,
0.01507568359375,
-0.004688262939453125,
0.027496337890625,
0.044189453125,
0.00429534912109375,
-0.0210723876953125,
-0.08648681640625,
0.0136566162109375,
0.03143310546875,
-0.023468017578125,
0.038360595703125,
0.020477294921875,
0.01024627685546875,
-0.001018524169921875,
-0.01485443115234375,
-0.0221405029296875,
0.005741119384765625,
0.0452880859375,
0.002597808837890625,
-0.0026950836181640625,
-0.00176239013671875,
-0.03131103515625,
0.022857666015625,
0.03399658203125,
0.01020050048828125,
-0.0302581787109375,
0.0116729736328125,
0.04998779296875,
-0.0153045654296875,
0.0129241943359375,
-0.03704833984375,
-0.016693115234375,
0.0025119781494140625,
-0.0155181884765625,
0.006145477294921875,
0.0034275054931640625,
-0.00705718994140625,
0.004306793212890625,
-0.0234222412109375,
0.0247650146484375,
0.0258636474609375,
0.0146484375,
0.0084686279296875,
0.0321044921875,
0.03851318359375,
0.017730712890625,
0.0084228515625,
0.0049285888671875,
0.01296234130859375,
-0.01261138916015625,
-0.0474853515625,
-0.01100921630859375,
-0.0058746337890625,
-0.0186309814453125,
0.0207061767578125,
0.0232391357421875,
0.0288848876953125,
0.0645751953125,
0.00002008676528930664,
-0.0005669593811035156,
0.0168304443359375,
0.04315185546875,
-0.0419921875,
0.0012111663818359375,
0.018798828125,
-0.0123291015625,
-0.034637451171875,
0.06561279296875,
0.0088653564453125,
0.01050567626953125,
-0.01239013671875,
0.05078125,
0.037872314453125,
0.03472900390625,
0.0187225341796875,
-0.0010976791381835938,
-0.040557861328125,
0.031402587890625,
-0.0352783203125,
-0.04010009765625,
-0.019256591796875,
0.00562286376953125,
0.036712646484375,
-0.0294036865234375,
-0.0234832763671875,
0.040771484375,
-0.042755126953125,
-0.0170135498046875,
-0.00983428955078125,
-0.0233154296875,
-0.02374267578125,
-0.0235748291015625,
-0.01222991943359375,
0.024688720703125,
-0.0096435546875,
-0.03424072265625,
0.046112060546875,
-0.029876708984375,
0.0438232421875,
-0.03271484375,
-0.0130615234375,
0.0158538818359375,
0.01128387451171875,
-0.040802001953125,
-0.0178680419921875,
0.00372314453125,
-0.0687255859375,
-0.037322998046875,
0.00640106201171875,
-0.0009169578552246094,
0.0113372802734375,
-0.026275634765625,
0.032745361328125,
0.00322723388671875,
-0.0258941650390625,
-0.0017414093017578125,
0.0264892578125,
0.0235137939453125,
0.01042938232421875,
-0.014984130859375,
0.004852294921875,
-0.042633056640625,
-0.022857666015625,
-0.01708984375,
-0.039215087890625,
-0.0374755859375,
-0.00801849365234375,
0.01751708984375,
0.003543853759765625,
-0.005893707275390625,
-0.041595458984375,
-0.05126953125,
0.02386474609375,
0.05035400390625,
0.001438140869140625,
-0.010009765625,
0.054718017578125,
-0.006683349609375,
0.037811279296875,
0.00997161865234375,
0.034454345703125,
-0.01023101806640625,
-0.026123046875,
0.01666259765625,
-0.0604248046875,
-0.035003662109375,
-0.0261077880859375,
-0.02764892578125,
0.047607421875,
0.04608154296875,
-0.0017566680908203125,
-0.00817108154296875,
-0.036041259765625,
0.004245758056640625,
-0.029876708984375,
0.055206298828125,
-0.040435791015625,
-0.0177001953125,
-0.0135955810546875,
0.0025482177734375,
0.0196075439453125,
0.0185699462890625,
-0.012786865234375,
0.0018405914306640625,
0.0034351348876953125,
0.020751953125,
-0.0210418701171875,
-0.04510498046875,
0.04998779296875,
0.0309295654296875,
-0.0038738250732421875,
0.038909912109375,
-0.0075836181640625,
0.01224517822265625,
0.026458740234375,
0.0197906494140625,
-0.0120391845703125,
-0.0283050537109375,
0.05914306640625,
0.01035308837890625,
-0.05242919921875,
0.0164947509765625,
-0.052703857421875,
0.0005931854248046875,
0.07891845703125,
0.07061767578125,
-0.124267578125,
0.002857208251953125,
0.032073974609375,
0.00980377197265625,
0.004871368408203125,
-0.01824951171875,
-0.0007967948913574219,
-0.0263671875,
0.042083740234375,
-0.0213165283203125,
-0.03778076171875,
-0.0153656005859375,
-0.0121002197265625,
0.00678253173828125,
-0.00665283203125,
0.06842041015625,
0.026763916015625,
0.019439697265625,
-0.01837158203125,
-0.0172271728515625,
0.02294921875,
0.01360321044921875,
0.033935546875,
-0.022705078125,
-0.00414276123046875,
-0.019256591796875,
0.0218353271484375,
-0.04339599609375,
-0.0143890380859375,
0.03863525390625,
0.024261474609375,
-0.0158843994140625,
0.0250701904296875,
-0.02142333984375,
0.0273895263671875,
-0.01300048828125,
-0.0215606689453125,
-0.01373291015625,
-0.026336669921875,
-0.00690460205078125,
0.01080322265625,
-0.024383544921875,
0.0189056396484375,
-0.022430419921875,
-0.0149383544921875,
-0.020294189453125,
-0.01381683349609375,
0.12548828125,
-0.08001708984375,
-0.0021953582763671875,
0.01421356201171875,
0.01727294921875,
-0.00031685829162597656,
-0.006938934326171875,
-0.006320953369140625,
-0.0239105224609375,
0.0120391845703125,
-0.0150299072265625,
-0.0189361572265625,
0.00968170166015625,
-0.0089111328125,
-0.031494140625,
0.0792236328125,
-0.02642822265625,
0.0036716461181640625,
0.019927978515625,
0.038238525390625,
0.00530242919921875,
0.037628173828125,
-0.0282440185546875,
0.049560546875,
0.0202789306640625,
0.065185546875,
-0.05072021484375,
-0.023895263671875,
0.02374267578125,
0.06146240234375,
0.042236328125,
0.01245880126953125,
-0.0135498046875,
0.0030689239501953125,
0.050537109375,
0.038818359375,
0.00020241737365722656,
0.0256195068359375,
-0.0258331298828125,
0.01282501220703125,
-0.0021915435791015625,
-0.0211639404296875,
0.0235748291015625,
0.0041656494140625,
-0.047332763671875,
0.007610321044921875,
0.01238250732421875,
-0.007457733154296875,
0.00733184814453125,
-0.0251617431640625,
-0.04071044921875,
0.004863739013671875,
0.020416259765625,
0.030426025390625,
-0.01058197021484375,
0.0484619140625,
0.03521728515625,
-0.0270538330078125,
-0.005580902099609375,
-0.033294677734375,
0.049163818359375,
0.0085601806640625,
0.0080108642578125,
0.0283660888671875,
0.01059722900390625,
0.0190582275390625,
-0.032196044921875,
0.0020599365234375,
0.00628662109375,
-0.00926971435546875,
0.031524658203125,
0.0251922607421875,
-0.003326416015625,
-0.052947998046875,
0.0198974609375,
0.060546875,
0.060089111328125,
-0.053070068359375,
-0.06695556640625,
0.01482391357421875,
0.0143585205078125,
-0.0009236335754394531,
0.0229034423828125,
0.00778961181640625,
0.00527191162109375,
0.054595947265625,
-0.06768798828125,
-0.0087890625,
-0.005695343017578125,
0.041290283203125,
-0.039215087890625,
-0.05963134765625,
-0.00920867919921875,
-0.02227783203125,
-0.0186004638671875,
-0.01186370849609375,
0.012176513671875,
0.036407470703125,
0.0093231201171875,
0.0230255126953125,
-0.01372528076171875,
-0.00798797607421875,
0.0037479400634765625,
0.01947021484375,
-0.005596160888671875,
0.01149749755859375,
-0.00949859619140625,
-0.029205322265625,
0.0274505615234375,
0.026397705078125,
0.01410675048828125,
0.017791748046875,
0.035369873046875,
0.00759124755859375,
-0.0165863037109375,
0.000690460205078125,
0.032684326171875,
-0.0240478515625,
-0.0478515625,
-0.04248046875,
-0.0174713134765625,
-0.0020580291748046875,
-0.00478363037109375,
0.04443359375,
-0.001964569091796875,
0.005657196044921875,
0.006103515625,
0.03271484375,
0.0110321044921875,
-0.024658203125,
0.047607421875,
-0.01137542724609375,
0.07086181640625,
0.0195770263671875,
-0.056243896484375,
-0.033782958984375,
-0.0145263671875,
-0.02801513671875,
0.03839111328125,
0.044586181640625,
-0.001247406005859375,
0.000141143798828125,
0.033843994140625,
0.004123687744140625,
-0.0010242462158203125,
-0.01064300537109375,
0.016357421875,
0.0124969482421875,
0.028564453125,
0.034515380859375,
-0.0582275390625,
-0.03790283203125,
-0.0205841064453125,
0.03546142578125,
0.0015897750854492188,
0.087890625,
-0.015960693359375,
0.00995635986328125,
-0.004673004150390625,
0.03863525390625,
-0.037261962890625,
-0.0220489501953125,
0.04425048828125,
0.0022220611572265625,
0.015289306640625,
-0.00992584228515625,
-0.049346923828125,
-0.00821685791015625,
0.0316162109375,
-0.05706787109375,
-0.0276641845703125,
0.00614166259765625,
0.022705078125,
-0.013519287109375,
-0.01202392578125,
-0.041839599609375,
-0.00240325927734375,
-0.00542449951171875,
-0.0240478515625,
0.01447296142578125,
-0.029296875,
-0.0082550048828125,
0.033172607421875,
-0.004802703857421875,
-0.048431396484375,
0.0255279541015625,
-0.0699462890625,
0.052764892578125,
0.037200927734375,
0.0221405029296875,
-0.0501708984375,
0.01203155517578125,
-0.01104736328125,
0.00263214111328125,
0.01258087158203125,
0.044219970703125,
0.0103912353515625,
-0.00774383544921875,
0.0057220458984375,
-0.033843994140625,
-0.0013265609741210938,
-0.03277587890625,
-0.0221710205078125,
-0.0029048919677734375,
0.004276275634765625,
-0.00981903076171875,
0.0225830078125,
-0.0240936279296875,
-0.027801513671875,
0.020721435546875,
0.026519775390625,
-0.0080413818359375,
0.019287109375,
-0.0535888671875,
-0.00960540771484375,
0.0274658203125,
0.0084075927734375,
-0.0501708984375,
0.04681396484375,
-0.0193939208984375,
-0.003467559814453125,
-0.00699615478515625,
-0.01213836669921875,
0.00189971923828125,
0.01910400390625,
-0.007755279541015625,
0.0052947998046875,
-0.0218505859375,
-0.0130615234375,
0.0083770751953125,
0.018341064453125,
0.04498291015625,
-0.0277099609375,
-0.038970947265625,
0.021453857421875,
0.0116729736328125,
0.075927734375,
0.0273895263671875,
-0.00618743896484375,
0.01393890380859375,
-0.005390167236328125,
-0.03375244140625,
-0.05072021484375,
0.02911376953125,
-0.0736083984375,
-0.031280517578125,
0.014862060546875,
0.0142364501953125,
0.05181884765625,
-0.0128173828125,
-0.0546875,
0.094970703125,
-0.0230712890625,
-0.01806640625,
-0.03369140625,
0.0225830078125,
0.00861358642578125,
-0.022308349609375,
-0.0108642578125,
-0.005069732666015625,
-0.0156707763671875,
0.0116424560546875,
0.00940704345703125,
0.06646728515625,
0.01021575927734375,
0.030609130859375,
-0.03216552734375,
-0.01227569580078125,
-0.048004150390625,
0.007114410400390625,
0.00311279296875,
-0.020416259765625,
0.022369384765625,
0.02593994140625,
-0.060028076171875,
-0.0168914794921875,
-0.0030918121337890625,
0.047393798828125,
0.0189056396484375,
-0.022064208984375,
-0.048553466796875,
-0.051544189453125,
0.01116943359375,
0.0254058837890625,
0.0179901123046875,
0.01546478271484375,
-0.0052947998046875,
-0.062255859375,
-0.054656982421875,
-0.0159912109375,
0.022796630859375,
-0.056884765625,
0.0139312744140625,
0.0263824462890625,
-0.025604248046875,
0.01187896728515625,
-0.005550384521484375,
-0.024749755859375,
0.0111236572265625,
-0.0025463104248046875,
-0.0159454345703125,
-0.041107177734375,
0.0165863037109375,
0.034820556640625,
-0.0283050537109375,
-0.00458526611328125,
-0.01270294189453125,
0.004596710205078125,
0.00917816162109375,
-0.037567138671875,
-0.037933349609375,
-0.005100250244140625,
-0.01873779296875,
0.02197265625,
-0.0196533203125,
0.02447509765625,
-0.0231170654296875,
0.02117919921875,
0.0006041526794433594,
0.01885986328125,
-0.01299285888671875,
0.00286865234375,
-0.0233306884765625,
0.069091796875,
-0.0011911392211914062,
0.056732177734375,
0.00372314453125,
0.0300750732421875,
-0.01702880859375,
0.06634521484375,
-0.0198211669921875,
-0.0157623291015625,
-0.0094757080078125,
-0.0390625,
0.0143585205078125,
-0.0404052734375,
-0.020111083984375,
-0.015625,
0.002864837646484375,
-0.0335693359375,
-0.045135498046875,
0.021148681640625
] |
2f5b995f917a6a1cf4116788cd27017e90446d8f
|
Wordpress Stackexchange
Q: wp enqueue inline script due to dependancies Is there a way to use wp_enqueue_script() for inline scripts?
I'm doing this because my inline script depends on another script and i would like the flexibility of inserting it after it's loaded.
Also, It's an inline script because i'm passing php variables into the javascript (like theme path, etc)
Thanks in advance.
A: Just don't make it an inline script and then pass the dynamic parameters to it as variables. Otto has written a great guide on how to do this effectively.
WordPress 3.3 will also make this more powerful: https://core.trac.wordpress.org/ticket/11520
|
Q: wp enqueue inline script due to dependancies Is there a way to use wp_enqueue_script() for inline scripts?
I'm doing this because my inline script depends on another script and i would like the flexibility of inserting it after it's loaded.
Also, It's an inline script because i'm passing php variables into the javascript (like theme path, etc)
Thanks in advance.
A: Just don't make it an inline script and then pass the dynamic parameters to it as variables. Otto has written a great guide on how to do this effectively.
WordPress 3.3 will also make this more powerful: https://core.trac.wordpress.org/ticket/11520
A: This solution is similar to @scribu's answer, but it follows the form of wp_enquque_script(), and will place the script in the header if its dependencies are included in the header.
/**
* Enqueue inline Javascript. @see wp_enqueue_script().
*
* KNOWN BUG: Inline scripts cannot be enqueued before
* any inline scripts it depends on, (unless they are
* placed in header, and the dependant in footer).
*
* @param string $handle Identifying name for script
* @param string $src The JavaScript code
* @param array $deps (optional) Array of script names on which this script depends
* @param bool $in_footer (optional) Whether to enqueue the script before </head> or before </body>
*
* @return null
*/
function enqueue_inline_script( $handle, $js, $deps = array(), $in_footer = false ){
// Callback for printing inline script.
$cb = function()use( $handle, $js ){
// Ensure script is only included once.
if( wp_script_is( $handle, 'done' ) )
return;
// Print script & mark it as included.
echo "<script type=\"text/javascript\" id=\"js-$handle\">\n$js\n</script>\n";
global $wp_scripts;
$wp_scripts->done[] = $handle;
};
// (`wp_print_scripts` is called in header and footer, but $cb has re-inclusion protection.)
$hook = $in_footer ? 'wp_print_footer_scripts' : 'wp_print_scripts';
// If no dependencies, simply hook into header or footer.
if( empty($deps)){
add_action( $hook, $cb );
return;
}
// Delay printing script until all dependencies have been included.
$cb_maybe = function()use( $deps, $in_footer, $cb, &$cb_maybe ){
foreach( $deps as &$dep ){
if( !wp_script_is( $dep, 'done' ) ){
// Dependencies not included in head, try again in footer.
if( ! $in_footer ){
add_action( 'wp_print_footer_scripts', $cb_maybe, 11 );
}
else{
// Dependencies were not included in `wp_head` or `wp_footer`.
}
return;
}
}
call_user_func( $cb );
};
add_action( $hook, $cb_maybe, 0 );
}
// Usage
enqueue_inline_script('test','alert(\'enqueue inline script test\');',array( 'jquery'));
Note: this uses use of anonymous functions, but for PHP versions prior to 5.3 this can be easily converted to a class.
A: Since WordPress 4.5 you can use wp_add_inline_script():
add_action( 'wp_enqueue_scripts', 'cyb_enqueue_scripts' );
function cyb_enqueue_scripts() {
wp_enqueue_script( 'myscript', 'url/to/myscript.js', array(), '1.0' );
wp_add_inline_script( 'myscript', 'Your inline javascript code gos here' );
}
A: The better way I've found is using wp_localize_script(), as @scribu suggested.
Usually, I decided to use in-line Javascript because I needed to provide some PHP variables to my script. This can be solved with wp_localize_script(). I'll provide an example:
You have an array $aFoo with some options and need to pass it to a script.
$aFoo = array( 'option1' => $option1Value, 'option2' => $option2Value );
Using in-line script:
<script>
var oFoo = {};
oFoo.option1 = <?php echo $aFoo['option1'] ?>;
oFoo.option2 = <?php echo $aFoo['option2'] ?>;
//do some stuff with oFoo
</script>
Using wp_localize_script():
wp_register_script( 'script_name', 'pathToScript/script.js', array( 'jquery' )); //if jQuery is not needed just remove the last argument.
wp_localize_script( 'script_name', 'object_name', $aFoo ); //pass 'object_name' to script.js
wp_enqueue_script( 'script_name' );
Then, pathToScript/script.js would be:
var oFoo = {};
oFoo.option1 = object_name.option1;
oFoo.option2 = object_name.option2;
//do some stuff with oFoo (no PHP needed)
In this way you don't need in-line scripts nevermore.
A: Well, you have wp_localize_script(), but that's only for passing data.
Otherwise, you can do this:
function print_my_inline_script() {
if ( wp_script_is( 'some-script-handle', 'done' ) ) {
?>
<script type="text/javascript">
// js code goes here
</script>
<?php
}
}
add_action( 'wp_footer', 'print_my_inline_script' );
The idea is that you shouldn't rely on your inline script being printed exactly after the script it depends on, but later.
A: scribu is absolutely correct. Anyway, I want to add some info:
I want my function to output a script once, no matter how often it's called. It is a content-related function, so I cannot wait for any hooks. I used scribus infos and some reading of the WP core to come up with this:
function print_script_once() {
if(!wp_script_is('my-handle', 'done')) {
echo "<script>alert('once!');</script>";
global $wp_scripts;
$wp_scripts->done[] = 'my-handle';
}
}
add_action('get_footer', print_script_once);
Using this method I'm able to print an inline script once. In my case I have a function that creates a share-button and needs one script to be executed for all buttons. But only once.
|
wordpress
|
{
"language": "en",
"length": 768,
"provenance": "stackexchange_00019.jsonl.gz:411903",
"question_score": "40",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24851"
}
|
[
0.0219879150390625,
-0.01305389404296875,
-0.06610107421875,
-0.06329345703125,
0.0189666748046875,
-0.04327392578125,
0.0156402587890625,
0.055908203125,
-0.0068817138671875,
-0.03240966796875,
-0.08453369140625,
0.03033447265625,
-0.090576171875,
0.0119781494140625,
0.01396942138671875,
-0.0853271484375,
0.039947509765625,
-0.0030498504638671875,
0.0110626220703125,
-0.005802154541015625,
-0.0019664764404296875,
0.02825927734375,
-0.01168060302734375,
0.1065673828125,
0.0202789306640625,
-0.0030975341796875,
0.06695556640625,
-0.0167694091796875,
0.01110076904296875,
-0.00598907470703125,
0.0308074951171875,
-0.0303192138671875,
-0.0010223388671875,
0.03936767578125,
-0.01361846923828125,
-0.01348876953125,
0.027587890625,
0.020355224609375,
0.040313720703125,
-0.011871337890625,
0.01282501220703125,
0.00018012523651123047,
-0.0015058517456054688,
0.0253753662109375,
-0.01143646240234375,
-0.05242919921875,
0.01428985595703125,
-0.032958984375,
-0.0019254684448242188,
0.046478271484375,
0.0194244384765625,
0.0201263427734375,
0.0264892578125,
0.037078857421875,
0.0115203857421875,
0.017730712890625,
0.0101470947265625,
-0.026031494140625,
0.00499725341796875,
0.05419921875,
0.0029773712158203125,
0.0286102294921875,
-0.008331298828125,
-0.053436279296875,
-0.038726806640625,
-0.013031005859375,
-0.007171630859375,
0.00209808349609375,
-0.0297698974609375,
-0.0251617431640625,
0.042877197265625,
0.00167083740234375,
-0.0062408447265625,
-0.00533294677734375,
-0.0117034912109375,
0.00542449951171875,
0.03131103515625,
0.029571533203125,
-0.00676727294921875,
0.024261474609375,
0.007114410400390625,
-0.003948211669921875,
-0.0297393798828125,
-0.01329803466796875,
-0.00284576416015625,
0.0153656005859375,
-0.01031494140625,
-0.010406494140625,
-0.0037899017333984375,
-0.04388427734375,
-0.0231170654296875,
-0.015960693359375,
-0.00737762451171875,
0.006053924560546875,
-0.036407470703125,
-0.01031494140625,
0.0364990234375,
0.0296783447265625,
0.01136016845703125,
0.0271148681640625,
0.02532958984375,
-0.05780029296875,
0.053192138671875,
-0.022308349609375,
-0.0283203125,
0.0302886962890625,
-0.01543426513671875,
-0.03558349609375,
-0.0052490234375,
0.03460693359375,
0.006290435791015625,
-0.050628662109375,
0.037200927734375,
0.005802154541015625,
-0.0277252197265625,
-0.03204345703125,
-0.02398681640625,
0.036468505859375,
0.00005751848220825195,
0.029815673828125,
0.014129638671875,
0.028106689453125,
-0.0164031982421875,
-0.0238800048828125,
0.02557373046875,
-0.008148193359375,
-0.00580596923828125,
-0.0118865966796875,
0.0114898681640625,
0.034332275390625,
-0.0208587646484375,
-0.0145111083984375,
0.060638427734375,
0.023345947265625,
0.006748199462890625,
-0.0323486328125,
0.048187255859375,
0.00470733642578125,
0.0158843994140625,
-0.004901885986328125,
-0.004558563232421875,
-0.036895751953125,
-0.01473236083984375,
-0.00444793701171875,
0.01419830322265625,
0.028350830078125,
0.02532958984375,
0.01392364501953125,
-0.004974365234375,
-0.0523681640625,
0.039703369140625,
-0.017669677734375,
0.0126953125,
0.010406494140625,
0.0006842613220214844,
-0.02447509765625,
0.0036468505859375,
-0.01617431640625,
0.0247344970703125,
-0.020111083984375,
-0.051361083984375,
0.0193328857421875,
0.02313232421875,
-0.04107666015625,
-0.01788330078125,
-0.0472412109375,
0.036346435546875,
0.0132293701171875,
0.029815673828125,
0.037445068359375,
-0.01654052734375,
-0.042999267578125,
0.0170440673828125,
0.01335906982421875,
-0.024749755859375,
0.0400390625,
0.00321197509765625,
0.00020444393157958984,
0.03240966796875,
-0.00479888916015625,
-0.025848388671875,
-0.034820556640625,
0.032989501953125,
-0.03216552734375,
-0.051513671875,
0.0027828216552734375,
0.01262664794921875,
0.04608154296875,
0.0201416015625,
0.012054443359375,
0.05474853515625,
-0.00423431396484375,
0.01910400390625,
0.01189422607421875,
0.0160369873046875,
-0.022613525390625,
0.020904541015625,
0.00609588623046875,
0.006519317626953125,
-0.060089111328125,
0.024658203125,
-0.0277557373046875,
0.0208282470703125,
-0.03338623046875,
-0.068359375,
-0.00424957275390625,
-0.0229034423828125,
0.037750244140625,
0.005695343017578125,
0.00769805908203125,
0.00164794921875,
0.0117034912109375,
-0.01171875,
-0.038116455078125,
-0.051422119140625,
0.006000518798828125,
-0.015960693359375,
0.07037353515625,
0.007038116455078125,
0.022979736328125,
0.036865234375,
-0.043731689453125,
0.031982421875,
-0.00522613525390625,
-0.003353118896484375,
-0.01739501953125,
-0.012939453125,
-0.0233001708984375,
0.02166748046875,
-0.01971435546875,
0.042388916015625,
0.028717041015625,
0.037841796875,
0.08941650390625,
0.0158538818359375,
-0.01727294921875,
-0.01171112060546875,
-0.084716796875,
0.0119781494140625,
0.037384033203125,
0.0275421142578125,
0.05450439453125,
-0.007457733154296875,
0.01593017578125,
0.005664825439453125,
-0.058929443359375,
0.002735137939453125,
0.006526947021484375,
-0.01522064208984375,
0.008880615234375,
0.0009775161743164062,
0.016265869140625,
0.031646728515625,
-0.04254150390625,
0.0010862350463867188,
0.0596923828125,
0.034881591796875,
0.01715087890625,
0.011688232421875,
0.01593017578125,
-0.0014371871948242188,
0.04620361328125,
-0.00638580322265625,
0.0187530517578125,
0.017547607421875,
-0.034576416015625,
0.0065155029296875,
-0.0051422119140625,
0.0015344619750976562,
-0.0274200439453125,
0.025848388671875,
-0.015106201171875,
-0.009063720703125,
-0.0041961669921875,
0.035491943359375,
-0.0345458984375,
-0.021453857421875,
0.00679779052734375,
-0.0032501220703125,
-0.0204315185546875,
-0.0025787353515625,
0.0183563232421875,
0.0245208740234375,
-0.01617431640625,
-0.01398468017578125,
-0.021148681640625,
0.046234130859375,
0.01421356201171875,
0.017608642578125,
0.0007910728454589844,
0.034332275390625,
0.0200653076171875,
0.00818634033203125,
0.005977630615234375,
0.0369873046875,
-0.0296173095703125,
0.045257568359375,
0.0009965896606445312,
0.00846099853515625,
-0.0013303756713867188,
0.0122833251953125,
0.04022216796875,
-0.0146331787109375,
0.0190582275390625,
-0.00753021240234375,
0.04571533203125,
0.01220703125,
0.00836944580078125,
0.00820159912109375,
-0.028045654296875,
-0.04046630859375,
-0.0240325927734375,
0.032135009765625,
0.056793212890625,
0.019775390625,
-0.03070068359375,
0.005107879638671875,
0.04791259765625,
-0.068603515625,
-0.09368896484375,
-0.0013217926025390625,
-0.051361083984375,
0.032440185546875,
-0.0028934478759765625,
-0.00928497314453125,
-0.02545166015625,
0.0294647216796875,
0.011505126953125,
0.0136871337890625,
-0.01947021484375,
-0.06768798828125,
-0.0340576171875,
-0.06787109375,
0.0166473388671875,
-0.01280975341796875,
-0.00902557373046875,
0.0160980224609375,
0.04693603515625,
0.0129547119140625,
-0.0628662109375,
0.004444122314453125,
-0.0087738037109375,
-0.034698486328125,
0.01140594482421875,
0.02099609375,
-0.0693359375,
-0.04608154296875,
-0.01377105712890625,
-0.0177154541015625,
-0.0152435302734375,
0.034423828125,
0.0131988525390625,
-0.00423431396484375,
-0.0008082389831542969,
0.0261077880859375,
0.005512237548828125,
-0.018829345703125,
-0.00005233287811279297,
0.01213836669921875,
-0.04754638671875,
-0.00588226318359375,
0.01085662841796875,
-0.0144805908203125,
-0.02630615234375,
-0.0256805419921875,
-0.009063720703125,
0.0025463104248046875,
0.01419830322265625,
0.004573822021484375,
-0.01389312744140625,
-0.05072021484375,
-0.0213775634765625,
0.09466552734375,
0.0181884765625,
0.03411865234375,
0.00402069091796875,
0.024444580078125,
-0.0160064697265625,
0.04425048828125,
0.00969696044921875,
0.01201629638671875,
-0.0199127197265625,
-0.01202392578125,
-0.07159423828125,
0.002002716064453125,
-0.00024628639221191406,
-0.01363372802734375,
0.04254150390625,
-0.0060882568359375,
0.00814056396484375,
0.0038509368896484375,
0.05401611328125,
-0.0147552490234375,
0.0007500648498535156,
0.01454925537109375,
0.00635528564453125,
-0.05755615234375,
-0.0187225341796875,
-0.069091796875,
0.0036678314208984375,
0.038238525390625,
0.01100921630859375,
-0.02215576171875,
0.01038360595703125,
-0.04974365234375,
0.05133056640625,
0.004421234130859375,
-0.004955291748046875,
0.04620361328125,
-0.06201171875,
-0.0182342529296875,
0.0261688232421875,
-0.022918701171875,
-0.021820068359375,
-0.0257110595703125,
-0.0264434814453125,
-0.075439453125,
-0.0012865066528320312,
-0.05950927734375,
0.07012939453125,
0.019256591796875,
-0.007335662841796875,
-0.01027679443359375,
0.0259246826171875,
0.00024962425231933594,
0.03143310546875,
0.0310516357421875,
0.0236968994140625,
-0.0158233642578125,
-0.007022857666015625,
0.02410888671875,
-0.042266845703125,
-0.01390838623046875,
-0.020904541015625,
-0.0628662109375,
0.005672454833984375,
0.0005946159362792969,
0.0191192626953125,
0.035888671875,
-0.02508544921875,
-0.013427734375,
0.0035457611083984375,
-0.004779815673828125,
0.01293182373046875,
0.018890380859375,
-0.031951904296875,
-0.017242431640625,
-0.03387451171875,
0.0287017822265625,
-0.01322174072265625,
0.0174102783203125,
-0.0102691650390625,
0.07666015625,
0.015960693359375,
-0.0128173828125,
0.028167724609375,
0.0017528533935546875,
0.0209503173828125,
-0.004001617431640625,
0.04254150390625,
0.004787445068359375,
-0.01340484619140625,
0.01605224609375,
0.0091094970703125,
-0.0207672119140625,
-0.0095367431640625,
0.0498046875,
0.053497314453125,
0.0021152496337890625,
-0.0181884765625,
0.039703369140625,
-0.01222991943359375,
0.0273590087890625,
-0.00007212162017822266,
-0.030670166015625,
0.01003265380859375,
0.048858642578125,
-0.0231475830078125,
-0.0029544830322265625,
-0.052520751953125,
-0.044769287109375,
0.0025882720947265625,
-0.0303497314453125,
0.0364990234375,
0.029632568359375,
-0.00424957275390625,
0.051605224609375,
0.06195068359375,
0.0085296630859375,
0.020050048828125,
0.0117340087890625,
-0.0034427642822265625,
0.041748046875,
0.023101806640625,
0.01690673828125,
0.007747650146484375,
-0.00449371337890625,
0.034637451171875,
0.01093292236328125,
-0.0297393798828125,
-0.0352783203125,
0.007476806640625,
0.06292724609375,
0.0019388198852539062,
-0.004608154296875,
0.0179290771484375,
0.024261474609375,
-0.006519317626953125,
0.01067352294921875,
-0.005859375,
0.01303863525390625,
-0.0065765380859375,
0.03582763671875,
0.003040313720703125,
-0.0025920867919921875,
-0.0149993896484375,
0.0853271484375,
-0.002475738525390625,
0.04327392578125,
-0.0194854736328125,
0.02752685546875,
0.0094451904296875,
0.036865234375,
0.013580322265625,
-0.00489044189453125,
-0.007396697998046875,
0.0259246826171875,
-0.006988525390625,
-0.0301666259765625,
0.04327392578125,
0.019378662109375,
0.04193115234375,
-0.01904296875,
-0.045806884765625,
0.033905029296875,
-0.04949951171875,
-0.03570556640625,
0.0170135498046875,
-0.0025348663330078125,
-0.01541900634765625,
-0.03509521484375,
-0.033966064453125,
0.02923583984375,
0.0382080078125,
-0.0018091201782226562,
0.01277923583984375,
-0.0276031494140625,
0.00521087646484375,
0.01519012451171875,
-0.01171875,
-0.0201568603515625,
-0.0223388671875,
0.041717529296875,
-0.00433349609375,
-0.0236968994140625,
-0.030792236328125,
-0.01708984375,
-0.019561767578125,
-0.006542205810546875,
0.03839111328125,
-0.010986328125,
0.0091400146484375,
-0.036102294921875,
-0.0010089874267578125,
-0.0035533905029296875,
0.01229095458984375,
0.0231170654296875,
0.002384185791015625,
-0.0243072509765625,
-0.0199737548828125,
-0.06298828125,
-0.0126495361328125,
-0.03338623046875,
-0.056854248046875,
-0.007801055908203125,
0.01024627685546875,
-0.0021419525146484375,
0.0265350341796875,
-0.0157318115234375,
-0.02252197265625,
-0.0028934478759765625,
0.0198516845703125,
0.00040531158447265625,
0.040557861328125,
-0.0164337158203125,
0.04437255859375,
0.032501220703125,
-0.00496673583984375,
0.0180816650390625,
0.036285400390625,
0.03277587890625,
-0.0282745361328125,
0.0092315673828125,
-0.06268310546875,
0.0096282958984375,
-0.0160980224609375,
0.02044677734375,
-0.0132598876953125,
-0.01459503173828125,
0.005596160888671875,
0.0565185546875,
-0.005229949951171875,
-0.0028476715087890625,
0.015960693359375,
-0.02557373046875,
0.0216217041015625,
0.0218048095703125,
0.08135986328125,
-0.00031280517578125,
-0.03271484375,
-0.0018796920776367188,
0.0082244873046875,
-0.00482940673828125,
0.01104736328125,
-0.0206146240234375,
-0.0357666015625,
-0.0858154296875,
0.066162109375,
0.0804443359375,
0.037689208984375,
0.043121337890625,
-0.00878143310546875,
0.0021381378173828125,
0.00402069091796875,
0.0341796875,
0.00887298583984375,
-0.035858154296875,
0.01212310791015625,
-0.0300140380859375,
-0.0343017578125,
-0.04473876953125,
-0.0269927978515625,
0.01983642578125,
0.047882080078125,
0.07275390625,
-0.06085205078125,
0.015960693359375,
0.0182952880859375,
-0.038360595703125,
-0.018341064453125,
-0.031951904296875,
0.025787353515625,
0.0071258544921875,
0.0462646484375,
0.0312347412109375,
-0.0189666748046875,
0.02490234375,
-0.01067352294921875,
-0.0008721351623535156,
-0.0185546875,
-0.00902557373046875,
0.0216217041015625,
-0.030731201171875,
0.04345703125,
0.0194244384765625,
0.03900146484375,
-0.0235748291015625,
0.0013170242309570312,
0.0117645263671875,
-0.026885986328125,
-0.035369873046875,
0.0184478759765625,
-0.0305938720703125,
-0.0011796951293945312,
0.00305938720703125,
-0.006328582763671875,
0.039825439453125,
0.02410888671875,
0.0026149749755859375,
-0.0007143020629882812,
0.006114959716796875,
-0.0119171142578125,
-0.0283660888671875,
-0.05328369140625,
0.02392578125,
0.00948333740234375,
-0.0604248046875,
0.026824951171875,
-0.006549835205078125,
-0.0528564453125,
-0.001323699951171875,
0.0126190185546875,
0.015380859375,
0.00522613525390625,
-0.026153564453125,
0.0127410888671875,
0.007541656494140625,
0.017120361328125,
-0.03216552734375,
0.030609130859375,
-0.06610107421875,
-0.061279296875,
-0.0008454322814941406,
-0.08697509765625,
-0.03375244140625,
-0.07135009765625,
-0.0257720947265625,
0.11541748046875,
-0.0229644775390625,
0.0008797645568847656,
0.0279541015625,
0.0546875,
-0.0213165283203125,
0.0328369140625,
-0.004360198974609375,
0.045654296875,
-0.0155181884765625,
0.030242919921875,
-0.03314208984375,
-0.0178375244140625,
0.01678466796875,
0.059967041015625,
-0.0293731689453125,
-0.0157012939453125,
-0.0124359130859375,
0.0013723373413085938,
0.04248046875,
0.0751953125,
0.048126220703125,
-0.0157623291015625,
0.0032711029052734375,
0.003437042236328125,
-0.00975799560546875,
-0.0262603759765625,
0.012969970703125,
-0.042633056640625,
-0.023590087890625,
0.0164337158203125,
0.020660400390625,
0.034454345703125,
-0.027435302734375,
0.0045318603515625,
-0.0206451416015625,
-0.00405120849609375,
0.006847381591796875,
0.035308837890625,
-0.0298614501953125,
0.0550537109375,
-0.0214385986328125,
0.047027587890625,
-0.07757568359375,
0.0096282958984375,
-0.007732391357421875,
-0.00494384765625,
-0.04998779296875,
0.0092010498046875,
-0.0028629302978515625,
-0.01088714599609375,
-0.025726318359375,
-0.04241943359375,
0.00783538818359375,
0.00786590576171875,
0.02392578125,
0.0096893310546875,
0.033721923828125,
-0.046600341796875,
-0.061248779296875,
0.0164794921875,
0.0291595458984375,
0.006618499755859375,
0.0265655517578125,
0.00428009033203125,
-0.004547119140625,
0.0120849609375,
-0.0638427734375,
0.01496124267578125,
-0.0093841552734375,
-0.01116180419921875,
0.02325439453125,
0.007061004638671875,
0.00948333740234375,
-0.011749267578125,
0.01080322265625,
0.01318359375,
-0.029449462890625,
0.039306640625,
-0.02294921875,
0.006969451904296875,
-0.0018148422241210938,
0.0635986328125,
0.0157928466796875,
0.023773193359375,
-0.0614013671875,
-0.025146484375,
-0.020538330078125,
0.03704833984375,
0.03802490234375,
0.0209808349609375,
-0.007358551025390625,
0.0199127197265625,
0.00873565673828125,
0.0240020751953125,
-0.0081024169921875,
0.0310821533203125,
0.042236328125,
0.023284912109375,
-0.048919677734375,
-0.00991058349609375,
0.043853759765625,
-0.0282745361328125,
0.012481689453125,
-0.0139007568359375,
0.0194854736328125,
0.0298919677734375,
-0.01035308837890625,
-0.0171051025390625,
0.034088134765625,
0.04241943359375,
-0.0099639892578125,
0.00843048095703125,
0.0128326416015625,
-0.025360107421875,
0.0211029052734375,
0.00794219970703125,
0.0273895263671875,
0.0195770263671875,
0.00868988037109375,
-0.013031005859375,
0.005435943603515625,
0.043365478515625,
-0.0214691162109375,
0.016357421875,
0.01071929931640625,
0.029144287109375,
0.0411376953125,
-0.0131683349609375,
-0.00035643577575683594,
0.0257110595703125,
0.0173797607421875,
0.00959014892578125,
0.03790283203125,
0.034149169921875,
-0.0439453125,
-0.03228759765625,
-0.002956390380859375,
0.036224365234375,
0.0202178955078125,
0.01476287841796875,
-0.00366973876953125,
0.0208587646484375,
0.037994384765625,
-0.050201416015625,
0.0305328369140625,
0.036468505859375,
-0.028717041015625,
-0.027587890625,
-0.006343841552734375,
-0.002002716064453125,
-0.059173583984375,
0.043487548828125,
-0.01030731201171875,
0.0246429443359375,
-0.0012331008911132812,
-0.0040435791015625,
0.021331787109375,
0.0509033203125,
0.01092529296875,
-0.032745361328125,
-0.052886962890625,
-0.024383544921875,
0.013916015625,
-0.0049285888671875,
0.0313720703125,
0.0110321044921875,
-0.0281524658203125,
0.02545166015625,
-0.047332763671875,
0.0153350830078125,
0.0164947509765625,
-0.005779266357421875,
0.004337310791015625,
0.056121826171875,
-0.00424957275390625,
0.034027099609375,
-0.006641387939453125,
0.00803375244140625,
0.024810791015625,
0.041412353515625,
0.0082855224609375,
-0.00604248046875,
-0.0272064208984375,
0.07354736328125,
0.05511474609375,
0.034149169921875,
0.034423828125,
0.0018033981323242188,
-0.061248779296875,
-0.02850341796875,
-0.0252227783203125,
-0.0169830322265625,
-0.020660400390625,
-0.01175689697265625,
0.027374267578125,
-0.026519775390625,
0.0013437271118164062,
-0.04473876953125,
-0.016357421875,
0.072509765625,
0.005077362060546875,
-0.043243408203125,
0.0166168212890625,
-0.060272216796875,
0.01519775390625,
0.016387939453125,
0.024810791015625,
-0.00891876220703125,
0.0185089111328125,
-0.06488037109375,
-0.0697021484375,
-0.03558349609375,
0.056671142578125,
-0.06866455078125,
0.04388427734375,
0.058013916015625,
-0.041229248046875,
0.044921875,
0.055328369140625,
0.037139892578125,
0.1175537109375,
-0.048980712890625,
-0.0034503936767578125,
0.0272979736328125,
0.02288818359375,
-0.0228118896484375,
-0.058013916015625,
0.006755828857421875,
-0.006687164306640625,
0.0092315673828125,
-0.017791748046875,
0.013702392578125,
0.032470703125,
-0.034515380859375,
-0.0970458984375,
0.082275390625,
-0.0335693359375,
-0.033233642578125,
-0.0322265625,
-0.006969451904296875,
0.018096923828125,
-0.034393310546875,
-0.0182037353515625,
-0.0274658203125,
-0.0517578125,
0.01177978515625,
0.039581298828125,
0.0002294778823852539,
0.0653076171875,
-0.01364898681640625,
-0.022979736328125,
0.005054473876953125,
-0.007305145263671875,
0.04034423828125,
-0.027313232421875,
0.00007230043411254883,
0.027435302734375,
0.04351806640625,
0.0032520294189453125,
0.03125,
0.014007568359375,
-0.0236358642578125,
-0.03692626953125,
-0.005702972412109375,
-0.01531982421875,
0.017333984375,
0.1136474609375,
0.034576416015625,
0.025665283203125,
-0.04791259765625,
0.025665283203125,
0.00113677978515625,
-0.025909423828125,
-0.0128936767578125,
0.017059326171875,
-0.031341552734375,
-0.0131988525390625,
-0.0110626220703125,
0.0136260986328125,
-0.043212890625,
-0.0247802734375,
-0.040679931640625,
-0.031280517578125,
0.008544921875,
0.034332275390625,
-0.030364990234375,
-0.02490234375,
0.06988525390625,
-0.0279693603515625,
0.019683837890625,
0.023101806640625,
0.0253448486328125,
0.0311737060546875,
0.027740478515625,
0.005489349365234375,
0.04345703125,
-0.07452392578125,
-0.006870269775390625,
-0.0116119384765625,
0.041534423828125,
-0.040924072265625,
-0.006961822509765625,
0.002124786376953125,
0.028594970703125,
-0.004489898681640625,
0.0340576171875,
0.00838470458984375,
0.0290679931640625,
-0.0004467964172363281,
0.0023517608642578125,
-0.04107666015625,
-0.0042572021484375,
-0.018280029296875,
-0.00988006591796875,
-0.049530029296875,
0.036895751953125,
0.0100555419921875,
-0.0223541259765625,
0.00399017333984375,
0.0015344619750976562,
-0.01483917236328125,
-0.020050048828125,
-0.00934600830078125,
-0.04833984375,
-0.0175018310546875,
-0.00921630859375
] |
bad06763c6eb1cc8c980ff4c1f4a862e7f545135
|
Wordpress Stackexchange
Q: Redirect Restricted Page to 404 Is there a way to show a 404 page if the current logged in user does not have the right clearance to view the page? I am looking for a PHP method, something like
if( !current_user_can('administrator') ) { show_404(); exit(); }
I have thought about using a redirect, but I would like to keep the url the same.
A: I was able to display a 404 error by using the following code in my header.
<?php
global $wp_query;
$wp_query->set_404();
status_header( 404 );
get_template_part( 404 ); exit();
?>
To break it down:
$wp_query->set_404(): tells the wp_query this is a 404, this changes the title
status_header(): sends a HTTP 404 header
get_template_part(): displays the 404 template
|
Q: Redirect Restricted Page to 404 Is there a way to show a 404 page if the current logged in user does not have the right clearance to view the page? I am looking for a PHP method, something like
if( !current_user_can('administrator') ) { show_404(); exit(); }
I have thought about using a redirect, but I would like to keep the url the same.
A: I was able to display a 404 error by using the following code in my header.
<?php
global $wp_query;
$wp_query->set_404();
status_header( 404 );
get_template_part( 404 ); exit();
?>
To break it down:
$wp_query->set_404(): tells the wp_query this is a 404, this changes the title
status_header(): sends a HTTP 404 header
get_template_part(): displays the 404 template
A: Why don't you create a page that show error message and then redirect user to that page? Here is a simple way to achieve that:
Open the 404.php file and add these lines to the top of it:
/**
* Template Name: 404 Page
*/
Create a page with 404 Page template. Then redirect users:
if ( !current_user_can('administrator') ) {
$404_page = get_permalink( $404_page_id );
wp_redirect( $404_page );
exit();
}
The reason you should use a page for 404 request is: in WP 404 page actually is a page that doesn't exists, WP has to search for all of its content before returning the 404 page and that work is a waste of resource. Using a pre-configured page that might help you run your blog faster.
A: I had a similar requirement where I should not let users access the author.php page based on the role a user was in. I register the template_redirect action to do my checks and redirect to 404 page even before the actual page is loaded.
Registration:
add_action( 'template_redirect', [ $this, 'handle_inactive_users']);
Handler:
public function handle_inactive_users() {
global $wp_query;
if ( $wp_query->is_author() ) {
$user = $wp_query->get_queried_object();
if ( is_a( $user, \WP_User::class ) && $user->has_cap( 'inactive' ) ) {
$wp_query->set_404();
status_header( 404 );
get_template_part( 404 );
exit();
}
}
}
If you chose to only use the following code snippet in the middle of template part, the page may have already been rendered partially and you are not actually redirected to a 404 page. So better to do it in the template_redirect action -
$wp_query->set_404();
status_header( 404 );
get_template_part( 404 );
exit();
A: You can write this code to file 404.php in actually used theme directory (wp-content/themes/..../404.php):
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
This code must start from begin of file (without any characters before).
Link to original: How to Redirect your 404 page to the Home Page in WordPress
|
wordpress
|
{
"language": "en",
"length": 439,
"provenance": "stackexchange_00019.jsonl.gz:411915",
"question_score": "30",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24891"
}
|
[
0.085693359375,
0.0300445556640625,
0.0161895751953125,
-0.031768798828125,
0.0171661376953125,
-0.031707763671875,
0.019683837890625,
-0.046112060546875,
0.0224456787109375,
0.01318359375,
-0.01016998291015625,
-0.014312744140625,
-0.0230560302734375,
-0.02911376953125,
-0.0262908935546875,
-0.01351165771484375,
0.007770538330078125,
-0.00882720947265625,
0.042724609375,
-0.014984130859375,
0.00833892822265625,
0.01059722900390625,
0.03656005859375,
0.00249481201171875,
-0.01308441162109375,
-0.0020236968994140625,
0.0550537109375,
-0.0377197265625,
-0.02691650390625,
-0.0440673828125,
-0.01296234130859375,
0.0289459228515625,
0.0185546875,
0.032745361328125,
-0.006832122802734375,
0.0301666259765625,
-0.0080413818359375,
0.0213470458984375,
0.01190948486328125,
0.0292205810546875,
0.0098724365234375,
-0.0063629150390625,
-0.00196075439453125,
0.0303955078125,
-0.0096435546875,
-0.05902099609375,
0.028839111328125,
-0.040863037109375,
0.020721435546875,
0.0169677734375,
0.041748046875,
0.0186614990234375,
0.046661376953125,
-0.0090789794921875,
-0.0248870849609375,
-0.0059814453125,
0.0355224609375,
0.0029964447021484375,
0.0267486572265625,
-0.025238037109375,
-0.037506103515625,
0.0235137939453125,
0.01032257080078125,
-0.025146484375,
0.0012788772583007812,
-0.0078125,
-0.0174560546875,
0.0162506103515625,
-0.04681396484375,
-0.0025539398193359375,
0.007076263427734375,
-0.034149169921875,
-0.02288818359375,
0.020294189453125,
-0.0214691162109375,
-0.0271453857421875,
0.028961181640625,
-0.006160736083984375,
0.002452850341796875,
0.0413818359375,
0.02569580078125,
-0.01255035400390625,
-0.007396697998046875,
-0.0059967041015625,
0.0221405029296875,
0.048492431640625,
-0.0173797607421875,
-0.03485107421875,
0.0059814453125,
-0.008636474609375,
-0.021392822265625,
0.0281982421875,
0.0125274658203125,
-0.0104522705078125,
-0.0309295654296875,
-0.027740478515625,
0.00830078125,
0.032257080078125,
-0.016082763671875,
0.0010213851928710938,
-0.0171051025390625,
-0.01399993896484375,
-0.0267333984375,
-0.0215606689453125,
-0.0179595947265625,
0.015960693359375,
0.0254364013671875,
0.021148681640625,
-0.0006241798400878906,
0.021484375,
-0.00185394287109375,
0.00647735595703125,
-0.046234130859375,
-0.05999755859375,
-0.0322265625,
0.069091796875,
-0.0205841064453125,
-0.057891845703125,
0.0145263671875,
-0.0273590087890625,
-0.0283050537109375,
0.0142364501953125,
0.0203857421875,
-0.0151519775390625,
-0.004528045654296875,
-0.016815185546875,
0.01605224609375,
-0.0526123046875,
0.08642578125,
0.0017261505126953125,
-0.0038089752197265625,
0.01471710205078125,
-0.00757598876953125,
-0.032379150390625,
-0.02154541015625,
0.0012989044189453125,
0.029083251953125,
-0.0014905929565429688,
-0.00493621826171875,
-0.006011962890625,
0.01123809814453125,
-0.01003265380859375,
-0.007564544677734375,
-0.0154876708984375,
0.0108184814453125,
0.0384521484375,
0.01456451416015625,
0.01105499267578125,
0.006076812744140625,
-0.0897216796875,
0.0142364501953125,
-0.0167236328125,
0.028839111328125,
0.00733184814453125,
0.0072021484375,
-0.0141143798828125,
0.0234375,
-0.029022216796875,
-0.00732421875,
-0.0186004638671875,
0.048431396484375,
0.007282257080078125,
0.006999969482421875,
-0.01161956787109375,
-0.04681396484375,
-0.035247802734375,
-0.0517578125,
-0.0225372314453125,
0.01416015625,
0.0266571044921875,
0.01202392578125,
-0.0135955810546875,
-0.0177154541015625,
-0.011810302734375,
-0.0161285400390625,
-0.007045745849609375,
0.01123809814453125,
0.02166748046875,
0.001491546630859375,
0.05413818359375,
0.0207061767578125,
-0.0250701904296875,
0.01242828369140625,
0.0010004043579101562,
-0.04742431640625,
0.03887939453125,
0.003948211669921875,
0.0168304443359375,
0.0006737709045410156,
-0.0082855224609375,
0.038482666015625,
0.04644775390625,
-0.012481689453125,
0.0491943359375,
-0.0265350341796875,
-0.040496826171875,
-0.0102081298828125,
0.004711151123046875,
-0.031890869140625,
0.013946533203125,
0.004184722900390625,
0.03424072265625,
-0.043548583984375,
0.0083465576171875,
-0.047882080078125,
-0.00390625,
-0.00395965576171875,
0.021728515625,
-0.007640838623046875,
0.031036376953125,
0.00669097900390625,
0.0027446746826171875,
-0.024688720703125,
0.00042700767517089844,
0.00991058349609375,
0.01107025146484375,
-0.00829315185546875,
0.048187255859375,
-0.0028247833251953125,
0.0306854248046875,
0.011016845703125,
-0.0489501953125,
0.00972747802734375,
-0.00493621826171875,
0.01549530029296875,
-0.03955078125,
0.0185089111328125,
-0.00937652587890625,
0.0380859375,
-0.0015401840209960938,
0.0158538818359375,
-0.017578125,
-0.0100250244140625,
0.00951385498046875,
-0.019866943359375,
-0.0020389556884765625,
-0.00969696044921875,
-0.049560546875,
0.0152587890625,
0.036834716796875,
0.0265655517578125,
0.034820556640625,
-0.0200958251953125,
-0.007770538330078125,
0.0285491943359375,
-0.07806396484375,
-0.017486572265625,
0.0131072998046875,
0.014068603515625,
-0.00852203369140625,
0.01385498046875,
-0.03509521484375,
0.0389404296875,
-0.0020885467529296875,
0.0069732666015625,
0.0242462158203125,
-0.0267486572265625,
0.005016326904296875,
-0.0195465087890625,
-0.00197601318359375,
-0.005405426025390625,
-0.0205841064453125,
0.0088348388671875,
-0.0206146240234375,
-0.010833740234375,
-0.0199432373046875,
-0.00032591819763183594,
0.0017175674438476562,
0.0008907318115234375,
-0.04180908203125,
0.0272674560546875,
-0.00630950927734375,
0.0121917724609375,
0.0386962890625,
-0.0010499954223632812,
0.038818359375,
-0.06756591796875,
-0.0017442703247070312,
0.05242919921875,
0.041351318359375,
-0.006900787353515625,
0.05694580078125,
-0.038360595703125,
-0.01354217529296875,
-0.03948974609375,
-0.03814697265625,
0.0064239501953125,
0.031646728515625,
0.035919189453125,
0.0020294189453125,
0.0261383056640625,
0.0203094482421875,
-0.00839996337890625,
0.04266357421875,
-0.0089111328125,
-0.0296478271484375,
-0.043182373046875,
-0.07183837890625,
0.0657958984375,
-0.06304931640625,
0.00702667236328125,
0.0628662109375,
-0.00598907470703125,
0.00495147705078125,
0.0300750732421875,
-0.033294677734375,
0.039825439453125,
0.00592041015625,
0.005992889404296875,
-0.006244659423828125,
-0.0209808349609375,
0.0108795166015625,
0.034759521484375,
0.018218994140625,
0.0267486572265625,
-0.0123138427734375,
-0.001796722412109375,
0.0189971923828125,
-0.0572509765625,
-0.06695556640625,
-0.0435791015625,
-0.05950927734375,
0.026031494140625,
0.0137786865234375,
-0.01444244384765625,
-0.0118865966796875,
0.048797607421875,
0.0269317626953125,
-0.01690673828125,
-0.021728515625,
-0.049835205078125,
-0.0472412109375,
-0.0684814453125,
-0.0013628005981445312,
-0.0171966552734375,
0.0018768310546875,
-0.00547027587890625,
0.00833892822265625,
-0.027496337890625,
-0.07171630859375,
-0.053985595703125,
0.0540771484375,
0.0146942138671875,
-0.02728271484375,
0.00296783447265625,
0.00821685791015625,
0.013885498046875,
0.0186614990234375,
-0.0089111328125,
0.004047393798828125,
-0.0009560585021972656,
-0.03900146484375,
-0.039794921875,
-0.036712646484375,
-0.0221405029296875,
-0.00885009765625,
0.0286407470703125,
-0.040435791015625,
-0.0112457275390625,
-0.04974365234375,
-0.026641845703125,
-0.03448486328125,
-0.08502197265625,
-0.0160675048828125,
0.054931640625,
0.0170135498046875,
-0.022186279296875,
-0.02923583984375,
0.0223846435546875,
0.005146026611328125,
0.01275634765625,
0.0007863044738769531,
0.053192138671875,
0.00325775146484375,
0.01580810546875,
-0.033599853515625,
0.006244659423828125,
0.0017185211181640625,
-0.022705078125,
-0.00992584228515625,
0.023773193359375,
-0.00894927978515625,
0.0214996337890625,
-0.0413818359375,
-0.070556640625,
0.039825439453125,
-0.0306243896484375,
0.020599365234375,
-0.04742431640625,
-0.0220184326171875,
-0.013946533203125,
0.1058349609375,
-0.0116729736328125,
-0.015838623046875,
-0.039337158203125,
-0.004486083984375,
-0.016021728515625,
-0.033294677734375,
-0.016510009765625,
0.006610870361328125,
-0.045379638671875,
-0.00527191162109375,
-0.02154541015625,
-0.0325927734375,
-0.00653839111328125,
-0.054290771484375,
-0.019500732421875,
-0.042388916015625,
0.0187835693359375,
-0.031463623046875,
-0.008453369140625,
0.041229248046875,
-0.019866943359375,
0.00005257129669189453,
-0.0016841888427734375,
-0.034576416015625,
-0.07208251953125,
-0.03924560546875,
0.01473236083984375,
0.092041015625,
0.0304718017578125,
-0.049224853515625,
0.01027679443359375,
0.0660400390625,
0.00783538818359375,
0.0276641845703125,
-0.032135009765625,
-0.026153564453125,
0.047393798828125,
-0.003658294677734375,
-0.0294647216796875,
0.01849365234375,
0.006519317626953125,
-0.01477813720703125,
-0.0294952392578125,
-0.0301055908203125,
-0.03570556640625,
-0.032318115234375,
0.02313232421875,
-0.05181884765625,
-0.06268310546875,
-0.02886962890625,
0.0000826120376586914,
0.031494140625,
-0.00023305416107177734,
0.0017709732055664062,
-0.020263671875,
-0.083984375,
0.03314208984375,
-0.0013408660888671875,
-0.0265960693359375,
0.010284423828125,
0.021636962890625,
0.015655517578125,
-0.02508544921875,
-0.0013093948364257812,
0.0196533203125,
0.00732421875,
-0.0300140380859375,
0.0712890625,
0.001399993896484375,
-0.0006957054138183594,
0.0885009765625,
-0.040313720703125,
-0.0278778076171875,
0.0003528594970703125,
0.004974365234375,
-0.00632476806640625,
-0.054779052734375,
0.026947021484375,
-0.0372314453125,
0.0325927734375,
0.042816162109375,
0.019134521484375,
-0.01129150390625,
0.00853729248046875,
0.0167999267578125,
-0.0146484375,
-0.0025539398193359375,
-0.0035190582275390625,
-0.051055908203125,
0.0022106170654296875,
0.036376953125,
0.0003292560577392578,
0.018035888671875,
0.0004858970642089844,
0.01230621337890625,
0.013702392578125,
0.00009548664093017578,
-0.0027256011962890625,
-0.0019464492797851562,
-0.00867462158203125,
0.045135498046875,
-0.0252838134765625,
-0.00830841064453125,
0.01003265380859375,
-0.01448822021484375,
0.06915283203125,
0.0241851806640625,
-0.049530029296875,
0.0144500732421875,
-0.0102691650390625,
0.007312774658203125,
0.0074310302734375,
-0.00714874267578125,
0.0173187255859375,
0.023773193359375,
-0.024322509765625,
0.00756072998046875,
0.006641387939453125,
-0.0222930908203125,
-0.04107666015625,
0.0188751220703125,
0.0090789794921875,
0.01026153564453125,
0.006839752197265625,
0.08245849609375,
0.0633544921875,
0.01922607421875,
-0.0372314453125,
-0.0036067962646484375,
0.0019817352294921875,
0.0021076202392578125,
0.0205078125,
0.0280303955078125,
-0.0004067420959472656,
-0.0147552490234375,
0.0115814208984375,
-0.041229248046875,
-0.03802490234375,
-0.005084991455078125,
0.0283660888671875,
-0.03533935546875,
-0.01177215576171875,
0.0494384765625,
0.018524169921875,
-0.002170562744140625,
0.0594482421875,
-0.0286102294921875,
-0.0550537109375,
-0.05975341796875,
0.00658416748046875,
0.08203125,
-0.032958984375,
-0.01849365234375,
0.01202392578125,
-0.012969970703125,
0.0235443115234375,
-0.00830841064453125,
-0.01904296875,
0.006000518798828125,
0.00844573974609375,
0.01727294921875,
-0.050201416015625,
-0.040557861328125,
-0.017181396484375,
0.039825439453125,
-0.037506103515625,
0.002819061279296875,
0.05419921875,
-0.002651214599609375,
0.0013914108276367188,
-0.035552978515625,
0.01428985595703125,
-0.01137542724609375,
-0.014495849609375,
0.0582275390625,
0.0145111083984375,
-0.06756591796875,
0.018096923828125,
-0.059967041015625,
-0.010009765625,
-0.008544921875,
-0.0312042236328125,
-0.049835205078125,
-0.0213623046875,
0.024169921875,
0.0114288330078125,
0.007114410400390625,
-0.032989501953125,
-0.015655517578125,
0.0286407470703125,
0.0199127197265625,
0.0255584716796875,
-0.0088653564453125,
0.048004150390625,
0.00463104248046875,
0.0279541015625,
0.0177154541015625,
0.041595458984375,
0.015869140625,
-0.04083251953125,
0.03369140625,
-0.00882720947265625,
-0.034149169921875,
-0.03167724609375,
0.0032329559326171875,
-0.0006847381591796875,
0.039031982421875,
-0.01111602783203125,
-0.0269775390625,
-0.0202484130859375,
-0.007488250732421875,
-0.0229644775390625,
0.051239013671875,
0.0123291015625,
-0.01454925537109375,
-0.017181396484375,
0.00316619873046875,
-0.0010309219360351562,
-0.0255584716796875,
-0.006500244140625,
0.0024166107177734375,
0.01255035400390625,
0.0081329345703125,
-0.0244140625,
-0.07037353515625,
0.08184814453125,
0.11614990234375,
0.03057861328125,
0.08587646484375,
0.03668212890625,
0.0273590087890625,
0.048919677734375,
0.012969970703125,
-0.0002218484878540039,
-0.00977325439453125,
0.02606201171875,
-0.0123443603515625,
0.00014460086822509766,
0.00687408447265625,
-0.01044464111328125,
0.00640106201171875,
0.09942626953125,
0.044464111328125,
-0.1324462890625,
0.017120361328125,
0.0052337646484375,
0.00799560546875,
0.017669677734375,
0.0009570121765136719,
0.003871917724609375,
-0.0030345916748046875,
0.0149993896484375,
-0.01352691650390625,
-0.026824951171875,
-0.0033626556396484375,
0.004520416259765625,
-0.0248260498046875,
-0.0217742919921875,
0.041259765625,
-0.0003287792205810547,
-0.041351318359375,
0.0192108154296875,
-0.00089263916015625,
0.01105499267578125,
-0.0077362060546875,
0.019561767578125,
-0.0120086669921875,
0.00981903076171875,
-0.007110595703125,
0.04742431640625,
-0.033416748046875,
0.01532745361328125,
0.02093505859375,
0.0153961181640625,
0.0041656494140625,
0.05718994140625,
-0.0172576904296875,
0.0135498046875,
0.0345458984375,
-0.0234527587890625,
0.04296875,
-0.0218658447265625,
-0.0177459716796875,
0.0104827880859375,
-0.0250396728515625,
-0.01312255859375,
0.006694793701171875,
-0.00350189208984375,
-0.011749267578125,
-0.015716552734375,
0.09283447265625,
-0.04656982421875,
-0.0255584716796875,
0.01032257080078125,
0.004283905029296875,
-0.00031375885009765625,
-0.00493621826171875,
0.0076446533203125,
-0.03375244140625,
-0.00640869140625,
-0.0003650188446044922,
0.005619049072265625,
0.015960693359375,
0.0147857666015625,
-0.0199432373046875,
0.0300140380859375,
0.00485992431640625,
0.01293182373046875,
0.034912109375,
0.00273895263671875,
-0.0157012939453125,
0.00107574462890625,
-0.031982421875,
0.0694580078125,
0.02923583984375,
0.05230712890625,
-0.017730712890625,
-0.01520538330078125,
0.04974365234375,
0.035064697265625,
0.08905029296875,
0.0294952392578125,
-0.0281219482421875,
-0.000823974609375,
0.037628173828125,
0.01605224609375,
-0.0236663818359375,
0.058990478515625,
-0.0008649826049804688,
0.0235137939453125,
0.014923095703125,
-0.0406494140625,
0.02972412109375,
-0.032012939453125,
-0.034088134765625,
0.001537322998046875,
0.0074462890625,
-0.016265869140625,
-0.005924224853515625,
0.0012788772583007812,
-0.128662109375,
0.0220947265625,
0.07733154296875,
-0.0072479248046875,
0.004772186279296875,
0.048126220703125,
0.049285888671875,
-0.07177734375,
0.04022216796875,
-0.06982421875,
0.06121826171875,
-0.001041412353515625,
0.023040771484375,
-0.00757598876953125,
0.0022830963134765625,
0.0217742919921875,
0.01041412353515625,
0.007717132568359375,
0.053192138671875,
-0.0243682861328125,
0.050018310546875,
0.0274658203125,
0.01342010498046875,
-0.013092041015625,
0.029815673828125,
0.040618896484375,
0.05999755859375,
-0.046875,
-0.01580810546875,
0.009033203125,
0.0259857177734375,
0.016143798828125,
0.0078887939453125,
0.0531005859375,
0.0181884765625,
0.03466796875,
-0.0274810791015625,
0.005268096923828125,
0.01763916015625,
-0.00444793701171875,
-0.01971435546875,
-0.045013427734375,
0.0197601318359375,
0.035980224609375,
-0.02484130859375,
-0.034576416015625,
0.0206146240234375,
0.055267333984375,
0.031982421875,
0.013946533203125,
0.01039886474609375,
-0.0245819091796875,
0.0021572113037109375,
0.0506591796875,
-0.0072174072265625,
-0.00286102294921875,
-0.01221466064453125,
-0.042144775390625,
-0.02099609375,
0.0196533203125,
-0.013702392578125,
-0.0251617431640625,
-0.0283050537109375,
-0.0030612945556640625,
0.01110076904296875,
-0.022430419921875,
-0.0003516674041748047,
-0.0188140869140625,
0.0269775390625,
-0.02685546875,
0.00707244873046875,
-0.0233154296875,
-0.0177459716796875,
-0.00942230224609375,
0.0077972412109375,
0.002002716064453125,
-0.01284027099609375,
0.045166015625,
-0.0036144256591796875,
-0.0194549560546875,
0.0149078369140625,
-0.0213165283203125,
0.050506591796875,
0.006381988525390625,
-0.06793212890625,
-0.01403045654296875,
-0.003406524658203125,
-0.0543212890625,
0.0289459228515625,
0.04534912109375,
-0.01094818115234375,
0.007602691650390625,
0.0305328369140625,
0.0155029296875,
0.01324462890625,
-0.037872314453125,
0.036224365234375,
-0.00891876220703125,
0.0183563232421875,
0.032379150390625,
-0.059844970703125,
-0.03350830078125,
-0.04034423828125,
0.047821044921875,
-0.005031585693359375,
0.10845947265625,
-0.044769287109375,
0.014801025390625,
-0.034637451171875,
0.0259857177734375,
-0.0362548828125,
-0.0272216796875,
0.02325439453125,
0.031982421875,
-0.003368377685546875,
-0.015960693359375,
-0.08154296875,
0.0634765625,
0.01345062255859375,
0.023101806640625,
0.06561279296875,
0.0105743408203125,
-0.00384521484375,
-0.01552581787109375,
-0.0189666748046875,
-0.04638671875,
-0.0650634765625,
-0.04840087890625,
0.0006809234619140625,
-0.0010938644409179688,
0.0171051025390625,
0.0188751220703125,
0.026519775390625,
-0.027679443359375,
-0.04656982421875,
0.0193939208984375,
-0.035736083984375,
0.0162200927734375,
0.0267486572265625,
-0.0204925537109375,
0.006378173828125,
0.01190948486328125,
-0.0039215087890625,
0.01335906982421875,
0.0128173828125,
-0.002330780029296875,
0.0114593505859375,
0.0239410400390625,
-0.06329345703125,
-0.09417724609375,
-0.0233917236328125,
-0.004497528076171875,
-0.0234527587890625,
-0.075927734375,
0.00786590576171875,
-0.02880859375,
-0.04449462890625,
-0.0258026123046875,
-0.0221099853515625,
-0.001850128173828125,
0.0172576904296875,
0.0179290771484375,
-0.034759521484375,
-0.0100250244140625,
-0.01267242431640625,
0.01280975341796875,
0.0035648345947265625,
-0.04705810546875,
0.01116180419921875,
-0.0198974609375,
0.04461669921875,
-0.034027099609375,
0.03704833984375,
0.0182952880859375,
0.026611328125,
-0.0767822265625,
0.041595458984375,
-0.0007982254028320312,
-0.03582763671875,
0.0054473876953125,
-0.00872039794921875,
0.038421630859375,
0.0014562606811523438,
-0.010162353515625,
-0.0206146240234375,
-0.022674560546875,
0.032196044921875,
-0.051849365234375,
-0.0217742919921875,
0.015472412109375,
-0.00414276123046875,
0.013427734375,
-0.004138946533203125,
-0.005786895751953125,
0.010833740234375,
-0.006870269775390625,
-0.006237030029296875,
-0.019012451171875,
-0.002368927001953125,
-0.04864501953125,
-0.04119873046875,
0.036773681640625,
0.00848388671875,
-0.029510498046875,
-0.0299224853515625,
0.038055419921875,
-0.0034313201904296875,
0.00136566162109375,
-0.00856781005859375,
0.00383758544921875,
0.01227569580078125,
-0.00719451904296875,
0.033050537109375,
-0.00914764404296875,
0.0181732177734375,
0.03814697265625,
-0.052276611328125,
0.0394287109375,
0.0244293212890625,
0.0034122467041015625,
-0.0013141632080078125,
-0.019439697265625,
0.029510498046875,
0.04852294921875,
-0.016510009765625,
0.01311492919921875,
0.0138397216796875,
-0.0167236328125,
-0.0144195556640625,
-0.026397705078125,
-0.00896453857421875,
-0.033050537109375,
0.034088134765625,
0.0220794677734375,
0.00616455078125,
0.00992584228515625,
-0.08306884765625,
-0.0295562744140625,
-0.02337646484375,
-0.0206451416015625,
0.044769287109375,
-0.11077880859375,
-0.000010848045349121094,
0.019775390625,
-0.039825439453125,
0.002246856689453125,
0.0031147003173828125,
-0.042236328125,
0.01031494140625,
0.0000693202018737793,
-0.022979736328125,
-0.038848876953125,
-0.021392822265625,
0.069580078125,
-0.040313720703125,
-0.0007266998291015625,
-0.00873565673828125,
0.036376953125,
-0.00145721435546875,
-0.06536865234375,
-0.021148681640625,
0.0236663818359375,
-0.0265350341796875,
-0.00865936279296875,
-0.00814056396484375,
0.01404571533203125,
-0.0174713134765625,
0.0014066696166992188,
-0.02398681640625,
0.032012939453125,
0.00786590576171875,
0.03741455078125,
-0.00945281982421875,
0.0086517333984375,
0.0161895751953125,
0.01187896728515625,
-0.0086669921875,
0.05511474609375,
-0.0020961761474609375,
0.04669189453125,
0.00649261474609375,
-0.0215606689453125,
0.035247802734375,
-0.032257080078125,
-0.0014066696166992188,
0.00015735626220703125,
0.0229949951171875,
-0.026580810546875,
0.042236328125,
-0.0066375732421875,
0.01708984375,
0.024444580078125
] |
fccaa04ee04624f61824e0395a15d62bad3ad4b9
|
Wordpress Stackexchange
Q: Is it possible to sign in with user_email in Wordpress? is it possible to sign in with user_email instead of user_login, please ?
Thanks.
A: Here's how we do it:
$user = get_user_by('email', $email);
if (wp_check_password($password, $user->user_pass, $user->ID)) {
// Login successfull, redirect if needed
wp_set_auth_cookie($user->ID);
}
Assuming of course that you got the $email and the $password variables from a POST request or something :)
|
Q: Is it possible to sign in with user_email in Wordpress? is it possible to sign in with user_email instead of user_login, please ?
Thanks.
A: Here's how we do it:
$user = get_user_by('email', $email);
if (wp_check_password($password, $user->user_pass, $user->ID)) {
// Login successfull, redirect if needed
wp_set_auth_cookie($user->ID);
}
Assuming of course that you got the $email and the $password variables from a POST request or something :)
A: Search and you will find... WP Email Login
|
wordpress
|
{
"language": "en",
"length": 76,
"provenance": "stackexchange_00019.jsonl.gz:411919",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24908"
}
|
[
0.03753662109375,
0.0092620849609375,
-0.03131103515625,
-0.0190582275390625,
0.026763916015625,
-0.05267333984375,
0.03704833984375,
-0.034088134765625,
-0.00896453857421875,
0.0302886962890625,
-0.03216552734375,
-0.00439453125,
-0.0171051025390625,
-0.01505279541015625,
-0.01412200927734375,
-0.0501708984375,
-0.006587982177734375,
-0.0005354881286621094,
-0.01435089111328125,
-0.039642333984375,
0.02862548828125,
-0.0230560302734375,
-0.032684326171875,
0.0081787109375,
0.00792694091796875,
0.037109375,
0.0477294921875,
-0.033905029296875,
0.00475311279296875,
-0.0187530517578125,
0.01007080078125,
-0.02911376953125,
-0.0011568069458007812,
0.060028076171875,
-0.0307464599609375,
-0.01508331298828125,
-0.00580596923828125,
0.04803466796875,
0.035308837890625,
0.007686614990234375,
0.0401611328125,
-0.01861572265625,
0.0183868408203125,
-0.00920867919921875,
-0.01983642578125,
-0.0268402099609375,
0.0484619140625,
0.006778717041015625,
0.0104827880859375,
0.0190887451171875,
0.00795745849609375,
0.01100921630859375,
0.0224609375,
-0.0195159912109375,
-0.00768280029296875,
0.0030002593994140625,
0.0259857177734375,
-0.05377197265625,
0.03521728515625,
-0.0146026611328125,
-0.041839599609375,
-0.0311279296875,
0.037139892578125,
-0.0286102294921875,
0.004627227783203125,
0.006267547607421875,
-0.0101776123046875,
0.02618408203125,
-0.008087158203125,
-0.005462646484375,
-0.0006160736083984375,
-0.0209808349609375,
-0.01375579833984375,
-0.04095458984375,
-0.0135345458984375,
0.03631591796875,
0.003856658935546875,
0.006328582763671875,
-0.005275726318359375,
0.007770538330078125,
-0.030914306640625,
-0.002231597900390625,
-0.08563232421875,
0.003520965576171875,
0.00611114501953125,
0.04095458984375,
-0.0182952880859375,
-0.0147857666015625,
0.01861572265625,
-0.01222991943359375,
-0.00025177001953125,
0.0147857666015625,
-0.0088958740234375,
0.0218963623046875,
-0.0193634033203125,
-0.0254669189453125,
0.00689697265625,
0.0465087890625,
-0.0030498504638671875,
0.0096435546875,
-0.01727294921875,
-0.023284912109375,
-0.0055694580078125,
-0.02899169921875,
-0.019927978515625,
0.0518798828125,
0.0237274169921875,
0.051422119140625,
-0.01482391357421875,
0.01126861572265625,
0.0034885406494140625,
-0.0574951171875,
-0.034515380859375,
-0.055328369140625,
0.010345458984375,
0.06268310546875,
-0.0288848876953125,
0.00933837890625,
0.001918792724609375,
0.031402587890625,
-0.027587890625,
-0.004184722900390625,
0.004207611083984375,
0.0165252685546875,
-0.008209228515625,
-0.0201263427734375,
0.005283355712890625,
-0.018218994140625,
-0.050323486328125,
0.028656005859375,
-0.028900146484375,
0.0254669189453125,
0.047454833984375,
0.019134521484375,
-0.0135498046875,
-0.0164337158203125,
0.0279083251953125,
-0.005764007568359375,
-0.0180206298828125,
0.0218658447265625,
0.0090484619140625,
-0.035888671875,
-0.03436279296875,
-0.006984710693359375,
0.0009512901306152344,
0.0027923583984375,
0.0097503662109375,
0.02398681640625,
-0.01007843017578125,
-0.040252685546875,
0.0180511474609375,
-0.0174102783203125,
-0.06585693359375,
0.04437255859375,
0.104736328125,
0.04254150390625,
0.0140228271484375,
0.0183563232421875,
0.05023193359375,
0.07391357421875,
0.0419921875,
-0.01045989990234375,
-0.012420654296875,
0.01416015625,
-0.03680419921875,
0.0138702392578125,
-0.025543212890625,
-0.017791748046875,
0.03558349609375,
-0.02008056640625,
0.06353759765625,
0.001018524169921875,
0.06121826171875,
0.01495361328125,
0.0038738250732421875,
-0.0008320808410644531,
-0.038665771484375,
0.057281494140625,
0.01404571533203125,
0.0185546875,
0.0275726318359375,
-0.0269622802734375,
0.04833984375,
0.005527496337890625,
0.00749969482421875,
-0.01068115234375,
0.00579071044921875,
0.0010957717895507812,
0.016845703125,
0.02447509765625,
-0.0232086181640625,
0.03155517578125,
-0.0379638671875,
0.005645751953125,
-0.014923095703125,
-0.0494384765625,
0.038421630859375,
-0.0263671875,
-0.00832366943359375,
0.035186767578125,
0.0596923828125,
-0.0244903564453125,
0.00867462158203125,
-0.03375244140625,
-0.05078125,
-0.0296630859375,
-0.0018901824951171875,
-0.00038504600524902344,
-0.02252197265625,
0.01445770263671875,
0.01522064208984375,
0.00487518310546875,
-0.0027256011962890625,
-0.03680419921875,
-0.00423431396484375,
0.008941650390625,
-0.04058837890625,
0.03619384765625,
-0.00745391845703125,
0.07940673828125,
-0.01214599609375,
-0.022003173828125,
-0.01331329345703125,
-0.0259552001953125,
0.0207366943359375,
-0.0251007080078125,
-0.002048492431640625,
-0.0307464599609375,
-0.0028839111328125,
-0.00531768798828125,
-0.0142822265625,
0.030181884765625,
0.0019168853759765625,
0.020050048828125,
-0.036712646484375,
0.0033130645751953125,
-0.024505615234375,
-0.007198333740234375,
-0.0012073516845703125,
0.038909912109375,
0.031005859375,
0.04913330078125,
-0.01531982421875,
-0.01483917236328125,
0.04571533203125,
-0.02783203125,
0.0232696533203125,
-0.0210418701171875,
0.00258636474609375,
0.07977294921875,
-0.040863037109375,
0.02056884765625,
0.00350189208984375,
-0.037567138671875,
-0.047027587890625,
0.0567626953125,
0.0012159347534179688,
-0.02056884765625,
-0.015869140625,
-0.00030493736267089844,
0.01175689697265625,
-0.035736083984375,
-0.037628173828125,
0.00655364990234375,
-0.0193023681640625,
-0.03277587890625,
-0.005130767822265625,
-0.0154266357421875,
0.01044464111328125,
-0.040557861328125,
0.0167236328125,
-0.0288238525390625,
0.005794525146484375,
0.036834716796875,
0.0283966064453125,
0.031951904296875,
-0.01485443115234375,
-0.027679443359375,
0.02093505859375,
0.026519775390625,
-0.02880859375,
-0.043182373046875,
-0.00445556640625,
-0.003322601318359375,
0.0296478271484375,
0.00460052490234375,
0.0203399658203125,
-0.004604339599609375,
0.0073699951171875,
-0.006439208984375,
0.0443115234375,
-0.0110931396484375,
-0.038330078125,
0.033599853515625,
-0.041961669921875,
-0.0489501953125,
-0.060791015625,
-0.00673675537109375,
0.010955810546875,
-0.0291748046875,
0.002063751220703125,
0.0406494140625,
0.004512786865234375,
-0.00273895263671875,
0.0189056396484375,
-0.043701171875,
-0.008026123046875,
0.021820068359375,
0.0038700103759765625,
-0.0178985595703125,
-0.0161590576171875,
0.05389404296875,
0.01468658447265625,
0.038177490234375,
-0.006500244140625,
-0.042877197265625,
-0.01200103759765625,
0.00981903076171875,
-0.049285888671875,
-0.047210693359375,
-0.049163818359375,
-0.09429931640625,
-0.0174560546875,
-0.0177459716796875,
-0.043365478515625,
0.03106689453125,
0.0126953125,
0.01480865478515625,
0.01922607421875,
-0.0249481201171875,
-0.06793212890625,
-0.04736328125,
-0.06829833984375,
0.002925872802734375,
-0.0163421630859375,
0.00687408447265625,
0.006374359130859375,
-0.0003261566162109375,
-0.00609588623046875,
-0.01290130615234375,
-0.00838470458984375,
0.047943115234375,
0.0171356201171875,
-0.037841796875,
-0.01702880859375,
-0.008331298828125,
-0.0009570121765136719,
0.0044097900390625,
-0.0014925003051757812,
-0.021728515625,
0.0186920166015625,
-0.0283660888671875,
0.0024871826171875,
-0.035675048828125,
0.031219482421875,
-0.01538848876953125,
-0.0242156982421875,
0.0011987686157226562,
0.0301666259765625,
-0.04827880859375,
0.0255279541015625,
-0.0033702850341796875,
-0.032135009765625,
-0.00888824462890625,
0.0128936767578125,
-0.01163482666015625,
0.02459716796875,
-0.0455322265625,
0.00995635986328125,
0.028289794921875,
-0.01016998291015625,
-0.0010595321655273438,
0.037567138671875,
-0.0204010009765625,
0.0008053779602050781,
-0.0142059326171875,
0.003108978271484375,
-0.02764892578125,
-0.034515380859375,
-0.019195556640625,
0.00909423828125,
-0.0203857421875,
0.0011816024780273438,
-0.03314208984375,
-0.074951171875,
0.06927490234375,
-0.007110595703125,
0.028472900390625,
-0.058441162109375,
-0.04656982421875,
-0.0027866363525390625,
0.133056640625,
0.02606201171875,
0.00023293495178222656,
0.01122283935546875,
0.01165008544921875,
-0.08447265625,
-0.05291748046875,
-0.07257080078125,
0.01111602783203125,
0.00762176513671875,
-0.03253173828125,
-0.0215911865234375,
-0.014862060546875,
0.007061004638671875,
-0.046295166015625,
0.0247650146484375,
-0.034423828125,
0.008544921875,
0.031768798828125,
0.0200347900390625,
0.0006937980651855469,
-0.01502227783203125,
0.01678466796875,
0.0188140869140625,
-0.0194854736328125,
-0.0301361083984375,
-0.001667022705078125,
-0.026336669921875,
0.038421630859375,
0.01186370849609375,
0.0308837890625,
-0.029296875,
0.019989013671875,
-0.0117645263671875,
-0.01629638671875,
0.0250244140625,
0.028411865234375,
0.01250457763671875,
-0.0021457672119140625,
-0.011810302734375,
-0.017181396484375,
0.01305389404296875,
-0.027862548828125,
-0.034759521484375,
-0.0176849365234375,
-0.052520751953125,
0.0140838623046875,
-0.0143280029296875,
-0.01412200927734375,
-0.0136260986328125,
0.0017766952514648438,
-0.0089111328125,
0.0232696533203125,
-0.0019588470458984375,
-0.002056121826171875,
-0.01010894775390625,
-0.0264739990234375,
0.06341552734375,
0.024444580078125,
-0.00836181640625,
-0.0123748779296875,
0.07073974609375,
0.013275146484375,
-0.0299835205078125,
0.00301361083984375,
-0.0025634765625,
0.03228759765625,
-0.0077362060546875,
0.0269317626953125,
0.0026760101318359375,
-0.0298614501953125,
0.062164306640625,
0.0010442733764648438,
-0.01169586181640625,
-0.018768310546875,
0.040283203125,
-0.0045928955078125,
-0.0195770263671875,
0.0153045654296875,
-0.014129638671875,
0.02044677734375,
0.033203125,
0.0284881591796875,
-0.0211639404296875,
0.03887939453125,
-0.016082763671875,
-0.020904541015625,
0.00634002685546875,
0.0338134765625,
-0.062225341796875,
0.03204345703125,
-0.026580810546875,
0.0106048583984375,
0.0179595947265625,
-0.0005369186401367188,
0.0070037841796875,
-0.01354217529296875,
-0.013702392578125,
-0.03271484375,
-0.06927490234375,
-0.0016918182373046875,
-0.0140838623046875,
-0.0159149169921875,
-0.0118255615234375,
0.0032215118408203125,
-0.039306640625,
0.1053466796875,
0.027984619140625,
-0.0482177734375,
0.040985107421875,
-0.032958984375,
0.029388427734375,
0.0127105712890625,
-0.02960205078125,
0.040374755859375,
0.00696563720703125,
-0.03515625,
0.0015897750854492188,
-0.032745361328125,
-0.0288238525390625,
-0.04949951171875,
0.035797119140625,
0.0018510818481445312,
0.0071563720703125,
0.0478515625,
0.0753173828125,
-0.02105712890625,
0.08056640625,
-0.0184783935546875,
0.016845703125,
0.055328369140625,
0.0013551712036132812,
0.0221405029296875,
0.00453948974609375,
-0.00826263427734375,
-0.0111541748046875,
0.03509521484375,
-0.0038299560546875,
-0.023956298828125,
0.0268707275390625,
0.0230712890625,
0.018585205078125,
0.0369873046875,
-0.0311279296875,
-0.014617919921875,
-0.0020427703857421875,
0.030242919921875,
-0.053253173828125,
-0.0748291015625,
-0.0242156982421875,
-0.014678955078125,
0.0180511474609375,
-0.057464599609375,
0.01513671875,
-0.01157379150390625,
-0.008575439453125,
-0.017364501953125,
0.032012939453125,
-0.0272979736328125,
-0.033935546875,
-0.015289306640625,
0.00807952880859375,
-0.006969451904296875,
-0.00518035888671875,
-0.020538330078125,
0.0162811279296875,
-0.0213470458984375,
-0.0162811279296875,
0.0526123046875,
-0.01128387451171875,
0.0240631103515625,
-0.04107666015625,
0.0271453857421875,
-0.03485107421875,
-0.01541900634765625,
0.058135986328125,
0.023895263671875,
-0.038482666015625,
0.00003349781036376953,
-0.040191650390625,
0.00318145751953125,
-0.0306549072265625,
-0.044921875,
-0.029937744140625,
0.00406646728515625,
0.02337646484375,
0.01274871826171875,
0.00417327880859375,
-0.0223541259765625,
-0.031768798828125,
0.002651214599609375,
0.01508331298828125,
0.0301666259765625,
-0.005229949951171875,
0.03558349609375,
0.00563812255859375,
0.027374267578125,
0.01580810546875,
0.0254669189453125,
-0.01502227783203125,
-0.0183868408203125,
0.0006513595581054688,
-0.00226593017578125,
0.0026531219482421875,
-0.0213775634765625,
0.017974853515625,
-0.0270843505859375,
0.049774169921875,
-0.002567291259765625,
-0.025787353515625,
-0.007335662841796875,
-0.01013946533203125,
-0.019287109375,
0.053466796875,
0.025054931640625,
-0.00705718994140625,
-0.026092529296875,
0.0058135986328125,
0.006916046142578125,
-0.019775390625,
-0.006534576416015625,
-0.0011186599731445312,
0.00449371337890625,
-0.004611968994140625,
-0.0099945068359375,
-0.052093505859375,
0.06634521484375,
0.04791259765625,
-0.0003077983856201172,
0.032073974609375,
0.00981903076171875,
0.00791168212890625,
0.0087890625,
-0.00518798828125,
-0.034759521484375,
-0.01995849609375,
0.034881591796875,
0.0034503936767578125,
-0.024932861328125,
0.0221710205078125,
-0.02838134765625,
0.0275421142578125,
0.09588623046875,
0.099609375,
-0.1256103515625,
0.0268402099609375,
-0.0035228729248046875,
-0.022857666015625,
0.034271240234375,
0.0151214599609375,
-0.0228271484375,
-0.0350341796875,
0.042938232421875,
-0.040679931640625,
-0.001834869384765625,
0.00006526708602905273,
-0.0008077621459960938,
-0.0007147789001464844,
-0.032684326171875,
0.06439208984375,
0.0250396728515625,
-0.03778076171875,
0.0251617431640625,
0.0305938720703125,
0.0090484619140625,
-0.016204833984375,
-0.0010013580322265625,
0.029632568359375,
-0.01513671875,
-0.041900634765625,
0.035491943359375,
-0.0192413330078125,
0.0018758773803710938,
-0.01555633544921875,
0.0006656646728515625,
0.06671142578125,
0.0159454345703125,
0.030548095703125,
-0.0732421875,
0.0023345947265625,
-0.00661468505859375,
0.022613525390625,
0.006938934326171875,
0.00001055002212524414,
-0.0058746337890625,
-0.031341552734375,
0.00380706787109375,
-0.032958984375,
0.00569915771484375,
-0.0113677978515625,
0.0021820068359375,
0.058685302734375,
0.0130615234375,
-0.034210205078125,
0.04010009765625,
0.003082275390625,
-0.0298004150390625,
-0.015411376953125,
-0.012115478515625,
-0.043121337890625,
-0.01143646240234375,
-0.02301025390625,
-0.036956787109375,
0.01317596435546875,
-0.03118896484375,
-0.061065673828125,
0.08856201171875,
0.0193023681640625,
0.0270233154296875,
0.010040283203125,
0.0179901123046875,
0.00803375244140625,
0.0157012939453125,
-0.0298919677734375,
0.037322998046875,
0.0078887939453125,
0.036865234375,
0.0006885528564453125,
0.0105438232421875,
0.01922607421875,
-0.0092010498046875,
0.08953857421875,
0.030029296875,
-0.05023193359375,
-0.0250396728515625,
0.02984619140625,
0.0528564453125,
-0.00395965576171875,
0.030609130859375,
0.0185546875,
0.04010009765625,
0.06695556640625,
-0.0662841796875,
0.020477294921875,
-0.020172119140625,
0.013031005859375,
0.044464111328125,
-0.011199951171875,
-0.036346435546875,
0.0098114013671875,
0.0450439453125,
-0.0869140625,
0.0162353515625,
0.042633056640625,
-0.0006432533264160156,
0.01654052734375,
-0.006397247314453125,
0.0060272216796875,
-0.0232391357421875,
0.0173492431640625,
-0.017486572265625,
0.034820556640625,
-0.0039520263671875,
0.0014829635620117188,
0.0177764892578125,
0.01541900634765625,
0.0166015625,
-0.01003265380859375,
-0.01256561279296875,
0.01959228515625,
0.01050567626953125,
0.054412841796875,
-0.002460479736328125,
0.0147857666015625,
-0.076904296875,
0.002285003662109375,
0.045196533203125,
0.0782470703125,
-0.050872802734375,
0.0023326873779296875,
0.0037822723388671875,
0.018646240234375,
0.039581298828125,
-0.0019168853759765625,
0.100830078125,
-0.0190582275390625,
-0.024169921875,
-0.06304931640625,
0.0217742919921875,
0.0467529296875,
0.01158905029296875,
0.0020122528076171875,
0.01043701171875,
-0.03759765625,
0.01056671142578125,
-0.0276947021484375,
0.0249786376953125,
0.01898193359375,
-0.02056884765625,
-0.012969970703125,
0.0379638671875,
0.0582275390625,
0.01983642578125,
-0.0032863616943359375,
0.004726409912109375,
0.0008020401000976562,
-0.01549530029296875,
0.004665374755859375,
-0.0104522705078125,
-0.015716552734375,
0.026611328125,
-0.017822265625,
-0.03460693359375,
0.01306915283203125,
0.029998779296875,
-0.024200439453125,
-0.0322265625,
-0.0104827880859375,
-0.018096923828125,
0.003238677978515625,
0.003124237060546875,
-0.01678466796875,
0.0015020370483398438,
-0.0175628662109375,
-0.0201416015625,
0.01534271240234375,
0.03985595703125,
0.0028228759765625,
0.06353759765625,
-0.0054473876953125,
0.00576019287109375,
0.0235137939453125,
-0.0316162109375,
0.0576171875,
0.006778717041015625,
-0.08489990234375,
-0.01641845703125,
-0.0242462158203125,
-0.00904083251953125,
0.0362548828125,
0.03533935546875,
-0.005847930908203125,
0.023284912109375,
0.02801513671875,
-0.038177490234375,
0.057159423828125,
-0.00667572021484375,
0.0037784576416015625,
-0.0177154541015625,
0.0015726089477539062,
-0.0262298583984375,
-0.0718994140625,
-0.0295867919921875,
-0.02984619140625,
-0.002094268798828125,
0.01090240478515625,
0.038818359375,
0.027496337890625,
0.000965118408203125,
-0.06622314453125,
0.03717041015625,
-0.0648193359375,
-0.037322998046875,
0.031463623046875,
-0.006214141845703125,
-0.035675048828125,
0.003299713134765625,
-0.04547119140625,
0.07135009765625,
-0.010009765625,
0.02691650390625,
0.063232421875,
-0.038604736328125,
-0.00652313232421875,
-0.01332855224609375,
0.0092926025390625,
-0.0225982666015625,
-0.034210205078125,
-0.043914794921875,
0.02606201171875,
0.0225372314453125,
0.018341064453125,
-0.038543701171875,
0.02532958984375,
-0.057464599609375,
-0.04449462890625,
-0.005352020263671875,
-0.039581298828125,
-0.0265655517578125,
0.01194000244140625,
-0.027191162109375,
0.023162841796875,
-0.015533447265625,
-0.020294189453125,
0.0245819091796875,
0.006801605224609375,
-0.017791748046875,
0.0045013427734375,
-0.01397705078125,
0.02276611328125,
0.059539794921875,
0.059844970703125,
0.010589599609375,
0.033172607421875,
0.00726318359375,
-0.01477813720703125,
0.0121612548828125,
-0.050567626953125,
-0.03436279296875,
-0.047698974609375,
0.002727508544921875,
-0.0010557174682617188,
-0.006633758544921875,
-0.055084228515625,
-0.0291290283203125,
0.00936126708984375,
0.00775146484375,
-0.0227508544921875,
-0.010040283203125,
-0.010101318359375,
-0.033416748046875,
0.044097900390625,
-0.039794921875,
-0.0193023681640625,
0.0296478271484375,
0.03289794921875,
-0.06121826171875,
-0.00734710693359375,
-0.0273284912109375,
-0.020050048828125,
-0.024078369140625,
0.0031833648681640625,
0.0384521484375,
0.0018968582153320312,
-0.05413818359375,
0.01702880859375,
-0.017608642578125,
0.05853271484375,
-0.050537109375,
-0.022491455078125,
0.0172576904296875,
-0.0005521774291992188,
-0.01055145263671875,
-0.0538330078125,
-0.0144500732421875,
-0.045501708984375,
-0.011993408203125,
0.007312774658203125,
0.0003654956817626953,
0.0186920166015625,
-0.047454833984375,
-0.11529541015625,
0.052978515625,
-0.0235443115234375,
-0.04876708984375,
-0.047271728515625,
0.0033130645751953125,
0.0043792724609375,
-0.0129241943359375,
-0.0146484375,
-0.031890869140625,
-0.044281005859375,
0.032684326171875,
0.0203704833984375,
-0.0202484130859375,
0.031890869140625,
-0.00167083740234375,
-0.05950927734375,
0.024200439453125,
0.031036376953125,
-0.0011835098266601562,
-0.00658416748046875,
0.01079559326171875,
0.0214691162109375,
0.051300048828125,
0.005222320556640625,
-0.01110076904296875,
-0.00995635986328125,
-0.042999267578125,
-0.01837158203125,
-0.026397705078125,
0.051483154296875,
0.032928466796875,
0.00621795654296875,
0.01143646240234375,
-0.013671875,
-0.037078857421875,
-0.034576416015625,
-0.04461669921875,
-0.0289459228515625,
-0.01157379150390625,
0.0286407470703125,
-0.0784912109375,
0.007556915283203125,
0.01320648193359375,
-0.014617919921875,
-0.02178955078125,
-0.006649017333984375,
-0.034423828125,
-0.0170440673828125,
-0.01250457763671875,
-0.01337432861328125,
0.011260986328125,
0.0015325546264648438,
0.054534912109375,
-0.040435791015625,
-0.026763916015625,
0.0162506103515625,
0.003810882568359375,
0.0044403076171875,
0.00023937225341796875,
0.040130615234375,
0.01432037353515625,
-0.0267791748046875,
-0.034088134765625,
0.038848876953125,
0.0018453598022460938,
0.0111083984375,
-0.048065185546875,
-0.029632568359375,
0.03375244140625,
0.0147247314453125,
0.0299072265625,
-0.017303466796875,
0.036376953125,
0.018524169921875,
0.055206298828125,
-0.005054473876953125,
-0.059295654296875,
-0.0204010009765625,
0.0288543701171875,
0.012359619140625,
-0.0188140869140625,
0.031951904296875,
-0.00998687744140625,
0.0001552104949951172,
0.0280914306640625,
0.06756591796875,
-0.0278167724609375,
0.036102294921875,
-0.0167236328125,
0.044586181640625,
0.022003173828125
] |
d52ea8ac2f3ffeede81c0961b69429ee022016f9
|
Wordpress Stackexchange
Q: Programmatically change post templates? I need to change the template on several hundred pages on my site. Does anyone know if there is a command to do it programmatically? See the following code snippet; I'd like to replace my comment inside the loop with a function that will change the template of the current page:
query = new WP_Query($args);
while ( $query->have_posts() ) : $the_query->the_post();
if ( has_tag('tag-slug') )
{
/* CHANGE TEMPLATE OF $post */
}
endwhile;
wp_reset_postdata();
A: I take it that you mean saving the pages with a new post-template to the DB? see if there's anything in the post object that refers to the page-template, if so craft a query that updates that.
Update:
Taken from the wp_insert_post documentation
NOTE: The page_template key was removed from the $post table and is
now located in the wp_postmeta table. To set the page template of a
page, use update_post_meta instead with a meta key of
_wp_page_template.
So you can fetch the page template using get_post_meta, and update it with update_post_meta (Or set it with add_post_meta)
|
Q: Programmatically change post templates? I need to change the template on several hundred pages on my site. Does anyone know if there is a command to do it programmatically? See the following code snippet; I'd like to replace my comment inside the loop with a function that will change the template of the current page:
query = new WP_Query($args);
while ( $query->have_posts() ) : $the_query->the_post();
if ( has_tag('tag-slug') )
{
/* CHANGE TEMPLATE OF $post */
}
endwhile;
wp_reset_postdata();
A: I take it that you mean saving the pages with a new post-template to the DB? see if there's anything in the post object that refers to the page-template, if so craft a query that updates that.
Update:
Taken from the wp_insert_post documentation
NOTE: The page_template key was removed from the $post table and is
now located in the wp_postmeta table. To set the page template of a
page, use update_post_meta instead with a meta key of
_wp_page_template.
So you can fetch the page template using get_post_meta, and update it with update_post_meta (Or set it with add_post_meta)
A: What kinds of formatting are you referring to? If you want to change the formatting that can be changed by css. You can use post_class() which will add a class naming your tag in the container. Then you can style targeting that class.
Inside the loop:
<div <?php post_class()?> >
</div>
Also check the action pre_get_post; Using it with conditionals might help.
A: Try this:
while ( $query->have_posts() ) : $query->the_post();
if ( has_tag('tag-slug') )
{
get_template_part( 'content', 'tag-slug' );
}
else
{
get_template_part( 'content' );
}
endwhile;
You would then need to create content.php and content-tag-slug.php with the appropriate content.
You could also look into setting up Post Formats. A bit more work up front, but a nicer experience down the road.
A: To change the template of a post, call update_post_meta($query->the_post->ID, '_wp_page_template', 'YOUR-NEW-TEMPLATE-HERE.php')
Here, then, is the example from the WP Codex found in @Xeross's link with the code snippet from the original question:
$query = new WP_Query($args);
while ( $query->have_posts() ) : $query->the_post();
if ( has_tag('tag-slug') )
{
/* CHANGE TEMPLATE OF $post */
update_post_meta($query->the_post->ID, '_wp_page_template', 'YOUR-NEW-TEMPLATE-HERE.php');
}
endwhile;
wp_reset_postdata();
Kudos to @Xeross for providing the answer in a link and providing the documentation about where the template datum is stored. See @Xeross's answer for more https://wordpress.stackexchange.com/a/24933/69247
|
wordpress
|
{
"language": "en",
"length": 389,
"provenance": "stackexchange_00019.jsonl.gz:411922",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24924"
}
|
[
0.03106689453125,
-0.01551055908203125,
0.006801605224609375,
-0.00197601318359375,
-0.0110626220703125,
-0.0234375,
0.03411865234375,
-0.0218963623046875,
0.0064849853515625,
0.01654052734375,
-0.0078582763671875,
-0.0283355712890625,
0.0178070068359375,
-0.0280609130859375,
0.00034928321838378906,
-0.0278778076171875,
0.05218505859375,
-0.04364013671875,
0.0164947509765625,
-0.019012451171875,
0.0264892578125,
0.0052947998046875,
0.03387451171875,
0.0947265625,
0.018707275390625,
-0.010009765625,
0.055938720703125,
-0.01422882080078125,
0.006160736083984375,
-0.02886962890625,
0.0197296142578125,
0.04278564453125,
0.0207061767578125,
0.00824737548828125,
-0.044219970703125,
-0.00733184814453125,
-0.0007753372192382812,
-0.0013532638549804688,
-0.0212249755859375,
0.0262451171875,
-0.0021209716796875,
0.0193023681640625,
-0.007671356201171875,
0.0224761962890625,
-0.01226043701171875,
-0.0282745361328125,
-0.0227508544921875,
-0.059600830078125,
0.01187896728515625,
0.0211181640625,
0.014129638671875,
-0.003765106201171875,
0.0131683349609375,
-0.01194000244140625,
-0.001373291015625,
0.0027751922607421875,
-0.0214385986328125,
-0.0226593017578125,
0.037017822265625,
-0.01202392578125,
-0.007625579833984375,
-0.0259857177734375,
0.018798828125,
-0.0012369155883789062,
0.006015777587890625,
-0.01125335693359375,
-0.0024967193603515625,
0.03045654296875,
-0.0180816650390625,
0.013519287109375,
0.0235443115234375,
-0.01328277587890625,
-0.005992889404296875,
-0.0249786376953125,
0.0146484375,
0.00421142578125,
0.007049560546875,
-0.002941131591796875,
-0.0164337158203125,
0.0251617431640625,
0.057952880859375,
0.0120697021484375,
0.00322723388671875,
-0.041961669921875,
0.031402587890625,
-0.01617431640625,
0.0054779052734375,
-0.0226898193359375,
-0.035430908203125,
-0.02081298828125,
-0.033905029296875,
0.005626678466796875,
-0.00791168212890625,
-0.0175933837890625,
-0.03375244140625,
-0.0019588470458984375,
0.005313873291015625,
0.058319091796875,
-0.0277862548828125,
0.01617431640625,
-0.020782470703125,
-0.033721923828125,
0.04827880859375,
-0.03900146484375,
-0.00647735595703125,
0.01030731201171875,
-0.00670623779296875,
0.0110626220703125,
0.03436279296875,
0.044342041015625,
0.000545501708984375,
-0.0030422210693359375,
-0.03900146484375,
0.0012636184692382812,
-0.0621337890625,
0.03619384765625,
-0.03955078125,
-0.045166015625,
-0.007129669189453125,
-0.01227569580078125,
0.01715087890625,
0.03399658203125,
0.02587890625,
-0.02252197265625,
-0.0038909912109375,
0.0028667449951171875,
-0.0233306884765625,
-0.0743408203125,
-0.007740020751953125,
0.0008139610290527344,
-0.04095458984375,
-0.004383087158203125,
0.0980224609375,
0.06146240234375,
0.022796630859375,
-0.0200042724609375,
0.00555419921875,
-0.05328369140625,
-0.01288604736328125,
0.023040771484375,
-0.0131988525390625,
-0.020111083984375,
0.0203399658203125,
-0.019073486328125,
0.02337646484375,
0.01419830322265625,
0.02679443359375,
0.03228759765625,
-0.005580902099609375,
-0.01241302490234375,
0.003139495849609375,
0.00749969482421875,
-0.002300262451171875,
0.019561767578125,
0.03192138671875,
-0.024139404296875,
0.004467010498046875,
-0.0210723876953125,
0.03826904296875,
-0.0159149169921875,
0.01160430908203125,
-0.00650787353515625,
0.0384521484375,
0.00666046142578125,
0.0038318634033203125,
0.0225372314453125,
-0.0421142578125,
-0.0133056640625,
0.0214385986328125,
0.0309600830078125,
-0.006481170654296875,
-0.01495361328125,
0.040191650390625,
-0.002197265625,
-0.022003173828125,
-0.0018892288208007812,
-0.032623291015625,
0.00795745849609375,
0.031097412109375,
-0.00611114501953125,
-0.016448974609375,
-0.03271484375,
0.0233612060546875,
0.0101776123046875,
-0.0399169921875,
0.03448486328125,
0.0182952880859375,
0.0428466796875,
-0.006114959716796875,
0.01690673828125,
0.045501708984375,
0.007785797119140625,
-0.0440673828125,
0.04730224609375,
0.035369873046875,
-0.01430511474609375,
-0.044158935546875,
0.001605987548828125,
0.002655029296875,
-0.07000732421875,
-0.00782012939453125,
0.026885986328125,
-0.033782958984375,
0.041961669921875,
-0.04388427734375,
0.007457733154296875,
-0.013336181640625,
0.0280303955078125,
0.007503509521484375,
0.0235443115234375,
0.0017080307006835938,
-0.0413818359375,
0.0164947509765625,
-0.033843994140625,
-0.04449462890625,
-0.018707275390625,
0.0032024383544921875,
-0.0185089111328125,
0.00856781005859375,
0.005588531494140625,
-0.00476837158203125,
0.00823211669921875,
-0.02734375,
0.0135955810546875,
0.039215087890625,
-0.0186767578125,
-0.0240020751953125,
-0.0209808349609375,
-0.022857666015625,
0.0098114013671875,
-0.0980224609375,
0.05291748046875,
-0.0203857421875,
-0.017852783203125,
-0.01520538330078125,
-0.0048980712890625,
-0.01288604736328125,
-0.0513916015625,
0.004123687744140625,
0.0426025390625,
0.03021240234375,
-0.0051422119140625,
0.0016851425170898438,
0.0328369140625,
0.046417236328125,
0.0204010009765625,
0.028167724609375,
0.011871337890625,
0.055328369140625,
0.0704345703125,
-0.003444671630859375,
-0.0067901611328125,
0.0110015869140625,
-0.051849365234375,
0.0494384765625,
0.021820068359375,
0.00005245208740234375,
0.056182861328125,
-0.016815185546875,
0.004253387451171875,
-0.018646240234375,
0.007904052734375,
0.024169921875,
-0.020050048828125,
0.06732177734375,
-0.005199432373046875,
0.034454345703125,
0.002002716064453125,
-0.0292205810546875,
0.0062255859375,
0.017608642578125,
-0.038055419921875,
0.0194854736328125,
-0.0073089599609375,
-0.08087158203125,
0.054595947265625,
-0.05419921875,
0.02001953125,
0.0386962890625,
-0.0006318092346191406,
-0.00945281982421875,
0.056488037109375,
-0.056732177734375,
-0.00897979736328125,
-0.0272216796875,
-0.04498291015625,
-0.033782958984375,
0.03582763671875,
0.0092926025390625,
0.0059356689453125,
0.03912353515625,
0.01776123046875,
-0.037078857421875,
0.0457763671875,
-0.046478271484375,
-0.00763702392578125,
0.08721923828125,
-0.049346923828125,
0.03985595703125,
-0.015899658203125,
0.055145263671875,
0.059417724609375,
-0.01300048828125,
0.029296875,
-0.003101348876953125,
0.0121002197265625,
0.0007276535034179688,
-0.004459381103515625,
-0.004917144775390625,
-0.028717041015625,
0.005283355712890625,
0.02899169921875,
0.0160675048828125,
0.058013916015625,
-0.0169525146484375,
-0.059783935546875,
0.0017633438110351562,
0.01776123046875,
-0.0628662109375,
-0.0699462890625,
0.027618408203125,
-0.040740966796875,
-0.0232086181640625,
-0.0308685302734375,
-0.03045654296875,
0.0046539306640625,
-0.0220947265625,
-0.00756072998046875,
0.0036678314208984375,
-0.05810546875,
-0.05108642578125,
-0.0682373046875,
-0.04693603515625,
-0.016021728515625,
-0.0010290145874023438,
-0.022674560546875,
-0.002956390380859375,
0.07940673828125,
0.00688934326171875,
-0.043487548828125,
-0.036468505859375,
0.031005859375,
-0.032379150390625,
-0.0222930908203125,
0.0457763671875,
-0.06219482421875,
0.037750244140625,
-0.010406494140625,
-0.01456451416015625,
0.0523681640625,
-0.0146331787109375,
-0.00957489013671875,
-0.040313720703125,
-0.01200103759765625,
-0.0070953369140625,
-0.0201416015625,
0.042236328125,
0.016021728515625,
0.0031337738037109375,
-0.035919189453125,
-0.0615234375,
-0.019805908203125,
-0.08587646484375,
0.06182861328125,
0.0391845703125,
0.0280914306640625,
0.002262115478515625,
0.030059814453125,
0.031707763671875,
0.00911712646484375,
0.0245513916015625,
0.0006227493286132812,
0.0380859375,
-0.00417327880859375,
-0.00351715087890625,
-0.05523681640625,
0.0028533935546875,
-0.022491455078125,
-0.005580902099609375,
-0.003925323486328125,
0.032867431640625,
0.0099029541015625,
-0.01708984375,
-0.0233001708984375,
-0.069091796875,
0.03582763671875,
-0.0099945068359375,
0.0156402587890625,
-0.00992584228515625,
-0.0294952392578125,
0.01812744140625,
0.09344482421875,
-0.0022144317626953125,
-0.0267486572265625,
-0.021881103515625,
-0.0131683349609375,
-0.01099395751953125,
0.00902557373046875,
-0.015625,
-0.004055023193359375,
-0.036590576171875,
0.00812530517578125,
-0.00728607177734375,
-0.03021240234375,
-0.0160369873046875,
0.027099609375,
-0.032928466796875,
-0.01473236083984375,
0.0299835205078125,
-0.0034427642822265625,
-0.00566864013671875,
0.0093994140625,
-0.0191497802734375,
-0.007045745849609375,
-0.0184173583984375,
-0.0144500732421875,
-0.09619140625,
-0.016937255859375,
-0.0090179443359375,
0.07110595703125,
0.024749755859375,
-0.043487548828125,
-0.0308380126953125,
0.0230255126953125,
0.016815185546875,
0.0271759033203125,
-0.004180908203125,
0.01016998291015625,
0.01457977294921875,
-0.025665283203125,
0.0016031265258789062,
-0.020904541015625,
-0.00799560546875,
-0.0006518363952636719,
-0.00054168701171875,
0.02850341796875,
-0.0173187255859375,
-0.0147705078125,
0.01271820068359375,
-0.0235595703125,
-0.062225341796875,
-0.007305145263671875,
0.01322174072265625,
0.04193115234375,
-0.0119171142578125,
0.00905609130859375,
-0.0166778564453125,
-0.055328369140625,
0.0654296875,
0.010406494140625,
-0.0094146728515625,
-0.00638580322265625,
0.08489990234375,
0.00787353515625,
-0.034393310546875,
-0.056243896484375,
0.0217437744140625,
0.0197601318359375,
0.01416015625,
0.024810791015625,
-0.01045989990234375,
-0.007152557373046875,
0.044830322265625,
-0.010467529296875,
-0.0257568359375,
-0.0213623046875,
0.061981201171875,
-0.00748443603515625,
-0.041900634765625,
0.041900634765625,
-0.0304718017578125,
0.0139007568359375,
0.004528045654296875,
-0.0321044921875,
-0.004886627197265625,
-0.0316162109375,
0.05792236328125,
0.025634765625,
-0.0005540847778320312,
-0.07794189453125,
-0.039093017578125,
0.01169586181640625,
0.031402587890625,
-0.0265960693359375,
0.0033473968505859375,
0.0025119781494140625,
-0.004291534423828125,
-0.015594482421875,
0.00951385498046875,
0.0014772415161132812,
0.0101470947265625,
0.017303466796875,
0.035888671875,
-0.004817962646484375,
0.01727294921875,
-0.0246734619140625,
0.0088653564453125,
0.0209503173828125,
-0.0051422119140625,
-0.020751953125,
-0.0540771484375,
-0.01078033447265625,
0.01904296875,
-0.0011510848999023438,
0.0127410888671875,
0.052398681640625,
0.0032958984375,
0.007427215576171875,
-0.0215911865234375,
-0.03375244140625,
-0.019012451171875,
-0.060272216796875,
-0.0135955810546875,
0.0266265869140625,
-0.026336669921875,
0.0166168212890625,
0.010650634765625,
0.034454345703125,
-0.01273345947265625,
-0.0292510986328125,
0.011566162109375,
0.0205841064453125,
0.00872802734375,
0.01367950439453125,
0.01439666748046875,
-0.004093170166015625,
-0.0158538818359375,
0.0035610198974609375,
-0.0191650390625,
-0.0098724365234375,
0.0199127197265625,
0.04022216796875,
0.00962066650390625,
0.0022830963134765625,
-0.0100250244140625,
-0.035736083984375,
0.017974853515625,
-0.003932952880859375,
-0.0272674560546875,
-0.007526397705078125,
-0.0195770263671875,
0.021484375,
0.03948974609375,
-0.021697998046875,
0.01184844970703125,
-0.0259552001953125,
-0.0322265625,
-0.00035381317138671875,
-0.0127105712890625,
0.005252838134765625,
-0.030792236328125,
-0.041015625,
-0.045135498046875,
-0.021331787109375,
-0.01483917236328125,
-0.0391845703125,
-0.03204345703125,
0.0084686279296875,
-0.005611419677734375,
0.0183563232421875,
0.01296234130859375,
0.06390380859375,
-0.0250701904296875,
-0.04876708984375,
0.032684326171875,
0.00395965576171875,
0.02203369140625,
-0.0201263427734375,
-0.03472900390625,
0.00580596923828125,
-0.0615234375,
-0.02935791015625,
-0.05035400390625,
-0.06573486328125,
-0.05255126953125,
0.00443267822265625,
0.0224456787109375,
0.039947509765625,
-0.0016660690307617188,
0.003101348876953125,
0.0157928466796875,
0.0103759765625,
-0.0202484130859375,
0.07550048828125,
-0.016754150390625,
0.06475830078125,
0.00689697265625,
0.032867431640625,
0.003208160400390625,
0.020782470703125,
-0.0155181884765625,
-0.0043487548828125,
-0.0214996337890625,
-0.0374755859375,
0.01947021484375,
0.01904296875,
-0.0191802978515625,
0.0254058837890625,
0.061767578125,
0.0185546875,
0.0245208740234375,
-0.047119140625,
0.009307861328125,
-0.03399658203125,
0.059326171875,
-0.0791015625,
-0.0196380615234375,
0.0411376953125,
0.0033416748046875,
-0.00601959228515625,
0.007781982421875,
0.00003713369369506836,
-0.0021648406982421875,
0.0103759765625,
-0.005855560302734375,
-0.01291656494140625,
-0.034576416015625,
0.030670166015625,
0.056976318359375,
0.014129638671875,
0.0369873046875,
-0.017578125,
0.011077880859375,
0.01641845703125,
-0.0215301513671875,
0.00693511962890625,
0.02508544921875,
0.057952880859375,
-0.0026149749755859375,
0.0009369850158691406,
0.061767578125,
-0.034088134765625,
0.02203369140625,
0.038421630859375,
0.038909912109375,
-0.06329345703125,
0.0205230712890625,
0.004138946533203125,
-0.01690673828125,
0.0355224609375,
0.0134735107421875,
-0.0164337158203125,
-0.01357269287109375,
0.020233154296875,
0.0025463104248046875,
0.0061187744140625,
0.023406982421875,
0.01497650146484375,
-0.02093505859375,
-0.0242156982421875,
0.06280517578125,
0.025787353515625,
0.00786590576171875,
0.0343017578125,
-0.004375457763671875,
0.03173828125,
-0.0269775390625,
0.015625,
-0.00225830078125,
0.007720947265625,
-0.00884246826171875,
0.0780029296875,
-0.016876220703125,
0.0120849609375,
0.00789642333984375,
0.0634765625,
-0.00927734375,
0.0460205078125,
0.0011138916015625,
0.0217132568359375,
0.016571044921875,
-0.00018668174743652344,
-0.050018310546875,
-0.0163116455078125,
0.004482269287109375,
0.00030732154846191406,
-0.03863525390625,
0.01904296875,
-0.05828857421875,
-0.0017919540405273438,
-0.0157623291015625,
0.00873565673828125,
0.0830078125,
-0.01398468017578125,
-0.029083251953125,
0.02032470703125,
0.019195556640625,
-0.0206146240234375,
0.0012598037719726562,
0.00659942626953125,
-0.0209197998046875,
-0.011199951171875,
0.006290435791015625,
-0.0312042236328125,
-0.027984619140625,
-0.0199737548828125,
-0.08477783203125,
0.12646484375,
0.0259246826171875,
0.045196533203125,
0.01959228515625,
0.036651611328125,
-0.0709228515625,
-0.00296783447265625,
-0.028045654296875,
0.05023193359375,
0.01904296875,
0.060791015625,
-0.01538848876953125,
-0.004909515380859375,
0.0308990478515625,
0.032745361328125,
0.0572509765625,
0.00911712646484375,
-0.01025390625,
-0.0232696533203125,
0.043670654296875,
0.0206756591796875,
-0.01061248779296875,
0.0256805419921875,
-0.022186279296875,
0.054718017578125,
-0.02239990234375,
-0.08856201171875,
0.000045239925384521484,
-0.0308685302734375,
-0.043182373046875,
0.007495880126953125,
0.01364898681640625,
0.020416259765625,
-0.011322021484375,
-0.01690673828125,
-0.039794921875,
-0.00989532470703125,
0.0283660888671875,
-0.014556884765625,
0.003498077392578125,
0.033538818359375,
0.0237274169921875,
-0.03033447265625,
-0.0183258056640625,
-0.0282135009765625,
0.046722412109375,
0.003192901611328125,
0.00753021240234375,
-0.024261474609375,
0.0064849853515625,
0.035003662109375,
-0.00482940673828125,
-0.007480621337890625,
0.043670654296875,
-0.020263671875,
0.10650634765625,
0.00908660888671875,
0.0181884765625,
-0.05401611328125,
0.039306640625,
0.01522064208984375,
0.08538818359375,
-0.0823974609375,
0.0005860328674316406,
0.0170745849609375,
0.011962890625,
-0.023681640625,
-0.040374755859375,
0.00434112548828125,
0.00827789306640625,
0.01236724853515625,
-0.011871337890625,
-0.0267333984375,
-0.01044464111328125,
-0.0034503936767578125,
-0.01763916015625,
-0.0212249755859375,
0.0236663818359375,
-0.0052032470703125,
-0.042449951171875,
0.0197296142578125,
0.02313232421875,
0.0428466796875,
0.01192474365234375,
0.0560302734375,
-0.007030487060546875,
-0.0225982666015625,
-0.01201629638671875,
-0.0035686492919921875,
-0.024871826171875,
0.0301055908203125,
-0.017822265625,
0.0033321380615234375,
-0.02130126953125,
0.0238800048828125,
0.0261688232421875,
0.0143890380859375,
0.045806884765625,
-0.004932403564453125,
-0.03814697265625,
-0.018646240234375,
-0.00823974609375,
-0.039947509765625,
0.030609130859375,
-0.0301513671875,
0.01245880126953125,
-0.036529541015625,
-0.023162841796875,
-0.0173187255859375,
0.043243408203125,
-0.02386474609375,
-0.00872039794921875,
0.038055419921875,
0.001422882080078125,
0.0013952255249023438,
0.06646728515625,
0.030181884765625,
0.04742431640625,
0.04180908203125,
-0.08062744140625,
0.002071380615234375,
-0.036712646484375,
-0.0687255859375,
0.0303802490234375,
0.0330810546875,
-0.056976318359375,
0.054473876953125,
-0.0257568359375,
0.026580810546875,
0.0107574462890625,
-0.035247802734375,
0.007221221923828125,
0.03424072265625,
0.0265960693359375,
0.012054443359375,
-0.063232421875,
-0.0247344970703125,
-0.035308837890625,
0.036895751953125,
-0.0058746337890625,
0.10858154296875,
-0.0261077880859375,
0.01377105712890625,
0.006267547607421875,
0.00585174560546875,
0.0004029273986816406,
-0.007358551025390625,
0.057586669921875,
0.016998291015625,
0.003143310546875,
-0.0286712646484375,
0.0036449432373046875,
0.0248565673828125,
0.049346923828125,
-0.0124664306640625,
0.02410888671875,
-0.03729248046875,
0.01157379150390625,
-0.023590087890625,
-0.006805419921875,
-0.019561767578125,
0.007190704345703125,
0.01500701904296875,
0.00043082237243652344,
0.016876220703125,
0.0161895751953125,
0.006561279296875,
0.0550537109375,
0.01007080078125,
0.00788116455078125,
0.005496978759765625,
-0.00873565673828125,
-0.0008616447448730469,
0.040924072265625,
-0.0159149169921875,
-0.00917816162109375,
0.03204345703125,
-0.0194244384765625,
0.00972747802734375,
-0.0006594657897949219,
0.03692626953125,
0.008941650390625,
-0.0130767822265625,
-0.01800537109375,
-0.042327880859375,
0.0028553009033203125,
-0.0275115966796875,
-0.000015616416931152344,
-0.0290069580078125,
0.0180816650390625,
0.01080322265625,
-0.032440185546875,
-0.0196990966796875,
-0.02606201171875,
0.005153656005859375,
0.0166473388671875,
0.0005269050598144531,
-0.03948974609375,
-0.0231781005859375,
-0.046234130859375,
0.00025153160095214844,
0.006031036376953125,
-0.0273895263671875,
-0.0086517333984375,
0.0235748291015625,
-0.0039825439453125,
-0.012176513671875,
-0.044219970703125,
0.0282135009765625,
0.0460205078125,
-0.034576416015625,
0.01690673828125,
-0.038421630859375,
-0.06201171875,
-0.0255126953125,
0.0099029541015625,
0.059417724609375,
-0.0196380615234375,
-0.0374755859375,
0.0050506591796875,
0.0045318603515625,
0.06195068359375,
-0.0297393798828125,
-0.0037746429443359375,
0.052947998046875,
0.00872039794921875,
-0.022186279296875,
-0.08050537109375,
-0.0164794921875,
-0.045074462890625,
0.058990478515625,
0.0164031982421875,
0.00531005859375,
0.035003662109375,
-0.0167236328125,
-0.06695556640625,
-0.033935546875,
0.00409698486328125,
-0.046173095703125,
-0.0237579345703125,
0.0286865234375,
-0.0111083984375,
-0.01125335693359375,
-0.0031604766845703125,
-0.01541900634765625,
0.0211334228515625,
0.016357421875,
0.024383544921875,
0.037353515625,
0.0299835205078125,
0.0121307373046875,
-0.0298614501953125,
0.017578125,
-0.01462554931640625,
0.0232086181640625,
0.006053924560546875,
-0.032073974609375,
0.022735595703125,
0.01273345947265625,
-0.060760498046875,
-0.034698486328125,
0.007671356201171875,
0.033721923828125,
-0.033203125,
0.0188751220703125,
-0.0090179443359375,
0.041656494140625,
0.094970703125,
0.06573486328125,
0.033599853515625,
-0.06488037109375,
0.0123291015625,
0.0171966552734375,
-0.04876708984375,
0.00844573974609375,
0.040924072265625,
-0.058258056640625,
-0.0037841796875,
0.0181732177734375,
-0.0082244873046875,
-0.0169830322265625,
-0.044647216796875,
-0.038818359375,
-0.007709503173828125,
-0.042999267578125,
0.007843017578125,
-0.00998687744140625,
0.01236724853515625,
0.051239013671875,
-0.031005859375,
0.018310546875,
-0.016326904296875,
0.01132965087890625,
0.033477783203125,
-0.0220794677734375,
-0.005035400390625,
0.0247955322265625,
-0.05987548828125,
0.0029888153076171875,
-0.007595062255859375,
0.016815185546875,
-0.0269927978515625,
0.014190673828125,
0.00024580955505371094,
0.01727294921875,
-0.01316070556640625,
0.0017900466918945312,
-0.00689697265625,
0.056915283203125,
-0.0028438568115234375,
0.0667724609375,
-0.003223419189453125,
0.0244598388671875,
-0.002529144287109375,
0.023773193359375,
-0.0265350341796875,
-0.0084075927734375,
-0.007762908935546875,
-0.035614013671875,
-0.0148468017578125,
0.0021877288818359375,
-0.01277923583984375,
-0.043609619140625,
0.03924560546875,
-0.0234527587890625,
0.007038116455078125,
0.024444580078125
] |
570b34db424dac913a3a46cd4c57abbde6fed6fa
|
Wordpress Stackexchange
Q: How to keep a textarea and stop tinymce? If I run this code then I no longer get the toolbar but I still get a word count and visual/html tabs and when I save the post my content gets wrapped in <\p> tags.
jQuery(document).ready(function() {
jQuery('#content').removeClass('theEditor').addClass('mceNoEditor');
tinyMCE.init({
mode: "none",
editor_deselector : "mceNoEditor"
});
What is the correct way to keep a textarea and not let tinymce override it?
A: You can remove the wp-autop function which WordPress uses to format the output of the WYSIWYG editor. It will stop tinymce from adding additional p tags, but will require you to add correct formatting (because you're removing the wp-autop the output won't be altered. This if you use the visual editor and it doesn't convert the visual input to valid HTML tinymce will no longer attempt to correct it).
If you still want to try, here is the code to add to your functions.php file:
<?php remove_filter ('the_content', 'wpautop'); ?>
|
Q: How to keep a textarea and stop tinymce? If I run this code then I no longer get the toolbar but I still get a word count and visual/html tabs and when I save the post my content gets wrapped in <\p> tags.
jQuery(document).ready(function() {
jQuery('#content').removeClass('theEditor').addClass('mceNoEditor');
tinyMCE.init({
mode: "none",
editor_deselector : "mceNoEditor"
});
What is the correct way to keep a textarea and not let tinymce override it?
A: You can remove the wp-autop function which WordPress uses to format the output of the WYSIWYG editor. It will stop tinymce from adding additional p tags, but will require you to add correct formatting (because you're removing the wp-autop the output won't be altered. This if you use the visual editor and it doesn't convert the visual input to valid HTML tinymce will no longer attempt to correct it).
If you still want to try, here is the code to add to your functions.php file:
<?php remove_filter ('the_content', 'wpautop'); ?>
A: This should work:
add_filter( 'user_can_richedit', 'wpse24935_remove_richedit', 99 );
function wpse24935_remove_richedit( $bool ){
return $false;
}
|
wordpress
|
{
"language": "en",
"length": 176,
"provenance": "stackexchange_00019.jsonl.gz:411928",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24935"
}
|
[
0.006107330322265625,
0.01352691650390625,
-0.030670166015625,
0.029296875,
0.0204925537109375,
-0.043731689453125,
0.04571533203125,
-0.032379150390625,
0.035980224609375,
0.0343017578125,
-0.0070037841796875,
-0.020904541015625,
0.0191497802734375,
-0.027099609375,
-0.0218505859375,
-0.003902435302734375,
0.031005859375,
-0.04278564453125,
0.00600433349609375,
-0.0005888938903808594,
-0.006381988525390625,
0.0173492431640625,
0.0300140380859375,
-0.00885772705078125,
0.0063629150390625,
0.00307464599609375,
0.0914306640625,
-0.0189208984375,
-0.012115478515625,
-0.035186767578125,
0.00667572021484375,
0.010345458984375,
0.01338958740234375,
0.09429931640625,
-0.12646484375,
0.02215576171875,
-0.0234222412109375,
0.051422119140625,
0.005229949951171875,
0.0267486572265625,
0.0163726806640625,
-0.0024623870849609375,
-0.0014781951904296875,
0.0156707763671875,
-0.0154571533203125,
-0.03594970703125,
0.02606201171875,
-0.032012939453125,
-0.00016129016876220703,
-0.0316162109375,
0.01409912109375,
0.00872802734375,
0.0264739990234375,
-0.0355224609375,
-0.005321502685546875,
0.024566650390625,
-0.024139404296875,
-0.04852294921875,
0.007965087890625,
0.048919677734375,
0.033905029296875,
-0.006816864013671875,
0.0010614395141601562,
0.00521087646484375,
0.01006317138671875,
-0.019439697265625,
-0.04449462890625,
0.0216064453125,
-0.025146484375,
0.00803375244140625,
0.036285400390625,
-0.04571533203125,
0.019012451171875,
-0.04962158203125,
0.043365478515625,
0.0148773193359375,
-0.030670166015625,
-0.0034198760986328125,
0.0021228790283203125,
0.0023975372314453125,
0.007312774658203125,
0.002193450927734375,
-0.03253173828125,
-0.0138092041015625,
0.016448974609375,
0.01276397705078125,
-0.008331298828125,
-0.02020263671875,
-0.0277252197265625,
0.0136566162109375,
-0.0156402587890625,
-0.0302276611328125,
-0.0208587646484375,
0.045013427734375,
0.01702880859375,
-0.005184173583984375,
-0.004547119140625,
-0.02825927734375,
-0.015869140625,
0.0023174285888671875,
0.016265869140625,
-0.046630859375,
0.050384521484375,
-0.007137298583984375,
0.021820068359375,
0.0277099609375,
-0.038055419921875,
0.01509857177734375,
0.060455322265625,
0.032745361328125,
0.0064697265625,
-0.0170745849609375,
-0.03143310546875,
-0.039642333984375,
0.016448974609375,
0.0435791015625,
-0.034393310546875,
0.03875732421875,
0.01200103759765625,
0.031982421875,
-0.024169921875,
-0.0146331787109375,
0.01021575927734375,
0.00040459632873535156,
0.01377105712890625,
-0.007472991943359375,
-0.020263671875,
0.01544189453125,
-0.02044677734375,
0.027435302734375,
-0.0361328125,
-0.018951416015625,
0.01947021484375,
0.0670166015625,
0.04132080078125,
-0.0208740234375,
0.017730712890625,
0.0007710456848144531,
-0.004978179931640625,
0.00382232666015625,
-0.00453948974609375,
0.000054001808166503906,
0.01434326171875,
-0.0212860107421875,
-0.040557861328125,
0.016143798828125,
0.030181884765625,
0.0229949951171875,
-0.0572509765625,
-0.07867431640625,
0.0577392578125,
-0.052947998046875,
0.050567626953125,
0.017669677734375,
-0.0311126708984375,
-0.071044921875,
0.06622314453125,
-0.073486328125,
-0.006740570068359375,
-0.102783203125,
0.03131103515625,
-0.022216796875,
0.001674652099609375,
-0.0501708984375,
-0.056304931640625,
-0.005084991455078125,
-0.075927734375,
-0.003910064697265625,
0.0276031494140625,
0.006336212158203125,
0.00970458984375,
0.0028228759765625,
0.0271759033203125,
0.0154266357421875,
-0.00522613525390625,
0.01404571533203125,
-0.00595855712890625,
0.019775390625,
0.03448486328125,
0.01947021484375,
0.00551605224609375,
-0.0247955322265625,
0.08441162109375,
-0.0194854736328125,
-0.03814697265625,
0.043304443359375,
0.0015859603881835938,
0.06536865234375,
0.00665283203125,
0.017578125,
-0.0121612548828125,
0.01151275634765625,
-0.02490234375,
0.00971221923828125,
0.0138092041015625,
-0.0210723876953125,
-0.032135009765625,
-0.0014467239379882812,
-0.01041412353515625,
-0.041259765625,
0.07098388671875,
-0.00982666015625,
0.009552001953125,
-0.04400634765625,
-0.11029052734375,
0.0128326416015625,
-0.035797119140625,
0.036895751953125,
-0.0095672607421875,
0.0009784698486328125,
0.018280029296875,
-0.020843505859375,
-0.021392822265625,
0.0276947021484375,
-0.0108184814453125,
0.01380157470703125,
-0.02001953125,
0.01432037353515625,
0.00811004638671875,
0.01285552978515625,
0.035858154296875,
-0.005001068115234375,
0.0257720947265625,
0.00870513916015625,
0.0279693603515625,
-0.055023193359375,
-0.0164947509765625,
-0.04730224609375,
-0.01108551025390625,
-0.050323486328125,
-0.00695037841796875,
0.09332275390625,
0.031402587890625,
0.049468994140625,
-0.040283203125,
-0.045684814453125,
-0.0728759765625,
-0.09130859375,
0.0105133056640625,
0.0810546875,
0.032318115234375,
0.037506103515625,
-0.031341552734375,
-0.027130126953125,
0.0372314453125,
-0.051544189453125,
-0.0011339187622070312,
-0.0078887939453125,
0.0223541259765625,
0.0204315185546875,
0.01377105712890625,
-0.042327880859375,
0.0190277099609375,
-0.0662841796875,
0.043548583984375,
-0.00313568115234375,
0.0018339157104492188,
0.0274505615234375,
-0.00281524658203125,
-0.00665283203125,
0.0017099380493164062,
0.00379180908203125,
-0.00916290283203125,
-0.007289886474609375,
0.01971435546875,
0.00756072998046875,
0.042572021484375,
0.046600341796875,
0.0035152435302734375,
-0.0209808349609375,
0.0014190673828125,
0.029296875,
-0.015869140625,
0.00830078125,
0.035186767578125,
-0.018218994140625,
-0.050567626953125,
0.0033588409423828125,
0.0270538330078125,
0.017913818359375,
-0.0174102783203125,
0.0255889892578125,
0.0291290283203125,
-0.01009368896484375,
-0.005237579345703125,
-0.039276123046875,
0.006725311279296875,
-0.0279998779296875,
-0.00850677490234375,
-0.0347900390625,
-0.02130126953125,
0.03759765625,
-0.0322265625,
0.031829833984375,
0.04144287109375,
-0.016845703125,
0.036651611328125,
0.0176849365234375,
0.0164642333984375,
0.006694793701171875,
0.06707763671875,
0.045440673828125,
-0.0171051025390625,
0.0016117095947265625,
0.013763427734375,
0.0007414817810058594,
-0.0035839080810546875,
0.0251312255859375,
0.016876220703125,
0.043670654296875,
-0.098388671875,
0.00041294097900390625,
0.024322509765625,
0.050872802734375,
-0.0019378662109375,
-0.036041259765625,
0.0005278587341308594,
0.03692626953125,
-0.0158233642578125,
0.00965118408203125,
0.03253173828125,
-0.05224609375,
-0.038604736328125,
-0.005641937255859375,
-0.04541015625,
0.0033702850341796875,
0.0208282470703125,
-0.017852783203125,
-0.0452880859375,
-0.033477783203125,
-0.041351318359375,
-0.0445556640625,
-0.0335693359375,
0.042449951171875,
-0.00548553466796875,
0.01381683349609375,
0.027923583984375,
0.0753173828125,
0.0296783447265625,
-0.07763671875,
0.037017822265625,
-0.05572509765625,
-0.045013427734375,
0.07220458984375,
-0.00495147705078125,
-0.0249481201171875,
-0.01323699951171875,
-0.0025634765625,
-0.00983428955078125,
0.0005502700805664062,
0.01502227783203125,
-0.006885528564453125,
-0.0168609619140625,
-0.0267791748046875,
0.04998779296875,
0.0027446746826171875,
-0.02008056640625,
0.021636962890625,
0.08587646484375,
-0.0276947021484375,
-0.05419921875,
0.0311126708984375,
-0.033966064453125,
0.0406494140625,
0.018768310546875,
-0.0270538330078125,
0.00008100271224975586,
0.04150390625,
0.0026874542236328125,
0.038055419921875,
0.0240936279296875,
-0.00867462158203125,
0.05267333984375,
-0.031463623046875,
-0.0260772705078125,
-0.039520263671875,
0.0174102783203125,
-0.0296478271484375,
0.0233612060546875,
-0.007076263427734375,
-0.00957489013671875,
-0.0086669921875,
-0.0035247802734375,
0.0032672882080078125,
-0.015899658203125,
0.034881591796875,
-0.005786895751953125,
0.03350830078125,
-0.022216796875,
-0.01049041748046875,
-0.00978851318359375,
0.07720947265625,
-0.03448486328125,
-0.006511688232421875,
-0.0192413330078125,
0.005489349365234375,
-0.0242919921875,
-0.02972412109375,
-0.0406494140625,
-0.0103759765625,
-0.0296173095703125,
0.006252288818359375,
0.0006771087646484375,
-0.016204833984375,
-0.0306243896484375,
0.02288818359375,
-0.027740478515625,
-0.01303863525390625,
0.0239105224609375,
-0.0221710205078125,
0.00705718994140625,
-0.006732940673828125,
-0.0051422119140625,
-0.032958984375,
0.009368896484375,
-0.04180908203125,
-0.05877685546875,
-0.00957489013671875,
-0.036102294921875,
0.053375244140625,
0.0150604248046875,
0.001922607421875,
-0.0199432373046875,
0.04498291015625,
-0.005878448486328125,
0.0027446746826171875,
0.01605224609375,
0.023834228515625,
-0.00284576416015625,
-0.00550079345703125,
0.0263519287109375,
-0.03778076171875,
-0.0179443359375,
-0.00254058837890625,
-0.0010166168212890625,
0.0002467632293701172,
-0.034088134765625,
-0.041229248046875,
0.020751953125,
-0.020599365234375,
-0.0203399658203125,
-0.03497314453125,
-0.033172607421875,
0.0019626617431640625,
-0.02392578125,
-0.002460479736328125,
-0.01812744140625,
-0.02728271484375,
0.024993896484375,
-0.0057373046875,
-0.0003979206085205078,
0.0161590576171875,
0.057403564453125,
0.0188140869140625,
-0.00579833984375,
-0.0347900390625,
-0.0113067626953125,
0.0479736328125,
0.0169830322265625,
0.021392822265625,
0.0032596588134765625,
-0.0438232421875,
0.0787353515625,
0.0203704833984375,
0.015625,
-0.0565185546875,
0.0855712890625,
0.00848388671875,
0.01082611083984375,
0.0086822509765625,
-0.006954193115234375,
0.007232666015625,
-0.02142333984375,
-0.03759765625,
0.0447998046875,
-0.00223541259765625,
-0.003795623779296875,
-0.0004527568817138672,
0.0044708251953125,
-0.016754150390625,
-0.017852783203125,
-0.001995086669921875,
0.0218353271484375,
0.0242462158203125,
0.0024261474609375,
0.01023101806640625,
-0.0218658447265625,
0.0248870849609375,
-0.0179443359375,
0.00024008750915527344,
0.0299224853515625,
0.00841522216796875,
0.04229736328125,
-0.016845703125,
-0.0184783935546875,
-0.0284881591796875,
0.005645751953125,
-0.0306854248046875,
0.0221405029296875,
-0.01430511474609375,
-0.0258941650390625,
0.01010894775390625,
0.013336181640625,
-0.0255889892578125,
0.0233917236328125,
0.0186309814453125,
0.010101318359375,
-0.0002455711364746094,
0.01123809814453125,
0.025787353515625,
-0.01238250732421875,
-0.019989013671875,
-0.036041259765625,
-0.007076263427734375,
-0.019561767578125,
0.017730712890625,
0.0243072509765625,
-0.040924072265625,
0.0154876708984375,
-0.0013322830200195312,
0.01245880126953125,
-0.01393890380859375,
0.035858154296875,
0.01306915283203125,
0.026702880859375,
-0.0155181884765625,
0.02593994140625,
0.005611419677734375,
-0.031890869140625,
-0.0249176025390625,
0.03973388671875,
0.03411865234375,
0.01085662841796875,
-0.0059814453125,
-0.0127716064453125,
-0.018035888671875,
-0.0152130126953125,
-0.002643585205078125,
-0.014373779296875,
-0.0308990478515625,
0.0033702850341796875,
0.035736083984375,
0.01534271240234375,
0.0083770751953125,
0.01088714599609375,
-0.03265380859375,
-0.036529541015625,
-0.042083740234375,
0.0137176513671875,
-0.057586669921875,
-0.016510009765625,
-0.00133514404296875,
0.006683349609375,
-0.010772705078125,
-0.00626373291015625,
-0.08282470703125,
-0.03021240234375,
-0.018768310546875,
0.0225067138671875,
0.03741455078125,
-0.0287017822265625,
0.006130218505859375,
-0.0180816650390625,
0.0278167724609375,
-0.053955078125,
0.010589599609375,
0.0246734619140625,
0.01500701904296875,
-0.01763916015625,
-0.003753662109375,
-0.058380126953125,
-0.02252197265625,
-0.027374267578125,
-0.02020263671875,
-0.026519775390625,
-0.0036754608154296875,
0.031463623046875,
0.018646240234375,
0.0111083984375,
-0.007904052734375,
-0.01055908203125,
0.031707763671875,
0.0153045654296875,
0.06396484375,
-0.0169525146484375,
0.056884765625,
-0.0031185150146484375,
0.060272216796875,
0.00591278076171875,
0.049102783203125,
0.036865234375,
-0.046051025390625,
0.036376953125,
-0.07989501953125,
-0.039276123046875,
-0.00811767578125,
-0.04144287109375,
-0.0072174072265625,
-0.03741455078125,
-0.014190673828125,
0.00560760498046875,
-0.0026912689208984375,
0.0033111572265625,
-0.0208282470703125,
0.025787353515625,
0.004718780517578125,
0.00533294677734375,
-0.001316070556640625,
-0.03460693359375,
0.004314422607421875,
-0.014617919921875,
0.01287078857421875,
0.0279541015625,
-0.0282135009765625,
0.01467132568359375,
0.01381683349609375,
0.0208892822265625,
-0.003757476806640625,
-0.006519317626953125,
-0.016357421875,
0.022430419921875,
0.01519012451171875,
0.014312744140625,
0.01143646240234375,
-0.0009274482727050781,
0.0164947509765625,
0.0028839111328125,
0.059051513671875,
0.013214111328125,
0.018798828125,
0.061370849609375,
-0.0258941650390625,
0.01125335693359375,
0.06591796875,
0.06939697265625,
-0.08343505859375,
0.0031890869140625,
0.0182037353515625,
-0.0158538818359375,
0.0006442070007324219,
-0.02264404296875,
-0.026214599609375,
-0.033905029296875,
0.07928466796875,
-0.0055694580078125,
-0.014556884765625,
0.0191192626953125,
0.00679779052734375,
-0.0242462158203125,
0.0015459060668945312,
0.02752685546875,
0.00582122802734375,
-0.03533935546875,
-0.00791168212890625,
0.034423828125,
-0.024322509765625,
-0.01326751708984375,
0.01873779296875,
0.005245208740234375,
-0.027191162109375,
-0.06768798828125,
-0.00717926025390625,
0.0148468017578125,
-0.045257568359375,
0.009521484375,
-0.00389862060546875,
-0.00908660888671875,
0.06622314453125,
-0.0516357421875,
0.056640625,
0.0225372314453125,
-0.01154327392578125,
0.019073486328125,
-0.0098724365234375,
0.00347137451171875,
0.026519775390625,
-0.03076171875,
0.0131988525390625,
-0.010467529296875,
0.0074310302734375,
0.00998687744140625,
0.02178955078125,
0.0382080078125,
-0.0168609619140625,
-0.0237884521484375,
0.04425048828125,
-0.0173797607421875,
-0.0172576904296875,
-0.06707763671875,
-0.039886474609375,
-0.06292724609375,
0.01311492919921875,
-0.061492919921875,
-0.01248931884765625,
0.0287628173828125,
-0.09429931640625,
-0.08184814453125,
0.1427001953125,
0.05584716796875,
0.00792694091796875,
-0.034515380859375,
0.07452392578125,
-0.061920166015625,
0.03753662109375,
-0.00699615478515625,
0.02716064453125,
0.0101165771484375,
-0.0239410400390625,
-0.0164947509765625,
0.00670623779296875,
-0.019683837890625,
0.0179901123046875,
-0.0019512176513671875,
-0.0005884170532226562,
-0.015838623046875,
-0.01328277587890625,
0.033905029296875,
0.039215087890625,
0.006168365478515625,
0.016510009765625,
0.0267791748046875,
0.0039825439453125,
0.011260986328125,
-0.03265380859375,
0.02337646484375,
-0.0509033203125,
0.0071258544921875,
0.0516357421875,
0.0201416015625,
0.01049041748046875,
0.0142974853515625,
-0.0325927734375,
-0.01210784912109375,
0.007610321044921875,
0.005191802978515625,
-0.028167724609375,
-0.015167236328125,
0.05377197265625,
0.032073974609375,
-0.096923828125,
-0.03619384765625,
-0.04791259765625,
0.04034423828125,
-0.00785064697265625,
0.028472900390625,
0.01546478271484375,
0.01209259033203125,
0.005840301513671875,
0.0014677047729492188,
0.01178741455078125,
0.0298919677734375,
-0.0202484130859375,
-0.033477783203125,
0.000029027462005615234,
-0.005565643310546875,
-0.044677734375,
-0.0163116455078125,
0.07659912109375,
-0.004810333251953125,
0.004482269287109375,
-0.0289306640625,
0.01131439208984375,
-0.01425933837890625,
-0.028594970703125,
-0.037994384765625,
-0.042083740234375,
-0.0177764892578125,
0.01033782958984375,
0.0304412841796875,
-0.0178375244140625,
-0.0005979537963867188,
0.01373291015625,
0.020660400390625,
0.04150390625,
-0.0008878707885742188,
-0.01287841796875,
-0.055023193359375,
-0.01111602783203125,
0.000133514404296875,
0.041473388671875,
0.041107177734375,
0.043975830078125,
0.03387451171875,
-0.027130126953125,
-0.0196533203125,
0.00545501708984375,
-0.003170013427734375,
0.01263427734375,
-0.0237579345703125,
-0.01128387451171875,
0.022613525390625,
0.016693115234375,
0.03033447265625,
-0.026641845703125,
0.038787841796875,
0.046875,
-0.017913818359375,
-0.004131317138671875,
0.032623291015625,
0.0008363723754882812,
-0.0282440185546875,
-0.05023193359375,
-0.03289794921875,
0.0026683807373046875,
-0.00647735595703125,
0.03778076171875,
-0.02191162109375,
0.0247650146484375,
-0.0182037353515625,
0.0038890838623046875,
0.002620697021484375,
-0.0183868408203125,
0.0313720703125,
-0.033660888671875,
-0.0016298294067382812,
-0.001102447509765625,
-0.045928955078125,
-0.018829345703125,
0.0019235610961914062,
-0.015472412109375,
0.005908966064453125,
0.0280303955078125,
-0.00823211669921875,
0.0158538818359375,
-0.03240966796875,
-0.0267791748046875,
-0.00919342041015625,
-0.0004949569702148438,
0.0160064697265625,
-0.0085601806640625,
-0.00939178466796875,
-0.0236053466796875,
-0.012298583984375,
-0.0299224853515625,
-0.00510406494140625,
0.0694580078125,
0.02978515625,
0.0232696533203125,
-0.010223388671875,
0.040802001953125,
-0.0433349609375,
0.048095703125,
-0.03643798828125,
-0.031524658203125,
0.0243072509765625,
0.05474853515625,
0.01922607421875,
-0.0253448486328125,
-0.0657958984375,
0.029052734375,
0.0184783935546875,
-0.0028553009033203125,
0.02685546875,
0.0163116455078125,
-0.006992340087890625,
-0.02520751953125,
0.041839599609375,
-0.0211181640625,
0.0033779144287109375,
-0.042236328125,
-0.047515869140625,
0.047149658203125,
-0.01071929931640625,
0.0029163360595703125,
0.016632080078125,
0.0297698974609375,
-0.00835418701171875,
0.028076171875,
-0.024993896484375,
0.039520263671875,
0.04559326171875,
-0.01267242431640625,
-0.03875732421875,
0.01560211181640625,
-0.0169830322265625,
0.003780364990234375,
0.0124359130859375,
0.01238250732421875,
0.019927978515625,
-0.0875244140625,
-0.01253509521484375,
0.021026611328125,
0.05987548828125,
0.0117645263671875,
0.0252532958984375,
-0.03448486328125,
0.0068511962890625,
0.00699615478515625,
0.0234375,
-0.037200927734375,
-0.0305023193359375,
0.019683837890625,
0.023284912109375,
0.00322723388671875,
-0.017669677734375,
-0.08111572265625,
-0.0162200927734375,
0.04156494140625,
0.019500732421875,
-0.0755615234375,
0.0288848876953125,
-0.0110931396484375,
0.04254150390625,
-0.0038356781005859375,
0.0237884521484375,
-0.0252532958984375,
-0.00016748905181884766,
-0.036956787109375,
-0.042877197265625,
-0.06549072265625,
0.04864501953125,
-0.058197021484375,
-0.0085296630859375,
0.00527191162109375,
0.005878448486328125,
-0.00913238525390625,
-0.03448486328125,
-0.0122222900390625,
0.010467529296875,
0.01020050048828125,
-0.006420135498046875,
0.06689453125,
-0.01067352294921875,
-0.0172576904296875,
-0.05828857421875,
-0.03460693359375,
-0.0160980224609375,
0.0517578125,
-0.001983642578125,
-0.00838470458984375,
-0.0020236968994140625,
-0.039886474609375,
-0.05303955078125,
-0.0053863525390625,
0.0114593505859375,
-0.0246124267578125,
0.03741455078125,
-0.0287628173828125,
-0.02032470703125,
-0.005893707275390625,
0.0018329620361328125,
0.0142822265625,
0.00250244140625,
0.0162200927734375,
0.007080078125,
0.050140380859375,
0.024627685546875,
-0.040740966796875,
-0.0218505859375,
-0.0031528472900390625,
-0.00909423828125,
0.034759521484375,
-0.01215362548828125,
0.01220703125,
0.031463623046875,
0.05487060546875,
0.00919342041015625,
-0.0305633544921875,
0.00867462158203125,
-0.06512451171875,
0.00196075439453125,
-0.030670166015625,
-0.034210205078125,
-0.016387939453125,
0.04022216796875,
0.05523681640625,
0.01812744140625,
-0.027587890625,
-0.0076446533203125,
0.0009784698486328125,
-0.0183258056640625,
0.0010728836059570312,
0.0117034912109375,
-0.053985595703125,
-0.011322021484375,
0.0030422210693359375,
0.0007352828979492188,
0.005496978759765625,
-0.0210418701171875,
-0.01971435546875,
-0.014739990234375,
0.0123291015625,
0.00708770751953125,
-0.016021728515625,
-0.0223388671875,
0.037689208984375,
-0.025634765625,
-0.022735595703125,
0.01910400390625,
0.0135498046875,
-0.007564544677734375,
0.03131103515625,
-0.016754150390625,
0.01385498046875,
-0.035980224609375,
0.0196685791015625,
0.004604339599609375,
-0.0002512931823730469,
-0.037322998046875,
-0.0005869865417480469,
-0.02532958984375,
-0.0027027130126953125,
0.02008056640625,
0.01055145263671875,
-0.006290435791015625,
-0.021148681640625,
0.0221710205078125,
-0.049224853515625,
-0.03826904296875,
-0.0161285400390625,
-0.0323486328125,
-0.0012216567993164062,
0.01474761962890625,
0.0161590576171875,
0.07171630859375,
-0.01090240478515625,
0.0148468017578125,
0.018463134765625,
0.0204925537109375,
-0.005901336669921875,
-0.01141357421875,
0.018829345703125,
0.0092315673828125,
-0.004756927490234375
] |
5e1a36628d0f171bcd9b46f87ba9ad904d5aa174
|
Wordpress Stackexchange
Q: I want to display author gravatar on posts. How to do this? I just want to add author gravatar near the name of the author. I know that I have to add something in the single.php file, but what to add? Thanks!
A: If you're in the Loop:
echo get_avatar( get_the_author_meta('ID') );
|
Q: I want to display author gravatar on posts. How to do this? I just want to add author gravatar near the name of the author. I know that I have to add something in the single.php file, but what to add? Thanks!
A: If you're in the Loop:
echo get_avatar( get_the_author_meta('ID') );
A: Plenty of info on WP Codex on Gravatar's.
use: get_avatar( "id of author" );
|
wordpress
|
{
"language": "en",
"length": 68,
"provenance": "stackexchange_00019.jsonl.gz:411938",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24959"
}
|
[
0.07879638671875,
0.03448486328125,
0.0294189453125,
-0.041351318359375,
0.033599853515625,
-0.0207672119140625,
0.007694244384765625,
-0.05816650390625,
0.023834228515625,
0.038116455078125,
-0.022674560546875,
0.039398193359375,
0.00469970703125,
-0.01255035400390625,
-0.0087127685546875,
0.00595855712890625,
0.04638671875,
-0.029327392578125,
0.04290771484375,
0.0052490234375,
-0.005123138427734375,
0.03192138671875,
0.05267333984375,
-0.01537322998046875,
0.0216217041015625,
-0.037567138671875,
0.097412109375,
0.01050567626953125,
0.006473541259765625,
-0.0084686279296875,
0.0224761962890625,
-0.0132293701171875,
-0.00933837890625,
0.023773193359375,
0.0195465087890625,
0.01898193359375,
0.0079193115234375,
0.01448822021484375,
0.017730712890625,
0.0099945068359375,
0.035888671875,
-0.00997161865234375,
-0.036376953125,
0.02130126953125,
-0.05609130859375,
-0.0234527587890625,
0.0285797119140625,
0.0162353515625,
0.039947509765625,
0.0292816162109375,
-0.005512237548828125,
0.045806884765625,
-0.005504608154296875,
0.0274505615234375,
-0.01776123046875,
-0.05108642578125,
0.042236328125,
-0.0288848876953125,
0.02215576171875,
-0.032196044921875,
-0.036376953125,
0.0130462646484375,
0.041046142578125,
0.019500732421875,
0.032135009765625,
-0.00601959228515625,
0.0391845703125,
0.036773681640625,
-0.01438140869140625,
-0.006511688232421875,
-0.003482818603515625,
-0.01837158203125,
-0.015869140625,
-0.0212554931640625,
-0.0496826171875,
0.006351470947265625,
0.00992584228515625,
-0.04302978515625,
-0.003482818603515625,
0.00044083595275878906,
0.003326416015625,
0.002063751220703125,
0.032958984375,
-0.0660400390625,
0.048248291015625,
-0.00997161865234375,
-0.007183074951171875,
-0.01328277587890625,
-0.024505615234375,
-0.00811004638671875,
-0.0182037353515625,
-0.059600830078125,
-0.00490570068359375,
0.01157379150390625,
-0.01149749755859375,
-0.0242462158203125,
0.037872314453125,
0.034149169921875,
-0.0262603759765625,
-0.0044708251953125,
0.0258331298828125,
-0.043243408203125,
0.047210693359375,
-0.0360107421875,
0.00484466552734375,
0.0333251953125,
-0.0102691650390625,
0.02679443359375,
0.021240234375,
0.02734375,
-0.0002925395965576172,
-0.037261962890625,
-0.01026153564453125,
0.010650634765625,
-0.03924560546875,
0.00899505615234375,
-0.0283355712890625,
0.0140228271484375,
-0.001079559326171875,
0.0198211669921875,
-0.00656890869140625,
0.0174560546875,
0.00614166259765625,
-0.01532745361328125,
0.002593994140625,
-0.006031036376953125,
-0.0237274169921875,
-0.0131072998046875,
-0.0017328262329101562,
0.0115814208984375,
-0.00118255615234375,
-0.007091522216796875,
0.026611328125,
0.051605224609375,
0.0074005126953125,
-0.0202789306640625,
0.03814697265625,
0.047454833984375,
0.0211639404296875,
-0.01153564453125,
-0.0202484130859375,
-0.006771087646484375,
0.02288818359375,
0.0034236907958984375,
-0.0249481201171875,
0.0260009765625,
0.007724761962890625,
0.0248870849609375,
-0.0175018310546875,
-0.075439453125,
0.01213836669921875,
0.009552001953125,
-0.0377197265625,
0.0213470458984375,
0.06878662109375,
0.040985107421875,
0.021453857421875,
0.01430511474609375,
0.006256103515625,
0.050537109375,
0.0063934326171875,
0.0018644332885742188,
-0.0034656524658203125,
0.0019407272338867188,
-0.01514434814453125,
-0.015960693359375,
0.0174713134765625,
0.00998687744140625,
0.0150146484375,
-0.0137786865234375,
0.003757476806640625,
0.0128173828125,
0.01470184326171875,
0.0291748046875,
0.0089874267578125,
0.033233642578125,
0.0024738311767578125,
-0.00905609130859375,
0.0172119140625,
0.05047607421875,
-0.0008521080017089844,
-0.0209197998046875,
0.0258026123046875,
-0.0167083740234375,
-0.051910400390625,
0.01922607421875,
-0.01273345947265625,
0.047760009765625,
0.041473388671875,
-0.00400543212890625,
0.004863739013671875,
0.00318145751953125,
-0.0276947021484375,
-0.032958984375,
0.006214141845703125,
0.0006041526794433594,
0.022705078125,
-0.000751495361328125,
0.0295867919921875,
-0.0009250640869140625,
-0.017730712890625,
-0.01152801513671875,
0.0022335052490234375,
-0.0032596588134765625,
-0.08148193359375,
0.037628173828125,
-0.045684814453125,
0.046173095703125,
0.017578125,
-0.014739990234375,
0.004062652587890625,
-0.02264404296875,
0.00305938720703125,
-0.012420654296875,
-0.046600341796875,
0.021453857421875,
-0.0008821487426757812,
-0.0007433891296386719,
0.0291595458984375,
0.00936126708984375,
0.0179443359375,
0.0176544189453125,
-0.01183319091796875,
0.00848388671875,
0.049285888671875,
-0.0290374755859375,
-0.02752685546875,
-0.041748046875,
-0.007198333740234375,
-0.005222320556640625,
-0.06903076171875,
0.06640625,
0.034820556640625,
-0.01727294921875,
-0.040679931640625,
-0.003387451171875,
-0.00913238525390625,
-0.0643310546875,
-0.0150299072265625,
0.06866455078125,
0.018280029296875,
-0.034454345703125,
-0.014617919921875,
0.038543701171875,
0.00223541259765625,
-0.00021135807037353516,
0.015869140625,
0.0135650634765625,
-0.00586700439453125,
0.032958984375,
-0.004058837890625,
0.011688232421875,
0.0068359375,
-0.1019287109375,
-0.0088043212890625,
0.054962158203125,
-0.016387939453125,
0.003566741943359375,
-0.0249176025390625,
0.0183868408203125,
-0.00019431114196777344,
0.006832122802734375,
0.006191253662109375,
-0.0003781318664550781,
-0.004955291748046875,
0.005046844482421875,
0.018768310546875,
0.0132904052734375,
-0.02337646484375,
-0.01450347900390625,
0.0117645263671875,
0.051727294921875,
0.006122589111328125,
0.0246124267578125,
-0.012359619140625,
0.01531219482421875,
-0.03497314453125,
0.0015573501586914062,
0.0231781005859375,
0.01415252685546875,
-0.005889892578125,
0.01013946533203125,
-0.0020198822021484375,
-0.01473236083984375,
0.023345947265625,
0.01104736328125,
0.0022449493408203125,
-0.045928955078125,
-0.048919677734375,
-0.027587890625,
0.001865386962890625,
0.0390625,
0.004169464111328125,
-0.0247650146484375,
-0.0150604248046875,
0.0122528076171875,
-0.01629638671875,
-0.0221710205078125,
0.0159912109375,
-0.03814697265625,
0.0635986328125,
0.056793212890625,
-0.01264190673828125,
0.02056884765625,
-0.0086669921875,
-0.0460205078125,
-0.044921875,
0.048614501953125,
0.0186767578125,
-0.03497314453125,
0.043975830078125,
0.09442138671875,
0.027557373046875,
0.00933837890625,
0.00345611572265625,
-0.0247344970703125,
-0.0149993896484375,
0.0289154052734375,
-0.07135009765625,
-0.051177978515625,
0.0157928466796875,
-0.0294036865234375,
-0.02734375,
0.0005421638488769531,
-0.0308837890625,
0.000431060791015625,
0.03497314453125,
-0.0051422119140625,
-0.00868988037109375,
-0.006137847900390625,
-0.05718994140625,
-0.0357666015625,
-0.061431884765625,
-0.007091522216796875,
-0.0060882568359375,
-0.0108184814453125,
0.0010309219360351562,
0.0684814453125,
0.0188751220703125,
-0.027679443359375,
0.0011138916015625,
0.01180267333984375,
-0.010040283203125,
-0.0007700920104980469,
0.0108489990234375,
0.0038166046142578125,
-0.05181884765625,
0.0058441162109375,
0.0068359375,
0.023773193359375,
-0.049835205078125,
0.00496673583984375,
0.005306243896484375,
0.00727081298828125,
0.040679931640625,
0.025482177734375,
-0.00913238525390625,
0.011810302734375,
0.0496826171875,
-0.02593994140625,
0.0037841796875,
0.0026302337646484375,
-0.0157623291015625,
-0.0183258056640625,
0.006320953369140625,
-0.049713134765625,
-0.00841522216796875,
-0.001308441162109375,
-0.0167236328125,
0.025421142578125,
-0.01259613037109375,
0.0129547119140625,
-0.0506591796875,
0.0012664794921875,
-0.007572174072265625,
0.0338134765625,
-0.07281494140625,
-0.060791015625,
0.038970947265625,
-0.03424072265625,
-0.0025615692138671875,
-0.0117034912109375,
0.0487060546875,
0.004360198974609375,
-0.01702880859375,
0.0283355712890625,
-0.0144500732421875,
0.0269927978515625,
-0.01507568359375,
-0.01381683349609375,
-0.0159149169921875,
0.050140380859375,
-0.00867462158203125,
-0.01316070556640625,
0.01399993896484375,
-0.0064697265625,
-0.0462646484375,
0.01861572265625,
-0.062469482421875,
0.0011749267578125,
-0.045166015625,
-0.012542724609375,
0.0019683837890625,
-0.0287933349609375,
-0.023162841796875,
0.04266357421875,
-0.040283203125,
-0.00872802734375,
0.025665283203125,
-0.0455322265625,
-0.0023632049560546875,
0.06854248046875,
-0.0102386474609375,
0.0447998046875,
-0.0531005859375,
-0.0283203125,
-0.1473388671875,
-0.031341552734375,
-0.0240020751953125,
0.11688232421875,
-0.006381988525390625,
-0.00254058837890625,
-0.06231689453125,
0.047607421875,
-0.0024776458740234375,
0.0153045654296875,
0.018035888671875,
-0.00569915771484375,
0.0290985107421875,
0.0195465087890625,
0.0171661376953125,
-0.01806640625,
-0.0090484619140625,
-0.006439208984375,
-0.00334930419921875,
0.0186920166015625,
-0.0308685302734375,
-0.023468017578125,
-0.0186614990234375,
-0.0236358642578125,
-0.034332275390625,
-0.0479736328125,
0.0067291259765625,
0.0430908203125,
-0.0275421142578125,
0.025604248046875,
-0.058074951171875,
-0.0374755859375,
0.022369384765625,
-0.01488494873046875,
-0.0268096923828125,
0.028961181640625,
0.0880126953125,
0.0298004150390625,
-0.00004357099533081055,
-0.0755615234375,
0.038360595703125,
0.06561279296875,
-0.0187835693359375,
0.04632568359375,
0.06353759765625,
-0.0423583984375,
0.049224853515625,
0.033935546875,
-0.0070343017578125,
-0.0177764892578125,
0.041168212890625,
-0.0172271728515625,
-0.053131103515625,
0.053192138671875,
-0.035797119140625,
0.028717041015625,
-0.015411376953125,
-0.0059356689453125,
0.023773193359375,
-0.008270263671875,
-0.01369476318359375,
-0.0007214546203613281,
0.01194000244140625,
0.01120758056640625,
0.003742218017578125,
0.0005350112915039062,
-0.04705810546875,
0.0634765625,
0.007434844970703125,
0.0110321044921875,
-0.0236358642578125,
0.006504058837890625,
0.0051727294921875,
-0.03326416015625,
-0.041656494140625,
0.0162811279296875,
0.0295257568359375,
-0.00689697265625,
0.04058837890625,
-0.01503753662109375,
-0.01163482666015625,
0.05657958984375,
0.046783447265625,
-0.040283203125,
0.054962158203125,
-0.014312744140625,
-0.0229339599609375,
-0.0286407470703125,
0.0231170654296875,
0.017669677734375,
0.0019521713256835938,
0.0240631103515625,
0.03521728515625,
-0.0034198760986328125,
0.035797119140625,
-0.007404327392578125,
0.00981903076171875,
0.00469970703125,
0.007793426513671875,
0.0081634521484375,
0.0963134765625,
-0.00145721435546875,
0.052520751953125,
-0.0279541015625,
0.0079803466796875,
0.005931854248046875,
0.0245208740234375,
0.0369873046875,
-0.0064697265625,
0.0009489059448242188,
-0.00630950927734375,
0.00299072265625,
-0.0236663818359375,
0.0204620361328125,
0.0265655517578125,
0.0200347900390625,
0.0176239013671875,
-0.018585205078125,
0.0145111083984375,
-0.016387939453125,
-0.005443572998046875,
0.00853729248046875,
0.016632080078125,
-0.00872039794921875,
-0.005870819091796875,
0.02105712890625,
0.028472900390625,
0.011474609375,
-0.0001685619354248047,
-0.00634765625,
-0.0305938720703125,
0.00769805908203125,
0.0205078125,
-0.0004973411560058594,
-0.029510498046875,
-0.0202178955078125,
-0.04083251953125,
-0.019378662109375,
-0.0017175674438476562,
-0.0254364013671875,
-0.028961181640625,
-0.015838623046875,
-0.00888824462890625,
0.03485107421875,
-0.00740814208984375,
-0.00391387939453125,
-0.031341552734375,
0.029632568359375,
-0.006832122802734375,
0.0020275115966796875,
0.06500244140625,
0.00836181640625,
0.00946807861328125,
-0.0205230712890625,
-0.03680419921875,
-0.036834716796875,
-0.00525665283203125,
-0.0259246826171875,
-0.025634765625,
-0.0032291412353515625,
0.01345062255859375,
0.01898193359375,
0.01331329345703125,
0.0003762245178222656,
-0.0230560302734375,
0.026519775390625,
0.006893157958984375,
0.03314208984375,
0.011932373046875,
0.028900146484375,
-0.0537109375,
0.034393310546875,
-0.00577545166015625,
0.033416748046875,
0.0175018310546875,
-0.03521728515625,
0.01325225830078125,
-0.047943115234375,
-0.029510498046875,
-0.035369873046875,
-0.0092315673828125,
0.0330810546875,
0.028839111328125,
0.003337860107421875,
0.0082855224609375,
0.0054473876953125,
0.013336181640625,
-0.01334381103515625,
-0.02276611328125,
0.004306793212890625,
-0.0267791748046875,
0.023956298828125,
0.0217437744140625,
0.034698486328125,
-0.00914764404296875,
-0.05279541015625,
-0.0113677978515625,
0.036041259765625,
-0.016632080078125,
0.0201416015625,
-0.033966064453125,
0.049896240234375,
0.06634521484375,
0.054473876953125,
0.048431396484375,
0.0430908203125,
0.046051025390625,
-0.03277587890625,
0.0017194747924804688,
-0.021636962890625,
-0.00007015466690063477,
0.03948974609375,
0.009796142578125,
-0.0217742919921875,
0.018096923828125,
-0.0162506103515625,
-0.01100921630859375,
-0.030670166015625,
0.0225067138671875,
0.0088043212890625,
0.0180206298828125,
0.00879669189453125,
0.021484375,
0.06640625,
-0.006954193115234375,
-0.0177459716796875,
-0.036163330078125,
0.09259033203125,
-0.052947998046875,
0.00751495361328125,
0.0304107666015625,
-0.0152587890625,
0.01026153564453125,
-0.026611328125,
0.03680419921875,
0.004627227783203125,
-0.048858642578125,
0.010345458984375,
0.042144775390625,
-0.024444580078125,
-0.05291748046875,
-0.006160736083984375,
0.032073974609375,
0.0102691650390625,
-0.01212310791015625,
0.088134765625,
-0.0419921875,
0.057891845703125,
0.01274871826171875,
0.052215576171875,
0.03753662109375,
0.048736572265625,
0.0093841552734375,
-0.00891876220703125,
0.0295867919921875,
-0.0067291259765625,
0.04083251953125,
-0.06573486328125,
-0.0186767578125,
0.038787841796875,
-0.04364013671875,
0.0142364501953125,
0.0307159423828125,
-0.0167236328125,
-0.012664794921875,
-0.00803375244140625,
0.05963134765625,
0.0078125,
-0.045684814453125,
0.0166778564453125,
0.0009937286376953125,
-0.01229095458984375,
0.037567138671875,
0.047576904296875,
-0.045745849609375,
-0.019989013671875,
0.0462646484375,
-0.0267181396484375,
-0.03839111328125,
0.016326904296875,
-0.057708740234375,
0.051116943359375,
0.028656005859375,
0.01129150390625,
-0.01476287841796875,
0.0234832763671875,
-0.0191802978515625,
-0.00887298583984375,
-0.0136260986328125,
0.03839111328125,
-0.005084991455078125,
0.040863037109375,
-0.04443359375,
-0.023712158203125,
0.022064208984375,
0.041046142578125,
0.09185791015625,
0.0137939453125,
-0.0109100341796875,
0.0283355712890625,
0.06732177734375,
0.0015544891357421875,
-0.049713134765625,
0.0513916015625,
-0.0028285980224609375,
0.004299163818359375,
0.0098724365234375,
0.005161285400390625,
0.038848876953125,
-0.0272674560546875,
-0.033905029296875,
0.01983642578125,
-0.004985809326171875,
-0.00817108154296875,
-0.021087646484375,
-0.005359649658203125,
-0.00479888916015625,
-0.038055419921875,
-0.007083892822265625,
-0.041900634765625,
0.0179443359375,
0.064453125,
0.0533447265625,
0.0021419525146484375,
-0.02178955078125,
-0.0163726806640625,
0.048858642578125,
0.01678466796875,
-0.0027256011962890625,
0.0221405029296875,
0.01212310791015625,
-0.057647705078125,
0.0248565673828125,
0.01233673095703125,
0.039947509765625,
-0.00782012939453125,
0.021728515625,
-0.01210784912109375,
0.025604248046875,
-0.0509033203125,
-0.019989013671875,
0.02276611328125,
0.045257568359375,
-0.0110931396484375,
-0.0021343231201171875,
0.01140594482421875,
-0.006320953369140625,
0.0072021484375,
-0.0234832763671875,
0.0083160400390625,
-0.0255126953125,
-0.0123138427734375,
-0.03656005859375,
-0.005008697509765625,
0.037933349609375,
0.041046142578125,
0.006946563720703125,
0.03143310546875,
-0.04803466796875,
-0.041290283203125,
-0.0302581787109375,
0.00868988037109375,
-0.025115966796875,
0.036651611328125,
0.037628173828125,
0.0609130859375,
0.0213775634765625,
0.0010805130004882812,
-0.019317626953125,
0.01549530029296875,
0.02105712890625,
0.01250457763671875,
-0.0174102783203125,
0.022216796875,
0.043609619140625,
0.0171661376953125,
0.053009033203125,
-0.0154876708984375,
0.043914794921875,
0.00838470458984375,
-0.04425048828125,
0.00948333740234375,
0.060821533203125,
-0.0207366943359375,
-0.02154541015625,
-0.027923583984375,
0.07049560546875,
0.06707763671875,
0.04278564453125,
-0.03179931640625,
0.05084228515625,
0.07000732421875,
-0.059600830078125,
0.0016546249389648438,
-0.0029506683349609375,
-0.0540771484375,
0.024810791015625,
0.0190277099609375,
0.026153564453125,
-0.009521484375,
-0.026458740234375,
0.03839111328125,
-0.04010009765625,
-0.08868408203125,
0.004657745361328125,
0.0389404296875,
-0.04510498046875,
0.028961181640625,
-0.037200927734375,
-0.0249481201171875,
0.0198211669921875,
-0.0131683349609375,
0.0009794235229492188,
0.0548095703125,
-0.005092620849609375,
-0.01454925537109375,
-0.064453125,
-0.038726806640625,
0.004169464111328125,
0.02740478515625,
-0.01751708984375,
0.02825927734375,
0.0184783935546875,
-0.006175994873046875,
-0.01523590087890625,
0.0296783447265625,
-0.037200927734375,
-0.0207977294921875,
0.0670166015625,
0.010009765625,
-0.0215301513671875,
-0.0287017822265625,
-0.07086181640625,
0.0036144256591796875,
0.03326416015625,
0.00807952880859375,
0.03509521484375,
-0.0012273788452148438,
0.01800537109375,
-0.043670654296875,
0.0007486343383789062,
-0.0311431884765625,
-0.07330322265625,
-0.08251953125,
-0.0061492919921875,
0.0009584426879882812,
0.0188140869140625,
-0.0193023681640625,
-0.01023101806640625,
0.062347412109375,
-0.056304931640625,
0.0258026123046875,
0.0031280517578125,
0.05572509765625,
0.043365478515625,
0.0419921875,
-0.04638671875,
0.0021800994873046875,
-0.01015472412109375,
0.0177001953125,
0.0021419525146484375,
0.03765869140625,
0.025665283203125,
-0.00006592273712158203,
0.029541015625,
0.0013303756713867188,
0.0300750732421875,
0.00494384765625,
-0.00861358642578125,
0.001285552978515625,
-0.001861572265625,
-0.032958984375,
0.056610107421875,
-0.038177490234375,
-0.03668212890625,
0.025543212890625,
0.032470703125,
0.002628326416015625,
-0.0011835098266601562,
-0.10833740234375,
0.0301971435546875,
0.02789306640625,
-0.003314971923828125,
-0.0108489990234375,
-0.0045166015625,
-0.017059326171875,
0.043670654296875,
0.01433563232421875,
-0.0304718017578125,
0.028350830078125,
0.08148193359375,
-0.029754638671875,
0.00115203857421875,
0.000024557113647460938,
-0.037689208984375,
-0.00897979736328125,
-0.0059051513671875,
0.01922607421875,
-0.0077362060546875,
0.04901123046875,
0.01033782958984375,
0.0195159912109375,
0.06390380859375,
-0.03375244140625,
-0.0219573974609375,
-0.0025577545166015625,
0.0015592575073242188,
-0.00839996337890625,
-0.06292724609375,
0.027130126953125,
-0.060150146484375,
-0.012420654296875,
-0.0294647216796875,
0.048431396484375,
0.055755615234375,
-0.00818634033203125,
-0.05682373046875,
0.0460205078125,
-0.01824951171875,
-0.0279388427734375,
0.012054443359375,
-0.00966644287109375,
-0.017120361328125,
0.01160430908203125,
0.0007901191711425781,
0.01421356201171875,
0.0004572868347167969,
0.002040863037109375,
-0.003879547119140625,
0.00206756591796875,
0.022216796875,
-0.016448974609375,
-0.02325439453125,
-0.007572174072265625,
-0.005565643310546875,
-0.037078857421875,
-0.0107879638671875,
0.0156707763671875,
0.0110321044921875,
0.039276123046875,
-0.02899169921875,
0.0223846435546875,
0.004894256591796875,
0.023223876953125,
-0.0298919677734375,
-0.072509765625,
0.006389617919921875,
-0.004520416259765625,
0.0511474609375,
0.01059722900390625,
-0.006465911865234375,
-0.04278564453125,
0.00478363037109375,
0.01342010498046875,
0.00988006591796875,
-0.00904083251953125,
-0.007427215576171875,
-0.0293121337890625,
-0.026519775390625,
-0.02130126953125,
-0.0284881591796875,
0.0318603515625,
0.002056121826171875,
-0.01959228515625,
0.01873779296875,
0.007602691650390625,
-0.0283355712890625,
-0.0189666748046875,
0.0208740234375,
0.01224517822265625,
-0.01409149169921875,
0.027008056640625,
0.004909515380859375,
-0.01678466796875,
0.028411865234375,
0.0236358642578125,
-0.0122222900390625,
-0.022796630859375,
0.007022857666015625,
0.01100921630859375,
-0.01019287109375,
0.037445068359375,
-0.004730224609375,
-0.0202789306640625,
-0.00022232532501220703,
0.056243896484375,
0.004505157470703125,
0.06097412109375,
-0.020599365234375,
0.05499267578125,
-0.0007901191711425781,
0.0469970703125,
-0.01276397705078125,
0.0035533905029296875,
-0.006378173828125,
0.0170135498046875,
-0.0186920166015625,
0.00418853759765625,
-0.0008563995361328125,
0.003017425537109375,
0.031524658203125,
-0.016754150390625,
0.06707763671875,
0.0044708251953125,
0.031005859375,
0.042633056640625,
-0.0013217926025390625,
0.032745361328125
] |
c25571fac8f01f342f80faabaceccf0ecd41a249
|
Wordpress Stackexchange
Q: Exclude Child Posts from WP_Query How can I exclude child posts using wp_query? Given the following architecture:
*
*parent 1
*
*child 1
*child 2
*parent 2
*
*child 3
*child 4
I'd like to only return parent 1 and parent 2, and exclude child 1, 2, 3 and 4.
I've searched high and low for an answer to this question. Nothing surfaces.
A: use 'post_parent' => 0 in WP_Query to return only parent posts
|
Q: Exclude Child Posts from WP_Query How can I exclude child posts using wp_query? Given the following architecture:
*
*parent 1
*
*child 1
*child 2
*parent 2
*
*child 3
*child 4
I'd like to only return parent 1 and parent 2, and exclude child 1, 2, 3 and 4.
I've searched high and low for an answer to this question. Nothing surfaces.
A: use 'post_parent' => 0 in WP_Query to return only parent posts
|
wordpress
|
{
"language": "en",
"length": 76,
"provenance": "stackexchange_00019.jsonl.gz:411943",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/24975"
}
|
[
0.037384033203125,
0.019683837890625,
-0.022216796875,
0.01337432861328125,
0.0192108154296875,
-0.041534423828125,
0.061004638671875,
-0.0281982421875,
0.0045318603515625,
0.028900146484375,
-0.045166015625,
-0.00423431396484375,
-0.03057861328125,
-0.0016613006591796875,
-0.0352783203125,
-0.046875,
0.0219573974609375,
-0.027313232421875,
-0.00714874267578125,
-0.02490234375,
0.0013170242309570312,
-0.01513671875,
0.0271453857421875,
0.04022216796875,
0.0565185546875,
-0.01715087890625,
0.0095367431640625,
-0.0215301513671875,
0.03814697265625,
-0.004993438720703125,
0.0285186767578125,
-0.01532745361328125,
0.0027751922607421875,
-0.004619598388671875,
0.03485107421875,
-0.04119873046875,
-0.01580810546875,
-0.0015497207641601562,
0.030242919921875,
0.002460479736328125,
0.004169464111328125,
-0.004840850830078125,
-0.037567138671875,
0.00783538818359375,
-0.05419921875,
0.01299285888671875,
-0.0279083251953125,
-0.002964019775390625,
0.047210693359375,
-0.027984619140625,
0.01219940185546875,
0.0391845703125,
0.0308685302734375,
-0.038421630859375,
-0.00518798828125,
0.0244140625,
0.0399169921875,
0.0222015380859375,
0.053863525390625,
-0.06597900390625,
-0.07904052734375,
0.0166473388671875,
0.02587890625,
0.0008816719055175781,
-0.00592803955078125,
0.004573822021484375,
-0.0028533935546875,
0.0152740478515625,
-0.036224365234375,
0.002254486083984375,
0.03363037109375,
-0.03717041015625,
0.00041866302490234375,
-0.01517486572265625,
-0.06781005859375,
-0.00909423828125,
0.022735595703125,
-0.0303802490234375,
0.017578125,
-0.0143585205078125,
-0.03558349609375,
-0.0186767578125,
-0.11053466796875,
-0.00873565673828125,
0.00821685791015625,
0.0135345458984375,
-0.019500732421875,
-0.00359344482421875,
-0.037353515625,
-0.002765655517578125,
-0.01491546630859375,
-0.061492919921875,
-0.06341552734375,
0.041473388671875,
0.0243682861328125,
-0.0262603759765625,
0.0408935546875,
0.0465087890625,
-0.041046142578125,
-0.0301055908203125,
-0.01560211181640625,
-0.005558013916015625,
-0.047210693359375,
-0.005908966064453125,
0.031646728515625,
0.0246734619140625,
-0.0273590087890625,
0.00659942626953125,
0.07244873046875,
0.043609619140625,
0.0219573974609375,
0.07586669921875,
-0.014007568359375,
-0.01380157470703125,
-0.0615234375,
0.023101806640625,
-0.0067596435546875,
-0.026123046875,
-0.00418853759765625,
0.00630950927734375,
-0.0028934478759765625,
-0.009521484375,
-0.00930023193359375,
-0.006305694580078125,
0.0220184326171875,
-0.004390716552734375,
-0.031494140625,
0.0189666748046875,
0.0274658203125,
0.0171356201171875,
-0.02349853515625,
0.0050811767578125,
0.05621337890625,
0.01366424560546875,
0.0015621185302734375,
-0.0162811279296875,
0.0238189697265625,
-0.01055908203125,
0.01102447509765625,
-0.02105712890625,
0.02618408203125,
-0.03765869140625,
-0.004619598388671875,
0.021392822265625,
0.0164031982421875,
0.034637451171875,
0.015594482421875,
-0.0007534027099609375,
-0.00942230224609375,
-0.027984619140625,
-0.021820068359375,
-0.0032253265380859375,
0.036590576171875,
-0.018768310546875,
-0.028045654296875,
-0.03033447265625,
-0.006961822509765625,
-0.0197296142578125,
-0.01226806640625,
-0.0169830322265625,
0.024169921875,
0.02978515625,
0.05010986328125,
0.0277557373046875,
-0.012420654296875,
-0.0160369873046875,
-0.0574951171875,
-0.0268707275390625,
0.018157958984375,
-0.00319671630859375,
0.024810791015625,
-0.050018310546875,
-0.00745391845703125,
-0.0160064697265625,
-0.00919342041015625,
0.020660400390625,
-0.0153656005859375,
-0.034912109375,
0.01311492919921875,
0.046630859375,
0.01103973388671875,
-0.0239105224609375,
-0.05450439453125,
0.064453125,
-0.021148681640625,
0.021026611328125,
0.025634765625,
0.00934600830078125,
-0.037872314453125,
0.0069732666015625,
0.038726806640625,
0.0723876953125,
-0.035797119140625,
0.021514892578125,
-0.002033233642578125,
-0.0283203125,
-0.03472900390625,
-0.0170135498046875,
-0.00901031494140625,
0.01471710205078125,
0.016143798828125,
-0.0200958251953125,
0.0048675537109375,
-0.01097869873046875,
-0.04559326171875,
-0.008453369140625,
-0.00955963134765625,
0.016326904296875,
0.0041351318359375,
0.0256805419921875,
0.01220703125,
0.0106048583984375,
-0.02960205078125,
-0.0009813308715820312,
-0.028839111328125,
-0.01493072509765625,
-0.002185821533203125,
0.0291595458984375,
0.0034332275390625,
-0.014312744140625,
0.004390716552734375,
-0.0184326171875,
0.0061798095703125,
0.022369384765625,
0.10302734375,
-0.0455322265625,
0.01416015625,
-0.040313720703125,
0.08819580078125,
-0.006259918212890625,
-0.0687255859375,
0.027862548828125,
0.0538330078125,
0.064453125,
-0.017974853515625,
0.0158233642578125,
0.0034351348876953125,
0.0047454833984375,
-0.00678253173828125,
0.0191650390625,
0.0223541259765625,
0.0430908203125,
-0.0261688232421875,
-0.0162811279296875,
0.0179595947265625,
-0.08892822265625,
-0.032928466796875,
0.01213836669921875,
0.01068878173828125,
0.042999267578125,
0.0178985595703125,
-0.0191802978515625,
0.01534271240234375,
-0.0364990234375,
0.01149749755859375,
0.0256805419921875,
0.0289459228515625,
0.03765869140625,
-0.0200347900390625,
-0.005153656005859375,
0.00473785400390625,
-0.0112457275390625,
-0.043182373046875,
-0.0009722709655761719,
0.0296783447265625,
-0.033294677734375,
0.00135040283203125,
-0.0005831718444824219,
-0.0048980712890625,
-0.01036834716796875,
0.0209808349609375,
-0.04150390625,
0.00920867919921875,
0.00946807861328125,
-0.0278778076171875,
-0.007232666015625,
-0.00647735595703125,
0.01062774658203125,
0.0030574798583984375,
-0.006011962890625,
0.0072021484375,
0.04559326171875,
0.05010986328125,
-0.01143646240234375,
-0.0161895751953125,
-0.0187530517578125,
0.036224365234375,
0.0027008056640625,
-0.035369873046875,
-0.0247955322265625,
0.0115966796875,
0.04901123046875,
0.0128021240234375,
-0.016204833984375,
0.0210723876953125,
0.0012006759643554688,
-0.04058837890625,
-0.012969970703125,
0.03851318359375,
-0.040191650390625,
-0.01165008544921875,
0.042449951171875,
0.005802154541015625,
-0.0090179443359375,
0.0101165771484375,
0.01413726806640625,
0.018402099609375,
0.0256195068359375,
0.01088714599609375,
0.01214599609375,
-0.049285888671875,
-0.008392333984375,
0.0189056396484375,
0.045074462890625,
0.020721435546875,
-0.01715087890625,
0.0188446044921875,
0.03509521484375,
-0.01007080078125,
-0.048614501953125,
-0.0284423828125,
-0.03228759765625,
-0.00890350341796875,
0.0029430389404296875,
0.0030803680419921875,
0.005352020263671875,
-0.0155487060546875,
-0.001644134521484375,
0.0111236572265625,
-0.0161895751953125,
-0.07568359375,
-0.0284576416015625,
-0.048828125,
0.04486083984375,
-0.008148193359375,
0.021514892578125,
0.0010747909545898438,
0.1356201171875,
0.0196990966796875,
-0.09100341796875,
-0.033935546875,
0.007289886474609375,
-0.03839111328125,
0.01464080810546875,
-0.005306243896484375,
0.010986328125,
-0.01910400390625,
0.02044677734375,
-0.00901031494140625,
-0.01049041748046875,
-0.01384735107421875,
-0.01788330078125,
0.01477813720703125,
0.0162506103515625,
0.0487060546875,
-0.050048828125,
-0.031524658203125,
0.032379150390625,
0.03546142578125,
-0.02716064453125,
-0.03631591796875,
-0.053009033203125,
-0.04827880859375,
0.040191650390625,
0.012939453125,
0.029571533203125,
-0.035064697265625,
0.045196533203125,
0.047393798828125,
0.00133514404296875,
-0.004627227783203125,
-0.0200347900390625,
0.0687255859375,
0.0267791748046875,
0.05206298828125,
-0.031585693359375,
0.0140533447265625,
-0.036865234375,
0.043426513671875,
0.0006318092346191406,
0.0109100341796875,
0.0127716064453125,
-0.0280303955078125,
-0.03076171875,
-0.018280029296875,
0.043121337890625,
0.0206146240234375,
0.0199432373046875,
-0.0171051025390625,
-0.023681640625,
-0.0214080810546875,
0.0718994140625,
-0.034515380859375,
-0.0235443115234375,
-0.045257568359375,
0.0019397735595703125,
-0.005428314208984375,
-0.049102783203125,
0.0006275177001953125,
-0.01218414306640625,
0.0086669921875,
-0.0026149749755859375,
-0.020111083984375,
-0.0024814605712890625,
-0.010650634765625,
-0.049285888671875,
0.0032100677490234375,
-0.021728515625,
0.043182373046875,
-0.0372314453125,
-0.0048370361328125,
-0.0185394287109375,
0.0061492919921875,
-0.036529541015625,
-0.020416259765625,
0.0009326934814453125,
-0.07843017578125,
-0.0130615234375,
0.0024967193603515625,
0.03472900390625,
-0.0139007568359375,
-0.017242431640625,
-0.0303497314453125,
0.036468505859375,
0.00531768798828125,
0.0213623046875,
-0.019134521484375,
0.0033397674560546875,
-0.02777099609375,
0.0216827392578125,
0.006999969482421875,
-0.01309967041015625,
-0.031768798828125,
-0.03875732421875,
0.01334381103515625,
0.00763702392578125,
-0.02728271484375,
0.0002732276916503906,
-0.035430908203125,
0.0164794921875,
-0.036651611328125,
-0.0419921875,
-0.0587158203125,
0.004268646240234375,
-0.029571533203125,
-0.0188751220703125,
-0.05615234375,
-0.05462646484375,
0.05474853515625,
0.055328369140625,
-0.033660888671875,
-0.00870513916015625,
0.04095458984375,
0.0204010009765625,
-0.053985595703125,
-0.06048583984375,
-0.044952392578125,
0.0089569091796875,
-0.0340576171875,
0.04852294921875,
0.01149749755859375,
-0.007724761962890625,
0.0784912109375,
-0.0292816162109375,
0.004543304443359375,
-0.004024505615234375,
0.061981201171875,
-0.01335906982421875,
-0.0296173095703125,
0.045745849609375,
-0.0286407470703125,
-0.00817108154296875,
0.015960693359375,
0.00004178285598754883,
-0.055755615234375,
-0.0177154541015625,
0.07470703125,
0.008087158203125,
0.00737762451171875,
-0.07244873046875,
-0.0249786376953125,
0.00980377197265625,
-0.0005536079406738281,
-0.0144805908203125,
0.0278167724609375,
-0.00841522216796875,
-0.01800537109375,
-0.0193634033203125,
0.0240936279296875,
-0.01148223876953125,
0.052001953125,
-0.049072265625,
0.0687255859375,
-0.0262298583984375,
-0.01204681396484375,
-0.01763916015625,
-0.006496429443359375,
0.022979736328125,
0.003963470458984375,
-0.040863037109375,
0.04437255859375,
-0.00653076171875,
0.024383544921875,
0.01436614990234375,
0.017181396484375,
0.0283355712890625,
0.0111236572265625,
-0.002506256103515625,
-0.01016998291015625,
-0.00504302978515625,
-0.0027713775634765625,
-0.03497314453125,
0.0006656646728515625,
0.0099945068359375,
-0.0160980224609375,
0.0107879638671875,
0.04241943359375,
0.004665374755859375,
0.029876708984375,
-0.0128631591796875,
-0.010986328125,
-0.05364990234375,
0.038482666015625,
0.0012845993041992188,
-0.003810882568359375,
0.061370849609375,
-0.00856781005859375,
0.055328369140625,
-0.0170440673828125,
-0.05224609375,
0.035736083984375,
0.0091094970703125,
0.01091766357421875,
0.030364990234375,
-0.00246429443359375,
0.032135009765625,
-0.010589599609375,
0.02642822265625,
0.028533935546875,
0.01064300537109375,
-0.01922607421875,
-0.02032470703125,
0.028228759765625,
0.04150390625,
-0.031494140625,
0.0294647216796875,
-0.046051025390625,
0.00934600830078125,
0.06280517578125,
-0.05804443359375,
0.032867431640625,
0.033935546875,
-0.017242431640625,
-0.01202392578125,
-0.01335906982421875,
-0.0059661865234375,
-0.036651611328125,
0.006809234619140625,
-0.00843048095703125,
0.0221710205078125,
-0.02423095703125,
0.041412353515625,
-0.0489501953125,
0.01456451416015625,
-0.0063323974609375,
0.0015726089477539062,
0.06976318359375,
0.048095703125,
-0.00022268295288085938,
-0.02130126953125,
-0.06005859375,
-0.033172607421875,
-0.0175628662109375,
-0.0179443359375,
-0.02294921875,
0.00370025634765625,
-0.024749755859375,
0.022796630859375,
-0.0155487060546875,
-0.01366424560546875,
-0.02044677734375,
-0.0118560791015625,
-0.0016021728515625,
-0.033447265625,
-0.01824951171875,
0.10162353515625,
-0.033050537109375,
0.05645751953125,
0.00614166259765625,
0.058685302734375,
0.00010192394256591797,
-0.01534271240234375,
0.0272064208984375,
-0.06268310546875,
-0.036865234375,
0.00959014892578125,
-0.045806884765625,
-0.02520751953125,
-0.025177001953125,
-0.01513671875,
0.024444580078125,
-0.02862548828125,
0.004497528076171875,
-0.0164337158203125,
-0.006595611572265625,
-0.0679931640625,
0.011749267578125,
-0.0115203857421875,
0.01319122314453125,
0.01373291015625,
-0.0340576171875,
-0.0035648345947265625,
-0.0168304443359375,
0.0154876708984375,
-0.02349853515625,
0.0065155029296875,
-0.009674072265625,
0.0289154052734375,
0.019989013671875,
-0.00919342041015625,
0.04595947265625,
0.0030384063720703125,
0.034423828125,
0.014404296875,
0.00130462646484375,
-0.031158447265625,
0.005992889404296875,
0.0648193359375,
0.0109405517578125,
-0.01508331298828125,
0.05340576171875,
-0.036346435546875,
-0.0096893310546875,
-0.0259246826171875,
-0.0005183219909667969,
-0.016326904296875,
0.01430511474609375,
-0.0007271766662597656,
0.01349639892578125,
0.007045745849609375,
-0.01129913330078125,
0.01087188720703125,
-0.0031032562255859375,
-0.0103912353515625,
0.037353515625,
-0.02178955078125,
-0.009185791015625,
-0.00970458984375,
-0.0052032470703125,
-0.0200347900390625,
-0.00514984130859375,
-0.0016984939575195312,
0.004589080810546875,
0.00907135009765625,
0.0199432373046875,
-0.00348663330078125,
-0.022430419921875,
0.01287078857421875,
0.00927734375,
-0.0148162841796875,
-0.0850830078125,
0.00801849365234375,
-0.01910400390625,
-0.0021800994873046875,
0.00725555419921875,
-0.0033397674560546875,
-0.0070343017578125,
0.0626220703125,
-0.038665771484375,
0.029754638671875,
0.031494140625,
-0.07843017578125,
-0.04638671875,
-0.0215606689453125,
0.032196044921875,
0.010955810546875,
-0.08984375,
0.03631591796875,
-0.0665283203125,
-0.01218414306640625,
0.0002627372741699219,
-0.010498046875,
0.034881591796875,
-0.0298919677734375,
-0.00719451904296875,
0.025970458984375,
-0.0195770263671875,
-0.00870513916015625,
-0.0019474029541015625,
-0.005706787109375,
-0.0179901123046875,
-0.002902984619140625,
-0.0189208984375,
-0.014801025390625,
-0.00780487060546875,
-0.0289154052734375,
-0.0809326171875,
0.11187744140625,
-0.0377197265625,
0.08782958984375,
0.03204345703125,
0.02508544921875,
-0.01453399658203125,
-0.0010118484497070312,
-0.0611572265625,
0.08087158203125,
0.06231689453125,
0.0648193359375,
-0.0648193359375,
-0.028656005859375,
0.03216552734375,
0.045440673828125,
0.033477783203125,
-0.004772186279296875,
-0.046844482421875,
-0.0286712646484375,
0.0469970703125,
0.060760498046875,
0.03839111328125,
0.04425048828125,
0.01522064208984375,
0.01108551025390625,
0.040069580078125,
-0.00449371337890625,
0.03564453125,
-0.0185699462890625,
-0.007350921630859375,
0.037506103515625,
0.0077362060546875,
0.00997161865234375,
-0.0108184814453125,
0.026123046875,
0.0098114013671875,
-0.01666259765625,
-0.0089874267578125,
-0.0249481201171875,
0.01119232177734375,
0.031646728515625,
0.02398681640625,
-0.076416015625,
-0.03790283203125,
-0.0294342041015625,
0.029296875,
-0.00382232666015625,
0.049163818359375,
0.01432037353515625,
0.007244110107421875,
0.0430908203125,
0.004119873046875,
0.042633056640625,
0.037811279296875,
-0.057952880859375,
0.005962371826171875,
0.03460693359375,
0.01947021484375,
-0.01375579833984375,
0.040771484375,
0.035919189453125,
0.0250244140625,
-0.039215087890625,
-0.02728271484375,
0.01222991943359375,
0.0009489059448242188,
-0.01529693603515625,
-0.00446319580078125,
0.0005593299865722656,
0.00959014892578125,
0.045867919921875,
-0.0236968994140625,
-0.0107879638671875,
0.033721923828125,
0.0262298583984375,
-0.00884246826171875,
-0.021087646484375,
0.000385284423828125,
-0.0146331787109375,
0.0128631591796875,
-0.0594482421875,
0.0129547119140625,
0.0268707275390625,
0.053924560546875,
-0.0196075439453125,
-0.0285797119140625,
-0.00919342041015625,
0.005214691162109375,
0.0125274658203125,
-0.0038661956787109375,
-0.008514404296875,
-0.0030765533447265625,
-0.01459503173828125,
-0.02099609375,
0.0041656494140625,
0.0291900634765625,
0.0193023681640625,
0.05352783203125,
0.0606689453125,
-0.04534912109375,
-0.017120361328125,
0.0269317626953125,
-0.0241851806640625,
-0.0082550048828125,
-0.03912353515625,
0.00696563720703125,
0.0266265869140625,
-0.0000622868537902832,
-0.0016355514526367188,
0.023773193359375,
0.020751953125,
0.02423095703125,
0.0207672119140625,
0.0135040283203125,
0.00484466552734375,
0.02532958984375,
0.01043701171875,
-0.0033702850341796875,
0.037872314453125,
-0.08966064453125,
-0.043426513671875,
0.037384033203125,
0.017425537109375,
0.02178955078125,
0.0310211181640625,
-0.01000213623046875,
0.02569580078125,
0.06414794921875,
-0.047332763671875,
-0.02386474609375,
0.040252685546875,
0.029083251953125,
-0.0023250579833984375,
-0.005462646484375,
0.0182952880859375,
-0.04058837890625,
-0.0027179718017578125,
-0.0170440673828125,
0.0028018951416015625,
0.03717041015625,
0.046051025390625,
0.02447509765625,
0.0248870849609375,
-0.0050811767578125,
0.032501220703125,
-0.0159149169921875,
-0.0027637481689453125,
0.01678466796875,
-0.04803466796875,
0.006988525390625,
0.0160980224609375,
-0.040130615234375,
-0.00015044212341308594,
0.0263671875,
-0.0103302001953125,
0.041961669921875,
-0.05718994140625,
0.0159149169921875,
-0.06317138671875,
0.0426025390625,
-0.01166534423828125,
0.0089874267578125,
-0.037322998046875,
-0.03564453125,
0.06884765625,
0.04461669921875,
-0.0016164779663085938,
0.0279541015625,
0.00734710693359375,
-0.036285400390625,
0.044342041015625,
-0.060455322265625,
0.04644775390625,
0.0280609130859375,
-0.004413604736328125,
0.0128326416015625,
0.01276397705078125,
-0.01410675048828125,
0.023529052734375,
0.01334381103515625,
0.00202178955078125,
0.03265380859375,
-0.044891357421875,
-0.0374755859375,
0.0247039794921875,
0.01904296875,
-0.01285552978515625,
0.0035114288330078125,
-0.0022945404052734375,
-0.022552490234375,
-0.023406982421875,
0.0026397705078125,
-0.01470184326171875,
-0.019287109375,
-0.01561737060546875,
0.0031681060791015625,
-0.0242767333984375,
-0.047607421875,
-0.008575439453125,
0.0194244384765625,
0.0162506103515625,
0.0174560546875,
-0.0487060546875,
0.039764404296875,
-0.026763916015625,
0.02008056640625,
0.00867462158203125,
0.0350341796875,
-0.0168914794921875,
-0.023529052734375,
-0.0538330078125,
-0.0017185211181640625,
-0.02734375,
0.013336181640625,
-0.00537109375,
0.024169921875,
0.045135498046875,
-0.027801513671875,
0.004474639892578125,
0.04254150390625,
0.009552001953125,
0.07525634765625,
0.0059661865234375,
-0.034332275390625,
-0.0161895751953125,
0.0239715576171875,
-0.00534820556640625,
-0.0018472671508789062,
0.04412841796875,
-0.04119873046875,
-0.033294677734375,
-0.006290435791015625,
0.00720977783203125,
0.032562255859375,
-0.0298919677734375,
-0.11041259765625,
0.11614990234375,
-0.051361083984375,
-0.036102294921875,
-0.0202789306640625,
0.025390625,
0.0086212158203125,
-0.01456451416015625,
0.0094146728515625,
-0.012939453125,
-0.00966644287109375,
-0.00595855712890625,
-0.0074310302734375,
0.0224609375,
-0.0022029876708984375,
0.0016117095947265625,
-0.040985107421875,
0.017364501953125,
0.0006580352783203125,
-0.005157470703125,
0.0002849102020263672,
0.02301025390625,
0.0089874267578125,
0.0557861328125,
-0.0197906494140625,
0.06890869140625,
-0.01039886474609375,
-0.00934600830078125,
0.02264404296875,
0.0054168701171875,
-0.020233154296875,
-0.00569915771484375,
0.0104217529296875,
0.039154052734375,
0.011932373046875,
-0.01291656494140625,
-0.03009033203125,
-0.03662109375,
0.003032684326171875,
0.0012235641479492188,
0.0166015625,
-0.046905517578125,
0.00006085634231567383,
-0.0023193359375,
0.004093170166015625,
0.0033550262451171875,
-0.006694793701171875,
-0.015960693359375,
-0.03656005859375,
-0.019287109375,
0.00811004638671875,
-0.06134033203125,
0.029205322265625,
-0.025665283203125,
-0.0126953125,
-0.03192138671875,
-0.0166168212890625,
0.0028629302978515625,
-0.0268096923828125,
0.000682830810546875,
-0.0089111328125,
-0.01027679443359375,
0.00849151611328125,
0.00832366943359375,
0.0167236328125,
0.004276275634765625,
-0.0003192424774169922,
-0.0001175999641418457,
-0.054962158203125,
0.0017976760864257812,
0.03790283203125,
0.0004074573516845703,
-0.043212890625,
0.025970458984375,
0.0404052734375,
-0.00039577484130859375,
0.01540374755859375,
0.057098388671875,
-0.0008039474487304688,
0.04144287109375,
-0.016845703125,
-0.01482391357421875,
-0.01318359375,
-0.0030364990234375,
0.0108184814453125,
-0.01035308837890625,
0.01715087890625,
-0.0286102294921875,
0.01313018798828125,
0.01522064208984375,
0.0009012222290039062,
0.0159454345703125
] |
66df8181d040afda0f9d9c4f298294d745d2ecff
|
Wordpress Stackexchange
Q: Using wp_mail() - verify that email was sent? When using wp_mail(), is there any way to verify that the email was sent correctly?
A: As you have probably found, for wp_mail():
A true return value does not automatically mean that the user
received the email successfully.
A possible workaround is to add an email address that you have access to in the recipients list, and if the one email address receives the mail you can be reasonably (although not 100%) certain that the message was sent.
|
Q: Using wp_mail() - verify that email was sent? When using wp_mail(), is there any way to verify that the email was sent correctly?
A: As you have probably found, for wp_mail():
A true return value does not automatically mean that the user
received the email successfully.
A possible workaround is to add an email address that you have access to in the recipients list, and if the one email address receives the mail you can be reasonably (although not 100%) certain that the message was sent.
|
wordpress
|
{
"language": "en",
"length": 87,
"provenance": "stackexchange_00019.jsonl.gz:411950",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/25007"
}
|
[
0.0297088623046875,
-0.01641845703125,
-0.004077911376953125,
0.0035114288330078125,
-0.006496429443359375,
-0.03826904296875,
0.048309326171875,
-0.0220794677734375,
0.0179443359375,
0.03192138671875,
0.0200347900390625,
-0.033203125,
0.037689208984375,
-0.035675048828125,
-0.021270751953125,
-0.00785064697265625,
0.003849029541015625,
-0.006107330322265625,
-0.0273895263671875,
-0.0191497802734375,
0.017333984375,
-0.0082244873046875,
-0.049530029296875,
0.02178955078125,
-0.0149993896484375,
0.0293426513671875,
0.07373046875,
-0.01381683349609375,
-0.0033893585205078125,
-0.01049041748046875,
0.007659912109375,
-0.0261993408203125,
0.040771484375,
0.041839599609375,
-0.07220458984375,
-0.01904296875,
-0.0180816650390625,
0.01364898681640625,
-0.0101776123046875,
0.0133819580078125,
0.0164794921875,
-0.0213165283203125,
0.0360107421875,
-0.01922607421875,
0.007663726806640625,
-0.004375457763671875,
0.01461029052734375,
-0.030731201171875,
0.0224456787109375,
0.08856201171875,
0.0015869140625,
0.00689697265625,
-0.018157958984375,
0.01113128662109375,
0.004055023193359375,
-0.0029449462890625,
-0.02618408203125,
0.01137542724609375,
0.01548004150390625,
0.01971435546875,
-0.004779815673828125,
0.01444244384765625,
0.013946533203125,
-0.0149688720703125,
-0.001331329345703125,
-0.00948333740234375,
-0.006053924560546875,
0.0194091796875,
-0.01611328125,
-0.0193939208984375,
0.005859375,
-0.00827789306640625,
-0.0217742919921875,
0.00817108154296875,
-0.0009694099426269531,
-0.01422882080078125,
0.005527496337890625,
-0.0054168701171875,
0.005123138427734375,
0.054473876953125,
-0.0089874267578125,
-0.0162353515625,
-0.049652099609375,
0.03857421875,
-0.02008056640625,
0.046875,
-0.0128021240234375,
-0.0162506103515625,
-0.025146484375,
-0.0458984375,
-0.0265045166015625,
-0.0009341239929199219,
-0.02532958984375,
-0.037811279296875,
-0.03924560546875,
-0.03985595703125,
0.0285491943359375,
0.07366943359375,
-0.050994873046875,
-0.038299560546875,
-0.0174407958984375,
0.006259918212890625,
-0.08477783203125,
-0.00555419921875,
0.0104522705078125,
0.050323486328125,
-0.01276397705078125,
-0.0283966064453125,
0.01149749755859375,
0.0165863037109375,
-0.00577545166015625,
0.007183074951171875,
-0.025390625,
-0.06280517578125,
0.005916595458984375,
0.05841064453125,
-0.021148681640625,
0.024658203125,
0.0258636474609375,
0.018524169921875,
0.0270843505859375,
0.052001953125,
0.00475311279296875,
-0.029998779296875,
0.002468109130859375,
0.0020809173583984375,
-0.003936767578125,
-0.052886962890625,
0.016143798828125,
0.04364013671875,
-0.02813720703125,
0.0205078125,
0.0165863037109375,
-0.04510498046875,
-0.035247802734375,
-0.024078369140625,
-0.00888824462890625,
0.017822265625,
-0.007320404052734375,
0.00368499755859375,
-0.0034923553466796875,
-0.0260467529296875,
0.0209197998046875,
0.01334381103515625,
-0.0157928466796875,
0.0231475830078125,
0.01374053955078125,
0.004673004150390625,
-0.0165557861328125,
-0.035369873046875,
-0.00008112192153930664,
-0.031341552734375,
-0.036529541015625,
0.036468505859375,
0.035430908203125,
0.050140380859375,
-0.025970458984375,
0.029022216796875,
0.0166473388671875,
0.0557861328125,
0.030731201171875,
-0.02685546875,
-0.0036373138427734375,
-0.0135040283203125,
-0.040679931640625,
0.0380859375,
-0.07525634765625,
-0.00975799560546875,
0.01410675048828125,
-0.0013971328735351562,
-0.04248046875,
0.00494384765625,
-0.0042724609375,
-0.0277252197265625,
-0.023773193359375,
0.01509857177734375,
0.0106048583984375,
0.022613525390625,
0.017120361328125,
0.01413726806640625,
-0.01189422607421875,
-0.0236053466796875,
0.063720703125,
-0.023345947265625,
0.0084228515625,
-0.0126495361328125,
0.01116180419921875,
0.01371002197265625,
-0.006877899169921875,
0.029296875,
-0.020751953125,
0.0350341796875,
-0.003925323486328125,
-0.004871368408203125,
-0.01483154296875,
-0.03759765625,
-0.0223236083984375,
-0.01739501953125,
-0.0186309814453125,
0.047088623046875,
0.0212249755859375,
-0.0421142578125,
0.0345458984375,
-0.0374755859375,
-0.0499267578125,
-0.005603790283203125,
-0.0322265625,
0.0289154052734375,
-0.02447509765625,
0.0287322998046875,
0.0246429443359375,
0.008453369140625,
-0.0264739990234375,
0.0036296844482421875,
-0.0077667236328125,
-0.0321044921875,
-0.0164337158203125,
0.024810791015625,
-0.05181884765625,
0.052398681640625,
-0.09033203125,
-0.05908203125,
-0.06927490234375,
0.0124359130859375,
-0.0211639404296875,
-0.01087188720703125,
-0.01074981689453125,
-0.00142669677734375,
-0.0014047622680664062,
0.001430511474609375,
0.041259765625,
0.014251708984375,
0.02099609375,
0.03924560546875,
0.0009975433349609375,
-0.00914764404296875,
-0.0036468505859375,
-0.0760498046875,
0.021728515625,
0.04730224609375,
0.040252685546875,
0.027984619140625,
-0.005054473876953125,
-0.00897216796875,
0.046234130859375,
-0.05303955078125,
0.01204681396484375,
-0.0164642333984375,
0.0274658203125,
0.040771484375,
-0.043609619140625,
-0.02935791015625,
0.022064208984375,
-0.0782470703125,
-0.00185394287109375,
0.03668212890625,
0.0250244140625,
0.0266265869140625,
-0.023712158203125,
0.03118896484375,
0.00045299530029296875,
0.035400390625,
0.00844573974609375,
0.01146697998046875,
-0.0160675048828125,
0.01062774658203125,
0.003673553466796875,
-0.00243377685546875,
0.0026035308837890625,
-0.0034389495849609375,
0.01361083984375,
-0.052764892578125,
-0.006420135498046875,
0.058868408203125,
0.04718017578125,
0.06939697265625,
-0.0231781005859375,
-0.0413818359375,
0.020294189453125,
0.05718994140625,
-0.05120849609375,
-0.0241851806640625,
0.020172119140625,
-0.00821685791015625,
0.003093719482421875,
0.0114898681640625,
0.05389404296875,
-0.033447265625,
0.05810546875,
0.020660400390625,
0.0287017822265625,
0.0253753662109375,
-0.0163116455078125,
0.0736083984375,
-0.01654052734375,
-0.04498291015625,
-0.052947998046875,
-0.01149749755859375,
0.01219940185546875,
-0.033721923828125,
-0.0269927978515625,
0.043548583984375,
0.01389312744140625,
-0.00946044921875,
-0.007526397705078125,
0.036865234375,
0.0018568038940429688,
0.01099395751953125,
-0.006053924560546875,
-0.043060302734375,
0.00872039794921875,
0.025177001953125,
0.0131683349609375,
0.04693603515625,
-0.028350830078125,
-0.055389404296875,
-0.004985809326171875,
-0.011505126953125,
-0.08251953125,
-0.09552001953125,
0.003993988037109375,
-0.0111846923828125,
-0.054473876953125,
-0.0218963623046875,
-0.00742340087890625,
0.0268096923828125,
-0.03338623046875,
-0.01305389404296875,
0.0030994415283203125,
-0.043426513671875,
-0.03924560546875,
-0.060302734375,
-0.050750732421875,
-0.01300811767578125,
0.0005750656127929688,
-0.0140533447265625,
0.0018053054809570312,
0.038330078125,
-0.0007791519165039062,
-0.030029296875,
-0.0185546875,
0.0060272216796875,
0.0125579833984375,
-0.0200347900390625,
-0.0740966796875,
0.0034198760986328125,
0.00921630859375,
-0.003108978271484375,
-0.037811279296875,
-0.039703369140625,
0.05328369140625,
-0.023468017578125,
-0.006317138671875,
0.0151519775390625,
0.014251708984375,
-0.027130126953125,
-0.01081085205078125,
-0.0037746429443359375,
-0.00908660888671875,
-0.04632568359375,
0.0404052734375,
0.0289306640625,
0.00481414794921875,
-0.0278167724609375,
-0.01708984375,
-0.043701171875,
0.0036945343017578125,
-0.01220703125,
0.02117919921875,
0.017791748046875,
0.036102294921875,
-0.01322174072265625,
0.04052734375,
-0.0002601146697998047,
-0.00611114501953125,
-0.048004150390625,
-0.00247955322265625,
-0.01715087890625,
-0.01751708984375,
-0.02349853515625,
0.0196075439453125,
-0.0202484130859375,
0.036712646484375,
-0.042022705078125,
-0.059783935546875,
0.042572021484375,
-0.05084228515625,
-0.0100250244140625,
-0.035675048828125,
-0.005462646484375,
0.0127105712890625,
0.09552001953125,
0.025909423828125,
-0.039581298828125,
-0.004016876220703125,
0.0169525146484375,
-0.04486083984375,
-0.0169219970703125,
0.00707244873046875,
0.004962921142578125,
-0.01399993896484375,
0.002628326416015625,
-0.0216064453125,
-0.003940582275390625,
0.00814056396484375,
-0.07720947265625,
0.01335906982421875,
-0.05303955078125,
0.0266571044921875,
-0.041259765625,
0.023040771484375,
-0.0193023681640625,
0.035888671875,
-0.06671142578125,
0.00788116455078125,
-0.04425048828125,
-0.0394287109375,
-0.00359344482421875,
-0.046875,
0.0289764404296875,
-0.022247314453125,
0.08251953125,
-0.031890869140625,
0.021759033203125,
0.0180511474609375,
0.0294952392578125,
0.0084381103515625,
-0.0164031982421875,
0.0311737060546875,
0.03411865234375,
0.01702880859375,
0.01322174072265625,
0.004802703857421875,
-0.01363372802734375,
-0.0694580078125,
-0.0137939453125,
-0.034576416015625,
0.030792236328125,
0.0166168212890625,
-0.032867431640625,
-0.00292205810546875,
-0.0295562744140625,
-0.06817626953125,
0.004467010498046875,
-0.035614013671875,
-0.01450347900390625,
-0.040618896484375,
-0.0143280029296875,
0.0224151611328125,
-0.0057220458984375,
-0.000629425048828125,
0.0163726806640625,
0.053558349609375,
0.00952911376953125,
-0.01045989990234375,
-0.025970458984375,
-0.004558563232421875,
0.05157470703125,
0.03582763671875,
-0.0278167724609375,
-0.0086212158203125,
-0.05224609375,
0.03155517578125,
0.044586181640625,
-0.0007262229919433594,
0.0005745887756347656,
0.05718994140625,
0.0278167724609375,
0.0096282958984375,
-0.0054931640625,
0.01187896728515625,
-0.00943756103515625,
0.02337646484375,
0.01212310791015625,
-0.0180206298828125,
0.042999267578125,
0.0224761962890625,
-0.0323486328125,
0.0087432861328125,
-0.01180267333984375,
-0.04632568359375,
0.0268096923828125,
-0.0243377685546875,
0.01654052734375,
-0.004608154296875,
0.00276947021484375,
-0.0025119781494140625,
-0.00754547119140625,
-0.008819580078125,
-0.0158538818359375,
-0.0178375244140625,
0.0012903213500976562,
0.027496337890625,
-0.007526397705078125,
0.000461578369140625,
-0.022308349609375,
-0.004764556884765625,
0.00518035888671875,
0.030059814453125,
-0.0075836181640625,
-0.002140045166015625,
-0.0154876708984375,
-0.027435302734375,
-0.0296173095703125,
-0.026336669921875,
0.06982421875,
0.042816162109375,
-0.05230712890625,
-0.00368499755859375,
-0.04498291015625,
-0.011993408203125,
-0.08526611328125,
-0.01335906982421875,
-0.006000518798828125,
-0.0133514404296875,
0.01201629638671875,
0.03289794921875,
-0.0132598876953125,
0.021575927734375,
-0.0062408447265625,
0.0267486572265625,
0.0743408203125,
0.00013720989227294922,
0.0261993408203125,
0.00550079345703125,
-0.039825439453125,
0.007244110107421875,
0.003437042236328125,
-0.060150146484375,
-0.04754638671875,
0.0262908935546875,
0.0303497314453125,
-0.003971099853515625,
0.023895263671875,
0.0222930908203125,
0.049224853515625,
-0.0080108642578125,
0.032745361328125,
0.003711700439453125,
-0.0140380859375,
-0.04705810546875,
-0.020050048828125,
0.038970947265625,
-0.0010156631469726562,
0.010955810546875,
-0.017669677734375,
-0.00971221923828125,
0.00377655029296875,
-0.00013589859008789062,
0.01215362548828125,
-0.0290069580078125,
-0.03302001953125,
0.027984619140625,
-0.0014495849609375,
-0.00888824462890625,
-0.025787353515625,
-0.007640838623046875,
-0.0273895263671875,
-0.011962890625,
0.065185546875,
-0.017974853515625,
-0.005001068115234375,
-0.04901123046875,
0.0477294921875,
-0.0830078125,
0.005413055419921875,
0.02978515625,
0.0146636962890625,
-0.049102783203125,
-0.010009765625,
-0.047271728515625,
0.0023632049560546875,
-0.0311279296875,
-0.03546142578125,
-0.016326904296875,
0.0038318634033203125,
0.0235748291015625,
0.027801513671875,
0.0006999969482421875,
-0.0489501953125,
-0.00777435302734375,
-0.0016584396362304688,
0.0184783935546875,
0.033905029296875,
0.001678466796875,
0.033660888671875,
-0.0174407958984375,
0.06085205078125,
0.011016845703125,
-0.002742767333984375,
-0.0162200927734375,
-0.0272064208984375,
0.00037026405334472656,
0.007442474365234375,
-0.0119781494140625,
-0.0251922607421875,
0.0248260498046875,
-0.009185791015625,
0.03399658203125,
-0.00853729248046875,
-0.018218994140625,
-0.0277252197265625,
-0.011932373046875,
-0.004787445068359375,
0.064208984375,
-0.002796173095703125,
-0.0264434814453125,
0.0218353271484375,
-0.006946563720703125,
-0.019805908203125,
0.01155853271484375,
0.006534576416015625,
-0.0145416259765625,
0.0088653564453125,
-0.0191497802734375,
-0.01751708984375,
0.012359619140625,
0.015655517578125,
0.027496337890625,
-0.01300811767578125,
0.041046142578125,
0.046905517578125,
0.0311279296875,
0.01244354248046875,
0.025238037109375,
-0.0188140869140625,
-0.0205230712890625,
0.031402587890625,
0.0021190643310546875,
-0.004329681396484375,
0.01479339599609375,
-0.00804901123046875,
0.040252685546875,
0.05792236328125,
0.11016845703125,
-0.0848388671875,
0.017852783203125,
0.0304412841796875,
-0.035491943359375,
0.0014591217041015625,
-0.00710296630859375,
0.008331298828125,
-0.03521728515625,
0.06878662109375,
-0.00262451171875,
0.004146575927734375,
0.0261383056640625,
-0.0399169921875,
0.0006647109985351562,
-0.0157623291015625,
0.07244873046875,
0.02630615234375,
-0.052337646484375,
-0.006031036376953125,
0.04229736328125,
-0.026214599609375,
-0.0029621124267578125,
0.0000069141387939453125,
-0.0235137939453125,
-0.0158843994140625,
-0.034576416015625,
-0.028717041015625,
-0.0316162109375,
-0.0036163330078125,
-0.0156097412109375,
-0.02239990234375,
0.05535888671875,
0.01336669921875,
0.006671905517578125,
-0.04156494140625,
0.001758575439453125,
-0.016082763671875,
-0.0416259765625,
-0.0132598876953125,
0.0177001953125,
0.037261962890625,
-0.048614501953125,
0.04229736328125,
-0.0200653076171875,
-0.009918212890625,
0.006931304931640625,
0.04925537109375,
0.06201171875,
-0.0101318359375,
-0.033355712890625,
0.047515869140625,
-0.0118255615234375,
-0.010894775390625,
-0.01139068603515625,
0.0246124267578125,
-0.0266571044921875,
0.01274871826171875,
-0.0149688720703125,
-0.0120086669921875,
-0.0051116943359375,
-0.0264892578125,
-0.054443359375,
0.08843994140625,
0.0016374588012695312,
0.020751953125,
-0.0054473876953125,
0.033233642578125,
-0.007354736328125,
0.0210418701171875,
-0.0322265625,
0.037506103515625,
-0.0022029876708984375,
0.0308380126953125,
-0.0614013671875,
-0.0146026611328125,
-0.0151519775390625,
0.03826904296875,
0.0226898193359375,
0.005313873291015625,
0.004177093505859375,
0.006977081298828125,
0.040313720703125,
0.01314544677734375,
-0.01131439208984375,
0.0133819580078125,
0.0197906494140625,
0.047943115234375,
0.08233642578125,
-0.051422119140625,
0.032440185546875,
-0.0028743743896484375,
0.0203704833984375,
0.047027587890625,
-0.00782012939453125,
-0.0401611328125,
-0.01393890380859375,
0.029693603515625,
-0.058502197265625,
-0.0020580291748046875,
0.027435302734375,
-0.006328582763671875,
0.035369873046875,
-0.0161590576171875,
0.013580322265625,
-0.038177490234375,
0.049713134765625,
-0.0207061767578125,
0.051910400390625,
-0.01373291015625,
0.00926971435546875,
0.036346435546875,
0.011474609375,
0.063232421875,
0.00478363037109375,
0.0009164810180664062,
0.0237579345703125,
0.004608154296875,
-0.005580902099609375,
-0.02899169921875,
0.01110076904296875,
-0.05804443359375,
-0.02264404296875,
0.00492095947265625,
-0.008087158203125,
-0.0017528533935546875,
0.01239776611328125,
0.003665924072265625,
0.0165252685546875,
0.01161956787109375,
-0.06280517578125,
0.0135040283203125,
-0.0074920654296875,
-0.0188446044921875,
-0.0673828125,
-0.0243377685546875,
0.0296478271484375,
0.051788330078125,
-0.005847930908203125,
-0.01142120361328125,
-0.01052093505859375,
-0.057281494140625,
-0.0294952392578125,
0.04766845703125,
0.037322998046875,
0.0053253173828125,
-0.04949951171875,
0.046142578125,
0.01280975341796875,
0.0138397216796875,
-0.03076171875,
0.02447509765625,
0.05078125,
0.00290679931640625,
-0.005496978759765625,
0.010955810546875,
0.045745849609375,
0.01470947265625,
-0.011688232421875,
-0.0343017578125,
0.016265869140625,
0.060516357421875,
-0.0270233154296875,
-0.03216552734375,
0.0072784423828125,
-0.021392822265625,
0.00618743896484375,
-0.033599853515625,
-0.02130126953125,
0.00045228004455566406,
-0.017852783203125,
0.01117706298828125,
-0.016357421875,
0.053070068359375,
0.003406524658203125,
0.006938934326171875,
0.003108978271484375,
-0.00612640380859375,
0.033111572265625,
-0.0169677734375,
0.026153564453125,
0.024871826171875,
-0.07965087890625,
-0.049102783203125,
0.0063323974609375,
0.037506103515625,
0.00743865966796875,
0.030303955078125,
0.0015420913696289062,
0.02215576171875,
0.037261962890625,
-0.017181396484375,
0.0343017578125,
0.0224151611328125,
-0.043609619140625,
-0.0269927978515625,
0.05126953125,
-0.03326416015625,
-0.041046142578125,
-0.0192108154296875,
-0.0033817291259765625,
0.02777099609375,
-0.003662109375,
0.060577392578125,
-0.00360107421875,
0.019989013671875,
-0.02099609375,
0.04339599609375,
-0.06060791015625,
-0.036712646484375,
0.045013427734375,
-0.01163482666015625,
-0.01471710205078125,
0.007289886474609375,
-0.037872314453125,
0.021484375,
0.00946044921875,
-0.01070404052734375,
0.047149658203125,
-0.04119873046875,
0.0023593902587890625,
-0.0029430389404296875,
0.0284881591796875,
-0.019378662109375,
-0.02008056640625,
-0.042205810546875,
-0.01033782958984375,
0.052978515625,
0.048797607421875,
-0.012115478515625,
0.049407958984375,
-0.027252197265625,
-0.0174560546875,
0.01654052734375,
-0.060333251953125,
0.0049896240234375,
0.015472412109375,
-0.02899169921875,
-0.007015228271484375,
-0.002124786376953125,
-0.0172271728515625,
0.003429412841796875,
0.0037631988525390625,
0.03887939453125,
0.01422882080078125,
0.01433563232421875,
-0.032867431640625,
-0.005138397216796875,
0.0196685791015625,
-0.0027256011962890625,
0.005062103271484375,
-0.031036376953125,
0.0037364959716796875,
-0.01030731201171875,
-0.04107666015625,
-0.00489044189453125,
-0.0203704833984375,
-0.0002200603485107422,
-0.00017559528350830078,
0.013519287109375,
0.0046539306640625,
0.062042236328125,
0.0182342529296875,
0.00923919677734375,
-0.034515380859375,
0.023590087890625,
-0.01526641845703125,
-0.0210723876953125,
0.028717041015625,
-0.0267181396484375,
0.052978515625,
0.005718231201171875,
0.05230712890625,
-0.07586669921875,
-0.050628662109375,
-0.0016727447509765625,
0.0380859375,
-0.03955078125,
0.0111846923828125,
0.030731201171875,
-0.0272064208984375,
-0.054473876953125,
0.006244659423828125,
0.0220947265625,
0.041778564453125,
0.0119476318359375,
-0.0295562744140625,
0.009979248046875,
-0.0007243156433105469,
0.00269317626953125,
-0.041900634765625,
-0.0027904510498046875,
-0.071533203125,
-0.00025844573974609375,
-0.023162841796875,
0.02227783203125,
0.028961181640625,
-0.036102294921875,
-0.07635498046875,
0.016571044921875,
-0.0099639892578125,
-0.0311279296875,
-0.0718994140625,
0.002849578857421875,
0.003265380859375,
-0.007549285888671875,
-0.030792236328125,
-0.00362396240234375,
-0.036468505859375,
0.044464111328125,
0.00911712646484375,
0.045623779296875,
0.0151824951171875,
0.0178375244140625,
-0.0845947265625,
-0.0380859375,
-0.06915283203125,
0.0081939697265625,
-0.0179443359375,
-0.0016489028930664062,
0.03277587890625,
0.050018310546875,
0.00795745849609375,
-0.01163482666015625,
0.036407470703125,
-0.051483154296875,
-0.024658203125,
-0.028350830078125,
0.0291595458984375,
0.016693115234375,
0.04046630859375,
0.01320648193359375,
-0.0011234283447265625,
-0.033538818359375,
-0.0255584716796875,
-0.01800537109375,
-0.0177764892578125,
0.0092620849609375,
0.006122589111328125,
-0.037445068359375,
0.0255279541015625,
-0.002960205078125,
-0.0020351409912109375,
-0.011962890625,
-0.04327392578125,
-0.0163421630859375,
-0.0164642333984375,
-0.01084136962890625,
0.0163726806640625,
0.01079559326171875,
-0.088623046875,
0.054779052734375,
-0.0189056396484375,
-0.00630950927734375,
0.03826904296875,
0.039398193359375,
0.0146484375,
0.0941162109375,
0.054901123046875,
0.046905517578125,
-0.05523681640625,
-0.056610107421875,
0.046966552734375,
-0.00890350341796875,
0.0176544189453125,
-0.04052734375,
-0.01242828369140625,
0.00713348388671875,
-0.01297760009765625,
0.002399444580078125,
0.0418701171875,
0.007656097412109375,
-0.016021728515625,
0.062469482421875,
0.005908966064453125,
-0.00006455183029174805,
-0.0174560546875,
0.037261962890625,
0.00710296630859375,
-0.0203704833984375,
0.0219573974609375,
-0.037322998046875,
0.0171051025390625,
0.035736083984375,
0.057708740234375,
-0.0231475830078125,
0.031280517578125,
0.03070068359375,
0.04266357421875,
0.01117706298828125
] |
dc0ace942bdbd82aa805bba8bf782cf3d93520a4
|
Wordpress Stackexchange
Q: How do you permanently remove default rewrite rules from the wp_options table? We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.).
What's the best way to clear these rules and prevent them from being saved to the database the next time flush_rules() is called? I'd prefer a solution that works in functions.php or as a standalone plugin, rather than editing core WP files such as wp-includes/rewrite.php.
A: Rather than modifying stored rules it would be more reliable to modify rules before they are stored.
*
*flush_rewrite_rules() calls
*WP_Rewrite->flush_rules()
*WP_Rewrite->wp_rewrite_rules()
*WP_Rewrite->rewrite_rules()
Inside last there are fitting hooks to modify rules (after which result they will be saved as usual on each flush):
do_action_ref_array('generate_rewrite_rules', array(&$this));
$this->rules = apply_filters('rewrite_rules_array', $this->rules);
|
Q: How do you permanently remove default rewrite rules from the wp_options table? We have tons of rewrite rules saved in our wp_options table and I'd like to permanently remove any entries that we're not using on our site (such as comment feeds, page attachments, etc.).
What's the best way to clear these rules and prevent them from being saved to the database the next time flush_rules() is called? I'd prefer a solution that works in functions.php or as a standalone plugin, rather than editing core WP files such as wp-includes/rewrite.php.
A: Rather than modifying stored rules it would be more reliable to modify rules before they are stored.
*
*flush_rewrite_rules() calls
*WP_Rewrite->flush_rules()
*WP_Rewrite->wp_rewrite_rules()
*WP_Rewrite->rewrite_rules()
Inside last there are fitting hooks to modify rules (after which result they will be saved as usual on each flush):
do_action_ref_array('generate_rewrite_rules', array(&$this));
$this->rules = apply_filters('rewrite_rules_array', $this->rules);
A: To do what you want you are going to have to add_rewrite_rule for each rule you have.
I am storing new rules that users add to an options array.
If the user wants to delete the rule, then once selected, I unset it from the array.
function remove_rule($user_input){
foreach($rules as $key => $rule){
if($rule === $user_input){
unset($rules[$key]);
}
}
return $rules;
}
Then again rebuild your htaccess by adding all stored rules
foreach($rules as $rule){
add_rewrite_rule($rule['pattern'], $rule['url'], 'top');
}
Hope this helps anyone that needs it.
|
wordpress
|
{
"language": "en",
"length": 229,
"provenance": "stackexchange_00019.jsonl.gz:411953",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/25015"
}
|
[
0.036376953125,
0.0016355514526367188,
-0.0306396484375,
-0.0421142578125,
0.015167236328125,
-0.03594970703125,
0.035430908203125,
-0.0037670135498046875,
-0.0114898681640625,
0.0234527587890625,
-0.006526947021484375,
-0.0015802383422851562,
0.004634857177734375,
-0.0250396728515625,
-0.00687408447265625,
-0.023529052734375,
0.033966064453125,
-0.00305938720703125,
0.041748046875,
0.0042877197265625,
0.032196044921875,
0.025115966796875,
0.0272216796875,
0.056549072265625,
0.0035266876220703125,
-0.0240325927734375,
0.0743408203125,
-0.01548004150390625,
-0.0079193115234375,
-0.04681396484375,
0.006023406982421875,
0.0340576171875,
0.01287078857421875,
0.0357666015625,
-0.0270843505859375,
-0.01666259765625,
-0.0282440185546875,
0.01049041748046875,
0.0021820068359375,
0.018798828125,
0.028778076171875,
-0.024627685546875,
0.018035888671875,
-0.018463134765625,
-0.009002685546875,
-0.01074981689453125,
0.028106689453125,
-0.019317626953125,
-0.004871368408203125,
0.0094451904296875,
0.00794219970703125,
0.038299560546875,
0.013427734375,
0.0107879638671875,
-0.00804901123046875,
-0.030426025390625,
0.016571044921875,
-0.020050048828125,
0.0235137939453125,
-0.00862884521484375,
-0.0202178955078125,
0.0031375885009765625,
0.015380859375,
-0.0102386474609375,
0.000728607177734375,
-0.0028476715087890625,
0.023895263671875,
0.0255126953125,
-0.045989990234375,
-0.00201416015625,
0.044403076171875,
-0.01282501220703125,
-0.0300445556640625,
-0.040771484375,
-0.0029144287109375,
0.02923583984375,
-0.0039215087890625,
-0.0151519775390625,
-0.0023288726806640625,
0.0243377685546875,
0.03472900390625,
-0.054534912109375,
0.00019812583923339844,
0.007251739501953125,
0.02532958984375,
0.0252685546875,
0.004505157470703125,
-0.0188751220703125,
-0.019287109375,
-0.0217132568359375,
-0.0150146484375,
-0.034393310546875,
-0.0214996337890625,
-0.0043792724609375,
-0.0035762786865234375,
-0.0310821533203125,
0.0244293212890625,
0.031158447265625,
0.0097198486328125,
0.007175445556640625,
0.016693115234375,
-0.0443115234375,
0.031707763671875,
-0.023651123046875,
0.0268707275390625,
0.024261474609375,
-0.021514892578125,
0.0250701904296875,
0.06060791015625,
0.020416259765625,
0.009613037109375,
0.015594482421875,
0.007404327392578125,
0.01556396484375,
-0.035400390625,
-0.0196990966796875,
-0.0257720947265625,
-0.0058135986328125,
-0.023529052734375,
0.002162933349609375,
-0.015350341796875,
0.007526397705078125,
-0.0396728515625,
-0.0160064697265625,
0.007534027099609375,
-0.0271453857421875,
-0.02069091796875,
0.036773681640625,
-0.033294677734375,
0.038421630859375,
-0.0364990234375,
-0.0017986297607421875,
0.0574951171875,
0.0482177734375,
0.0146026611328125,
-0.030426025390625,
0.05560302734375,
-0.00325775146484375,
0.0107421875,
0.0333251953125,
0.00315093994140625,
-0.06396484375,
-0.04486083984375,
0.018890380859375,
0.0239715576171875,
0.031036376953125,
0.035491943359375,
0.0061492919921875,
-0.03240966796875,
-0.046630859375,
0.0013933181762695312,
0.01087188720703125,
0.07135009765625,
-0.005863189697265625,
-0.019195556640625,
-0.058258056640625,
0.063720703125,
-0.0496826171875,
-0.03839111328125,
-0.07623291015625,
-0.0149383544921875,
-0.032012939453125,
-0.022674560546875,
-0.018341064453125,
-0.027435302734375,
0.0237884521484375,
-0.0170745849609375,
0.00347900390625,
0.01702880859375,
-0.007305145263671875,
0.013427734375,
-0.04754638671875,
0.004058837890625,
-0.00988006591796875,
-0.003650665283203125,
0.0247344970703125,
0.0059661865234375,
-0.017486572265625,
-0.0176239013671875,
0.07672119140625,
0.00118255615234375,
-0.049285888671875,
-0.0372314453125,
0.0016956329345703125,
-0.072265625,
0.06927490234375,
0.0033817291259765625,
0.0963134765625,
0.0176239013671875,
-0.00037550926208496094,
0.0533447265625,
-0.0015010833740234375,
0.0007929801940917969,
0.016571044921875,
0.0026988983154296875,
-0.0240478515625,
-0.0191497802734375,
0.00809478759765625,
-0.020843505859375,
0.01201629638671875,
-0.01947021484375,
0.0213623046875,
-0.0256500244140625,
-0.014068603515625,
-0.10394287109375,
0.0145721435546875,
-0.0445556640625,
0.0579833984375,
-0.031951904296875,
-0.00795745849609375,
0.044952392578125,
0.0192108154296875,
-0.06793212890625,
0.00391387939453125,
-0.0156707763671875,
0.026763916015625,
-0.009033203125,
0.04339599609375,
0.0266571044921875,
0.0249481201171875,
0.0355224609375,
-0.0311279296875,
0.0197601318359375,
-0.0187225341796875,
0.0021991729736328125,
-0.0248260498046875,
-0.030609130859375,
-0.0216522216796875,
-0.04302978515625,
-0.01947021484375,
-0.0138702392578125,
0.07122802734375,
0.00786590576171875,
0.03692626953125,
-0.006687164306640625,
-0.032806396484375,
-0.034210205078125,
-0.08880615234375,
0.018585205078125,
0.06048583984375,
0.0295562744140625,
0.03033447265625,
-0.0197601318359375,
0.0167236328125,
-0.0030689239501953125,
-0.060791015625,
0.00872039794921875,
0.004695892333984375,
0.02142333984375,
0.05230712890625,
0.00505828857421875,
-0.0186004638671875,
0.00769805908203125,
-0.027130126953125,
-0.01043701171875,
0.0220489501953125,
-0.04541015625,
-0.01407623291015625,
0.0156707763671875,
-0.0030460357666015625,
-0.00174713134765625,
-0.0211181640625,
0.0106201171875,
-0.0224456787109375,
0.012908935546875,
-0.022216796875,
-0.006534576416015625,
-0.008697509765625,
-0.0076446533203125,
0.0035266876220703125,
0.0274505615234375,
-0.035919189453125,
-0.01349639892578125,
0.0264434814453125,
0.045135498046875,
-0.044677734375,
-0.00792694091796875,
-0.01151275634765625,
-0.0013704299926757812,
0.006198883056640625,
-0.00833892822265625,
0.062255859375,
0.0089111328125,
-0.013885498046875,
-0.0313720703125,
-0.0282440185546875,
-0.0007963180541992188,
-0.0220184326171875,
0.0080413818359375,
0.000766754150390625,
0.0142364501953125,
0.0268707275390625,
-0.0230865478515625,
0.0216827392578125,
0.04071044921875,
-0.0212554931640625,
-0.0121002197265625,
-0.0333251953125,
0.037750244140625,
-0.028289794921875,
-0.01116943359375,
0.0667724609375,
0.01385498046875,
-0.016998291015625,
0.0190277099609375,
0.006191253662109375,
0.03125,
-0.012908935546875,
-0.0167236328125,
0.042724609375,
-0.1043701171875,
-0.0164642333984375,
0.0189361572265625,
0.040008544921875,
0.00319671630859375,
-0.01482391357421875,
0.009185791015625,
0.044921875,
0.00339508056640625,
0.0144500732421875,
-0.011322021484375,
-0.0037746429443359375,
-0.0305023193359375,
0.0257415771484375,
-0.0023345947265625,
0.005252838134765625,
0.0244140625,
-0.007503509521484375,
-0.03607177734375,
-0.030120849609375,
-0.024993896484375,
-0.06396484375,
-0.0443115234375,
-0.020263671875,
-0.0031986236572265625,
0.0239105224609375,
0.0030975341796875,
0.07806396484375,
0.00519561767578125,
-0.0516357421875,
0.00322723388671875,
-0.051177978515625,
-0.0296630859375,
-0.0031948089599609375,
-0.0120391845703125,
-0.0224151611328125,
0.0340576171875,
-0.01306915283203125,
0.0245513916015625,
0.040008544921875,
-0.02130126953125,
0.0110015869140625,
0.01393890380859375,
0.02484130859375,
0.00917816162109375,
0.0084381103515625,
-0.00806427001953125,
-0.01222991943359375,
-0.0144195556640625,
-0.048431396484375,
-0.034149169921875,
0.045745849609375,
-0.00879669189453125,
0.00039076805114746094,
-0.01462554931640625,
-0.023773193359375,
0.010772705078125,
0.026824951171875,
0.00467681884765625,
0.01410675048828125,
0.037445068359375,
-0.02459716796875,
0.0023365020751953125,
-0.00861358642578125,
-0.0165557861328125,
-0.02935791015625,
0.0738525390625,
-0.00923919677734375,
0.00934600830078125,
0.035125732421875,
-0.01375579833984375,
0.0145721435546875,
-0.060791015625,
-0.04779052734375,
-0.071533203125,
0.0182037353515625,
-0.09515380859375,
0.0093536376953125,
-0.046661376953125,
0.01059722900390625,
-0.00269317626953125,
0.100341796875,
-0.00534820556640625,
-0.02862548828125,
-0.02911376953125,
0.0009555816650390625,
0.006359100341796875,
-0.038177490234375,
0.0350341796875,
-0.0260772705078125,
-0.12225341796875,
0.00667572021484375,
-0.002613067626953125,
-0.03997802734375,
-0.0011968612670898438,
-0.020355224609375,
-0.040985107421875,
-0.0567626953125,
0.03668212890625,
-0.05096435546875,
0.01259613037109375,
0.0311126708984375,
-0.009368896484375,
-0.004360198974609375,
-0.0278472900390625,
-0.0259857177734375,
-0.0802001953125,
-0.01096343994140625,
-0.0261993408203125,
0.042327880859375,
0.0330810546875,
-0.0372314453125,
-0.0167694091796875,
0.033935546875,
-0.01514434814453125,
-0.0185394287109375,
0.0023632049560546875,
0.01079559326171875,
-0.023590087890625,
0.0250396728515625,
0.0058135986328125,
-0.0202178955078125,
0.002582550048828125,
-0.01190948486328125,
-0.0369873046875,
0.0115203857421875,
-0.02734375,
0.016510009765625,
0.002025604248046875,
-0.03399658203125,
-0.02764892578125,
-0.037384033203125,
-0.044891357421875,
0.01947021484375,
-0.0180511474609375,
-0.011444091796875,
-0.052886962890625,
-0.055267333984375,
0.053924560546875,
-0.0141754150390625,
-0.002155303955078125,
0.00506591796875,
0.0859375,
0.01214599609375,
-0.0199432373046875,
-0.0163421630859375,
-0.0016193389892578125,
0.0211944580078125,
-0.031463623046875,
0.054595947265625,
0.0228271484375,
0.016357421875,
0.0428466796875,
-0.0251617431640625,
0.0201416015625,
-0.06591796875,
0.034454345703125,
-0.012847900390625,
0.00904083251953125,
0.01537322998046875,
-0.028045654296875,
0.042877197265625,
0.034912109375,
-0.01483917236328125,
-0.01800537109375,
-0.0163726806640625,
0.045440673828125,
0.018310546875,
-0.0156402587890625,
-0.06597900390625,
-0.02935791015625,
0.01171875,
-0.010467529296875,
0.058990478515625,
0.0271148681640625,
-0.00384521484375,
0.047454833984375,
0.023956298828125,
0.0163116455078125,
-0.005344390869140625,
0.04022216796875,
-0.026947021484375,
0.04388427734375,
-0.00438690185546875,
-0.001750946044921875,
-0.0293731689453125,
-0.0013256072998046875,
0.056427001953125,
-0.00676727294921875,
-0.048248291015625,
-0.006256103515625,
-0.006534576416015625,
-0.006328582763671875,
0.0330810546875,
0.005657196044921875,
0.016632080078125,
0.019989013671875,
-0.0141143798828125,
0.001430511474609375,
-0.0270843505859375,
0.01102447509765625,
-0.03936767578125,
0.00008690357208251953,
-0.023101806640625,
-0.0053558349609375,
0.00881195068359375,
0.05169677734375,
-0.01520538330078125,
0.033233642578125,
-0.007221221923828125,
-0.0013875961303710938,
-0.0157012939453125,
0.02935791015625,
0.00525665283203125,
0.033905029296875,
0.018829345703125,
-0.005634307861328125,
0.032958984375,
-0.028289794921875,
-0.03826904296875,
0.0325927734375,
0.03717041015625,
-0.02777099609375,
-0.006343841552734375,
-0.0005993843078613281,
-0.0166473388671875,
-0.022186279296875,
0.01617431640625,
-0.007335662841796875,
-0.048126220703125,
-0.005527496337890625,
0.007114410400390625,
0.01849365234375,
-0.007450103759765625,
-0.016693115234375,
0.013580322265625,
-0.04736328125,
-0.01074981689453125,
0.0277099609375,
-0.03228759765625,
-0.0221710205078125,
-0.01947021484375,
-0.034881591796875,
-0.036041259765625,
0.0283203125,
-0.07269287109375,
-0.004673004150390625,
-0.0244140625,
-0.01546478271484375,
0.01377105712890625,
0.0252227783203125,
0.031707763671875,
0.0171356201171875,
-0.061431884765625,
0.048614501953125,
-0.00164031982421875,
0.0296173095703125,
-0.0172576904296875,
-0.0384521484375,
-0.028961181640625,
-0.05621337890625,
-0.0159759521484375,
-0.037261962890625,
-0.045379638671875,
-0.0158843994140625,
0.004589080810546875,
-0.01171875,
0.03363037109375,
-0.0258941650390625,
-0.0026493072509765625,
-0.02587890625,
0.0197906494140625,
-0.00408172607421875,
0.05218505859375,
-0.02264404296875,
0.06951904296875,
-0.00719451904296875,
0.0215911865234375,
0.00591278076171875,
0.0300750732421875,
-0.0029201507568359375,
-0.01180267333984375,
0.036773681640625,
-0.017333984375,
-0.051910400390625,
-0.044403076171875,
-0.040740966796875,
-0.0059814453125,
0.053955078125,
-0.0236663818359375,
0.035980224609375,
-0.019287109375,
0.00490570068359375,
-0.0361328125,
0.02801513671875,
-0.0758056640625,
0.04541015625,
-0.0272216796875,
0.01377105712890625,
0.06170654296875,
-0.0221710205078125,
-0.017974853515625,
0.006580352783203125,
-0.0119781494140625,
0.01149749755859375,
0.025787353515625,
-0.03521728515625,
0.031494140625,
0.044708251953125,
0.0169525146484375,
0.04803466796875,
0.00946044921875,
0.04071044921875,
0.047332763671875,
0.00445556640625,
-0.006153106689453125,
0.003814697265625,
0.045745849609375,
0.01397705078125,
0.0189666748046875,
0.03997802734375,
0.011199951171875,
0.0203857421875,
0.05108642578125,
0.055023193359375,
-0.0750732421875,
0.0224151611328125,
0.0008091926574707031,
-0.01593017578125,
0.0548095703125,
0.0093231201171875,
-0.00727081298828125,
0.013336181640625,
-0.04901123046875,
-0.0052642822265625,
-0.0406494140625,
-0.028076171875,
0.0272674560546875,
-0.0143585205078125,
-0.01251220703125,
0.03204345703125,
-0.0052490234375,
-0.0011854171752929688,
-0.0268707275390625,
0.0031185150146484375,
-0.035186767578125,
-0.00878143310546875,
0.0117950439453125,
0.0065155029296875,
-0.0211639404296875,
-0.03729248046875,
0.0308074951171875,
-0.035308837890625,
-0.018280029296875,
0.0440673828125,
-0.042510986328125,
-0.005374908447265625,
0.037139892578125,
-0.03900146484375,
0.035430908203125,
0.007656097412109375,
-0.064697265625,
-0.033294677734375,
-0.0233154296875,
0.035491943359375,
-0.00969696044921875,
-0.049591064453125,
0.03253173828125,
-0.034332275390625,
-0.0626220703125,
-0.00484466552734375,
-0.0718994140625,
0.03790283203125,
-0.078369140625,
0.0308837890625,
-0.0019083023071289062,
0.040679931640625,
0.02996826171875,
-0.034698486328125,
-0.006809234619140625,
-0.04510498046875,
-0.01739501953125,
-0.039642333984375,
-0.0328369140625,
0.0189208984375,
-0.06512451171875,
-0.07080078125,
0.10589599609375,
-0.00286865234375,
0.033721923828125,
0.00023698806762695312,
0.037628173828125,
-0.008209228515625,
0.0272979736328125,
-0.01056671142578125,
0.028411865234375,
0.00711822509765625,
0.009124755859375,
-0.027801513671875,
-0.00807952880859375,
-0.006076812744140625,
0.043182373046875,
0.042449951171875,
0.01334381103515625,
-0.001522064208984375,
-0.00971221923828125,
0.036590576171875,
0.024139404296875,
-0.00481414794921875,
0.012054443359375,
-0.021240234375,
0.026336669921875,
0.0008502006530761719,
-0.05377197265625,
0.0019779205322265625,
-0.020416259765625,
-0.0225982666015625,
0.004192352294921875,
0.00916290283203125,
0.011016845703125,
-0.0051116943359375,
0.013153076171875,
-0.0212860107421875,
-0.003765106201171875,
0.0125274658203125,
0.0037403106689453125,
0.0089569091796875,
0.00492095947265625,
0.01336669921875,
-0.037322998046875,
-0.006771087646484375,
-0.0242156982421875,
0.041748046875,
0.01477813720703125,
0.0290374755859375,
0.0654296875,
0.03192138671875,
0.0247650146484375,
0.0008749961853027344,
0.0341796875,
-0.004779815673828125,
-0.04437255859375,
0.047454833984375,
0.031890869140625,
0.035003662109375,
-0.0013494491577148438,
0.0004343986511230469,
-0.002147674560546875,
0.048675537109375,
-0.018829345703125,
-0.03643798828125,
-0.00212860107421875,
-0.01235198974609375,
0.013336181640625,
-0.035003662109375,
-0.000022172927856445312,
-0.060089111328125,
-0.0284423828125,
-0.0007872581481933594,
0.0015201568603515625,
-0.0057373046875,
-0.0023937225341796875,
-0.0179595947265625,
0.01348114013671875,
-0.0066680908203125,
0.0207061767578125,
-0.0021266937255859375,
-0.03155517578125,
-0.00836944580078125,
0.017364501953125,
0.045684814453125,
-0.0026416778564453125,
0.0154266357421875,
-0.0006532669067382812,
-0.0160675048828125,
0.05389404296875,
-0.024658203125,
0.0238189697265625,
-0.078857421875,
-0.062255859375,
0.01041412353515625,
0.058013916015625,
0.01751708984375,
0.031494140625,
0.05560302734375,
0.0111541748046875,
-0.052154541015625,
0.0002684593200683594,
0.0028247833251953125,
-0.043304443359375,
0.004161834716796875,
-0.0284423828125,
0.027587890625,
-0.00313568115234375,
0.00476837158203125,
-0.0301361083984375,
0.05242919921875,
-0.004150390625,
0.007358551025390625,
0.006748199462890625,
0.011138916015625,
-0.0226898193359375,
0.038055419921875,
0.0042877197265625,
0.02557373046875,
0.028594970703125,
0.010711669921875,
0.0032787322998046875,
-0.021331787109375,
-0.00894927978515625,
-0.01444244384765625,
0.0248870849609375,
0.02520751953125,
-0.0003256797790527344,
-0.01557159423828125,
0.0286712646484375,
0.0033721923828125,
-0.032989501953125,
-0.0196075439453125,
-0.01300811767578125,
0.034881591796875,
-0.0086669921875,
-0.06207275390625,
-0.0294952392578125,
-0.032470703125,
0.0286865234375,
0.00604248046875,
0.109375,
-0.03955078125,
0.01537322998046875,
-0.0026569366455078125,
-0.0204925537109375,
0.01556396484375,
0.0022258758544921875,
-0.00894927978515625,
-0.01314544677734375,
-0.0103607177734375,
-0.0011806488037109375,
-0.0255584716796875,
0.01885986328125,
0.01039886474609375,
-0.0390625,
0.0179290771484375,
-0.03814697265625,
0.01171875,
-0.01258087158203125,
0.03680419921875,
-0.03564453125,
-0.043426513671875,
-0.024566650390625,
0.0038661956787109375,
-0.002971649169921875,
-0.0306549072265625,
-0.00997161865234375,
0.05908203125,
0.0009493827819824219,
0.0033817291259765625,
0.00609588623046875,
-0.0404052734375,
0.016845703125,
0.038238525390625,
-0.0207977294921875,
0.0007109642028808594,
0.01412200927734375,
-0.02435302734375,
0.01861572265625,
0.00771331787109375,
0.0026988983154296875,
0.0102996826171875,
-0.037384033203125,
-0.059967041015625,
-0.0306396484375,
0.004489898681640625,
-0.0029010772705078125,
0.00659942626953125,
-0.05169677734375,
0.002826690673828125,
-0.01175689697265625,
0.00220489501953125,
-0.003597259521484375,
-0.0191192626953125,
-0.0178070068359375,
0.0178680419921875,
-0.0164642333984375,
-0.004703521728515625,
-0.0283355712890625,
0.0169525146484375,
0.0210418701171875,
0.0225372314453125,
-0.093505859375,
0.057586669921875,
0.001682281494140625,
0.054046630859375,
-0.0179595947265625,
-0.0032749176025390625,
-0.0198516845703125,
-0.0223388671875,
-0.04791259765625,
-0.038238525390625,
-0.054656982421875,
0.029541015625,
-0.0494384765625,
0.007144927978515625,
0.0245513916015625,
0.0021419525146484375,
0.0228118896484375,
-0.0089263916015625,
-0.0261688232421875,
0.04595947265625,
-0.059661865234375,
-0.01056671142578125,
0.0379638671875,
-0.00145721435546875,
-0.0355224609375,
-0.08282470703125,
-0.01270294189453125,
-0.04681396484375,
0.0203399658203125,
-0.02056884765625,
0.0308990478515625,
0.04534912109375,
-0.0134124755859375,
-0.034454345703125,
0.03680419921875,
-0.005245208740234375,
-0.0171356201171875,
-0.02496337890625,
-0.0222015380859375,
-0.0306396484375,
0.041015625,
0.0012531280517578125,
-0.0174560546875,
-0.01548004150390625,
0.036376953125,
0.02227783203125,
0.044769287109375,
-0.005886077880859375,
0.0291290283203125,
-0.011749267578125,
0.0465087890625,
0.020782470703125,
0.039093017578125,
0.02740478515625,
-0.0166778564453125,
0.08953857421875,
0.11138916015625,
0.01702880859375,
0.08294677734375,
0.005641937255859375,
-0.09808349609375,
-0.00135040283203125,
-0.041412353515625,
-0.02679443359375,
-0.024383544921875,
0.056060791015625,
0.03314208984375,
0.01538848876953125,
-0.0182037353515625,
0.01097869873046875,
0.007965087890625,
-0.01222991943359375,
-0.00920867919921875,
0.0189361572265625,
-0.032012939453125,
-0.0197906494140625,
-0.01354217529296875,
-0.0234375,
-0.0097503662109375,
-0.0130462646484375,
-0.03173828125,
0.0157623291015625,
0.0005521774291992188,
-0.01088714599609375,
-0.021270751953125,
0.03485107421875,
0.0128936767578125,
-0.0204925537109375,
0.0102081298828125,
-0.036468505859375,
0.016387939453125,
0.005084991455078125,
-0.045166015625,
-0.01030731201171875,
0.036468505859375,
-0.049041748046875,
0.01003265380859375,
0.0007009506225585938,
-0.01273345947265625,
-0.05316162109375,
0.022125244140625,
-0.0009975433349609375,
0.0212554931640625,
-0.013580322265625,
0.0149383544921875,
-0.024566650390625,
0.060638427734375,
0.0035247802734375,
0.04150390625,
-0.03778076171875,
-0.0423583984375,
-0.031524658203125,
0.0207061767578125,
-0.046295166015625,
0.0290374755859375,
-0.000812530517578125,
-0.0191650390625,
-0.00274658203125,
-0.01206207275390625,
-0.007541656494140625,
-0.05828857421875,
0.01181793212890625,
-0.042236328125,
0.00392913818359375,
0.0169525146484375
] |
9c04cea99e5dc620829d010bfbb1c6d48bf5e855
|
Wordpress Stackexchange
Q: Has anyone successfully integrated qtranslate with custom metaboxes? I followed this tutorial to create custom metaboxes.
It seems like qtranslate enables you to use shortcodes almost everywhere.
For example:
Post titles:
<!--:en-->Cheng Feng Enterprises<!--:--><!--:zh-->鄭峰企業<!--:--><!--:es-->Cheng Feng Compania<!--:-->
Widgets:
[:en]My name is Alex Chen.
I provide Spanish-English-Chinese
translation services in Taiwan.
<a href="mailto:[email protected]"><strong>I'm available for hire</strong></a>.
[:zh]我的名字是亞歷陳。
我提供西班牙語 - 英語 - 中國
在台灣的翻譯服務。
<a href="mailto:[email protected]"><strong>我可供租用</strong></a>.
None of these methods work for custom metaboxes.
Has anyone successfully integrated qtranslate with custom metaboxes?
A: <?php
$meta = get_post_meta( $post->ID, 'Meta', true );
$lan = qtrans_getLanguage();
$meta_lan = qtrans_use( $lan, $meta, true );
echo $meta_lan;
?>
then enter your custom field data using the qtranslate comments:
<!--:ca-->CA<!--:--><!--:es-->ES<!--:--><!--:en-->EN<!--:-->
|
Q: Has anyone successfully integrated qtranslate with custom metaboxes? I followed this tutorial to create custom metaboxes.
It seems like qtranslate enables you to use shortcodes almost everywhere.
For example:
Post titles:
<!--:en-->Cheng Feng Enterprises<!--:--><!--:zh-->鄭峰企業<!--:--><!--:es-->Cheng Feng Compania<!--:-->
Widgets:
[:en]My name is Alex Chen.
I provide Spanish-English-Chinese
translation services in Taiwan.
<a href="mailto:[email protected]"><strong>I'm available for hire</strong></a>.
[:zh]我的名字是亞歷陳。
我提供西班牙語 - 英語 - 中國
在台灣的翻譯服務。
<a href="mailto:[email protected]"><strong>我可供租用</strong></a>.
None of these methods work for custom metaboxes.
Has anyone successfully integrated qtranslate with custom metaboxes?
A: <?php
$meta = get_post_meta( $post->ID, 'Meta', true );
$lan = qtrans_getLanguage();
$meta_lan = qtrans_use( $lan, $meta, true );
echo $meta_lan;
?>
then enter your custom field data using the qtranslate comments:
<!--:ca-->CA<!--:--><!--:es-->ES<!--:--><!--:en-->EN<!--:-->
A: In the output of your metabox in the page you want this to appear in you should wrap it in __().
Maybe something like this:
echo __( get_post_meta( get_the_ID(), 'your_field' ) );
|
wordpress
|
{
"language": "en",
"length": 146,
"provenance": "stackexchange_00019.jsonl.gz:411964",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/25052"
}
|
[
-0.01419830322265625,
-0.0237274169921875,
0.01561737060546875,
0.030853271484375,
-0.0374755859375,
-0.00658416748046875,
0.0185089111328125,
-0.018646240234375,
0.0208892822265625,
0.051849365234375,
0.0214080810546875,
-0.035186767578125,
0.0233306884765625,
-0.037322998046875,
-0.0552978515625,
-0.0057373046875,
0.016876220703125,
0.01232147216796875,
0.015960693359375,
-0.0229644775390625,
-0.0054931640625,
-0.024261474609375,
-0.0146331787109375,
0.01105499267578125,
0.0005388259887695312,
-0.06866455078125,
0.08135986328125,
-0.0302276611328125,
-0.017852783203125,
-0.034088134765625,
0.0189208984375,
0.05340576171875,
0.0233917236328125,
0.0235748291015625,
-0.034912109375,
-0.0174560546875,
-0.04052734375,
0.0204010009765625,
-0.03448486328125,
0.0191802978515625,
0.01149749755859375,
-0.006122589111328125,
0.003894805908203125,
0.0121002197265625,
-0.0147247314453125,
-0.017120361328125,
0.01346588134765625,
-0.01348114013671875,
0.027191162109375,
0.0633544921875,
0.014678955078125,
-0.01715087890625,
0.00885772705078125,
-0.00954437255859375,
-0.0194244384765625,
-0.0570068359375,
-0.0408935546875,
0.01221466064453125,
0.037506103515625,
0.021026611328125,
-0.005855560302734375,
-0.01580810546875,
0.005451202392578125,
-0.0222015380859375,
-0.0207672119140625,
-0.0021610260009765625,
7.152557373046875e-7,
0.018798828125,
0.01038360595703125,
-0.036346435546875,
-0.0056915283203125,
0.006931304931640625,
0.031646728515625,
-0.0216217041015625,
-0.012847900390625,
0.00914764404296875,
-0.04296875,
-0.03204345703125,
0.039581298828125,
-0.026763916015625,
0.06341552734375,
0.036956787109375,
0.01004791259765625,
-0.01520538330078125,
0.032470703125,
0.0069732666015625,
-0.0245513916015625,
-0.0330810546875,
-0.00405120849609375,
-0.04388427734375,
0.00026607513427734375,
-0.0850830078125,
-0.0601806640625,
0.0413818359375,
0.045196533203125,
-0.059326171875,
0.0228424072265625,
0.048919677734375,
-0.0251922607421875,
-0.004589080810546875,
-0.0180816650390625,
-0.0192108154296875,
0.01061248779296875,
-0.0251617431640625,
0.035552978515625,
-0.0175933837890625,
-0.0548095703125,
-0.03515625,
0.062042236328125,
0.059356689453125,
-0.003643035888671875,
0.001224517822265625,
-0.019775390625,
-0.0183563232421875,
-0.0044403076171875,
0.040008544921875,
-0.03839111328125,
0.0280303955078125,
-0.0018825531005859375,
0.03204345703125,
0.0167694091796875,
0.005950927734375,
0.04913330078125,
-0.033477783203125,
0.0173187255859375,
-0.004596710205078125,
-0.0364990234375,
-0.04852294921875,
-0.003086090087890625,
0.01702880859375,
-0.01212310791015625,
-0.004764556884765625,
0.0209197998046875,
0.03369140625,
-0.0035724639892578125,
-0.016143798828125,
0.0350341796875,
0.016448974609375,
0.01995849609375,
-0.0233306884765625,
0.047393798828125,
-0.00875091552734375,
-0.005279541015625,
0.03277587890625,
-0.047393798828125,
0.02764892578125,
0.01371002197265625,
-0.0017423629760742188,
-0.0143280029296875,
-0.0858154296875,
-0.0214996337890625,
-0.0213165283203125,
0.03399658203125,
0.00711822509765625,
-0.056884765625,
0.022796630859375,
0.031341552734375,
-0.0265960693359375,
-0.049072265625,
-0.04852294921875,
-0.0299530029296875,
-0.01091766357421875,
0.030059814453125,
-0.02923583984375,
-0.009918212890625,
0.00469207763671875,
0.0010128021240234375,
0.0141448974609375,
0.01715087890625,
0.0288543701171875,
0.027679443359375,
0.0217437744140625,
-0.04461669921875,
-0.005672454833984375,
-0.001728057861328125,
-0.0210418701171875,
-0.0094757080078125,
0.0546875,
0.00403594970703125,
-0.0102691650390625,
0.005916595458984375,
-0.0404052734375,
0.045135498046875,
0.0014657974243164062,
-0.031341552734375,
0.0058441162109375,
0.0148773193359375,
0.06781005859375,
0.0272369384765625,
0.016876220703125,
-0.0013189315795898438,
-0.0267486572265625,
-0.043548583984375,
-0.0036792755126953125,
-0.0066070556640625,
-0.00402069091796875,
-0.0052337646484375,
0.0017757415771484375,
0.005840301513671875,
-0.001678466796875,
-0.0124053955078125,
-0.0347900390625,
0.026397705078125,
0.01413726806640625,
-0.029083251953125,
0.007720947265625,
-0.03839111328125,
0.033721923828125,
0.015289306640625,
-0.004299163818359375,
0.006561279296875,
0.0008440017700195312,
-0.0069122314453125,
-0.019195556640625,
-0.0311279296875,
0.030364990234375,
0.002391815185546875,
0.06549072265625,
0.0186767578125,
0.02105712890625,
0.043853759765625,
-0.05126953125,
0.041351318359375,
0.0224761962890625,
-0.019744873046875,
-0.002597808837890625,
-0.003887176513671875,
0.006710052490234375,
0.00337982177734375,
0.00421142578125,
0.0435791015625,
0.01143646240234375,
-0.027862548828125,
-0.06817626953125,
-0.048095703125,
0.0219879150390625,
0.02093505859375,
0.006061553955078125,
-0.0102691650390625,
0.02532958984375,
0.044830322265625,
0.0192718505859375,
-0.007717132568359375,
-0.0245819091796875,
0.019805908203125,
-0.041595458984375,
0.0063629150390625,
-0.0240936279296875,
0.003147125244140625,
0.0960693359375,
-0.04998779296875,
0.0439453125,
-0.0105743408203125,
-0.0235748291015625,
-0.004131317138671875,
0.047637939453125,
-0.040008544921875,
-0.06304931640625,
0.04290771484375,
-0.0255889892578125,
0.024078369140625,
-0.041961669921875,
-0.041229248046875,
0.00017523765563964844,
0.060089111328125,
0.0013189315795898438,
0.048797607421875,
0.0304412841796875,
-0.02374267578125,
0.01485443115234375,
0.00629425048828125,
-0.011199951171875,
0.01042938232421875,
-0.016021728515625,
0.0026531219482421875,
0.00589752197265625,
-0.0355224609375,
0.0026988983154296875,
0.0341796875,
-0.0061492919921875,
0.01611328125,
0.0374755859375,
-0.00467681884765625,
-0.020294189453125,
0.024627685546875,
-0.0321044921875,
-0.0268096923828125,
-0.00896453857421875,
-0.012542724609375,
-0.01386260986328125,
-0.00140380859375,
0.0268707275390625,
-0.028228759765625,
0.03131103515625,
0.0224151611328125,
-0.0133819580078125,
0.041839599609375,
-0.03173828125,
0.047698974609375,
-0.0228729248046875,
0.007579803466796875,
0.05126953125,
-0.004047393798828125,
-0.01052093505859375,
-0.0018768310546875,
0.0029811859130859375,
-0.016998291015625,
0.033050537109375,
0.012908935546875,
-0.045135498046875,
0.017059326171875,
0.0089263916015625,
0.007198333740234375,
0.004009246826171875,
-0.030548095703125,
-0.042083740234375,
-0.027435302734375,
0.0024356842041015625,
-0.0733642578125,
-0.03350830078125,
0.06854248046875,
-0.00786590576171875,
-0.0138092041015625,
-0.0124664306640625,
-0.02154541015625,
-0.0086822509765625,
-0.0027027130126953125,
-0.02392578125,
-0.010498046875,
0.00002491474151611328,
0.0003323554992675781,
-0.04071044921875,
-0.03912353515625,
-0.061859130859375,
0.007648468017578125,
-0.003276824951171875,
0.0076446533203125,
-0.0028553009033203125,
0.00835418701171875,
-0.01168060302734375,
0.037628173828125,
0.06085205078125,
-0.00928497314453125,
0.0211181640625,
0.01239776611328125,
-0.0249176025390625,
-0.0000769495964050293,
-0.00341796875,
-0.03118896484375,
0.025604248046875,
-0.015472412109375,
-0.0033283233642578125,
0.0182952880859375,
0.034576416015625,
0.04888916015625,
-0.03656005859375,
-0.03900146484375,
0.05755615234375,
0.0313720703125,
-0.0142974853515625,
-0.01104736328125,
0.01739501953125,
-0.0267333984375,
-0.020721435546875,
-0.0286102294921875,
0.0019350051879882812,
0.006565093994140625,
0.0357666015625,
0.0010385513305664062,
0.01512908935546875,
0.0439453125,
-0.0022754669189453125,
-0.001781463623046875,
-0.015899658203125,
-0.00980377197265625,
-0.01885986328125,
-0.0063629150390625,
-0.01812744140625,
0.042816162109375,
0.0007114410400390625,
0.0278778076171875,
-0.01104736328125,
0.023162841796875,
-0.01096343994140625,
-0.05731201171875,
0.06591796875,
-0.016326904296875,
0.00440216064453125,
-0.0228424072265625,
-0.036865234375,
-0.004852294921875,
0.0692138671875,
-0.035858154296875,
-0.011138916015625,
0.01171875,
-0.006626129150390625,
-0.028076171875,
0.0276031494140625,
-0.0660400390625,
0.002826690673828125,
-0.06829833984375,
0.0157928466796875,
-0.00019216537475585938,
-0.017425537109375,
-0.0119781494140625,
-0.0004134178161621094,
-0.031219482421875,
-0.0310211181640625,
0.0440673828125,
0.01161956787109375,
0.01678466796875,
-0.0173187255859375,
0.042266845703125,
-0.05322265625,
-0.02642822265625,
0.01480865478515625,
-0.0750732421875,
0.005992889404296875,
-0.05279541015625,
0.0251312255859375,
0.0040130615234375,
-0.005374908447265625,
-0.050018310546875,
0.0203704833984375,
0.0268096923828125,
0.03228759765625,
-0.005916595458984375,
0.0008482933044433594,
0.007053375244140625,
0.0006189346313476562,
0.0205078125,
-0.01348114013671875,
0.013763427734375,
0.044281005859375,
-0.03485107421875,
0.08258056640625,
0.00487518310546875,
-0.0087738037109375,
0.045745849609375,
-0.070068359375,
-0.0289459228515625,
-0.04644775390625,
-0.03253173828125,
0.01303863525390625,
-0.006595611572265625,
-0.015167236328125,
-0.07232666015625,
-0.033721923828125,
0.0032787322998046875,
0.043914794921875,
-0.03460693359375,
0.0201568603515625,
0.0041961669921875,
0.0171966552734375,
-0.038848876953125,
-0.06964111328125,
0.0079498291015625,
0.0257568359375,
-0.0028476715087890625,
0.041839599609375,
0.034210205078125,
-0.02044677734375,
0.068359375,
-0.0096893310546875,
0.03350830078125,
0.00384521484375,
0.0167999267578125,
0.0152130126953125,
0.01251983642578125,
-0.0016317367553710938,
0.0291900634765625,
-0.046539306640625,
0.00815582275390625,
0.0150146484375,
0.00007545948028564453,
-0.007465362548828125,
0.0218353271484375,
-0.0004677772521972656,
0.0003516674041748047,
-0.0159454345703125,
-0.039276123046875,
0.0189361572265625,
-0.007213592529296875,
-0.0128021240234375,
-0.016357421875,
0.0209503173828125,
-0.0188751220703125,
-0.01134490966796875,
0.01922607421875,
0.023681640625,
-0.01447296142578125,
0.0174560546875,
0.018402099609375,
0.045196533203125,
0.00949859619140625,
0.01617431640625,
-0.003971099853515625,
0.05364990234375,
-0.0012149810791015625,
-0.03741455078125,
-0.005527496337890625,
-0.004497528076171875,
-0.0006961822509765625,
0.004795074462890625,
0.0227508544921875,
-0.0011615753173828125,
0.060089111328125,
-0.01300048828125,
0.019287109375,
0.060791015625,
0.0266571044921875,
-0.0274658203125,
-0.047393798828125,
-0.01271820068359375,
-0.0231781005859375,
-0.055389404296875,
0.083251953125,
-0.09552001953125,
0.041778564453125,
0.0257110595703125,
0.0160675048828125,
0.0252685546875,
0.04608154296875,
0.0109405517578125,
-0.0281524658203125,
-0.0204010009765625,
0.04693603515625,
0.0016450881958007812,
-0.00933837890625,
0.027252197265625,
0.01190948486328125,
0.04193115234375,
0.0184478759765625,
-0.0222625732421875,
-0.006519317626953125,
-0.06390380859375,
-0.029876708984375,
0.004093170166015625,
0.0114898681640625,
-0.0307159423828125,
0.0009179115295410156,
-0.0205841064453125,
-0.01849365234375,
0.01175689697265625,
-0.00484466552734375,
0.0240478515625,
-0.03009033203125,
0.0237579345703125,
-0.029510498046875,
0.0251312255859375,
-0.0253753662109375,
-0.026092529296875,
0.027923583984375,
-0.004283905029296875,
-0.0109405517578125,
0.017608642578125,
-0.0035686492919921875,
-0.0025386810302734375,
0.0035724639892578125,
0.0135498046875,
-0.055511474609375,
-0.0115814208984375,
-0.007030487060546875,
0.052947998046875,
-0.0280609130859375,
0.035552978515625,
0.00804901123046875,
0.00318145751953125,
0.0638427734375,
-0.033599853515625,
-0.02142333984375,
-0.019805908203125,
0.0199737548828125,
-0.0283355712890625,
0.0321044921875,
-0.015655517578125,
0.0208282470703125,
0.0252227783203125,
0.00643157958984375,
-0.017547607421875,
-0.00800323486328125,
0.019561767578125,
0.0005393028259277344,
0.05426025390625,
-0.01425933837890625,
0.071044921875,
0.003498077392578125,
0.053924560546875,
0.0204925537109375,
0.0518798828125,
0.00499725341796875,
-0.0187225341796875,
0.0130767822265625,
-0.0250701904296875,
-0.04376220703125,
-0.018402099609375,
-0.0019741058349609375,
0.0355224609375,
0.04901123046875,
-0.005115509033203125,
0.0233917236328125,
-0.0241851806640625,
0.003139495849609375,
-0.01062774658203125,
0.0296783447265625,
-0.05084228515625,
0.01097869873046875,
0.03656005859375,
-0.050048828125,
-0.001735687255859375,
0.00560760498046875,
-0.01012420654296875,
0.076416015625,
-0.0252838134765625,
0.051605224609375,
0.0214385986328125,
-0.051055908203125,
0.0255584716796875,
0.043212890625,
0.0357666015625,
0.061248779296875,
0.01904296875,
0.034759521484375,
0.00974273681640625,
-0.00908660888671875,
0.023529052734375,
0.038787841796875,
0.0357666015625,
-0.030792236328125,
-0.0257720947265625,
-0.0159912109375,
-0.0253448486328125,
0.033660888671875,
0.047637939453125,
0.06787109375,
-0.054443359375,
-0.005855560302734375,
0.02191162109375,
-0.0244140625,
-0.01275634765625,
0.0078125,
-0.00911712646484375,
-0.0151519775390625,
0.04217529296875,
-0.01389312744140625,
-0.02093505859375,
0.0244598388671875,
-0.002994537353515625,
0.006183624267578125,
-0.054718017578125,
0.0223236083984375,
0.005397796630859375,
-0.00672149658203125,
-0.0013074874877929688,
-0.00942230224609375,
-0.006595611572265625,
-0.0120086669921875,
-0.006114959716796875,
0.015106201171875,
-0.045745849609375,
-0.058807373046875,
0.00463104248046875,
-0.021728515625,
-0.00907135009765625,
0.037841796875,
0.0098419189453125,
0.052734375,
0.0731201171875,
-0.0113525390625,
0.009002685546875,
0.0277862548828125,
0.01415252685546875,
0.0033416748046875,
-0.033050537109375,
-0.00909423828125,
0.06500244140625,
0.02032470703125,
0.0224151611328125,
0.035797119140625,
-0.02392578125,
0.00664520263671875,
-0.01227569580078125,
0.016510009765625,
0.0017242431640625,
-0.038330078125,
0.01090240478515625,
-0.006679534912109375,
0.002506256103515625,
0.047210693359375,
-0.0200042724609375,
-0.0323486328125,
-0.0384521484375,
0.020172119140625,
-0.1041259765625,
-0.023956298828125,
0.01898193359375,
-0.0740966796875,
0.08087158203125,
0.038116455078125,
0.02130126953125,
-0.0141143798828125,
0.0239715576171875,
-0.02984619140625,
0.0013942718505859375,
-0.019622802734375,
0.0283203125,
-0.002685546875,
0.0283355712890625,
-0.041961669921875,
-0.0239715576171875,
0.0200347900390625,
0.06988525390625,
-0.01517486572265625,
0.0074615478515625,
0.011566162109375,
-0.0273284912109375,
-0.00945281982421875,
0.0526123046875,
-0.0009160041809082031,
-0.0198211669921875,
-0.01953125,
0.06561279296875,
0.053863525390625,
-0.07647705078125,
0.016326904296875,
0.036346435546875,
-0.035430908203125,
0.00004172325134277344,
0.00846099853515625,
-0.004150390625,
0.019439697265625,
0.034454345703125,
-0.0321044921875,
0.0185394287109375,
0.006290435791015625,
0.029083251953125,
0.0134735107421875,
0.032806396484375,
0.042449951171875,
-0.01099395751953125,
-0.0406494140625,
-0.0088958740234375,
0.039703369140625,
0.03472900390625,
0.05078125,
0.03375244140625,
0.0267181396484375,
0.0711669921875,
-0.034881591796875,
0.0274658203125,
-0.0022792816162109375,
-0.01776123046875,
0.001033782958984375,
-0.0135345458984375,
-0.004703521728515625,
-0.04437255859375,
0.05596923828125,
0.020355224609375,
-0.0012083053588867188,
-0.05377197265625,
-0.0660400390625,
-0.00516510009765625,
0.0014886856079101562,
0.038543701171875,
0.036895751953125,
0.05718994140625,
-0.00626373291015625,
0.00533294677734375,
0.0152740478515625,
0.01495361328125,
-0.0245208740234375,
0.0230560302734375,
0.00643157958984375,
0.038299560546875,
-0.0277862548828125,
0.018402099609375,
-0.060150146484375,
0.0264892578125,
0.0166778564453125,
0.074462890625,
0.0200042724609375,
0.0877685546875,
-0.00386810302734375,
-0.035491943359375,
0.0081787109375,
0.0034465789794921875,
0.022705078125,
-0.0128631591796875,
-0.02227783203125,
-0.017974853515625,
0.02911376953125,
0.0269012451171875,
0.03692626953125,
0.00841522216796875,
0.032928466796875,
0.0290985107421875,
-0.0026531219482421875,
0.006076812744140625,
0.0394287109375,
0.0004978179931640625,
0.01328277587890625,
-0.053375244140625,
0.018218994140625,
-0.00717926025390625,
-0.00392913818359375,
-0.023651123046875,
-0.00001436471939086914,
0.01788330078125,
0.0009984970092773438,
0.060882568359375,
0.0016584396362304688,
-0.0164642333984375,
0.0276031494140625,
-0.04010009765625,
0.08526611328125,
0.0010175704956054688,
-0.0133514404296875,
0.0243377685546875,
-0.0287628173828125,
-0.07440185546875,
0.02203369140625,
0.034759521484375,
-0.0113372802734375,
0.0071868896484375,
-0.02484130859375,
-0.037994384765625,
0.0233612060546875,
0.005146026611328125,
0.01898193359375,
0.05303955078125,
-0.013031005859375,
0.00412750244140625,
-0.01324462890625,
-0.0213470458984375,
0.0198974609375,
0.040985107421875,
-0.0183258056640625,
0.0194091796875,
-0.01544189453125,
0.01401519775390625,
-0.041412353515625,
-0.07379150390625,
0.023223876953125,
-0.0230255126953125,
0.025146484375,
0.0185546875,
-0.042694091796875,
-0.022186279296875,
0.04034423828125,
0.0054779052734375,
0.027557373046875,
-0.0389404296875,
-0.00839996337890625,
-0.033935546875,
0.00812530517578125,
-0.0035552978515625,
0.0269317626953125,
-0.04217529296875,
-0.040313720703125,
-0.07916259765625,
-0.0254669189453125,
0.039306640625,
0.00647735595703125,
-0.0062103271484375,
0.0209197998046875,
0.01184844970703125,
0.000675201416015625,
0.026458740234375,
-0.036376953125,
0.041290283203125,
0.03265380859375,
-0.024627685546875,
0.01560211181640625,
-0.029449462890625,
-0.0286102294921875,
0.0229034423828125,
-0.0010051727294921875,
-0.018524169921875,
-0.0027008056640625,
-0.0474853515625,
0.01277923583984375,
0.03521728515625,
0.043426513671875,
-0.0193634033203125,
0.0144805908203125,
0.0205535888671875,
-0.0113372802734375,
0.0130767822265625,
-0.014739990234375,
0.00913238525390625,
-0.015869140625,
-0.0148468017578125,
0.0260009765625,
-0.005397796630859375,
0.0034580230712890625,
-0.01317596435546875,
-0.037872314453125,
0.001956939697265625,
-0.017425537109375,
0.004119873046875,
-0.042022705078125,
0.0200042724609375,
-0.0186767578125,
-0.01532745361328125,
0.01047515869140625,
0.01065826416015625,
0.0609130859375,
-0.038299560546875,
-0.01326751708984375,
-0.018280029296875,
-0.01016998291015625,
-0.033782958984375,
0.01247406005859375,
0.027923583984375,
-0.01018524169921875,
-0.032073974609375,
0.027740478515625,
0.0156707763671875,
0.057403564453125,
0.0265655517578125,
-0.03765869140625,
0.0333251953125,
0.004062652587890625,
0.002285003662109375,
-0.08001708984375,
-0.01201629638671875,
-0.0753173828125,
0.0343017578125,
-0.01268768310546875,
0.006244659423828125,
0.008392333984375,
-0.028228759765625,
-0.07952880859375,
0.06256103515625,
-0.006916046142578125,
-0.031158447265625,
-0.0472412109375,
0.030059814453125,
0.01380157470703125,
0.007167816162109375,
-0.0013818740844726562,
-0.047821044921875,
-0.03631591796875,
-0.01338958740234375,
0.006824493408203125,
0.07049560546875,
0.00960540771484375,
0.02880859375,
0.01541900634765625,
0.005710601806640625,
-0.00818634033203125,
-0.010650634765625,
0.0191802978515625,
-0.0268707275390625,
0.004917144775390625,
-0.005710601806640625,
-0.07330322265625,
-0.07958984375,
-0.0186920166015625,
0.05712890625,
-0.0073394775390625,
-0.0870361328125,
-0.01019287109375,
-0.0085601806640625,
0.05609130859375,
0.034393310546875,
0.003021240234375,
-0.0438232421875,
0.058929443359375,
0.023590087890625,
0.0078277587890625,
0.00756072998046875,
-0.007083892822265625,
-0.0170745849609375,
-0.04620361328125,
-0.0047607421875,
0.00140380859375,
-0.0001208186149597168,
-0.0098724365234375,
0.01457977294921875,
-0.005420684814453125,
0.0458984375,
-0.0082855224609375,
-0.004138946533203125,
0.011962890625,
0.1373291015625,
-0.07403564453125,
-0.00323486328125,
0.034088134765625,
-0.0160064697265625,
0.073974609375,
0.01049041748046875,
-0.048583984375,
-0.00865936279296875,
0.0193328857421875,
0.0178070068359375,
-0.00310516357421875,
0.0199127197265625,
0.0184478759765625,
0.0303192138671875,
-0.0160064697265625,
0.0084228515625,
0.001987457275390625,
0.010040283203125,
-0.00952911376953125,
0.007167816162109375,
0.025482177734375,
-0.021728515625,
-0.05560302734375,
-0.048980712890625,
-0.01580810546875,
-0.030670166015625,
-0.0316162109375,
0.037109375,
0.0233917236328125,
-0.00983428955078125,
0.013153076171875,
-0.0173492431640625,
-0.01355743408203125,
-0.0238037109375,
0.0127105712890625,
0.00962066650390625,
-0.0115203857421875,
0.01898193359375
] |
649c5404f97ed2f8ce92f11424965d4ef05b17c7
|
Wordpress Stackexchange
Q: Can I enable/disable/hide plugins on a per-site basis in multisite? I'd like to be able to enable/disable plugins on a per-site basis in multisite, similar to the way that themes are per-site configurable. Is this currently possible?
(For instance, I don't particularly want people seeing the Domain Mapping plugin but want them to be able to enable Gravity Forms.)
A: Multisite Plugin Manager
The essential plugin for every multisite install! Manage plugin access permissions across your entire multisite network.
|
Q: Can I enable/disable/hide plugins on a per-site basis in multisite? I'd like to be able to enable/disable plugins on a per-site basis in multisite, similar to the way that themes are per-site configurable. Is this currently possible?
(For instance, I don't particularly want people seeing the Domain Mapping plugin but want them to be able to enable Gravity Forms.)
A: Multisite Plugin Manager
The essential plugin for every multisite install! Manage plugin access permissions across your entire multisite network.
A: Network activated plugins are hidden from the normal site plugins menu, though they are active regardless.
Plugins installed that are not network activated are visible to individual sites and can be activated on a per-site basis.
A: I use Exclude Plugins - http://wordpress.org/extend/plugins/exclude-plugins/ - It works.
|
wordpress
|
{
"language": "en",
"length": 127,
"provenance": "stackexchange_00019.jsonl.gz:411972",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/25068"
}
|
[
0.0576171875,
0.01374053955078125,
0.01151275634765625,
-0.002414703369140625,
-0.0031909942626953125,
-0.0263214111328125,
0.039398193359375,
-0.032440185546875,
0.034576416015625,
0.00556182861328125,
-0.025604248046875,
-0.006866455078125,
0.0153961181640625,
-0.03814697265625,
-0.0028400421142578125,
-0.0158843994140625,
0.0124969482421875,
0.0229034423828125,
-0.0027523040771484375,
-0.035247802734375,
0.0138092041015625,
-0.0057220458984375,
-0.04022216796875,
0.11004638671875,
0.026611328125,
-0.01338958740234375,
-0.00004881620407104492,
-0.003711700439453125,
0.02276611328125,
0.006786346435546875,
0.0218353271484375,
-0.01013946533203125,
0.0020904541015625,
-0.0025844573974609375,
0.034576416015625,
-0.0380859375,
0.016510009765625,
-0.006786346435546875,
0.0255279541015625,
0.0104217529296875,
0.04400634765625,
-0.02545166015625,
0.005268096923828125,
0.04766845703125,
0.0118255615234375,
-0.058837890625,
0.061920166015625,
-0.0576171875,
0.04400634765625,
-0.02313232421875,
0.008636474609375,
-0.00867462158203125,
0.030792236328125,
-0.06353759765625,
-0.03424072265625,
-0.03131103515625,
-0.0165557861328125,
0.041717529296875,
0.0298309326171875,
0.012542724609375,
-0.022216796875,
0.006488800048828125,
0.005275726318359375,
-0.0330810546875,
0.004375457763671875,
-0.0298309326171875,
-0.07647705078125,
0.0149688720703125,
-0.0577392578125,
0.0271453857421875,
0.08349609375,
-0.070068359375,
0.04327392578125,
0.00921630859375,
-0.0308380126953125,
-0.054443359375,
-0.014068603515625,
-0.010772705078125,
0.05633544921875,
-0.047515869140625,
0.0035495758056640625,
-0.0011816024780273438,
-0.005413055419921875,
-0.03533935546875,
0.0046234130859375,
-0.0012979507446289062,
-0.011444091796875,
-0.0002696514129638672,
-0.0281982421875,
0.0172576904296875,
-0.021026611328125,
0.032379150390625,
-0.042999267578125,
0.0206298828125,
0.005367279052734375,
0.00910186767578125,
0.049560546875,
0.03607177734375,
0.004283905029296875,
-0.02508544921875,
0.00008302927017211914,
-0.039459228515625,
-0.0261383056640625,
-0.006137847900390625,
-0.0222930908203125,
0.02008056640625,
0.00904083251953125,
0.03240966796875,
0.01166534423828125,
0.01467132568359375,
-0.0048370361328125,
0.0011882781982421875,
0.0247802734375,
-0.0000324249267578125,
0.00836181640625,
-0.00980377197265625,
-0.024078369140625,
0.04815673828125,
-0.0079498291015625,
0.03277587890625,
-0.0087432861328125,
0.038818359375,
-0.00984954833984375,
-0.0173797607421875,
-0.0330810546875,
-0.04150390625,
-0.0028247833251953125,
-0.0281219482421875,
-0.0523681640625,
0.0008635520935058594,
-0.0556640625,
0.01715087890625,
0.072998046875,
0.042816162109375,
0.01416015625,
-0.015228271484375,
0.00728607177734375,
0.03509521484375,
-0.0034198760986328125,
0.0002682209014892578,
0.01551055908203125,
-0.025482177734375,
0.00039696693420410156,
0.01146697998046875,
-0.012298583984375,
0.005657196044921875,
0.0169830322265625,
0.023345947265625,
-0.02154541015625,
-0.03045654296875,
0.0210723876953125,
-0.0239105224609375,
0.037628173828125,
-0.0229949951171875,
0.009613037109375,
-0.0316162109375,
0.033416748046875,
-0.0162811279296875,
-0.03466796875,
-0.0220489501953125,
0.0005106925964355469,
-0.00328826904296875,
0.0328369140625,
-0.0250091552734375,
-0.0234375,
-0.027740478515625,
-0.00888824462890625,
0.0093231201171875,
0.0205841064453125,
-0.013519287109375,
-0.03076171875,
-0.023712158203125,
0.0086212158203125,
0.0152587890625,
0.004322052001953125,
0.05670166015625,
-0.007266998291015625,
0.01430511474609375,
0.027374267578125,
0.01116180419921875,
-0.01367950439453125,
-0.010284423828125,
0.07550048828125,
-0.0179290771484375,
-0.05859375,
0.0301055908203125,
0.005336761474609375,
0.0263519287109375,
0.002887725830078125,
0.01305389404296875,
0.07476806640625,
0.040679931640625,
-0.01505279541015625,
-0.02813720703125,
0.041168212890625,
-0.011810302734375,
-0.0164642333984375,
-0.0181427001953125,
0.0239715576171875,
-0.0299835205078125,
0.0272216796875,
-0.028717041015625,
0.03533935546875,
0.009674072265625,
0.00431060791015625,
-0.0179901123046875,
0.0027065277099609375,
0.0035572052001953125,
0.034576416015625,
0.0298919677734375,
-0.0122222900390625,
0.01959228515625,
-0.0067596435546875,
-0.02294921875,
-0.02716064453125,
0.0233917236328125,
-0.01200103759765625,
0.04150390625,
0.0225982666015625,
0.007144927978515625,
0.027984619140625,
-0.01451873779296875,
0.0212860107421875,
-0.001979827880859375,
0.024078369140625,
-0.0028934478759765625,
-0.009368896484375,
-0.005451202392578125,
0.0421142578125,
0.01494598388671875,
0.02130126953125,
-0.0106353759765625,
-0.01299285888671875,
0.051544189453125,
0.0007882118225097656,
0.003902435302734375,
0.0194091796875,
-0.0269775390625,
0.0174102783203125,
0.011962890625,
0.031585693359375,
0.00775146484375,
-0.00756072998046875,
0.01513671875,
0.005340576171875,
-0.0308685302734375,
0.02069091796875,
-0.00151824951171875,
0.032440185546875,
0.01654052734375,
-0.049468994140625,
-0.014739990234375,
0.06658935546875,
0.0269012451171875,
0.00934600830078125,
0.050689697265625,
-0.0222930908203125,
-0.0169525146484375,
0.01122283935546875,
-0.022552490234375,
0.025787353515625,
0.003711700439453125,
-0.01412200927734375,
0.01082611083984375,
-0.0104217529296875,
0.0287017822265625,
0.0115203857421875,
0.01482391357421875,
-0.0242462158203125,
0.036895751953125,
0.0238189697265625,
-0.061492919921875,
0.007568359375,
0.02215576171875,
0.040313720703125,
-0.0015869140625,
-0.025848388671875,
-0.0301361083984375,
0.0212554931640625,
0.00972747802734375,
-0.0274505615234375,
-0.04937744140625,
-0.0670166015625,
-0.00982666015625,
0.042816162109375,
-0.0543212890625,
0.0036182403564453125,
0.003520965576171875,
-0.02947998046875,
-0.0250091552734375,
0.01317596435546875,
0.0032558441162109375,
-0.0278778076171875,
0.0028018951416015625,
0.00397491455078125,
-0.0283050537109375,
-0.021514892578125,
-0.07037353515625,
0.043121337890625,
-0.055694580078125,
0.0311279296875,
0.0721435546875,
-0.00463104248046875,
0.0029163360595703125,
0.0280303955078125,
-0.0223846435546875,
0.039947509765625,
0.0164794921875,
0.016876220703125,
0.042633056640625,
-0.09197998046875,
0.012603759765625,
-0.0035800933837890625,
-0.04644775390625,
-0.017364501953125,
-0.044677734375,
-0.0364990234375,
-0.03436279296875,
-0.08056640625,
0.000659942626953125,
-0.0209197998046875,
-0.049163818359375,
0.0205230712890625,
-0.00830078125,
-0.01397705078125,
-0.0220489501953125,
0.02618408203125,
0.019134521484375,
-0.046356201171875,
-0.033843994140625,
-0.01125335693359375,
-0.05169677734375,
-0.04278564453125,
-0.0036106109619140625,
0.0202484130859375,
0.024749755859375,
0.003143310546875,
0.05621337890625,
0.01222991943359375,
-0.0134124755859375,
0.02252197265625,
-0.0418701171875,
-0.005329132080078125,
-0.00028252601623535156,
-0.04052734375,
0.014923095703125,
0.02734375,
-0.0011310577392578125,
-0.040435791015625,
0.019927978515625,
0.00982666015625,
-0.0235748291015625,
0.026153564453125,
-0.0028743743896484375,
0.0256805419921875,
-0.043304443359375,
-0.03277587890625,
0.00044798851013183594,
-0.01377105712890625,
-0.035552978515625,
-0.0005750656127929688,
-0.047149658203125,
-0.0654296875,
0.01071929931640625,
0.0279693603515625,
0.00004887580871582031,
0.01509857177734375,
-0.0208587646484375,
0.0186920166015625,
-0.0059814453125,
0.0208892822265625,
-0.04986572265625,
0.013397216796875,
0.0095977783203125,
0.026123046875,
-0.0233154296875,
0.02294921875,
-0.022979736328125,
0.0217437744140625,
-0.004608154296875,
-0.0110626220703125,
-0.035369873046875,
0.061798095703125,
-0.050537109375,
-0.0028934478759765625,
0.031280517578125,
-0.00418853759765625,
-0.007709503173828125,
-0.0171051025390625,
-0.007495880126953125,
-0.0190277099609375,
0.03546142578125,
-0.05413818359375,
0.006195068359375,
-0.0131378173828125,
0.0037250518798828125,
0.005138397216796875,
-0.041107177734375,
-0.058197021484375,
-0.0112152099609375,
-0.08258056640625,
-0.00339508056640625,
-0.0246429443359375,
-0.024169921875,
0.0183868408203125,
-0.02630615234375,
-0.0099029541015625,
-0.045684814453125,
0.01776123046875,
-0.00240325927734375,
-0.02203369140625,
-0.00988006591796875,
-0.0211181640625,
-0.03472900390625,
-0.00850677490234375,
-0.013702392578125,
-0.048126220703125,
-0.003696441650390625,
-0.0380859375,
0.0458984375,
0.036102294921875,
-0.0191650390625,
-0.00946807861328125,
0.0148468017578125,
-0.0003230571746826172,
0.03143310546875,
-0.01336669921875,
0.00559234619140625,
-0.0186614990234375,
-0.0146636962890625,
-0.00652313232421875,
-0.0172576904296875,
-0.005962371826171875,
0.0240325927734375,
-0.002292633056640625,
0.0225372314453125,
-0.010986328125,
-0.047637939453125,
0.041259765625,
-0.042327880859375,
-0.006900787353515625,
0.003513336181640625,
-0.0670166015625,
-0.00843048095703125,
-0.07391357421875,
0.00846099853515625,
0.006191253662109375,
-0.035247802734375,
0.01861572265625,
-0.005039215087890625,
-0.003910064697265625,
0.0157623291015625,
0.057098388671875,
0.0086669921875,
-0.0105743408203125,
-0.06768798828125,
0.031463623046875,
0.0254364013671875,
0.0291290283203125,
0.0186614990234375,
0.0036029815673828125,
-0.017791748046875,
0.01448822021484375,
0.0147705078125,
-0.0084075927734375,
-0.0328369140625,
0.04736328125,
0.009307861328125,
-0.028289794921875,
0.0322265625,
0.00849151611328125,
0.0252532958984375,
0.035858154296875,
-0.00984954833984375,
-0.00778961181640625,
-0.039886474609375,
0.007724761962890625,
0.0189056396484375,
-0.018157958984375,
-0.0287017822265625,
-0.031982421875,
0.01074981689453125,
0.0164947509765625,
0.0219573974609375,
0.0465087890625,
-0.004611968994140625,
0.032257080078125,
-0.007701873779296875,
-0.0207977294921875,
0.01070404052734375,
0.0286102294921875,
-0.048095703125,
0.02264404296875,
-0.006381988525390625,
-0.0560302734375,
0.019805908203125,
-0.01953125,
0.090087890625,
-0.04791259765625,
-0.05706787109375,
-0.0082244873046875,
-0.036163330078125,
0.0014410018920898438,
0.06280517578125,
-0.0186309814453125,
0.02252197265625,
0.028717041015625,
-0.01739501953125,
-0.0013751983642578125,
-0.0146331787109375,
-0.0017833709716796875,
-0.03204345703125,
-0.05792236328125,
-0.02728271484375,
-0.015289306640625,
0.047607421875,
0.0224609375,
-0.044708251953125,
0.03857421875,
-0.01556396484375,
0.025970458984375,
0.04754638671875,
-0.037506103515625,
0.009033203125,
0.0352783203125,
-0.0160369873046875,
-0.046661376953125,
0.01450347900390625,
-0.003997802734375,
-0.029052734375,
0.0045623779296875,
0.02923583984375,
0.04095458984375,
0.0673828125,
-0.0135955810546875,
0.00653839111328125,
-0.04339599609375,
0.07757568359375,
0.01690673828125,
-0.09320068359375,
-0.0220489501953125,
0.036895751953125,
0.012298583984375,
-0.016693115234375,
-0.0002875328063964844,
-0.0577392578125,
-0.032562255859375,
-0.0394287109375,
0.015716552734375,
-0.0687255859375,
0.001270294189453125,
0.025299072265625,
-0.004100799560546875,
-0.0030002593994140625,
-0.006103515625,
-0.06939697265625,
-0.050262451171875,
0.00687408447265625,
0.0199127197265625,
-0.00893402099609375,
-0.00742340087890625,
0.0170745849609375,
-0.04302978515625,
0.00931549072265625,
0.0098876953125,
-0.0033588409423828125,
0.049407958984375,
0.0124053955078125,
-0.10015869140625,
0.0230712890625,
-0.061981201171875,
0.0011844635009765625,
-0.058990478515625,
-0.058807373046875,
-0.05816650390625,
-0.0206756591796875,
0.0279693603515625,
0.02752685546875,
-0.025787353515625,
-0.061767578125,
0.032012939453125,
-0.008819580078125,
-0.00658416748046875,
0.0168914794921875,
-0.0190582275390625,
0.041107177734375,
0.04107666015625,
0.042236328125,
0.033355712890625,
0.03948974609375,
0.0300750732421875,
-0.0438232421875,
-0.006805419921875,
-0.07672119140625,
-0.025848388671875,
0.005535125732421875,
-0.030975341796875,
0.059967041015625,
0.035888671875,
0.019805908203125,
0.0125885009765625,
-0.01422882080078125,
0.0032901763916015625,
-0.0244293212890625,
-0.0036525726318359375,
-0.038726806640625,
0.00710296630859375,
-0.037200927734375,
-0.0155792236328125,
0.001995086669921875,
-0.010894775390625,
-0.0704345703125,
0.0528564453125,
0.006565093994140625,
0.0380859375,
0.01200103759765625,
0.003360748291015625,
0.0294189453125,
0.001300811767578125,
-0.00533294677734375,
0.01561737060546875,
0.00888824462890625,
0.02069091796875,
-0.0007123947143554688,
-0.0156707763671875,
-0.0038299560546875,
-0.01263427734375,
-0.0086517333984375,
-0.02703857421875,
0.028076171875,
-0.0033130645751953125,
0.0036067962646484375,
0.0003619194030761719,
0.01403045654296875,
0.0240478515625,
-0.07537841796875,
0.024200439453125,
0.0013551712036132812,
0.0196075439453125,
-0.0013446807861328125,
-0.0107421875,
0.00867462158203125,
0.0160675048828125,
0.004261016845703125,
-0.00899505615234375,
-0.0206451416015625,
0.00786590576171875,
-0.005702972412109375,
-0.0265655517578125,
-0.007503509521484375,
0.0290985107421875,
0.027008056640625,
-0.004627227783203125,
0.022430419921875,
-0.01444244384765625,
0.052490234375,
0.001880645751953125,
-0.0261383056640625,
0.020782470703125,
-0.058563232421875,
-0.062164306640625,
-0.001369476318359375,
-0.02044677734375,
-0.0182342529296875,
0.0244903564453125,
-0.0032501220703125,
0.0083465576171875,
0.041778564453125,
-0.01161956787109375,
-0.0257720947265625,
0.031524658203125,
-0.043548583984375,
-0.037353515625,
-0.0148468017578125,
0.005672454833984375,
0.034698486328125,
-0.0213775634765625,
0.023712158203125,
-0.015777587890625,
-0.015655517578125,
-0.0243988037109375,
0.031646728515625,
0.0692138671875,
0.004680633544921875,
-0.02130126953125,
0.03936767578125,
0.0772705078125,
-0.0252685546875,
-0.03973388671875,
0.005275726318359375,
-0.0733642578125,
-0.007541656494140625,
-0.0126495361328125,
0.0123138427734375,
0.0017986297607421875,
-0.024261474609375,
-0.05218505859375,
0.1148681640625,
-0.00214385986328125,
0.03851318359375,
0.017333984375,
0.0478515625,
-0.0316162109375,
0.017059326171875,
0.0095367431640625,
0.018524169921875,
-0.033843994140625,
0.024749755859375,
-0.002063751220703125,
-0.0197296142578125,
0.013702392578125,
0.060760498046875,
0.046844482421875,
0.00887298583984375,
-0.041839599609375,
-0.0264129638671875,
0.04876708984375,
0.038238525390625,
0.0230865478515625,
0.047698974609375,
-0.01009368896484375,
0.05401611328125,
0.0019779205322265625,
-0.0248870849609375,
0.030426025390625,
-0.0167388916015625,
-0.055328369140625,
0.0213775634765625,
-0.0231170654296875,
-0.03948974609375,
-0.00148773193359375,
-0.0006809234619140625,
0.0212554931640625,
-0.005718231201171875,
-0.03662109375,
0.04150390625,
0.00213623046875,
-0.00775909423828125,
-0.024993896484375,
0.014862060546875,
0.05108642578125,
-0.0177001953125,
0.0300445556640625,
0.0033702850341796875,
-0.001495361328125,
0.0196685791015625,
0.0055389404296875,
-0.01079559326171875,
0.0165863037109375,
0.005863189697265625,
0.0242156982421875,
-0.0174102783203125,
-0.033172607421875,
-0.029327392578125,
0.01154327392578125,
-0.053497314453125,
-0.004741668701171875,
0.051422119140625,
-0.00727081298828125,
0.0043182373046875,
-0.06463623046875,
0.0161590576171875,
0.0087127685546875,
0.011474609375,
0.034942626953125,
0.0103302001953125,
0.02020263671875,
0.08203125,
0.0024585723876953125,
0.004505157470703125,
0.01409912109375,
0.0272064208984375,
0.0118255615234375,
0.006168365478515625,
-0.0322265625,
-0.0126800537109375,
-0.049652099609375,
0.014373779296875,
-0.00225830078125,
0.051055908203125,
0.045318603515625,
0.034637451171875,
-0.0015163421630859375,
-0.029693603515625,
-0.031005859375,
0.06939697265625,
0.00907135009765625,
0.03936767578125,
-0.0662841796875,
-0.06805419921875,
0.0287017822265625,
0.036346435546875,
0.013031005859375,
0.05499267578125,
0.046234130859375,
0.0552978515625,
0.0125579833984375,
-0.010345458984375,
0.0595703125,
-0.00020360946655273438,
0.03912353515625,
-0.04095458984375,
0.030609130859375,
0.00951385498046875,
-0.01568603515625,
-0.035064697265625,
0.0186004638671875,
0.041717529296875,
-0.0173187255859375,
0.01885986328125,
-0.0005269050598144531,
-0.002323150634765625,
0.036285400390625,
0.0214385986328125,
0.01383209228515625,
0.0244140625,
-0.06396484375,
0.0012769699096679688,
-0.05615234375,
-0.054290771484375,
0.00809478759765625,
0.037811279296875,
-0.03106689453125,
0.030364990234375,
0.0283966064453125,
0.004913330078125,
0.027130126953125,
-0.039794921875,
0.01145172119140625,
-0.03106689453125,
0.0247039794921875,
-0.00164794921875,
-0.0684814453125,
-0.01288604736328125,
-0.0290069580078125,
0.00426483154296875,
0.012176513671875,
0.094482421875,
-0.00431060791015625,
0.01401519775390625,
0.043701171875,
-0.009490966796875,
0.039306640625,
0.026580810546875,
-0.00991058349609375,
0.0086669921875,
0.018157958984375,
-0.015716552734375,
-0.03851318359375,
0.0256195068359375,
0.00455474853515625,
-0.031707763671875,
0.016143798828125,
-0.00496673583984375,
-0.0000718235969543457,
0.00804901123046875,
0.03558349609375,
-0.019866943359375,
-0.038330078125,
-0.06304931640625,
-0.0016260147094726562,
0.009735107421875,
0.0122833251953125,
-0.0154266357421875,
-0.00027108192443847656,
0.011383056640625,
-0.00823211669921875,
-0.0252227783203125,
0.0396728515625,
-0.03985595703125,
0.022369384765625,
-0.00653076171875,
-0.056854248046875,
0.01352691650390625,
0.0059661865234375,
-0.031524658203125,
0.037933349609375,
0.0236053466796875,
0.0284881591796875,
-0.039947509765625,
0.010955810546875,
0.027587890625,
0.0205841064453125,
-0.019866943359375,
0.01404571533203125,
0.0308685302734375,
-0.01611328125,
-0.00666046142578125,
-0.0166015625,
-0.038665771484375,
-0.0506591796875,
-0.00498199462890625,
0.0239105224609375,
-0.04278564453125,
-0.0271453857421875,
-0.0701904296875,
-0.005489349365234375,
0.04620361328125,
0.0171966552734375,
-0.07537841796875,
0.0244903564453125,
-0.0304107666015625,
0.05242919921875,
-0.006134033203125,
-0.062408447265625,
0.005462646484375,
-0.011077880859375,
0.00926971435546875,
0.017333984375,
-0.0245513916015625,
-0.01444244384765625,
0.032318115234375,
0.0263519287109375,
0.020843505859375,
-0.030731201171875,
0.0025348663330078125,
0.0447998046875,
0.032318115234375,
0.08587646484375,
0.002574920654296875,
-0.0009517669677734375,
-0.0160064697265625,
0.002689361572265625,
-0.0018157958984375,
-0.0321044921875,
0.01512908935546875,
-0.035247802734375,
-0.0504150390625,
-0.0604248046875,
-0.00371551513671875,
-0.0360107421875,
-0.07489013671875,
-0.05908203125,
0.028228759765625,
0.0005726814270019531,
-0.0278778076171875,
-0.01367950439453125,
-0.0217132568359375,
0.00919342041015625,
-0.00698089599609375,
-0.003955841064453125,
-0.0153961181640625,
-0.05718994140625,
0.0164794921875,
0.028045654296875,
0.01108551025390625,
-0.002811431884765625,
0.0227508544921875,
-0.018524169921875,
0.057891845703125,
0.039093017578125,
0.0016956329345703125,
0.01678466796875,
-0.032257080078125,
0.044281005859375,
0.031768798828125,
-0.0267791748046875,
0.0133056640625,
0.01373291015625,
-0.006084442138671875,
-0.0062103271484375,
-0.01470184326171875,
-0.045562744140625,
-0.005176544189453125,
0.078857421875,
0.08990478515625,
0.0303192138671875,
-0.054046630859375,
-0.0006470680236816406,
-0.037139892578125,
-0.04986572265625,
0.00713348388671875,
0.030609130859375,
-0.058074951171875,
0.0163726806640625,
0.02392578125,
-0.005542755126953125,
0.047027587890625,
-0.007904052734375,
-0.0034198760986328125,
-0.0017948150634765625,
0.0078125,
-0.0267181396484375,
-0.0273284912109375,
0.041473388671875,
-0.0011720657348632812,
-0.005863189697265625,
0.0216217041015625,
-0.0426025390625,
-0.010498046875,
0.0138702392578125,
-0.0125579833984375,
-0.03961181640625,
-0.004520416259765625,
-0.027618408203125,
0.023345947265625,
-0.0184783935546875,
0.04876708984375,
-0.01020050048828125,
0.005706787109375,
-0.032379150390625,
0.027008056640625,
0.01507568359375,
0.0482177734375,
-0.0177001953125,
0.036285400390625,
0.04156494140625,
0.0135498046875,
-0.0014858245849609375,
0.0223541259765625,
-0.03033447265625,
0.035919189453125,
-0.01192474365234375,
-0.01288604736328125,
0.005214691162109375,
-0.0067901611328125,
0.01141357421875,
0.0281524658203125,
0.00528717041015625,
-0.01020050048828125,
0.04229736328125,
-0.060455322265625,
0.004077911376953125,
0.005374908447265625
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.