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
|
---|---|---|---|---|---|
be550483db37fff42d3a6ae12e70bcf7b4aaaedf
|
Wordpress Stackexchange
Q: How to resolve scheduled posts that say "Missed Schedule" My future posts are getting "missed". They are not getting published on the time they should, and it says "Missed Schedule".
I read somewhere that it could be a server issue, so how can I fix it?
A: Added the following to my theme's functions.php:
define('WPMS_DELAY', 5); // Run the below cron task every X minutes
define('WPMS_OPTION', 'wp_missed_schedule');
function wpms_replacements_deactivate() {
delete_option(WPMS_OPTION);
}
register_deactivation_hook(__FILE__, 'wpms_replacements_deactivate');
// Run the following code on every request
function wpms_init() {
remove_action('publish_future_post', 'check_and_publish_future_post');
$last = get_option(WPMS_OPTION, false);
// Exit here if less than WPMS_DELAY minutes has passed since we last ran
if (($last !== false) && ($last > (time() - (WPMS_DELAY * 60))))
return;
// Find all posts whose scheduled time has passed and publish them
update_option(WPMS_OPTION, time());
global $wpdb;
$scheduledIDs = $wpdb->get_col("
SELECT `ID` FROM `{$wpdb->posts}`
WHERE (
((`post_date` > 0) && (`post_date` <= CURRENT_TIMESTAMP()))
OR ((`post_date_gmt` > 0) && (`post_date_gmt` <= UTC_TIMESTAMP()))
)
AND `post_status` = 'future'
LIMIT 0, 10
");
if (!count($scheduledIDs))
return;
foreach ($scheduledIDs as $scheduledID) {
if (!$scheduledID) continue;
wp_publish_post($scheduledID);
}
}
add_action('init', 'wpms_init', 0)
|
Q: How to resolve scheduled posts that say "Missed Schedule" My future posts are getting "missed". They are not getting published on the time they should, and it says "Missed Schedule".
I read somewhere that it could be a server issue, so how can I fix it?
A: Added the following to my theme's functions.php:
define('WPMS_DELAY', 5); // Run the below cron task every X minutes
define('WPMS_OPTION', 'wp_missed_schedule');
function wpms_replacements_deactivate() {
delete_option(WPMS_OPTION);
}
register_deactivation_hook(__FILE__, 'wpms_replacements_deactivate');
// Run the following code on every request
function wpms_init() {
remove_action('publish_future_post', 'check_and_publish_future_post');
$last = get_option(WPMS_OPTION, false);
// Exit here if less than WPMS_DELAY minutes has passed since we last ran
if (($last !== false) && ($last > (time() - (WPMS_DELAY * 60))))
return;
// Find all posts whose scheduled time has passed and publish them
update_option(WPMS_OPTION, time());
global $wpdb;
$scheduledIDs = $wpdb->get_col("
SELECT `ID` FROM `{$wpdb->posts}`
WHERE (
((`post_date` > 0) && (`post_date` <= CURRENT_TIMESTAMP()))
OR ((`post_date_gmt` > 0) && (`post_date_gmt` <= UTC_TIMESTAMP()))
)
AND `post_status` = 'future'
LIMIT 0, 10
");
if (!count($scheduledIDs))
return;
foreach ($scheduledIDs as $scheduledID) {
if (!$scheduledID) continue;
wp_publish_post($scheduledID);
}
}
add_action('init', 'wpms_init', 0)
|
wordpress
|
{
"language": "en",
"length": 185,
"provenance": "stackexchange_00019.jsonl.gz:408276",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13673"
}
|
[
0.06298828125,
-0.00536346435546875,
0.0019426345825195312,
-0.0259246826171875,
0.0186004638671875,
-0.026763916015625,
0.053680419921875,
-0.0249481201171875,
0.039093017578125,
-0.0277557373046875,
-0.06304931640625,
-0.00971221923828125,
-0.0204620361328125,
-0.0233612060546875,
-0.0011272430419921875,
-0.0362548828125,
0.044097900390625,
-0.022552490234375,
0.0244293212890625,
-0.0189666748046875,
0.0033626556396484375,
0.00823211669921875,
0.03607177734375,
0.06268310546875,
0.03314208984375,
0.0306549072265625,
0.008270263671875,
-0.0118408203125,
0.0266571044921875,
0.0007781982421875,
0.0277099609375,
-0.0281219482421875,
0.01305389404296875,
-0.005794525146484375,
0.00604248046875,
-0.038787841796875,
0.0303955078125,
-0.0157318115234375,
-0.017547607421875,
0.03271484375,
-0.0119171142578125,
0.0098724365234375,
0.060943603515625,
-0.02752685546875,
-0.0111846923828125,
-0.004886627197265625,
-0.00390625,
-0.0215911865234375,
0.0194244384765625,
0.052886962890625,
0.0169677734375,
0.011260986328125,
0.0164031982421875,
0.01885986328125,
-0.021026611328125,
-0.0227203369140625,
-0.011474609375,
0.059814453125,
0.037078857421875,
-0.01149749755859375,
-0.06536865234375,
0.005077362060546875,
0.0012149810791015625,
-0.041595458984375,
0.019622802734375,
0.0038471221923828125,
0.06494140625,
0.0234375,
-0.033294677734375,
0.0077056884765625,
0.01861572265625,
-0.0111083984375,
-0.01171112060546875,
0.021728515625,
-0.03973388671875,
-0.050262451171875,
0.0052947998046875,
-0.037811279296875,
0.00832366943359375,
0.032745361328125,
0.028228759765625,
0.0296173095703125,
-0.052978515625,
0.016632080078125,
0.0035190582275390625,
0.03192138671875,
-0.016571044921875,
-0.032806396484375,
-0.0516357421875,
-0.0007748603820800781,
-0.03271484375,
-0.001529693603515625,
-0.06988525390625,
0.00711822509765625,
0.0242767333984375,
-0.0189971923828125,
0.05975341796875,
0.10516357421875,
-0.05279541015625,
-0.0396728515625,
-0.036773681640625,
-0.00067138671875,
-0.056884765625,
-0.0227203369140625,
-0.004261016845703125,
0.04974365234375,
0.030303955078125,
0.055816650390625,
0.030242919921875,
0.0017499923706054688,
0.0027980804443359375,
-0.0021839141845703125,
0.0013227462768554688,
-0.0193023681640625,
-0.056976318359375,
-0.01309967041015625,
-0.01012420654296875,
-0.0254058837890625,
0.019805908203125,
-0.033966064453125,
-0.01287078857421875,
0.0020923614501953125,
-0.04522705078125,
-0.056732177734375,
0.0246429443359375,
-0.040496826171875,
-0.05047607421875,
0.06683349609375,
0.01403045654296875,
0.0894775390625,
-0.0577392578125,
-0.0169830322265625,
0.08489990234375,
-0.020965576171875,
0.00681304931640625,
-0.060577392578125,
0.0183868408203125,
-0.0238800048828125,
-0.01898193359375,
0.02630615234375,
-0.0081329345703125,
-0.039825439453125,
-0.00931549072265625,
-0.036041259765625,
0.0069122314453125,
0.0291290283203125,
0.0253143310546875,
-0.0081787109375,
-0.01491546630859375,
-0.0281829833984375,
0.001922607421875,
-0.032745361328125,
0.034698486328125,
0.01187896728515625,
-0.008270263671875,
-0.0019893646240234375,
0.045806884765625,
-0.03924560546875,
-0.01702880859375,
-0.04010009765625,
0.014892578125,
-0.00019347667694091797,
0.0004849433898925781,
-0.0474853515625,
-0.060791015625,
-0.01025390625,
-0.04815673828125,
0.00679779052734375,
0.025146484375,
0.0177459716796875,
0.02032470703125,
-0.0142822265625,
0.042327880859375,
0.00417327880859375,
-0.019744873046875,
0.00925445556640625,
0.00659942626953125,
-0.01148223876953125,
0.0301513671875,
-0.005084991455078125,
-0.04620361328125,
-0.0287628173828125,
0.0438232421875,
-0.0399169921875,
-0.02972412109375,
-0.0005316734313964844,
0.028533935546875,
0.051025390625,
0.0112762451171875,
0.02777099609375,
0.0109710693359375,
-0.00891876220703125,
-0.04876708984375,
0.031707763671875,
-0.029754638671875,
-0.0175018310546875,
-0.01812744140625,
0.0147857666015625,
-0.02337646484375,
0.0069580078125,
0.0036468505859375,
0.04302978515625,
-0.036102294921875,
0.006744384765625,
-0.088623046875,
0.03125,
-0.03240966796875,
0.03790283203125,
-0.025909423828125,
-0.043609619140625,
0.0271148681640625,
-0.01078033447265625,
-0.01812744140625,
-0.02569580078125,
-0.03533935546875,
0.03948974609375,
-0.06561279296875,
0.0217742919921875,
-0.038055419921875,
0.038177490234375,
-0.0599365234375,
-0.034088134765625,
-0.0458984375,
-0.02130126953125,
0.02349853515625,
-0.0283660888671875,
0.01131439208984375,
-0.00506591796875,
0.04534912109375,
0.019866943359375,
-0.0045623779296875,
-0.0221099853515625,
0.013214111328125,
0.007781982421875,
-0.032257080078125,
-0.0018987655639648438,
0.020294189453125,
-0.03472900390625,
0.00826263427734375,
0.0430908203125,
0.02008056640625,
0.0038166046142578125,
-0.005340576171875,
0.038055419921875,
0.0301666259765625,
-0.0316162109375,
0.005611419677734375,
0.0246429443359375,
-0.01042938232421875,
0.01044464111328125,
-0.0246124267578125,
0.0002772808074951172,
0.036346435546875,
-0.0127716064453125,
0.007717132568359375,
0.041717529296875,
0.01003265380859375,
-0.0173492431640625,
-0.009521484375,
0.017486572265625,
0.018768310546875,
-0.03399658203125,
-0.057098388671875,
0.00867462158203125,
0.022796630859375,
-0.0306854248046875,
0.0418701171875,
0.0196075439453125,
0.0214996337890625,
-0.041290283203125,
0.01132965087890625,
-0.046295166015625,
0.005916595458984375,
0.005428314208984375,
-0.0172271728515625,
0.02099609375,
-0.01141357421875,
0.012115478515625,
-0.00588226318359375,
-0.016082763671875,
-0.00888824462890625,
0.035186767578125,
-0.01580810546875,
-0.01427459716796875,
0.0034923553466796875,
-0.0187835693359375,
-0.01593017578125,
-0.0145721435546875,
0.038177490234375,
0.00777435302734375,
0.0268096923828125,
0.02301025390625,
-0.01491546630859375,
0.06524658203125,
0.0084075927734375,
-0.038482666015625,
-0.01421356201171875,
-0.0418701171875,
0.05450439453125,
-0.055084228515625,
-0.01052093505859375,
0.042755126953125,
0.007022857666015625,
-0.008514404296875,
-0.0006809234619140625,
0.0380859375,
0.048370361328125,
-0.0034542083740234375,
-0.01108551025390625,
0.0037078857421875,
-0.038787841796875,
-0.024658203125,
0.0109100341796875,
0.0828857421875,
-0.0440673828125,
-0.06781005859375,
0.0080108642578125,
0.00965118408203125,
-0.07281494140625,
-0.101318359375,
-0.049591064453125,
-0.0199127197265625,
0.00923919677734375,
-0.02703857421875,
0.01348876953125,
0.00876617431640625,
-0.035369873046875,
0.0192413330078125,
-0.025054931640625,
0.00003594160079956055,
-0.043548583984375,
-0.033538818359375,
-0.057373046875,
0.00823974609375,
-0.01146697998046875,
0.0209808349609375,
-0.002010345458984375,
0.10284423828125,
0.0264739990234375,
-0.08355712890625,
-0.0172882080078125,
0.0184478759765625,
-0.04931640625,
0.0229949951171875,
-0.006282806396484375,
0.01342010498046875,
-0.010467529296875,
0.004932403564453125,
0.045989990234375,
0.042022705078125,
-0.056488037109375,
-0.005596160888671875,
0.01103973388671875,
0.0340576171875,
0.03076171875,
0.03228759765625,
-0.0037097930908203125,
0.030670166015625,
0.034637451171875,
-0.01259613037109375,
-0.0022144317626953125,
-0.0210723876953125,
-0.01406097412109375,
0.031463623046875,
-0.00787353515625,
0.002590179443359375,
0.01611328125,
0.0128021240234375,
0.0237579345703125,
0.007556915283203125,
0.016845703125,
0.00569915771484375,
-0.01446533203125,
0.0170440673828125,
0.026885986328125,
-0.01605224609375,
0.016265869140625,
0.010498046875,
0.005706787109375,
-0.007053375244140625,
0.0389404296875,
-0.01413726806640625,
0.0088348388671875,
-0.07763671875,
-0.05718994140625,
0.033599853515625,
-0.01824951171875,
-0.033843994140625,
-0.0134124755859375,
-0.01438140869140625,
0.0167999267578125,
0.058929443359375,
-0.0162353515625,
-0.03033447265625,
-0.015838623046875,
0.0221710205078125,
-0.05267333984375,
-0.053955078125,
0.01447296142578125,
-0.004199981689453125,
-0.05535888671875,
0.01453399658203125,
-0.02410888671875,
-0.006256103515625,
-0.0156402587890625,
0.007289886474609375,
-0.02703857421875,
-0.04193115234375,
0.041839599609375,
0.0030117034912109375,
0.0281982421875,
0.0180511474609375,
0.00725555419921875,
0.01433563232421875,
-0.040679931640625,
-0.003787994384765625,
-0.0518798828125,
-0.0097198486328125,
-0.0267486572265625,
0.044219970703125,
0.040130615234375,
-0.03265380859375,
-0.007465362548828125,
0.01910400390625,
0.054962158203125,
0.031982421875,
0.0130767822265625,
-0.057830810546875,
0.042266845703125,
0.0232696533203125,
0.0294647216796875,
0.005695343017578125,
-0.004558563232421875,
0.0271148681640625,
-0.043304443359375,
0.006053924560546875,
-0.018310546875,
-0.0217132568359375,
0.042999267578125,
-0.052886962890625,
0.00896453857421875,
0.00763702392578125,
-0.0091552734375,
0.0224609375,
-0.0189056396484375,
-0.021148681640625,
-0.01433563232421875,
-0.0070343017578125,
0.05023193359375,
0.002124786376953125,
0.01285552978515625,
-0.01065826416015625,
0.048675537109375,
0.006465911865234375,
-0.041351318359375,
-0.01000213623046875,
-0.007476806640625,
0.05828857421875,
0.02777099609375,
-0.01056671142578125,
0.00957489013671875,
-0.03857421875,
0.0245819091796875,
0.03564453125,
-0.040802001953125,
0.0011348724365234375,
0.07415771484375,
0.01690673828125,
0.0060882568359375,
-0.029541015625,
-0.016815185546875,
0.0191192626953125,
0.0276031494140625,
-0.01407623291015625,
-0.004016876220703125,
0.0033740997314453125,
0.0311737060546875,
-0.02978515625,
0.021881103515625,
-0.0265960693359375,
-0.01096343994140625,
0.0108489990234375,
0.04052734375,
0.005779266357421875,
0.004489898681640625,
0.0132904052734375,
-0.0258026123046875,
0.0009937286376953125,
-0.0112457275390625,
-0.03900146484375,
0.002712249755859375,
-0.00537872314453125,
0.01904296875,
-0.004543304443359375,
-0.005817413330078125,
-0.0275115966796875,
-0.00789642333984375,
0.0286712646484375,
0.01103973388671875,
-0.018951416015625,
-0.0175628662109375,
0.00499725341796875,
-0.0311431884765625,
0.0006093978881835938,
-0.031494140625,
0.036651611328125,
0.08843994140625,
-0.0189666748046875,
0.00450897216796875,
0.005924224853515625,
0.055267333984375,
-0.03985595703125,
0.00827789306640625,
0.0259857177734375,
-0.0152587890625,
0.004146575927734375,
0.0572509765625,
0.0509033203125,
0.01110076904296875,
-0.042877197265625,
0.043212890625,
0.02484130859375,
0.0491943359375,
-0.0078887939453125,
-0.001312255859375,
-0.00045561790466308594,
0.035125732421875,
0.0003209114074707031,
-0.0167694091796875,
-0.01271820068359375,
-0.01200103759765625,
-0.0001131296157836914,
-0.0226287841796875,
-0.003269195556640625,
0.060028076171875,
0.0214385986328125,
-0.0180206298828125,
0.030303955078125,
0.060028076171875,
0.006328582763671875,
-0.0121917724609375,
0.03350830078125,
0.040496826171875,
0.03973388671875,
-0.0219573974609375,
0.0283203125,
-0.01206207275390625,
0.039093017578125,
-0.0028667449951171875,
0.02252197265625,
-0.022064208984375,
-0.0243072509765625,
0.0216827392578125,
-0.04376220703125,
-0.02117919921875,
-0.006916046142578125,
0.0298919677734375,
-0.033355712890625,
0.00461578369140625,
0.0333251953125,
-0.06805419921875,
0.00988006591796875,
-0.0286712646484375,
0.033477783203125,
-0.08258056640625,
0.0229034423828125,
0.0362548828125,
0.052886962890625,
-0.02703857421875,
-0.00846099853515625,
-0.0192718505859375,
-0.0218963623046875,
-0.06298828125,
-0.0247344970703125,
-0.051483154296875,
-0.00249481201171875,
0.05133056640625,
0.042236328125,
0.0060577392578125,
-0.0950927734375,
-0.042236328125,
-0.0185089111328125,
0.061279296875,
0.072265625,
-0.0108184814453125,
0.04400634765625,
0.013671875,
0.004329681396484375,
0.007343292236328125,
0.02020263671875,
-0.01419830322265625,
0.0019388198852539062,
0.00891876220703125,
-0.0298309326171875,
-0.0160980224609375,
-0.0214080810546875,
0.0025959014892578125,
0.0124053955078125,
0.00821685791015625,
-0.002552032470703125,
0.01387786865234375,
-0.0021495819091796875,
0.006870269775390625,
-0.00847625732421875,
0.01210784912109375,
0.0111236572265625,
-0.00930023193359375,
0.048187255859375,
-0.0421142578125,
-0.0013914108276367188,
-0.00673675537109375,
0.0377197265625,
0.00525665283203125,
-0.042266845703125,
-0.00847625732421875,
0.0009469985961914062,
-0.00817108154296875,
0.038177490234375,
0.06689453125,
0.019989013671875,
0.056671142578125,
0.01424407958984375,
0.0292205810546875,
0.00225067138671875,
0.021026611328125,
-0.04644775390625,
-0.003673553466796875,
0.055877685546875,
0.0195465087890625,
-0.030853271484375,
0.04779052734375,
-0.0184478759765625,
-0.00897216796875,
0.04046630859375,
0.01024627685546875,
-0.08123779296875,
0.01078033447265625,
-0.002292633056640625,
-0.00516510009765625,
0.01427459716796875,
-0.00909423828125,
0.0107269287109375,
-0.0177459716796875,
-0.002338409423828125,
0.0057830810546875,
-0.024169921875,
-0.0092315673828125,
0.0018949508666992188,
-0.01898193359375,
-0.05255126953125,
0.008148193359375,
0.01497650146484375,
-0.01537322998046875,
0.017974853515625,
0.00945281982421875,
0.000335693359375,
-0.047760009765625,
-0.004726409912109375,
0.014373779296875,
0.0010747909545898438,
-0.07122802734375,
0.035247802734375,
-0.01708984375,
0.0244903564453125,
0.0180816650390625,
-0.01367950439453125,
0.0231170654296875,
0.0234832763671875,
-0.016265869140625,
0.00201416015625,
-0.00295257568359375,
0.0038852691650390625,
-0.030059814453125,
-0.0292816162109375,
0.01611328125,
0.06396484375,
-0.02850341796875,
0.03375244140625,
0.0026760101318359375,
-0.0196533203125,
0.006412506103515625,
-0.033050537109375,
0.02801513671875,
-0.07037353515625,
0.009429931640625,
0.00899505615234375,
-0.0076446533203125,
0.016845703125,
0.022308349609375,
0.0234375,
-0.03338623046875,
-0.01024627685546875,
0.015869140625,
-0.01287841796875,
-0.003009796142578125,
0.015899658203125,
-0.0031909942626953125,
0.0650634765625,
-0.0041046142578125,
-0.044189453125,
0.0214385986328125,
0.034759521484375,
-0.04058837890625,
0.03009033203125,
-0.03692626953125,
0.056976318359375,
-0.047698974609375,
0.046234130859375,
-0.075439453125,
0.009124755859375,
0.00891876220703125,
0.0178985595703125,
0.061248779296875,
0.020111083984375,
-0.046356201171875,
-0.01056671142578125,
0.0166015625,
0.030120849609375,
-0.0014638900756835938,
0.048126220703125,
-0.0302276611328125,
0.012603759765625,
-0.0229339599609375,
-0.03466796875,
0.021270751953125,
-0.054931640625,
-0.06048583984375,
-0.0111236572265625,
-0.0032978057861328125,
-0.005859375,
0.01263427734375,
-0.042694091796875,
0.048126220703125,
-0.0189361572265625,
-0.0435791015625,
-0.035675048828125,
0.0308074951171875,
0.0157928466796875,
0.06304931640625,
-0.063232421875,
-0.0504150390625,
-0.0107574462890625,
0.0384521484375,
0.00821685791015625,
-0.01146697998046875,
0.036773681640625,
0.0242156982421875,
0.0246124267578125,
-0.03045654296875,
-0.020416259765625,
-0.01611328125,
0.01096343994140625,
0.032623291015625,
0.0279541015625,
0.020111083984375,
-0.0251617431640625,
0.0281219482421875,
0.0694580078125,
0.05340576171875,
-0.036163330078125,
-0.014678955078125,
0.0214996337890625,
0.00585174560546875,
-0.0260009765625,
-0.0218658447265625,
-0.014434814453125,
-0.07427978515625,
-0.045806884765625,
-0.00739288330078125,
-0.0010623931884765625,
0.037841796875,
-0.0024738311767578125,
0.01470947265625,
-0.0051422119140625,
-0.00852203369140625,
0.0018854141235351562,
-0.05413818359375,
-0.03485107421875,
0.032440185546875,
0.09185791015625,
0.04315185546875,
0.0168609619140625,
-0.0158233642578125,
-0.04449462890625,
0.035400390625,
-0.005931854248046875,
0.01345062255859375,
-0.058563232421875,
0.01348114013671875,
-0.04803466796875,
0.0128173828125,
0.00246429443359375,
0.004302978515625,
-0.01959228515625,
0.0165863037109375,
0.036529541015625,
-0.0218048095703125,
-0.0189056396484375,
0.0265350341796875,
-0.018341064453125,
-0.09393310546875,
0.0062103271484375,
-0.0307159423828125,
0.010528564453125,
0.0205841064453125,
0.028350830078125,
0.0885009765625,
-0.03802490234375,
-0.025177001953125,
0.0318603515625,
-0.0031604766845703125,
0.02667236328125,
0.0203399658203125,
0.0092926025390625,
-0.024200439453125,
-0.0015211105346679688,
-0.0543212890625,
-0.02972412109375,
-0.030517578125,
0.0027675628662109375,
0.019500732421875,
0.020660400390625,
-0.02294921875,
0.041961669921875,
0.0367431640625,
-0.01995849609375,
-0.0094451904296875,
0.01534271240234375,
0.0175018310546875,
-0.006732940673828125,
0.018157958984375,
0.0107574462890625,
-0.0201568603515625,
-0.03240966796875,
-0.01763916015625,
0.052734375,
0.0223388671875,
0.016326904296875,
-0.004917144775390625,
0.0236968994140625,
-0.01551055908203125,
0.024322509765625,
-0.053466796875,
-0.006694793701171875,
-0.020111083984375,
-0.036407470703125,
0.007781982421875,
0.012847900390625,
-0.029022216796875,
0.0002491474151611328,
0.0269317626953125,
-0.0201568603515625,
-0.003635406494140625,
-0.01125335693359375,
0.030853271484375,
-0.0030975341796875,
0.0037841796875,
-0.0107879638671875,
0.004474639892578125,
0.02044677734375,
0.00542449951171875,
0.02984619140625,
0.0217437744140625,
-0.00505828857421875,
0.04107666015625,
0.0220947265625,
-0.03289794921875,
0.041290283203125,
-0.0771484375,
0.06475830078125,
0.043365478515625,
-0.0218963623046875,
-0.00782012939453125,
0.003681182861328125,
0.00022101402282714844,
-0.0164947509765625,
0.036529541015625,
0.00255584716796875,
0.003864288330078125,
0.007198333740234375,
0.0032901763916015625,
0.0171661376953125,
0.0164794921875,
-0.032684326171875,
0.003025054931640625,
0.027801513671875,
-0.019378662109375,
0.0007581710815429688,
0.0017099380493164062,
-0.0026340484619140625,
-0.002429962158203125,
-0.02874755859375,
-0.00275421142578125,
-0.008880615234375,
-0.02825927734375,
-0.00962066650390625,
-0.0196990966796875,
0.0037479400634765625,
0.00531005859375,
-0.0247039794921875,
0.030120849609375,
-0.006977081298828125,
-0.00716400146484375,
-0.0167083740234375,
0.002635955810546875,
-0.018646240234375,
0.021453857421875,
-0.018096923828125,
-0.0364990234375,
-0.052093505859375,
0.031524658203125,
-0.05169677734375,
-0.039459228515625,
-0.0177154541015625,
0.028961181640625,
-0.02691650390625,
-0.078125,
-0.049591064453125,
-0.037261962890625,
-0.0214996337890625,
-0.039154052734375,
-0.0290985107421875,
0.003154754638671875,
0.01446533203125,
-0.00501251220703125,
0.0212249755859375,
-0.031707763671875,
-0.045440673828125,
0.0279083251953125,
-0.017669677734375,
0.007106781005859375,
-0.0199737548828125,
-0.0204620361328125,
0.08660888671875,
0.012237548828125,
-0.007175445556640625,
-0.031646728515625,
-0.0109405517578125,
0.001007080078125,
0.011138916015625,
0.001926422119140625,
-0.031402587890625,
-0.033050537109375,
0.0085906982421875,
0.0028743743896484375,
-0.00559234619140625,
0.0179901123046875,
0.0048980712890625,
-0.0662841796875,
-0.0009965896606445312,
-0.01904296875,
-0.01096343994140625,
0.0227203369140625,
0.0117034912109375,
0.006320953369140625,
0.031494140625,
-0.041748046875,
-0.0711669921875,
-0.035675048828125,
-0.01338958740234375,
-0.0206146240234375,
-0.01213836669921875,
-0.0430908203125,
-0.0172576904296875,
0.093505859375,
0.07745361328125,
0.0240325927734375,
-0.04461669921875,
0.01139068603515625,
-0.0286102294921875,
-0.057769775390625,
-0.006755828857421875,
0.006954193115234375,
-0.0279541015625,
0.006683349609375,
-0.01702880859375,
-0.027923583984375,
0.0238189697265625,
-0.01425933837890625,
-0.031005859375,
0.0230255126953125,
-0.0034332275390625,
-0.034332275390625,
-0.039794921875,
-0.0016241073608398438,
-0.0094451904296875,
-0.004497528076171875,
0.0005741119384765625,
-0.01198577880859375,
0.0185699462890625,
-0.0114593505859375,
0.035858154296875,
-0.016387939453125,
-0.0011358261108398438,
0.00872039794921875,
0.00896453857421875,
0.019683837890625,
-0.006832122802734375,
0.00838470458984375,
0.0010690689086914062,
0.0219879150390625,
-0.0034313201904296875,
-0.04095458984375,
-0.00457000732421875,
0.10223388671875,
-0.050994873046875,
-0.05169677734375,
0.018310546875,
-0.0034942626953125,
0.03460693359375,
0.0011091232299804688,
0.023895263671875,
0.0249481201171875,
-0.0155792236328125,
0.0313720703125,
-0.027374267578125,
0.0006628036499023438,
-0.01373291015625,
-0.0137786865234375,
-0.049285888671875,
0.0015764236450195312,
-0.056854248046875,
-0.0120086669921875,
0.0155487060546875
] |
8a954ee93a7ce6f9e6f716105e6c5d38b27b9742
|
Wordpress Stackexchange
Q: WordPress Hook for user register how can I tell WordPress, that if a user registers, it shall execute my function?
A: You can use user_register action hook which fires after a user has registered and passes $user_id as a variable:
add_action('user_register','my_function');
function my_function($user_id){
//do your stuff
}
|
Q: WordPress Hook for user register how can I tell WordPress, that if a user registers, it shall execute my function?
A: You can use user_register action hook which fires after a user has registered and passes $user_id as a variable:
add_action('user_register','my_function');
function my_function($user_id){
//do your stuff
}
|
wordpress
|
{
"language": "en",
"length": 48,
"provenance": "stackexchange_00019.jsonl.gz:408297",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13747"
}
|
[
0.06695556640625,
0.0273590087890625,
-0.01491546630859375,
-0.018585205078125,
0.02685546875,
-0.046051025390625,
0.016571044921875,
-0.046173095703125,
-0.004322052001953125,
0.0162200927734375,
-0.0278778076171875,
0.01349639892578125,
-0.0086212158203125,
-0.0162811279296875,
-0.0196533203125,
-0.03289794921875,
0.0194854736328125,
-0.0113067626953125,
-0.00010603666305541992,
-0.0224761962890625,
0.0037059783935546875,
0.003910064697265625,
0.040740966796875,
0.042816162109375,
0.045745849609375,
-0.0491943359375,
0.0478515625,
-0.0161285400390625,
0.03863525390625,
0.0066375732421875,
0.0278778076171875,
-0.0178985595703125,
-0.01904296875,
0.058685302734375,
-0.0198516845703125,
0.01148223876953125,
0.02459716796875,
0.03668212890625,
0.0304107666015625,
0.029998779296875,
0.0389404296875,
-0.01806640625,
-0.01432037353515625,
-0.01291656494140625,
-0.016510009765625,
-0.06842041015625,
0.07958984375,
-0.0024051666259765625,
0.004055023193359375,
0.0134735107421875,
0.023895263671875,
0.050537109375,
0.033538818359375,
-0.005565643310546875,
0.009429931640625,
0.03179931640625,
-0.037506103515625,
0.01123046875,
0.0244293212890625,
0.073974609375,
-0.0018787384033203125,
-0.00008654594421386719,
-0.01910400390625,
-0.08636474609375,
0.0130767822265625,
-0.00873565673828125,
-0.0207061767578125,
0.019439697265625,
-0.039031982421875,
0.012115478515625,
0.0178680419921875,
-0.0219573974609375,
-0.031219482421875,
0.02947998046875,
-0.0175323486328125,
-0.0171661376953125,
0.031524658203125,
-0.002597808837890625,
-0.00002968311309814453,
0.05902099609375,
-0.0423583984375,
-0.05169677734375,
-0.0243072509765625,
0.03179931640625,
-0.0601806640625,
0.032958984375,
-0.02294921875,
0.0121307373046875,
-0.035125732421875,
-0.05267333984375,
-0.020843505859375,
-0.00897216796875,
-0.03924560546875,
-0.0426025390625,
-0.0175018310546875,
-0.04376220703125,
0.0130157470703125,
0.028839111328125,
-0.0181884765625,
-0.00848388671875,
0.019439697265625,
-0.0269775390625,
0.0026874542236328125,
-0.0208740234375,
-0.0019550323486328125,
0.1063232421875,
0.02667236328125,
0.0146942138671875,
-0.019989013671875,
-0.0147552490234375,
0.00994873046875,
-0.0545654296875,
-0.0247344970703125,
0.01187896728515625,
-0.034637451171875,
-0.006015777587890625,
-0.057281494140625,
-0.0032215118408203125,
-0.031036376953125,
0.0124664306640625,
0.0126495361328125,
0.013519287109375,
0.05255126953125,
0.0003769397735595703,
-0.0130767822265625,
-0.00214385986328125,
-0.02862548828125,
-0.055450439453125,
-0.00372314453125,
0.0178985595703125,
-0.004428863525390625,
0.024261474609375,
0.0200347900390625,
-0.00962066650390625,
-0.038726806640625,
-0.0135040283203125,
0.027008056640625,
-0.0166473388671875,
-0.0277099609375,
0.03924560546875,
-0.0261688232421875,
-0.0682373046875,
-0.0391845703125,
-0.012298583984375,
0.050933837890625,
0.023590087890625,
0.022735595703125,
-0.01003265380859375,
0.006427764892578125,
0.00745391845703125,
-0.00801849365234375,
-0.0360107421875,
-0.0230865478515625,
0.041473388671875,
0.03582763671875,
0.05035400390625,
-0.00911712646484375,
0.0263214111328125,
0.005218505859375,
0.05059814453125,
0.0149383544921875,
-0.009002685546875,
-0.0036334991455078125,
-0.01380157470703125,
-0.047515869140625,
0.007160186767578125,
-0.0246429443359375,
-0.0048828125,
0.03216552734375,
0.0254058837890625,
0.053070068359375,
0.0201568603515625,
0.04266357421875,
0.00600433349609375,
-0.007511138916015625,
-0.024688720703125,
-0.01375579833984375,
0.046905517578125,
0.0199432373046875,
0.0026988983154296875,
-0.01503753662109375,
-0.038818359375,
0.06512451171875,
-0.025299072265625,
-0.036865234375,
0.054473876953125,
0.0192718505859375,
0.0682373046875,
-0.004177093505859375,
0.0177001953125,
-0.0084228515625,
0.04156494140625,
-0.0016870498657226562,
-0.0203094482421875,
-0.0183868408203125,
-0.0204010009765625,
0.04010009765625,
-0.0038299560546875,
-0.01198577880859375,
0.0217742919921875,
0.042327880859375,
-0.00044155120849609375,
0.0033283233642578125,
-0.0298614501953125,
-0.0753173828125,
-0.007312774658203125,
-0.0187530517578125,
0.0325927734375,
0.03125,
0.03289794921875,
-0.008331298828125,
0.0235595703125,
-0.015625,
-0.0203704833984375,
-0.033203125,
0.0239715576171875,
-0.053253173828125,
0.050750732421875,
0.0011129379272460938,
0.0667724609375,
0.006374359130859375,
-0.033355712890625,
0.0206756591796875,
-0.042144775390625,
0.0162506103515625,
-0.020599365234375,
-0.0221405029296875,
-0.029541015625,
-0.034332275390625,
-0.0095672607421875,
-0.050567626953125,
0.0723876953125,
-0.013946533203125,
-0.01128387451171875,
-0.035491943359375,
-0.00495147705078125,
-0.024658203125,
-0.04229736328125,
0.0005197525024414062,
0.04254150390625,
0.0285797119140625,
0.0175628662109375,
0.01329803466796875,
0.0155792236328125,
0.04034423828125,
0.0179443359375,
0.04266357421875,
-0.019622802734375,
-0.0006012916564941406,
0.059295654296875,
0.0008449554443359375,
0.031402587890625,
-0.0032482147216796875,
-0.039947509765625,
-0.007427215576171875,
0.03125,
-0.0158538818359375,
-0.031829833984375,
0.0016422271728515625,
-0.007015228271484375,
0.022918701171875,
-0.06671142578125,
-0.05267333984375,
-0.01374053955078125,
-0.0307159423828125,
-0.0203704833984375,
-0.0173187255859375,
-0.0248260498046875,
0.0110931396484375,
-0.021514892578125,
0.0207061767578125,
-0.0504150390625,
-0.0027904510498046875,
-0.0197601318359375,
0.01329803466796875,
0.0218658447265625,
-0.025238037109375,
0.0193634033203125,
-0.0207672119140625,
-0.007465362548828125,
-0.0262451171875,
0.0006995201110839844,
-0.01123046875,
-0.0149993896484375,
0.004894256591796875,
-0.0250396728515625,
0.0115966796875,
-0.00138092041015625,
0.0099029541015625,
-0.0290374755859375,
0.003246307373046875,
0.040802001953125,
-0.0196533203125,
0.06439208984375,
-0.0243988037109375,
-0.0224456787109375,
-0.021942138671875,
-0.010467529296875,
0.0005526542663574219,
-0.028076171875,
-0.0032863616943359375,
0.046661376953125,
0.0172119140625,
-0.029632568359375,
0.0103302001953125,
-0.017547607421875,
0.0158233642578125,
0.004058837890625,
-0.002674102783203125,
-0.0294952392578125,
-0.0162506103515625,
0.018096923828125,
0.0022430419921875,
0.04803466796875,
-0.027435302734375,
-0.047210693359375,
-0.0177459716796875,
-0.013214111328125,
-0.071044921875,
-0.056671142578125,
-0.031463623046875,
-0.0653076171875,
0.03497314453125,
-0.0292205810546875,
-0.00914764404296875,
-0.01387786865234375,
-0.006259918212890625,
0.0198516845703125,
-0.04180908203125,
-0.0208892822265625,
-0.0262451171875,
-0.046600341796875,
-0.041656494140625,
0.0643310546875,
0.006679534912109375,
0.03143310546875,
-0.00528717041015625,
0.047576904296875,
0.00510406494140625,
-0.0411376953125,
-0.00966644287109375,
-0.03387451171875,
-0.02301025390625,
-0.0179595947265625,
-0.0014276504516601562,
-0.028717041015625,
0.0019359588623046875,
0.004558563232421875,
0.023162841796875,
0.0008077621459960938,
0.0033702850341796875,
-0.00926971435546875,
0.0204925537109375,
-0.03985595703125,
0.024200439453125,
0.0200042724609375,
-0.03662109375,
-0.040435791015625,
0.04669189453125,
-0.065673828125,
0.028778076171875,
0.0073699951171875,
-0.01071929931640625,
-0.026031494140625,
-0.0016279220581054688,
-0.040283203125,
-0.0036220550537109375,
-0.032440185546875,
0.00038909912109375,
0.01361083984375,
-0.033782958984375,
-0.006755828857421875,
0.03106689453125,
-0.0087432861328125,
0.014404296875,
0.0093536376953125,
0.0028133392333984375,
-0.006256103515625,
0.007472991943359375,
-0.0060577392578125,
0.048126220703125,
-0.0176239013671875,
0.040252685546875,
-0.067626953125,
-0.02703857421875,
0.0479736328125,
0.03466796875,
0.0166473388671875,
0.0034961700439453125,
-0.039215087890625,
0.0218048095703125,
0.086181640625,
0.0182342529296875,
-0.0023517608642578125,
0.0401611328125,
-0.005542755126953125,
-0.0325927734375,
0.0396728515625,
-0.08392333984375,
-0.0012645721435546875,
0.00611114501953125,
-0.018951416015625,
-0.01540374755859375,
-0.003368377685546875,
-0.0350341796875,
0.0066680908203125,
-0.035308837890625,
-0.00896453857421875,
0.026123046875,
-0.0032672882080078125,
0.01395416259765625,
0.0237579345703125,
-0.00882720947265625,
0.01186370849609375,
-0.0068511962890625,
-0.0111846923828125,
-0.07171630859375,
-0.01064300537109375,
-0.037445068359375,
0.07611083984375,
0.042877197265625,
-0.04864501953125,
0.0024089813232421875,
0.032196044921875,
0.0143585205078125,
0.016754150390625,
0.0196075439453125,
0.00211334228515625,
0.038177490234375,
-0.037139892578125,
0.0053558349609375,
-0.0301971435546875,
0.0035266876220703125,
-0.01116180419921875,
-0.0241851806640625,
0.01313018798828125,
-0.050872802734375,
0.0082855224609375,
-0.006557464599609375,
-0.01297760009765625,
-0.0292205810546875,
-0.001659393310546875,
-0.0213775634765625,
0.0205078125,
-0.006893157958984375,
-0.007335662841796875,
-0.0191497802734375,
-0.060455322265625,
0.014739990234375,
-0.0750732421875,
0.00447845458984375,
-0.0002294778823852539,
0.06689453125,
0.0220489501953125,
0.0233306884765625,
0.054962158203125,
-0.004207611083984375,
0.044830322265625,
0.00994110107421875,
0.01922607421875,
0.0236968994140625,
-0.0123138427734375,
-0.0175323486328125,
0.042449951171875,
-0.01369476318359375,
-0.0267486572265625,
0.0521240234375,
0.0146942138671875,
-0.0009360313415527344,
0.001972198486328125,
-0.01027679443359375,
0.03204345703125,
-0.0030269622802734375,
-0.0084991455078125,
-0.033111572265625,
0.034454345703125,
0.035369873046875,
-0.043121337890625,
0.06939697265625,
-0.003139495849609375,
0.0037326812744140625,
0.004154205322265625,
-0.01331329345703125,
0.0117645263671875,
0.0106964111328125,
0.00478363037109375,
-0.0257415771484375,
-0.0011987686157226562,
-0.02978515625,
-0.002338409423828125,
-0.036529541015625,
0.0269927978515625,
0.02606201171875,
-0.0296783447265625,
0.00888824462890625,
-0.00966644287109375,
-0.00374603271484375,
0.0191497802734375,
-0.0017900466918945312,
-0.029449462890625,
-0.037322998046875,
-0.00007140636444091797,
0.032928466796875,
0.0024394989013671875,
-0.00818634033203125,
0.044158935546875,
0.0386962890625,
-0.00530242919921875,
-0.01151275634765625,
0.004947662353515625,
0.021820068359375,
-0.037078857421875,
-0.026580810546875,
-0.00545501708984375,
-0.033477783203125,
0.01471710205078125,
0.0250091552734375,
0.005191802978515625,
-0.00608062744140625,
-0.01343536376953125,
0.0732421875,
0.050811767578125,
-0.01480865478515625,
0.017608642578125,
0.0279388427734375,
-0.02288818359375,
-0.019317626953125,
-0.02789306640625,
-0.007709503173828125,
0.036163330078125,
0.01166534423828125,
0.013092041015625,
0.0295867919921875,
0.003719329833984375,
-0.016571044921875,
-0.03167724609375,
0.00322723388671875,
0.0107421875,
-0.037322998046875,
-0.043914794921875,
-0.0310821533203125,
0.001064300537109375,
0.03253173828125,
-0.0311737060546875,
0.0191192626953125,
0.018035888671875,
0.01715087890625,
0.04364013671875,
0.005283355712890625,
0.01064300537109375,
-0.01470184326171875,
-0.017608642578125,
0.01398468017578125,
0.03253173828125,
-0.006805419921875,
0.0171051025390625,
-0.031890869140625,
-0.0140228271484375,
-0.0183563232421875,
0.07293701171875,
-0.0173492431640625,
-0.00960540771484375,
-0.048553466796875,
0.037078857421875,
-0.0821533203125,
-0.02313232421875,
0.09832763671875,
0.07098388671875,
-0.0869140625,
0.0010080337524414062,
-0.01244354248046875,
0.006198883056640625,
-0.0005083084106445312,
-0.040252685546875,
-0.033447265625,
-0.01123046875,
-0.0104827880859375,
0.00995635986328125,
-0.0130615234375,
-0.0169677734375,
-0.01325225830078125,
0.02423095703125,
0.0215911865234375,
0.0248870849609375,
-0.012725830078125,
0.037506103515625,
0.00354766845703125,
0.04449462890625,
0.0132904052734375,
-0.004116058349609375,
-0.0291595458984375,
-0.0113525390625,
-0.033294677734375,
0.0263519287109375,
0.0224761962890625,
0.0195770263671875,
0.01561737060546875,
-0.0148468017578125,
0.054473876953125,
-0.0011568069458007812,
-0.020263671875,
0.007610321044921875,
0.00388336181640625,
-0.013702392578125,
0.0086212158203125,
0.0498046875,
-0.01200103759765625,
0.01003265380859375,
-0.03436279296875,
-0.023162841796875,
0.0112762451171875,
0.037628173828125,
0.0251922607421875,
-0.0279083251953125,
0.0248870849609375,
-0.0170440673828125,
-0.03143310546875,
0.02386474609375,
-0.004528045654296875,
-0.0082244873046875,
0.025390625,
-0.011871337890625,
0.031280517578125,
0.01444244384765625,
0.046844482421875,
-0.045257568359375,
-0.040557861328125,
0.0288238525390625,
0.02288818359375,
-0.004955291748046875,
0.040008544921875,
-0.00969696044921875,
0.004550933837890625,
0.0875244140625,
0.080810546875,
-0.10369873046875,
-0.005535125732421875,
0.0057525634765625,
-0.01502227783203125,
0.011810302734375,
-0.02777099609375,
0.01082611083984375,
-0.023712158203125,
0.04644775390625,
0.0108184814453125,
-0.01441192626953125,
0.0227813720703125,
-0.012542724609375,
0.002288818359375,
0.006267547607421875,
0.061553955078125,
0.02337646484375,
-0.0009379386901855469,
0.00858306884765625,
0.00292205810546875,
0.038909912109375,
-0.04608154296875,
0.02239990234375,
0.01084136962890625,
0.00974273681640625,
-0.026153564453125,
0.052490234375,
-0.0033111572265625,
0.0181884765625,
0.0006451606750488281,
-0.007747650146484375,
0.042205810546875,
-0.00244903564453125,
0.019073486328125,
-0.0280609130859375,
-0.0218353271484375,
-0.01464080810546875,
-0.0858154296875,
-0.038299560546875,
-0.0158843994140625,
0.03277587890625,
-0.02435302734375,
0.047515869140625,
-0.0102996826171875,
-0.0275726318359375,
-0.01107025146484375,
-0.01392364501953125,
0.064697265625,
-0.07208251953125,
0.01050567626953125,
0.0213165283203125,
0.0125732421875,
0.004650115966796875,
-0.014373779296875,
0.0025997161865234375,
-0.046539306640625,
-0.027130126953125,
-0.00885009765625,
-0.054962158203125,
-0.01404571533203125,
-0.026885986328125,
-0.044525146484375,
0.0980224609375,
-0.0160980224609375,
-0.028472900390625,
-0.033843994140625,
0.060516357421875,
0.0193023681640625,
0.06353759765625,
-0.0491943359375,
0.06634521484375,
0.0247802734375,
0.060577392578125,
-0.01995849609375,
0.0051727294921875,
0.0236663818359375,
-0.0033416748046875,
0.05889892578125,
0.01361083984375,
-0.0133514404296875,
-0.004291534423828125,
0.0178070068359375,
-0.00848388671875,
-0.0379638671875,
0.0379638671875,
-0.0030879974365234375,
0.011260986328125,
0.031097412109375,
-0.007537841796875,
0.04150390625,
-0.022705078125,
-0.03826904296875,
0.0151519775390625,
-0.0008139610290527344,
-0.00904083251953125,
-0.0016717910766601562,
0.043731689453125,
-0.04034423828125,
0.0019550323486328125,
0.01161956787109375,
0.03350830078125,
-0.014129638671875,
0.020294189453125,
0.0012121200561523438,
0.006740570068359375,
0.044921875,
-0.03875732421875,
0.04815673828125,
-0.0022907257080078125,
0.01073455810546875,
0.038726806640625,
0.01404571533203125,
0.0228729248046875,
0.027130126953125,
0.0092926025390625,
0.040283203125,
0.01220703125,
0.058441162109375,
0.042633056640625,
0.032470703125,
-0.03314208984375,
-0.0400390625,
0.0526123046875,
0.08721923828125,
-0.027984619140625,
-0.002170562744140625,
0.00940704345703125,
0.034942626953125,
0.015869140625,
0.01190185546875,
0.074462890625,
0.0006418228149414062,
0.0243682861328125,
-0.0357666015625,
-0.0228729248046875,
0.005802154541015625,
0.042938232421875,
-0.0058441162109375,
0.00452423095703125,
-0.0175323486328125,
-0.034942626953125,
-0.047119140625,
0.026641845703125,
0.0364990234375,
0.03375244140625,
-0.01538848876953125,
0.034637451171875,
0.0201263427734375,
0.00731658935546875,
-0.0103912353515625,
0.031768798828125,
0.0162200927734375,
-0.0005545616149902344,
-0.04840087890625,
-0.04388427734375,
0.006244659423828125,
0.047821044921875,
-0.0014781951904296875,
0.0167083740234375,
0.00878143310546875,
0.037994384765625,
-0.005634307861328125,
-0.0168304443359375,
0.06085205078125,
-0.008758544921875,
0.0205535888671875,
-0.026702880859375,
0.0263824462890625,
-0.007476806640625,
-0.007701873779296875,
-0.01264190673828125,
0.0251312255859375,
0.023162841796875,
-0.037567138671875,
0.05316162109375,
-0.01183319091796875,
-0.0225372314453125,
0.00180816650390625,
-0.028350830078125,
0.059234619140625,
-0.0020599365234375,
-0.07958984375,
-0.003269195556640625,
-0.029144287109375,
-0.0633544921875,
0.030609130859375,
0.038543701171875,
-0.0265655517578125,
0.017913818359375,
0.00435638427734375,
-0.0242919921875,
0.0256805419921875,
0.022674560546875,
-0.0113067626953125,
-0.018463134765625,
0.0288238525390625,
-0.02130126953125,
-0.01239776611328125,
-0.00004172325134277344,
-0.01097869873046875,
0.017913818359375,
0.005825042724609375,
0.06146240234375,
-0.0222320556640625,
0.019622802734375,
-0.0002841949462890625,
0.0009479522705078125,
0.003620147705078125,
-0.0070953369140625,
0.0178070068359375,
-0.006256103515625,
0.0022430419921875,
-0.012115478515625,
-0.05694580078125,
0.046112060546875,
0.003917694091796875,
0.030517578125,
0.046905517578125,
-0.016754150390625,
0.00963592529296875,
0.00946807861328125,
0.01885986328125,
-0.00429534912109375,
-0.035308837890625,
-0.0240325927734375,
0.0223541259765625,
0.030120849609375,
0.034912109375,
-0.022674560546875,
0.01496124267578125,
-0.03265380859375,
-0.02471923828125,
-0.022918701171875,
-0.0019502639770507812,
-0.06048583984375,
0.01305389404296875,
-0.01202392578125,
0.0247650146484375,
-0.01806640625,
-0.0219573974609375,
0.03204345703125,
0.004734039306640625,
-0.0162811279296875,
0.01343536376953125,
-0.002292633056640625,
-0.033660888671875,
0.016143798828125,
0.040283203125,
-0.00038504600524902344,
0.026123046875,
-0.0157928466796875,
-0.023681640625,
0.0083770751953125,
-0.039703369140625,
-0.039031982421875,
-0.007350921630859375,
-0.0022640228271484375,
0.0246734619140625,
0.00506591796875,
-0.031585693359375,
-0.060516357421875,
-0.00836944580078125,
0.032623291015625,
-0.01708984375,
-0.02691650390625,
-0.0126495361328125,
-0.0272216796875,
0.05535888671875,
-0.022735595703125,
-0.0207061767578125,
0.0144500732421875,
0.0318603515625,
-0.0362548828125,
0.0004749298095703125,
-0.0205535888671875,
0.0020904541015625,
-0.007476806640625,
0.01849365234375,
0.033172607421875,
-0.018646240234375,
-0.06982421875,
0.046539306640625,
-0.0023479461669921875,
0.08685302734375,
0.01103973388671875,
-0.036163330078125,
-0.0051422119140625,
0.0208282470703125,
0.0008382797241210938,
-0.03106689453125,
-0.00418853759765625,
-0.013153076171875,
-0.0016908645629882812,
-0.01468658447265625,
0.01155853271484375,
0.0390625,
-0.03717041015625,
-0.10491943359375,
0.077880859375,
-0.040863037109375,
-0.03839111328125,
-0.0447998046875,
0.038818359375,
0.0161285400390625,
-0.057403564453125,
-0.02532958984375,
-0.0021419525146484375,
-0.0077667236328125,
0.0232086181640625,
0.0251312255859375,
-0.0287628173828125,
0.041534423828125,
0.0020427703857421875,
-0.054534912109375,
0.02801513671875,
0.020263671875,
0.01157379150390625,
0.043121337890625,
-0.04254150390625,
0.061309814453125,
0.0400390625,
-0.039581298828125,
0.02581787109375,
-0.00710296630859375,
-0.019805908203125,
-0.051422119140625,
-0.058197021484375,
0.0491943359375,
0.010955810546875,
0.064208984375,
-0.00928497314453125,
-0.007579803466796875,
-0.0374755859375,
-0.016876220703125,
-0.032470703125,
-0.022216796875,
-0.01392364501953125,
0.0262451171875,
-0.07379150390625,
-0.00725555419921875,
0.0192108154296875,
-0.0228271484375,
-0.0298919677734375,
0.01123046875,
-0.057647705078125,
0.0045166015625,
0.03253173828125,
0.0170135498046875,
-0.04736328125,
-0.07220458984375,
0.032867431640625,
-0.0163116455078125,
-0.01800537109375,
0.04058837890625,
0.03228759765625,
-0.01232147216796875,
0.06268310546875,
0.0181427001953125,
0.033935546875,
-0.046051025390625,
-0.005611419677734375,
0.01165008544921875,
0.0035266876220703125,
-0.0205841064453125,
-0.019317626953125,
-0.01031494140625,
0.034332275390625,
0.0149078369140625,
0.055694580078125,
-0.0014371871948242188,
0.042755126953125,
0.02020263671875,
0.0178680419921875,
-0.0283966064453125,
0.023712158203125,
-0.00487518310546875,
0.025726318359375,
-0.0364990234375,
0.00800323486328125,
0.01412200927734375,
-0.0203094482421875,
0.009033203125,
0.020172119140625,
0.062042236328125,
-0.0214996337890625,
0.0535888671875,
0.01474761962890625,
0.0202178955078125,
0.022491455078125
] |
2a040666717586767e359b4a5771de3d9d751b24
|
Wordpress Stackexchange
Q: My wordpress site gets redirected automatically to the old site any known solution for this? I had recently moved my wp site from a domain to other, but when I type in the new domain's address it gets redirected to the old domain/some_page.
Is this any common problem? Is there any known solution to this?
I had checked my code and it has no redirects to this page. Can someone give me a hand on this?
A: Give DNS 12-24 hours to propogate and flush the DNS cache on your PC.
Check wp-config.php for hardcoded URLs and change them, if needed.
Search your database with phpmyadmin for all occurrences of the old URL using interconnectit.com WordPress Serialized PHP Search Replace Tool.
Reset Dashboard>>Settings>>Permalinks and be sure .htaccess is writable.
Check your theme files for hardcoded URLs.
|
Q: My wordpress site gets redirected automatically to the old site any known solution for this? I had recently moved my wp site from a domain to other, but when I type in the new domain's address it gets redirected to the old domain/some_page.
Is this any common problem? Is there any known solution to this?
I had checked my code and it has no redirects to this page. Can someone give me a hand on this?
A: Give DNS 12-24 hours to propogate and flush the DNS cache on your PC.
Check wp-config.php for hardcoded URLs and change them, if needed.
Search your database with phpmyadmin for all occurrences of the old URL using interconnectit.com WordPress Serialized PHP Search Replace Tool.
Reset Dashboard>>Settings>>Permalinks and be sure .htaccess is writable.
Check your theme files for hardcoded URLs.
A: This is because the URL settings inside WordPress are still pointing to the old WordPress site. More information is available in the Moving WordPress documentation.
If your WordPress admin pages are still working, you can go to Settings → General, and change the WordPress URL and the Site Address to the correct values.
If your WordPress site is completely broken, then you can add the following values to wp-config.php, which will have the same effect:
define('WP_HOME', 'http://your_server/blog');
define('WP_SITEURL', 'http://your_server/blog');
Note that in most cases, WP_HOME and WP_SITEURL will be the same, apart from exceptional circumstances.
A: If using HTTPS change the value for wordpress-https_ssl_host in the wp_options table.
A: The above answer didn't work for me. See https://wordpress.stackexchange.com/a/179788/107311 by James
change "siteurl" and "home" in the database table "wp_options"
(through phpMyAdmin or similar)
A: Export the database (in .sql) and search for the domain it is redirecting to.
If you don't see it maybe it's a (mu-)plugin that has old url hard coded.
In some instances it the browser could cache the redirect so try accessing the site with private/incognito window/tab.
A: Here’s a checklist
*
*Search and Replace domain in database
*Update wp-config.php with new domain
*Check DNS propagation
*Clear your cache and disable caching plugins
*Check web server to see if there are any server level redirects.
*Disable All Plugins while testing and apply default theme.
If it still doesn’t work then please provide details of your web server hosting setup and platform.
A: If adding the bellow is not working but only for the default directory in word press, congrats there should be no problem. You have a cache problem (if you don't care for the reason just skip to the bottom), which you cant use the normal refresh to fix. The reason is as soon as you go the the url you get redirected to a new url and then when you refresh you actualy refresh the new url not the old cache, so the fastest fix it is just to clear the cache & history.
define( 'WP_HOME', 'http://your_server/your_blog_url' );
define( 'WP_SITEURL', 'http://your_server/your_wordpress_url' );
special note: if you look in the wp_options table the first 2 entries also reference to the perm link
fast command to find it bellow
select * from wp_options limit 2
Just try clearing your browser cache & history, alternatively just open it in a browser you don't use much. If it works its a cache problem.
|
wordpress
|
{
"language": "en",
"length": 543,
"provenance": "stackexchange_00019.jsonl.gz:408306",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13777"
}
|
[
0.0369873046875,
0.004573822021484375,
0.0236053466796875,
0.025390625,
-0.004283905029296875,
-0.034881591796875,
0.06903076171875,
-0.048583984375,
0.003993988037109375,
0.0008339881896972656,
-0.015655517578125,
0.0006060600280761719,
-0.00952911376953125,
-0.04144287109375,
0.0214996337890625,
-0.0213165283203125,
0.0271148681640625,
-0.0311126708984375,
0.01666259765625,
-0.004337310791015625,
0.00775146484375,
0.0133514404296875,
0.045989990234375,
0.01558685302734375,
0.0113983154296875,
-0.0261383056640625,
0.08837890625,
-0.01447296142578125,
0.0284576416015625,
-0.0121917724609375,
0.030792236328125,
-0.03424072265625,
0.002239227294921875,
0.040740966796875,
-0.042144775390625,
-0.0287933349609375,
0.0277557373046875,
0.01035308837890625,
0.00887298583984375,
0.046875,
0.034271240234375,
-0.0244903564453125,
0.03228759765625,
-0.0022716522216796875,
0.0189971923828125,
-0.046478271484375,
0.04278564453125,
-0.05157470703125,
-0.00196075439453125,
-0.017974853515625,
0.030242919921875,
0.0211181640625,
0.0361328125,
0.01045989990234375,
-0.01215362548828125,
-0.007080078125,
0.017547607421875,
0.01024627685546875,
0.027252197265625,
-0.050994873046875,
-0.040985107421875,
0.01171112060546875,
0.03759765625,
0.0156402587890625,
-0.045623779296875,
0.0098724365234375,
0.0163726806640625,
-0.005786895751953125,
-0.055267333984375,
-0.04754638671875,
0.038604736328125,
-0.0221405029296875,
-0.004535675048828125,
0.01230621337890625,
-0.0009050369262695312,
-0.006420135498046875,
0.01885986328125,
0.0244903564453125,
0.006732940673828125,
0.026458740234375,
-0.01029205322265625,
-0.01200103759765625,
0.00830078125,
-0.07513427734375,
0.055877685546875,
-0.0295867919921875,
-0.020751953125,
-0.00035500526428222656,
-0.03912353515625,
-0.040985107421875,
-0.0350341796875,
-0.0242156982421875,
-0.044189453125,
-0.00417327880859375,
-0.0216064453125,
-0.0186920166015625,
0.019287109375,
0.041107177734375,
0.0134124755859375,
0.032928466796875,
-0.04241943359375,
-0.012298583984375,
0.00403594970703125,
-0.0242767333984375,
-0.0311737060546875,
0.01462554931640625,
0.018463134765625,
-0.0024433135986328125,
-0.01047515869140625,
0.016571044921875,
-0.0174102783203125,
-0.001377105712890625,
-0.025360107421875,
0.0018491744995117188,
-0.0248870849609375,
0.0215606689453125,
-0.04632568359375,
-0.011627197265625,
-0.035614013671875,
0.0007076263427734375,
-0.01360321044921875,
0.005680084228515625,
0.003940582275390625,
-0.00814056396484375,
0.01218414306640625,
-0.026153564453125,
-0.01336669921875,
-0.0066986083984375,
-0.002864837646484375,
-0.0213165283203125,
-0.034149169921875,
0.0229034423828125,
0.03424072265625,
0.049041748046875,
0.0200653076171875,
-0.0159454345703125,
0.0606689453125,
-0.0105743408203125,
-0.0024776458740234375,
0.0249786376953125,
-0.002838134765625,
-0.054931640625,
-0.0513916015625,
-0.00418853759765625,
0.039031982421875,
0.042205810546875,
0.020751953125,
0.006359100341796875,
-0.01102447509765625,
-0.036346435546875,
0.03314208984375,
-0.035552978515625,
0.044097900390625,
-0.01617431640625,
0.0219573974609375,
-0.057373046875,
0.03411865234375,
-0.038909912109375,
0.006687164306640625,
-0.031951904296875,
0.04681396484375,
0.003467559814453125,
-0.0031909942626953125,
0.0130615234375,
-0.03521728515625,
-0.0072479248046875,
-0.0582275390625,
-0.02337646484375,
0.01165771484375,
-0.003543853759765625,
-0.0122528076171875,
-0.0216522216796875,
0.018096923828125,
-0.00820159912109375,
-0.0128631591796875,
0.02374267578125,
-0.003192901611328125,
0.01213836669921875,
0.01800537109375,
0.071533203125,
0.0277252197265625,
-0.018096923828125,
0.02618408203125,
0.013702392578125,
-0.0413818359375,
0.05133056640625,
-0.006732940673828125,
0.04632568359375,
-0.0034027099609375,
0.010650634765625,
-0.005710601806640625,
0.0243988037109375,
-0.045074462890625,
0.033172607421875,
0.004611968994140625,
-0.011260986328125,
-0.0043792724609375,
0.01544189453125,
0.002925872802734375,
-0.035186767578125,
-0.00054931640625,
0.0089874267578125,
-0.014190673828125,
0.012908935546875,
-0.032745361328125,
0.0080413818359375,
-0.01395416259765625,
0.00847625732421875,
0.05694580078125,
0.0250244140625,
-0.013641357421875,
-0.01201629638671875,
0.0046539306640625,
-0.0276947021484375,
-0.0546875,
0.021392822265625,
-0.034271240234375,
0.0125885009765625,
-0.0035724639892578125,
0.01314544677734375,
-0.0183868408203125,
-0.005626678466796875,
-0.0309600830078125,
-0.0307769775390625,
0.024658203125,
-0.03271484375,
-0.0341796875,
-0.03173828125,
-0.047119140625,
-0.0029354095458984375,
-0.06561279296875,
0.076904296875,
0.0061798095703125,
-0.00846099853515625,
-0.048004150390625,
0.0015115737915039062,
-0.014129638671875,
-0.0335693359375,
-0.00026154518127441406,
0.053436279296875,
0.02001953125,
0.0089263916015625,
0.007232666015625,
0.046173095703125,
-0.0125732421875,
-0.0821533203125,
-0.0006575584411621094,
0.0311126708984375,
0.021820068359375,
0.040924072265625,
0.00789642333984375,
-0.01513671875,
0.0282745361328125,
-0.046661376953125,
-0.0181732177734375,
0.05126953125,
-0.02227783203125,
-0.00662994384765625,
-0.01103973388671875,
-0.0122222900390625,
0.007144927978515625,
-0.044219970703125,
-0.0249786376953125,
-0.02099609375,
-0.0032901763916015625,
0.0017223358154296875,
-0.004917144775390625,
-0.007350921630859375,
-0.0167236328125,
-0.00484466552734375,
0.0203399658203125,
-0.03167724609375,
0.003520965576171875,
0.001537322998046875,
0.032958984375,
-0.03570556640625,
-0.0222930908203125,
0.0012865066528320312,
0.037567138671875,
-0.00449371337890625,
-0.036590576171875,
0.006908416748046875,
-0.052154541015625,
-0.0105743408203125,
-0.01763916015625,
-0.00424957275390625,
0.01177978515625,
0.01061248779296875,
0.02178955078125,
-0.006885528564453125,
0.00994873046875,
0.005084991455078125,
-0.022705078125,
0.0272064208984375,
0.0225677490234375,
-0.047149658203125,
0.0270538330078125,
-0.037994384765625,
0.034393310546875,
-0.0360107421875,
0.0579833984375,
0.0687255859375,
-0.0215301513671875,
0.030731201171875,
0.0007333755493164062,
0.0256805419921875,
0.0164337158203125,
-0.0252685546875,
-0.031646728515625,
0.0100860595703125,
-0.1087646484375,
-0.078369140625,
0.0206146240234375,
0.03680419921875,
-0.0182037353515625,
-0.045318603515625,
-0.0138397216796875,
0.0139007568359375,
-0.10986328125,
-0.077880859375,
-0.062225341796875,
-0.0149688720703125,
-0.0287933349609375,
0.033721923828125,
-0.00762176513671875,
0.0157928466796875,
0.0301055908203125,
0.01215362548828125,
0.0650634765625,
-0.05364990234375,
-0.09503173828125,
-0.0518798828125,
-0.1029052734375,
-0.0272216796875,
-0.00806427001953125,
0.0019893646240234375,
0.01983642578125,
-0.0283660888671875,
-0.00928497314453125,
-0.03466796875,
0.00952911376953125,
0.042572021484375,
0.0112152099609375,
-0.012359619140625,
-0.013641357421875,
-0.042510986328125,
0.01103973388671875,
0.0146484375,
0.06341552734375,
-0.0053253173828125,
0.00897216796875,
-0.007389068603515625,
-0.01526641845703125,
-0.00392913818359375,
-0.01508331298828125,
-0.022705078125,
0.032928466796875,
-0.0301513671875,
-0.035125732421875,
-0.062347412109375,
0.0008974075317382812,
0.00437164306640625,
-0.0216827392578125,
-0.001033782958984375,
0.00905609130859375,
-0.034393310546875,
0.01459503173828125,
-0.01268768310546875,
-0.0179290771484375,
-0.016998291015625,
-0.01044464111328125,
-0.036285400390625,
0.040740966796875,
0.008026123046875,
0.000021338462829589844,
-0.005615234375,
0.023712158203125,
-0.01983642578125,
0.0155487060546875,
0.0009617805480957031,
-0.01380157470703125,
-0.0162506103515625,
0.01087188720703125,
-0.041107177734375,
-0.0948486328125,
0.051910400390625,
-0.054718017578125,
-0.0208740234375,
-0.0313720703125,
-0.0164031982421875,
0.03759765625,
0.1329345703125,
-0.034942626953125,
0.0014467239379882812,
0.0167694091796875,
0.0214385986328125,
-0.019439697265625,
-0.0259552001953125,
-0.04583740234375,
-0.0163726806640625,
-0.0880126953125,
-0.027984619140625,
-0.0045166015625,
-0.02154541015625,
-0.022247314453125,
0.032501220703125,
-0.039093017578125,
-0.047698974609375,
0.03094482421875,
-0.02032470703125,
0.024383544921875,
-0.011566162109375,
0.01456451416015625,
-0.031402587890625,
-0.0012941360473632812,
-0.03326416015625,
-0.07379150390625,
-0.00328826904296875,
-0.01110076904296875,
0.0180206298828125,
-0.0038013458251953125,
0.0036792755126953125,
-0.00742340087890625,
0.02703857421875,
0.00283050537109375,
0.042449951171875,
-0.032928466796875,
-0.015350341796875,
0.001293182373046875,
0.018524169921875,
-0.0129852294921875,
-0.0065765380859375,
-0.004642486572265625,
-0.04193115234375,
-0.0272369384765625,
0.004062652587890625,
-0.0291748046875,
0.01512908935546875,
-0.010986328125,
-0.01342010498046875,
-0.01468658447265625,
-0.03216552734375,
-0.0172882080078125,
0.0182342529296875,
-0.020294189453125,
0.0018072128295898438,
-0.0261077880859375,
-0.0360107421875,
0.00696563720703125,
-0.03216552734375,
-0.005298614501953125,
0.0229644775390625,
0.03790283203125,
0.0199737548828125,
-0.0050506591796875,
0.031280517578125,
0.01885986328125,
0.0228424072265625,
0.00969696044921875,
0.01512908935546875,
-0.0254058837890625,
-0.00199127197265625,
0.031402587890625,
-0.019683837890625,
-0.00881195068359375,
0.00555419921875,
0.00878143310546875,
0.014068603515625,
-0.0261383056640625,
0.007274627685546875,
-0.01361846923828125,
0.00652313232421875,
0.07330322265625,
-0.00847625732421875,
-0.01715087890625,
-0.01012420654296875,
0.02880859375,
-0.010467529296875,
-0.01338958740234375,
-0.04962158203125,
-0.05853271484375,
0.0192718505859375,
0.017852783203125,
-0.0024051666259765625,
0.00658416748046875,
-0.0013103485107421875,
0.04449462890625,
0.0195465087890625,
-0.0019855499267578125,
-0.04083251953125,
-0.02001953125,
-0.01500701904296875,
0.025238037109375,
-0.0210418701171875,
0.000033855438232421875,
-0.01629638671875,
-0.0146484375,
0.070068359375,
0.01210784912109375,
-0.051025390625,
0.037567138671875,
-0.0318603515625,
-0.0255279541015625,
0.04815673828125,
-0.016693115234375,
0.033966064453125,
0.0276641845703125,
-0.0291900634765625,
-0.004360198974609375,
-0.010345458984375,
-0.027069091796875,
-0.066650390625,
-0.00263214111328125,
0.003787994384765625,
-0.004985809326171875,
0.03619384765625,
0.05828857421875,
0.0195159912109375,
0.041839599609375,
-0.0304718017578125,
-0.013336181640625,
0.024200439453125,
0.047210693359375,
0.0160675048828125,
-0.007015228271484375,
-0.01306915283203125,
0.034088134765625,
0.03192138671875,
-0.036163330078125,
-0.0015506744384765625,
0.0283203125,
0.054229736328125,
-0.0030002593994140625,
-0.03515625,
0.0200347900390625,
-0.02545166015625,
-0.0165863037109375,
0.06463623046875,
0.0239410400390625,
-0.07537841796875,
-0.0270843505859375,
0.005947113037109375,
0.028228759765625,
-0.0185089111328125,
-0.015350341796875,
-0.0017566680908203125,
-0.040313720703125,
0.01540374755859375,
0.01120758056640625,
-0.0035915374755859375,
-0.00994873046875,
-0.03326416015625,
-0.002864837646484375,
-0.0236663818359375,
-0.0193939208984375,
-0.013427734375,
0.0018177032470703125,
-0.024078369140625,
-0.01064300537109375,
0.04931640625,
-0.0125579833984375,
0.014556884765625,
-0.03668212890625,
0.0040740966796875,
0.006877899169921875,
-0.001712799072265625,
0.0643310546875,
0.01023101806640625,
-0.07281494140625,
0.0018024444580078125,
-0.03759765625,
-0.0177459716796875,
0.0161895751953125,
-0.0139923095703125,
-0.038604736328125,
-0.015045166015625,
0.0098419189453125,
0.01806640625,
-0.0140838623046875,
-0.0273284912109375,
-0.00920867919921875,
0.0013370513916015625,
0.0167694091796875,
-0.02398681640625,
-0.0164031982421875,
0.0153350830078125,
-0.03692626953125,
0.05255126953125,
-0.030548095703125,
-0.016693115234375,
0.0048980712890625,
-0.021759033203125,
0.03570556640625,
-0.0167694091796875,
-0.052001953125,
-0.033111572265625,
-0.058380126953125,
0.0060577392578125,
0.0501708984375,
-0.030731201171875,
-0.01180267333984375,
-0.00836181640625,
-0.0018548965454101562,
-0.039398193359375,
0.0155181884765625,
-0.026763916015625,
0.01080322265625,
-0.06304931640625,
-0.0017900466918945312,
0.0004813671112060547,
-0.0028839111328125,
-0.01360321044921875,
-0.00930023193359375,
0.017181396484375,
-0.016693115234375,
0.0081787109375,
-0.047607421875,
0.034027099609375,
0.061981201171875,
-0.0033435821533203125,
0.0430908203125,
0.02093505859375,
0.01073455810546875,
0.07025146484375,
-0.0028285980224609375,
0.006526947021484375,
0.0018281936645507812,
0.0119781494140625,
-0.01285552978515625,
0.0018663406372070312,
0.0034122467041015625,
-0.01531219482421875,
-0.009368896484375,
0.06646728515625,
0.052459716796875,
-0.091552734375,
0.00107574462890625,
0.021881103515625,
-0.01012420654296875,
-0.03277587890625,
-0.0014791488647460938,
-0.0147857666015625,
-0.0169219970703125,
0.00795745849609375,
-0.0299224853515625,
-0.025390625,
-0.01052093505859375,
-0.0001342296600341797,
-0.00981903076171875,
-0.002941131591796875,
0.060943603515625,
0.01336669921875,
-0.0355224609375,
-0.01519012451171875,
0.0238494873046875,
-0.0159149169921875,
-0.0166015625,
-0.0276031494140625,
0.037384033203125,
-0.037353515625,
-0.053070068359375,
0.0205230712890625,
-0.046905517578125,
0.041168212890625,
-0.0180511474609375,
-0.015289306640625,
0.044891357421875,
0.051422119140625,
-0.029083251953125,
0.0227813720703125,
0.0217437744140625,
-0.01200103759765625,
0.02740478515625,
-0.0394287109375,
0.036773681640625,
0.00012362003326416016,
-0.05914306640625,
0.009429931640625,
-0.005764007568359375,
-0.04119873046875,
-0.00008910894393920898,
0.006011962890625,
0.05145263671875,
-0.0258941650390625,
-0.0186767578125,
0.0347900390625,
-0.01200103759765625,
-0.01507568359375,
-0.0144805908203125,
0.006999969482421875,
-0.02911376953125,
-0.005863189697265625,
-0.0211944580078125,
-0.0201873779296875,
0.0153961181640625,
-0.032440185546875,
-0.040557861328125,
0.060791015625,
-0.002819061279296875,
-0.00482940673828125,
0.0311431884765625,
0.03155517578125,
-0.040069580078125,
0.0181427001953125,
-0.0115509033203125,
0.058807373046875,
0.01256561279296875,
0.0160980224609375,
-0.017333984375,
-0.004398345947265625,
0.00876617431640625,
0.0060272216796875,
0.0462646484375,
0.018280029296875,
-0.050811767578125,
0.0251312255859375,
0.048309326171875,
0.00955963134765625,
-0.0087890625,
0.06805419921875,
-0.042755126953125,
0.0166778564453125,
0.012237548828125,
-0.055694580078125,
0.0080718994140625,
-0.00579071044921875,
-0.0523681640625,
-0.0256500244140625,
-0.013580322265625,
-0.026947021484375,
-0.00510406494140625,
-0.0285491943359375,
-0.055328369140625,
0.005634307861328125,
0.034576416015625,
0.006702423095703125,
0.031463623046875,
-0.00861358642578125,
0.00632476806640625,
-0.0797119140625,
0.04559326171875,
-0.04998779296875,
0.038543701171875,
-0.02362060546875,
-0.00717926025390625,
0.02569580078125,
0.01702880859375,
0.022430419921875,
-0.0298004150390625,
-0.00577545166015625,
0.01861572265625,
-0.0261688232421875,
0.07513427734375,
0.047119140625,
0.04840087890625,
-0.026947021484375,
-0.0699462890625,
0.018585205078125,
0.09747314453125,
-0.0240631103515625,
-0.0279998779296875,
0.00958251953125,
-0.00823974609375,
0.024078369140625,
-0.0011653900146484375,
0.05224609375,
-0.043670654296875,
-0.048248291015625,
-0.00279998779296875,
-0.00658416748046875,
0.035736083984375,
0.0033473968505859375,
0.0032825469970703125,
0.0307464599609375,
-0.013824462890625,
0.0127410888671875,
-0.039093017578125,
0.01226043701171875,
0.0236358642578125,
0.0556640625,
-0.006866455078125,
0.058685302734375,
-0.01230621337890625,
-0.0123291015625,
0.01236724853515625,
0.005657196044921875,
-0.0203857421875,
0.00988006591796875,
-0.049652099609375,
-0.056304931640625,
0.026031494140625,
0.055145263671875,
-0.007434844970703125,
-0.0143890380859375,
0.029510498046875,
0.025146484375,
-0.0546875,
-0.0309600830078125,
0.0080108642578125,
-0.03363037109375,
0.058441162109375,
-0.035430908203125,
0.0209808349609375,
0.0010080337524414062,
-0.03009033203125,
-0.02374267578125,
-0.006114959716796875,
0.0499267578125,
-0.0171966552734375,
0.0277557373046875,
-0.00342559814453125,
-0.048858642578125,
0.0065765380859375,
-0.0241546630859375,
0.06427001953125,
0.0080413818359375,
-0.0021457672119140625,
-0.0167388916015625,
-0.03314208984375,
0.0117340087890625,
0.00408935546875,
0.038177490234375,
0.032928466796875,
-0.01309967041015625,
-0.005214691162109375,
0.0092620849609375,
-0.0005578994750976562,
-0.0022335052490234375,
-0.0206756591796875,
0.00855255126953125,
0.04345703125,
-0.0033435821533203125,
-0.0362548828125,
-0.01953125,
0.006694793701171875,
0.0308685302734375,
0.007843017578125,
0.053802490234375,
-0.0143280029296875,
0.01361846923828125,
-0.01102447509765625,
-0.01776123046875,
-0.0062255859375,
-0.032745361328125,
0.044952392578125,
0.01038360595703125,
-0.01105499267578125,
-0.01459503173828125,
-0.121826171875,
0.024261474609375,
-0.003398895263671875,
0.0136871337890625,
0.04083251953125,
-0.02008056640625,
0.0201873779296875,
0.0162506103515625,
-0.00838470458984375,
-0.054412841796875,
-0.058502197265625,
-0.0618896484375,
-0.022064208984375,
-0.0028095245361328125,
-0.024658203125,
-0.026641845703125,
0.059356689453125,
-0.01343536376953125,
-0.00730133056640625,
0.027435302734375,
-0.0816650390625,
0.030059814453125,
0.0325927734375,
-0.0134429931640625,
-0.036712646484375,
-0.0036296844482421875,
-0.017791748046875,
-0.00704193115234375,
0.00032329559326171875,
0.025115966796875,
-0.003570556640625,
0.0017337799072265625,
-0.07342529296875,
-0.0618896484375,
-0.046234130859375,
-0.02484130859375,
-0.0138092041015625,
-0.043731689453125,
-0.0078582763671875,
-0.0224609375,
-0.009765625,
-0.0203399658203125,
-0.0157623291015625,
-0.00007194280624389648,
0.028564453125,
0.0020542144775390625,
0.00904083251953125,
-0.018157958984375,
-0.012115478515625,
0.05975341796875,
0.02728271484375,
-0.0723876953125,
0.03570556640625,
-0.02606201171875,
0.025238037109375,
0.00630950927734375,
-0.00843048095703125,
-0.0009036064147949219,
0.034210205078125,
-0.04681396484375,
-0.043182373046875,
-0.03692626953125,
0.004711151123046875,
-0.052886962890625,
-0.003734588623046875,
0.034820556640625,
-0.0088653564453125,
-0.01605224609375,
-0.048309326171875,
-0.024658203125,
0.0106201171875,
-0.0245361328125,
-0.020660400390625,
0.032196044921875,
-0.023529052734375,
-0.0182037353515625,
-0.0134124755859375,
0.0028362274169921875,
-0.007167816162109375,
-0.0092620849609375,
-0.0212554931640625,
-0.0182342529296875,
-0.0189208984375,
-0.04547119140625,
-0.0478515625,
0.00037097930908203125,
0.0152587890625,
-0.03570556640625,
-0.046173095703125,
-0.0035419464111328125,
-0.017547607421875,
0.025634765625,
-0.0162506103515625,
0.004673004150390625,
-0.0039215087890625,
0.045440673828125,
-0.002628326416015625,
0.0782470703125,
-0.051239013671875,
0.037841796875,
0.01456451416015625,
0.053924560546875,
0.03997802734375,
0.007537841796875,
0.0220947265625,
-0.023529052734375,
0.03271484375,
0.064208984375,
-0.0197906494140625,
-0.05029296875,
-0.00606536865234375,
-0.046905517578125,
-0.0149078369140625,
0.0176239013671875,
-0.0019626617431640625,
-0.026397705078125,
0.017364501953125,
0.0278472900390625,
-0.00850677490234375,
0.01483154296875,
-0.01357269287109375,
0.01229095458984375,
-0.0003445148468017578,
-0.028839111328125,
0.01557159423828125,
-0.0792236328125,
-0.040008544921875,
-0.00887298583984375,
-0.004344940185546875,
0.0164642333984375,
-0.024444580078125,
-0.01348114013671875,
0.00992584228515625,
0.0161895751953125,
-0.00449371337890625,
-0.0249176025390625,
0.0016355514526367188,
0.06414794921875,
-0.035430908203125,
0.0198974609375,
-0.0040435791015625,
0.0281524658203125,
0.0268402099609375,
-0.0163116455078125,
0.04949951171875,
0.061614990234375,
-0.04638671875,
-0.03314208984375,
0.04229736328125,
0.019378662109375,
-0.003917694091796875,
-0.033233642578125,
0.0164947509765625,
0.037353515625,
-0.0168304443359375,
0.052581787109375,
0.005008697509765625,
0.029937744140625,
-0.01009368896484375,
0.025848388671875,
0.027252197265625,
0.0306549072265625,
-0.0087738037109375,
0.07342529296875,
-0.04290771484375,
-0.0243988037109375,
-0.028533935546875,
-0.04339599609375,
0.017669677734375,
0.02764892578125,
0.041229248046875,
-0.0004906654357910156,
0.0018310546875,
-0.01366424560546875,
0.0258026123046875,
-0.001178741455078125
] |
b0321f2b9a68f6faa07313a671c139de664f5dbc
|
Wordpress Stackexchange
Q: Where do I start from I'm student web developer and I'd like to know the things I should know before venturing into WordPress. Where do I start?
A: Glad your taking the jump into wordpress, wordpress is an amazing platform for developers and non-developers alike, if you have knowledge of PHP, HTML, CSS (and jQuery in some instances) you will enjoy working with wordpress.
A great place to start understanding wordpress would of-course be the wordpress website itself.
http://codex.wordpress.org/Main_Page
I hope this helps, for more specific tutorials and tips / tricks i find myself scouring google every-time i need something.
|
Q: Where do I start from I'm student web developer and I'd like to know the things I should know before venturing into WordPress. Where do I start?
A: Glad your taking the jump into wordpress, wordpress is an amazing platform for developers and non-developers alike, if you have knowledge of PHP, HTML, CSS (and jQuery in some instances) you will enjoy working with wordpress.
A great place to start understanding wordpress would of-course be the wordpress website itself.
http://codex.wordpress.org/Main_Page
I hope this helps, for more specific tutorials and tips / tricks i find myself scouring google every-time i need something.
A: WordPress Codex is official documentation wiki for the project. It is far from perfect in advanced corners, but basics are covered well.
Since you will need to spend a lot of time in WordPress source, it is best to have it installed and running on your local computer. Any decent Apache-MySQL-PHP stack will do. PHP debugger and good PHP-aware IDE will be more than beneficial.
You can see what typical tools of WordPress developers are in this question - Software for WordPress Theme and Plugin Development?
A: You can use many of the available tutorials on internet.
Use this https://developer.wordpress.org/ and you can be an expert. If you feel hard to follow there are hundrerds of tutorials available. I would suggest the following tutorials.
*
*https://www.taniarascia.com/tutorials/#wordpress
*https://premium.wpmudev.org/blog/theme-development/
*https://code.tutsplus.com/series/developing-your-first-wordpress-theme--wp-338
Please make use of it if you are still helpless
|
wordpress
|
{
"language": "en",
"length": 240,
"provenance": "stackexchange_00019.jsonl.gz:408312",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13793"
}
|
[
0.0177459716796875,
0.00022149085998535156,
-0.0023097991943359375,
0.030548095703125,
0.0027713775634765625,
-0.033416748046875,
0.022705078125,
-0.03558349609375,
0.006927490234375,
0.00016891956329345703,
-0.04156494140625,
-0.0005183219909667969,
-0.0305023193359375,
-0.02801513671875,
0.00417327880859375,
-0.0655517578125,
0.0322265625,
-0.044464111328125,
0.003269195556640625,
0.010009765625,
-0.0175018310546875,
0.036956787109375,
0.01739501953125,
-0.006938934326171875,
0.047698974609375,
-0.058837890625,
0.018768310546875,
-0.0205078125,
0.047637939453125,
0.0096588134765625,
0.0269775390625,
-0.019378662109375,
0.0010271072387695312,
0.0121002197265625,
0.005718231201171875,
-0.0011453628540039062,
-0.004901885986328125,
0.0201416015625,
0.0235595703125,
0.007904052734375,
0.0309600830078125,
-0.0290069580078125,
0.0313720703125,
0.01953125,
-0.00502777099609375,
-0.017242431640625,
0.02655029296875,
-0.0239105224609375,
0.038818359375,
-0.031829833984375,
0.0162811279296875,
0.037109375,
0.033294677734375,
-0.0223846435546875,
-0.0125274658203125,
0.0240936279296875,
0.068603515625,
-0.0443115234375,
0.0252685546875,
-0.053192138671875,
-0.056610107421875,
0.00795745849609375,
0.043487548828125,
0.00848388671875,
-0.00655364990234375,
-0.01126861572265625,
0.0018463134765625,
0.0210113525390625,
-0.048095703125,
-0.0154266357421875,
0.0265960693359375,
-0.0252227783203125,
0.0052032470703125,
0.0019378662109375,
0.005157470703125,
-0.003330230712890625,
0.0043487548828125,
-0.0004279613494873047,
0.0293426513671875,
0.0218048095703125,
0.05084228515625,
0.0242156982421875,
0.00323486328125,
-0.040924072265625,
0.0155181884765625,
-0.034210205078125,
0.0160675048828125,
-0.00662994384765625,
-0.040924072265625,
-0.01027679443359375,
-0.030181884765625,
0.0257720947265625,
-0.044097900390625,
-0.0019254684448242188,
-0.01149749755859375,
-0.00347900390625,
0.0017910003662109375,
-0.0015468597412109375,
0.0114593505859375,
0.01146697998046875,
0.01401519775390625,
-0.0299835205078125,
0.00440216064453125,
-0.022491455078125,
-0.01068878173828125,
0.048065185546875,
0.033905029296875,
0.0124969482421875,
0.0038928985595703125,
0.0017423629760742188,
-0.0024433135986328125,
-0.01526641845703125,
-0.0200347900390625,
-0.0178985595703125,
-0.017364501953125,
-0.0005035400390625,
-0.036865234375,
0.0206756591796875,
-0.01091766357421875,
-0.0010614395141601562,
0.01502227783203125,
0.03253173828125,
0.0032291412353515625,
0.004306793212890625,
-0.0018281936645507812,
0.0005559921264648438,
-0.019317626953125,
-0.026092529296875,
-0.0014944076538085938,
0.0247039794921875,
0.0038928985595703125,
0.0166015625,
-0.0293121337890625,
-0.02996826171875,
-0.06494140625,
-0.017333984375,
0.0440673828125,
-0.0125274658203125,
0.005290985107421875,
-0.0012121200561523438,
0.004497528076171875,
0.00525665283203125,
0.0303497314453125,
-0.03802490234375,
0.031341552734375,
0.01131439208984375,
0.0219573974609375,
0.0279541015625,
-0.0167694091796875,
-0.01102447509765625,
0.019287109375,
0.0186767578125,
-0.0164337158203125,
0.00859832763671875,
0.03955078125,
0.0049285888671875,
-0.023895263671875,
0.01690673828125,
0.0286865234375,
0.04522705078125,
-0.009033203125,
0.0178070068359375,
0.06488037109375,
-0.0052337646484375,
0.0184478759765625,
-0.0325927734375,
-0.06549072265625,
0.0009059906005859375,
0.0198211669921875,
-0.044464111328125,
0.0189056396484375,
0.0328369140625,
0.0692138671875,
-0.0186309814453125,
0.005767822265625,
-0.0143280029296875,
0.01377105712890625,
-0.0174713134765625,
0.01194000244140625,
0.0645751953125,
0.01922607421875,
0.00010317564010620117,
0.0155487060546875,
0.00229644775390625,
-0.0233612060546875,
-0.0003743171691894531,
0.00396728515625,
0.01168060302734375,
0.01132965087890625,
-0.0009360313415527344,
0.0191192626953125,
0.03851318359375,
-0.0296630859375,
0.046875,
0.021026611328125,
-0.0687255859375,
-0.0220489501953125,
-0.0221405029296875,
-0.01458740234375,
-0.00501251220703125,
-0.0223541259765625,
0.042694091796875,
-0.054534912109375,
0.0025615692138671875,
-0.01873779296875,
-0.0347900390625,
0.0216522216796875,
0.014984130859375,
0.07763671875,
0.01413726806640625,
-0.026824951171875,
0.01378631591796875,
0.033599853515625,
-0.0609130859375,
-0.0654296875,
0.028594970703125,
-0.00965118408203125,
0.0145721435546875,
-0.0106201171875,
-0.0175933837890625,
-0.01480865478515625,
-0.0220947265625,
-0.01061248779296875,
0.019317626953125,
0.049468994140625,
-0.027984619140625,
0.0047607421875,
-0.019256591796875,
0.0240936279296875,
0.023284912109375,
-0.06414794921875,
0.017486572265625,
0.004673004150390625,
0.0171356201171875,
-0.0213775634765625,
-0.0166168212890625,
-0.0191497802734375,
-0.0382080078125,
0.00707244873046875,
0.03155517578125,
0.0212554931640625,
0.0111846923828125,
-0.0261993408203125,
-0.00350189208984375,
0.0247955322265625,
-0.05389404296875,
-0.0216522216796875,
0.015838623046875,
0.00403594970703125,
0.05609130859375,
-0.0162811279296875,
-0.0094146728515625,
0.0151824951171875,
-0.0219573974609375,
-0.01641845703125,
0.022674560546875,
-0.00023949146270751953,
-0.002323150634765625,
0.006801605224609375,
0.003772735595703125,
0.007137298583984375,
-0.04913330078125,
-0.0286102294921875,
-0.0244293212890625,
-0.005523681640625,
0.01377105712890625,
0.015655517578125,
0.0118255615234375,
-0.0155029296875,
-0.0154571533203125,
0.0178375244140625,
0.003688812255859375,
-0.003040313720703125,
0.012847900390625,
0.03759765625,
0.010467529296875,
-0.0227508544921875,
-0.0170135498046875,
0.0229949951171875,
0.020233154296875,
-0.01280975341796875,
-0.010650634765625,
-0.00972747802734375,
-0.01467132568359375,
0.028564453125,
-0.036102294921875,
0.006641387939453125,
0.007167816162109375,
0.0046234130859375,
-0.0122222900390625,
0.015045166015625,
-0.0027923583984375,
-0.03619384765625,
0.0157928466796875,
0.01273345947265625,
-0.043212890625,
0.033966064453125,
-0.005886077880859375,
-0.0050811767578125,
0.006259918212890625,
-0.01241302490234375,
0.029815673828125,
0.0218505859375,
-0.0263519287109375,
-0.001956939697265625,
0.0218505859375,
0.027679443359375,
-0.04156494140625,
-0.0169525146484375,
0.04644775390625,
-0.0911865234375,
-0.00439453125,
0.0300140380859375,
0.0252532958984375,
-0.01457977294921875,
-0.028717041015625,
-0.0200653076171875,
-0.0019521713256835938,
-0.07476806640625,
-0.07037353515625,
-0.03912353515625,
-0.08917236328125,
-0.02825927734375,
0.0036373138427734375,
-0.044219970703125,
0.01934814453125,
0.029144287109375,
0.0291900634765625,
-0.0097503662109375,
-0.023193359375,
-0.027374267578125,
-0.039642333984375,
-0.06072998046875,
-0.04083251953125,
-0.008331298828125,
-0.00173187255859375,
0.006175994873046875,
0.0112457275390625,
-0.0104522705078125,
-0.028961181640625,
-0.0286407470703125,
0.034027099609375,
-0.00981903076171875,
-0.0297393798828125,
-0.032073974609375,
-0.0146942138671875,
0.026885986328125,
0.010833740234375,
0.0245819091796875,
0.0012149810791015625,
0.01220703125,
-0.01531219482421875,
0.00614166259765625,
-0.040863037109375,
-0.021759033203125,
0.016571044921875,
-0.0181884765625,
-0.07818603515625,
-0.020294189453125,
-0.07977294921875,
-0.0070343017578125,
0.0311431884765625,
-0.01171875,
0.005672454833984375,
0.005096435546875,
-0.03192138671875,
0.033477783203125,
-0.0115814208984375,
0.0006041526794433594,
-0.0031452178955078125,
-0.032928466796875,
-0.0189208984375,
0.0777587890625,
0.006103515625,
0.01715087890625,
0.0020313262939453125,
0.00910186767578125,
-0.044677734375,
-0.01206207275390625,
-0.013824462890625,
-0.00691986083984375,
-0.017059326171875,
0.00008291006088256836,
-0.02178955078125,
-0.060791015625,
0.06976318359375,
0.0115814208984375,
0.004016876220703125,
-0.0133209228515625,
-0.0252685546875,
0.021270751953125,
0.09185791015625,
-0.02642822265625,
0.00550079345703125,
0.040863037109375,
-0.0238800048828125,
-0.017974853515625,
0.06011962890625,
-0.1292724609375,
0.00848388671875,
-0.064208984375,
0.0295867919921875,
-0.0178070068359375,
0.0017681121826171875,
-0.04803466796875,
0.01511383056640625,
-0.043060302734375,
-0.041778564453125,
0.004146575927734375,
-0.01471710205078125,
0.0186920166015625,
-0.020965576171875,
0.005420684814453125,
-0.0266571044921875,
0.0269927978515625,
-0.05328369140625,
-0.07452392578125,
-0.01351165771484375,
0.004253387451171875,
0.04180908203125,
0.0027942657470703125,
-0.026947021484375,
-0.00801849365234375,
0.044403076171875,
-0.0287017822265625,
-0.0123138427734375,
0.0118408203125,
0.060150146484375,
-0.051361083984375,
-0.045989990234375,
-0.0228271484375,
-0.0538330078125,
-0.049163818359375,
-0.06201171875,
0.016204833984375,
0.0175933837890625,
-0.0163726806640625,
0.0009479522705078125,
-0.02276611328125,
0.01812744140625,
0.03143310546875,
0.003631591796875,
0.00872802734375,
0.03521728515625,
-0.0171051025390625,
0.019683837890625,
0.0013885498046875,
0.0251922607421875,
0.0299835205078125,
0.01763916015625,
-0.0038127899169921875,
0.00594329833984375,
0.01448822021484375,
0.0153656005859375,
-0.034759521484375,
-0.038787841796875,
-0.005279541015625,
0.032440185546875,
0.00438690185546875,
0.03460693359375,
0.0128936767578125,
-0.01128387451171875,
0.055755615234375,
-0.004856109619140625,
0.01548004150390625,
-0.02642822265625,
0.0187225341796875,
0.004467010498046875,
-0.0015926361083984375,
0.004375457763671875,
-0.00949859619140625,
0.025299072265625,
-0.051422119140625,
-0.006946563720703125,
0.0247344970703125,
0.026519775390625,
-0.0087127685546875,
-0.0157012939453125,
0.0235595703125,
0.012054443359375,
0.003543853759765625,
-0.006072998046875,
-0.03680419921875,
0.03863525390625,
0.0250396728515625,
-0.00225830078125,
0.00371551513671875,
-0.0006804466247558594,
0.00354766845703125,
-0.003223419189453125,
0.0236968994140625,
-0.0333251953125,
0.00949859619140625,
0.0185394287109375,
-0.03253173828125,
-0.0262451171875,
-0.0222930908203125,
0.09991455078125,
-0.006938934326171875,
-0.06622314453125,
0.0300140380859375,
-0.03387451171875,
0.019317626953125,
0.036834716796875,
0.01221466064453125,
0.055511474609375,
-0.000804901123046875,
-0.0222930908203125,
-0.0023956298828125,
-0.0311737060546875,
-0.033294677734375,
-0.053741455078125,
-0.029022216796875,
-0.0325927734375,
0.0026721954345703125,
0.036102294921875,
0.019927978515625,
-0.0279388427734375,
0.04095458984375,
-0.015380859375,
0.04022216796875,
0.01377105712890625,
0.013153076171875,
0.00600433349609375,
0.0159759521484375,
-0.0034084320068359375,
-0.0009274482727050781,
0.00982666015625,
-0.0217437744140625,
-0.01006317138671875,
0.00414276123046875,
0.041900634765625,
0.00424957275390625,
-0.0012617111206054688,
0.0273284912109375,
-0.031463623046875,
-0.00048732757568359375,
-0.0225372314453125,
0.0036678314208984375,
-0.02471923828125,
0.034210205078125,
0.044158935546875,
-0.0272216796875,
-0.0017528533935546875,
0.01580810546875,
0.036651611328125,
0.03704833984375,
0.053985595703125,
-0.034912109375,
0.01503753662109375,
-0.0176849365234375,
0.0011653900146484375,
-0.0091705322265625,
0.0063629150390625,
0.0064849853515625,
-0.04815673828125,
-0.0242462158203125,
-0.0223388671875,
-0.02880859375,
0.06683349609375,
-0.001277923583984375,
-0.0002474784851074219,
-0.046173095703125,
0.054595947265625,
-0.06622314453125,
-0.0021228790283203125,
0.019775390625,
-0.0187530517578125,
-0.044952392578125,
-0.0048065185546875,
-0.06671142578125,
-0.02777099609375,
-0.064208984375,
-0.03033447265625,
-0.05426025390625,
0.02996826171875,
-0.0281982421875,
-0.0146484375,
-0.002620697021484375,
0.0223541259765625,
-0.01396942138671875,
0.049346923828125,
-0.001194000244140625,
-0.01319122314453125,
0.0088653564453125,
0.05279541015625,
-0.0091094970703125,
0.0322265625,
0.0284271240234375,
0.039764404296875,
-0.003070831298828125,
-0.0418701171875,
0.032012939453125,
-0.020599365234375,
-0.03924560546875,
-0.0175933837890625,
-0.039276123046875,
-0.0004372596740722656,
0.03790283203125,
-0.01374053955078125,
-0.0033588409423828125,
-0.034149169921875,
0.007083892822265625,
-0.00948333740234375,
0.052215576171875,
-0.0423583984375,
0.003391265869140625,
-0.007274627685546875,
-0.0189971923828125,
0.03106689453125,
0.0216217041015625,
-0.0154876708984375,
-0.01264190673828125,
-0.00904083251953125,
0.0024929046630859375,
0.022735595703125,
-0.01346588134765625,
0.03662109375,
0.0006814002990722656,
-0.00689697265625,
0.0305328369140625,
0.0214385986328125,
0.033538818359375,
0.009796142578125,
0.0253143310546875,
-0.04339599609375,
-0.062103271484375,
0.0175628662109375,
0.006069183349609375,
-0.03521728515625,
0.0239105224609375,
-0.0272216796875,
0.0166015625,
0.0426025390625,
0.07183837890625,
-0.06915283203125,
0.0111083984375,
0.00380706787109375,
-0.061309814453125,
-0.016021728515625,
-0.006916046142578125,
-0.0037174224853515625,
-0.0343017578125,
0.02783203125,
0.00858306884765625,
-0.0312347412109375,
-0.006603240966796875,
-0.00838470458984375,
-0.00812530517578125,
-0.0262603759765625,
0.0775146484375,
0.028411865234375,
-0.10357666015625,
0.03887939453125,
0.055511474609375,
-0.004474639892578125,
-0.0394287109375,
-0.0220489501953125,
0.04754638671875,
-0.0164642333984375,
-0.03253173828125,
0.058868408203125,
-0.0144805908203125,
0.03338623046875,
0.038818359375,
-0.01009368896484375,
-0.0243377685546875,
0.03375244140625,
-0.039459228515625,
0.0574951171875,
-0.0179595947265625,
-0.0035114288330078125,
-0.0203704833984375,
-0.0430908203125,
0.0093231201171875,
0.018463134765625,
-0.00690460205078125,
0.0303192138671875,
0.01114654541015625,
-0.033935546875,
-0.01910400390625,
-0.00827789306640625,
0.060791015625,
-0.00128936767578125,
-0.0248870849609375,
0.033538818359375,
0.03411865234375,
-0.020233154296875,
-0.004657745361328125,
-0.0643310546875,
-0.00505828857421875,
0.051605224609375,
-0.047607421875,
0.01065826416015625,
0.03363037109375,
-0.019378662109375,
-0.029541015625,
-0.0210418701171875,
0.0078582763671875,
-0.005306243896484375,
0.02728271484375,
-0.0142974853515625,
-0.0229339599609375,
-0.03466796875,
-0.033447265625,
0.04962158203125,
0.0271759033203125,
0.019287109375,
-0.0419921875,
-0.0277252197265625,
-0.002765655517578125,
0.045501708984375,
0.0189056396484375,
0.00490570068359375,
-0.0265655517578125,
0.016265869140625,
0.06475830078125,
0.028472900390625,
0.01535797119140625,
0.0189666748046875,
-0.008514404296875,
0.01517486572265625,
-0.009490966796875,
-0.036651611328125,
0.0171966552734375,
-0.03192138671875,
-0.0343017578125,
-0.0032672882080078125,
0.00431060791015625,
-0.00042557716369628906,
0.0167388916015625,
-0.0157470703125,
-0.02874755859375,
0.0120086669921875,
-0.0013523101806640625,
0.0506591796875,
-0.032562255859375,
0.04327392578125,
-0.01006317138671875,
-0.00592803955078125,
0.0321044921875,
-0.045989990234375,
0.05303955078125,
-0.00293731689453125,
0.03717041015625,
0.0279693603515625,
0.016571044921875,
0.01873779296875,
0.0017423629760742188,
0.035125732421875,
0.031463623046875,
-0.047454833984375,
0.053985595703125,
-0.0234832763671875,
0.006923675537109375,
-0.097412109375,
-0.01739501953125,
0.039947509765625,
0.0733642578125,
-0.038787841796875,
0.006397247314453125,
0.003520965576171875,
-0.00020778179168701172,
0.0029144287109375,
-0.045379638671875,
0.02984619140625,
0.0231170654296875,
-0.017608642578125,
-0.024627685546875,
0.007785797119140625,
0.03668212890625,
-0.0130462646484375,
-0.00823211669921875,
0.004192352294921875,
-0.0039825439453125,
0.03240966796875,
0.0179443359375,
-0.0086669921875,
0.0134735107421875,
-0.03106689453125,
-0.0258331298828125,
0.0268096923828125,
0.0305938720703125,
-0.002460479736328125,
0.007568359375,
-0.006221771240234375,
0.036895751953125,
-0.0116729736328125,
0.00579071044921875,
-0.00954437255859375,
0.03594970703125,
0.019989013671875,
0.01551055908203125,
0.0283966064453125,
0.0268402099609375,
0.0218963623046875,
-0.00917816162109375,
-0.0010318756103515625,
0.021514892578125,
-0.0250396728515625,
-0.0164031982421875,
0.000007927417755126953,
-0.025421142578125,
0.0005540847778320312,
-0.01702880859375,
0.024658203125,
0.0195770263671875,
0.0207061767578125,
-0.01442718505859375,
0.033111572265625,
0.0030193328857421875,
-0.04071044921875,
0.013916015625,
-0.04034423828125,
0.055419921875,
-0.00016558170318603516,
-0.0885009765625,
-0.021392822265625,
0.023651123046875,
-0.0266876220703125,
0.0258636474609375,
0.042266845703125,
-0.00809478759765625,
0.00577545166015625,
0.0188140869140625,
-0.0161590576171875,
-0.0143890380859375,
0.0212554931640625,
0.0185394287109375,
-0.00424957275390625,
0.01263427734375,
0.0190887451171875,
-0.05816650390625,
-0.029754638671875,
-0.0287628173828125,
0.03460693359375,
0.0220184326171875,
0.06707763671875,
-0.01995849609375,
0.03741455078125,
0.004131317138671875,
-0.0087127685546875,
0.0164794921875,
-0.01549530029296875,
0.040679931640625,
0.06048583984375,
0.01068878173828125,
-0.0272674560546875,
0.0217742919921875,
0.0479736328125,
0.01297760009765625,
-0.036041259765625,
0.043121337890625,
-0.015533447265625,
0.00046634674072265625,
-0.036590576171875,
-0.004669189453125,
-0.02294921875,
-0.0296630859375,
-0.0304718017578125,
-0.01983642578125,
0.0262908935546875,
-0.03485107421875,
-0.033294677734375,
0.0013513565063476562,
-0.01299285888671875,
-0.033111572265625,
-0.0203094482421875,
0.0076141357421875,
-0.038055419921875,
0.0195465087890625,
0.0282440185546875,
-0.10455322265625,
0.0089874267578125,
-0.0015192031860351562,
-0.052215576171875,
0.00864410400390625,
0.0267181396484375,
0.0239410400390625,
-0.08868408203125,
0.043701171875,
0.053070068359375,
0.06231689453125,
0.0201568603515625,
0.032562255859375,
-0.021270751953125,
-0.0201568603515625,
0.024261474609375,
0.052947998046875,
0.0247650146484375,
0.0088348388671875,
-0.039215087890625,
-0.0002071857452392578,
-0.004222869873046875,
-0.00634002685546875,
0.0018024444580078125,
-0.0099945068359375,
0.05780029296875,
0.0031070709228515625,
-0.0242919921875,
0.0032138824462890625,
-0.0291290283203125,
0.007785797119140625,
0.01201629638671875,
0.04254150390625,
-0.022674560546875,
-0.0309295654296875,
-0.07177734375,
-0.01551055908203125,
-0.034027099609375,
0.0271148681640625,
-0.0198974609375,
0.07147216796875,
0.0872802734375,
-0.058990478515625,
0.040130615234375,
0.07513427734375,
0.0670166015625,
0.1209716796875,
-0.0238189697265625,
-0.01947021484375,
0.007587432861328125,
-0.003742218017578125,
0.01457977294921875,
-0.065673828125,
-0.01555633544921875,
-0.04132080078125,
0.008819580078125,
-0.03515625,
0.0030879974365234375,
0.0220947265625,
-0.05352783203125,
-0.1546630859375,
0.09326171875,
-0.058807373046875,
-0.0440673828125,
-0.037750244140625,
-0.019317626953125,
-0.0009298324584960938,
0.00791168212890625,
-0.020843505859375,
-0.01207733154296875,
-0.04193115234375,
0.0011081695556640625,
0.019378662109375,
0.00827789306640625,
0.0130767822265625,
0.0037403106689453125,
-0.0560302734375,
0.03265380859375,
0.012664794921875,
0.01401519775390625,
-0.00597381591796875,
0.010223388671875,
0.00687408447265625,
0.045867919921875,
-0.00983428955078125,
-0.045257568359375,
-0.0239715576171875,
-0.0184783935546875,
0.0200042724609375,
0.0264892578125,
-0.037841796875,
-0.0011949539184570312,
0.053314208984375,
0.0294036865234375,
0.01898193359375,
-0.00585174560546875,
0.0325927734375,
-0.0260772705078125,
-0.0259246826171875,
-0.0298004150390625,
-0.0019779205322265625,
-0.0589599609375,
-0.0295562744140625,
0.00786590576171875,
0.01454925537109375,
0.01041412353515625,
-0.0244903564453125,
-0.0248565673828125,
-0.0160675048828125,
-0.0081939697265625,
-0.0029659271240234375,
-0.04217529296875,
-0.058074951171875,
0.102294921875,
-0.045745849609375,
0.016632080078125,
0.01377105712890625,
0.0340576171875,
0.06317138671875,
0.043365478515625,
0.0063323974609375,
-0.009429931640625,
-0.0011997222900390625,
0.0190277099609375,
0.0139923095703125,
0.017425537109375,
-0.0083465576171875,
-0.03271484375,
-0.0087127685546875,
0.0275421142578125,
0.039642333984375,
0.041351318359375,
-0.037139892578125,
0.013641357421875,
0.01313018798828125,
0.011138916015625,
0.0059051513671875,
-0.0097198486328125,
-0.0159454345703125,
0.05047607421875,
-0.03314208984375,
-0.0135040283203125,
-0.00982666015625,
-0.037872314453125,
0.004543304443359375,
0.031585693359375,
-0.029205322265625,
-0.007656097412109375,
0.0082550048828125,
0.042816162109375,
-0.0112152099609375,
0.006793975830078125
] |
e967fefd99b60c6d9a8d556932cf33c81a9c91a4
|
Wordpress Stackexchange
Q: adding a filter to a shortcode? <?php echo do_shortcode('[mingleforum]'); ?>
inserts the mingle forum into my content!
is it possible to use add_filter() on that?
A: As of 4.7 two filters pre_do_shortcode_tag and do_shortcode_tag have been added which you can use.
|
Q: adding a filter to a shortcode? <?php echo do_shortcode('[mingleforum]'); ?>
inserts the mingle forum into my content!
is it possible to use add_filter() on that?
A: As of 4.7 two filters pre_do_shortcode_tag and do_shortcode_tag have been added which you can use.
A: You can change your code to this:
<?php
$shortcode = do_shortcode('[mingleforum]');
echo apply_filters('my_new_filter',$shortcode);
?>
and then you can interact with that filter
add_filter('my_new_filter','my_new_filter_callback');
function my_new_filter_callback($shortcode){
//to stuff here
return $shortcode;
}
|
wordpress
|
{
"language": "en",
"length": 74,
"provenance": "stackexchange_00019.jsonl.gz:408316",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13810"
}
|
[
0.06982421875,
0.03094482421875,
-0.00426483154296875,
-0.055877685546875,
0.040679931640625,
-0.0266571044921875,
0.032318115234375,
-0.0179290771484375,
0.00664520263671875,
0.03619384765625,
0.0266571044921875,
-0.0138397216796875,
-0.015960693359375,
-0.0340576171875,
-0.038665771484375,
-0.0191802978515625,
-0.0160369873046875,
0.0092315673828125,
-0.0172119140625,
-0.0278778076171875,
-0.02117919921875,
-0.0279998779296875,
-0.01221466064453125,
-0.0736083984375,
0.013092041015625,
-0.005268096923828125,
0.063232421875,
-0.0191650390625,
0.0170135498046875,
0.0077362060546875,
0.0111236572265625,
-0.049835205078125,
0.041595458984375,
0.04058837890625,
-0.0782470703125,
0.09564208984375,
-0.020965576171875,
0.017791748046875,
-0.01058197021484375,
0.03680419921875,
0.040496826171875,
-0.0214080810546875,
0.01369476318359375,
0.00975799560546875,
-0.01494598388671875,
0.00020372867584228516,
0.04095458984375,
-0.012176513671875,
0.0195159912109375,
-0.040069580078125,
0.02166748046875,
-0.0130157470703125,
0.0465087890625,
-0.0712890625,
-0.0189971923828125,
-0.0013713836669921875,
-0.02252197265625,
-0.0113372802734375,
0.018218994140625,
-0.0013360977172851562,
-0.000759124755859375,
-0.01329803466796875,
0.0176849365234375,
-0.002140045166015625,
0.032135009765625,
-0.0017290115356445312,
-0.033203125,
0.017608642578125,
-0.028564453125,
0.05047607421875,
0.04248046875,
-0.0662841796875,
0.013336181640625,
-0.01678466796875,
0.0030727386474609375,
0.021514892578125,
-0.020233154296875,
0.004474639892578125,
0.02685546875,
-0.0016469955444335938,
-0.04345703125,
-0.0236968994140625,
-0.03863525390625,
0.00988006591796875,
-0.054046630859375,
0.0039520263671875,
-0.0192108154296875,
0.0171661376953125,
-0.0027828216552734375,
-0.0028171539306640625,
-0.00678253173828125,
-0.01189422607421875,
-0.032257080078125,
0.06427001953125,
0.01226043701171875,
-0.0088043212890625,
0.002056121826171875,
0.049835205078125,
-0.0033206939697265625,
0.033477783203125,
0.01113128662109375,
-0.033355712890625,
0.059722900390625,
-0.055572509765625,
-0.006153106689453125,
0.0289764404296875,
-0.014617919921875,
0.0088958740234375,
0.031005859375,
0.02642822265625,
0.0010786056518554688,
0.0028629302978515625,
-0.0374755859375,
0.0027561187744140625,
-0.039031982421875,
-0.0254974365234375,
-0.0924072265625,
0.01383209228515625,
-0.00441741943359375,
-0.0004458427429199219,
0.025146484375,
0.01207733154296875,
0.0592041015625,
-0.01425933837890625,
-0.030853271484375,
-0.037353515625,
-0.059844970703125,
-0.03271484375,
0.0186004638671875,
0.0018110275268554688,
-0.01541900634765625,
0.0014362335205078125,
-0.00405120849609375,
0.0219573974609375,
0.0025768280029296875,
-0.008453369140625,
0.0214080810546875,
-0.034271240234375,
-0.0002104043960571289,
0.0022449493408203125,
-0.009002685546875,
-0.0006012916564941406,
0.007717132568359375,
-0.01641845703125,
-0.0080108642578125,
0.02996826171875,
0.023651123046875,
0.019622802734375,
-0.0340576171875,
-0.06842041015625,
0.0125885009765625,
-0.0134429931640625,
0.005970001220703125,
0.0055694580078125,
-0.0001201629638671875,
0.01360321044921875,
-0.0038852691650390625,
-0.0009603500366210938,
-0.01153564453125,
0.004856109619140625,
0.036163330078125,
0.002506256103515625,
0.0123748779296875,
-0.010650634765625,
-0.0255126953125,
-0.00672149658203125,
-0.0455322265625,
0.0012416839599609375,
0.0109405517578125,
-0.0008969306945800781,
-0.0123138427734375,
0.01345062255859375,
0.006732940673828125,
-0.01497650146484375,
-0.01617431640625,
-0.00007909536361694336,
0.01195526123046875,
0.03607177734375,
0.0032291412353515625,
0.02215576171875,
0.01073455810546875,
-0.046295166015625,
0.03179931640625,
0.002361297607421875,
-0.0794677734375,
0.029876708984375,
0.02264404296875,
0.08074951171875,
0.0229034423828125,
0.00754547119140625,
0.07470703125,
-0.0006747245788574219,
0.00293731689453125,
-0.031585693359375,
-0.0038242340087890625,
-0.041961669921875,
0.0092926025390625,
-0.038604736328125,
-0.00977325439453125,
0.04620361328125,
0.017242431640625,
0.00023245811462402344,
0.0382080078125,
-0.01605224609375,
-0.0210418701171875,
0.0249786376953125,
-0.0291595458984375,
0.037628173828125,
-0.020843505859375,
-0.0584716796875,
0.017486572265625,
-0.037872314453125,
0.0027828216552734375,
-0.046234130859375,
-0.047088623046875,
0.051055908203125,
-0.0032176971435546875,
0.008056640625,
0.017059326171875,
-0.01136016845703125,
0.027252197265625,
0.0014238357543945312,
-0.001255035400390625,
-0.0010204315185546875,
0.051971435546875,
-0.048919677734375,
-0.00533294677734375,
-0.0423583984375,
-0.01132965087890625,
0.0007119178771972656,
-0.06719970703125,
0.0625,
-0.0150909423828125,
-0.0063018798828125,
-0.03057861328125,
-0.005558013916015625,
-0.0290069580078125,
-0.049560546875,
0.01318359375,
0.0472412109375,
0.0430908203125,
0.0157928466796875,
0.03753662109375,
0.0304412841796875,
0.07452392578125,
0.01381683349609375,
0.044097900390625,
-0.0261383056640625,
-0.002227783203125,
0.04339599609375,
-0.0182037353515625,
0.031402587890625,
-0.0003712177276611328,
-0.0396728515625,
0.0017709732055664062,
0.0220794677734375,
-0.0030231475830078125,
-0.00313568115234375,
0.01184844970703125,
-0.042236328125,
0.0197601318359375,
-0.07891845703125,
-0.049346923828125,
-0.0224761962890625,
0.054595947265625,
0.0019483566284179688,
0.023712158203125,
0.00439453125,
-0.0394287109375,
0.0252532958984375,
0.015106201171875,
-0.0435791015625,
-0.01064300537109375,
0.006725311279296875,
-0.0015716552734375,
0.0230712890625,
-0.0299224853515625,
0.01067352294921875,
-0.01230621337890625,
0.0030078887939453125,
-0.00045228004455566406,
0.0294342041015625,
-0.009918212890625,
-0.020782470703125,
0.012481689453125,
0.000385284423828125,
0.00592803955078125,
-0.01111602783203125,
0.027130126953125,
-0.0172119140625,
0.006053924560546875,
0.0079345703125,
-0.029632568359375,
0.05029296875,
0.058441162109375,
-0.04168701171875,
-0.0201263427734375,
-0.032684326171875,
0.038604736328125,
-0.04766845703125,
-0.02557373046875,
0.05072021484375,
-0.01824951171875,
0.015838623046875,
-0.00005817413330078125,
0.01328277587890625,
-0.02984619140625,
-0.0102386474609375,
-0.0072479248046875,
-0.004772186279296875,
-0.001384735107421875,
0.07354736328125,
0.01021575927734375,
-0.0215606689453125,
0.019805908203125,
-0.0187835693359375,
-0.026397705078125,
0.0244293212890625,
-0.035675048828125,
0.0011167526245117188,
-0.0246734619140625,
-0.041015625,
-0.0026302337646484375,
-0.01534271240234375,
-0.01493072509765625,
0.00807952880859375,
-0.01247406005859375,
0.01446533203125,
-0.06292724609375,
0.012054443359375,
-0.0224456787109375,
-0.037994384765625,
-0.021575927734375,
0.045562744140625,
-0.018096923828125,
0.0134124755859375,
0.013397216796875,
0.06829833984375,
0.0167236328125,
-0.0173187255859375,
0.0295562744140625,
-0.0004718303680419922,
-0.0292510986328125,
0.00827789306640625,
0.017303466796875,
-0.045989990234375,
0.0194854736328125,
0.006317138671875,
-0.03009033203125,
0.0233612060546875,
-0.01561737060546875,
-0.0305328369140625,
-0.017974853515625,
-0.005157470703125,
0.007358551025390625,
-0.016510009765625,
0.003662109375,
-0.00269317626953125,
0.0141143798828125,
-0.049041748046875,
0.045623779296875,
-0.0244903564453125,
-0.0048980712890625,
-0.044189453125,
-0.00800323486328125,
-0.02862548828125,
-0.0230865478515625,
-0.00348663330078125,
-0.00984954833984375,
-0.00435638427734375,
0.01525115966796875,
-0.01293182373046875,
0.027862548828125,
-0.00626373291015625,
0.001804351806640625,
-0.0188751220703125,
-0.04168701171875,
-0.03778076171875,
0.0787353515625,
-0.002590179443359375,
0.03997802734375,
0.037872314453125,
-0.0020046234130859375,
0.0167999267578125,
-0.0023708343505859375,
0.05682373046875,
0.012054443359375,
0.0295257568359375,
-0.056671142578125,
-0.041107177734375,
-0.0692138671875,
0.05267333984375,
-0.0726318359375,
-0.0014324188232421875,
0.0201416015625,
0.006076812744140625,
0.0283660888671875,
0.0027904510498046875,
-0.05780029296875,
-0.0323486328125,
-0.0110626220703125,
-0.02099609375,
-0.03887939453125,
0.0024509429931640625,
0.00576019287109375,
-0.01271820068359375,
0.034423828125,
-0.041839599609375,
0.042877197265625,
0.02069091796875,
0.00856781005859375,
-0.0028171539306640625,
-0.005603790283203125,
-0.0194091796875,
-0.036224365234375,
0.01314544677734375,
-0.07659912109375,
-0.007144927978515625,
-0.01122283935546875,
0.050933837890625,
0.025115966796875,
-0.0404052734375,
-0.01384735107421875,
0.03466796875,
-0.0011777877807617188,
-0.021881103515625,
-0.006725311279296875,
-0.0061187744140625,
-0.06207275390625,
0.03485107421875,
-0.0033359527587890625,
-0.00975799560546875,
0.01194000244140625,
0.00627899169921875,
-0.0203857421875,
0.0250244140625,
-0.0260009765625,
-0.0010623931884765625,
-0.01320648193359375,
-0.03521728515625,
-0.034454345703125,
-0.0672607421875,
-0.0109710693359375,
-0.03997802734375,
-0.041748046875,
0.0202484130859375,
-0.034027099609375,
0.01045989990234375,
-0.004680633544921875,
-0.0251007080078125,
-0.0164337158203125,
0.02239990234375,
0.0254974365234375,
0.0173492431640625,
-0.007190704345703125,
-0.06719970703125,
0.0195465087890625,
0.0416259765625,
-0.0330810546875,
0.0618896484375,
0.0546875,
-0.007640838623046875,
0.024658203125,
0.002002716064453125,
0.01486968994140625,
-0.0699462890625,
0.0638427734375,
-0.01018524169921875,
0.033233642578125,
-0.006427764892578125,
-0.0166473388671875,
0.043121337890625,
0.014373779296875,
-0.024383544921875,
0.0305328369140625,
0.027984619140625,
0.00033020973205566406,
-0.034912109375,
-0.0083465576171875,
-0.01245880126953125,
-0.03326416015625,
0.011260986328125,
-0.01093292236328125,
0.017974853515625,
0.02581787109375,
-0.0019378662109375,
0.0079803466796875,
0.005970001220703125,
0.004199981689453125,
0.015655517578125,
-0.002315521240234375,
-0.006595611572265625,
0.053985595703125,
-0.040771484375,
-0.00616455078125,
0.0165863037109375,
-0.0008249282836914062,
0.054718017578125,
0.011810302734375,
-0.01470947265625,
-0.058502197265625,
0.0022029876708984375,
-0.0026454925537109375,
-0.0115203857421875,
0.02630615234375,
-0.003879547119140625,
0.0249481201171875,
-0.01152801513671875,
0.0202178955078125,
0.047943115234375,
0.0242462158203125,
-0.0011997222900390625,
-0.01256561279296875,
-0.042236328125,
0.00824737548828125,
0.03955078125,
0.0181884765625,
-0.06591796875,
0.05401611328125,
0.000469207763671875,
0.01241302490234375,
0.0321044921875,
-0.0048370361328125,
0.0390625,
-0.04302978515625,
0.0198974609375,
-0.027130126953125,
0.0156402587890625,
-0.00858306884765625,
-0.02215576171875,
-0.012969970703125,
-0.01175689697265625,
-0.028778076171875,
0.0213775634765625,
0.0428466796875,
0.0253753662109375,
-0.01068878173828125,
0.01275634765625,
0.0137481689453125,
0.004596710205078125,
-0.027587890625,
-0.04986572265625,
0.0041656494140625,
0.020721435546875,
0.0131378173828125,
-0.03509521484375,
-0.00965118408203125,
-0.0091400146484375,
-0.0218658447265625,
-0.00887298583984375,
-0.0245513916015625,
-0.0229034423828125,
0.02044677734375,
-0.01415252685546875,
-0.052032470703125,
-0.025604248046875,
-0.01430511474609375,
-0.00447845458984375,
0.019256591796875,
0.052581787109375,
-0.0117950439453125,
0.005584716796875,
-0.041778564453125,
0.031402587890625,
0.00576019287109375,
-0.0040740966796875,
0.0281982421875,
-0.0129547119140625,
0.001750946044921875,
-0.01274871826171875,
-0.025787353515625,
-0.0281829833984375,
-0.0121002197265625,
0.01163482666015625,
-0.01438140869140625,
0.0027370452880859375,
-0.0157470703125,
0.02471923828125,
-0.027008056640625,
-0.011138916015625,
0.00994873046875,
-0.00614166259765625,
-0.0182037353515625,
-0.0035457611083984375,
0.03619384765625,
-0.01212310791015625,
0.03472900390625,
0.012939453125,
0.0458984375,
0.01442718505859375,
0.005054473876953125,
-0.05426025390625,
0.0296173095703125,
0.0026111602783203125,
-0.054718017578125,
-0.00551605224609375,
-0.04852294921875,
-0.004993438720703125,
0.05023193359375,
-0.02923583984375,
0.0386962890625,
-0.0201873779296875,
-0.0010690689086914062,
0.0008845329284667969,
-0.00787353515625,
-0.033538818359375,
0.004604339599609375,
0.0297393798828125,
-0.040557861328125,
0.0009870529174804688,
-0.0206146240234375,
-0.0004949569702148438,
0.041046142578125,
-0.047576904296875,
0.021636962890625,
0.041229248046875,
-0.0401611328125,
0.047637939453125,
0.0662841796875,
-0.03662109375,
0.0005254745483398438,
-0.0028514862060546875,
-0.027587890625,
0.007659912109375,
0.007724761962890625,
-0.0131988525390625,
0.01488494873046875,
0.03375244140625,
-0.006786346435546875,
-0.0219573974609375,
0.01184844970703125,
-0.02484130859375,
0.034912109375,
0.037567138671875,
0.050933837890625,
-0.0645751953125,
0.00860595703125,
0.01204681396484375,
-0.050506591796875,
0.005092620849609375,
-0.005802154541015625,
-0.006130218505859375,
-0.01114654541015625,
0.08453369140625,
0.00098419189453125,
0.00560760498046875,
0.04217529296875,
0.0019512176513671875,
-0.01119232177734375,
-0.0400390625,
0.04266357421875,
0.004314422607421875,
0.0269317626953125,
-0.02099609375,
-0.030975341796875,
-0.005794525146484375,
-0.020233154296875,
0.0250091552734375,
-0.00074005126953125,
-0.0287933349609375,
-0.057159423828125,
-0.0010881423950195312,
0.01023101806640625,
-0.030029296875,
0.045135498046875,
-0.0157623291015625,
0.032073974609375,
0.031585693359375,
-0.025726318359375,
0.048736572265625,
-0.0197296142578125,
-0.02203369140625,
0.006153106689453125,
-0.013671875,
0.00970458984375,
0.0175628662109375,
-0.032257080078125,
0.01128387451171875,
-0.01690673828125,
-0.0074005126953125,
-0.01318359375,
-0.03887939453125,
0.04052734375,
-0.02716064453125,
-0.00806427001953125,
-0.002544403076171875,
0.00510406494140625,
0.006038665771484375,
-0.0028896331787109375,
-0.0010128021240234375,
-0.035064697265625,
-0.0364990234375,
-0.0035381317138671875,
-0.061126708984375,
0.01537322998046875,
0.00206756591796875,
-0.0838623046875,
0.0709228515625,
0.03704833984375,
0.0316162109375,
-0.0267181396484375,
0.0286865234375,
-0.0298614501953125,
-0.002124786376953125,
-0.0242919921875,
0.050262451171875,
0.034515380859375,
0.05181884765625,
-0.034912109375,
-0.0148773193359375,
0.03582763671875,
0.05963134765625,
-0.027923583984375,
-0.0097198486328125,
0.0156402587890625,
-0.006656646728515625,
0.037200927734375,
0.0101470947265625,
0.007099151611328125,
0.00901031494140625,
-0.023895263671875,
-0.034698486328125,
0.006122589111328125,
-0.040069580078125,
0.01099395751953125,
-0.033416748046875,
0.0011186599731445312,
-0.0022430419921875,
-0.007904052734375,
-0.00804901123046875,
-0.01275634765625,
-0.01427459716796875,
-0.0032672882080078125,
-0.00341796875,
-0.00759124755859375,
-0.004741668701171875,
-0.014739990234375,
0.03131103515625,
-0.027099609375,
-0.0016698837280273438,
-0.04022216796875,
-0.0160675048828125,
0.0014972686767578125,
-0.0111236572265625,
0.0902099609375,
0.063232421875,
0.0265655517578125,
0.07220458984375,
-0.0306854248046875,
0.050506591796875,
-0.0158233642578125,
-0.02557373046875,
0.0189361572265625,
0.0148468017578125,
0.0369873046875,
-0.03759765625,
-0.04498291015625,
0.0257110595703125,
0.042144775390625,
-0.0118865966796875,
-0.04412841796875,
0.0019588470458984375,
-0.0152435302734375,
0.010009765625,
0.006591796875,
-0.0022716522216796875,
0.006763458251953125,
0.031494140625,
-0.0153656005859375,
-0.003162384033203125,
0.01435089111328125,
0.0188140869140625,
0.0176849365234375,
0.049285888671875,
-0.033905029296875,
0.0088348388671875,
-0.03802490234375,
0.04400634765625,
-0.0027141571044921875,
0.05059814453125,
0.0038471221923828125,
0.069091796875,
-0.045867919921875,
-0.0173187255859375,
-0.0399169921875,
0.028289794921875,
-0.01317596435546875,
0.06494140625,
-0.0643310546875,
-0.017486572265625,
-0.00986480712890625,
0.047119140625,
0.004878997802734375,
0.02972412109375,
0.02593994140625,
0.0081939697265625,
-0.0203399658203125,
0.003108978271484375,
0.06683349609375,
-0.0285491943359375,
0.005489349365234375,
-0.044830322265625,
0.0077667236328125,
0.025115966796875,
-0.00732421875,
0.005260467529296875,
-0.039886474609375,
0.0670166015625,
-0.055389404296875,
0.041900634765625,
-0.0268096923828125,
-0.034820556640625,
0.0292816162109375,
-0.0123291015625,
0.08526611328125,
-0.0325927734375,
-0.04095458984375,
-0.0174713134765625,
-0.0115814208984375,
-0.032684326171875,
0.03558349609375,
0.039794921875,
-0.00646209716796875,
0.0013589859008789062,
0.01299285888671875,
-0.043243408203125,
0.0169830322265625,
0.050445556640625,
-0.029388427734375,
-0.0031185150146484375,
0.038055419921875,
-0.050628662109375,
-0.058502197265625,
-0.036590576171875,
-0.041900634765625,
0.042633056640625,
0.056793212890625,
0.038055419921875,
-0.00041985511779785156,
0.0479736328125,
-0.033447265625,
-0.053314208984375,
0.032318115234375,
-0.01580810546875,
0.032806396484375,
0.0181427001953125,
-0.047454833984375,
-0.0245208740234375,
0.041778564453125,
-0.020538330078125,
0.060638427734375,
-0.0203399658203125,
0.001094818115234375,
-0.04144287109375,
0.0293121337890625,
-0.04449462890625,
0.09814453125,
-0.005176544189453125,
-0.0089569091796875,
-0.032989501953125,
-0.03204345703125,
0.0438232421875,
0.0450439453125,
0.02490234375,
0.00006985664367675781,
0.042510986328125,
0.030853271484375,
0.0106201171875,
0.0418701171875,
0.01132965087890625,
0.027801513671875,
-0.052459716796875,
0.0386962890625,
0.013336181640625,
-0.021209716796875,
0.0207977294921875,
0.0172576904296875,
-0.0308685302734375,
0.028533935546875,
-0.033599853515625,
0.042022705078125,
0.0380859375,
0.062744140625,
-0.0212249755859375,
0.017333984375,
0.0244598388671875,
0.0052337646484375,
-0.00250244140625,
0.039398193359375,
-0.0282135009765625,
-0.04254150390625,
-0.0279388427734375,
-0.019561767578125,
-0.0245513916015625,
-0.07427978515625,
-0.04156494140625,
-0.03729248046875,
0.015655517578125,
0.0187835693359375,
-0.047119140625,
-0.0166168212890625,
0.03802490234375,
0.023834228515625,
-0.0076904296875,
-0.012298583984375,
-0.01558685302734375,
-0.0153961181640625,
-0.044647216796875,
-0.033782958984375,
-0.039794921875,
0.04132080078125,
-0.01219940185546875,
-0.0062103271484375,
0.0244598388671875,
-0.0022563934326171875,
-0.00024306774139404297,
0.0166778564453125,
-0.016387939453125,
0.060333251953125,
-0.06268310546875,
-0.03253173828125,
0.01285552978515625,
-0.004405975341796875,
-0.005344390869140625,
-0.045074462890625,
-0.0001277923583984375,
-0.048309326171875,
0.011474609375,
-0.01248931884765625,
0.004215240478515625,
0.0110321044921875,
-0.04241943359375,
-0.1424560546875,
0.04229736328125,
-0.0272979736328125,
-0.042022705078125,
-0.07904052734375,
-0.03009033203125,
0.0123138427734375,
-0.011962890625,
-0.0423583984375,
-0.0088958740234375,
-0.0732421875,
0.0517578125,
0.006496429443359375,
0.0258636474609375,
0.0152587890625,
-0.00890350341796875,
-0.04852294921875,
0.0008363723754882812,
-0.024444580078125,
0.01113128662109375,
0.0535888671875,
-0.042510986328125,
0.046356201171875,
0.0256805419921875,
-0.0655517578125,
-0.035186767578125,
-0.021270751953125,
-0.026397705078125,
0.016265869140625,
-0.034271240234375,
-0.028472900390625,
-0.034332275390625,
0.063232421875,
-0.0217132568359375,
0.020660400390625,
0.0117340087890625,
0.03515625,
-0.00913238525390625,
-0.036865234375,
0.00803375244140625,
0.0039005279541015625,
0.0026454925537109375,
-0.0002827644348144531,
-0.023956298828125,
0.0176544189453125,
-0.0192413330078125,
-0.0288848876953125,
-0.0128631591796875,
-0.0265960693359375,
-0.002338409423828125,
0.007740020751953125,
0.0299530029296875,
0.017120361328125,
0.08026123046875,
-0.048370361328125,
0.0150299072265625,
-0.0038909912109375,
0.00913238525390625,
0.04052734375,
-0.0341796875,
0.00009381771087646484,
-0.03399658203125,
0.027679443359375,
0.0015764236450195312,
0.0290679931640625,
0.056427001953125,
0.035308837890625,
-0.0238037109375,
-0.029266357421875,
0.0211944580078125,
0.012237548828125,
0.0095062255859375,
-0.041351318359375,
0.050323486328125,
0.029083251953125,
0.058135986328125,
-0.035614013671875,
0.02471923828125,
-0.0028362274169921875,
0.0015048980712890625,
0.00788116455078125,
0.00785064697265625,
0.0501708984375,
-0.00798797607421875,
-0.0092315673828125,
0.03131103515625,
-0.03729248046875,
-0.036376953125,
0.0018138885498046875,
-0.00251007080078125,
0.0290069580078125,
0.0088958740234375
] |
eed7e2b2f80ca0c9eb1c74f78d3ad42dd5183c35
|
Wordpress Stackexchange
Q: Is there any way of copy/pasting, duplicating, or auto-generating posts for fast testing? I always find myself creating posts every time to test layout or design.
For example, I create stuff like:
Content 1
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim
veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut
aliquip ex ea commodo consequat.
6 times.
Is there a fast way of copy pasting posts, duplicating them or auto-generating them, perhaps?
A: Ehm, Export/Import them with native functionality? :)
There is also official Theme Unit Test data with plenty of relevant stuff to go through when checking a theme.
|
Q: Is there any way of copy/pasting, duplicating, or auto-generating posts for fast testing? I always find myself creating posts every time to test layout or design.
For example, I create stuff like:
Content 1
Lorem ipsum dolor sit amet,
consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut
laoreet dolore magna aliquam erat
volutpat. Ut wisi enim ad minim
veniam, quis nostrud exerci tation
ullamcorper suscipit lobortis nisl ut
aliquip ex ea commodo consequat.
6 times.
Is there a fast way of copy pasting posts, duplicating them or auto-generating them, perhaps?
A: Ehm, Export/Import them with native functionality? :)
There is also official Theme Unit Test data with plenty of relevant stuff to go through when checking a theme.
A: I use Demo Data Creator plugin with it you can create and set:
*
*Number of users to create
*Number of blogs per user (for WPMU/MultiSite)
*Whether users must have a blog
*Number of categories in each blog
*Number of posts in each blog
*Number of paragraphs in each blog post
*Number of pages in each blog
*Number of top-level pages
*Number of levels to nest pages
*Number of comments per post for each blog
*Number of links in blogroll for each blog
|
wordpress
|
{
"language": "en",
"length": 205,
"provenance": "stackexchange_00019.jsonl.gz:408323",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13830"
}
|
[
0.01097869873046875,
0.0038013458251953125,
0.01385498046875,
0.005405426025390625,
-0.008514404296875,
-0.004913330078125,
0.01263427734375,
-0.037933349609375,
-0.02239990234375,
0.0280609130859375,
0.005535125732421875,
0.0229644775390625,
0.018218994140625,
-0.0288848876953125,
0.0308074951171875,
-0.005596160888671875,
0.0291900634765625,
-0.01296234130859375,
0.005512237548828125,
-0.0177764892578125,
0.004962921142578125,
-0.01160430908203125,
0.01702880859375,
0.109375,
0.033447265625,
-0.006961822509765625,
0.006946563720703125,
-0.005035400390625,
0.0257415771484375,
0.0059814453125,
0.0276336669921875,
-0.022796630859375,
0.0034809112548828125,
0.01153564453125,
-0.00960540771484375,
0.005245208740234375,
0.01393890380859375,
0.00516510009765625,
0.0211944580078125,
0.0040740966796875,
0.0260772705078125,
-0.0180206298828125,
0.031768798828125,
-0.02191162109375,
0.020843505859375,
-0.0161590576171875,
0.046722412109375,
-0.06097412109375,
0.035552978515625,
0.0026569366455078125,
0.00881195068359375,
0.020050048828125,
0.0099945068359375,
0.036285400390625,
-0.002498626708984375,
0.002017974853515625,
-0.03399658203125,
0.00467681884765625,
0.057830810546875,
-0.041961669921875,
-0.0273895263671875,
-0.06976318359375,
0.036956787109375,
0.0101776123046875,
-0.0142669677734375,
-0.0159912109375,
-0.037078857421875,
0.007419586181640625,
0.0543212890625,
0.001842498779296875,
0.0044708251953125,
0.010650634765625,
0.02032470703125,
-0.0174407958984375,
0.0269622802734375,
-0.031829833984375,
-0.00882720947265625,
-0.01371002197265625,
0.01522064208984375,
0.01165771484375,
-0.01406097412109375,
0.02069091796875,
-0.01873779296875,
-0.045806884765625,
-0.007572174072265625,
-0.03253173828125,
-0.00848388671875,
0.00882720947265625,
-0.024017333984375,
-0.048736572265625,
-0.006252288818359375,
-0.0966796875,
-0.05059814453125,
0.01422119140625,
0.01149749755859375,
-0.05859375,
-0.01325225830078125,
0.013641357421875,
-0.0027828216552734375,
0.0474853515625,
-0.03826904296875,
-0.0286407470703125,
0.051513671875,
-0.03472900390625,
0.015869140625,
0.012908935546875,
-0.0328369140625,
-0.0220489501953125,
0.044097900390625,
0.031646728515625,
-0.01251983642578125,
0.0182647705078125,
0.001621246337890625,
-0.021148681640625,
-0.00460052490234375,
0.04046630859375,
0.0219573974609375,
0.007801055908203125,
-0.0017070770263671875,
0.0179901123046875,
-0.040985107421875,
-0.0235595703125,
0.020904541015625,
0.02520751953125,
0.033538818359375,
0.0465087890625,
-0.0007510185241699219,
-0.01158905029296875,
0.07568359375,
-0.0129241943359375,
-0.0309600830078125,
-0.006378173828125,
0.036468505859375,
0.04144287109375,
0.02557373046875,
-0.009185791015625,
-0.00649261474609375,
0.0006160736083984375,
-0.00714111328125,
0.020233154296875,
-0.043212890625,
-0.062744140625,
0.00920867919921875,
-0.01959228515625,
0.010589599609375,
0.046539306640625,
0.017181396484375,
-0.003795623779296875,
0.001392364501953125,
-0.0399169921875,
0.0035762786865234375,
-0.0308380126953125,
0.023895263671875,
-0.0272216796875,
-0.01291656494140625,
-0.06097412109375,
-0.048675537109375,
-0.01328277587890625,
0.05615234375,
-0.00876617431640625,
0.0262908935546875,
0.006771087646484375,
0.03253173828125,
0.0266265869140625,
-0.00861358642578125,
0.0017414093017578125,
-0.028472900390625,
-0.01029205322265625,
0.0244140625,
0.037872314453125,
-0.046356201171875,
-0.01537322998046875,
0.02398681640625,
-0.0141754150390625,
-0.03472900390625,
0.02557373046875,
0.027313232421875,
-0.017059326171875,
0.0032825469970703125,
0.026336669921875,
-0.0095672607421875,
-0.0271453857421875,
0.04022216796875,
-0.01377105712890625,
-0.048065185546875,
-0.011383056640625,
0.007511138916015625,
0.05755615234375,
0.044342041015625,
0.0340576171875,
0.0072479248046875,
-0.059356689453125,
-0.031890869140625,
0.01548004150390625,
-0.0121002197265625,
-0.0243988037109375,
-0.0015554428100585938,
-0.00621795654296875,
-0.006282806396484375,
0.001819610595703125,
-0.01385498046875,
-0.02252197265625,
-0.0119781494140625,
0.01065826416015625,
-0.03253173828125,
-0.02734375,
-0.01386260986328125,
0.017974853515625,
0.01268768310546875,
0.028289794921875,
-0.01727294921875,
-0.005279541015625,
0.0369873046875,
-0.08544921875,
-0.0248260498046875,
-0.00934600830078125,
-0.0196685791015625,
-0.0090484619140625,
0.0220794677734375,
-0.0192413330078125,
0.035125732421875,
0.006031036376953125,
0.017547607421875,
0.028533935546875,
-0.0096893310546875,
-0.002674102783203125,
-0.019683837890625,
0.00028586387634277344,
-0.0318603515625,
0.0077056884765625,
-0.0020999908447265625,
0.0204315185546875,
0.064453125,
0.033203125,
-0.029327392578125,
-0.0028209686279296875,
0.004730224609375,
-0.046234130859375,
-0.0033130645751953125,
0.049835205078125,
0.0252838134765625,
0.06036376953125,
0.0004878044128417969,
0.009979248046875,
0.08099365234375,
-0.0074615478515625,
0.019775390625,
0.002796173095703125,
0.02923583984375,
0.0748291015625,
-0.0328369140625,
-0.002292633056640625,
-0.005084991455078125,
-0.055328369140625,
0.0045623779296875,
0.0290985107421875,
-0.0151519775390625,
0.0498046875,
-0.01003265380859375,
-0.00836181640625,
-0.0186767578125,
0.01491546630859375,
0.0283203125,
-0.019439697265625,
0.0677490234375,
-0.0063934326171875,
0.0206756591796875,
-0.01136016845703125,
-0.0743408203125,
0.033203125,
0.03619384765625,
0.00930023193359375,
0.006153106689453125,
0.0272369384765625,
0.0238189697265625,
0.03802490234375,
-0.023162841796875,
-0.0408935546875,
0.035430908203125,
0.026336669921875,
-0.007625579833984375,
0.07830810546875,
0.005603790283203125,
-0.02093505859375,
-0.0192718505859375,
-0.023681640625,
-0.0175323486328125,
-0.039886474609375,
0.006511688232421875,
0.0038852691650390625,
0.0185089111328125,
0.016082763671875,
-0.031036376953125,
0.039276123046875,
-0.005382537841796875,
-0.0136260986328125,
0.0260772705078125,
-0.02618408203125,
0.0440673828125,
-0.01092529296875,
0.05828857421875,
0.0687255859375,
-0.040283203125,
0.04559326171875,
-0.0216064453125,
0.034912109375,
0.01554107666015625,
-0.024139404296875,
-0.034515380859375,
-0.032928466796875,
-0.01287841796875,
-0.0125579833984375,
0.0294952392578125,
0.07769775390625,
-0.01465606689453125,
-0.040008544921875,
0.005313873291015625,
0.0423583984375,
-0.031036376953125,
-0.0623779296875,
0.032318115234375,
-0.006778717041015625,
0.0030078887939453125,
-0.0175018310546875,
-0.00412750244140625,
-0.0212249755859375,
-0.02740478515625,
-0.00885772705078125,
-0.0017442703247070312,
-0.042816162109375,
-0.0257568359375,
-0.043914794921875,
-0.048248291015625,
-0.0513916015625,
0.005207061767578125,
-0.012786865234375,
0.007198333740234375,
0.04217529296875,
0.007633209228515625,
-0.0311431884765625,
0.02166748046875,
0.045257568359375,
-0.004100799560546875,
0.0188446044921875,
0.0277862548828125,
0.0172271728515625,
-0.009613037109375,
0.035308837890625,
-0.01499176025390625,
0.0125732421875,
-0.039093017578125,
-0.037506103515625,
-0.0028476715087890625,
0.0203704833984375,
0.007293701171875,
-0.02349853515625,
-0.01526641845703125,
0.06378173828125,
0.0051727294921875,
-0.018585205078125,
0.0020503997802734375,
0.004150390625,
-0.023101806640625,
0.01235198974609375,
-0.0035839080810546875,
-0.0245819091796875,
0.006771087646484375,
0.0173187255859375,
0.0009365081787109375,
0.0156707763671875,
0.039398193359375,
-0.0005922317504882812,
-0.00646209716796875,
-0.01497650146484375,
-0.02838134765625,
-0.032135009765625,
-0.05712890625,
-0.0743408203125,
0.08135986328125,
-0.0182647705078125,
-0.031494140625,
-0.0027790069580078125,
0.0185699462890625,
0.049652099609375,
-0.040496826171875,
0.026702880859375,
-0.0157928466796875,
0.056182861328125,
-0.03338623046875,
-0.033843994140625,
-0.01541900634765625,
0.1158447265625,
-0.07220458984375,
-0.004734039306640625,
0.034576416015625,
0.021759033203125,
-0.0174407958984375,
0.00595855712890625,
-0.0897216796875,
-0.006885528564453125,
-0.0042266845703125,
-0.0174560546875,
-0.0203704833984375,
-0.0277099609375,
-0.0017595291137695312,
-0.0068359375,
0.0085601806640625,
-0.0120391845703125,
0.03179931640625,
-0.037322998046875,
0.011383056640625,
-0.04522705078125,
0.01416015625,
-0.061614990234375,
-0.004024505615234375,
-0.0224609375,
-0.057037353515625,
-0.007541656494140625,
-0.07861328125,
0.06683349609375,
0.07379150390625,
-0.041259765625,
0.0012769699096679688,
0.028076171875,
0.014739990234375,
0.06494140625,
-0.0101470947265625,
0.0035247802734375,
0.0219879150390625,
-0.031280517578125,
0.0207672119140625,
-0.02777099609375,
-0.024566650390625,
-0.01215362548828125,
-0.01058197021484375,
0.0430908203125,
0.007556915283203125,
0.0218048095703125,
0.0189361572265625,
-0.0011701583862304688,
-0.0211181640625,
-0.0250244140625,
-0.01103973388671875,
-0.00629425048828125,
-0.03765869140625,
0.006710052490234375,
0.00400543212890625,
-0.019866943359375,
0.037567138671875,
0.0029010772705078125,
-0.0220947265625,
-0.00336456298828125,
0.04107666015625,
0.0252685546875,
-0.016082763671875,
-0.0145416259765625,
0.023956298828125,
0.020538330078125,
0.0050811767578125,
-0.0161590576171875,
-0.01100921630859375,
-0.01898193359375,
-0.0177001953125,
-0.01398468017578125,
-0.01165771484375,
-0.009979248046875,
0.0362548828125,
-0.02081298828125,
-0.00045609474182128906,
0.0018339157104492188,
-0.02911376953125,
0.060943603515625,
0.036285400390625,
0.01110076904296875,
-0.010894775390625,
-0.01015472412109375,
0.03497314453125,
0.0181427001953125,
-0.038787841796875,
-0.045867919921875,
-0.01042938232421875,
0.00867462158203125,
0.01461029052734375,
-0.0526123046875,
-0.0199127197265625,
0.0211181640625,
-0.04742431640625,
-0.006969451904296875,
0.0024051666259765625,
0.055145263671875,
0.01049041748046875,
0.0280303955078125,
0.033905029296875,
0.04034423828125,
0.001857757568359375,
0.017486572265625,
-0.01043701171875,
0.033660888671875,
-0.01381683349609375,
-0.05633544921875,
-0.00884246826171875,
0.00980377197265625,
0.049560546875,
0.04345703125,
0.01531219482421875,
-0.00637054443359375,
0.0214996337890625,
-0.002849578857421875,
0.0294647216796875,
0.037353515625,
0.004863739013671875,
-0.0026340484619140625,
-0.0013933181762695312,
0.00783538818359375,
-0.03411865234375,
0.106689453125,
-0.07757568359375,
-0.0305328369140625,
0.0194854736328125,
-0.0201568603515625,
0.060943603515625,
0.0284881591796875,
0.021636962890625,
0.0194244384765625,
-0.018463134765625,
-0.005031585693359375,
-0.0018968582153320312,
-0.044677734375,
-0.030670166015625,
-0.01363372802734375,
0.0394287109375,
0.055328369140625,
-0.0055694580078125,
-0.01690673828125,
-0.002300262451171875,
-0.035064697265625,
-0.029510498046875,
-0.018035888671875,
-0.017608642578125,
-0.0174713134765625,
-0.009033203125,
-0.0029621124267578125,
-0.006805419921875,
0.0199127197265625,
0.00307464599609375,
-0.008209228515625,
-0.031768798828125,
0.022125244140625,
-0.038604736328125,
0.030517578125,
-0.0305023193359375,
-0.033782958984375,
-0.027191162109375,
-0.0213470458984375,
0.0057830810546875,
-0.047515869140625,
-0.0003368854522705078,
-0.006793975830078125,
-0.022186279296875,
0.01520538330078125,
-0.0179290771484375,
-0.0202484130859375,
0.01160430908203125,
0.005817413330078125,
-0.011474609375,
0.021331787109375,
0.02532958984375,
0.00814056396484375,
0.002681732177734375,
-0.0075225830078125,
-0.0635986328125,
-0.0303802490234375,
-0.054229736328125,
-0.057952880859375,
-0.031524658203125,
-0.00995635986328125,
0.0040435791015625,
0.0146026611328125,
-0.03076171875,
-0.060302734375,
0.0003058910369873047,
-0.0175628662109375,
0.01027679443359375,
0.0003571510314941406,
0.00981903076171875,
0.00775146484375,
-0.03179931640625,
0.043701171875,
-0.0044708251953125,
-0.0169525146484375,
-0.01509857177734375,
-0.032440185546875,
-0.00995635986328125,
-0.00894927978515625,
-0.0017175674438476562,
-0.0021190643310546875,
-0.00013720989227294922,
0.025115966796875,
0.062042236328125,
0.0029926300048828125,
0.00017189979553222656,
-0.0184326171875,
-0.00018656253814697266,
-0.0169830322265625,
0.0280609130859375,
-0.037078857421875,
0.01235198974609375,
-0.0296478271484375,
0.0005922317504882812,
0.015350341796875,
0.0014677047729492188,
-0.0291900634765625,
-0.007205963134765625,
0.0280303955078125,
-0.01430511474609375,
0.0030002593994140625,
-0.004894256591796875,
-0.022064208984375,
0.025787353515625,
-0.0124053955078125,
0.03765869140625,
0.0195770263671875,
0.02154541015625,
0.052734375,
0.04254150390625,
-0.022003173828125,
-0.0732421875,
0.0238189697265625,
0.005687713623046875,
-0.047576904296875,
0.00817108154296875,
-0.039459228515625,
-0.007328033447265625,
0.0133819580078125,
0.0204315185546875,
-0.0226593017578125,
0.00289154052734375,
-0.006778717041015625,
-0.004482269287109375,
0.01983642578125,
0.001979827880859375,
-0.006084442138671875,
0.01445770263671875,
0.0254364013671875,
0.0165252685546875,
-0.0076446533203125,
0.01091766357421875,
0.012969970703125,
-0.0103759765625,
-0.006076812744140625,
0.036376953125,
0.01065826416015625,
-0.05401611328125,
0.03643798828125,
0.0223541259765625,
0.024658203125,
-0.049072265625,
-0.01503753662109375,
0.0048675537109375,
0.021728515625,
-0.037200927734375,
0.032470703125,
-0.06201171875,
0.06036376953125,
-0.01222991943359375,
0.044952392578125,
0.03228759765625,
0.043426513671875,
-0.007671356201171875,
0.01538848876953125,
0.0022068023681640625,
0.05194091796875,
-0.00704193115234375,
-0.027099609375,
0.050201416015625,
0.043060302734375,
-0.0306396484375,
0.028900146484375,
-0.004886627197265625,
-0.051544189453125,
-0.01995849609375,
-0.01430511474609375,
0.09930419921875,
-0.050323486328125,
-0.0054473876953125,
0.0224761962890625,
0.042388916015625,
-0.0305328369140625,
-0.0411376953125,
-0.004192352294921875,
-0.042388916015625,
0.0335693359375,
-0.032440185546875,
0.0245513916015625,
-0.0006594657897949219,
-0.04022216796875,
-0.056396484375,
0.0997314453125,
0.03546142578125,
-0.000020802021026611328,
-0.0191650390625,
0.04754638671875,
-0.044158935546875,
0.0183868408203125,
-0.033203125,
0.08306884765625,
0.0189208984375,
0.00319671630859375,
-0.049224853515625,
-0.00701904296875,
-0.0023555755615234375,
0.038818359375,
0.028533935546875,
-0.010711669921875,
-0.004261016845703125,
0.01505279541015625,
0.093505859375,
0.008514404296875,
0.0029239654541015625,
0.03350830078125,
-0.004547119140625,
0.06829833984375,
0.0660400390625,
-0.059051513671875,
0.0216217041015625,
0.046142578125,
-0.0255126953125,
0.03729248046875,
-0.0034027099609375,
-0.0165863037109375,
0.0278778076171875,
-0.0168609619140625,
-0.0247955322265625,
0.029327392578125,
0.0203094482421875,
0.0003688335418701172,
0.035247802734375,
0.023590087890625,
0.06878662109375,
-0.037628173828125,
-0.00603485107421875,
-0.0182037353515625,
0.060882568359375,
-0.0027790069580078125,
0.051177978515625,
0.041534423828125,
0.00751495361328125,
0.0423583984375,
0.039825439453125,
0.0404052734375,
0.03887939453125,
-0.00887298583984375,
-0.0211334228515625,
0.020172119140625,
0.02886962890625,
-0.01082611083984375,
-0.0191802978515625,
0.01371002197265625,
0.005748748779296875,
-0.0045623779296875,
-0.0679931640625,
0.007965087890625,
0.00318145751953125,
0.012725830078125,
0.045318603515625,
0.03021240234375,
-0.08013916015625,
-0.01079559326171875,
-0.014923095703125,
-0.038787841796875,
-0.0119781494140625,
-0.0006341934204101562,
-0.0033054351806640625,
-0.00811767578125,
0.05999755859375,
-0.016937255859375,
-0.0016002655029296875,
-0.054718017578125,
0.022125244140625,
0.042205810546875,
0.0224456787109375,
0.03778076171875,
-0.0013608932495117188,
-0.004863739013671875,
0.01509857177734375,
0.004688262939453125,
-0.006298065185546875,
-0.01080322265625,
0.0019741058349609375,
-0.01898193359375,
-0.0021152496337890625,
0.0174713134765625,
-0.033905029296875,
0.01120758056640625,
0.040496826171875,
0.054168701171875,
-0.05328369140625,
-0.02484130859375,
0.016693115234375,
-0.037322998046875,
0.039306640625,
-0.0212554931640625,
-0.00325775146484375,
0.0095672607421875,
-0.0290679931640625,
-0.00457763671875,
-0.005718231201171875,
0.051025390625,
-0.0036220550537109375,
0.0196075439453125,
0.006847381591796875,
-0.0029277801513671875,
0.0245819091796875,
-0.0325927734375,
-0.01012420654296875,
0.00189208984375,
-0.0631103515625,
0.0225372314453125,
-0.0570068359375,
-0.11016845703125,
0.0247344970703125,
0.0311737060546875,
-0.0271453857421875,
-0.00353240966796875,
0.007411956787109375,
-0.01348114013671875,
-0.0033855438232421875,
-0.0009255409240722656,
0.0306549072265625,
0.02313232421875,
0.0084381103515625,
0.006256103515625,
0.004627227783203125,
0.01338958740234375,
-0.007579803466796875,
0.0404052734375,
-0.00696563720703125,
0.09466552734375,
-0.037506103515625,
0.0249786376953125,
-0.00652313232421875,
0.00537109375,
-0.0232086181640625,
-0.0006241798400878906,
0.0160064697265625,
-0.0018625259399414062,
0.01540374755859375,
-0.00901031494140625,
-0.00577545166015625,
0.0290069580078125,
0.01514434814453125,
-0.009033203125,
0.0260772705078125,
-0.0180511474609375,
0.01041412353515625,
-0.021331787109375,
0.03753662109375,
0.00276947021484375,
-0.006481170654296875,
0.01450347900390625,
0.0225372314453125,
0.021087646484375,
0.0504150390625,
-0.011474609375,
0.0272674560546875,
0.0136566162109375,
0.005695343017578125,
0.0199432373046875,
-0.00424957275390625,
0.0052490234375,
-0.005207061767578125,
0.01202392578125,
-0.01605224609375,
0.0007276535034179688,
-0.00823974609375,
-0.002750396728515625,
0.0305023193359375,
-0.0018749237060546875,
0.04095458984375,
-0.010833740234375,
0.035369873046875,
0.041290283203125,
0.05633544921875,
-0.04010009765625,
0.00832366943359375,
0.039398193359375,
0.0045013427734375,
-0.0023441314697265625,
0.01152801513671875,
0.0124053955078125,
-0.018829345703125,
-0.0024623870849609375,
0.005405426025390625,
-0.006748199462890625,
0.0303955078125,
0.02471923828125,
-0.06512451171875,
-0.004150390625,
-0.00429534912109375,
-0.00995635986328125,
0.000031828880310058594,
0.020538330078125,
-0.0082855224609375,
-0.037261962890625,
0.0001882314682006836,
0.00453948974609375,
0.025054931640625,
0.0019130706787109375,
-0.0299224853515625,
0.006450653076171875,
0.056671142578125,
0.01258087158203125,
0.0277557373046875,
0.05657958984375,
-0.038238525390625,
-0.0526123046875,
0.0096435546875,
0.0438232421875,
0.0487060546875,
0.040374755859375,
-0.00832366943359375,
0.0501708984375,
0.01480865478515625,
-0.03399658203125,
-0.06341552734375,
-0.01151275634765625,
-0.0203857421875,
0.048431396484375,
-0.043304443359375,
0.01151275634765625,
0.01081085205078125,
-0.035003662109375,
-0.060333251953125,
-0.033111572265625,
-0.01611328125,
-0.042388916015625,
-0.01265716552734375,
-0.0047149658203125,
-0.01611328125,
-0.0419921875,
-0.0156097412109375,
0.010589599609375,
-0.004283905029296875,
0.033843994140625,
0.0028209686279296875,
0.0784912109375,
-0.02239990234375,
0.007965087890625,
0.0098114013671875,
0.0243682861328125,
0.0022068023681640625,
0.0352783203125,
0.01381683349609375,
-0.0005927085876464844,
0.01311492919921875,
0.057647705078125,
-0.0280609130859375,
-0.0523681640625,
-0.03863525390625,
-0.03857421875,
-0.03021240234375,
0.01397705078125,
-0.042022705078125,
0.0179901123046875,
0.0740966796875,
0.145751953125,
0.027191162109375,
-0.07135009765625,
0.020111083984375,
0.0003840923309326172,
-0.0518798828125,
-0.007198333740234375,
0.0072174072265625,
-0.01354217529296875,
0.00811004638671875,
-0.0372314453125,
0.014862060546875,
-0.00937652587890625,
-0.050140380859375,
-0.02032470703125,
-0.01025390625,
-0.025146484375,
0.020721435546875,
-0.0041351318359375,
0.0091552734375,
0.068603515625,
-0.047271728515625,
-0.0182952880859375,
0.0258331298828125,
-0.0149688720703125,
0.0238037109375,
0.033966064453125,
0.0230712890625,
0.00698089599609375,
-0.07733154296875,
0.01702880859375,
-0.0016956329345703125,
0.059112548828125,
-0.060028076171875,
-0.025604248046875,
0.038726806640625,
0.02099609375,
-0.032073974609375,
0.01044464111328125,
0.01800537109375,
0.018402099609375,
-0.057952880859375,
0.05316162109375,
-0.0284423828125,
0.059326171875,
-0.0064849853515625,
0.0234375,
-0.00823974609375,
0.006465911865234375,
0.033355712890625,
-0.0249176025390625,
0.0172576904296875,
-0.007732391357421875,
-0.0026226043701171875,
-0.0029659271240234375,
-0.01134490966796875,
-0.011077880859375,
-0.0096893310546875,
0.0116729736328125
] |
3bf3be5bd5b0631c9aea5f967bdc768fcc0d765d
|
Wordpress Stackexchange
Q: How to delete outdated, wrongly sized images in _wp_attachment_metadata? I've got several custom image sizes for my blog. One of these is setup as add_image_size( 'slide', 640, 290, true );. These are used in a header slideshow.
My problem is I've upped the dimensions of this size after many of them were originally created, and many of the attached post images are too small to be cropped to these new values (i.e. not even 640px in the first place).
So when I call up images of this size, many of them are of the old dimensions (e.g. s:5:"slide";a:4:{s:4:"file";s:52:"6a00d8341c630a53ef011570180a91970b-800wi-300x290.jpg";s:5:"width";s:3:"300";s:6:"height";s:3:"290";}. I can't use images that are this small, but no correctly sized image are overwriting these, as per above. The desired behavior is that no image would be stored for size slide instead of the old, small ones.
How can I delete these image entries in _wp_attachment_metadata? Do I do delete everything in the sizes sub-array and regenerate everything?
A: Not from personal experience (I don't use WP image management much), but I believe Regenerate Thumbnails plugin is usually recommended for rebuilding thumbnails.
|
Q: How to delete outdated, wrongly sized images in _wp_attachment_metadata? I've got several custom image sizes for my blog. One of these is setup as add_image_size( 'slide', 640, 290, true );. These are used in a header slideshow.
My problem is I've upped the dimensions of this size after many of them were originally created, and many of the attached post images are too small to be cropped to these new values (i.e. not even 640px in the first place).
So when I call up images of this size, many of them are of the old dimensions (e.g. s:5:"slide";a:4:{s:4:"file";s:52:"6a00d8341c630a53ef011570180a91970b-800wi-300x290.jpg";s:5:"width";s:3:"300";s:6:"height";s:3:"290";}. I can't use images that are this small, but no correctly sized image are overwriting these, as per above. The desired behavior is that no image would be stored for size slide instead of the old, small ones.
How can I delete these image entries in _wp_attachment_metadata? Do I do delete everything in the sizes sub-array and regenerate everything?
A: Not from personal experience (I don't use WP image management much), but I believe Regenerate Thumbnails plugin is usually recommended for rebuilding thumbnails.
A: As already mentioned, Regenerate Thumbnails plugin triggers the (re)generation of image sizes which are currently defined via add_image_size() or similar.
Here is a patch to modify Regenerate Thumbnails Version 2.2.0 so it will delete any previously generated image-sizes, including older outdated sizes before creating the new sizes.
http://wordpress.org/support/topic/how-to-delete-old-thumbnail-images
Important: Note that URLs to images are hard-coded in posts and pages. Removing old thumbnails could result in broken images if they are still used somewhere on your site. You have been warned...
|
wordpress
|
{
"language": "en",
"length": 264,
"provenance": "stackexchange_00019.jsonl.gz:408324",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13834"
}
|
[
0.0056610107421875,
-0.00408935546875,
-0.035736083984375,
0.0066680908203125,
-0.0026187896728515625,
-0.053375244140625,
0.051971435546875,
0.0009775161743164062,
0.021240234375,
0.02801513671875,
-0.034820556640625,
0.01016998291015625,
0.0011072158813476562,
0.0011510848999023438,
-0.03729248046875,
-0.0186767578125,
0.05816650390625,
-0.0166015625,
0.0628662109375,
0.01511383056640625,
0.0010318756103515625,
0.050628662109375,
0.046905517578125,
0.06695556640625,
-0.00959014892578125,
-0.001422882080078125,
0.08282470703125,
-0.018646240234375,
-0.0177764892578125,
-0.03607177734375,
0.006801605224609375,
0.023834228515625,
0.01806640625,
-0.00412750244140625,
0.0171051025390625,
0.0153656005859375,
0.01457977294921875,
-0.003368377685546875,
0.0013828277587890625,
0.0214080810546875,
0.0172271728515625,
-0.01399993896484375,
0.037445068359375,
-0.033538818359375,
0.01386260986328125,
-0.0201263427734375,
0.0270233154296875,
-0.058929443359375,
0.002269744873046875,
-0.0279388427734375,
0.0283203125,
-0.024200439453125,
0.06512451171875,
-0.047515869140625,
-0.03863525390625,
-0.03607177734375,
-0.043182373046875,
0.0718994140625,
0.023162841796875,
-0.003612518310546875,
-0.0278778076171875,
0.0234222412109375,
0.01445770263671875,
-0.00447845458984375,
0.003055572509765625,
-0.01043701171875,
-0.00966644287109375,
-0.0052337646484375,
-0.029754638671875,
0.0159149169921875,
0.048492431640625,
-0.0278778076171875,
-0.00600433349609375,
-0.020782470703125,
0.01488494873046875,
0.037994384765625,
-0.0216064453125,
-0.00489044189453125,
0.00811004638671875,
0.005001068115234375,
0.0675048828125,
-0.055633544921875,
0.0186767578125,
0.0275115966796875,
0.0323486328125,
0.05584716796875,
0.01158905029296875,
-0.03607177734375,
-0.0290069580078125,
-0.00830078125,
-0.032257080078125,
-0.07415771484375,
-0.0008177757263183594,
0.0072784423828125,
-0.01534271240234375,
-0.0117034912109375,
0.039154052734375,
0.024383544921875,
-0.005672454833984375,
-0.0034236907958984375,
0.02020263671875,
-0.05047607421875,
0.0145263671875,
-0.029449462890625,
0.0297393798828125,
0.028045654296875,
-0.005794525146484375,
-0.036529541015625,
0.029693603515625,
0.0222015380859375,
-0.005695343017578125,
0.0284576416015625,
-0.003978729248046875,
-0.0189056396484375,
-0.0131378173828125,
0.038330078125,
-0.0173797607421875,
0.023895263671875,
-0.0027561187744140625,
0.051971435546875,
-0.018463134765625,
-0.0036144256591796875,
0.0008387565612792969,
0.006885528564453125,
0.033416748046875,
0.025634765625,
-0.019439697265625,
0.00372314453125,
0.01849365234375,
0.01195526123046875,
-0.04107666015625,
0.05029296875,
0.048736572265625,
-0.06494140625,
-0.03045654296875,
-0.01444244384765625,
-0.005855560302734375,
-0.0478515625,
-0.0248870849609375,
0.0239715576171875,
-0.0179595947265625,
-0.004974365234375,
0.0215911865234375,
-0.03424072265625,
0.029327392578125,
-0.004199981689453125,
-0.01485443115234375,
0.04345703125,
0.0255279541015625,
-0.051177978515625,
0.0693359375,
-0.03948974609375,
0.06298828125,
0.00814056396484375,
-0.025787353515625,
-0.0245208740234375,
0.10321044921875,
-0.06402587890625,
-0.0400390625,
-0.1080322265625,
0.0195770263671875,
-0.002803802490234375,
0.0035839080810546875,
-0.00882720947265625,
-0.0035610198974609375,
0.0125885009765625,
-0.06292724609375,
-0.001232147216796875,
0.0287933349609375,
0.00899505615234375,
0.02862548828125,
-0.046722412109375,
-0.0193023681640625,
0.0176849365234375,
0.01161956787109375,
0.0343017578125,
0.037689208984375,
-0.0231781005859375,
0.0084228515625,
0.07891845703125,
0.013092041015625,
-0.0153656005859375,
0.030517578125,
-0.02362060546875,
-0.0189056396484375,
-0.07135009765625,
-0.004596710205078125,
-0.00490570068359375,
0.047088623046875,
0.0299224853515625,
0.00873565673828125,
-0.035797119140625,
-0.03668212890625,
0.0248870849609375,
-0.005886077880859375,
0.005733489990234375,
-0.02777099609375,
0.00527191162109375,
-0.0083770751953125,
-0.018798828125,
0.00821685791015625,
0.01751708984375,
-0.01537322998046875,
-0.00339508056640625,
-0.1156005859375,
0.0325927734375,
-0.04962158203125,
0.055633544921875,
-0.06365966796875,
0.009765625,
0.040557861328125,
0.005985260009765625,
-0.0499267578125,
0.040496826171875,
0.0145111083984375,
-0.012664794921875,
-0.004241943359375,
-0.01186370849609375,
-0.02374267578125,
0.0090484619140625,
-0.04425048828125,
-0.01995849609375,
-0.06011962890625,
0.01119232177734375,
0.04632568359375,
-0.019287109375,
-0.00994873046875,
-0.023590087890625,
0.005786895751953125,
0.00737762451171875,
-0.06304931640625,
0.050140380859375,
-0.03790283203125,
-0.0192413330078125,
-0.0096588134765625,
-0.019927978515625,
-0.004810333251953125,
-0.10443115234375,
0.031494140625,
0.06427001953125,
0.029571533203125,
0.026763916015625,
-0.01261138916015625,
-0.0007801055908203125,
0.091064453125,
0.024810791015625,
0.015777587890625,
0.0005779266357421875,
-0.02239990234375,
-0.022552490234375,
0.01448822021484375,
-0.0185089111328125,
0.02764892578125,
-0.0061187744140625,
0.033966064453125,
0.01303863525390625,
-0.03875732421875,
-0.01329803466796875,
-0.0207672119140625,
0.0440673828125,
-0.01319122314453125,
0.016571044921875,
0.030853271484375,
-0.0162506103515625,
0.03839111328125,
0.004730224609375,
0.0284271240234375,
0.01129150390625,
-0.021575927734375,
0.0191192626953125,
0.0192108154296875,
-0.036529541015625,
0.0203399658203125,
0.00946044921875,
0.01311492919921875,
0.007442474365234375,
-0.02679443359375,
0.01473236083984375,
0.0199432373046875,
0.0006399154663085938,
0.0018396377563476562,
0.0263671875,
-0.04119873046875,
-0.012481689453125,
-0.0138702392578125,
-0.05657958984375,
-0.007190704345703125,
0.0288238525390625,
-0.0030059814453125,
-0.0225830078125,
0.00002181529998779297,
0.045654296875,
0.0003829002380371094,
0.04327392578125,
0.0010271072387695312,
-0.007480621337890625,
-0.0205535888671875,
-0.034393310546875,
0.049896240234375,
-0.03961181640625,
0.051666259765625,
0.07403564453125,
-0.037109375,
0.041046142578125,
0.01415252685546875,
-0.0282135009765625,
0.023345947265625,
0.011871337890625,
0.002323150634765625,
-0.022613525390625,
0.00690460205078125,
0.039886474609375,
0.006542205810546875,
0.025177001953125,
-0.0218658447265625,
-0.0330810546875,
0.0004665851593017578,
0.011322021484375,
-0.04827880859375,
-0.022125244140625,
0.0009031295776367188,
-0.09014892578125,
-0.0036754608154296875,
-0.00255584716796875,
-0.056854248046875,
0.00226593017578125,
0.042022705078125,
0.00713348388671875,
0.028076171875,
-0.00844573974609375,
-0.019073486328125,
-0.01316070556640625,
-0.04730224609375,
-0.03607177734375,
0.00466156005859375,
-0.0092926025390625,
-0.01160430908203125,
0.0223541259765625,
-0.00312042236328125,
-0.0283203125,
0.00969696044921875,
0.000029027462005615234,
0.02154541015625,
0.005954742431640625,
-0.003917694091796875,
0.032562255859375,
-0.026275634765625,
0.01122283935546875,
0.045562744140625,
0.0479736328125,
-0.06549072265625,
0.0200347900390625,
-0.043670654296875,
-0.040283203125,
-0.031890869140625,
0.01039886474609375,
0.043731689453125,
-0.0202178955078125,
0.01226043701171875,
-0.04339599609375,
-0.009521484375,
-0.033111572265625,
-0.04052734375,
0.022247314453125,
0.0421142578125,
-0.0050506591796875,
-0.01006317138671875,
-0.0015048980712890625,
-0.0017576217651367188,
0.01151275634765625,
0.023406982421875,
-0.0124053955078125,
-0.017974853515625,
-0.021026611328125,
-0.0274658203125,
-0.02252197265625,
0.0007748603820800781,
-0.037811279296875,
0.0341796875,
-0.0013189315795898438,
-0.01824951171875,
-0.004352569580078125,
-0.0275115966796875,
-0.026031494140625,
-0.019378662109375,
0.0235443115234375,
-0.049468994140625,
0.034088134765625,
-0.0430908203125,
-0.02020263671875,
-0.02093505859375,
0.0643310546875,
-0.0643310546875,
-0.0255279541015625,
-0.0049591064453125,
0.01343536376953125,
0.024169921875,
0.004367828369140625,
-0.0079498291015625,
-0.033447265625,
-0.1236572265625,
0.0067291259765625,
0.0257720947265625,
-0.0655517578125,
-0.01049041748046875,
0.037841796875,
-0.08453369140625,
-0.02435302734375,
0.0106201171875,
0.026824951171875,
-0.0037403106689453125,
0.0067901611328125,
-0.00044655799865722656,
0.005584716796875,
-0.005382537841796875,
-0.0297698974609375,
-0.09796142578125,
-0.0271453857421875,
-0.0137786865234375,
0.095947265625,
-0.02032470703125,
0.042205810546875,
-0.050750732421875,
0.06121826171875,
-0.02740478515625,
-0.027740478515625,
-0.0091705322265625,
0.0240325927734375,
-0.036590576171875,
0.015716552734375,
-0.0153656005859375,
-0.0193023681640625,
-0.00524139404296875,
-0.044219970703125,
-0.042816162109375,
-0.0640869140625,
-0.0298004150390625,
0.005023956298828125,
-0.0144805908203125,
-0.005397796630859375,
-0.04931640625,
-0.0260467529296875,
-0.02508544921875,
-0.00394439697265625,
-0.01392364501953125,
-0.00930023193359375,
-0.022186279296875,
-0.035980224609375,
0.044158935546875,
0.044219970703125,
-0.008148193359375,
0.00428009033203125,
0.05877685546875,
0.01358795166015625,
-0.0341796875,
-0.0706787109375,
-8.940696716308594e-7,
0.0289154052734375,
0.008148193359375,
0.044158935546875,
0.0255889892578125,
-0.00196075439453125,
0.001491546630859375,
0.0102996826171875,
0.0004203319549560547,
-0.04620361328125,
0.0701904296875,
-0.007343292236328125,
-0.010406494140625,
0.0238189697265625,
-0.0182037353515625,
0.044921875,
0.0256500244140625,
0.0243072509765625,
-0.033416748046875,
0.0198822021484375,
0.01197052001953125,
0.0012006759643554688,
-0.004459381103515625,
-0.01114654541015625,
-0.01153564453125,
0.010986328125,
0.01387786865234375,
0.0236358642578125,
0.0034885406494140625,
-0.00867462158203125,
-0.005908966064453125,
0.0180816650390625,
0.024810791015625,
-0.0113067626953125,
0.0181427001953125,
-0.0206451416015625,
0.0484619140625,
-0.005741119384765625,
0.00736236572265625,
-0.01299285888671875,
0.0051422119140625,
-0.0219573974609375,
0.01509857177734375,
-0.028594970703125,
-0.037506103515625,
0.022003173828125,
0.01788330078125,
-0.0205230712890625,
-0.02008056640625,
0.053436279296875,
0.01605224609375,
-0.03167724609375,
-0.022552490234375,
-0.062286376953125,
-0.007556915283203125,
-0.067626953125,
-0.007232666015625,
0.006866455078125,
-0.018829345703125,
0.040618896484375,
-0.0202484130859375,
-0.007366180419921875,
-0.001468658447265625,
0.0018024444580078125,
0.01910400390625,
0.00392913818359375,
0.0111236572265625,
0.00958251953125,
0.028472900390625,
0.0019664764404296875,
-0.01085662841796875,
0.026458740234375,
-0.0313720703125,
-0.00380706787109375,
0.0157928466796875,
0.037994384765625,
-0.0270233154296875,
-0.0286712646484375,
0.029876708984375,
-0.0236663818359375,
-0.00434112548828125,
0.027801513671875,
-0.042205810546875,
-0.08856201171875,
0.00902557373046875,
0.048553466796875,
0.040679931640625,
-0.062469482421875,
-0.03375244140625,
-0.022003173828125,
-0.0411376953125,
-0.01446533203125,
-0.007564544677734375,
-0.049530029296875,
0.0248260498046875,
0.0196533203125,
-0.01068878173828125,
-0.01039886474609375,
-0.0287017822265625,
0.0299835205078125,
-0.02374267578125,
-0.00769805908203125,
-0.02227783203125,
0.046905517578125,
-0.017852783203125,
-0.01041412353515625,
-0.005950927734375,
-0.00443267822265625,
-0.0307464599609375,
0.0231781005859375,
0.000036716461181640625,
-0.03057861328125,
-0.040924072265625,
-0.0159149169921875,
-0.00191497802734375,
-0.00579833984375,
0.041961669921875,
-0.00682830810546875,
-0.004344940185546875,
-0.0217437744140625,
0.007129669189453125,
0.01522064208984375,
-0.002582550048828125,
0.01285552978515625,
-0.0008211135864257812,
-0.0012950897216796875,
-0.0119171142578125,
-0.0009560585021972656,
-0.0095062255859375,
-0.00853729248046875,
0.01030731201171875,
0.0137939453125,
-0.00627899169921875,
-0.0017957687377929688,
0.01444244384765625,
-0.01511383056640625,
-0.01093292236328125,
-0.01837158203125,
0.0296173095703125,
0.00533294677734375,
0.007213592529296875,
-0.0212860107421875,
0.0146026611328125,
0.0219573974609375,
0.0018100738525390625,
-0.01458740234375,
-0.002544403076171875,
-0.026031494140625,
0.069580078125,
-0.021514892578125,
0.01505279541015625,
0.0157470703125,
-0.03509521484375,
0.0297698974609375,
0.0220489501953125,
0.0312347412109375,
-0.0035686492919921875,
-0.0484619140625,
-0.0091400146484375,
0.047607421875,
0.0295562744140625,
-0.030731201171875,
0.043487548828125,
-0.006748199462890625,
0.04119873046875,
0.03460693359375,
0.012939453125,
0.031982421875,
-0.0189208984375,
0.01042938232421875,
0.018341064453125,
0.029144287109375,
-0.0231475830078125,
0.006458282470703125,
0.00447845458984375,
-0.01314544677734375,
0.006221771240234375,
-0.033905029296875,
0.0264434814453125,
0.0157470703125,
0.0245208740234375,
-0.00494384765625,
-0.003437042236328125,
0.06884765625,
-0.017120361328125,
0.0142822265625,
0.0347900390625,
0.0234527587890625,
0.026031494140625,
-0.0318603515625,
-0.01172637939453125,
0.02032470703125,
-0.0177154541015625,
0.010162353515625,
-0.036590576171875,
-0.0002808570861816406,
-0.0238037109375,
-0.00775146484375,
0.023681640625,
-0.0034236907958984375,
-0.003936767578125,
0.0219573974609375,
-0.01947021484375,
0.0113067626953125,
-0.032867431640625,
-0.01409149169921875,
-0.027099609375,
-0.0156402587890625,
-0.0110321044921875,
0.0175018310546875,
0.0291595458984375,
0.0286712646484375,
0.0047760009765625,
-0.0120086669921875,
0.01373291015625,
-0.049774169921875,
-0.0005588531494140625,
-0.043243408203125,
0.032623291015625,
0.0270843505859375,
-0.070068359375,
0.0240936279296875,
-0.017242431640625,
-0.004367828369140625,
-0.0123138427734375,
0.0005445480346679688,
0.0723876953125,
-0.060760498046875,
-0.0011148452758789062,
0.023529052734375,
0.04010009765625,
-0.00930023193359375,
-0.016021728515625,
0.0236358642578125,
-0.0738525390625,
-0.0209503173828125,
-0.0060882568359375,
-0.00894927978515625,
0.0023555755615234375,
-0.0010738372802734375,
-0.06243896484375,
0.05950927734375,
-0.0198211669921875,
0.0250396728515625,
-0.0063018798828125,
0.0316162109375,
0.01276397705078125,
0.01476287841796875,
0.005580902099609375,
0.008575439453125,
-0.04681396484375,
-0.0290679931640625,
-0.0129547119140625,
0.042205810546875,
-0.025177001953125,
-0.01506805419921875,
0.06170654296875,
0.01727294921875,
-0.040283203125,
-0.02435302734375,
0.0206298828125,
0.04058837890625,
0.005352020263671875,
0.031890869140625,
-0.0266265869140625,
-0.0352783203125,
-0.0119171142578125,
-0.0266571044921875,
0.00934600830078125,
-0.004512786865234375,
-0.0312347412109375,
0.004627227783203125,
-0.01085662841796875,
0.010528564453125,
0.01165771484375,
0.0584716796875,
0.0029048919677734375,
-0.0093841552734375,
0.0159912109375,
-0.061309814453125,
0.06134033203125,
0.0147705078125,
0.034698486328125,
0.031646728515625,
-0.045013427734375,
0.026275634765625,
0.03448486328125,
-0.029022216796875,
0.047271728515625,
0.0207672119140625,
0.01593017578125,
0.08587646484375,
-0.0234375,
0.023834228515625,
0.0279083251953125,
-0.02667236328125,
0.01727294921875,
0.0007224082946777344,
0.00539398193359375,
-0.052734375,
-0.0102386474609375,
0.06536865234375,
0.03765869140625,
-0.047393798828125,
-0.038970947265625,
0.007053375244140625,
0.0119781494140625,
0.0194549560546875,
-0.009063720703125,
0.001140594482421875,
-0.07696533203125,
-0.03448486328125,
-0.045989990234375,
0.023773193359375,
0.0287322998046875,
0.0223388671875,
-0.01050567626953125,
0.0258941650390625,
-0.047607421875,
0.01171112060546875,
-0.0233001708984375,
0.0017213821411132812,
0.0228424072265625,
0.013275146484375,
-0.0027065277099609375,
0.0312042236328125,
0.0474853515625,
0.01495361328125,
-0.0291900634765625,
0.053375244140625,
-0.0033416748046875,
0.03961181640625,
-0.056060791015625,
-0.049468994140625,
0.025543212890625,
0.047210693359375,
-0.00875091552734375,
-0.0233612060546875,
0.045501708984375,
0.03619384765625,
-0.08807373046875,
-0.0234222412109375,
0.01495361328125,
-0.0310821533203125,
0.031402587890625,
-0.026519775390625,
0.0176544189453125,
0.0229644775390625,
-0.0277252197265625,
-0.0025844573974609375,
-0.00829315185546875,
0.046173095703125,
0.008514404296875,
0.0107879638671875,
-0.0019893646240234375,
-0.019256591796875,
0.040924072265625,
-0.01226806640625,
0.02410888671875,
0.01122283935546875,
-0.05316162109375,
0.00507354736328125,
-0.06378173828125,
-0.016082763671875,
0.01163482666015625,
0.01451873779296875,
-0.0229034423828125,
0.03192138671875,
0.019012451171875,
-0.040679931640625,
0.0189666748046875,
0.01538848876953125,
0.00424957275390625,
0.01434326171875,
0.0203094482421875,
-0.0008220672607421875,
-0.04827880859375,
-0.0170135498046875,
0.0098876953125,
0.01739501953125,
-0.01433563232421875,
0.09100341796875,
-0.0170440673828125,
0.00843048095703125,
-0.0114898681640625,
0.018096923828125,
-0.005718231201171875,
0.0118865966796875,
0.005481719970703125,
0.0165863037109375,
-0.003490447998046875,
-0.0311431884765625,
-0.005565643310546875,
-0.00510406494140625,
0.03155517578125,
-0.056915283203125,
-0.0199737548828125,
-0.0181732177734375,
0.013916015625,
0.006961822509765625,
-0.00797271728515625,
-0.03643798828125,
-0.0352783203125,
-0.0198822021484375,
0.004619598388671875,
-0.0006070137023925781,
0.0118255615234375,
0.019012451171875,
0.00835418701171875,
0.04278564453125,
0.001895904541015625,
0.04913330078125,
-0.0024166107177734375,
0.09100341796875,
0.04852294921875,
-0.0343017578125,
-0.04266357421875,
-0.00042128562927246094,
0.000675201416015625,
-0.0222015380859375,
0.0235748291015625,
0.0192718505859375,
0.0148773193359375,
-0.00463104248046875,
0.01140594482421875,
-0.0017881393432617188,
0.011322021484375,
-0.0224151611328125,
-0.00374603271484375,
-0.004650115966796875,
0.0010995864868164062,
0.0007610321044921875,
-0.0004906654357910156,
-0.0174713134765625,
-0.04351806640625,
-0.0117340087890625,
0.01849365234375,
-0.0198516845703125,
-0.007717132568359375,
-0.03961181640625,
-0.0135040283203125,
0.044219970703125,
0.04193115234375,
-0.06634521484375,
0.0733642578125,
-0.01226043701171875,
-0.06591796875,
0.051055908203125,
-0.026123046875,
-0.00897216796875,
0.0264129638671875,
-0.0135955810546875,
-0.08258056640625,
-0.043365478515625,
0.07318115234375,
-0.0550537109375,
0.03192138671875,
0.04296875,
-0.0457763671875,
0.00042319297790527344,
0.01509857177734375,
0.0293121337890625,
0.0745849609375,
-0.010101318359375,
-0.0312347412109375,
-0.0008111000061035156,
0.0175323486328125,
0.00931549072265625,
-0.046630859375,
-0.0106201171875,
-0.043853759765625,
0.01461029052734375,
-0.039459228515625,
0.02960205078125,
0.03106689453125,
-0.024444580078125,
-0.048065185546875,
0.0333251953125,
-0.022003173828125,
-0.0235137939453125,
-0.009307861328125,
0.0027980804443359375,
-0.0163116455078125,
0.03564453125,
0.002338409423828125,
0.002140045166015625,
0.0007224082946777344,
0.01739501953125,
-0.0086822509765625,
-0.00848388671875,
0.018280029296875,
-0.05120849609375,
0.0001876354217529297,
0.01482391357421875,
0.05535888671875,
-0.0096282958984375,
0.015411376953125,
-0.0205535888671875,
0.048980712890625,
0.032196044921875,
-0.009033203125,
-0.0021610260009765625,
0.011383056640625,
-0.040740966796875,
-0.023773193359375,
0.0135498046875,
-0.02081298828125,
0.01161956787109375,
0.0533447265625,
0.0697021484375,
0.0292816162109375,
-0.0439453125,
0.037109375,
0.0226593017578125,
-0.01558685302734375,
-0.017425537109375,
0.0035247802734375,
-0.03826904296875,
-0.045928955078125,
-0.0184783935546875,
0.0037403106689453125,
-0.00547027587890625,
-0.01194000244140625,
-0.022430419921875,
-0.0180511474609375,
0.005733489990234375,
0.0114898681640625,
-0.05523681640625,
0.03509521484375,
-0.0086517333984375,
-0.002288818359375,
-0.00925445556640625,
-0.031402587890625,
0.0017490386962890625,
-0.024200439453125,
-0.0283203125,
-0.01229095458984375,
0.005764007568359375,
-0.0283966064453125,
0.031890869140625,
-0.01152801513671875,
-0.0163421630859375,
-0.039581298828125,
0.0077362060546875,
-0.00982666015625,
0.005290985107421875,
0.01326751708984375,
0.01543426513671875,
0.019317626953125,
-0.0129241943359375,
0.007625579833984375,
-0.02813720703125,
-0.00693511962890625,
-0.05755615234375,
-0.0445556640625,
0.00615692138671875,
0.02191162109375,
-0.0164031982421875,
0.053436279296875,
-0.00937652587890625,
-0.0063934326171875,
-0.0157470703125,
-0.0748291015625,
-0.060577392578125,
0.006183624267578125,
-0.046539306640625,
-0.01812744140625,
0.01166534423828125
] |
ca6710cd6433dd3dbbd4ef2d194b7dc62b071970
|
Wordpress Stackexchange
Q: How to get post author name by its ID inside a function? i'm trying to get the author name using the "the_author_meta" function. After doing that I need to pass the value inside an array and return that with "json_encode".
Let me show:
$autor_id = $post->post_author;
$autor_name = the_author_meta('user_nicename', $autor_id);
echo $autor_name;
The $autor_name echo works fine but when i do the following code it returns null on my script:
...
$results['author'] = $autor_name;
$posts[] = $results;
}
return json_encode($posts);
it returns that: "author":null
How can i make it display the author name like: "author":admin?
A: The echoing is already done by the_author_meta().
echo $autor_name does nothing.
Correct would be to use get_the_author_meta().
|
Q: How to get post author name by its ID inside a function? i'm trying to get the author name using the "the_author_meta" function. After doing that I need to pass the value inside an array and return that with "json_encode".
Let me show:
$autor_id = $post->post_author;
$autor_name = the_author_meta('user_nicename', $autor_id);
echo $autor_name;
The $autor_name echo works fine but when i do the following code it returns null on my script:
...
$results['author'] = $autor_name;
$posts[] = $results;
}
return json_encode($posts);
it returns that: "author":null
How can i make it display the author name like: "author":admin?
A: The echoing is already done by the_author_meta().
echo $autor_name does nothing.
Correct would be to use get_the_author_meta().
|
wordpress
|
{
"language": "en",
"length": 114,
"provenance": "stackexchange_00019.jsonl.gz:408329",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13845"
}
|
[
-0.0128936767578125,
-0.0001131892204284668,
-0.00982666015625,
-0.0084075927734375,
-0.015716552734375,
-0.009857177734375,
-0.0228118896484375,
-0.02294921875,
0.007350921630859375,
0.038360595703125,
-0.0275726318359375,
0.0274658203125,
0.02032470703125,
-0.01122283935546875,
-0.00104522705078125,
-0.0105743408203125,
0.035797119140625,
0.0178680419921875,
0.04571533203125,
0.0027408599853515625,
0.0023193359375,
0.0219573974609375,
0.015960693359375,
0.01023101806640625,
0.058929443359375,
-0.051177978515625,
0.07843017578125,
-0.022430419921875,
0.04742431640625,
0.0010175704956054688,
0.042022705078125,
-0.0428466796875,
-0.030059814453125,
0.05560302734375,
0.004779815673828125,
0.0218048095703125,
0.016632080078125,
0.030670166015625,
0.0645751953125,
-0.0018739700317382812,
0.021087646484375,
-0.0008373260498046875,
-0.07379150390625,
0.033050537109375,
-0.050018310546875,
-0.041595458984375,
0.00672149658203125,
-0.01064300537109375,
0.020965576171875,
0.030426025390625,
0.005146026611328125,
0.0290374755859375,
-0.0087738037109375,
0.044036865234375,
-0.002506256103515625,
0.002197265625,
0.01346588134765625,
-0.0233306884765625,
0.03887939453125,
-0.0254974365234375,
-0.035491943359375,
-0.00815582275390625,
0.03521728515625,
-0.0155181884765625,
0.04620361328125,
0.017974853515625,
0.0355224609375,
0.033355712890625,
0.02838134765625,
0.057830810546875,
-0.0181121826171875,
-0.0293121337890625,
-0.006542205810546875,
-0.005680084228515625,
-0.031585693359375,
-0.028167724609375,
-0.00569915771484375,
-0.05535888671875,
0.0054473876953125,
-0.0046539306640625,
-0.0090484619140625,
0.011016845703125,
-0.00543212890625,
0.0010824203491210938,
0.01210784912109375,
0.035614013671875,
-0.0279083251953125,
-0.02459716796875,
-0.037139892578125,
0.0011663436889648438,
-0.0171051025390625,
-0.08251953125,
-0.0258026123046875,
0.049285888671875,
0.0284423828125,
-0.017303466796875,
0.044158935546875,
0.0810546875,
-0.028564453125,
0.0017290115356445312,
0.0025997161865234375,
-0.038055419921875,
0.022705078125,
-0.0482177734375,
-0.0014657974243164062,
0.0413818359375,
-0.0008344650268554688,
0.018829345703125,
0.03265380859375,
0.033905029296875,
0.00959014892578125,
-0.050262451171875,
-0.0418701171875,
-0.034271240234375,
0.004840850830078125,
0.038909912109375,
-0.06732177734375,
0.032135009765625,
0.0045166015625,
0.005001068115234375,
0.01322174072265625,
0.0196075439453125,
0.0018024444580078125,
-0.01299285888671875,
0.029510498046875,
0.01222991943359375,
-0.034759521484375,
-0.0086669921875,
0.0112762451171875,
0.0009684562683105469,
-0.043914794921875,
0.018310546875,
0.0711669921875,
0.020050048828125,
0.00418853759765625,
-0.024261474609375,
-0.012786865234375,
0.004131317138671875,
0.0089263916015625,
-0.0023174285888671875,
-0.0276336669921875,
-0.031219482421875,
0.023590087890625,
-0.0188446044921875,
-0.03643798828125,
0.0259857177734375,
0.00258636474609375,
-0.00000858306884765625,
-0.0134429931640625,
-0.033843994140625,
-0.0254058837890625,
-0.0266876220703125,
0.01253509521484375,
0.00963592529296875,
0.04254150390625,
0.00048232078552246094,
0.05682373046875,
-0.0309906005859375,
-0.000942230224609375,
-0.0152435302734375,
0.0229034423828125,
0.00875091552734375,
0.004734039306640625,
0.0278167724609375,
-0.01971435546875,
-0.01265716552734375,
-0.004985809326171875,
-0.0041961669921875,
0.0236968994140625,
0.046051025390625,
0.00370025634765625,
-0.00644683837890625,
0.00447845458984375,
-0.0007758140563964844,
-0.0193939208984375,
-0.007450103759765625,
0.0002409219741821289,
0.018707275390625,
0.0097503662109375,
0.0100860595703125,
-0.01537322998046875,
-0.0295257568359375,
0.0094451904296875,
-0.004573822021484375,
-0.039886474609375,
0.06878662109375,
0.005390167236328125,
0.08538818359375,
0.006938934326171875,
0.007110595703125,
0.0099945068359375,
0.03643798828125,
-0.043121337890625,
0.012542724609375,
-0.00547027587890625,
-0.0186614990234375,
0.046539306640625,
0.0028972625732421875,
0.01050567626953125,
-0.006877899169921875,
0.0246124267578125,
-0.007740020751953125,
0.020477294921875,
-0.010040283203125,
-0.1015625,
0.03399658203125,
-0.038055419921875,
0.039947509765625,
0.0021610260009765625,
0.020965576171875,
0.017181396484375,
-0.003932952880859375,
-0.0202484130859375,
0.0052642822265625,
0.0005674362182617188,
0.016387939453125,
-0.021636962890625,
-0.00394439697265625,
-0.023834228515625,
0.0010538101196289062,
-0.0208587646484375,
-0.01209259033203125,
-0.0280303955078125,
0.0217742919921875,
0.051727294921875,
-0.0222625732421875,
-0.01306915283203125,
-0.048980712890625,
0.0269927978515625,
0.0037517547607421875,
-0.0340576171875,
0.0220489501953125,
0.015838623046875,
0.0225677490234375,
-0.0218658447265625,
-0.01361083984375,
-0.0206756591796875,
-0.06719970703125,
0.01222991943359375,
0.061492919921875,
0.0142822265625,
-0.0050811767578125,
-0.0292510986328125,
0.0019311904907226562,
0.04730224609375,
-0.00020003318786621094,
-0.0017833709716796875,
0.008056640625,
0.018890380859375,
0.04754638671875,
-0.030303955078125,
-0.00970458984375,
0.010528564453125,
-0.105224609375,
-0.00910186767578125,
0.046630859375,
-0.0307159423828125,
-0.0016574859619140625,
-0.00411224365234375,
0.0294647216796875,
-0.0216064453125,
-0.018524169921875,
0.0238494873046875,
-0.042694091796875,
0.00734710693359375,
0.0301971435546875,
0.00888824462890625,
0.0078277587890625,
-0.06866455078125,
0.015106201171875,
0.040985107421875,
0.0545654296875,
-0.0016717910766601562,
0.038818359375,
0.0024242401123046875,
-0.030975341796875,
-0.015045166015625,
-0.00623321533203125,
-0.01605224609375,
0.01190948486328125,
0.0145263671875,
0.038360595703125,
0.017364501953125,
-0.002288818359375,
-0.007579803466796875,
0.00260162353515625,
0.022979736328125,
0.038238525390625,
-0.009124755859375,
-0.01409149169921875,
0.002323150634765625,
0.0703125,
0.005672454833984375,
0.0286865234375,
-0.002948760986328125,
0.00667572021484375,
0.0802001953125,
-0.0253753662109375,
0.0303192138671875,
-0.0010957717895507812,
0.09600830078125,
0.053070068359375,
-0.02783203125,
0.03436279296875,
-0.008636474609375,
-0.03802490234375,
-0.031494140625,
0.0200347900390625,
-0.009857177734375,
-0.04931640625,
-0.026519775390625,
0.0245208740234375,
0.0224609375,
0.09619140625,
-0.033660888671875,
-0.0604248046875,
-0.004375457763671875,
0.050384521484375,
-0.07763671875,
-0.0797119140625,
0.01849365234375,
-0.035369873046875,
-0.023773193359375,
-0.01727294921875,
-0.029296875,
0.004573822021484375,
-0.005123138427734375,
-0.0202178955078125,
0.01212310791015625,
-0.0212554931640625,
-0.081298828125,
-0.047149658203125,
-0.07720947265625,
0.013641357421875,
-0.0037288665771484375,
0.01898193359375,
0.0037288665771484375,
0.0206146240234375,
0.0138397216796875,
-0.0291290283203125,
0.0017261505126953125,
0.067138671875,
-0.0181427001953125,
-0.03802490234375,
0.01337432861328125,
-0.01287078857421875,
-0.0516357421875,
0.0165863037109375,
-0.0023040771484375,
-0.01081085205078125,
-0.00308990478515625,
-0.006481170654296875,
-0.00742340087890625,
0.01934814453125,
0.065185546875,
0.0191650390625,
-0.01294708251953125,
0.07086181640625,
0.10064697265625,
-0.0022029876708984375,
0.0007023811340332031,
-0.0177001953125,
-0.038299560546875,
0.031280517578125,
0.0369873046875,
-0.0157928466796875,
-0.01500701904296875,
0.008087158203125,
0.005443572998046875,
0.01309967041015625,
-0.03668212890625,
0.0212249755859375,
0.038604736328125,
-0.003482818603515625,
0.03936767578125,
0.014556884765625,
0.017425537109375,
-0.0010538101196289062,
0.0013360977172851562,
0.0023345947265625,
0.049560546875,
0.0024929046630859375,
-0.01690673828125,
-0.03607177734375,
-0.0386962890625,
0.05035400390625,
-0.01128387451171875,
-0.006870269775390625,
-0.021697998046875,
-0.03961181640625,
-0.033050537109375,
0.064208984375,
0.0322265625,
-0.01490020751953125,
-0.0014581680297851562,
-0.00447845458984375,
-0.055816650390625,
-0.00847625732421875,
-0.06982421875,
0.0113372802734375,
-0.01288604736328125,
-0.0175628662109375,
-0.035186767578125,
0.0012788772583007812,
-0.031707763671875,
0.072021484375,
-0.0158538818359375,
-0.00862884521484375,
0.0240325927734375,
-0.045135498046875,
0.0181427001953125,
-0.0015707015991210938,
0.004558563232421875,
-0.00896453857421875,
-0.022491455078125,
-0.0287017822265625,
-0.1014404296875,
-0.0177154541015625,
-0.001377105712890625,
0.06561279296875,
-0.025787353515625,
0.0286865234375,
-0.0164947509765625,
0.060638427734375,
-0.01078033447265625,
0.01474761962890625,
0.0026874542236328125,
0.01483917236328125,
0.01206207275390625,
-0.0016622543334960938,
0.01096343994140625,
-0.019775390625,
-0.0112457275390625,
0.0016260147094726562,
-0.027618408203125,
-0.018402099609375,
-0.035858154296875,
-0.037872314453125,
0.003978729248046875,
-0.03533935546875,
-0.022186279296875,
-0.0248260498046875,
-0.02276611328125,
0.023712158203125,
-0.021453857421875,
0.0194244384765625,
-0.04595947265625,
-0.06207275390625,
0.06219482421875,
0.018798828125,
-0.0107879638671875,
-0.03155517578125,
0.0770263671875,
0.025054931640625,
-0.04107666015625,
0.0185699462890625,
0.0139007568359375,
0.03997802734375,
-0.034698486328125,
0.0306549072265625,
0.00730133056640625,
-0.041839599609375,
0.079833984375,
-0.0130615234375,
0.0023555755615234375,
-0.00728607177734375,
0.0537109375,
-0.0130767822265625,
-0.033172607421875,
0.039337158203125,
-0.02166748046875,
-0.0078887939453125,
-0.0029850006103515625,
-0.01378631591796875,
0.0253143310546875,
0.026580810546875,
0.0233917236328125,
-0.0355224609375,
0.024322509765625,
-0.0069580078125,
-0.0711669921875,
0.023101806640625,
-0.039154052734375,
-0.0016841888427734375,
0.004360198974609375,
-0.003997802734375,
0.01514434814453125,
0.016326904296875,
0.003997802734375,
-0.01435089111328125,
-0.0257720947265625,
-0.0178070068359375,
0.01300048828125,
-0.0013866424560546875,
-0.002826690673828125,
-0.0012216567993164062,
-0.01229095458984375,
0.08038330078125,
0.0221710205078125,
-0.04541015625,
0.0216522216796875,
-0.0175323486328125,
0.055938720703125,
-0.011749267578125,
-0.00185394287109375,
0.016876220703125,
0.031402587890625,
-0.0099945068359375,
0.00698089599609375,
-0.017120361328125,
0.040771484375,
-0.035247802734375,
-0.00861358642578125,
-0.0090789794921875,
0.0007166862487792969,
-0.046112060546875,
0.154052734375,
0.0187530517578125,
0.03546142578125,
-0.044647216796875,
0.01140594482421875,
-0.037139892578125,
0.0771484375,
0.0391845703125,
-0.065673828125,
0.0216064453125,
0.022216796875,
-0.032318115234375,
-0.047119140625,
0.024261474609375,
0.0276336669921875,
0.040771484375,
0.0275726318359375,
-0.0268707275390625,
0.007305145263671875,
-0.02838134765625,
-0.01495361328125,
0.01409912109375,
-0.001861572265625,
-0.01146697998046875,
-0.0223388671875,
-0.0096435546875,
0.0169830322265625,
0.01255035400390625,
0.01397705078125,
-0.024932861328125,
0.006076812744140625,
0.019561767578125,
-0.054840087890625,
0.01418304443359375,
-0.009765625,
-0.003482818603515625,
-0.0193939208984375,
0.00226593017578125,
-0.00894927978515625,
-0.0006437301635742188,
-0.035247802734375,
-0.0074462890625,
-0.02178955078125,
0.03857421875,
-0.018463134765625,
0.0290985107421875,
-0.0311737060546875,
0.016571044921875,
-0.007526397705078125,
0.0006585121154785156,
0.0718994140625,
0.0411376953125,
-0.047454833984375,
-0.00223541259765625,
-0.0157318115234375,
0.00795745849609375,
0.0421142578125,
-0.018768310546875,
-0.0148162841796875,
-0.007602691650390625,
-0.007770538330078125,
0.041229248046875,
-0.0020885467529296875,
0.019927978515625,
0.029327392578125,
0.0010805130004882812,
-0.0626220703125,
0.046875,
-0.00235748291015625,
0.04412841796875,
0.01214599609375,
0.045501708984375,
0.00917816162109375,
0.0245513916015625,
-0.0253448486328125,
-0.0235595703125,
-0.0003342628479003906,
-0.047393798828125,
-0.0255584716796875,
-0.0045318603515625,
-0.0155792236328125,
0.01305389404296875,
0.006603240966796875,
0.0021190643310546875,
-0.00849151611328125,
0.0130157470703125,
0.002117156982421875,
-0.0015087127685546875,
-0.044830322265625,
0.0802001953125,
0.005855560302734375,
0.0094146728515625,
-0.034820556640625,
-0.0208282470703125,
-0.0194091796875,
-0.016448974609375,
0.01210784912109375,
-0.00312042236328125,
-0.0226287841796875,
0.04437255859375,
-0.0120086669921875,
0.04364013671875,
0.08758544921875,
0.0215911865234375,
0.041534423828125,
0.0428466796875,
0.010589599609375,
-0.0158538818359375,
0.0029964447021484375,
-0.0179901123046875,
-0.006259918212890625,
0.056121826171875,
0.0205841064453125,
-0.0158233642578125,
0.04541015625,
-0.029266357421875,
-0.018951416015625,
-0.0201873779296875,
0.017974853515625,
-0.0211181640625,
0.01515960693359375,
0.0198974609375,
0.0220489501953125,
0.004947662353515625,
0.006771087646484375,
-0.021087646484375,
0.002285003662109375,
0.0760498046875,
-0.07049560546875,
-0.005859375,
0.057647705078125,
-0.0035419464111328125,
-0.01496124267578125,
-0.0787353515625,
0.0206756591796875,
0.007457733154296875,
-0.009185791015625,
0.03778076171875,
0.0097808837890625,
0.0027942657470703125,
-0.049774169921875,
-0.00920867919921875,
0.0082244873046875,
0.0070037841796875,
-0.04644775390625,
0.041107177734375,
-0.04656982421875,
0.03118896484375,
-0.00820159912109375,
0.0272979736328125,
0.037872314453125,
0.03314208984375,
0.0092315673828125,
-0.0386962890625,
0.00787353515625,
-0.00815582275390625,
0.0257415771484375,
-0.0628662109375,
-0.0035648345947265625,
0.049530029296875,
-0.041717529296875,
0.031585693359375,
0.0394287109375,
-0.0240936279296875,
-0.01409149169921875,
-0.01378631591796875,
0.049774169921875,
0.0477294921875,
-0.05340576171875,
0.0158843994140625,
-0.00231170654296875,
-0.028350830078125,
0.03289794921875,
0.0462646484375,
-0.022796630859375,
-0.00537872314453125,
0.04229736328125,
-0.01678466796875,
-0.02105712890625,
0.0128936767578125,
-0.06121826171875,
0.05145263671875,
-0.0010805130004882812,
0.020355224609375,
-0.0014095306396484375,
0.013641357421875,
0.004993438720703125,
-0.0089263916015625,
-0.048614501953125,
0.01049041748046875,
0.001773834228515625,
0.037261962890625,
-0.05413818359375,
-0.0171661376953125,
-0.0087432861328125,
0.042510986328125,
0.05706787109375,
0.0088043212890625,
-0.00559234619140625,
-0.01090240478515625,
0.0010156631469726562,
0.000537872314453125,
-0.046630859375,
0.03271484375,
0.048736572265625,
0.0293731689453125,
0.08697509765625,
-0.01000213623046875,
0.0462646484375,
-0.0219268798828125,
0.039276123046875,
0.048187255859375,
0.00262451171875,
-0.006160736083984375,
-0.0291748046875,
-0.03680419921875,
-0.00702667236328125,
-0.040557861328125,
-0.005950927734375,
-0.0386962890625,
-0.002864837646484375,
0.052734375,
0.08856201171875,
-0.0343017578125,
-0.02001953125,
-0.0262603759765625,
0.062744140625,
0.05206298828125,
-0.0242156982421875,
0.0186767578125,
0.00567626953125,
-0.027313232421875,
0.0164642333984375,
-0.01471710205078125,
0.01334381103515625,
0.025360107421875,
0.035064697265625,
0.027191162109375,
0.0013866424560546875,
-0.03619384765625,
-0.0011339187622070312,
0.054107666015625,
0.05072021484375,
-0.034423828125,
-0.01445770263671875,
-0.0009579658508300781,
-0.0310516357421875,
-0.00856781005859375,
-0.01800537109375,
0.000052809715270996094,
0.0509033203125,
0.013427734375,
-0.03399658203125,
0.002056121826171875,
0.0153350830078125,
0.056732177734375,
-0.0015964508056640625,
-0.001148223876953125,
-0.055419921875,
-0.01910400390625,
-0.045806884765625,
-0.01111602783203125,
-0.0001512765884399414,
0.04510498046875,
0.04840087890625,
0.0196075439453125,
-0.0014514923095703125,
-0.015289306640625,
-0.0015192031860351562,
0.042449951171875,
0.00505828857421875,
0.0134735107421875,
-0.00861358642578125,
-0.01398468017578125,
0.0034503936767578125,
0.0169219970703125,
0.0161895751953125,
0.0214080810546875,
0.0452880859375,
0.032562255859375,
-0.0210418701171875,
-0.0047454833984375,
0.023651123046875,
-0.026458740234375,
-0.0019817352294921875,
-0.00878143310546875,
0.00815582275390625,
0.015869140625,
-0.00725555419921875,
-0.01551055908203125,
0.068359375,
-0.004642486572265625,
-0.0411376953125,
0.0193939208984375,
-0.005496978759765625,
-0.033599853515625,
0.020172119140625,
-0.0005812644958496094,
0.0263214111328125,
-0.0201416015625,
-0.0284576416015625,
0.0136260986328125,
-0.052154541015625,
-0.033782958984375,
0.00431060791015625,
0.0214080810546875,
-0.01323699951171875,
0.0364990234375,
-0.0290069580078125,
-0.0024394989013671875,
0.0142364501953125,
-0.026519775390625,
0.0163421630859375,
0.036834716796875,
-0.0013036727905273438,
0.0019025802612304688,
-0.05987548828125,
-0.03631591796875,
-0.00740814208984375,
0.0076141357421875,
0.01080322265625,
0.007656097412109375,
0.0260772705078125,
0.01262664794921875,
-0.0631103515625,
0.01149749755859375,
-0.0660400390625,
-0.07281494140625,
0.0831298828125,
-0.007411956787109375,
-0.04144287109375,
0.00705718994140625,
-0.0209503173828125,
0.0164642333984375,
0.041107177734375,
-0.004276275634765625,
0.0059967041015625,
-0.00750732421875,
0.0218963623046875,
-0.0267181396484375,
-0.01068115234375,
-0.0399169921875,
-0.034423828125,
-0.05084228515625,
-0.033782958984375,
0.0278472900390625,
0.00980377197265625,
0.01320648193359375,
-0.0014171600341796875,
0.0106353759765625,
-0.03350830078125,
0.02716064453125,
-0.01314544677734375,
0.027069091796875,
0.015777587890625,
0.0009646415710449219,
-0.0206756591796875,
-0.0171966552734375,
-0.01531219482421875,
0.006855010986328125,
0.01180267333984375,
0.0097198486328125,
0.005702972412109375,
-0.0046844482421875,
0.0030384063720703125,
-0.0180511474609375,
0.035552978515625,
0.01119232177734375,
-0.0015573501586914062,
-0.027923583984375,
-0.004390716552734375,
-0.016815185546875,
0.0049896240234375,
-0.0311431884765625,
-0.030548095703125,
-0.01000213623046875,
0.0114898681640625,
-0.0045013427734375,
-0.01462554931640625,
-0.04473876953125,
-0.0275726318359375,
-0.01363372802734375,
-0.0186767578125,
0.01190185546875,
-0.0286407470703125,
-0.0197906494140625,
-0.0259857177734375,
-0.02569580078125,
-0.01029205322265625,
0.034423828125,
0.058868408203125,
-0.031890869140625,
0.02203369140625,
0.009368896484375,
-0.039398193359375,
0.0103759765625,
0.0181732177734375,
0.025054931640625,
-0.0102081298828125,
-0.036956787109375,
0.038482666015625,
0.023834228515625,
0.0770263671875,
-0.02154541015625,
-0.006145477294921875,
-0.00382232666015625,
0.02081298828125,
-0.0232391357421875,
-0.1046142578125,
0.0142059326171875,
-0.0770263671875,
0.0026607513427734375,
-0.016204833984375,
0.0207061767578125,
0.031951904296875,
-0.0007233619689941406,
0.01519775390625,
0.034088134765625,
0.013519287109375,
-0.011627197265625,
-0.032257080078125,
-0.0142669677734375,
0.00783538818359375,
0.04315185546875,
-0.005397796630859375,
-0.0087432861328125,
-0.0501708984375,
0.01174163818359375,
0.0162200927734375,
-0.0211334228515625,
0.039398193359375,
0.00640106201171875,
-0.06402587890625,
0.00335693359375,
-0.0271759033203125,
-0.022003173828125,
-0.0026454925537109375,
-0.01041412353515625,
0.0127716064453125,
0.0208892822265625,
-0.04083251953125,
-0.01174163818359375,
-0.0005640983581542969,
0.04864501953125,
-0.022918701171875,
-0.0293426513671875,
-0.006130218505859375,
0.014190673828125,
0.0478515625,
0.042572021484375,
0.01445770263671875,
-0.06402587890625,
0.00255584716796875,
0.00597381591796875,
-0.01287078857421875,
-0.014373779296875,
0.0230255126953125,
-0.06640625,
-0.045745849609375,
0.0013017654418945312,
-0.0013532638549804688,
0.0298614501953125,
-0.035491943359375,
-0.0233917236328125,
-0.01473236083984375,
-0.0223846435546875,
0.005405426025390625,
-0.00847625732421875,
-0.0209197998046875,
0.03509521484375,
-0.0286102294921875,
-0.021026611328125,
0.0309906005859375,
0.01195526123046875,
0.004917144775390625,
0.04656982421875,
-0.01187896728515625,
0.0164947509765625,
-0.01053619384765625,
0.00984954833984375,
0.0011663436889648438,
0.01546478271484375,
-0.0006117820739746094,
0.0111083984375,
-0.0070037841796875,
0.035430908203125,
-0.0212554931640625,
0.024749755859375,
0.01300048828125,
0.04583740234375,
0.016845703125,
0.050018310546875,
-0.01629638671875,
0.020294189453125,
-0.0200958251953125,
0.038604736328125,
-0.0163726806640625,
-0.01436614990234375,
0.01338958740234375,
-0.03216552734375,
0.015869140625,
-0.006984710693359375,
0.020263671875,
-0.0181121826171875,
0.007610321044921875,
0.035247802734375,
-0.00701141357421875,
0.0228118896484375
] |
6c76329ee22f2bf9a066b2ee02388d62a2c35f67
|
Wordpress Stackexchange
Q: How to limit the posts I have a new question, how can I limit the amount of posts coming out of this query? I only need 7
<?php
$newsposts = new WP_Query('cat=restaurant');
if ( is_front_page()) {
echo '<h3 class="member-review">Latest Restaurants</h3>
<div id="extra">';
if ($newsposts->have_posts()) : while ($newsposts->have_posts()) : $newsposts->the_post();
echo '<div class="reslogo"><img src="'.catch_that_image().'"/></div>';
endwhile; endif;
echo '</div>';
}
?>
I tried to put: ('cat=restaurants'.'limit=7') but she no work. How did i go wrong? any help would be appreciated
A: It should be:
$newsposts = new WP_Query('cat=restaurant&posts_per_page=7');
Another way to write it (helps readability with larger queries) would be:
$newsposts = new WP_Query(array(
'cat' => 'restaurant',
'posts_per_page' => 7,
));
See WP_Query in Codex for description of available parameters.
PS would be good practice to add wp_reset_postdata() at the end. You are (correctly) not modifying main query, but you do change global $post variable with this loop.
|
Q: How to limit the posts I have a new question, how can I limit the amount of posts coming out of this query? I only need 7
<?php
$newsposts = new WP_Query('cat=restaurant');
if ( is_front_page()) {
echo '<h3 class="member-review">Latest Restaurants</h3>
<div id="extra">';
if ($newsposts->have_posts()) : while ($newsposts->have_posts()) : $newsposts->the_post();
echo '<div class="reslogo"><img src="'.catch_that_image().'"/></div>';
endwhile; endif;
echo '</div>';
}
?>
I tried to put: ('cat=restaurants'.'limit=7') but she no work. How did i go wrong? any help would be appreciated
A: It should be:
$newsposts = new WP_Query('cat=restaurant&posts_per_page=7');
Another way to write it (helps readability with larger queries) would be:
$newsposts = new WP_Query(array(
'cat' => 'restaurant',
'posts_per_page' => 7,
));
See WP_Query in Codex for description of available parameters.
PS would be good practice to add wp_reset_postdata() at the end. You are (correctly) not modifying main query, but you do change global $post variable with this loop.
A: That's what works for me (showposts):
$query = new WP_Query(array(
'showposts' => 4,
'post_type' => 'xxx',
'cache_results' => false
));
A: I think you have a slight error here, the 'cat' paramater only accepts a post ID as an Integer
Source: WP_Query Parameters
|
wordpress
|
{
"language": "en",
"length": 191,
"provenance": "stackexchange_00019.jsonl.gz:408337",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13863"
}
|
[
0.049896240234375,
0.00463104248046875,
0.0262908935546875,
0.035736083984375,
0.0228424072265625,
-0.02117919921875,
0.0755615234375,
-0.0697021484375,
0.0223236083984375,
0.0001685619354248047,
-0.0780029296875,
0.02593994140625,
-0.038055419921875,
-0.0045928955078125,
-0.002349853515625,
-0.0291900634765625,
0.05181884765625,
-0.01122283935546875,
0.0283966064453125,
0.01129913330078125,
0.002780914306640625,
0.033172607421875,
0.02056884765625,
0.057342529296875,
0.01548004150390625,
-0.0124359130859375,
0.06671142578125,
-0.034698486328125,
0.002410888671875,
-0.033966064453125,
0.0124664306640625,
0.00392913818359375,
0.0284271240234375,
0.03033447265625,
-0.03546142578125,
0.0282745361328125,
0.0245819091796875,
-0.0094146728515625,
-0.0088958740234375,
0.0506591796875,
0.0146026611328125,
-0.0026645660400390625,
0.026336669921875,
0.0191650390625,
0.007152557373046875,
-0.044219970703125,
0.029205322265625,
-0.06829833984375,
-0.0096588134765625,
-0.03466796875,
0.0215606689453125,
0.006778717041015625,
0.032867431640625,
-0.007083892822265625,
-0.01369476318359375,
0.0205535888671875,
0.05487060546875,
-0.059234619140625,
0.0535888671875,
-0.01168060302734375,
-0.0599365234375,
-0.0313720703125,
0.0394287109375,
-0.05657958984375,
-0.01058197021484375,
0.0008935928344726562,
0.03558349609375,
0.0211334228515625,
0.003040313720703125,
-0.0234832763671875,
0.004367828369140625,
0.01102447509765625,
0.01334381103515625,
-0.0059356689453125,
-0.01389312744140625,
-0.04241943359375,
0.0079345703125,
-0.049652099609375,
0.027923583984375,
0.0148773193359375,
-0.021514892578125,
-0.0192413330078125,
-0.049285888671875,
0.051544189453125,
-0.05267333984375,
0.0177764892578125,
-0.0212860107421875,
0.002948760986328125,
-0.0218963623046875,
-0.0160369873046875,
-0.00909423828125,
-0.0177001953125,
-0.0433349609375,
0.02239990234375,
0.0271453857421875,
-0.046356201171875,
-0.01403045654296875,
0.0129547119140625,
-0.01055145263671875,
0.0092010498046875,
-0.0361328125,
-0.006435394287109375,
-0.022369384765625,
-0.00957489013671875,
0.0589599609375,
0.078125,
-0.054351806640625,
0.044281005859375,
0.09967041015625,
0.028167724609375,
0.05303955078125,
0.031982421875,
-0.0264739990234375,
-0.00588226318359375,
-0.0523681640625,
0.0012693405151367188,
-0.036407470703125,
-0.01102447509765625,
-0.0076751708984375,
0.017242431640625,
-0.0180206298828125,
0.01715087890625,
-0.032501220703125,
-0.0262298583984375,
0.011260986328125,
-0.01152801513671875,
-0.0030384063720703125,
0.003925323486328125,
0.0154571533203125,
0.07183837890625,
-0.01247406005859375,
-0.03338623046875,
0.00788116455078125,
0.05242919921875,
0.0187835693359375,
-0.03564453125,
0.033935546875,
-0.03826904296875,
-0.0094757080078125,
0.01419830322265625,
-0.026123046875,
-0.040130615234375,
0.0018634796142578125,
-0.0177764892578125,
0.0046234130859375,
0.00005692243576049805,
0.0435791015625,
0.0224151611328125,
-0.037139892578125,
-0.0223541259765625,
0.00732421875,
0.0013427734375,
0.06671142578125,
-0.015838623046875,
-0.06768798828125,
-0.0302886962890625,
0.0019207000732421875,
-0.02447509765625,
-0.045684814453125,
-0.044464111328125,
0.022491455078125,
-0.0071868896484375,
0.04071044921875,
-0.0560302734375,
-0.040740966796875,
-0.0018491744995117188,
-0.081298828125,
-0.005306243896484375,
0.0218353271484375,
0.055267333984375,
-0.02606201171875,
-0.0123138427734375,
0.0158538818359375,
0.021514892578125,
-0.01617431640625,
0.019744873046875,
-0.004913330078125,
-0.03240966796875,
0.03753662109375,
0.0223846435546875,
-0.0157470703125,
-0.037994384765625,
0.0289459228515625,
-0.012176513671875,
-0.046905517578125,
0.010223388671875,
0.00974273681640625,
0.04052734375,
0.0072479248046875,
0.007537841796875,
0.0645751953125,
-0.0017957687377929688,
-0.0350341796875,
0.042694091796875,
-0.0113372802734375,
-0.03753662109375,
0.0034942626953125,
0.000007510185241699219,
-0.0169525146484375,
-0.00861358642578125,
0.017181396484375,
-0.0038051605224609375,
0.007328033447265625,
-0.040771484375,
-0.076171875,
0.0145416259765625,
-0.0292510986328125,
0.052642822265625,
-0.04864501953125,
-0.006153106689453125,
0.0498046875,
-0.00881195068359375,
-0.041259765625,
-0.0035915374755859375,
-0.0310516357421875,
-0.01499176025390625,
-0.01806640625,
0.0278167724609375,
0.0016279220581054688,
0.0254058837890625,
0.0101776123046875,
-0.0242156982421875,
0.0141143798828125,
0.0174560546875,
0.07373046875,
-0.02581787109375,
-0.0036716461181640625,
-0.03839111328125,
0.02508544921875,
0.00392913818359375,
-0.0762939453125,
0.03143310546875,
0.020416259765625,
0.0189361572265625,
-0.0007195472717285156,
0.032440185546875,
0.0311737060546875,
-0.02838134765625,
-0.01442718505859375,
0.0172271728515625,
0.035675048828125,
0.0009946823120117188,
-0.0210723876953125,
-0.0243072509765625,
0.00820159912109375,
-0.083984375,
-0.0038471221923828125,
-0.013916015625,
-0.006801605224609375,
0.0269012451171875,
0.0206298828125,
0.0180206298828125,
0.02032470703125,
0.0277099609375,
0.01084136962890625,
0.0276947021484375,
0.00708770751953125,
0.00888824462890625,
-0.0270538330078125,
0.021514892578125,
0.0145416259765625,
0.04547119140625,
-0.01238250732421875,
0.02459716796875,
0.01383209228515625,
-0.0203857421875,
0.01477813720703125,
-0.0081634521484375,
-0.0012073516845703125,
-0.019775390625,
0.01369476318359375,
-0.007293701171875,
0.01142120361328125,
-0.04815673828125,
-0.0955810546875,
0.007587432861328125,
-0.02880859375,
0.0562744140625,
0.0263519287109375,
-0.05511474609375,
-0.001190185546875,
0.05419921875,
0.004604339599609375,
-0.014739990234375,
-0.032135009765625,
-0.070556640625,
-0.00400543212890625,
-0.0031337738037109375,
0.0024871826171875,
0.019134521484375,
0.0299072265625,
0.028350830078125,
-0.0241851806640625,
0.022735595703125,
0.01371002197265625,
0.0019216537475585938,
0.0584716796875,
-0.006443023681640625,
0.040435791015625,
-0.0191497802734375,
0.04168701171875,
0.0396728515625,
-0.050994873046875,
0.05126953125,
-0.014312744140625,
0.0166168212890625,
-0.0104217529296875,
0.01534271240234375,
-0.020782470703125,
-0.014190673828125,
-0.04913330078125,
0.02923583984375,
0.03045654296875,
0.03594970703125,
0.0136871337890625,
-0.02093505859375,
0.021942138671875,
0.0231475830078125,
-0.050384521484375,
-0.0672607421875,
0.0208587646484375,
-0.01128387451171875,
-0.0113372802734375,
0.01141357421875,
-0.004230499267578125,
-0.00909423828125,
0.004802703857421875,
-0.0151824951171875,
-0.04241943359375,
0.0192108154296875,
-0.0280914306640625,
-0.02227783203125,
-0.0389404296875,
0.0197296142578125,
-0.0015878677368164062,
0.025421142578125,
-0.01702880859375,
0.0970458984375,
-0.01349639892578125,
-0.07403564453125,
-0.062103271484375,
-0.00801849365234375,
-0.0158843994140625,
-0.028289794921875,
-0.04010009765625,
0.06201171875,
-0.00372314453125,
0.017669677734375,
-0.006053924560546875,
0.0294342041015625,
-0.0246734619140625,
-0.008148193359375,
0.0022449493408203125,
0.01837158203125,
0.019500732421875,
0.0265045166015625,
-0.00492095947265625,
0.021514892578125,
0.0128173828125,
-0.026580810546875,
-0.07440185546875,
-0.010955810546875,
-0.08404541015625,
-0.0404052734375,
0.05865478515625,
0.042510986328125,
-0.0421142578125,
0.006664276123046875,
-0.00850677490234375,
-0.01427459716796875,
0.0357666015625,
-0.0634765625,
0.0821533203125,
0.00838470458984375,
0.0162506103515625,
-0.048553466796875,
0.03240966796875,
-0.0131988525390625,
0.047454833984375,
0.0272979736328125,
0.0021495819091796875,
-0.003772735595703125,
0.006404876708984375,
-0.01019287109375,
-0.0161590576171875,
0.03228759765625,
-0.01297760009765625,
0.07086181640625,
-0.057769775390625,
-0.03973388671875,
-0.052581787109375,
0.07763671875,
-0.048126220703125,
-0.0182952880859375,
-0.01212310791015625,
0.01593017578125,
-0.0200347900390625,
-0.07061767578125,
-0.01873779296875,
-0.00896453857421875,
-0.024566650390625,
-0.016876220703125,
-0.02117919921875,
-0.01126861572265625,
0.0029773712158203125,
-0.01546478271484375,
-0.015533447265625,
-0.031219482421875,
0.043701171875,
-0.064208984375,
-0.0030612945556640625,
-0.0011205673217773438,
-0.0263671875,
-0.0277557373046875,
-0.039306640625,
-0.0163116455078125,
-0.055267333984375,
-0.015411376953125,
0.0026397705078125,
0.0280609130859375,
0.01678466796875,
-0.052703857421875,
0.0034942626953125,
0.02978515625,
-0.003570556640625,
-0.011932373046875,
0.01715087890625,
0.00836181640625,
-0.04168701171875,
0.0190277099609375,
0.0008640289306640625,
-0.034637451171875,
-0.0162200927734375,
-0.037841796875,
0.024627685546875,
0.0238189697265625,
-0.0478515625,
-0.01049041748046875,
-0.045654296875,
0.0199432373046875,
-0.06353759765625,
-0.031097412109375,
0.0139007568359375,
0.016876220703125,
-0.006229400634765625,
-0.00780487060546875,
-0.0210113525390625,
-0.052947998046875,
0.0126495361328125,
0.021392822265625,
-0.03778076171875,
0.023101806640625,
0.06121826171875,
0.0160980224609375,
-0.01361083984375,
-0.0655517578125,
0.0029926300048828125,
0.03729248046875,
0.03546142578125,
0.02435302734375,
0.0079345703125,
-0.024444580078125,
0.0445556640625,
0.0299835205078125,
-0.033447265625,
0.0149688720703125,
0.0269927978515625,
-0.007526397705078125,
-0.006011962890625,
-0.015472412109375,
-0.03350830078125,
0.035400390625,
-0.00807952880859375,
-0.005611419677734375,
-0.0035037994384765625,
-0.039642333984375,
0.05816650390625,
0.0172119140625,
0.00858306884765625,
-0.051422119140625,
0.0058746337890625,
-0.001178741455078125,
0.0447998046875,
0.04522705078125,
0.038665771484375,
0.006763458251953125,
-0.0006160736083984375,
0.01425933837890625,
-0.0000743865966796875,
0.0179290771484375,
0.03485107421875,
-0.0171356201171875,
0.03192138671875,
0.01235198974609375,
-0.016845703125,
0.00977325439453125,
-0.004444122314453125,
0.0146026611328125,
-0.004695892333984375,
-0.049102783203125,
-0.0209808349609375,
0.004131317138671875,
0.007549285888671875,
-0.007282257080078125,
0.00799560546875,
0.01125335693359375,
-0.00843048095703125,
0.011383056640625,
0.01110076904296875,
0.001468658447265625,
-0.02410888671875,
-0.004150390625,
0.0147552490234375,
-0.00882720947265625,
0.0039005279541015625,
0.0189208984375,
0.0743408203125,
-0.00988006591796875,
0.06011962890625,
-0.0265655517578125,
0.0635986328125,
0.0214385986328125,
0.0172882080078125,
-0.00748443603515625,
0.05047607421875,
-0.01580810546875,
0.0029201507568359375,
-0.005992889404296875,
-0.020599365234375,
-0.03887939453125,
0.0201873779296875,
-0.0050201416015625,
0.0310821533203125,
0.037933349609375,
-0.018585205078125,
0.039215087890625,
-0.013519287109375,
0.0562744140625,
0.060882568359375,
-0.025360107421875,
-0.01496124267578125,
0.03448486328125,
0.04229736328125,
0.00684356689453125,
0.017181396484375,
0.0043182373046875,
0.0114898681640625,
0.04351806640625,
-0.0164031982421875,
0.01326751708984375,
-0.0023975372314453125,
-0.005645751953125,
-0.058319091796875,
-0.035675048828125,
-0.036773681640625,
-0.005107879638671875,
-0.010223388671875,
0.01137542724609375,
-0.02423095703125,
-0.0038967132568359375,
-0.0146636962890625,
0.056121826171875,
-0.043212890625,
-0.0270843505859375,
-0.052001953125,
0.02197265625,
0.0012674331665039062,
0.011199951171875,
0.023284912109375,
-0.03363037109375,
-0.04058837890625,
-0.04595947265625,
0.0217742919921875,
0.0157470703125,
-0.0011615753173828125,
-0.00952911376953125,
-0.018707275390625,
0.0146942138671875,
0.0027217864990234375,
-0.0018548965454101562,
-0.02410888671875,
0.0129241943359375,
0.0017480850219726562,
0.0173492431640625,
-0.041412353515625,
0.020782470703125,
0.002613067626953125,
0.00727081298828125,
-0.01502227783203125,
-0.0034694671630859375,
0.024810791015625,
-0.007511138916015625,
0.0264739990234375,
-0.0633544921875,
-0.035308837890625,
0.0246734619140625,
-0.08685302734375,
-0.0094451904296875,
0.005443572998046875,
-0.01004791259765625,
0.0389404296875,
-0.023590087890625,
0.008636474609375,
-0.0276336669921875,
-0.026947021484375,
-0.06549072265625,
0.0093994140625,
0.019989013671875,
0.00943756103515625,
0.034088134765625,
-0.04693603515625,
-0.0205535888671875,
0.0162811279296875,
-0.00725555419921875,
0.01306915283203125,
0.0146636962890625,
0.0101470947265625,
0.0018177032470703125,
0.11572265625,
0.0157928466796875,
0.07049560546875,
0.0517578125,
0.033111572265625,
0.05328369140625,
0.01152801513671875,
0.0423583984375,
0.006175994873046875,
0.03704833984375,
-0.0090179443359375,
0.016387939453125,
0.028472900390625,
-0.01320648193359375,
0.007472991943359375,
-0.0184326171875,
0.04083251953125,
-0.006160736083984375,
0.019927978515625,
0.0325927734375,
-0.028564453125,
0.0185546875,
-0.00243377685546875,
0.04266357421875,
0.04754638671875,
0.0335693359375,
0.007213592529296875,
-0.0038051605224609375,
0.0181121826171875,
-0.016937255859375,
0.006580352783203125,
-0.015167236328125,
0.04827880859375,
0.00628662109375,
-0.05877685546875,
-0.007476806640625,
0.03179931640625,
-0.035125732421875,
-0.0267486572265625,
0.0191650390625,
-0.0168609619140625,
0.002361297607421875,
-0.0374755859375,
0.0268096923828125,
-0.0164031982421875,
0.01532745361328125,
0.033477783203125,
-0.027069091796875,
-0.0222625732421875,
0.0302734375,
-0.042572021484375,
0.037322998046875,
0.005950927734375,
-0.025848388671875,
-0.047393798828125,
-0.04437255859375,
-0.008758544921875,
0.01654052734375,
-0.0284881591796875,
0.03436279296875,
-0.0066986083984375,
-0.042022705078125,
-0.018218994140625,
-0.057769775390625,
0.061553955078125,
-0.02764892578125,
-0.0228424072265625,
0.0148468017578125,
0.02716064453125,
-0.00955963134765625,
-0.003139495849609375,
-0.00031065940856933594,
-0.043975830078125,
-0.023590087890625,
0.00522613525390625,
-0.035125732421875,
-0.0165863037109375,
-0.024688720703125,
-0.035430908203125,
0.0450439453125,
0.01302337646484375,
0.0028972625732421875,
-0.0004696846008300781,
0.02423095703125,
-0.00843048095703125,
0.01129913330078125,
-0.036956787109375,
0.024200439453125,
0.001007080078125,
0.049163818359375,
-0.028411865234375,
-0.00519561767578125,
0.01222991943359375,
0.012725830078125,
0.00007361173629760742,
0.0023860931396484375,
-0.00547027587890625,
0.01275634765625,
0.03314208984375,
0.043121337890625,
0.004878997802734375,
0.0032138824462890625,
0.000324249267578125,
0.01495361328125,
0.04534912109375,
-0.02978515625,
0.016998291015625,
-0.006988525390625,
-0.0114593505859375,
0.0136566162109375,
0.00559234619140625,
0.00800323486328125,
-0.01910400390625,
0.05859375,
-0.0301361083984375,
-0.0230712890625,
0.032440185546875,
-0.02789306640625,
-0.0250701904296875,
0.050872802734375,
0.04815673828125,
-0.052581787109375,
-0.033538818359375,
-0.0267486572265625,
0.0565185546875,
0.0269317626953125,
0.04541015625,
0.054412841796875,
0.0208740234375,
0.06915283203125,
0.01328277587890625,
0.0276031494140625,
0.0164031982421875,
0.0121307373046875,
0.040740966796875,
0.040008544921875,
0.05084228515625,
0.00876617431640625,
0.01442718505859375,
0.0075531005859375,
0.042205810546875,
-0.034149169921875,
0.0219268798828125,
0.0016202926635742188,
0.0245819091796875,
0.0109405517578125,
-0.01465606689453125,
0.044097900390625,
0.052978515625,
0.031219482421875,
-0.025299072265625,
0.0137786865234375,
0.0316162109375,
0.01198577880859375,
-0.00568389892578125,
0.00879669189453125,
-0.029388427734375,
0.0251922607421875,
0.0035343170166015625,
-0.033294677734375,
0.01479339599609375,
0.0250244140625,
-0.004070281982421875,
0.016754150390625,
-0.016204833984375,
0.0084686279296875,
0.02984619140625,
-0.0011386871337890625,
-0.0117950439453125,
-0.03253173828125,
0.010986328125,
-0.035247802734375,
-0.019073486328125,
0.006805419921875,
0.03973388671875,
0.0139923095703125,
0.041290283203125,
0.043304443359375,
-0.0018663406372070312,
0.0012607574462890625,
0.022857666015625,
-0.0007982254028320312,
-0.016357421875,
0.006526947021484375,
-0.031341552734375,
-0.00612640380859375,
-0.028564453125,
0.0020465850830078125,
0.06414794921875,
-0.037567138671875,
0.0019969940185546875,
-0.01404571533203125,
0.01436614990234375,
-0.03131103515625,
0.0322265625,
0.0011653900146484375,
0.039276123046875,
0.0240478515625,
-0.11004638671875,
-0.00970458984375,
-0.031951904296875,
-0.04193115234375,
0.0255126953125,
0.0394287109375,
-0.0244903564453125,
0.03680419921875,
-0.0113983154296875,
-0.0125274658203125,
0.02886962890625,
-0.021087646484375,
-0.0061492919921875,
0.0281524658203125,
0.026336669921875,
0.00331878662109375,
-0.0670166015625,
-0.054229736328125,
-0.0179443359375,
0.0243072509765625,
0.0156707763671875,
0.04449462890625,
0.023529052734375,
0.0005717277526855469,
-0.0030040740966796875,
-0.00089263916015625,
0.004337310791015625,
-0.024505615234375,
0.07049560546875,
0.01537322998046875,
0.0009603500366210938,
-0.0333251953125,
-0.0180511474609375,
-0.0162200927734375,
0.045684814453125,
-0.06103515625,
0.0006690025329589844,
-0.037200927734375,
0.018798828125,
-0.065673828125,
0.03399658203125,
-0.0004482269287109375,
0.033172607421875,
-0.0256195068359375,
-0.073974609375,
0.08111572265625,
0.0289154052734375,
0.01432037353515625,
0.03466796875,
-0.003932952880859375,
-0.018096923828125,
0.0169830322265625,
-0.029388427734375,
0.0211639404296875,
0.033111572265625,
-0.01548004150390625,
0.03631591796875,
-0.00273895263671875,
-0.0246429443359375,
0.00662994384765625,
0.01100921630859375,
-0.0391845703125,
-0.00640106201171875,
-0.01177978515625,
0.0032024383544921875,
-0.009368896484375,
0.0297393798828125,
-0.01052093505859375,
-0.0038928985595703125,
-0.03851318359375,
0.0024356842041015625,
0.013458251953125,
0.0531005859375,
-0.037017822265625,
-0.045989990234375,
-0.007724761962890625,
-0.0189361572265625,
-0.037200927734375,
-0.04119873046875,
0.002185821533203125,
0.004650115966796875,
0.0265960693359375,
-0.002288818359375,
-0.0239715576171875,
0.0180206298828125,
-0.00537109375,
0.042999267578125,
-0.0174713134765625,
-0.039337158203125,
-0.0054779052734375,
0.01357269287109375,
-0.01399993896484375,
-0.005214691162109375,
-0.049560546875,
0.0242767333984375,
-0.0184326171875,
-0.00323486328125,
0.0236053466796875,
-0.019378662109375,
0.0086669921875,
-0.01288604736328125,
0.01100921630859375,
0.01439666748046875,
-0.01751708984375,
0.000202178955078125,
0.049530029296875,
0.0008869171142578125,
-0.07196044921875,
-0.08367919921875,
0.00434112548828125,
-0.046844482421875,
0.0005273818969726562,
-0.0261993408203125,
-0.006439208984375,
-0.0036945343017578125,
-0.044097900390625,
-0.05987548828125,
0.06396484375,
-0.0220947265625,
-0.024444580078125,
-0.025604248046875,
-0.0323486328125,
0.0007500648498535156,
0.008880615234375,
-0.0036449432373046875,
-0.01410675048828125,
-0.05950927734375,
0.01052093505859375,
-0.00386810302734375,
0.031951904296875,
0.0260467529296875,
-0.0184478759765625,
-0.03851318359375,
-0.004123687744140625,
-0.008209228515625,
0.0268707275390625,
-0.03094482421875,
0.0192413330078125,
0.01125335693359375,
0.040985107421875,
0.003387451171875,
0.009002685546875,
0.01499176025390625,
-0.024658203125,
-0.0004973411560058594,
-0.004852294921875,
-0.06951904296875,
-0.016204833984375,
0.05535888671875,
0.079345703125,
0.02142333984375,
-0.040191650390625,
-0.01155853271484375,
-0.004726409912109375,
-0.0010662078857421875,
-0.0300750732421875,
0.005802154541015625,
-0.059844970703125,
-0.0290985107421875,
-0.02215576171875,
-0.02606201171875,
-0.01434326171875,
-0.01021575927734375,
-0.0467529296875,
-0.002269744873046875,
-0.01142120361328125,
-0.016357421875,
-0.0065460205078125,
0.027191162109375,
0.05023193359375,
-0.040252685546875,
-0.0223388671875,
-0.0160675048828125,
0.006084442138671875,
0.01128387451171875,
-0.0237884521484375,
-0.00920867919921875,
-0.0013017654418945312,
-0.047607421875,
0.00470733642578125,
-0.01067352294921875,
-0.007686614990234375,
-0.0295257568359375,
-0.0088653564453125,
-0.00830841064453125,
0.0157623291015625,
0.037994384765625,
0.026611328125,
-0.042449951171875,
0.031280517578125,
0.012298583984375,
-0.00417327880859375,
-0.01372528076171875,
0.041107177734375,
0.007171630859375,
0.033172607421875,
-0.01129913330078125,
-0.002086639404296875,
0.03662109375,
-0.0594482421875,
-0.004344940185546875,
-0.0005927085876464844,
-0.01343536376953125,
-0.051605224609375,
0.0290069580078125,
0.019287109375,
0.00023925304412841797,
0.023834228515625
] |
a9fc0d8b052628bdc6cdbb5c8fdb1d8c0ed2adf0
|
Wordpress Stackexchange
Q: Create subdomains for tags and categories I'd like to find a way to make subdomain addresses work for some of my important tags and categories. For instance foo.thesite.com would show content for thesite.com/category/foo.
I've been trying to make this working using my .htaccess file and the DNS but I can't get it to work properly.
Making the subdomain forward to the right URL is just a matter of the right DNS settings, but then I also want to make sure the site shows it as foo.thesite.com.
Can anyone provide some ideas on how to make this work?
Update - April 6: I found one partial solution. If you have full domain DNS control and you have the CURL DNS option you can add a subdomain and point it to the category or tag page. The catch is that when I did this, clicking links leaves the URL as foo.thesite.com, and the title somehow doesn't work--instead of a title I get the URL as the page title.
Any thoughts on this, alternatives, or ideas on how to format the .htaccess rules?
A: This plugin will help you:
http://wordpress.org/extend/plugins/wordpress-subdomains/
Also, wp_redirect could be helpful:
https://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains
|
Q: Create subdomains for tags and categories I'd like to find a way to make subdomain addresses work for some of my important tags and categories. For instance foo.thesite.com would show content for thesite.com/category/foo.
I've been trying to make this working using my .htaccess file and the DNS but I can't get it to work properly.
Making the subdomain forward to the right URL is just a matter of the right DNS settings, but then I also want to make sure the site shows it as foo.thesite.com.
Can anyone provide some ideas on how to make this work?
Update - April 6: I found one partial solution. If you have full domain DNS control and you have the CURL DNS option you can add a subdomain and point it to the category or tag page. The catch is that when I did this, clicking links leaves the URL as foo.thesite.com, and the title somehow doesn't work--instead of a title I get the URL as the page title.
Any thoughts on this, alternatives, or ideas on how to format the .htaccess rules?
A: This plugin will help you:
http://wordpress.org/extend/plugins/wordpress-subdomains/
Also, wp_redirect could be helpful:
https://stackoverflow.com/questions/4706672/wordpress-tags-redirect-to-subdomains
A: this plugin does it:
https://wordpress.org/plugins/main-category-as-subdomain
you can also choose custom themes for each category
|
wordpress
|
{
"language": "en",
"length": 209,
"provenance": "stackexchange_00019.jsonl.gz:408350",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13905"
}
|
[
0.038909912109375,
0.00890350341796875,
-0.018463134765625,
0.013824462890625,
0.005321502685546875,
-0.06500244140625,
0.059051513671875,
-0.0518798828125,
-0.004730224609375,
0.020751953125,
-0.01026153564453125,
-0.01268768310546875,
0.0214080810546875,
-0.04132080078125,
0.0096435546875,
-0.0263214111328125,
0.0036945343017578125,
0.0017805099487304688,
0.009521484375,
-0.032989501953125,
0.007049560546875,
-0.007366180419921875,
-0.0089263916015625,
0.024169921875,
0.01300811767578125,
-0.051605224609375,
0.07720947265625,
-0.0306243896484375,
0.010467529296875,
-0.037841796875,
0.018524169921875,
0.01488494873046875,
0.0230255126953125,
0.036376953125,
-0.04144287109375,
0.00757598876953125,
0.00528717041015625,
0.008636474609375,
0.0115203857421875,
0.0206451416015625,
0.0305023193359375,
-0.02923583984375,
0.050140380859375,
0.0173797607421875,
0.045989990234375,
-0.06378173828125,
0.08355712890625,
-0.06256103515625,
-0.0098876953125,
-0.0032978057861328125,
0.0032138824462890625,
0.00016248226165771484,
0.0253753662109375,
-0.03253173828125,
-0.00489044189453125,
-0.0018568038940429688,
-0.0059967041015625,
0.0191192626953125,
0.0228271484375,
-0.0189971923828125,
-0.01177978515625,
0.0240631103515625,
0.01175689697265625,
0.0255279541015625,
-0.00867462158203125,
-0.0005340576171875,
0.0245513916015625,
0.00957489013671875,
-0.040374755859375,
-0.01934814453125,
0.0203094482421875,
-0.01507568359375,
0.01788330078125,
0.0027923583984375,
-0.01169586181640625,
-0.033660888671875,
0.0092926025390625,
-0.005825042724609375,
0.0233001708984375,
-0.007694244384765625,
0.015594482421875,
-0.03216552734375,
0.045654296875,
0.00435638427734375,
0.00928497314453125,
0.04351806640625,
-0.01338958740234375,
-0.02142333984375,
-0.04620361328125,
-0.022491455078125,
-0.0325927734375,
-0.0215606689453125,
-0.052947998046875,
0.00881195068359375,
0.006969451904296875,
-0.0113983154296875,
0.031280517578125,
0.031890869140625,
0.021728515625,
0.01113128662109375,
-0.00290679931640625,
-0.048309326171875,
0.00865936279296875,
-0.0238494873046875,
0.0003733634948730469,
0.05291748046875,
0.0247955322265625,
0.010955810546875,
0.0281524658203125,
0.0000832676887512207,
0.00489044189453125,
0.031982421875,
0.01354217529296875,
0.0133819580078125,
-0.04833984375,
0.01020050048828125,
-0.0085601806640625,
-0.0199127197265625,
-0.019775390625,
0.01178741455078125,
-0.002849578857421875,
0.04443359375,
0.008148193359375,
-0.004566192626953125,
-0.00510406494140625,
0.0159454345703125,
0.033905029296875,
-0.0802001953125,
-0.01248931884765625,
-0.026458740234375,
-0.01690673828125,
0.04241943359375,
0.01078033447265625,
0.01262664794921875,
-0.005596160888671875,
0.0032634735107421875,
0.042755126953125,
-0.0135955810546875,
-0.0231781005859375,
-0.0005660057067871094,
0.0019464492797851562,
0.006725311279296875,
0.003887176513671875,
-0.043609619140625,
0.0022830963134765625,
0.0252227783203125,
0.0135650634765625,
0.0237884521484375,
-0.0292816162109375,
-0.061798095703125,
0.069091796875,
-0.0682373046875,
0.07635498046875,
-0.048675537109375,
-0.03143310546875,
-0.0660400390625,
0.00708770751953125,
-0.026519775390625,
-0.022796630859375,
-0.055999755859375,
0.006916046142578125,
-0.010833740234375,
0.0284576416015625,
-0.03216552734375,
-0.03741455078125,
0.00594329833984375,
-0.07208251953125,
-0.0202178955078125,
0.0251007080078125,
-0.0325927734375,
0.0440673828125,
0.0165252685546875,
0.01904296875,
0.0015993118286132812,
0.01171112060546875,
0.003726959228515625,
0.0175628662109375,
0.0095367431640625,
0.0121917724609375,
0.0654296875,
-0.0003132820129394531,
-0.032684326171875,
0.040802001953125,
-0.02093505859375,
-0.033111572265625,
0.050537109375,
0.00347137451171875,
0.06341552734375,
-0.022308349609375,
0.0158233642578125,
-0.00377655029296875,
0.040374755859375,
-0.0592041015625,
0.03350830078125,
-0.006191253662109375,
-0.005619049072265625,
0.0091552734375,
0.013824462890625,
0.00110626220703125,
-0.03814697265625,
-0.0462646484375,
-0.0030155181884765625,
0.026519775390625,
0.0273895263671875,
0.06640625,
0.013946533203125,
0.0010976791381835938,
0.0203399658203125,
0.0340576171875,
0.0162506103515625,
-0.016998291015625,
-0.01045989990234375,
0.0122222900390625,
-0.04058837890625,
-0.03338623046875,
0.02899169921875,
-0.00994110107421875,
0.006732940673828125,
0.0040740966796875,
0.0158843994140625,
0.0090484619140625,
-0.005443572998046875,
0.006641387939453125,
-0.01134490966796875,
0.03350830078125,
-0.01094818115234375,
-0.014739990234375,
-0.01525115966796875,
-0.029998779296875,
0.031707763671875,
-0.11480712890625,
0.0224151611328125,
0.055145263671875,
0.033416748046875,
-0.06707763671875,
0.0009164810180664062,
-0.0286712646484375,
-0.01154327392578125,
-0.0201416015625,
0.052093505859375,
0.031524658203125,
0.005298614501953125,
-0.0296783447265625,
-0.017547607421875,
-0.005718231201171875,
-0.043426513671875,
0.0197906494140625,
-0.0176239013671875,
0.005496978759765625,
0.020172119140625,
0.0078277587890625,
-0.013153076171875,
0.011383056640625,
-0.04888916015625,
0.0226287841796875,
0.025970458984375,
-0.023712158203125,
-0.04766845703125,
0.0203857421875,
-0.03228759765625,
0.032623291015625,
-0.0277862548828125,
-0.044708251953125,
-0.0048828125,
0.06341552734375,
0.0099334716796875,
0.05511474609375,
0.04815673828125,
-0.0010204315185546875,
-0.0163421630859375,
-0.0104522705078125,
-0.013336181640625,
-0.0013628005981445312,
0.00792694091796875,
0.044952392578125,
-0.0255584716796875,
-0.062225341796875,
0.020721435546875,
0.00702667236328125,
-0.00396728515625,
-0.0172576904296875,
0.0479736328125,
-0.040985107421875,
-0.01247406005859375,
-0.0295562744140625,
-0.07073974609375,
-0.020111083984375,
0.00649261474609375,
0.00991058349609375,
-0.005733489990234375,
0.006786346435546875,
0.03216552734375,
-0.005634307861328125,
0.0355224609375,
0.018951416015625,
-0.017120361328125,
0.01404571533203125,
-0.0509033203125,
0.0555419921875,
-0.0447998046875,
0.059661865234375,
0.06890869140625,
-0.0277252197265625,
0.0160369873046875,
0.0189361572265625,
-0.0273284912109375,
0.0198516845703125,
0.02301025390625,
0.01264190673828125,
0.00946044921875,
-0.081787109375,
-0.0143280029296875,
0.0210113525390625,
0.0036907196044921875,
0.007228851318359375,
-0.039093017578125,
-0.0027179718017578125,
0.0047607421875,
-0.07421875,
-0.03619384765625,
0.0225372314453125,
0.0036487579345703125,
-0.0226593017578125,
0.043182373046875,
-0.0106201171875,
-0.0060882568359375,
0.06134033203125,
-0.010711669921875,
-0.005126953125,
-0.0276947021484375,
-0.059478759765625,
-0.04669189453125,
-0.07415771484375,
-0.007534027099609375,
-0.012908935546875,
0.0091094970703125,
0.01275634765625,
0.01264190673828125,
0.00974273681640625,
-0.00913238525390625,
0.0238494873046875,
0.011199951171875,
0.00038623809814453125,
-0.023590087890625,
-0.0283050537109375,
-0.0010204315185546875,
0.000431060791015625,
0.00820159912109375,
0.0389404296875,
0.017791748046875,
0.004184722900390625,
-0.0147857666015625,
-0.01422119140625,
0.0119781494140625,
0.0045928955078125,
-0.0277252197265625,
0.0225830078125,
0.0066680908203125,
-0.0016241073608398438,
-0.048675537109375,
0.02783203125,
-0.0294647216796875,
-0.022247314453125,
-0.0196380615234375,
0.0215606689453125,
-0.0284881591796875,
-0.016510009765625,
-0.0210723876953125,
0.0243988037109375,
0.0250396728515625,
0.00891876220703125,
-0.0034160614013671875,
-0.02032470703125,
-0.00420379638671875,
0.010528564453125,
-0.005489349365234375,
0.0316162109375,
0.00522613525390625,
-0.007781982421875,
-0.004131317138671875,
-0.01328277587890625,
-0.0430908203125,
0.048614501953125,
-0.07342529296875,
-0.054229736328125,
0.042388916015625,
-0.05706787109375,
-0.0253448486328125,
-0.050048828125,
-0.01031494140625,
-0.0244140625,
0.08154296875,
-0.0248870849609375,
-0.0072021484375,
-0.0050201416015625,
0.029083251953125,
-0.028472900390625,
-0.043792724609375,
-0.03240966796875,
-0.00806427001953125,
-0.1065673828125,
-0.0037136077880859375,
-0.021270751953125,
-0.024078369140625,
0.01125335693359375,
-0.0386962890625,
-0.016998291015625,
-0.07183837890625,
0.0343017578125,
-0.030517578125,
-0.001373291015625,
-0.0238494873046875,
0.009918212890625,
-0.06866455078125,
-0.016265869140625,
-0.01105499267578125,
-0.0213165283203125,
-0.01073455810546875,
0.036285400390625,
-0.0023975372314453125,
-0.0167694091796875,
-0.005889892578125,
0.01348876953125,
0.04730224609375,
0.005016326904296875,
-0.00145721435546875,
0.0167694091796875,
-0.01024627685546875,
0.018341064453125,
0.0165252685546875,
0.01461029052734375,
-0.011749267578125,
-0.0323486328125,
-0.025360107421875,
-0.016693115234375,
0.0203857421875,
0.00035834312438964844,
-0.0007290840148925781,
0.021270751953125,
-0.017059326171875,
-0.056915283203125,
-0.03466796875,
-0.00556182861328125,
-0.01001739501953125,
-0.038055419921875,
0.01763916015625,
-0.004634857177734375,
-0.033477783203125,
0.046905517578125,
-0.01187896728515625,
0.0007786750793457031,
0.0012216567993164062,
0.055267333984375,
0.0105438232421875,
-0.025665283203125,
0.0133819580078125,
0.00449371337890625,
0.023773193359375,
-0.02606201171875,
0.055694580078125,
0.002788543701171875,
-0.0169525146484375,
0.0750732421875,
-0.010650634765625,
0.044219970703125,
-0.003875732421875,
-0.0233306884765625,
-0.00365447998046875,
-0.020477294921875,
0.005523681640625,
0.00015795230865478516,
0.0062103271484375,
0.0233001708984375,
0.0005369186401367188,
-0.0294036865234375,
-0.027496337890625,
0.0269775390625,
0.032012939453125,
0.01153564453125,
-0.031768798828125,
-0.02532958984375,
0.01236724853515625,
0.0665283203125,
0.01151275634765625,
0.00878143310546875,
-0.003055572509765625,
0.007740020751953125,
0.02398681640625,
-0.007106781005859375,
-0.0099334716796875,
-0.0291290283203125,
-0.011077880859375,
0.0229339599609375,
-0.017578125,
-0.008453369140625,
0.01213836669921875,
-0.0113677978515625,
0.083740234375,
0.006610870361328125,
-0.021728515625,
-0.0133209228515625,
-0.026611328125,
-0.038299560546875,
0.0256500244140625,
-0.0262908935546875,
0.0372314453125,
0.018646240234375,
-0.0140533447265625,
0.01837158203125,
-0.0231475830078125,
-0.0294036865234375,
-0.0477294921875,
0.007450103759765625,
-0.0161895751953125,
-0.0052642822265625,
-0.022430419921875,
0.10784912109375,
0.00867462158203125,
0.034149169921875,
-0.01515960693359375,
0.0053863525390625,
0.03887939453125,
0.02044677734375,
0.02630615234375,
-0.0085601806640625,
-0.016815185546875,
0.01123046875,
0.01384735107421875,
-0.034637451171875,
0.00617218017578125,
0.03582763671875,
0.0499267578125,
0.01446533203125,
-0.033599853515625,
-0.001430511474609375,
-0.04119873046875,
-0.0100860595703125,
0.010650634765625,
-0.02978515625,
-0.02081298828125,
-0.02734375,
-0.0182037353515625,
0.027679443359375,
-0.003292083740234375,
-0.03240966796875,
0.0030994415283203125,
-0.03753662109375,
0.0292816162109375,
0.00031685829162597656,
-0.00960540771484375,
0.0214996337890625,
0.00473785400390625,
-0.034027099609375,
0.006313323974609375,
0.004550933837890625,
0.00942230224609375,
-0.02825927734375,
-0.0120697021484375,
-0.03436279296875,
0.05499267578125,
-0.023193359375,
0.0171051025390625,
-0.01366424560546875,
-0.00225830078125,
-0.011627197265625,
0.003955841064453125,
0.055694580078125,
0.0284881591796875,
-0.09869384765625,
0.017486572265625,
-0.020660400390625,
0.0113372802734375,
0.0440673828125,
-0.0203094482421875,
-0.03857421875,
-0.038482666015625,
0.033203125,
0.019256591796875,
-0.007297515869140625,
-0.05560302734375,
-0.01861572265625,
-0.0174713134765625,
0.0447998046875,
-0.03704833984375,
-0.023345947265625,
0.0266876220703125,
-0.00395965576171875,
0.041015625,
-0.0306854248046875,
-0.005157470703125,
0.0048370361328125,
-0.013885498046875,
0.004428863525390625,
-0.07684326171875,
-0.019500732421875,
-0.022857666015625,
-0.015716552734375,
0.066650390625,
0.051513671875,
0.013031005859375,
0.016876220703125,
-0.007785797119140625,
0.01366424560546875,
-0.0207366943359375,
-0.015838623046875,
-0.028289794921875,
0.015716552734375,
-0.00482177734375,
0.018402099609375,
0.038909912109375,
-0.03271484375,
-0.0260162353515625,
-0.007099151611328125,
0.01308441162109375,
0.005420684814453125,
0.01428985595703125,
-0.045440673828125,
0.0247344970703125,
0.048370361328125,
0.037506103515625,
0.03997802734375,
0.01849365234375,
0.01120758056640625,
-0.005779266357421875,
-0.0005221366882324219,
-0.01568603515625,
-0.0118408203125,
0.019683837890625,
-0.0036602020263671875,
0.00007873773574829102,
0.026763916015625,
-0.0084686279296875,
-0.0292510986328125,
0.06658935546875,
0.003917694091796875,
-0.07928466796875,
-0.019287109375,
-0.01195526123046875,
0.0016603469848632812,
-0.037689208984375,
-0.0003228187561035156,
-0.0010633468627929688,
0.0188446044921875,
0.031402587890625,
-0.033203125,
-0.02484130859375,
0.0072784423828125,
0.0185089111328125,
-0.004638671875,
0.0061187744140625,
0.058258056640625,
0.0286102294921875,
-0.024932861328125,
-0.0160980224609375,
0.0194854736328125,
0.0170440673828125,
-0.00868988037109375,
-0.0031585693359375,
0.013580322265625,
-0.0181427001953125,
-0.0077972412109375,
0.038177490234375,
-0.02557373046875,
0.0067138671875,
-0.0301513671875,
-0.02362060546875,
0.05450439453125,
0.07183837890625,
-0.0213775634765625,
-0.0157012939453125,
0.06109619140625,
-0.02142333984375,
0.0684814453125,
-0.01500701904296875,
-0.00391387939453125,
-0.0268096923828125,
-0.01407623291015625,
-0.01593017578125,
-0.00943756103515625,
-0.021759033203125,
-0.00231170654296875,
-0.0077667236328125,
0.0531005859375,
-0.037628173828125,
-0.0200653076171875,
0.004913330078125,
0.0202484130859375,
0.0184326171875,
-0.00858306884765625,
0.00499725341796875,
-0.04644775390625,
-0.03387451171875,
0.00039649009704589844,
-0.0374755859375,
0.0241241455078125,
-0.0052337646484375,
-0.06317138671875,
0.0943603515625,
0.031494140625,
0.042388916015625,
0.0093841552734375,
0.03814697265625,
-0.033294677734375,
0.00794219970703125,
-0.0125274658203125,
0.029632568359375,
0.0254669189453125,
-0.002902984619140625,
-0.00672149658203125,
-0.0194244384765625,
0.00379180908203125,
0.054962158203125,
0.03485107421875,
0.01375579833984375,
-0.06866455078125,
0.001682281494140625,
0.01007843017578125,
-0.0169219970703125,
-0.00891876220703125,
0.0870361328125,
-0.036468505859375,
-0.0201568603515625,
-0.01198577880859375,
-0.029266357421875,
0.002574920654296875,
-0.0124969482421875,
-0.0345458984375,
-0.0098876953125,
0.0194244384765625,
-0.004032135009765625,
0.015411376953125,
0.0010089874267578125,
-0.05133056640625,
0.0240936279296875,
0.04156494140625,
-0.0200347900390625,
0.01397705078125,
0.004486083984375,
0.0122222900390625,
-0.056365966796875,
0.0096893310546875,
-0.041595458984375,
0.04107666015625,
-0.0013608932495117188,
0.009063720703125,
0.005779266357421875,
0.0143585205078125,
0.06884765625,
-0.01337432861328125,
-0.003173828125,
0.019775390625,
-0.005420684814453125,
0.06329345703125,
0.035186767578125,
0.02142333984375,
-0.047027587890625,
-0.06439208984375,
0.0704345703125,
0.0897216796875,
-0.02880859375,
-0.01019287109375,
0.0018568038940429688,
0.0057525634765625,
0.049560546875,
-0.0190277099609375,
0.06915283203125,
-0.0116119384765625,
-0.0312042236328125,
-0.040374755859375,
0.0030040740966796875,
0.0457763671875,
0.00911712646484375,
0.004611968994140625,
0.0246124267578125,
-0.04150390625,
0.0147705078125,
-0.050201416015625,
0.0084991455078125,
0.046234130859375,
0.081298828125,
0.0010957717895507812,
0.07415771484375,
-0.01654052734375,
-0.033172607421875,
0.00804901123046875,
0.04034423828125,
0.00279998779296875,
-0.01137542724609375,
-0.019287109375,
-0.06982421875,
0.047271728515625,
0.031524658203125,
0.00917816162109375,
0.00899505615234375,
0.046234130859375,
0.060028076171875,
-0.0203704833984375,
-0.01519775390625,
0.033233642578125,
-0.01517486572265625,
0.050537109375,
-0.04248046875,
0.03326416015625,
-0.0156707763671875,
-0.018890380859375,
-0.017852783203125,
-0.005443572998046875,
0.0264434814453125,
-0.01517486572265625,
0.032958984375,
-0.0139312744140625,
-0.032318115234375,
0.0227813720703125,
-0.053375244140625,
0.0469970703125,
-0.0168609619140625,
-0.052154541015625,
-0.01126861572265625,
-0.035919189453125,
-0.01241302490234375,
0.024688720703125,
0.03326416015625,
0.002460479736328125,
0.007083892822265625,
-0.0240478515625,
-0.0290374755859375,
0.041839599609375,
-0.01461029052734375,
-0.006038665771484375,
0.0230865478515625,
0.0038928985595703125,
-0.0186309814453125,
-0.03729248046875,
-0.01507568359375,
-0.010223388671875,
0.031463623046875,
0.0015716552734375,
0.09112548828125,
-0.046722412109375,
0.00945281982421875,
-0.024566650390625,
0.014007568359375,
-0.0265655517578125,
-0.05767822265625,
0.07177734375,
-0.0006394386291503906,
-0.00335693359375,
-0.002872467041015625,
-0.0197906494140625,
0.01837158203125,
0.004913330078125,
-0.048675537109375,
0.0002834796905517578,
-0.0025768280029296875,
-0.0010404586791992188,
0.0115814208984375,
0.06048583984375,
-0.013275146484375,
-0.08892822265625,
-0.067138671875,
0.02276611328125,
0.006046295166015625,
0.07830810546875,
-0.0055084228515625,
0.04205322265625,
-0.028961181640625,
-0.0127105712890625,
-0.005565643310546875,
-0.05841064453125,
-0.004150390625,
0.03424072265625,
-0.056488037109375,
-0.0263519287109375,
0.03485107421875,
-0.006687164306640625,
0.01763916015625,
0.00566864013671875,
0.040618896484375,
0.0193634033203125,
-0.026092529296875,
0.00714111328125,
-0.006031036376953125,
0.003742218017578125,
-0.0252838134765625,
0.0038013458251953125,
0.0002608299255371094,
-0.01006317138671875,
0.0030536651611328125,
-0.0302581787109375,
-0.04412841796875,
-0.05902099609375,
0.005657196044921875,
0.0261688232421875,
-0.0298004150390625,
-0.036590576171875,
-0.0849609375,
-0.0118408203125,
0.061431884765625,
0.0018663406372070312,
-0.028533935546875,
0.004489898681640625,
-0.045745849609375,
0.05230712890625,
0.0125732421875,
0.025543212890625,
-0.02764892578125,
-0.00183868408203125,
-0.05126953125,
-0.0150299072265625,
-0.0550537109375,
0.005901336669921875,
-0.047637939453125,
0.01751708984375,
0.03216552734375,
-0.03204345703125,
0.0022144317626953125,
-0.003192901611328125,
0.006534576416015625,
0.06170654296875,
0.0120086669921875,
0.00733184814453125,
0.0014009475708007812,
-0.0009565353393554688,
-0.060211181640625,
-0.0172119140625,
0.039398193359375,
-0.0384521484375,
-0.05078125,
-0.01690673828125,
0.022674560546875,
0.009979248046875,
-0.0294342041015625,
-0.0204010009765625,
0.045318603515625,
0.004802703857421875,
-0.010955810546875,
-0.032318115234375,
-0.01776123046875,
-0.0121002197265625,
0.04229736328125,
-0.00485992431640625,
-0.00485992431640625,
-0.0205841064453125,
0.03643798828125,
0.0123748779296875,
0.03924560546875,
-0.0191192626953125,
0.00832366943359375,
0.03173828125,
0.041748046875,
0.043792724609375,
-0.00196075439453125,
0.0160675048828125,
-0.022918701171875,
0.037445068359375,
0.059112548828125,
-0.0369873046875,
-0.007640838623046875,
0.0078277587890625,
0.00988006591796875,
0.03387451171875,
-0.051605224609375,
-0.049407958984375,
-0.07525634765625,
0.0186767578125,
-0.013885498046875,
0.012725830078125,
0.0272979736328125,
-0.034820556640625,
-0.048858642578125,
-0.024749755859375,
-0.0199127197265625,
0.027252197265625,
-0.080322265625,
-0.0029964447021484375,
0.012237548828125,
0.000732421875,
-0.0088348388671875,
0.0096588134765625,
-0.017425537109375,
-0.0029754638671875,
0.0214080810546875,
-0.016021728515625,
-0.0174560546875,
-0.00711822509765625,
0.0445556640625,
-0.050872802734375,
-0.037811279296875,
0.0016736984252929688,
0.02838134765625,
-0.03411865234375,
-0.057403564453125,
0.0116119384765625,
-0.0024814605712890625,
-0.0101165771484375,
0.0136260986328125,
0.01165771484375,
0.01116180419921875,
-0.0092926025390625,
-0.0286102294921875,
-0.0170135498046875,
0.034820556640625,
-0.0127105712890625,
0.0278167724609375,
0.0029544830322265625,
0.0338134765625,
0.0118255615234375,
0.0634765625,
-0.0059967041015625,
-0.015869140625,
-0.0171356201171875,
0.043182373046875,
-0.0240936279296875,
-0.01523590087890625,
-0.0063323974609375,
-0.016937255859375,
-0.00286865234375,
0.0282440185546875,
0.010528564453125,
-0.040802001953125,
0.029693603515625,
-0.039459228515625,
0.032196044921875,
0.0211181640625
] |
23c0daeb9d3faf53d860234faa7c5dc03e08edbc
|
Wordpress Stackexchange
Q: How to implement a 'fail whale' to graciously limit server load (Solutions for system capacity governing) With our website, we want to make it so that if the site is about to go down, it instead displays a custom 503 (based on a server load limit set by us). Is there something that can handle this that is already built in, or a plugin that might help?
I know manual switching maintenance mode plugins are available but if the site hits heavy traffic they will get taken out.
A: Twitter and other high-volume sites probably do this one layer ahead of the servers. Probably with a load balancer that can detect the server load over all servers and if the load is too high (when machines stop replying) they redirect traffic to a server that returns only the "fail whale" page.
This answer on Stack Overflow suggests to look at sys_getloadavg() and display an error when it is too high (and "too high" should be defined by trial and error). I would do this in the main index.php file that "boots" WordPress, to get a quick exit and not put more load on the server.
|
Q: How to implement a 'fail whale' to graciously limit server load (Solutions for system capacity governing) With our website, we want to make it so that if the site is about to go down, it instead displays a custom 503 (based on a server load limit set by us). Is there something that can handle this that is already built in, or a plugin that might help?
I know manual switching maintenance mode plugins are available but if the site hits heavy traffic they will get taken out.
A: Twitter and other high-volume sites probably do this one layer ahead of the servers. Probably with a load balancer that can detect the server load over all servers and if the load is too high (when machines stop replying) they redirect traffic to a server that returns only the "fail whale" page.
This answer on Stack Overflow suggests to look at sys_getloadavg() and display an error when it is too high (and "too high" should be defined by trial and error). I would do this in the main index.php file that "boots" WordPress, to get a quick exit and not put more load on the server.
A: If your system is on linux, you can read the actual server load from /proc/loadavg
For example:
$load = reset ( explode ( ' ' , file_get_contents('/proc/loadavg') ) );
if ($load > 3.14 )
{
// load too high,
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 60');
fail_whale();
}
EDIT:
added header method lines.
A: You can customize message for when database is down by drop-in db-error.php in wp-content directory.
But if PHP is down I do not think there is anything that WP or its plugin would be able to do. It is better to ask your hosting how can you customize server's 503 page.
A: In your .htaccess file, add this line:
ErrorDocument 503 /error503.html
Then make an error503.html file in the root of the site that has your custom stuff in it.
This may or may not work depending on how your hosting is configured.
|
wordpress
|
{
"language": "en",
"length": 349,
"provenance": "stackexchange_00019.jsonl.gz:408372",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/13981"
}
|
[
0.07659912109375,
-0.0026397705078125,
0.05938720703125,
-0.025848388671875,
-0.002277374267578125,
-0.00960540771484375,
0.040283203125,
-0.037353515625,
0.03253173828125,
0.003936767578125,
-0.06500244140625,
-0.0021648406982421875,
-0.052825927734375,
-0.00797271728515625,
-0.0313720703125,
-0.060211181640625,
0.0347900390625,
0.00614166259765625,
0.023223876953125,
-0.006793975830078125,
-0.00839996337890625,
0.0244903564453125,
-0.0005793571472167969,
0.06011962890625,
-0.003170013427734375,
0.0149993896484375,
0.1387939453125,
-0.02227783203125,
0.0125885009765625,
-0.0200042724609375,
0.0230560302734375,
-0.0318603515625,
-0.0034236907958984375,
0.03204345703125,
-0.020294189453125,
0.00878143310546875,
-0.0018787384033203125,
0.013092041015625,
-0.0171051025390625,
0.0587158203125,
0.025665283203125,
-0.00899505615234375,
0.0821533203125,
-0.0021076202392578125,
0.01384735107421875,
-0.01132965087890625,
0.0302276611328125,
-0.051727294921875,
0.0217132568359375,
-0.01153564453125,
-0.0024471282958984375,
0.0209503173828125,
0.01221466064453125,
0.0084991455078125,
-0.0288543701171875,
-0.03460693359375,
0.01154327392578125,
0.01296234130859375,
0.03717041015625,
-0.0098114013671875,
-0.0158843994140625,
-0.0004811286926269531,
0.002262115478515625,
-0.008880615234375,
-0.03070068359375,
-0.034942626953125,
-0.032684326171875,
0.0164794921875,
0.0367431640625,
-0.033843994140625,
-0.006626129150390625,
0.0218505859375,
-0.031280517578125,
0.01296234130859375,
-0.058074951171875,
-0.01629638671875,
0.05322265625,
-0.0565185546875,
-0.01178741455078125,
0.02655029296875,
0.0285797119140625,
-0.0266265869140625,
0.051055908203125,
0.006511688232421875,
-0.021514892578125,
0.006359100341796875,
0.006961822509765625,
-0.004581451416015625,
-0.01180267333984375,
-0.01026153564453125,
-0.02459716796875,
0.037841796875,
-0.012969970703125,
-0.0245361328125,
-0.039093017578125,
-0.01953125,
-0.00469207763671875,
-0.06121826171875,
-0.0010461807250976562,
-0.0107269287109375,
0.00839996337890625,
-0.033935546875,
0.0220184326171875,
0.0128326416015625,
0.01056671142578125,
0.043914794921875,
-0.043243408203125,
-0.0142059326171875,
0.0396728515625,
0.036163330078125,
0.01312255859375,
-0.01390838623046875,
-0.00261688232421875,
-0.004940032958984375,
-0.03759765625,
-0.0009016990661621094,
-0.023895263671875,
-0.00460052490234375,
-0.0021114349365234375,
-0.00377655029296875,
0.0299835205078125,
0.05621337890625,
-0.040740966796875,
-0.010284423828125,
-0.007450103759765625,
-0.01080322265625,
-0.00001901388168334961,
-0.017303466796875,
0.003505706787109375,
0.01346588134765625,
-0.002040863037109375,
0.004520416259765625,
-0.00734710693359375,
0.01396942138671875,
-0.0151519775390625,
-0.0013303756713867188,
0.0732421875,
0.02105712890625,
-0.005519866943359375,
-0.0009160041809082031,
0.0151214599609375,
-0.0139923095703125,
-0.0164794921875,
0.0013179779052734375,
0.00959014892578125,
-0.00022494792938232422,
0.0279541015625,
0.037689208984375,
0.0004646778106689453,
-0.0027332305908203125,
0.0008974075317382812,
0.047149658203125,
0.0438232421875,
-0.01137542724609375,
-0.0277862548828125,
-0.0038509368896484375,
-0.0120697021484375,
-0.006649017333984375,
-0.0382080078125,
-0.0145721435546875,
0.00177001953125,
-0.00519561767578125,
0.0355224609375,
0.0131378173828125,
0.01348114013671875,
0.0140838623046875,
-0.0255584716796875,
-0.00030493736267089844,
0.0205841064453125,
-0.010467529296875,
0.03778076171875,
0.00908660888671875,
-0.00640869140625,
-0.0014104843139648438,
-0.004337310791015625,
0.0005016326904296875,
-0.0088958740234375,
0.037384033203125,
0.01296234130859375,
0.006107330322265625,
0.0157623291015625,
-0.0260772705078125,
0.0706787109375,
0.00621795654296875,
-0.033294677734375,
-0.01531219482421875,
-0.00826263427734375,
-0.0078125,
0.0288238525390625,
0.003597259521484375,
0.016937255859375,
-0.00868988037109375,
-0.0214385986328125,
0.0004968643188476562,
0.0015687942504882812,
-0.0305328369140625,
0.032684326171875,
0.01184844970703125,
0.00839996337890625,
-0.0205230712890625,
-0.027679443359375,
0.01548004150390625,
-0.028533935546875,
0.00931549072265625,
-0.05718994140625,
0.008819580078125,
-0.026397705078125,
0.0362548828125,
0.0111083984375,
0.0227813720703125,
-0.0011701583862304688,
-0.0164947509765625,
-0.024505615234375,
0.0147857666015625,
-0.012451171875,
-0.0111236572265625,
-0.03375244140625,
0.00966644287109375,
0.01273345947265625,
0.0341796875,
-0.006183624267578125,
0.0025615692138671875,
-0.008697509765625,
-0.0416259765625,
-0.020416259765625,
0.0024051666259765625,
-0.0169677734375,
0.0229339599609375,
-0.01122283935546875,
0.0303802490234375,
0.0238800048828125,
-0.02459716796875,
0.0679931640625,
0.020294189453125,
-0.01361083984375,
-0.004146575927734375,
0.0164947509765625,
-0.1146240234375,
-0.01192474365234375,
0.060791015625,
0.013275146484375,
-0.00551605224609375,
-0.0298919677734375,
0.007587432861328125,
-0.00519561767578125,
-0.0523681640625,
-0.01137542724609375,
0.0240631103515625,
-0.0224456787109375,
-0.0004734992980957031,
-0.021331787109375,
-0.0095062255859375,
0.0205230712890625,
-0.0517578125,
-0.0148162841796875,
0.047821044921875,
-0.02197265625,
-0.004413604736328125,
-0.005168914794921875,
-0.01910400390625,
0.011962890625,
0.001476287841796875,
-0.0117340087890625,
0.00554656982421875,
0.0362548828125,
-0.009063720703125,
0.02227783203125,
0.0175018310546875,
-0.00634765625,
0.005275726318359375,
0.0004773139953613281,
-0.08685302734375,
0.022369384765625,
0.015380859375,
0.02008056640625,
-0.01800537109375,
-0.013153076171875,
-0.01401519775390625,
0.01477813720703125,
0.01146697998046875,
-0.01499176025390625,
0.022308349609375,
-0.007579803466796875,
-0.007595062255859375,
-0.0165252685546875,
-0.038421630859375,
0.007518768310546875,
0.0008301734924316406,
-0.05352783203125,
-0.0016336441040039062,
0.00958251953125,
0.074462890625,
0.00769805908203125,
-0.0164337158203125,
0.004482269287109375,
0.037322998046875,
0.0138702392578125,
-0.034149169921875,
0.03558349609375,
-0.05145263671875,
0.023681640625,
0.054595947265625,
-0.0328369140625,
0.01503753662109375,
-0.0046234130859375,
0.0296478271484375,
0.00438690185546875,
-0.01299285888671875,
-0.024078369140625,
0.0252685546875,
-0.06787109375,
0.0030364990234375,
0.014678955078125,
0.03228759765625,
0.01397705078125,
-0.02825927734375,
0.027069091796875,
0.0190277099609375,
0.007022857666015625,
0.006328582763671875,
0.0175933837890625,
-0.037078857421875,
0.021697998046875,
0.00450897216796875,
-0.01922607421875,
-0.0218505859375,
0.04248046875,
-0.0012569427490234375,
-0.084716796875,
-0.034576416015625,
-0.032379150390625,
-0.120849609375,
-0.0682373046875,
-0.042999267578125,
-0.007350921630859375,
0.014068603515625,
-0.00888824462890625,
0.08587646484375,
0.009674072265625,
-0.088134765625,
-0.04327392578125,
0.00864410400390625,
-0.025482177734375,
0.0003437995910644531,
-0.0301666259765625,
-0.0180206298828125,
0.04266357421875,
-0.004474639892578125,
-0.00797271728515625,
0.0217742919921875,
0.0108489990234375,
-0.01343536376953125,
-0.0216217041015625,
0.0219268798828125,
-0.0295257568359375,
0.0235137939453125,
0.0382080078125,
-0.0242767333984375,
-0.031524658203125,
-0.048858642578125,
-0.07183837890625,
-0.0003273487091064453,
-0.099609375,
-0.028778076171875,
0.084716796875,
-0.014373779296875,
-0.035400390625,
-0.0333251953125,
-0.002201080322265625,
0.003772735595703125,
0.045166015625,
-0.0035305023193359375,
-0.0033721923828125,
-0.0260772705078125,
-0.032135009765625,
-0.03509521484375,
0.0186004638671875,
-0.0198974609375,
0.0127716064453125,
0.0000908970832824707,
-0.00951385498046875,
-0.043548583984375,
0.045928955078125,
-0.061279296875,
-0.0288543701171875,
0.034393310546875,
-0.02655029296875,
0.015777587890625,
-0.0347900390625,
-0.01715087890625,
-0.0164337158203125,
0.074951171875,
0.0016355514526367188,
0.00353240966796875,
-0.0231475830078125,
-0.0048675537109375,
-0.01491546630859375,
-0.02545166015625,
-0.02978515625,
0.0034809112548828125,
0.0055084228515625,
0.00934600830078125,
0.004436492919921875,
-0.01139068603515625,
-0.026153564453125,
-0.01045989990234375,
-0.0008349418640136719,
-0.0047454833984375,
0.0297393798828125,
-0.0626220703125,
0.01151275634765625,
-0.0016689300537109375,
0.0162200927734375,
-0.04571533203125,
-0.01123809814453125,
-0.0408935546875,
-0.048583984375,
-0.0152130126953125,
-0.0268707275390625,
0.0501708984375,
0.0283660888671875,
-0.03155517578125,
0.01151275634765625,
0.0557861328125,
0.04034423828125,
0.0226593017578125,
0.02716064453125,
-0.0496826171875,
0.05615234375,
0.01160430908203125,
0.04193115234375,
-0.0198516845703125,
-0.01629638671875,
-0.0269317626953125,
-0.0214385986328125,
0.033294677734375,
-0.0207061767578125,
0.02471923828125,
-0.010986328125,
-0.01268768310546875,
-0.08941650390625,
-0.05438232421875,
-0.0002560615539550781,
-0.0467529296875,
0.0288543701171875,
-0.053741455078125,
-0.03759765625,
-0.03826904296875,
0.00577545166015625,
-0.00701141357421875,
0.0065765380859375,
0.0228729248046875,
0.0562744140625,
0.01153564453125,
0.006702423095703125,
-0.0439453125,
-0.00926971435546875,
0.047393798828125,
-0.043853759765625,
0.011383056640625,
0.0252227783203125,
-0.05322265625,
0.08197021484375,
-0.0015840530395507812,
-0.0240936279296875,
0.03570556640625,
-0.0212860107421875,
0.004444122314453125,
-0.042236328125,
-0.0007967948913574219,
-0.004276275634765625,
0.0180206298828125,
0.023773193359375,
-0.0116119384765625,
-0.0158843994140625,
-0.03680419921875,
0.04022216796875,
-0.0020122528076171875,
0.0310516357421875,
-0.0333251953125,
-0.0235137939453125,
0.015655517578125,
0.0213775634765625,
0.0185394287109375,
0.0181121826171875,
0.0035457611083984375,
0.01250457763671875,
0.0015554428100585938,
-0.01073455810546875,
-0.024078369140625,
0.021575927734375,
-0.0216522216796875,
0.0236053466796875,
-0.00876617431640625,
-0.01284027099609375,
-0.047271728515625,
-0.016082763671875,
0.05328369140625,
0.0181732177734375,
-0.050018310546875,
0.046844482421875,
-0.031707763671875,
-0.021514892578125,
0.00751495361328125,
-0.01328277587890625,
0.053955078125,
-0.0189666748046875,
-0.016265869140625,
-0.016998291015625,
-0.03314208984375,
-0.042877197265625,
-0.0567626953125,
-0.006134033203125,
0.0081939697265625,
-0.0170135498046875,
0.006092071533203125,
0.036224365234375,
0.031829833984375,
-0.006153106689453125,
-0.0100250244140625,
0.065673828125,
0.07208251953125,
0.005367279052734375,
0.006000518798828125,
0.006931304931640625,
-0.029541015625,
-0.0017042160034179688,
-0.01351165771484375,
-0.00827789306640625,
-0.0819091796875,
-0.0163726806640625,
0.01995849609375,
-0.06494140625,
0.03570556640625,
0.035675048828125,
0.009735107421875,
-0.00827789306640625,
0.076416015625,
0.0090484619140625,
-0.0531005859375,
-0.045196533203125,
0.018707275390625,
0.08233642578125,
-0.021575927734375,
0.0216217041015625,
-0.01983642578125,
0.007843017578125,
0.0237274169921875,
0.0081787109375,
-0.0004963874816894531,
0.0000073909759521484375,
-0.01444244384765625,
0.0028934478759765625,
-0.005458831787109375,
-0.0076904296875,
-0.053863525390625,
-0.01837158203125,
-0.0164794921875,
-0.007389068603515625,
0.059814453125,
-0.0260772705078125,
-0.0144500732421875,
-0.027069091796875,
0.031707763671875,
-0.0022068023681640625,
0.02667236328125,
0.00543975830078125,
-0.022705078125,
-0.0251922607421875,
0.007633209228515625,
-0.056854248046875,
-0.04437255859375,
0.00014674663543701172,
-0.042877197265625,
-0.051483154296875,
-0.0283203125,
0.0352783203125,
0.0084686279296875,
-0.02728271484375,
-0.08782958984375,
-0.025970458984375,
-0.0023403167724609375,
0.07501220703125,
-0.017486572265625,
-0.050201416015625,
0.0272979736328125,
0.034088134765625,
-0.014068603515625,
0.00661468505859375,
0.04547119140625,
0.07659912109375,
-0.0369873046875,
-0.01316070556640625,
-0.0517578125,
0.01226806640625,
0.0264129638671875,
-0.033721923828125,
0.0302734375,
0.041717529296875,
0.008880615234375,
0.0267486572265625,
-0.01959228515625,
0.0153045654296875,
-0.0144500732421875,
0.01495361328125,
-0.0318603515625,
-0.0086669921875,
0.053466796875,
-0.0010423660278320312,
0.004360198974609375,
0.0000705718994140625,
0.05377197265625,
-0.03851318359375,
-0.0231475830078125,
-0.01499176025390625,
-0.03265380859375,
-0.039703369140625,
0.07696533203125,
0.0855712890625,
0.0251617431640625,
0.04608154296875,
0.04559326171875,
0.01910400390625,
-0.039031982421875,
-0.00611114501953125,
-0.02734375,
-0.03631591796875,
0.0301055908203125,
0.01070404052734375,
-0.0219268798828125,
0.027008056640625,
-0.0267181396484375,
-0.004085540771484375,
-0.025665283203125,
0.0216064453125,
0.00693511962890625,
0.004100799560546875,
0.0215911865234375,
-0.036407470703125,
-0.0294647216796875,
-0.0161895751953125,
0.0032329559326171875,
-0.04913330078125,
0.048370361328125,
0.047698974609375,
-0.007293701171875,
0.0036983489990234375,
0.0026988983154296875,
0.0027618408203125,
0.005008697509765625,
0.0355224609375,
0.01021575927734375,
0.0032501220703125,
-0.0396728515625,
0.00018870830535888672,
0.0197906494140625,
-0.01383209228515625,
0.03302001953125,
-0.036865234375,
-0.020843505859375,
-0.03997802734375,
-0.0240936279296875,
0.01332855224609375,
-0.03857421875,
0.00940704345703125,
-0.018524169921875,
0.0345458984375,
0.04901123046875,
-0.0235137939453125,
0.01534271240234375,
0.02459716796875,
0.0015535354614257812,
0.0250396728515625,
-0.01202392578125,
0.0111846923828125,
-0.02734375,
-0.0198822021484375,
0.0009403228759765625,
-0.007221221923828125,
-0.045928955078125,
-0.0007901191711425781,
-0.006671905517578125,
0.0677490234375,
-0.0310211181640625,
-0.02972412109375,
0.004123687744140625,
-0.0309906005859375,
0.01334381103515625,
-0.01158905029296875,
-0.00865936279296875,
-0.040435791015625,
-0.0146331787109375,
-0.019439697265625,
-0.054046630859375,
-0.0161895751953125,
-0.032379150390625,
-0.02789306640625,
0.10919189453125,
-0.0220947265625,
0.002960205078125,
0.0119476318359375,
0.056671142578125,
-0.0221405029296875,
0.041778564453125,
-0.06610107421875,
0.034881591796875,
-0.026031494140625,
0.03131103515625,
-0.09686279296875,
0.0038127899169921875,
-0.0242462158203125,
0.01038360595703125,
0.022003173828125,
0.012725830078125,
-0.0711669921875,
-0.0234375,
0.006084442138671875,
-0.005306243896484375,
0.003936767578125,
0.08251953125,
-0.045379638671875,
-0.00977325439453125,
0.0064697265625,
-0.0472412109375,
0.01995849609375,
0.01085662841796875,
-0.0312042236328125,
-0.02166748046875,
0.0109100341796875,
-0.0265045166015625,
0.023040771484375,
-0.01222991943359375,
-0.0965576171875,
0.034881591796875,
0.03692626953125,
0.03265380859375,
0.0269317626953125,
0.04150390625,
0.029510498046875,
-0.01654052734375,
-0.037933349609375,
-0.020843505859375,
0.040985107421875,
-0.0180206298828125,
-0.035980224609375,
0.082763671875,
0.0248870849609375,
-0.05596923828125,
-0.0014514923095703125,
-0.0037212371826171875,
-0.0223388671875,
0.01548004150390625,
0.00482177734375,
0.01145172119140625,
0.0228424072265625,
-0.041046142578125,
-0.0216217041015625,
0.039154052734375,
0.019622802734375,
-0.0110931396484375,
-0.047027587890625,
-0.001338958740234375,
-0.0022296905517578125,
0.04168701171875,
-0.007068634033203125,
0.036956787109375,
-0.01430511474609375,
0.0284881591796875,
0.006465911865234375,
0.0203857421875,
0.024383544921875,
-0.01617431640625,
0.01340484619140625,
0.06597900390625,
-0.038818359375,
0.04815673828125,
0.0159759521484375,
-0.006824493408203125,
0.0158843994140625,
0.020111083984375,
-0.00849151611328125,
0.020599365234375,
-0.03924560546875,
0.0036411285400390625,
-0.007747650146484375,
0.0229034423828125,
0.0039043426513671875,
-0.0022335052490234375,
-0.0298309326171875,
-0.033538818359375,
0.00910186767578125,
0.035797119140625,
0.00007236003875732422,
-0.0064544677734375,
0.0357666015625,
0.053375244140625,
-0.007221221923828125,
-0.0146942138671875,
0.06500244140625,
-0.00537872314453125,
0.00923919677734375,
-0.044921875,
-0.01666259765625,
-0.0257415771484375,
-0.02423095703125,
0.01024627685546875,
0.0010728836059570312,
-0.00020873546600341797,
-0.0160675048828125,
0.0240325927734375,
0.005352020263671875,
-0.047760009765625,
-0.0250396728515625,
-0.0259552001953125,
0.0428466796875,
0.0214691162109375,
-0.06109619140625,
-0.04010009765625,
0.0190277099609375,
0.01520538330078125,
0.01165008544921875,
0.03594970703125,
-0.0045166015625,
0.026458740234375,
0.02484130859375,
-0.005298614501953125,
0.00909423828125,
-0.01776123046875,
0.0189971923828125,
-0.054656982421875,
0.0036334991455078125,
-0.0203857421875,
-0.05084228515625,
-0.03729248046875,
0.0006151199340820312,
0.03558349609375,
0.01122283935546875,
0.048187255859375,
0.0065765380859375,
0.0204010009765625,
-0.003681182861328125,
-0.050201416015625,
0.0692138671875,
0.041015625,
-0.054656982421875,
0.06536865234375,
0.00864410400390625,
-0.048187255859375,
-0.0143890380859375,
0.0098114013671875,
0.0205078125,
-0.0103912353515625,
0.0066070556640625,
-0.0278778076171875,
0.02117919921875,
-0.00994110107421875,
0.0082550048828125,
-0.018829345703125,
-0.066650390625,
-0.0113372802734375,
0.0311431884765625,
-0.025115966796875,
0.026641845703125,
-0.0031147003173828125,
0.03826904296875,
-0.036376953125,
-0.00794219970703125,
0.0189361572265625,
-0.04302978515625,
-0.004119873046875,
0.0204925537109375,
-0.03900146484375,
-0.0250244140625,
0.040771484375,
-0.0017070770263671875,
-0.0147247314453125,
0.037261962890625,
-0.00794219970703125,
0.045318603515625,
-0.058013916015625,
0.031585693359375,
-0.009552001953125,
0.00988006591796875,
-0.04730224609375,
-0.0201873779296875,
0.031097412109375,
0.0185089111328125,
0.0196685791015625,
0.0083770751953125,
-0.01097869873046875,
0.01303863525390625,
-0.03167724609375,
-0.0175323486328125,
0.0294036865234375,
-0.036468505859375,
0.0181884765625,
-0.023162841796875,
0.0260467529296875,
-0.0016164779663085938,
-0.0283050537109375,
-0.00539398193359375,
-0.01495361328125,
0.03448486328125,
-0.036346435546875,
-0.0293731689453125,
0.001361846923828125,
-0.023529052734375,
-0.030609130859375,
-0.035552978515625,
-0.033905029296875,
0.028472900390625,
-0.0111846923828125,
0.00003272294998168945,
0.0269775390625,
-0.00164794921875,
-0.0160675048828125,
-0.019989013671875,
-0.01488494873046875,
0.034332275390625,
-0.060943603515625,
-0.00516510009765625,
0.0296173095703125,
0.0225067138671875,
-0.0279388427734375,
-0.05963134765625,
-0.01708984375,
0.0166168212890625,
0.0251007080078125,
-0.004352569580078125,
-0.036651611328125,
-0.033843994140625,
-0.047943115234375,
-0.020294189453125,
0.060028076171875,
0.0093536376953125,
-0.00919342041015625,
-0.0264892578125,
0.01265716552734375,
0.0212860107421875,
-0.0142974853515625,
0.00013947486877441406,
0.0089263916015625,
-0.0369873046875,
-0.01483154296875,
-0.00494384765625,
-0.024322509765625,
0.0323486328125,
-0.035186767578125,
-0.038299560546875,
-0.00984954833984375,
0.0244598388671875,
-0.017181396484375,
-0.013092041015625,
0.0018434524536132812,
0.03387451171875,
0.047943115234375,
-0.005096435546875,
0.00786590576171875,
0.018707275390625,
-0.0489501953125,
-0.0129241943359375,
-0.048126220703125,
0.00203704833984375,
-0.0125732421875,
0.0299835205078125,
0.011077880859375,
-0.0008597373962402344,
-0.0200958251953125,
-0.068603515625,
-0.03900146484375,
0.0142822265625,
-0.038787841796875,
0.0120391845703125,
-0.0955810546875,
-0.00836944580078125,
-0.00408935546875,
-0.0445556640625,
0.01678466796875,
-0.0044097900390625,
-0.051361083984375,
0.054473876953125,
0.056060791015625,
0.0186614990234375,
-0.034759521484375,
-0.00598907470703125,
0.055694580078125,
-0.035186767578125,
-0.020233154296875,
-0.0033130645751953125,
0.0116119384765625,
0.0037784576416015625,
-0.040283203125,
-0.010833740234375,
0.0018663406372070312,
-0.045562744140625,
0.0082244873046875,
-0.013824462890625,
0.061737060546875,
-0.031585693359375,
-0.01334381103515625,
0.0005412101745605469,
0.0217132568359375,
0.018096923828125,
0.049957275390625,
0.005008697509765625,
-0.0083465576171875,
0.00154876708984375,
-0.0255584716796875,
-0.0214691162109375,
0.00820159912109375,
-0.0164794921875,
0.01531219482421875,
-0.043731689453125,
0.0302276611328125,
-0.0097198486328125,
-0.002788543701171875,
0.0148773193359375,
0.00550079345703125,
0.0265045166015625,
-0.0164794921875,
0.03424072265625,
0.01183319091796875,
0.01482391357421875,
0.011199951171875
] |
8798f3c152b8007aedbfbfe19fea82d1d390c542
|
Wordpress Stackexchange
Q: Suggestions for creative use of post format feature, or themes that use them well I'm looking for themes or examples of sites that use the post format feature in an interesting way.
I suppose adding special styling for each post format would be a good start. But if anyone knows of it being used in a cool or creative ways by a premium or free theme feel free to chime in.
A: Theme Foundry Shelf comes to mind, it got some press out of being one of the first paid themes added to WordPress.com
|
Q: Suggestions for creative use of post format feature, or themes that use them well I'm looking for themes or examples of sites that use the post format feature in an interesting way.
I suppose adding special styling for each post format would be a good start. But if anyone knows of it being used in a cool or creative ways by a premium or free theme feel free to chime in.
A: Theme Foundry Shelf comes to mind, it got some press out of being one of the first paid themes added to WordPress.com
A: Well.... I use post-formats on my personal site, http://www.rvoodoo.com
More interesting though, may be the code.
http://www.rvoodoo.com/projects/wordpress/wordpress-tip-post-formats-get-template-part-loop-php-and-maximum-child-theme-compatibility/
THere were so many options, and opinions when the formats came out. If you are interested, there's a link to my approach.
A: Check out this post on WordCast:
WordPress Post Format Eye-Candy: Tumblr Style Theme Inspiration Showcase
Also Digging into WordPress uses them and just wrote a post about it:
Tumblr Links with Post Formats
A: I'm currently working on a theme (to be used on my blog when it's ready) with post formats. You can see a cropped screenshot, detailing several of the post formats here: http://i.stack.imgur.com/xraga.png
When I get it far enough along, I'll be releasing it to the public.
Also, WordPreh uses custom post formats, though you don't see much variation in most cases. The most obvious thing is that 'link' post titles link directly to the destination, rather than to the permalink of the post.
|
wordpress
|
{
"language": "en",
"length": 253,
"provenance": "stackexchange_00019.jsonl.gz:408386",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14023"
}
|
[
-0.0007467269897460938,
-0.01232147216796875,
-0.0003731250762939453,
0.07159423828125,
-0.011749267578125,
-0.038116455078125,
0.06268310546875,
-0.068115234375,
-0.0081024169921875,
0.003948211669921875,
0.01416015625,
0.00089263916015625,
0.01091766357421875,
-0.05499267578125,
0.01934814453125,
-0.0012025833129882812,
0.0206451416015625,
0.052642822265625,
0.0399169921875,
-0.005397796630859375,
-0.0018177032470703125,
0.00463104248046875,
-0.005306243896484375,
0.00908660888671875,
0.05535888671875,
0.037750244140625,
0.002925872802734375,
0.0032501220703125,
0.03271484375,
0.0301971435546875,
0.03607177734375,
-0.06842041015625,
0.0225830078125,
-0.0038299560546875,
0.02215576171875,
0.0433349609375,
0.01983642578125,
-0.01369476318359375,
0.0261077880859375,
-0.0012063980102539062,
-0.0047760009765625,
0.01270294189453125,
0.0099029541015625,
-0.004520416259765625,
-0.01290130615234375,
-0.0226898193359375,
-0.0149993896484375,
-0.049591064453125,
0.0197906494140625,
-0.0220489501953125,
0.0259246826171875,
-0.0147705078125,
0.0399169921875,
-0.02081298828125,
-0.0374755859375,
-0.00360107421875,
0.0038051605224609375,
0.00806427001953125,
0.051055908203125,
-0.045684814453125,
-0.056610107421875,
-0.05242919921875,
0.048065185546875,
-0.0088348388671875,
-0.0110626220703125,
-0.01430511474609375,
-0.05279541015625,
0.02691650390625,
-0.0194091796875,
-0.0007081031799316406,
0.0335693359375,
-0.02178955078125,
0.007297515869140625,
-0.01641845703125,
-0.029022216796875,
0.0004868507385253906,
0.00550079345703125,
-0.00865936279296875,
0.0248870849609375,
-0.019683837890625,
-0.06756591796875,
0.01422119140625,
-0.026336669921875,
-0.11968994140625,
0.0009241104125976562,
-0.08685302734375,
-0.02996826171875,
0.03094482421875,
-0.075927734375,
-0.039581298828125,
-0.035003662109375,
-0.08111572265625,
-0.0772705078125,
0.00968170166015625,
0.026275634765625,
-0.0163726806640625,
0.006397247314453125,
-0.0189971923828125,
0.01342010498046875,
0.0196075439453125,
0.0174713134765625,
-0.046173095703125,
0.04241943359375,
-0.0162353515625,
-0.005924224853515625,
0.052734375,
0.034210205078125,
0.00438690185546875,
0.01222991943359375,
0.002071380615234375,
0.004772186279296875,
0.040496826171875,
0.034393310546875,
0.016265869140625,
-0.0328369140625,
-0.016937255859375,
-0.008026123046875,
0.0224151611328125,
-0.006343841552734375,
0.0276031494140625,
0.01934814453125,
0.0225067138671875,
0.0626220703125,
-0.052093505859375,
0.006595611572265625,
0.0311279296875,
-0.03790283203125,
-0.07550048828125,
-0.010650634765625,
0.0499267578125,
-0.0044097900390625,
-0.017791748046875,
0.00807952880859375,
0.0340576171875,
-0.002063751220703125,
-0.0270233154296875,
-0.0139312744140625,
-0.02886962890625,
-0.0177001953125,
-0.005462646484375,
0.01386260986328125,
-0.0298004150390625,
0.011627197265625,
-0.0036106109619140625,
0.0133056640625,
0.024871826171875,
0.0244140625,
0.0198822021484375,
0.005222320556640625,
-0.0136566162109375,
-0.0291595458984375,
0.030517578125,
-0.016510009765625,
0.038818359375,
0.0379638671875,
0.0268707275390625,
0.0274810791015625,
0.006839752197265625,
-0.0040283203125,
0.0142059326171875,
0.0208740234375,
-0.01216888427734375,
0.0013437271118164062,
0.006458282470703125,
-0.0374755859375,
0.0338134765625,
-0.00518035888671875,
-0.0000680685043334961,
0.01479339599609375,
-0.0007138252258300781,
0.01366424560546875,
-0.01360321044921875,
0.003276824951171875,
0.00820159912109375,
-0.0020351409912109375,
0.023284912109375,
0.00757598876953125,
-0.01380157470703125,
0.0205078125,
0.06524658203125,
-0.0012865066528320312,
-0.02923583984375,
0.027313232421875,
-0.01148223876953125,
-0.01476287841796875,
-0.021697998046875,
0.046112060546875,
0.0190277099609375,
-0.0163116455078125,
0.0173187255859375,
0.03411865234375,
0.036285400390625,
-0.0157470703125,
0.01849365234375,
0.0079193115234375,
-0.0219879150390625,
-0.03497314453125,
-0.009735107421875,
-0.0233154296875,
-0.01351165771484375,
-0.007415771484375,
0.032135009765625,
-0.00971221923828125,
0.0163421630859375,
0.0014972686767578125,
0.01971435546875,
0.00677490234375,
0.0258026123046875,
-0.007297515869140625,
0.01200103759765625,
-0.0008177757263183594,
-0.04583740234375,
0.01236724853515625,
-0.0299530029296875,
-0.0196533203125,
0.0150909423828125,
-0.0003921985626220703,
-0.0196685791015625,
-0.003509521484375,
-0.03570556640625,
0.0225372314453125,
-0.0002532005310058594,
0.0019817352294921875,
0.0634765625,
-0.0091705322265625,
0.005367279052734375,
-0.036163330078125,
-0.002399444580078125,
-0.050506591796875,
0.02166748046875,
-0.04498291015625,
0.036041259765625,
0.013885498046875,
0.03643798828125,
-0.030120849609375,
-0.0231170654296875,
-0.02423095703125,
-0.0290374755859375,
0.0099945068359375,
0.056304931640625,
0.020263671875,
0.033172607421875,
-0.0173797607421875,
0.0111541748046875,
0.061126708984375,
0.009796142578125,
0.0143585205078125,
0.0166168212890625,
0.01427459716796875,
0.050933837890625,
-0.031097412109375,
-0.0019321441650390625,
0.01222991943359375,
-0.051116943359375,
-0.01462554931640625,
0.03985595703125,
-0.0141143798828125,
0.01245880126953125,
0.01218414306640625,
0.00684356689453125,
-0.011077880859375,
0.020233154296875,
0.0172119140625,
-0.01474761962890625,
0.033660888671875,
-0.005756378173828125,
0.01910400390625,
0.007965087890625,
-0.02069091796875,
0.00478363037109375,
0.00934600830078125,
-0.0335693359375,
0.0031337738037109375,
0.0162200927734375,
0.032073974609375,
0.043609619140625,
-0.016693115234375,
-0.0316162109375,
0.001255035400390625,
0.0186309814453125,
-0.0200042724609375,
0.019256591796875,
-0.0377197265625,
-0.022857666015625,
-0.0009202957153320312,
-0.05078125,
-0.015960693359375,
-0.0013141632080078125,
-0.00533294677734375,
-0.0293426513671875,
-0.02630615234375,
0.055999755859375,
-0.0184173583984375,
0.0557861328125,
0.005069732666015625,
-0.01355743408203125,
-0.06890869140625,
-0.05828857421875,
0.055877685546875,
-0.061004638671875,
-0.0233306884765625,
0.06646728515625,
0.004032135009765625,
0.005096435546875,
-0.0040740966796875,
0.0201568603515625,
0.021514892578125,
0.017364501953125,
0.000021696090698242188,
-0.04193115234375,
-0.023040771484375,
-0.032379150390625,
0.04095458984375,
0.07598876953125,
-0.009918212890625,
-0.0419921875,
0.002712249755859375,
0.059722900390625,
-0.017547607421875,
-0.0300140380859375,
-0.0074310302734375,
-0.08575439453125,
-0.02789306640625,
-0.028167724609375,
-0.043212890625,
0.00963592529296875,
-0.01332855224609375,
0.00838470458984375,
-0.033843994140625,
0.0005316734313964844,
0.0012655258178710938,
-0.0543212890625,
-0.050689697265625,
-0.06182861328125,
-0.0112152099609375,
0.0150146484375,
-0.0014104843139648438,
0.08721923828125,
0.01509857177734375,
-0.035736083984375,
-0.00666046142578125,
0.04412841796875,
-0.01678466796875,
0.0055999755859375,
0.036224365234375,
-0.01380157470703125,
-0.05694580078125,
0.02691650390625,
-0.0073699951171875,
0.01395416259765625,
-0.037139892578125,
-0.00888824462890625,
-0.004924774169921875,
-0.0170440673828125,
-0.0164337158203125,
0.0367431640625,
0.021453857421875,
-0.0278167724609375,
0.0017366409301757812,
-0.06146240234375,
-0.0289459228515625,
0.01116180419921875,
-0.044891357421875,
-0.02764892578125,
-0.00150299072265625,
-0.0118865966796875,
0.00670623779296875,
-0.00782012939453125,
-0.00994110107421875,
-0.0175628662109375,
0.006351470947265625,
-0.043792724609375,
0.052459716796875,
0.0016632080078125,
0.019439697265625,
-0.00423431396484375,
-0.0457763671875,
-0.07177734375,
0.08477783203125,
-0.0276641845703125,
-0.006610870361328125,
0.0183563232421875,
-0.0191497802734375,
0.028961181640625,
-0.0750732421875,
0.006053924560546875,
-0.04638671875,
0.0169677734375,
-0.0254974365234375,
0.0018672943115234375,
-0.0043792724609375,
0.07989501953125,
-0.055206298828125,
0.01079559326171875,
-0.01142120361328125,
-0.01061248779296875,
0.0026702880859375,
-0.011993408203125,
-0.07818603515625,
-0.004058837890625,
-0.05279541015625,
0.0170440673828125,
-0.0231475830078125,
-0.01430511474609375,
-0.01366424560546875,
0.032012939453125,
-0.00635528564453125,
-0.042327880859375,
0.017791748046875,
-0.036651611328125,
0.006931304931640625,
-0.00403594970703125,
0.004192352294921875,
-0.031890869140625,
0.00691986083984375,
-0.045654296875,
-0.052947998046875,
-0.0052490234375,
-0.0113525390625,
0.037017822265625,
0.02874755859375,
-0.06292724609375,
0.0382080078125,
0.05010986328125,
0.00492095947265625,
0.0565185546875,
-0.027862548828125,
-0.0004906654357910156,
-0.041168212890625,
-0.040252685546875,
-0.0008511543273925781,
-0.034759521484375,
-0.03125,
-0.032318115234375,
-0.0401611328125,
0.0670166015625,
0.01007080078125,
0.054656982421875,
0.0133056640625,
0.005718231201171875,
-0.0277099609375,
-0.0151824951171875,
0.00022363662719726562,
0.021240234375,
-0.028289794921875,
0.01129150390625,
-0.039764404296875,
-0.02398681640625,
0.055450439453125,
0.02880859375,
-0.0180511474609375,
0.0009975433349609375,
0.06854248046875,
0.0010499954223632812,
-0.0296783447265625,
-0.1185302734375,
-0.01910400390625,
0.0511474609375,
0.005168914794921875,
0.00461578369140625,
-0.00879669189453125,
-0.062469482421875,
0.08331298828125,
0.0077972412109375,
-0.0196533203125,
-0.043060302734375,
0.029327392578125,
-0.0058135986328125,
0.004978179931640625,
-0.00428009033203125,
-0.042236328125,
0.10333251953125,
-0.0135498046875,
-0.0272064208984375,
-0.006103515625,
-0.05975341796875,
0.05535888671875,
0.0305328369140625,
0.0034580230712890625,
-0.07305908203125,
-0.029388427734375,
0.00904083251953125,
0.00878143310546875,
0.026153564453125,
0.0195465087890625,
-0.00260162353515625,
0.0125885009765625,
0.0197601318359375,
-0.01338958740234375,
0.007030487060546875,
0.00899505615234375,
-0.00487518310546875,
0.0299835205078125,
-0.011199951171875,
-0.0113983154296875,
0.004241943359375,
-0.0160064697265625,
0.06298828125,
0.0124359130859375,
-0.053802490234375,
-0.0017452239990234375,
-0.009063720703125,
0.043609619140625,
0.00884246826171875,
0.0229949951171875,
-0.006008148193359375,
0.0222015380859375,
0.021026611328125,
0.0233001708984375,
0.0516357421875,
0.003936767578125,
-0.004241943359375,
0.03485107421875,
0.0271453857421875,
-0.01458740234375,
0.040802001953125,
0.0176849365234375,
0.001262664794921875,
0.0312347412109375,
-0.0130767822265625,
0.03961181640625,
0.022796630859375,
0.004039764404296875,
0.0081329345703125,
0.0220489501953125,
0.01061248779296875,
-0.028594970703125,
-0.0005006790161132812,
-0.00894927978515625,
-0.01885986328125,
-0.047882080078125,
-0.006664276123046875,
-0.0203857421875,
0.0113525390625,
0.07305908203125,
0.0021305084228515625,
-0.0106353759765625,
0.00031280517578125,
0.0085601806640625,
-0.005596160888671875,
0.00208282470703125,
-0.04254150390625,
-0.02532958984375,
0.0064849853515625,
0.0001475811004638672,
-0.015167236328125,
0.00907135009765625,
0.031005859375,
-0.03436279296875,
0.0003509521484375,
0.00972747802734375,
0.006206512451171875,
-0.013641357421875,
0.0173492431640625,
-0.00798797607421875,
-0.0229034423828125,
-0.0458984375,
0.00444793701171875,
0.0028476715087890625,
0.0352783203125,
0.0005011558532714844,
0.0150299072265625,
-0.0205078125,
-0.01309967041015625,
0.00759124755859375,
0.001438140869140625,
0.061248779296875,
0.00432586669921875,
-0.0721435546875,
-0.00519561767578125,
-0.0218353271484375,
-0.0105743408203125,
-0.0248870849609375,
-0.05059814453125,
-0.0667724609375,
-0.0157623291015625,
0.01226043701171875,
0.02923583984375,
-0.00408172607421875,
-0.0272216796875,
-0.0101470947265625,
0.0281982421875,
0.026123046875,
0.05108642578125,
0.008026123046875,
0.0232391357421875,
0.01197052001953125,
0.056549072265625,
0.013916015625,
-0.0267333984375,
-0.0478515625,
-0.0187835693359375,
-0.018341064453125,
-0.03955078125,
-0.00008475780487060547,
0.01332855224609375,
-0.00618743896484375,
0.027618408203125,
0.0430908203125,
0.016387939453125,
0.03656005859375,
-0.060028076171875,
-0.0009260177612304688,
-0.0240325927734375,
0.025604248046875,
-0.10345458984375,
-0.0184173583984375,
0.00426483154296875,
0.00949859619140625,
0.020538330078125,
-0.009796142578125,
-0.0115814208984375,
0.0008869171142578125,
0.010345458984375,
0.0116424560546875,
-0.0193328857421875,
-0.0141754150390625,
0.031829833984375,
0.007129669189453125,
0.005657196044921875,
0.0205078125,
0.0279541015625,
0.0252838134765625,
-0.021087646484375,
0.0185089111328125,
-0.0355224609375,
-0.0307159423828125,
0.02459716796875,
0.0174102783203125,
-0.01031494140625,
0.035186767578125,
-0.0196075439453125,
0.0211334228515625,
0.04278564453125,
0.05419921875,
-0.05963134765625,
0.0085906982421875,
-0.01015472412109375,
-0.025634765625,
0.0611572265625,
-0.020263671875,
0.017913818359375,
0.01385498046875,
0.03338623046875,
0.0276336669921875,
-0.0033721923828125,
0.01264190673828125,
-0.00931549072265625,
0.00817108154296875,
0.0031108856201171875,
0.054718017578125,
-0.0138397216796875,
-0.08660888671875,
-0.0162811279296875,
0.037200927734375,
-0.047149658203125,
-0.03192138671875,
-0.00966644287109375,
-0.0389404296875,
0.00131988525390625,
-0.0295562744140625,
-0.0015497207641601562,
-0.0611572265625,
0.058013916015625,
-0.007183074951171875,
0.021453857421875,
0.0221099853515625,
0.05810546875,
-0.0161590576171875,
-0.00479888916015625,
0.043609619140625,
0.0203857421875,
-0.01076507568359375,
-0.033599853515625,
0.042449951171875,
0.044921875,
-0.04852294921875,
0.0206451416015625,
-0.00820159912109375,
-0.0273895263671875,
-0.0158843994140625,
-0.00559234619140625,
0.09442138671875,
-0.04083251953125,
-0.015869140625,
0.018402099609375,
0.006542205810546875,
-0.0098724365234375,
-0.00556182861328125,
-0.03692626953125,
-0.04046630859375,
0.006923675537109375,
-0.031768798828125,
-0.01503753662109375,
0.037139892578125,
-0.0294342041015625,
-0.04290771484375,
0.0278167724609375,
0.01458740234375,
0.0187835693359375,
0.0028934478759765625,
0.0127410888671875,
-0.0162506103515625,
-0.0100860595703125,
-0.0214080810546875,
0.034423828125,
-0.036102294921875,
0.0191497802734375,
-0.022918701171875,
0.02337646484375,
-0.004581451416015625,
0.00214385986328125,
0.0186309814453125,
-0.0050048828125,
-0.006465911865234375,
0.0093536376953125,
0.04937744140625,
0.026336669921875,
0.01122283935546875,
0.023834228515625,
-0.037994384765625,
0.0285186767578125,
0.01364898681640625,
-0.0582275390625,
0.01464080810546875,
0.00278472900390625,
-0.04864501953125,
-0.0159759521484375,
0.02032470703125,
0.013580322265625,
0.0286102294921875,
-0.04608154296875,
-0.054595947265625,
0.03094482421875,
0.039398193359375,
0.007167816162109375,
-0.0460205078125,
0.0379638671875,
-0.0114288330078125,
-0.0968017578125,
-0.0231475830078125,
-0.04840087890625,
0.034637451171875,
-0.003414154052734375,
0.033477783203125,
0.0100250244140625,
0.0074920654296875,
0.03607177734375,
-0.007293701171875,
0.024261474609375,
0.0322265625,
-0.043487548828125,
0.056854248046875,
-0.01158905029296875,
0.01393890380859375,
-0.07965087890625,
-0.00827789306640625,
0.037933349609375,
0.07781982421875,
-0.044189453125,
-0.0164337158203125,
0.00888824462890625,
0.002094268798828125,
-0.0020847320556640625,
-0.0185699462890625,
-0.0017156600952148438,
-0.030303955078125,
-0.0094451904296875,
-0.007442474365234375,
-0.0279083251953125,
-0.01812744140625,
0.03668212890625,
-0.0038928985595703125,
-0.002986907958984375,
0.00213623046875,
-0.050994873046875,
-0.0112152099609375,
-0.0291595458984375,
0.0174102783203125,
0.0482177734375,
0.0308990478515625,
0.0312042236328125,
-0.03497314453125,
-0.0178680419921875,
-0.0012426376342773438,
-0.00283050537109375,
0.01256561279296875,
0.00021529197692871094,
-0.00003838539123535156,
0.00969696044921875,
-0.0191192626953125,
0.0215911865234375,
0.0303802490234375,
0.0298919677734375,
0.038970947265625,
0.02435302734375,
0.004993438720703125,
0.0023555755615234375,
0.03985595703125,
-0.01361083984375,
-0.028411865234375,
-0.033599853515625,
-0.0136871337890625,
0.0257720947265625,
-0.007709503173828125,
0.041717529296875,
-0.0311737060546875,
0.046844482421875,
-0.0086822509765625,
0.0208740234375,
0.01123809814453125,
-0.0017766952514648438,
0.037109375,
-0.0133819580078125,
-0.0021190643310546875,
0.0178680419921875,
-0.08795166015625,
-0.0234222412109375,
-0.0175628662109375,
-0.0362548828125,
0.042022705078125,
0.040924072265625,
-0.02850341796875,
0.026824951171875,
-0.0176849365234375,
0.027862548828125,
0.010345458984375,
-0.045654296875,
0.00336456298828125,
0.0006699562072753906,
0.01142120361328125,
0.0010557174682617188,
-0.04876708984375,
-0.0301361083984375,
-0.04656982421875,
0.051971435546875,
0.042449951171875,
0.05279541015625,
-0.0201416015625,
0.047607421875,
0.007904052734375,
-0.0045623779296875,
0.0263824462890625,
0.0032024383544921875,
0.019561767578125,
0.0308837890625,
0.0189666748046875,
-0.033966064453125,
-0.0257110595703125,
-0.016021728515625,
0.0281982421875,
-0.050445556640625,
-0.029754638671875,
-0.0017709732055664062,
0.034759521484375,
-0.01068878173828125,
-0.00440216064453125,
-0.03070068359375,
-0.022491455078125,
0.00305938720703125,
-0.004444122314453125,
-0.0004756450653076172,
-0.01702880859375,
0.016204833984375,
0.0303955078125,
0.00298309326171875,
-0.0143280029296875,
0.008026123046875,
-0.028839111328125,
-0.01055145263671875,
0.0135345458984375,
0.0294647216796875,
-0.04833984375,
-0.0007414817810058594,
-0.01495361328125,
0.0038204193115234375,
-0.001773834228515625,
0.04534912109375,
0.0113067626953125,
-0.037445068359375,
-0.00041961669921875,
0.0196990966796875,
0.06732177734375,
-0.007232666015625,
0.0247955322265625,
-0.00946807861328125,
0.0136260986328125,
-0.01092529296875,
-0.02392578125,
-0.012939453125,
-0.04119873046875,
-0.0047149658203125,
0.0288238525390625,
-0.0498046875,
-0.007110595703125,
-0.063720703125,
-0.039642333984375,
0.003559112548828125,
0.0010976791381835938,
-0.0246429443359375,
0.004779815673828125,
0.0085296630859375,
-0.0206298828125,
-0.024139404296875,
-0.00119781494140625,
0.00601959228515625,
0.0546875,
-0.0045928955078125,
-0.025054931640625,
-0.0193328857421875,
0.0279541015625,
-0.01424407958984375,
0.0477294921875,
0.07305908203125,
-0.05633544921875,
-0.00215911865234375,
0.07568359375,
0.0589599609375,
0.106689453125,
0.007366180419921875,
-0.0261993408203125,
-0.004535675048828125,
-0.00679779052734375,
0.005237579345703125,
0.0016040802001953125,
0.0172271728515625,
-0.009124755859375,
-0.04541015625,
-0.0002453327178955078,
-0.011871337890625,
-0.014434814453125,
-0.0509033203125,
-0.101806640625,
0.03814697265625,
-0.01270294189453125,
-0.039581298828125,
-0.03875732421875,
0.016571044921875,
-0.0087432861328125,
0.0274200439453125,
-0.0097808837890625,
0.0220184326171875,
-0.004734039306640625,
0.00843048095703125,
-0.020965576171875,
0.04071044921875,
0.02606201171875,
-0.050567626953125,
-0.014434814453125,
-0.03350830078125,
-0.022674560546875,
0.0031585693359375,
0.032379150390625,
-0.031494140625,
0.0093536376953125,
0.023101806640625,
-0.0870361328125,
-0.08001708984375,
-0.04705810546875,
0.05096435546875,
-0.0036907196044921875,
0.0210723876953125,
-0.0109405517578125,
0.0110321044921875,
0.00873565673828125,
0.05078125,
0.0013017654418945312,
-0.0269927978515625,
0.00469207763671875,
-0.0204925537109375,
-0.03265380859375,
-0.00542449951171875,
-0.0013580322265625,
-0.0335693359375,
0.017608642578125,
0.0051116943359375,
-0.02117919921875,
-0.0223541259765625,
-0.0340576171875,
-0.037994384765625,
0.0010318756103515625,
-0.01189422607421875,
0.0037517547607421875,
0.00794219970703125,
0.00783538818359375,
0.042877197265625,
-0.0300140380859375,
0.03961181640625,
-0.020721435546875,
0.00543975830078125,
0.046966552734375,
0.009124755859375,
-0.005748748779296875,
-0.01006317138671875,
-0.0280303955078125,
0.01959228515625,
-0.0018777847290039062,
0.046112060546875,
-0.02703857421875,
-0.01165771484375,
0.00141143798828125,
0.040283203125,
0.0010890960693359375,
0.0457763671875,
-0.018768310546875,
0.053619384765625,
0.0027828216552734375,
0.0176849365234375,
-0.015960693359375,
-0.0019464492797851562,
-0.026580810546875,
0.0390625,
-0.0305938720703125,
0.00672149658203125,
-0.0196685791015625,
-0.004199981689453125,
0.0182952880859375,
0.01226043701171875,
-0.00818634033203125,
0.037628173828125,
-0.0271453857421875,
0.033660888671875,
-0.018524169921875,
-0.01568603515625
] |
085240a722e4149e41f22008d65126b5f69e76a7
|
Wordpress Stackexchange
Q: What action should I hook into when adding roles and capabilities? I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles.
I'm wondering where the best place to do this is? Obviously I can do it straight inside functions.php and be done with it. But is this the best practice? Do I only need to do this on admin_init? or should I do it on init?
I'm not entirely sure what the best practices are around using init action hooks rather than just dropping a direct function call inside functions.php.
thanks for your input!
A: For plugins, I have had success using plugins_loaded for this. For themes, I would use after_setup_theme.
|
Q: What action should I hook into when adding roles and capabilities? I'm going to be using add_role() and $role->add_cap() to set up a new custom role and attach a new capability to existing roles.
I'm wondering where the best place to do this is? Obviously I can do it straight inside functions.php and be done with it. But is this the best practice? Do I only need to do this on admin_init? or should I do it on init?
I'm not entirely sure what the best practices are around using init action hooks rather than just dropping a direct function call inside functions.php.
thanks for your input!
A: For plugins, I have had success using plugins_loaded for this. For themes, I would use after_setup_theme.
A: When adding a role and capabilities you only need to run the code once since the roles and capabilities are saved to the database when using add_role or ->add_cap functions so just like Andy said you can use after_setup_theme for this kind of action but add some kind of check so it only runs once, like register_activation_hook or using options:
add_action('after_setup_theme','my_add_role_function');
function my_add_role_function(){
$roles_set = get_option('my_roles_are_set');
if(!$roles_set){
add_role('my_role', 'my_roleUser', array(
'read' => true, // True allows that capability, False specifically removes it.
'edit_posts' => true,
'delete_posts' => true,
'upload_files' => true
));
update_option('my_roles_are_set',true);
}
}
|
wordpress
|
{
"language": "en",
"length": 221,
"provenance": "stackexchange_00019.jsonl.gz:408387",
"question_score": "12",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14024"
}
|
[
0.05078125,
-0.031158447265625,
-0.007274627685546875,
-0.058319091796875,
0.0025653839111328125,
-0.0255126953125,
0.032684326171875,
0.0264434814453125,
-0.0213623046875,
0.025970458984375,
0.029327392578125,
0.0177001953125,
-0.005733489990234375,
-0.045196533203125,
0.008270263671875,
-0.0101318359375,
0.0176544189453125,
-0.021759033203125,
0.0217132568359375,
-0.013458251953125,
0.022430419921875,
0.00008416175842285156,
0.0117340087890625,
0.05413818359375,
0.03692626953125,
-0.05419921875,
0.00879669189453125,
-0.034515380859375,
0.022796630859375,
-0.01198577880859375,
0.019683837890625,
0.0052947998046875,
0.0126495361328125,
-0.01280975341796875,
0.0303802490234375,
0.0004513263702392578,
0.0107269287109375,
-0.0069122314453125,
0.0033855438232421875,
0.0208740234375,
0.015411376953125,
-0.001529693603515625,
0.04595947265625,
0.0161590576171875,
0.028167724609375,
-0.052093505859375,
0.039764404296875,
-0.053131103515625,
-0.0014047622680664062,
-0.059783935546875,
0.017059326171875,
-0.0064697265625,
0.02886962890625,
0.0009059906005859375,
-0.0160369873046875,
0.00994110107421875,
-0.04095458984375,
0.01458740234375,
0.039398193359375,
0.060211181640625,
-0.015716552734375,
-0.0200042724609375,
-0.01100921630859375,
-0.073974609375,
0.01922607421875,
0.0038509368896484375,
0.043365478515625,
0.01788330078125,
-0.04644775390625,
0.0030536651611328125,
0.0165557861328125,
-0.0302276611328125,
-0.053863525390625,
-0.0228729248046875,
-0.038116455078125,
0.0249176025390625,
0.01233673095703125,
-0.045013427734375,
-0.004009246826171875,
0.0167388916015625,
-0.0185089111328125,
-0.00982666015625,
0.0400390625,
-0.038299560546875,
-0.01027679443359375,
-0.039398193359375,
-0.0218353271484375,
0.01177978515625,
-0.01511383056640625,
-0.0141143798828125,
-0.0229949951171875,
-0.0090484619140625,
0.01262664794921875,
-0.0180816650390625,
-0.0305938720703125,
-0.0152587890625,
0.020355224609375,
0.0187225341796875,
0.0355224609375,
0.0116424560546875,
0.0220947265625,
-0.059600830078125,
0.0302886962890625,
-0.03338623046875,
0.028472900390625,
0.05938720703125,
-0.0175933837890625,
-0.037994384765625,
0.0223236083984375,
-0.0005970001220703125,
0.0006031990051269531,
0.005016326904296875,
0.01035308837890625,
-0.014373779296875,
-0.01471710205078125,
-0.01495361328125,
-0.03021240234375,
0.060943603515625,
0.007965087890625,
0.03729248046875,
-0.025115966796875,
-0.0121307373046875,
0.03717041015625,
-0.01837158203125,
-0.006000518798828125,
-0.005523681640625,
-0.034759521484375,
-0.0250244140625,
-0.0250091552734375,
0.0032482147216796875,
-0.0142974853515625,
0.027099609375,
0.0531005859375,
0.00954437255859375,
-0.0220947265625,
-0.00913238525390625,
0.0198516845703125,
-0.0089263916015625,
-0.004974365234375,
-0.0019931793212890625,
0.0131378173828125,
-0.0289764404296875,
-0.0219879150390625,
0.017669677734375,
0.017364501953125,
-0.0038738250732421875,
-0.0208892822265625,
0.02734375,
0.052459716796875,
-0.00010073184967041016,
0.00896453857421875,
-0.052215576171875,
-0.0009493827819824219,
-0.0006899833679199219,
0.04510498046875,
0.025604248046875,
0.00665283203125,
0.013336181640625,
0.00511932373046875,
0.032135009765625,
0.019012451171875,
0.00518035888671875,
-0.00818634033203125,
-0.0298614501953125,
-0.041107177734375,
-0.0285186767578125,
-0.0070953369140625,
0.004241943359375,
0.0238494873046875,
-0.023345947265625,
0.0537109375,
0.00012111663818359375,
0.0223541259765625,
0.00791168212890625,
0.00734710693359375,
0.0089874267578125,
-0.01421356201171875,
0.018951416015625,
0.0306243896484375,
-0.01407623291015625,
-0.009796142578125,
-0.031341552734375,
0.044921875,
-0.0038280487060546875,
-0.043701171875,
0.0139007568359375,
-0.004268646240234375,
0.026458740234375,
0.0136871337890625,
0.0147552490234375,
-0.004039764404296875,
0.027130126953125,
-0.038604736328125,
-0.017303466796875,
-0.01800537109375,
-0.005550384521484375,
0.0274658203125,
0.003543853759765625,
-0.00931549072265625,
0.036651611328125,
0.024169921875,
0.004253387451171875,
0.00803375244140625,
-0.006744384765625,
-0.0198516845703125,
0.007434844970703125,
-0.01401519775390625,
0.023468017578125,
0.0229339599609375,
-0.003173828125,
-0.0304107666015625,
-0.012298583984375,
0.0364990234375,
-0.0992431640625,
-0.035552978515625,
0.048919677734375,
-0.0275421142578125,
0.0177001953125,
0.0082244873046875,
0.0264434814453125,
0.047515869140625,
-0.033233642578125,
0.024383544921875,
0.0016012191772460938,
0.0205841064453125,
-0.0048675537109375,
-0.003910064697265625,
-0.0167388916015625,
0.0182037353515625,
0.0172119140625,
-0.0260162353515625,
0.0065460205078125,
0.0289459228515625,
0.048553466796875,
0.00030541419982910156,
-0.001861572265625,
0.0304107666015625,
-0.08355712890625,
0.005519866943359375,
0.044189453125,
0.032012939453125,
0.0235443115234375,
-0.0038852691650390625,
0.01351165771484375,
-0.00855255126953125,
-0.04754638671875,
0.023101806640625,
-0.00923919677734375,
-0.0271453857421875,
0.042449951171875,
0.00804901123046875,
0.033905029296875,
0.0031909942626953125,
0.0086517333984375,
-0.01192474365234375,
0.0229339599609375,
-0.06085205078125,
-0.054473876953125,
0.0230865478515625,
-0.0389404296875,
0.04302978515625,
-0.087158203125,
-0.051483154296875,
-0.031768798828125,
0.0010137557983398438,
-0.0094757080078125,
-0.0135955810546875,
-0.007373809814453125,
-0.0303192138671875,
0.0017728805541992188,
0.04254150390625,
-0.0020847320556640625,
-0.019256591796875,
0.01367950439453125,
0.043060302734375,
-0.042938232421875,
-0.0169677734375,
-0.01042938232421875,
-0.0302886962890625,
-0.0011396408081054688,
-0.01336669921875,
0.0277099609375,
0.00739288330078125,
-0.0198516845703125,
-0.019195556640625,
-0.01303863525390625,
0.010101318359375,
-0.0140380859375,
0.047515869140625,
0.007678985595703125,
0.02655029296875,
-0.028717041015625,
-0.03179931640625,
0.041046142578125,
0.0015344619750976562,
-0.05426025390625,
-0.02587890625,
-0.0262298583984375,
0.022186279296875,
-0.016998291015625,
0.01421356201171875,
0.0660400390625,
0.01303863525390625,
-0.02191162109375,
0.01107025146484375,
-0.061920166015625,
0.0041656494140625,
0.0299224853515625,
0.026763916015625,
-0.05279541015625,
0.0280609130859375,
0.06378173828125,
0.0213623046875,
0.0310516357421875,
0.0014629364013671875,
-0.0248565673828125,
-0.007843017578125,
0.005950927734375,
-0.0287628173828125,
-0.020904541015625,
0.0068511962890625,
-0.06903076171875,
0.0161285400390625,
0.00945281982421875,
-0.0372314453125,
-0.031036376953125,
0.04632568359375,
0.0080108642578125,
0.0166473388671875,
-0.0008831024169921875,
-0.00588226318359375,
0.007526397705078125,
-0.0306396484375,
-0.0024890899658203125,
0.008880615234375,
0.006229400634765625,
0.0085906982421875,
0.08563232421875,
0.00928497314453125,
-0.05328369140625,
0.0078125,
-0.038970947265625,
-0.0297088623046875,
0.0243988037109375,
0.0298309326171875,
-0.0126190185546875,
0.0219268798828125,
0.0101165771484375,
0.0067138671875,
0.02276611328125,
-0.03228759765625,
-0.02935791015625,
-0.0361328125,
-0.02423095703125,
-0.0157470703125,
0.0452880859375,
0.0285186767578125,
-0.021759033203125,
0.0406494140625,
-0.04254150390625,
0.01076507568359375,
0.002643585205078125,
-0.009735107421875,
-0.0304107666015625,
-0.0255889892578125,
-0.01434326171875,
0.02362060546875,
-0.0213470458984375,
-0.0169830322265625,
0.00991058349609375,
-0.0158538818359375,
-0.01318359375,
-0.0304107666015625,
-0.0026302337646484375,
-0.006328582763671875,
0.0343017578125,
-0.005153656005859375,
-0.0301055908203125,
0.027557373046875,
-0.0036029815673828125,
0.007556915283203125,
-0.01538848876953125,
0.01136016845703125,
-0.03900146484375,
-0.051025390625,
0.044189453125,
-0.01308441162109375,
0.038238525390625,
-0.035064697265625,
-0.01519012451171875,
-0.007080078125,
0.10430908203125,
-0.03387451171875,
0.01067352294921875,
0.006206512451171875,
0.0014200210571289062,
-0.041961669921875,
-0.0111541748046875,
-0.083984375,
0.01038360595703125,
-0.05377197265625,
-0.00591278076171875,
-0.023223876953125,
-0.000194549560546875,
-0.04302978515625,
0.0176544189453125,
-0.051239013671875,
-0.0267333984375,
0.039276123046875,
-0.059722900390625,
0.0009751319885253906,
0.03253173828125,
0.004985809326171875,
-0.01265716552734375,
-0.027923583984375,
-0.019439697265625,
-0.09454345703125,
-0.0098419189453125,
-0.054840087890625,
0.08172607421875,
0.037872314453125,
-0.02093505859375,
-0.0122833251953125,
0.036468505859375,
-0.01055145263671875,
-0.018341064453125,
0.0307464599609375,
0.036590576171875,
-0.006351470947265625,
-0.0206298828125,
-0.00027823448181152344,
-0.046966552734375,
-0.01629638671875,
-0.005077362060546875,
-0.0182647705078125,
-0.001407623291015625,
-0.03253173828125,
-0.0290069580078125,
-0.016632080078125,
-0.0266571044921875,
-0.057342529296875,
-0.0205841064453125,
0.0034961700439453125,
0.003116607666015625,
-0.0185699462890625,
0.019989013671875,
-0.0159912109375,
-0.05364990234375,
0.032196044921875,
-0.052825927734375,
0.004032135009765625,
-0.00933837890625,
0.09075927734375,
0.0260772705078125,
0.00135040283203125,
0.06011962890625,
-0.020599365234375,
0.026214599609375,
0.00044989585876464844,
0.02264404296875,
0.0458984375,
-0.00786590576171875,
-0.02191162109375,
0.0180206298828125,
0.036834716796875,
-0.033477783203125,
0.03741455078125,
0.0294036865234375,
0.042449951171875,
-0.021697998046875,
0.0416259765625,
0.0148773193359375,
-0.038299560546875,
-0.036529541015625,
0.0231475830078125,
0.04766845703125,
0.0208892822265625,
-0.04913330078125,
0.058441162109375,
-0.005329132080078125,
0.014801025390625,
-0.006443023681640625,
0.0180206298828125,
0.0364990234375,
0.029083251953125,
0.0015354156494140625,
-0.025238037109375,
-0.035980224609375,
0.022796630859375,
0.0021953582763671875,
0.01056671142578125,
-0.048614501953125,
0.0411376953125,
-0.00766754150390625,
-0.00994110107421875,
0.01043701171875,
-0.00848388671875,
0.03765869140625,
-0.0254669189453125,
-0.060028076171875,
-0.0159912109375,
-0.0122833251953125,
0.0631103515625,
0.03997802734375,
0.0216827392578125,
0.0248565673828125,
0.00763702392578125,
-0.009368896484375,
-0.0118560791015625,
0.002948760986328125,
0.0148468017578125,
-0.0260772705078125,
-0.022216796875,
0.0022792816162109375,
-0.020751953125,
0.027008056640625,
-0.0157623291015625,
0.024383544921875,
-0.0043792724609375,
-0.0272369384765625,
0.056732177734375,
0.049072265625,
-0.004177093505859375,
0.00498199462890625,
0.011199951171875,
0.00954437255859375,
-0.030609130859375,
0.018798828125,
-0.028839111328125,
-0.0101165771484375,
0.00417327880859375,
0.037017822265625,
-0.03277587890625,
-0.037200927734375,
0.03228759765625,
-0.0071563720703125,
-0.0038433074951171875,
0.072265625,
0.0197906494140625,
-0.06634521484375,
-0.022308349609375,
0.0225067138671875,
0.0400390625,
-0.043121337890625,
0.0104827880859375,
0.05072021484375,
0.007610321044921875,
0.0275726318359375,
-0.057586669921875,
-0.006175994873046875,
-0.01739501953125,
0.005847930908203125,
-0.056884765625,
-0.01605224609375,
0.0005693435668945312,
-0.0013284683227539062,
-0.059173583984375,
0.0171051025390625,
-0.01299285888671875,
-0.0073394775390625,
-0.0272216796875,
0.028961181640625,
-0.0068817138671875,
-0.0002493858337402344,
-0.06072998046875,
0.0255584716796875,
0.0086822509765625,
-0.001766204833984375,
-0.0816650390625,
0.0005397796630859375,
-0.035247802734375,
0.0084381103515625,
-0.05072021484375,
-0.0501708984375,
-0.029083251953125,
0.0016660690307617188,
0.01374053955078125,
0.017303466796875,
0.0019741058349609375,
-0.03228759765625,
-0.01227569580078125,
0.0110626220703125,
0.0274810791015625,
0.0264434814453125,
-0.017120361328125,
0.048248291015625,
0.00437164306640625,
0.0298004150390625,
0.011260986328125,
0.004344940185546875,
-0.0193634033203125,
-0.00708770751953125,
-0.0014553070068359375,
0.003662109375,
-0.007648468017578125,
-0.020660400390625,
0.0186920166015625,
0.0118408203125,
0.057342529296875,
-0.01055908203125,
0.0263519287109375,
-0.0137786865234375,
0.00223541259765625,
-0.0076751708984375,
0.006572723388671875,
-0.00028896331787109375,
0.0117950439453125,
0.0308990478515625,
-0.01678466796875,
0.01251983642578125,
-0.0143585205078125,
0.01181793212890625,
0.00868988037109375,
-0.01202392578125,
0.00458526611328125,
0.00962066650390625,
-0.0278472900390625,
0.034820556640625,
0.03790283203125,
-0.012481689453125,
0.0287322998046875,
0.0133819580078125,
0.01212310791015625,
0.0042877197265625,
0.03692626953125,
-0.0187835693359375,
-0.0298004150390625,
0.03564453125,
0.00766754150390625,
-0.0207366943359375,
0.01454925537109375,
-0.0261383056640625,
0.0380859375,
0.03936767578125,
0.0457763671875,
-0.0906982421875,
0.04998779296875,
-0.0185394287109375,
0.00798797607421875,
0.08660888671875,
-0.032073974609375,
-0.017578125,
-0.0182342529296875,
0.04571533203125,
-0.0195770263671875,
-0.0472412109375,
-0.002948760986328125,
-0.0038242340087890625,
-0.0290069580078125,
-0.01154327392578125,
-0.003803253173828125,
0.020416259765625,
0.03057861328125,
0.0355224609375,
-0.0160369873046875,
0.037078857421875,
0.041961669921875,
0.00534820556640625,
0.0243988037109375,
-0.048431396484375,
-0.03399658203125,
-0.0146942138671875,
-0.03387451171875,
-0.060546875,
0.00667572021484375,
-0.049041748046875,
0.047821044921875,
0.04986572265625,
-0.031524658203125,
-0.0034542083740234375,
0.0298614501953125,
-0.021575927734375,
-0.080810546875,
-0.020660400390625,
0.01183319091796875,
0.024139404296875,
-0.005828857421875,
0.0369873046875,
-0.01552581787109375,
-0.039886474609375,
0.00042557716369628906,
-0.0281829833984375,
0.0213623046875,
-0.04486083984375,
-0.007381439208984375,
0.0281982421875,
-0.042236328125,
-0.0036487579345703125,
0.005584716796875,
0.0171966552734375,
-0.0266876220703125,
-0.00438690185546875,
0.002735137939453125,
-0.014739990234375,
0.0157470703125,
0.0214385986328125,
-0.0308990478515625,
0.11260986328125,
-0.01470947265625,
-0.026275634765625,
0.0024394989013671875,
0.055328369140625,
-0.024200439453125,
0.044677734375,
-0.0389404296875,
0.042938232421875,
-0.004039764404296875,
0.02191162109375,
-0.00733184814453125,
0.024017333984375,
0.0004220008850097656,
-0.0258026123046875,
0.054229736328125,
0.0170135498046875,
-0.03619384765625,
-0.0219573974609375,
0.02386474609375,
-0.005741119384765625,
-0.029205322265625,
0.053070068359375,
-0.00001704692840576172,
-0.0030670166015625,
-0.0138702392578125,
0.0202484130859375,
0.049102783203125,
-0.03955078125,
-0.053741455078125,
0.02008056640625,
0.0008230209350585938,
-0.0183868408203125,
-0.0238494873046875,
0.0394287109375,
-0.08294677734375,
0.001373291015625,
0.039215087890625,
0.0194244384765625,
-0.016754150390625,
-0.0003132820129394531,
-0.0197906494140625,
-0.009429931640625,
-0.00836181640625,
-0.007122039794921875,
0.0235595703125,
0.00860595703125,
0.021942138671875,
-0.007965087890625,
0.031402587890625,
-0.011962890625,
-0.0112152099609375,
0.01468658447265625,
0.06549072265625,
-0.0843505859375,
0.058685302734375,
0.028839111328125,
0.025146484375,
-0.00664520263671875,
0.039337158203125,
0.0216064453125,
0.0557861328125,
-0.05047607421875,
-0.0183563232421875,
0.0031414031982421875,
0.017425537109375,
0.0087432861328125,
0.0018978118896484375,
0.0225677490234375,
-0.00872802734375,
0.02642822265625,
-0.03265380859375,
-0.0148468017578125,
0.0164337158203125,
0.028167724609375,
-0.0013980865478515625,
0.010833740234375,
-0.01922607421875,
-0.02105712890625,
-0.0214691162109375,
-0.00390625,
-0.014190673828125,
0.01497650146484375,
0.0220184326171875,
-0.00007218122482299805,
0.00684356689453125,
-0.0011577606201171875,
-0.015777587890625,
0.031402587890625,
0.01031494140625,
0.0010385513305664062,
-0.0538330078125,
-0.05572509765625,
0.0168609619140625,
0.051605224609375,
0.01073455810546875,
0.0225067138671875,
-0.01245880126953125,
0.0109100341796875,
0.027130126953125,
0.01178741455078125,
0.039886474609375,
-0.00948333740234375,
0.001850128173828125,
-0.04833984375,
0.0178070068359375,
0.0006875991821289062,
-0.0021495819091796875,
0.0089263916015625,
-0.012725830078125,
0.04803466796875,
-0.005725860595703125,
0.0016508102416992188,
0.003658294677734375,
-0.03936767578125,
0.024627685546875,
-0.0072021484375,
0.056610107421875,
0.01323699951171875,
-0.0178680419921875,
0.027435302734375,
-0.05181884765625,
-0.0831298828125,
0.022857666015625,
0.0399169921875,
-0.0213775634765625,
0.0154266357421875,
0.036773681640625,
-0.01033782958984375,
-0.00402069091796875,
0.033721923828125,
-0.013702392578125,
-0.029388427734375,
0.045196533203125,
-0.008880615234375,
0.044097900390625,
0.0396728515625,
0.019317626953125,
0.0212554931640625,
0.06903076171875,
0.0088653564453125,
-0.0129852294921875,
0.045379638671875,
-0.0107879638671875,
-0.007781982421875,
-0.005420684814453125,
0.0005092620849609375,
0.00356292724609375,
0.01605224609375,
-0.016937255859375,
-0.01357269287109375,
-0.01410675048828125,
0.0046539306640625,
0.01287078857421875,
-0.0386962890625,
-0.030853271484375,
0.006748199462890625,
0.022613525390625,
0.026947021484375,
0.055694580078125,
-0.006084442138671875,
-0.032318115234375,
-0.047393798828125,
-0.0088653564453125,
0.029327392578125,
0.0224609375,
-0.028900146484375,
0.01276397705078125,
-0.034881591796875,
0.01134490966796875,
-0.042236328125,
0.036865234375,
-0.08953857421875,
0.00540924072265625,
-0.0426025390625,
-0.0418701171875,
0.0143280029296875,
-0.002285003662109375,
0.00909423828125,
0.0180511474609375,
0.0294342041015625,
0.03814697265625,
-0.053741455078125,
0.0219879150390625,
0.0273895263671875,
0.0877685546875,
0.0167236328125,
0.0357666015625,
-0.011444091796875,
0.0025310516357421875,
0.00960540771484375,
-0.033660888671875,
-0.0340576171875,
-0.053253173828125,
-0.0129241943359375,
0.030181884765625,
-0.0574951171875,
-0.0633544921875,
-0.076416015625,
-0.0001404285430908203,
0.06951904296875,
0.038665771484375,
-0.1087646484375,
0.040283203125,
-0.01360321044921875,
0.06097412109375,
0.0182952880859375,
-0.018768310546875,
0.0292205810546875,
0.07354736328125,
-0.032379150390625,
-0.0017004013061523438,
-0.01253509521484375,
-0.03521728515625,
-0.03973388671875,
0.0413818359375,
0.0501708984375,
-0.034759521484375,
-0.0325927734375,
0.042510986328125,
0.02923583984375,
0.086181640625,
-0.034088134765625,
-0.01361846923828125,
0.0264129638671875,
-0.0125732421875,
-0.0206756591796875,
-0.021026611328125,
0.0142059326171875,
-0.03533935546875,
-0.039337158203125,
-0.0576171875,
0.031341552734375,
0.0226593017578125,
-0.019744873046875,
-0.041015625,
0.11572265625,
-0.036773681640625,
0.0026226043701171875,
-0.06884765625,
0.00803375244140625,
0.01617431640625,
-0.001522064208984375,
-0.04290771484375,
0.00968170166015625,
-0.035980224609375,
0.0300445556640625,
0.0079345703125,
-0.030059814453125,
0.043670654296875,
-0.01110076904296875,
-0.013702392578125,
0.0286407470703125,
0.041107177734375,
-0.021484375,
0.004550933837890625,
-0.0099334716796875,
0.03729248046875,
0.058868408203125,
-0.0150299072265625,
-0.0276336669921875,
-0.01381683349609375,
-0.0085906982421875,
-0.0193023681640625,
-0.04083251953125,
0.033721923828125,
0.0088043212890625,
0.0283660888671875,
0.01568603515625,
-0.00722503662109375,
-0.048309326171875,
-0.0006642341613769531,
-0.0288543701171875,
-0.0157928466796875,
-0.0171966552734375,
-0.00467681884765625,
-0.033172607421875,
0.0023593902587890625,
-0.01446533203125,
0.00133514404296875,
-0.0146484375,
0.031585693359375,
-0.0161285400390625,
-0.01390838623046875,
0.03558349609375,
-0.00738525390625,
-0.04803466796875,
0.031829833984375,
0.0643310546875,
-0.0501708984375,
-0.0018796920776367188,
0.003936767578125,
-0.0035686492919921875,
0.01776123046875,
-0.00806427001953125,
0.0236968994140625,
0.00534820556640625,
-0.0439453125,
0.042724609375,
-0.003173828125,
0.028167724609375,
-0.07415771484375,
-0.033477783203125,
0.0211639404296875,
0.05279541015625,
-0.008941650390625,
0.08026123046875,
-0.0004677772521972656,
0.070068359375,
-0.0037517547607421875,
0.0389404296875,
-0.0262298583984375,
0.056396484375,
-0.039276123046875,
0.037750244140625,
0.019317626953125,
-0.0010614395141601562,
0.07391357421875,
-0.00460052490234375,
0.00934600830078125,
0.016693115234375,
0.01406097412109375,
-0.0265350341796875,
0.03619384765625,
0.04473876953125,
0.001430511474609375,
0.020172119140625
] |
02dda9f6bbf1a1dc12161696fc690db2527fb5b1
|
Wordpress Stackexchange
Q: Menu items description? Custom Walker for wp_nav_menu() Normal Wordpress Menu looks like:
Home | Blog | About us | Contact
But I've seen many pages with descriptions under these links:
Home Page | Our Blogs | About us
| Contact
....meet us...| read more| basic info| contact form
How to achieve this?
(I want it to be core function for all my themes, so no plugins please, I just want to know how it's done)
A: This isn't better or worse than other suggestions; it's just different. It's short and sweet too.
Rather than using the description field as @toscho suggests, you could fill in the "Title" field on each menu item with the text you want, and then use this CSS:
.menu-item a:after { content: attr(title); }
It would also be easy to use jQuery to append it, but the text is ornamental enough that CSS seems appropriate.
|
Q: Menu items description? Custom Walker for wp_nav_menu() Normal Wordpress Menu looks like:
Home | Blog | About us | Contact
But I've seen many pages with descriptions under these links:
Home Page | Our Blogs | About us
| Contact
....meet us...| read more| basic info| contact form
How to achieve this?
(I want it to be core function for all my themes, so no plugins please, I just want to know how it's done)
A: This isn't better or worse than other suggestions; it's just different. It's short and sweet too.
Rather than using the description field as @toscho suggests, you could fill in the "Title" field on each menu item with the text you want, and then use this CSS:
.menu-item a:after { content: attr(title); }
It would also be easy to use jQuery to append it, but the text is ornamental enough that CSS seems appropriate.
A: Since WordPress 3.0, you don't need a custom walker anymore!
There is the walker_nav_menu_start_el filter, see https://developer.wordpress.org/reference/hooks/walker_nav_menu_start_el/
Example:
function add_description_to_menu($item_output, $item, $depth, $args) {
if (strlen($item->description) > 0 ) {
// append description after link
$item_output .= sprintf('<span class="description">%s</span>', esc_html($item->description));
// or.. insert description as last item inside the link ($item_output ends with "</a>{$args->after}")
// $item_output = substr($item_output, 0, -strlen("</a>{$args->after}")) . sprintf('<span class="description">%s</span >', esc_html($item->description)) . "</a>{$args->after}";
}
return $item_output;
}
add_filter('walker_nav_menu_start_el', 'add_description_to_menu', 10, 4);
A: You can also write a <span> element after the navigation label in menus and use the following CSS rule to change its display setting (it's inline by default):
span {display:block}
A: You need a custom walker for the nav menu.
Basically, you add a parameter 'walker' to the wp_nav_menu() options and call an instance of an enhanced class:
wp_nav_menu(
array (
'menu' => 'main-menu',
'container' => FALSE,
'container_id' => FALSE,
'menu_class' => '',
'menu_id' => FALSE,
'depth' => 1,
'walker' => new Description_Walker
)
);
The class Description_Walker extends Walker_Nav_Menu and changes the function start_el( &$output, $item, $depth, $args ) to look for $item->description.
A basic example:
/**
* Create HTML list of nav menu items.
* Replacement for the native Walker, using the description.
*
* @see https://wordpress.stackexchange.com/q/14037/
* @author fuxia
*/
class Description_Walker extends Walker_Nav_Menu
{
/**
* Start the element output.
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Menu item data object.
* @param int $depth Depth of menu item. May be used for padding.
* @param array|object $args Additional strings. Actually always an
instance of stdClass. But this is WordPress.
* @return void
*/
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 )
{
$classes = empty ( $item->classes ) ? array () : (array) $item->classes;
$class_names = join(
' '
, apply_filters(
'nav_menu_css_class'
, array_filter( $classes ), $item
)
);
! empty ( $class_names )
and $class_names = ' class="'. esc_attr( $class_names ) . '"';
$output .= "<li id='menu-item-$item->ID' $class_names>";
$attributes = '';
! empty( $item->attr_title )
and $attributes .= ' title="' . esc_attr( $item->attr_title ) .'"';
! empty( $item->target )
and $attributes .= ' target="' . esc_attr( $item->target ) .'"';
! empty( $item->xfn )
and $attributes .= ' rel="' . esc_attr( $item->xfn ) .'"';
! empty( $item->url )
and $attributes .= ' href="' . esc_attr( $item->url ) .'"';
// insert description for top level elements only
// you may change this
$description = ( ! empty ( $item->description ) and 0 == $depth )
? '<small class="nav_desc">' . esc_attr( $item->description ) . '</small>' : '';
$title = apply_filters( 'the_title', $item->title, $item->ID );
$item_output = $args->before
. "<a $attributes>"
. $args->link_before
. $title
. '</a> '
. $args->link_after
. $description
. $args->after;
// Since $output is called by reference we don't need to return anything.
$output .= apply_filters(
'walker_nav_menu_start_el'
, $item_output
, $item
, $depth
, $args
);
}
}
Or, alternatively as @nevvermind commented, you could inherit all the functionalities of the parent's start_el function and just append the description to $output:
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 )
{
parent::start_el( $output, $item, $depth, $args );
$output .= sprintf(
'<i>%s</i>',
esc_html( $item->description )
);
}
Sample output:
Now enable the description field in wp-admin/nav-menus.php to get the ability to edit this field. If you don’t WP just trashes your complete post content into it.
Further reading:
*
*Associated bugs
*Similar example with different markup and formatting
*Enable description box in menu management screen programmatically
*Collect the item description for later usage
And that’s it.
|
wordpress
|
{
"language": "en",
"length": 749,
"provenance": "stackexchange_00019.jsonl.gz:408388",
"question_score": "111",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14037"
}
|
[
0.038421630859375,
-0.00528717041015625,
0.005733489990234375,
0.0380859375,
0.003143310546875,
-0.05035400390625,
0.068603515625,
-0.047088623046875,
-0.00835418701171875,
0.01186370849609375,
-0.041900634765625,
0.024688720703125,
-0.034576416015625,
-0.0162506103515625,
0.01328277587890625,
-0.04443359375,
0.034393310546875,
0.0021953582763671875,
0.045135498046875,
-0.000003814697265625,
0.00844573974609375,
0.020751953125,
0.042633056640625,
0.0182952880859375,
0.0182952880859375,
-0.051788330078125,
0.0904541015625,
-0.003910064697265625,
0.0262298583984375,
-0.003215789794921875,
0.02337646484375,
-0.0406494140625,
0.0223846435546875,
-0.0253448486328125,
0.031829833984375,
-0.00516510009765625,
0.0230712890625,
-0.0102691650390625,
-0.001850128173828125,
0.0265655517578125,
0.02783203125,
-0.01812744140625,
0.021484375,
0.002376556396484375,
0.02508544921875,
-0.039520263671875,
0.036865234375,
-0.058074951171875,
0.0239410400390625,
-0.0684814453125,
0.0016841888427734375,
0.013916015625,
0.03521728515625,
-0.03228759765625,
-0.0250091552734375,
0.005573272705078125,
0.00962066650390625,
-0.052001953125,
0.0396728515625,
-0.0164031982421875,
-0.0199432373046875,
-0.0390625,
0.0401611328125,
-0.00458526611328125,
-0.013580322265625,
0.0187225341796875,
0.0283966064453125,
-0.004673004150390625,
-0.045074462890625,
-0.0301971435546875,
0.024383544921875,
-0.02471923828125,
-0.00478363037109375,
-0.0254058837890625,
-0.02862548828125,
0.004039764404296875,
0.0006003379821777344,
-0.0482177734375,
0.0212554931640625,
0.0033721923828125,
-0.01458740234375,
0.003963470458984375,
0.0200653076171875,
-0.035308837890625,
0.0203399658203125,
-0.006805419921875,
-0.0205230712890625,
-0.0059051513671875,
-0.0078277587890625,
-0.01511383056640625,
-0.01335906982421875,
-0.004032135009765625,
-0.0472412109375,
0.0372314453125,
-0.004009246826171875,
0.00737762451171875,
0.00269317626953125,
0.058441162109375,
-0.00959014892578125,
0.056884765625,
-0.0159149169921875,
-0.012359619140625,
0.0634765625,
-0.06378173828125,
0.0013751983642578125,
0.0276641845703125,
-0.005680084228515625,
0.03594970703125,
0.05419921875,
0.029144287109375,
0.004375457763671875,
0.048828125,
-0.01303863525390625,
-0.0009365081787109375,
0.0014896392822265625,
0.0018901824951171875,
-0.030487060546875,
0.019134521484375,
-0.0088043212890625,
-0.005451202392578125,
-0.006214141845703125,
0.0103302001953125,
0.009063720703125,
0.031829833984375,
0.0052032470703125,
0.030792236328125,
0.0245361328125,
-0.0340576171875,
-0.016387939453125,
0.044952392578125,
0.0003006458282470703,
0.00775146484375,
0.036468505859375,
0.00972747802734375,
-0.0234375,
-0.0309906005859375,
-0.0155029296875,
-0.0021381378173828125,
-0.01364898681640625,
-0.0063323974609375,
0.0158233642578125,
0.0033359527587890625,
0.022857666015625,
-0.0194854736328125,
0.017059326171875,
0.018524169921875,
-0.003025054931640625,
0.01123046875,
0.0281829833984375,
-0.025360107421875,
0.004817962646484375,
-0.034698486328125,
0.0552978515625,
0.0167999267578125,
-0.06390380859375,
-0.0243988037109375,
-0.0090484619140625,
-0.0300140380859375,
-0.020782470703125,
-0.05615234375,
-0.0198516845703125,
0.0020751953125,
0.017730712890625,
-0.0755615234375,
-0.051177978515625,
-0.02685546875,
-0.0167236328125,
-0.0026569366455078125,
0.01328277587890625,
0.037261962890625,
0.01953125,
-0.034698486328125,
-0.0251007080078125,
0.007389068603515625,
-0.0078125,
0.01432037353515625,
-0.005123138427734375,
-0.019256591796875,
0.0240936279296875,
0.033416748046875,
-0.01470947265625,
-0.036041259765625,
0.004543304443359375,
-0.006256103515625,
-0.065673828125,
0.01611328125,
0.00817108154296875,
0.09222412109375,
0.03753662109375,
0.0290985107421875,
0.0012960433959960938,
-0.036468505859375,
-0.029632568359375,
0.03814697265625,
-0.039794921875,
-0.023956298828125,
-0.00177001953125,
0.026702880859375,
-0.034423828125,
-0.0188446044921875,
-0.0003180503845214844,
0.005939483642578125,
-0.01076507568359375,
0.0025959014892578125,
-0.05902099609375,
-0.0036258697509765625,
-0.0216064453125,
0.03466796875,
0.002346038818359375,
0.033782958984375,
0.0028362274169921875,
0.028717041015625,
-0.0006928443908691406,
-0.08984375,
-0.035186767578125,
-0.014801025390625,
-0.00177764892578125,
0.0188140869140625,
-0.00931549072265625,
-0.005130767822265625,
-0.0124359130859375,
-0.00861358642578125,
-0.007007598876953125,
0.060760498046875,
0.024627685546875,
-0.01548004150390625,
-0.03228759765625,
-0.01111602783203125,
0.00839996337890625,
0.002758026123046875,
-0.01462554931640625,
0.041748046875,
0.06756591796875,
0.049957275390625,
-0.0229949951171875,
0.0283966064453125,
0.045928955078125,
-0.019989013671875,
-0.02099609375,
0.021575927734375,
0.0286712646484375,
0.0173187255859375,
-0.0007138252258300781,
-0.005584716796875,
0.043731689453125,
-0.0200653076171875,
0.025177001953125,
-0.0195159912109375,
-0.017364501953125,
-0.0017566680908203125,
0.0538330078125,
-0.018768310546875,
0.031585693359375,
-0.01480865478515625,
0.00795745849609375,
0.0281524658203125,
-0.0223846435546875,
-0.0184326171875,
0.00434112548828125,
0.00614166259765625,
0.0026569366455078125,
0.029205322265625,
0.0129547119140625,
0.007205963134765625,
-0.00963592529296875,
0.051483154296875,
0.0225677490234375,
0.0361328125,
-0.04998779296875,
0.0252532958984375,
0.016998291015625,
0.05535888671875,
0.00019109249114990234,
0.013092041015625,
0.0165557861328125,
-0.007511138916015625,
0.0092620849609375,
-0.0064849853515625,
-0.0206146240234375,
-0.0158538818359375,
0.0007824897766113281,
0.051300048828125,
0.042633056640625,
-0.0199737548828125,
0.0040283203125,
-0.080078125,
0.004184722900390625,
-0.00586700439453125,
-0.0018758773803710938,
0.004337310791015625,
0.01513671875,
0.005695343017578125,
-0.042694091796875,
0.0330810546875,
-0.0143585205078125,
-0.0148162841796875,
0.0283660888671875,
-0.0013170242309570312,
0.028472900390625,
-0.0005116462707519531,
0.03887939453125,
0.057373046875,
-0.00945281982421875,
0.0024433135986328125,
-0.0035552978515625,
0.01291656494140625,
-0.005901336669921875,
-0.001277923583984375,
-0.008148193359375,
-0.0005269050598144531,
-0.0168914794921875,
0.060943603515625,
0.012359619140625,
0.01413726806640625,
-0.0156097412109375,
-0.0357666015625,
-0.0161285400390625,
-0.0037059783935546875,
-0.071044921875,
-0.038604736328125,
0.021331787109375,
-0.03875732421875,
0.039031982421875,
0.031951904296875,
-0.0163726806640625,
-0.049102783203125,
0.07421875,
0.01708984375,
-0.038177490234375,
-0.0501708984375,
-0.050262451171875,
-0.058746337890625,
-0.0816650390625,
0.03594970703125,
0.004058837890625,
0.031463623046875,
0.0035305023193359375,
0.04833984375,
0.0170440673828125,
-0.022857666015625,
0.04278564453125,
0.040771484375,
-0.0168914794921875,
0.0242462158203125,
0.00524139404296875,
-0.0272064208984375,
-0.0128326416015625,
0.023406982421875,
-0.0099639892578125,
0.0084075927734375,
-0.006954193115234375,
-0.013916015625,
-0.038665771484375,
0.028045654296875,
0.0223846435546875,
-0.0364990234375,
0.02508544921875,
0.0621337890625,
0.025177001953125,
-0.0067901611328125,
-0.04827880859375,
-0.01210784912109375,
-0.072021484375,
0.00592041015625,
0.041290283203125,
0.007411956787109375,
-0.0311279296875,
0.0247650146484375,
-0.011260986328125,
0.0013303756713867188,
0.019927978515625,
-0.0112457275390625,
0.03643798828125,
-0.0208587646484375,
-0.034820556640625,
-0.0247650146484375,
0.05908203125,
0.01031494140625,
-0.0000010132789611816406,
0.0198822021484375,
-0.004791259765625,
-0.0198974609375,
0.04632568359375,
-0.0341796875,
-0.048095703125,
0.0196685791015625,
-0.0310821533203125,
0.0416259765625,
-0.024139404296875,
-0.0139617919921875,
0.0081939697265625,
0.09326171875,
-0.0413818359375,
-0.017181396484375,
0.034149169921875,
0.0151824951171875,
0.0251007080078125,
0.0272979736328125,
-0.033905029296875,
-0.045257568359375,
-0.09967041015625,
0.033538818359375,
-0.00507354736328125,
-0.0221405029296875,
-0.0305633544921875,
0.050506591796875,
-0.0621337890625,
-0.033172607421875,
0.0257110595703125,
0.007190704345703125,
-0.01291656494140625,
0.0156707763671875,
-0.038787841796875,
0.00275421142578125,
-0.028228759765625,
-0.01053619384765625,
-0.05548095703125,
-0.0235443115234375,
-0.01483154296875,
0.0718994140625,
0.0208740234375,
-0.0253143310546875,
0.0068817138671875,
0.054901123046875,
0.0211334228515625,
0.04412841796875,
-0.0117950439453125,
-0.028717041015625,
0.045623779296875,
0.01065826416015625,
-0.00022673606872558594,
-0.00864410400390625,
-0.01018524169921875,
-0.0231475830078125,
-0.060028076171875,
-0.00025653839111328125,
-0.0047454833984375,
0.0039215087890625,
0.0426025390625,
-0.0259857177734375,
-0.0374755859375,
-0.044677734375,
-0.02313232421875,
0.020294189453125,
0.0250244140625,
-0.033050537109375,
-0.046722412109375,
-0.042144775390625,
-0.0164031982421875,
0.00032806396484375,
-0.037261962890625,
0.0184173583984375,
0.01410675048828125,
0.02374267578125,
-0.00835418701171875,
0.008544921875,
0.0188140869140625,
0.037689208984375,
-0.01354217529296875,
0.04248046875,
-0.01093292236328125,
-0.029266357421875,
0.07757568359375,
-0.0003497600555419922,
0.00818634033203125,
-0.005084991455078125,
0.0555419921875,
0.016204833984375,
-0.0190582275390625,
0.0251922607421875,
0.025299072265625,
-0.035125732421875,
0.022735595703125,
0.0016384124755859375,
-0.0171966552734375,
-0.008819580078125,
0.0198211669921875,
-0.0024814605712890625,
0.023956298828125,
-0.0009646415710449219,
0.01403045654296875,
-0.0105133056640625,
0.038543701171875,
0.053863525390625,
0.05023193359375,
-0.00411224365234375,
0.013275146484375,
0.030364990234375,
0.008056640625,
-0.051513671875,
-0.03564453125,
-0.051025390625,
0.01425933837890625,
-0.04754638671875,
-0.032806396484375,
0.01076507568359375,
-0.014984130859375,
0.0609130859375,
0.0186004638671875,
-0.0384521484375,
-0.001819610595703125,
-0.00206756591796875,
0.0282440185546875,
0.016387939453125,
0.057464599609375,
0.02459716796875,
0.005741119384765625,
0.0248565673828125,
0.00029540061950683594,
0.0218353271484375,
0.003238677978515625,
-0.005489349365234375,
0.039215087890625,
-0.0060882568359375,
0.00899505615234375,
0.015625,
0.043182373046875,
0.00411224365234375,
0.0236968994140625,
-0.0159912109375,
-0.002288818359375,
-0.01422882080078125,
0.037811279296875,
0.0182647705078125,
0.0006494522094726562,
-0.011138916015625,
0.0283660888671875,
0.017120361328125,
-0.0195159912109375,
-0.015960693359375,
0.034271240234375,
0.0194549560546875,
0.01268768310546875,
0.006572723388671875,
-0.005313873291015625,
-0.0007476806640625,
-0.00302886962890625,
0.0084228515625,
-0.0728759765625,
-0.08612060546875,
-0.0169677734375,
0.0213470458984375,
0.01995849609375,
-0.04302978515625,
-0.00366973876953125,
0.01317596435546875,
0.0184478759765625,
0.033111572265625,
-0.0367431640625,
0.0029506683349609375,
-0.00815582275390625,
0.006870269775390625,
0.00386810302734375,
0.008636474609375,
0.020416259765625,
-0.0732421875,
-0.042449951171875,
-0.004207611083984375,
0.0034351348876953125,
0.04620361328125,
-0.043243408203125,
0.003620147705078125,
-0.034912109375,
0.03717041015625,
-0.04595947265625,
0.0246124267578125,
0.0126800537109375,
-0.0014047622680664062,
-0.0030765533447265625,
-0.007282257080078125,
-0.016265869140625,
-0.0184783935546875,
-0.0135345458984375,
-0.055816650390625,
-0.042022705078125,
-0.034576416015625,
-0.04266357421875,
-0.01202392578125,
0.00846099853515625,
0.04107666015625,
-0.0279541015625,
0.04510498046875,
0.005130767822265625,
-0.017181396484375,
-0.04071044921875,
0.04852294921875,
0.0173492431640625,
0.0221099853515625,
-0.005157470703125,
0.032440185546875,
0.0009088516235351562,
-0.019073486328125,
0.0283966064453125,
-0.0106658935546875,
-0.0513916015625,
-0.048095703125,
-0.005161285400390625,
0.03729248046875,
0.06671142578125,
-0.008544921875,
0.031494140625,
-0.039093017578125,
-0.00205230712890625,
-0.0189208984375,
0.019683837890625,
-0.053558349609375,
-0.004367828369140625,
0.0212554931640625,
0.002040863037109375,
0.050994873046875,
-0.01125335693359375,
0.0030040740966796875,
-0.0138702392578125,
-0.0121002197265625,
0.0171661376953125,
0.01395416259765625,
-0.040771484375,
0.036773681640625,
0.053558349609375,
0.01025390625,
0.039306640625,
0.01251220703125,
0.0143890380859375,
0.0013246536254882812,
-0.0234527587890625,
0.032257080078125,
0.0238800048828125,
0.08636474609375,
-0.00780487060546875,
-0.0280609130859375,
0.055328369140625,
-0.049591064453125,
0.00131988525390625,
0.032257080078125,
0.04632568359375,
-0.043304443359375,
0.011199951171875,
0.00760650634765625,
0.01221466064453125,
0.06109619140625,
0.0078582763671875,
-0.0102691650390625,
-0.00762176513671875,
-0.0109405517578125,
-0.0162811279296875,
-0.02880859375,
-0.01068878173828125,
0.023345947265625,
0.007625579833984375,
0.0161590576171875,
0.0196533203125,
0.009429931640625,
-0.032470703125,
-0.050567626953125,
0.0343017578125,
-0.0091094970703125,
-0.038116455078125,
-0.027801513671875,
0.027130126953125,
-0.003269195556640625,
-0.0231170654296875,
0.061767578125,
-0.04046630859375,
0.0657958984375,
0.022186279296875,
0.039703369140625,
-0.01812744140625,
0.0261077880859375,
-0.01580810546875,
0.0445556640625,
-0.00495147705078125,
-0.0023345947265625,
0.010101318359375,
-0.010498046875,
0.005504608154296875,
0.022003173828125,
-0.0145111083984375,
0.009613037109375,
-0.0003192424774169922,
-0.003803253173828125,
-0.0321044921875,
-0.042633056640625,
0.13720703125,
-0.05181884765625,
-0.0186004638671875,
-0.0038928985595703125,
0.00032711029052734375,
0.013885498046875,
-0.0117034912109375,
0.069091796875,
-0.07379150390625,
-0.0009431838989257812,
0.0260009765625,
0.0266265869140625,
-0.044403076171875,
-0.014251708984375,
-0.0286102294921875,
0.0271148681640625,
-0.037139892578125,
-0.0001735687255859375,
0.0005431175231933594,
0.0175323486328125,
0.02056884765625,
0.022857666015625,
-0.041748046875,
0.063232421875,
-0.0186309814453125,
0.039031982421875,
-0.05706787109375,
-0.0093841552734375,
0.0173187255859375,
0.0323486328125,
0.0015001296997070312,
0.0084381103515625,
-0.00982666015625,
0.01108551025390625,
0.027618408203125,
-0.004863739013671875,
-0.021270751953125,
0.038848876953125,
-0.00827789306640625,
-0.005405426025390625,
0.021881103515625,
-0.04229736328125,
0.0221405029296875,
-0.03643798828125,
-0.00799560546875,
-0.0187225341796875,
0.031646728515625,
0.0556640625,
0.014923095703125,
0.0184173583984375,
0.00870513916015625,
-0.0064544677734375,
-0.0014295578002929688,
0.0021610260009765625,
-0.00600433349609375,
0.01324462890625,
0.0235137939453125,
-0.0423583984375,
0.01444244384765625,
-0.03826904296875,
0.034881591796875,
0.018310546875,
0.0151824951171875,
0.0301666259765625,
0.021331787109375,
0.01300811767578125,
0.007694244384765625,
0.01235198974609375,
0.031829833984375,
-0.01288604736328125,
0.029205322265625,
-0.0077362060546875,
0.0308990478515625,
-0.060821533203125,
-0.065185546875,
0.044158935546875,
0.07122802734375,
-0.021728515625,
-0.037628173828125,
-0.0023288726806640625,
-0.00855255126953125,
0.0295257568359375,
-0.005306243896484375,
0.047576904296875,
-0.0279083251953125,
-0.01555633544921875,
0.00574493408203125,
0.012359619140625,
0.039154052734375,
0.0017480850219726562,
0.01953125,
0.021148681640625,
-0.033203125,
0.0305023193359375,
-0.062164306640625,
0.07147216796875,
0.01148223876953125,
0.031951904296875,
-0.0033473968505859375,
0.047821044921875,
0.00787353515625,
-0.0104522705078125,
0.0282135009765625,
0.035888671875,
0.0141448974609375,
-0.053985595703125,
0.0187225341796875,
-0.0289154052734375,
-0.0280609130859375,
-0.0011434555053710938,
0.03082275390625,
0.031036376953125,
0.0308380126953125,
-0.001247406005859375,
-0.009765625,
0.006603240966796875,
0.035736083984375,
-0.025299072265625,
-0.039031982421875,
-0.0249786376953125,
0.0038700103759765625,
0.052001953125,
0.0200653076171875,
0.0231475830078125,
0.006732940673828125,
0.057281494140625,
0.01073455810546875,
0.0174713134765625,
0.00916290283203125,
-0.0158843994140625,
-0.00897216796875,
-0.013214111328125,
0.00423431396484375,
0.0229034423828125,
-0.13037109375,
-0.02239990234375,
-0.05377197265625,
-0.045257568359375,
0.05950927734375,
0.051300048828125,
-0.022369384765625,
0.0084075927734375,
0.0015268325805664062,
-0.0009613037109375,
-0.004299163818359375,
0.00048351287841796875,
-0.0007143020629882812,
0.0271453857421875,
0.0207061767578125,
0.01206207275390625,
-0.069580078125,
-0.01338958740234375,
-0.0265045166015625,
-0.0016279220581054688,
0.005580902099609375,
0.0215301513671875,
0.033905029296875,
0.02789306640625,
-0.062347412109375,
0.037933349609375,
-0.06939697265625,
-0.063720703125,
0.01374053955078125,
0.016387939453125,
0.018463134765625,
0.0032596588134765625,
-0.02996826171875,
0.0237579345703125,
0.035064697265625,
-0.035919189453125,
0.0278778076171875,
-0.01165771484375,
-0.0036716461181640625,
-0.0455322265625,
-0.0122528076171875,
-0.0222625732421875,
-0.00676727294921875,
-0.0134735107421875,
-0.0310516357421875,
0.041229248046875,
0.0322265625,
0.01171112060546875,
0.0322265625,
0.050811767578125,
-0.0217437744140625,
0.033905029296875,
-0.027008056640625,
0.06103515625,
0.0350341796875,
0.05645751953125,
-0.0133056640625,
-0.0084075927734375,
-0.00957489013671875,
0.020233154296875,
-0.002529144287109375,
0.0006566047668457031,
0.00827789306640625,
-0.01149749755859375,
0.004680633544921875,
-0.00922393798828125,
0.03582763671875,
-0.0174102783203125,
0.0165252685546875,
0.0002903938293457031,
0.015045166015625,
0.006072998046875,
-0.0382080078125,
-0.035675048828125,
-0.048095703125,
-0.00644683837890625,
0.025299072265625,
-0.0305633544921875,
-0.0235595703125,
-0.0697021484375,
-0.033935546875,
0.0273284912109375,
-0.01383209228515625,
0.00925445556640625,
-0.0008168220520019531,
-0.0303497314453125,
-0.00980377197265625,
-0.0233306884765625,
0.0218505859375,
-0.0142364501953125,
0.0158233642578125,
-0.003650665283203125,
-0.0002803802490234375,
-0.0301055908203125,
0.035919189453125,
0.0027103424072265625,
0.0142974853515625,
0.03814697265625,
-0.0283660888671875,
-0.042205810546875,
-0.0160675048828125,
0.0303192138671875,
0.042327880859375,
0.050628662109375,
-0.024749755859375,
-0.01214599609375,
0.005596160888671875,
-0.00763702392578125,
-0.0201568603515625,
0.004650115966796875,
-0.03265380859375,
-0.03497314453125,
0.0086212158203125,
-0.044830322265625,
-0.032867431640625,
-0.06573486328125,
-0.08331298828125,
0.044342041015625,
0.0030536651611328125,
-0.04315185546875,
-0.00005048513412475586,
-0.01873779296875,
-0.016082763671875,
0.0196990966796875,
0.006999969482421875,
-0.027557373046875,
-0.01153564453125,
0.00971221923828125,
0.006786346435546875,
0.08514404296875,
-0.00652313232421875,
0.006175994873046875,
-0.019500732421875,
0.0240020751953125,
0.00710296630859375,
0.0165557861328125,
0.035430908203125,
-0.0220184326171875,
0.0003032684326171875,
0.01360321044921875,
-0.08099365234375,
-0.059295654296875,
-0.042694091796875,
0.0173492431640625,
-0.007061004638671875,
0.00908660888671875,
-0.00618743896484375,
-0.0019207000732421875,
-0.01194000244140625,
0.043243408203125,
-0.001102447509765625,
-0.0234222412109375,
0.031585693359375,
0.01242828369140625,
-0.0026645660400390625,
-0.01427459716796875,
-0.01331329345703125,
-0.023162841796875,
-0.0222930908203125,
-0.01517486572265625,
-0.038238525390625,
-0.044219970703125,
0.0292816162109375,
-0.06427001953125,
0.00789642333984375,
0.0085601806640625,
0.01015472412109375,
-0.036895751953125,
-0.09149169921875,
0.10009765625,
-0.050018310546875,
-0.0148773193359375,
0.0188751220703125,
0.0621337890625,
0.021087646484375,
-0.0155181884765625,
-0.06158447265625,
-0.024658203125,
-0.0239410400390625,
0.0271148681640625,
-0.050323486328125,
0.058258056640625,
-0.053985595703125,
0.0233001708984375,
-0.018310546875,
0.0298919677734375,
0.0303955078125,
0.03912353515625,
-0.04925537109375,
0.019256591796875,
0.0172576904296875,
0.0214080810546875,
-0.0011320114135742188,
-0.00045180320739746094,
-0.01122283935546875,
0.0506591796875,
0.0031108856201171875,
-0.034881591796875,
0.018951416015625,
-0.046478271484375,
0.0020923614501953125,
0.00647735595703125,
-0.00669097900390625,
-0.031646728515625,
0.0011692047119140625,
0.0191192626953125,
-0.002948760986328125,
0.01873779296875
] |
36ce321996250504210682b694113f611631fe00
|
Wordpress Stackexchange
Q: Is there a browser plugin or method to find which php template an item is coming from? Is there a browser plugin or method to find which php template an item is coming from?
A: The Debug Bar together with the Debug-Bar-Extender will show you what template file is being used.
|
Q: Is there a browser plugin or method to find which php template an item is coming from? Is there a browser plugin or method to find which php template an item is coming from?
A: The Debug Bar together with the Debug-Bar-Extender will show you what template file is being used.
A: You could just add an HTML comment into each template file and then view source to see where the content you are trying to track down it is coming from.
A: the method I've been using is to find the item - such as a page title or whatever by using firebug extension for firefox. This will usually result in finding the related css class or id name for that item/element.
Then in dreamweaver I use the search function to find that class name from all of the files in the wordpress wp-content folder. Not sure of other programs like dreamweaver that have this search function but surely they exist.
I just wish there was a browser add on that would do for the php files what firebug does for css & html
A: The Query Monitor plugin is a very powerful tool for doing this. It shows the template and the queries and hooks the page generates; plus their load order, priority and whether it's core, parent theme, child theme or plugin. Very handle to have in your toolbox!
In WP Cli:
wp plugin install query-monitor --activate
On the repo: http://wordpress.org/plugins/query-monitor/
|
wordpress
|
{
"language": "en",
"length": 245,
"provenance": "stackexchange_00019.jsonl.gz:408390",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14043"
}
|
[
0.0177459716796875,
0.01473236083984375,
-0.0279388427734375,
-0.01125335693359375,
0.0032520294189453125,
-0.0114593505859375,
-0.01016998291015625,
-0.02679443359375,
0.0021800994873046875,
0.01441192626953125,
0.018463134765625,
-0.0184478759765625,
-0.040496826171875,
-0.04913330078125,
-0.00449371337890625,
-0.0283355712890625,
0.0280303955078125,
-0.00797271728515625,
0.0271453857421875,
-0.0050506591796875,
-0.0002956390380859375,
0.0179901123046875,
0.01473236083984375,
0.088134765625,
0.009857177734375,
-0.020111083984375,
0.065673828125,
0.022491455078125,
0.0126953125,
-0.007587432861328125,
0.0223541259765625,
-0.0290985107421875,
0.0175628662109375,
0.040557861328125,
-0.045654296875,
-0.01482391357421875,
0.0041351318359375,
0.0129852294921875,
0.004405975341796875,
0.0135040283203125,
0.0309600830078125,
-0.01538848876953125,
0.01092529296875,
0.0272674560546875,
-0.0029239654541015625,
-0.0343017578125,
0.050140380859375,
-0.043304443359375,
-0.0017633438110351562,
0.029296875,
-0.00289154052734375,
-0.04718017578125,
-0.003719329833984375,
0.0333251953125,
-0.002155303955078125,
-0.0179595947265625,
-0.006267547607421875,
0.0281219482421875,
0.0216827392578125,
0.00565338134765625,
-0.0260009765625,
0.00875091552734375,
0.00821685791015625,
-0.01934814453125,
-0.0177001953125,
0.0156707763671875,
0.0126800537109375,
0.0205078125,
-0.0101165771484375,
-0.0347900390625,
-0.01091766357421875,
-0.02142333984375,
0.0234222412109375,
0.007640838623046875,
-0.010955810546875,
-0.040252685546875,
0.0305938720703125,
-0.0236053466796875,
0.005016326904296875,
0.0010099411010742188,
0.01366424560546875,
-0.041351318359375,
-0.01812744140625,
-0.020751953125,
-0.0111236572265625,
-0.006214141845703125,
0.00829315185546875,
0.00337982177734375,
-0.0196533203125,
-0.033416748046875,
-0.02716064453125,
-0.0013170242309570312,
-0.01395416259765625,
-0.0167083740234375,
-0.038177490234375,
-0.0138092041015625,
0.00713348388671875,
0.03607177734375,
-0.01332855224609375,
-0.005146026611328125,
-0.03546142578125,
0.0006594657897949219,
-0.044097900390625,
-0.0013990402221679688,
-0.0205841064453125,
0.032318115234375,
0.01983642578125,
0.0162200927734375,
0.0218658447265625,
0.022125244140625,
0.01355743408203125,
0.0205535888671875,
-0.0222015380859375,
-0.039031982421875,
-0.006122589111328125,
0.050750732421875,
-0.018951416015625,
0.0009140968322753906,
0.01416778564453125,
0.0220794677734375,
-0.016815185546875,
0.007633209228515625,
0.06103515625,
0.0035076141357421875,
-0.0221405029296875,
-0.0152435302734375,
-0.00838470458984375,
-0.051849365234375,
-0.0163726806640625,
0.0066986083984375,
0.00753021240234375,
0.0286407470703125,
0.008575439453125,
-0.003162384033203125,
-0.039154052734375,
-0.004550933837890625,
-0.005832672119140625,
0.0191192626953125,
0.0131683349609375,
-0.046417236328125,
0.0447998046875,
0.0034332275390625,
0.0017995834350585938,
0.020233154296875,
-0.0144195556640625,
-0.03826904296875,
0.00580596923828125,
0.04693603515625,
-0.002147674560546875,
0.0149383544921875,
0.0009984970092773438,
0.01523590087890625,
0.01369476318359375,
0.010284423828125,
0.04022216796875,
-0.0106201171875,
0.04803466796875,
-0.0242462158203125,
-0.006717681884765625,
-0.017578125,
-0.0240631103515625,
-0.0108795166015625,
0.0008707046508789062,
-0.048614501953125,
-0.05108642578125,
0.0206756591796875,
-0.01285552978515625,
0.0022792816162109375,
0.02508544921875,
-0.0018720626831054688,
0.00428009033203125,
-0.002841949462890625,
0.052398681640625,
-0.0046539306640625,
-0.01457977294921875,
0.0007305145263671875,
-0.013214111328125,
-0.01025390625,
0.01641845703125,
0.019073486328125,
-0.01087188720703125,
-0.026336669921875,
-0.01092529296875,
0.0164794921875,
-0.0792236328125,
0.049072265625,
-0.003742218017578125,
0.055511474609375,
0.0245819091796875,
-0.009033203125,
0.06884765625,
0.0097808837890625,
-0.020782470703125,
0.0254058837890625,
0.0018329620361328125,
-0.0006661415100097656,
-0.0262908935546875,
0.0304718017578125,
-0.015625,
-0.05023193359375,
-0.0335693359375,
0.0206146240234375,
-0.00391387939453125,
0.0136260986328125,
-0.05096435546875,
-0.0039215087890625,
-0.01934814453125,
0.03741455078125,
0.044525146484375,
0.04388427734375,
-0.0152435302734375,
0.04638671875,
-0.02459716796875,
-0.042877197265625,
-0.0255126953125,
0.0238800048828125,
-0.01824951171875,
0.0037784576416015625,
0.01107025146484375,
-0.00995635986328125,
0.01320648193359375,
0.0247039794921875,
-0.0088653564453125,
-0.0093536376953125,
-0.0161895751953125,
0.052459716796875,
-0.049774169921875,
0.03363037109375,
-0.0199127197265625,
0.049713134765625,
-0.0205535888671875,
0.0026264190673828125,
-0.0323486328125,
0.007190704345703125,
-0.007373809814453125,
-0.0143585205078125,
-0.004749298095703125,
-0.087890625,
0.032257080078125,
0.046234130859375,
0.03472900390625,
0.03924560546875,
-0.0036334991455078125,
-0.006206512451171875,
0.044830322265625,
-0.059539794921875,
0.000362396240234375,
-0.010162353515625,
0.0176849365234375,
0.05206298828125,
-0.054718017578125,
-0.01235198974609375,
0.0264434814453125,
0.003345489501953125,
-0.018707275390625,
0.020263671875,
0.01250457763671875,
-0.0027923583984375,
-0.02862548828125,
0.07421875,
-0.029144287109375,
0.051239013671875,
0.023040771484375,
0.0006241798400878906,
0.0426025390625,
-0.0059967041015625,
0.04925537109375,
0.049896240234375,
-0.0126190185546875,
-0.0069427490234375,
-0.00391387939453125,
0.005367279052734375,
-0.0005159378051757812,
0.051361083984375,
0.0335693359375,
0.07464599609375,
-0.03125,
-0.04010009765625,
0.033233642578125,
0.0511474609375,
-0.034515380859375,
0.023651123046875,
-0.0190277099609375,
-0.021026611328125,
-0.05303955078125,
-0.07073974609375,
0.0164337158203125,
-0.00780487060546875,
-0.0011911392211914062,
0.021148681640625,
0.032440185546875,
0.045074462890625,
-0.0182952880859375,
0.0460205078125,
-0.00606536865234375,
0.0004112720489501953,
0.060211181640625,
-0.0011720657348632812,
0.0231170654296875,
-0.022064208984375,
0.0164642333984375,
0.032623291015625,
-0.002429962158203125,
-0.024505615234375,
-0.0084228515625,
0.005207061767578125,
0.0127716064453125,
-0.01143646240234375,
-0.03912353515625,
-0.0283050537109375,
-0.039886474609375,
-0.013641357421875,
0.0116424560546875,
0.0010538101196289062,
0.0009260177612304688,
-0.04229736328125,
-0.0204315185546875,
-0.0162353515625,
-0.105712890625,
-0.07000732421875,
-0.0219573974609375,
-0.0218048095703125,
-0.03863525390625,
-0.0187530517578125,
-0.01220703125,
0.0162506103515625,
-0.01093292236328125,
-0.00970458984375,
0.0574951171875,
-0.0650634765625,
-0.062286376953125,
-0.0628662109375,
-0.07489013671875,
-0.0212860107421875,
0.01258087158203125,
-0.019195556640625,
0.007396697998046875,
0.0169677734375,
-0.00762939453125,
-0.03717041015625,
-0.0086669921875,
0.0019779205322265625,
0.011505126953125,
-0.00875091552734375,
0.002742767333984375,
-0.0173492431640625,
-0.031280517578125,
0.027740478515625,
-0.045989990234375,
-0.018829345703125,
0.0150299072265625,
-0.023681640625,
-0.0261993408203125,
-0.044464111328125,
-0.0207061767578125,
0.007694244384765625,
0.0301055908203125,
-0.056671142578125,
-0.021026611328125,
-0.0828857421875,
-0.01904296875,
0.025054931640625,
-0.033294677734375,
0.037078857421875,
0.0257110595703125,
-0.041473388671875,
0.0196685791015625,
-0.0241241455078125,
0.0592041015625,
0.01873779296875,
-0.0255889892578125,
-0.0267181396484375,
0.04058837890625,
0.0235137939453125,
0.06329345703125,
-0.0143890380859375,
0.0219573974609375,
-0.03228759765625,
0.01849365234375,
-0.005077362060546875,
-0.01338958740234375,
0.02996826171875,
-0.0343017578125,
0.0163116455078125,
-0.00438690185546875,
0.022491455078125,
0.0260009765625,
0.06707763671875,
-0.0286407470703125,
-0.0361328125,
-0.01483917236328125,
0.083251953125,
-0.00043582916259765625,
-0.0269012451171875,
0.00501251220703125,
-0.010009765625,
0.0261688232421875,
0.023345947265625,
-0.041015625,
-0.02752685546875,
-0.06390380859375,
0.007442474365234375,
0.00533294677734375,
-0.042022705078125,
-0.0009703636169433594,
0.01038360595703125,
-0.035400390625,
-0.0273895263671875,
0.0260772705078125,
-0.0191192626953125,
0.0390625,
-0.029632568359375,
0.04376220703125,
-0.0477294921875,
0.0018854141235351562,
-0.034149169921875,
-0.04974365234375,
-0.01029205322265625,
-0.0567626953125,
0.059967041015625,
0.0491943359375,
-0.04803466796875,
0.007843017578125,
0.045166015625,
0.00009500980377197266,
0.00002086162567138672,
0.0203704833984375,
0.006343841552734375,
0.0303802490234375,
0.00348663330078125,
0.009918212890625,
-0.0123138427734375,
-0.030792236328125,
-0.0286407470703125,
-0.0364990234375,
0.043243408203125,
0.00705718994140625,
0.01056671142578125,
0.0367431640625,
-0.01210784912109375,
-0.029876708984375,
-0.0159912109375,
0.0017194747924804688,
0.0015134811401367188,
0.0030498504638671875,
-0.0170745849609375,
-0.001018524169921875,
-0.036224365234375,
0.051177978515625,
0.0225372314453125,
-0.01143646240234375,
0.0029315948486328125,
0.061279296875,
0.01435089111328125,
-0.032806396484375,
-0.037322998046875,
0.0158538818359375,
0.050048828125,
0.046966552734375,
0.01593017578125,
0.0250396728515625,
-0.039276123046875,
0.035430908203125,
0.0251617431640625,
0.0308380126953125,
-0.051055908203125,
0.048126220703125,
-0.005214691162109375,
-0.0286865234375,
0.04937744140625,
0.00750732421875,
-0.01470947265625,
0.0177001953125,
-0.004093170166015625,
0.00339508056640625,
-0.01629638671875,
0.00316619873046875,
-0.0165557861328125,
0.0135955810546875,
-0.007129669189453125,
-0.0245819091796875,
0.00885772705078125,
-0.0095672607421875,
0.041015625,
0.031585693359375,
-0.01617431640625,
0.0254669189453125,
0.033660888671875,
-0.021636962890625,
-0.0256805419921875,
0.023590087890625,
-0.0107574462890625,
0.0306549072265625,
-0.0245513916015625,
-0.0279541015625,
-0.049774169921875,
0.0140228271484375,
-0.017303466796875,
-0.004917144775390625,
-0.047698974609375,
-0.035247802734375,
0.0128021240234375,
-0.027099609375,
0.007480621337890625,
-0.018096923828125,
0.0308685302734375,
0.0025119781494140625,
-0.01261138916015625,
0.0255126953125,
0.004489898681640625,
-0.033172607421875,
-0.01763916015625,
-0.000766754150390625,
-0.0236968994140625,
-0.0146636962890625,
-0.01678466796875,
0.016143798828125,
-0.0634765625,
-0.005870819091796875,
0.0185546875,
0.002513885498046875,
-0.01399993896484375,
0.0016698837280273438,
0.0265045166015625,
-0.00997161865234375,
0.049896240234375,
-0.06024169921875,
0.040283203125,
-0.036895751953125,
-0.015716552734375,
0.02685546875,
0.047210693359375,
0.0021915435791015625,
-0.0132904052734375,
0.007659912109375,
-0.0177764892578125,
-0.023681640625,
0.009429931640625,
-0.01219940185546875,
-0.03363037109375,
-0.0171661376953125,
-0.002872467041015625,
-0.0032138824462890625,
-0.00634002685546875,
-0.0036983489990234375,
-0.007083892822265625,
-0.01534271240234375,
-0.0005784034729003906,
0.0113372802734375,
-0.095947265625,
0.036285400390625,
0.059295654296875,
-0.035064697265625,
-0.0135040283203125,
0.033935546875,
-0.0518798828125,
-0.010406494140625,
-0.02374267578125,
-0.02325439453125,
0.044464111328125,
-0.057464599609375,
0.019622802734375,
-0.0152587890625,
0.01910400390625,
-0.0191192626953125,
0.02197265625,
0.04315185546875,
0.040069580078125,
-0.04620361328125,
-0.00583648681640625,
-0.055755615234375,
-0.04022216796875,
-0.043304443359375,
-0.040008544921875,
-0.05511474609375,
0.0178375244140625,
-0.02850341796875,
0.004817962646484375,
-0.0107574462890625,
0.03631591796875,
0.017852783203125,
0.04351806640625,
-0.0267791748046875,
0.050384521484375,
-0.0273284912109375,
0.04498291015625,
-0.00519561767578125,
0.0244140625,
-0.01788330078125,
-0.004673004150390625,
-0.0255889892578125,
0.01445770263671875,
0.005298614501953125,
0.00766754150390625,
-0.0006680488586425781,
-0.01038360595703125,
0.00627899169921875,
-0.035736083984375,
0.02679443359375,
0.002838134765625,
-0.00484466552734375,
-0.020751953125,
0.0139617919921875,
-0.0238037109375,
0.07794189453125,
-0.040069580078125,
-0.039154052734375,
0.013214111328125,
-0.01515960693359375,
-0.034820556640625,
-0.0216522216796875,
0.0123138427734375,
-0.001277923583984375,
0.01134490966796875,
-0.025390625,
-0.006908416748046875,
-0.0183563232421875,
0.06329345703125,
0.05615234375,
-0.004547119140625,
0.0272216796875,
0.034576416015625,
0.0164031982421875,
-0.005889892578125,
0.0254669189453125,
0.019927978515625,
-0.04241943359375,
0.050323486328125,
0.01145172119140625,
-0.01373291015625,
0.041046142578125,
-0.036376953125,
0.0183258056640625,
0.037384033203125,
0.0192413330078125,
-0.07122802734375,
0.0026683807373046875,
-0.0038318634033203125,
-0.00653839111328125,
-0.01157379150390625,
-0.021026611328125,
0.00665283203125,
-0.044830322265625,
0.08843994140625,
0.00841522216796875,
0.00293731689453125,
0.0298309326171875,
-0.035980224609375,
0.00484466552734375,
-0.025115966796875,
0.059844970703125,
0.00823974609375,
-0.04376220703125,
0.0173797607421875,
0.016143798828125,
0.0134429931640625,
-0.054473876953125,
-0.0023288726806640625,
0.0211029052734375,
0.01129913330078125,
-0.0017194747924804688,
0.08831787109375,
-0.0247802734375,
0.047637939453125,
-0.003326416015625,
0.034088134765625,
0.07080078125,
0.0379638671875,
0.0248870849609375,
-0.023101806640625,
0.0274658203125,
0.0100860595703125,
0.01031494140625,
-0.01849365234375,
0.005313873291015625,
0.0170440673828125,
-0.0230255126953125,
0.01413726806640625,
-0.0084381103515625,
-0.0135040283203125,
-0.0057525634765625,
0.044952392578125,
0.0670166015625,
0.0032596588134765625,
-0.043914794921875,
0.036956787109375,
0.023162841796875,
-0.0243377685546875,
0.016326904296875,
-0.0204925537109375,
-0.031707763671875,
0.0185546875,
-0.008148193359375,
0.007228851318359375,
0.04351806640625,
0.041595458984375,
-0.051055908203125,
0.021026611328125,
0.0266571044921875,
0.01904296875,
0.032135009765625,
-0.013580322265625,
-0.03948974609375,
-0.038665771484375,
-0.020050048828125,
0.04681396484375,
-0.0110626220703125,
0.052490234375,
-0.015869140625,
-0.0102691650390625,
0.02874755859375,
0.03497314453125,
-0.0007877349853515625,
-0.00357818603515625,
-0.00217437744140625,
0.0223388671875,
0.04742431640625,
0.0190887451171875,
0.00982666015625,
0.01015472412109375,
0.035552978515625,
0.0172271728515625,
0.0430908203125,
-0.028656005859375,
0.0399169921875,
-0.059356689453125,
0.04644775390625,
0.045745849609375,
0.010711669921875,
0.0033740997314453125,
0.00543212890625,
-0.01274871826171875,
-0.035247802734375,
0.0096588134765625,
0.024169921875,
0.0037593841552734375,
0.0307159423828125,
-0.0010480880737304688,
0.020355224609375,
-0.054443359375,
-0.041259765625,
-0.0149688720703125,
0.032501220703125,
-0.0035610198974609375,
-0.005645751953125,
0.013214111328125,
0.01300811767578125,
-0.0007696151733398438,
-0.0198211669921875,
-0.007083892822265625,
0.0259246826171875,
-0.02655029296875,
0.01190185546875,
-0.027801513671875,
0.017242431640625,
-0.06707763671875,
-0.02459716796875,
0.026214599609375,
0.0333251953125,
-0.0132293701171875,
-0.06024169921875,
0.005489349365234375,
0.01091766357421875,
0.003383636474609375,
0.0249176025390625,
0.01232147216796875,
-0.049713134765625,
0.03271484375,
-0.002353668212890625,
-0.03314208984375,
0.0016832351684570312,
0.01263427734375,
0.009429931640625,
-0.01092529296875,
0.0251007080078125,
-0.02313232421875,
-0.0277557373046875,
0.0450439453125,
0.002712249755859375,
0.03411865234375,
-0.0208282470703125,
0.0648193359375,
-0.0567626953125,
-0.0125579833984375,
-0.053375244140625,
0.04339599609375,
-0.01212310791015625,
0.0755615234375,
-0.046875,
0.037567138671875,
-0.0225677490234375,
0.034332275390625,
0.0382080078125,
0.0253753662109375,
0.033721923828125,
0.0227813720703125,
0.0128173828125,
0.0158538818359375,
0.01026153564453125,
-0.01366424560546875,
0.058197021484375,
-0.07012939453125,
0.028717041015625,
0.006290435791015625,
-0.0210113525390625,
0.0106353759765625,
-0.078857421875,
0.08917236328125,
-0.0307159423828125,
0.02032470703125,
-0.0007619857788085938,
-0.0197601318359375,
0.03436279296875,
-0.0266571044921875,
0.0150909423828125,
-0.00341033935546875,
-0.042083740234375,
-0.00231170654296875,
-0.00356292724609375,
-0.04400634765625,
0.0005445480346679688,
0.042083740234375,
-0.03387451171875,
0.038116455078125,
0.03509521484375,
0.031097412109375,
-0.038330078125,
-0.0308990478515625,
0.04876708984375,
-0.028778076171875,
0.00927734375,
0.020538330078125,
-0.0181884765625,
-0.028076171875,
-0.02593994140625,
0.06024169921875,
0.053955078125,
0.003520965576171875,
0.0033721923828125,
0.06707763671875,
-0.01509857177734375,
-0.01482391357421875,
-0.0062408447265625,
-0.032135009765625,
0.05938720703125,
-0.00689697265625,
-0.0355224609375,
-0.00489044189453125,
-0.07904052734375,
-0.00035071372985839844,
0.033416748046875,
-0.0006155967712402344,
-0.0008168220520019531,
0.002197265625,
0.0201263427734375,
0.007099151611328125,
0.04168701171875,
-0.0182952880859375,
-0.0428466796875,
-0.00812530517578125,
-0.004657745361328125,
0.005847930908203125,
0.054901123046875,
0.0762939453125,
0.05224609375,
0.03289794921875,
0.023040771484375,
0.007625579833984375,
-0.01171875,
0.0194244384765625,
0.035736083984375,
-0.037109375,
-0.048492431640625,
0.007228851318359375,
-0.0028285980224609375,
0.0236663818359375,
0.0122528076171875,
0.06463623046875,
0.016265869140625,
0.01934814453125,
0.051483154296875,
-0.003108978271484375,
0.044342041015625,
-0.0192413330078125,
0.00720977783203125,
0.000537872314453125,
0.030517578125,
0.01161956787109375,
-0.04022216796875,
-0.002269744873046875,
-0.03009033203125,
-0.0219268798828125,
0.01445770263671875,
-0.016632080078125,
-0.033782958984375,
0.0008740425109863281,
-0.015167236328125,
0.044189453125,
0.0015201568603515625,
-0.026336669921875,
-0.006855010986328125,
-0.035064697265625,
0.006866455078125,
0.0275115966796875,
0.00791168212890625,
0.01024627685546875,
0.0482177734375,
-0.052398681640625,
-0.0182647705078125,
-0.01538848876953125,
0.0016374588012695312,
-0.0185546875,
0.04736328125,
0.058135986328125,
-0.05206298828125,
0.031097412109375,
0.036041259765625,
0.0516357421875,
0.092529296875,
-0.00922393798828125,
-0.0297088623046875,
0.032318115234375,
-0.00649261474609375,
0.0041961669921875,
-0.00745391845703125,
-0.0162811279296875,
-0.01218414306640625,
0.0027942657470703125,
0.02667236328125,
-0.0269927978515625,
-0.003879547119140625,
-0.045623779296875,
-0.1307373046875,
0.037872314453125,
-0.015045166015625,
-0.0511474609375,
-0.033233642578125,
0.010467529296875,
0.0169677734375,
-0.041656494140625,
-0.0343017578125,
0.00122833251953125,
-0.0234375,
0.03216552734375,
-0.0038166046142578125,
-0.0008020401000976562,
0.045440673828125,
-0.039276123046875,
-0.030364990234375,
-0.01192474365234375,
-0.005527496337890625,
0.001041412353515625,
-0.030181884765625,
0.0077667236328125,
0.0061492919921875,
0.0038166046142578125,
-0.0287628173828125,
0.0002155303955078125,
0.019378662109375,
0.04388427734375,
0.00521087646484375,
0.040191650390625,
-0.032867431640625,
0.04193115234375,
0.04888916015625,
0.091552734375,
0.0246124267578125,
-0.074951171875,
0.030548095703125,
-0.03411865234375,
-0.08544921875,
-0.00250244140625,
0.0355224609375,
-0.04547119140625,
0.01294708251953125,
0.014678955078125,
-0.031890869140625,
-0.01093292236328125,
0.044830322265625,
-0.04547119140625,
-0.00006258487701416016,
0.005031585693359375,
-0.037200927734375,
-0.01110076904296875,
-0.005802154541015625,
0.0699462890625,
-0.045928955078125,
0.0139923095703125,
0.00110626220703125,
0.0158843994140625,
0.03851318359375,
-0.0291595458984375,
0.041778564453125,
0.0210418701171875,
-0.05230712890625,
0.018890380859375,
0.0180206298828125,
0.0194854736328125,
-0.05450439453125,
-0.04449462890625,
0.01079559326171875,
0.02764892578125,
-0.0113372802734375,
0.0221710205078125,
-0.02630615234375,
0.052032470703125,
-0.0157928466796875,
0.04986572265625,
0.0117034912109375,
-0.00876617431640625,
-0.0031070709228515625,
0.04132080078125,
-0.01207733154296875,
-0.031280517578125,
-0.00893402099609375,
-0.02593994140625,
0.0027751922607421875,
0.03802490234375,
0.01184844970703125,
-0.055389404296875,
0.045654296875,
0.042022705078125,
0.0203704833984375,
0.0200958251953125
] |
28b13c6686408817cb6572243d28eca6f1141d42
|
Wordpress Stackexchange
Q: How to hide/redirect the author page I have a website where I let people subscribe. I would like to only show the author page for actual authors who have written a post. I wrote this code that checks for post the problem is I can't use a wp_redirect or include a template that uses it because then I get everyones favorite "cannot redifine headers header" message. I could display a "User has no post message but I think redirecting them to the main author page is a better option.
if ( is_author() ) : ?>
<?php $id = get_query_var( 'author' );
$post_count = get_usernumposts($id);
if($post_count <= 0){
//This line could also be wp_redirect
include( STYLESHEETPATH .'/author-redirect.php');
exit;
}
endif;?>
Thanks
A: You can do this at an earlier moment by hooking into the right action, like template_redirect, which fires right before the template will be displayed.
add_action( 'template_redirect', 'wpse14047_template_redirect' );
function wpse14047_template_redirect()
{
if ( is_author() ) {
$id = get_query_var( 'author' );
// get_usernumposts() is deprecated since 3.0
$post_count = count_user_posts( $id );
if ( $post_count <= 0 ) {
//This line could also be wp_redirect
include( STYLESHEETPATH .'/author-redirect.php' );
exit;
}
}
}
|
Q: How to hide/redirect the author page I have a website where I let people subscribe. I would like to only show the author page for actual authors who have written a post. I wrote this code that checks for post the problem is I can't use a wp_redirect or include a template that uses it because then I get everyones favorite "cannot redifine headers header" message. I could display a "User has no post message but I think redirecting them to the main author page is a better option.
if ( is_author() ) : ?>
<?php $id = get_query_var( 'author' );
$post_count = get_usernumposts($id);
if($post_count <= 0){
//This line could also be wp_redirect
include( STYLESHEETPATH .'/author-redirect.php');
exit;
}
endif;?>
Thanks
A: You can do this at an earlier moment by hooking into the right action, like template_redirect, which fires right before the template will be displayed.
add_action( 'template_redirect', 'wpse14047_template_redirect' );
function wpse14047_template_redirect()
{
if ( is_author() ) {
$id = get_query_var( 'author' );
// get_usernumposts() is deprecated since 3.0
$post_count = count_user_posts( $id );
if ( $post_count <= 0 ) {
//This line could also be wp_redirect
include( STYLESHEETPATH .'/author-redirect.php' );
exit;
}
}
}
|
wordpress
|
{
"language": "en",
"length": 196,
"provenance": "stackexchange_00019.jsonl.gz:408392",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14047"
}
|
[
0.042327880859375,
0.026275634765625,
0.010345458984375,
-0.01396942138671875,
0.0172576904296875,
-0.0264434814453125,
-0.0017786026000976562,
-0.0670166015625,
0.002498626708984375,
0.0235748291015625,
-0.0296478271484375,
0.00981903076171875,
-0.01509857177734375,
-0.005687713623046875,
-0.023468017578125,
-0.033111572265625,
0.036346435546875,
-0.032623291015625,
0.0312347412109375,
0.00146484375,
0.0156402587890625,
0.019134521484375,
0.053924560546875,
0.0005793571472167969,
-0.00800323486328125,
-0.0309295654296875,
0.109619140625,
-0.041107177734375,
0.00429534912109375,
-0.041900634765625,
0.0010309219360351562,
0.01529693603515625,
-0.001140594482421875,
0.048675537109375,
-0.05157470703125,
0.038330078125,
-0.047210693359375,
0.049774169921875,
0.0205841064453125,
-0.00043129920959472656,
0.016632080078125,
-0.005779266357421875,
-0.056365966796875,
-0.02313232421875,
-0.033966064453125,
-0.03192138671875,
0.0117645263671875,
-0.004154205322265625,
0.020965576171875,
0.06170654296875,
-0.0029735565185546875,
0.040496826171875,
-0.0032253265380859375,
0.02606201171875,
-0.000018596649169921875,
0.0225830078125,
0.0238494873046875,
-0.002765655517578125,
0.043670654296875,
-0.043121337890625,
-0.04461669921875,
-0.01959228515625,
0.03753662109375,
-0.01316070556640625,
0.00750732421875,
0.005901336669921875,
0.0015735626220703125,
0.03692626953125,
-0.0089874267578125,
-0.007076263427734375,
-0.0178680419921875,
-0.01103973388671875,
-0.01094818115234375,
-0.00511932373046875,
-0.05352783203125,
-0.0428466796875,
0.02789306640625,
-0.06585693359375,
0.00847625732421875,
0.0133819580078125,
-0.01062774658203125,
-0.0067138671875,
-0.023681640625,
-0.0198211669921875,
0.026580810546875,
0.03363037109375,
-0.019439697265625,
-0.0182037353515625,
-0.04083251953125,
-0.003246307373046875,
-0.02716064453125,
-0.01296234130859375,
-0.0267486572265625,
-0.004032135009765625,
-0.0020732879638671875,
-0.0290374755859375,
0.04345703125,
0.09881591796875,
-0.048675537109375,
-0.0345458984375,
-0.01523590087890625,
-0.0103607177734375,
-0.056884765625,
-0.0259246826171875,
0.00714111328125,
0.089599609375,
0.01473236083984375,
0.032867431640625,
0.0179443359375,
0.00014984607696533203,
0.0279998779296875,
-0.053314208984375,
-0.037628173828125,
0.0029449462890625,
-0.04058837890625,
0.00579833984375,
-0.06768798828125,
-0.0236663818359375,
-0.0214691162109375,
-0.0027675628662109375,
-0.014190673828125,
-0.0102081298828125,
0.031524658203125,
-0.03912353515625,
0.01708984375,
-0.0284423828125,
-0.035675048828125,
-0.0008625984191894531,
0.0306854248046875,
0.0087738037109375,
-0.0225372314453125,
0.0095062255859375,
0.01441192626953125,
-0.0106048583984375,
-0.0186767578125,
-0.0185089111328125,
0.042236328125,
-0.0258331298828125,
-0.01531219482421875,
0.0015277862548828125,
-0.01470184326171875,
-0.0211334228515625,
-0.01422119140625,
-0.019622802734375,
0.0160675048828125,
0.037017822265625,
0.0265350341796875,
0.0001646280288696289,
-0.015838623046875,
-0.05224609375,
0.01186370849609375,
-0.032806396484375,
0.025146484375,
-0.007450103759765625,
0.014007568359375,
0.0018987655639648438,
-0.00897979736328125,
0.01395416259765625,
-0.0218353271484375,
0.009613037109375,
0.03314208984375,
-0.007686614990234375,
0.0002899169921875,
-0.022216796875,
-0.06317138671875,
0.007190704345703125,
-0.0340576171875,
-0.0224609375,
0.032684326171875,
0.01262664794921875,
0.038787841796875,
-0.0204315185546875,
-0.01222991943359375,
0.031494140625,
0.005275726318359375,
0.0190277099609375,
0.006252288818359375,
0.033203125,
-0.0014324188232421875,
0.05145263671875,
0.01207733154296875,
-0.03125,
0.026092529296875,
-0.0142974853515625,
-0.07220458984375,
0.0965576171875,
-0.00539398193359375,
0.075927734375,
0.01552581787109375,
-0.025360107421875,
0.059478759765625,
0.05340576171875,
-0.036468505859375,
-0.005985260009765625,
-0.0078277587890625,
-0.0194091796875,
0.016082763671875,
-0.017547607421875,
0.00911712646484375,
0.035736083984375,
0.02001953125,
0.00685882568359375,
0.003475189208984375,
0.0175628662109375,
-0.0404052734375,
0.0261077880859375,
-0.0202789306640625,
0.0138702392578125,
0.029144287109375,
0.061981201171875,
0.004299163818359375,
0.0110015869140625,
-0.0361328125,
0.040435791015625,
0.008209228515625,
0.006458282470703125,
0.00960540771484375,
0.01407623291015625,
-0.0177764892578125,
0.0046234130859375,
0.0027866363525390625,
-0.020172119140625,
0.0015363693237304688,
0.046478271484375,
0.04083251953125,
-0.0266265869140625,
-0.006374359130859375,
-0.02911376953125,
0.01258087158203125,
-0.000009953975677490234,
-0.0293731689453125,
0.04632568359375,
0.053985595703125,
0.0208587646484375,
-0.0479736328125,
0.00807952880859375,
-0.0194854736328125,
-0.0189361572265625,
-0.01114654541015625,
0.0430908203125,
0.0386962890625,
-0.0005002021789550781,
-0.0140380859375,
-0.006866455078125,
0.042510986328125,
-0.043853759765625,
-0.00701141357421875,
0.0004265308380126953,
0.0239105224609375,
0.03643798828125,
-0.012176513671875,
-0.01151275634765625,
0.0233612060546875,
-0.072021484375,
0.0118865966796875,
0.056243896484375,
-0.022125244140625,
0.03192138671875,
-0.041473388671875,
-0.0193023681640625,
0.006237030029296875,
-0.0035305023193359375,
-0.004062652587890625,
-0.0178985595703125,
0.01568603515625,
-0.0311279296875,
-0.00566864013671875,
-0.0185394287109375,
-0.0292510986328125,
-0.02655029296875,
0.03173828125,
0.00875091552734375,
0.016357421875,
0.0033321380615234375,
-0.0227508544921875,
-0.0036640167236328125,
-0.034912109375,
0.015655517578125,
0.02496337890625,
-0.0033721923828125,
-0.020294189453125,
0.029144287109375,
-0.040069580078125,
-0.0204315185546875,
-0.0272064208984375,
-0.0242767333984375,
-0.0024261474609375,
0.002979278564453125,
0.022064208984375,
0.003910064697265625,
0.031768798828125,
0.028167724609375,
-0.0017919540405273438,
0.040985107421875,
-0.0118865966796875,
-0.0106201171875,
0.020355224609375,
-0.052947998046875,
0.06201171875,
-0.02978515625,
0.032135009765625,
0.06719970703125,
-0.0143585205078125,
0.02880859375,
0.01227569580078125,
-0.0093536376953125,
-0.009063720703125,
0.018463134765625,
-0.0009136199951171875,
-0.019287109375,
-0.04254150390625,
-0.0098114013671875,
0.01488494873046875,
0.021942138671875,
0.004352569580078125,
-0.049407958984375,
-0.00246429443359375,
-0.004302978515625,
-0.078857421875,
-0.0635986328125,
0.0269622802734375,
-0.06634521484375,
-0.0172271728515625,
-0.0186767578125,
-0.045166015625,
-0.00913238525390625,
0.002880096435546875,
-0.00939178466796875,
-0.031402587890625,
-0.00394439697265625,
-0.08843994140625,
-0.0643310546875,
-0.08209228515625,
0.011199951171875,
-0.01491546630859375,
0.0248260498046875,
-0.005870819091796875,
0.02752685546875,
-0.0192108154296875,
-0.060333251953125,
-0.0198822021484375,
0.045318603515625,
0.0250244140625,
0.0101165771484375,
-0.044281005859375,
0.0284423828125,
-0.0014410018920898438,
0.026031494140625,
0.0117950439453125,
-0.02203369140625,
0.0062103271484375,
-0.037689208984375,
0.0015249252319335938,
-0.0023632049560546875,
0.03192138671875,
0.043182373046875,
-0.004047393798828125,
-0.002391815185546875,
0.04876708984375,
-0.03076171875,
-0.015838623046875,
-0.0273590087890625,
-0.0626220703125,
0.03668212890625,
0.04046630859375,
0.002094268798828125,
0.0006394386291503906,
-0.02374267578125,
0.06402587890625,
0.0601806640625,
-0.02001953125,
0.0174102783203125,
0.049713134765625,
0.0333251953125,
0.06591796875,
-0.044281005859375,
0.002384185791015625,
-0.0228271484375,
-0.022125244140625,
-0.0218048095703125,
-0.005275726318359375,
0.0077362060546875,
-0.0220489501953125,
-0.0036830902099609375,
-0.04803466796875,
0.050445556640625,
-0.00710296630859375,
-0.045989990234375,
-0.0190887451171875,
-0.02960205078125,
-0.004116058349609375,
0.049957275390625,
0.0131378173828125,
-0.0028972625732421875,
-0.007282257080078125,
-0.0029697418212890625,
-0.0214080810546875,
-0.00893402099609375,
-0.03375244140625,
0.0215606689453125,
-0.058807373046875,
0.01055145263671875,
-0.0103302001953125,
-0.0142059326171875,
-0.0216522216796875,
0.02850341796875,
-0.0243682861328125,
-0.0215301513671875,
0.01788330078125,
0.02252197265625,
-0.005702972412109375,
0.0181121826171875,
-0.0325927734375,
0.03143310546875,
-0.0115966796875,
-0.0269927978515625,
-0.07244873046875,
-0.01422119140625,
0.005199432373046875,
0.037078857421875,
-0.0226593017578125,
0.03363037109375,
-0.0290374755859375,
0.034942626953125,
0.0011577606201171875,
0.0021495819091796875,
-0.0229339599609375,
-0.002902984619140625,
-0.01009368896484375,
-0.00702667236328125,
-0.028900146484375,
-0.0028133392333984375,
-0.0011081695556640625,
0.0008454322814941406,
-0.0145263671875,
-0.0152130126953125,
-0.053558349609375,
-0.04547119140625,
0.01532745361328125,
-0.039642333984375,
-0.061553955078125,
-0.036041259765625,
0.00711822509765625,
0.0289459228515625,
-0.0205535888671875,
0.02862548828125,
-0.04486083984375,
-0.09161376953125,
0.053497314453125,
-0.021209716796875,
-0.0255584716796875,
-0.01006317138671875,
0.060638427734375,
0.040313720703125,
-0.01251983642578125,
0.0447998046875,
-0.019256591796875,
0.021087646484375,
0.0037746429443359375,
0.00933074951171875,
-0.00439453125,
-0.03790283203125,
0.06451416015625,
-0.00859832763671875,
-0.01959228515625,
-0.0077972412109375,
0.039947509765625,
-0.017059326171875,
-0.0443115234375,
0.0282745361328125,
-0.05224609375,
0.03668212890625,
0.040985107421875,
0.018585205078125,
-0.0182952880859375,
0.046630859375,
0.033416748046875,
-0.029052734375,
-0.0194244384765625,
-0.021209716796875,
-0.029876708984375,
-0.0015926361083984375,
0.03851318359375,
0.03204345703125,
0.032684326171875,
-0.00144195556640625,
0.022369384765625,
0.00838470458984375,
0.0108489990234375,
0.0193634033203125,
-0.0107574462890625,
-0.03155517578125,
0.04290771484375,
-0.0312347412109375,
-0.033477783203125,
0.04302978515625,
-0.0107269287109375,
0.07476806640625,
0.0213623046875,
-0.03570556640625,
0.016357421875,
-0.0243072509765625,
-0.017913818359375,
-0.018585205078125,
-0.018524169921875,
0.08685302734375,
0.03155517578125,
-0.01219940185546875,
-0.016998291015625,
-0.0513916015625,
0.005970001220703125,
-0.07452392578125,
0.003841400146484375,
-0.01224517822265625,
0.0032291412353515625,
0.007568359375,
0.09796142578125,
0.03216552734375,
0.034332275390625,
-0.037872314453125,
0.05145263671875,
0.025848388671875,
0.0146331787109375,
0.0108642578125,
0.0233154296875,
0.0010881423950195312,
-0.0167388916015625,
-0.006114959716796875,
-0.04351806640625,
0.0037708282470703125,
0.0223541259765625,
0.069580078125,
0.037567138671875,
-0.0076141357421875,
-0.0196533203125,
-0.0489501953125,
-0.0000033974647521972656,
0.031494140625,
0.00450897216796875,
-0.042327880859375,
-0.017578125,
-0.0006117820739746094,
0.010528564453125,
-0.0202789306640625,
-0.006633758544921875,
-0.0341796875,
-0.050323486328125,
-0.01500701904296875,
0.027008056640625,
-0.015899658203125,
-0.01279449462890625,
-0.0162811279296875,
-0.0181427001953125,
-0.0251312255859375,
-0.001922607421875,
-0.002780914306640625,
-0.0026760101318359375,
-0.0303955078125,
-0.00220489501953125,
0.041900634765625,
-0.016387939453125,
0.03533935546875,
-0.041961669921875,
-0.00168609619140625,
-0.0017518997192382812,
-0.007419586181640625,
0.091552734375,
0.05462646484375,
-0.060577392578125,
0.0274505615234375,
-0.032989501953125,
0.00494384765625,
0.0017337799072265625,
-0.025787353515625,
-0.0377197265625,
-0.01412200927734375,
-0.0011234283447265625,
-0.0013608932495117188,
0.0010023117065429688,
-0.016143798828125,
-0.00379180908203125,
0.034088134765625,
-0.001514434814453125,
0.01200103759765625,
0.00738525390625,
0.085205078125,
-0.022308349609375,
0.052825927734375,
0.0311431884765625,
0.06036376953125,
-0.03070068359375,
-0.0292816162109375,
-0.0018186569213867188,
-0.0009541511535644531,
-0.00514984130859375,
-0.01372528076171875,
0.029083251953125,
-0.038909912109375,
0.0164947509765625,
-0.0120391845703125,
-0.0126190185546875,
0.022003173828125,
0.00351715087890625,
-0.01551055908203125,
-0.05621337890625,
0.05645751953125,
0.01763916015625,
-0.033721923828125,
0.0096282958984375,
0.00420379638671875,
-0.002227783203125,
-0.004634857177734375,
-0.024383544921875,
0.02203369140625,
-0.0209197998046875,
-0.00787353515625,
-0.0233001708984375,
0.04571533203125,
0.0589599609375,
0.006748199462890625,
0.03460693359375,
0.0198822021484375,
0.01708984375,
0.009185791015625,
-0.022491455078125,
-0.00527191162109375,
0.005550384521484375,
0.047027587890625,
-0.004119873046875,
0.002849578857421875,
0.05615234375,
-0.0225677490234375,
-0.01300048828125,
0.03778076171875,
0.023773193359375,
-0.0433349609375,
-0.01300811767578125,
-0.00004076957702636719,
-0.01470947265625,
0.01103973388671875,
-0.0172882080078125,
-0.01242828369140625,
-0.007442474365234375,
0.07794189453125,
-0.0178070068359375,
-0.0023479461669921875,
0.051025390625,
0.0074005126953125,
-0.00908660888671875,
-0.0269317626953125,
0.03564453125,
0.0155181884765625,
-0.0256805419921875,
0.033599853515625,
0.0164947509765625,
0.01006317138671875,
-0.06085205078125,
0.005157470703125,
0.019989013671875,
0.0238494873046875,
-0.004329681396484375,
0.08270263671875,
-0.032257080078125,
0.052734375,
0.0094757080078125,
0.0369873046875,
0.029815673828125,
0.058807373046875,
0.0032825469970703125,
-0.0001862049102783203,
0.04632568359375,
-0.02569580078125,
-0.0284271240234375,
-0.043670654296875,
-0.015167236328125,
0.03521728515625,
-0.03271484375,
0.04241943359375,
-0.01004791259765625,
-0.0298614501953125,
-0.01523590087890625,
0.0487060546875,
0.09332275390625,
0.0006403923034667969,
-0.036590576171875,
0.03363037109375,
0.037353515625,
-0.0211181640625,
0.005199432373046875,
0.03509521484375,
-0.05029296875,
-0.055084228515625,
0.026580810546875,
-0.046722412109375,
-0.0194091796875,
-0.0008087158203125,
-0.0562744140625,
0.08758544921875,
-0.01549530029296875,
0.041961669921875,
0.01416778564453125,
0.02740478515625,
-0.0102081298828125,
0.0167388916015625,
-0.0391845703125,
0.0467529296875,
0.02142333984375,
0.05010986328125,
-0.0316162109375,
-0.01062774658203125,
0.0258941650390625,
0.047149658203125,
0.08013916015625,
0.0201873779296875,
-0.0189361572265625,
0.017578125,
0.036468505859375,
0.00087738037109375,
-0.04425048828125,
0.0439453125,
-0.0234222412109375,
-0.0104522705078125,
0.00917816162109375,
-0.05853271484375,
0.03155517578125,
-0.045501708984375,
-0.01129913330078125,
-0.0195159912109375,
0.01540374755859375,
0.0181884765625,
-0.026153564453125,
-0.02667236328125,
-0.058197021484375,
-0.004108428955078125,
0.04937744140625,
-0.0020465850830078125,
-0.0028667449951171875,
0.0289306640625,
0.057830810546875,
-0.06951904296875,
0.010009765625,
-0.043670654296875,
0.060028076171875,
0.0154571533203125,
0.0171356201171875,
0.006031036376953125,
0.01131439208984375,
0.050201416015625,
-0.01389312744140625,
-0.00643157958984375,
0.018341064453125,
0.003936767578125,
0.048736572265625,
0.0116424560546875,
0.01641845703125,
-0.0204315185546875,
0.0101776123046875,
-0.00033402442932128906,
0.036102294921875,
-0.037261962890625,
0.003078460693359375,
-0.00476837158203125,
-0.0021686553955078125,
-0.0018062591552734375,
-0.01140594482421875,
0.020294189453125,
0.0443115234375,
0.0172882080078125,
-0.054718017578125,
-0.00801849365234375,
0.03875732421875,
0.007648468017578125,
0.00446319580078125,
-0.0027008056640625,
-0.01322174072265625,
0.00974273681640625,
-0.04998779296875,
-0.023834228515625,
0.01148223876953125,
0.059661865234375,
0.033966064453125,
0.040618896484375,
0.0312347412109375,
-0.03546142578125,
-0.0183258056640625,
-0.0027008056640625,
0.0090179443359375,
0.01056671142578125,
-0.041656494140625,
-0.01177978515625,
0.0357666015625,
0.049560546875,
0.0004241466522216797,
0.00031828880310058594,
-0.01093292236328125,
0.0051116943359375,
0.0026226043701171875,
-0.015289306640625,
0.0204620361328125,
-0.0273895263671875,
0.0269775390625,
0.004199981689453125,
-0.01523590087890625,
-0.0126495361328125,
-0.0440673828125,
-0.0088958740234375,
0.01555633544921875,
0.02655029296875,
-0.031768798828125,
0.002910614013671875,
0.016387939453125,
-0.051788330078125,
0.007266998291015625,
0.009613037109375,
0.03851318359375,
0.008819580078125,
-0.07635498046875,
0.008575439453125,
-0.005283355712890625,
-0.04852294921875,
-0.0027370452880859375,
0.02276611328125,
-0.057220458984375,
0.05291748046875,
-0.0136260986328125,
0.01812744140625,
0.0109710693359375,
-0.035491943359375,
0.0019311904907226562,
0.0178375244140625,
0.0265655517578125,
0.0045928955078125,
-0.04205322265625,
-0.0206298828125,
-0.01561737060546875,
0.01364898681640625,
0.01071929931640625,
0.0251922607421875,
0.0006990432739257812,
0.01424407958984375,
-0.03466796875,
0.041351318359375,
-0.08111572265625,
-0.062042236328125,
0.09930419921875,
-0.043731689453125,
-0.01453399658203125,
0.0083465576171875,
-0.0938720703125,
0.022552490234375,
0.0211639404296875,
0.0115203857421875,
0.075439453125,
-0.01190185546875,
0.0016450881958007812,
-0.030364990234375,
-0.038818359375,
-0.04681396484375,
-0.048309326171875,
-0.01995849609375,
-0.0011568069458007812,
-0.0018720626831054688,
-0.0169830322265625,
-0.0047607421875,
0.042388916015625,
-0.034576416015625,
-0.0662841796875,
0.0028438568115234375,
-0.0732421875,
-0.0127410888671875,
0.0212860107421875,
0.01128387451171875,
-0.0186004638671875,
0.0335693359375,
0.0017423629760742188,
0.0013675689697265625,
0.03125,
0.0034770965576171875,
0.023345947265625,
-0.020660400390625,
-0.00676727294921875,
-0.027587890625,
0.01153564453125,
0.000823974609375,
-0.00804901123046875,
-0.019561767578125,
-0.0005888938903808594,
-0.050262451171875,
0.0010929107666015625,
-0.0190887451171875,
0.01160430908203125,
0.004962921142578125,
0.01245880126953125,
0.05194091796875,
-0.0006074905395507812,
-0.0263519287109375,
-0.01244354248046875,
-0.006916046142578125,
-0.0221099853515625,
-0.01258087158203125,
-0.00330352783203125,
-0.0217132568359375,
0.047515869140625,
-0.058990478515625,
0.0257110595703125,
0.0113372802734375,
0.03118896484375,
-0.07440185546875,
0.0211334228515625,
-0.0257415771484375,
-0.041229248046875,
-0.024383544921875,
-0.01012420654296875,
0.024139404296875,
0.0009288787841796875,
-0.01262664794921875,
-0.007389068603515625,
-0.0303802490234375,
0.042205810546875,
-0.05523681640625,
-0.01297760009765625,
0.0131683349609375,
0.003154754638671875,
-0.043365478515625,
-0.053802490234375,
0.022430419921875,
-0.034515380859375,
-0.0299224853515625,
-0.003742218017578125,
-0.0028667449951171875,
0.00287628173828125,
-0.027008056640625,
-0.03106689453125,
0.066650390625,
-0.0032711029052734375,
-0.0276641845703125,
-0.00909423828125,
0.0255889892578125,
-0.0113677978515625,
-0.007556915283203125,
0.0209503173828125,
-0.038909912109375,
0.01080322265625,
0.0164794921875,
-0.00679779052734375,
-0.00745391845703125,
0.041229248046875,
-0.034698486328125,
-0.05889892578125,
-0.03497314453125,
-0.03851318359375,
-0.032257080078125,
-0.0072784423828125,
-0.02166748046875,
0.043670654296875,
0.0350341796875,
-0.01416015625,
0.0162506103515625,
0.037811279296875,
0.0207977294921875,
-0.0241546630859375,
-0.0279388427734375,
-0.004039764404296875,
0.0000622868537902832,
0.053314208984375,
0.01849365234375,
0.01166534423828125,
-0.0379638671875,
-0.018890380859375,
0.001186370849609375,
-0.00974273681640625,
-0.0106048583984375,
0.0097503662109375,
-0.049652099609375,
-0.0251007080078125,
0.00897216796875,
-0.035369873046875,
0.00777435302734375,
0.019317626953125,
-0.041534423828125,
0.00391387939453125,
-0.039398193359375,
-0.035430908203125,
-0.0305633544921875,
0.01122283935546875,
0.01039886474609375,
-0.0190277099609375,
-0.0287933349609375,
0.00968170166015625,
0.001796722412109375,
-0.037445068359375,
-0.0011301040649414062,
-0.0024814605712890625,
0.01428985595703125,
-0.0489501953125,
0.004444122314453125,
-0.00428009033203125,
0.0421142578125,
-0.034881591796875,
0.00559234619140625,
-0.008026123046875,
0.03155517578125,
0.004077911376953125,
0.0249176025390625,
0.012451171875,
0.01404571533203125,
-0.00019359588623046875,
0.03350830078125,
-0.037689208984375,
0.01824951171875,
-0.0207977294921875,
0.0137481689453125,
-0.01081085205078125,
0.0238189697265625,
0.012420654296875,
0.04144287109375,
0.0018358230590820312,
-0.0022792816162109375,
0.0137176513671875,
-0.032073974609375,
0.014739990234375,
0.01104736328125,
0.0170440673828125,
0.0161895751953125
] |
40e8b3c9485cd54fb82fdabd6ec078d1c8208152
|
Wordpress Stackexchange
Q: Where can I find a good reviewed collection of Twenty Ten child themes? I am looking to extend the functionality and more importantly improve the design with post thumbnails on main page, beautify post metadata, etc.
If you know a good child theme for twenty ten, please share. Thanks.
A: My VoodooPress site is a twentyten child theme. Has some pretty cool functions going on behind the scenes. But pretty much every post on the site is about things to do with a twenty ten child theme. For instance, the things you ask about:
Working with thumbnails
Adding image sizes
etc. Hopefully you can find some help on there!
|
Q: Where can I find a good reviewed collection of Twenty Ten child themes? I am looking to extend the functionality and more importantly improve the design with post thumbnails on main page, beautify post metadata, etc.
If you know a good child theme for twenty ten, please share. Thanks.
A: My VoodooPress site is a twentyten child theme. Has some pretty cool functions going on behind the scenes. But pretty much every post on the site is about things to do with a twenty ten child theme. For instance, the things you ask about:
Working with thumbnails
Adding image sizes
etc. Hopefully you can find some help on there!
A: http://wpweaver.info/themes/weaver/ - this theme has push button customizations for twentyten as well as a bunch of child themes.
Personally one of the nicer twentyten child themes is - http://www.wpbeginner.com/free-wordpress-themes/speaky-a-free-twenty-ten-child-theme-for-wordpress/
A: This site has a large list of child themes for Twenty Ten http://zeaks.org/category/twenty-ten-child-themes/ There's also a basic child theme with some features built in, layouts, slider, header options etc http://zeaks.org/twentyten-options-theme-1-5-download/
Weaver is also very nice, but it's not a child theme anymore.
|
wordpress
|
{
"language": "en",
"length": 183,
"provenance": "stackexchange_00019.jsonl.gz:408393",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14053"
}
|
[
0.005619049072265625,
-0.02447509765625,
0.01000213623046875,
0.006313323974609375,
-0.01178741455078125,
-0.0096893310546875,
0.0307159423828125,
-0.02496337890625,
0.00026154518127441406,
0.0036678314208984375,
0.0000171661376953125,
-0.0235748291015625,
-0.0223541259765625,
-0.036895751953125,
-0.016937255859375,
-0.044708251953125,
0.023529052734375,
-0.047515869140625,
-0.0178985595703125,
0.004062652587890625,
-0.0028629302978515625,
0.0017938613891601562,
0.008514404296875,
-0.0114288330078125,
0.0653076171875,
-0.059356689453125,
0.038665771484375,
0.00925445556640625,
0.029815673828125,
-0.0030975341796875,
0.0516357421875,
-0.0297088623046875,
0.03326416015625,
-0.0220184326171875,
0.0192413330078125,
0.0233917236328125,
0.0028781890869140625,
-0.0115814208984375,
-0.024078369140625,
0.046783447265625,
0.0168914794921875,
-0.00872802734375,
0.042938232421875,
0.0102996826171875,
0.015594482421875,
-0.06317138671875,
0.06402587890625,
-0.043853759765625,
0.0006470680236816406,
-0.00792694091796875,
0.056243896484375,
0.01512908935546875,
0.07672119140625,
-0.0703125,
-0.0156707763671875,
0.0019121170043945312,
-0.036529541015625,
0.022430419921875,
0.04852294921875,
-0.0382080078125,
-0.017333984375,
-0.03692626953125,
0.026641845703125,
0.0286712646484375,
0.028167724609375,
0.0017213821411132812,
-0.033050537109375,
0.040740966796875,
-0.038177490234375,
0.016754150390625,
0.0068206787109375,
-0.03924560546875,
0.02545166015625,
-0.025360107421875,
-0.01013946533203125,
0.0257720947265625,
-0.04840087890625,
-0.0204925537109375,
0.04608154296875,
-0.01531982421875,
-0.046478271484375,
-0.0265045166015625,
-0.06610107421875,
-0.054718017578125,
0.0452880859375,
0.0040130615234375,
-0.029937744140625,
-0.0008802413940429688,
-0.04559326171875,
0.007678985595703125,
-0.0200042724609375,
-0.057769775390625,
-0.044921875,
0.0323486328125,
0.047027587890625,
-0.031890869140625,
0.0457763671875,
0.0151824951171875,
-0.002620697021484375,
-0.025604248046875,
0.0307464599609375,
-0.06439208984375,
0.0189971923828125,
-0.005542755126953125,
0.00017249584197998047,
-0.0247650146484375,
0.013580322265625,
-0.003482818603515625,
0.0213775634765625,
0.043243408203125,
-0.033721923828125,
0.0604248046875,
0.0443115234375,
0.01407623291015625,
-0.00868988037109375,
-0.01531982421875,
-0.006500244140625,
0.001987457275390625,
-0.003082275390625,
0.0011816024780273438,
-0.0105743408203125,
-0.0026874542236328125,
0.0439453125,
0.04443359375,
-0.0011034011840820312,
0.0247039794921875,
-0.01593017578125,
-0.0584716796875,
0.01397705078125,
0.0537109375,
-0.032806396484375,
-0.005237579345703125,
-0.01141357421875,
-0.0122833251953125,
-0.04107666015625,
-0.0297393798828125,
-0.01024627685546875,
0.03741455078125,
0.0257568359375,
-0.03302001953125,
-0.021087646484375,
-0.03741455078125,
0.0300140380859375,
-0.0030078887939453125,
0.0153045654296875,
0.0026264190673828125,
0.003589630126953125,
0.0277862548828125,
0.043426513671875,
0.0199737548828125,
-0.0177001953125,
0.005855560302734375,
0.0300140380859375,
0.00733184814453125,
-0.029754638671875,
-0.0235595703125,
-0.0196380615234375,
-0.0183258056640625,
0.0195159912109375,
-0.015472412109375,
0.026214599609375,
0.0012102127075195312,
0.042388916015625,
0.0186767578125,
-0.006999969482421875,
0.0028285980224609375,
-0.0277252197265625,
-0.0184783935546875,
0.012176513671875,
-0.0204925537109375,
-0.006786346435546875,
-0.0114288330078125,
-0.0121002197265625,
0.02423095703125,
0.027496337890625,
0.05230712890625,
-0.03424072265625,
-0.005359649658203125,
0.059906005859375,
0.01352691650390625,
-0.0021839141845703125,
-0.02362060546875,
0.059600830078125,
0.003604888916015625,
0.001873016357421875,
-0.0166015625,
0.0158843994140625,
-0.013885498046875,
-0.018096923828125,
-0.0010585784912109375,
0.0112762451171875,
0.04302978515625,
-0.03692626953125,
0.03662109375,
0.01708984375,
-0.0122833251953125,
-0.029998779296875,
-0.0016260147094726562,
-0.0115966796875,
-0.0292510986328125,
-0.050750732421875,
-0.001010894775390625,
0.00005918741226196289,
-0.01300811767578125,
-0.0245208740234375,
-0.00980377197265625,
-0.006336212158203125,
0.052703857421875,
0.036102294921875,
0.020965576171875,
-0.01971435546875,
-0.0254364013671875,
0.00891876220703125,
-0.035736083984375,
-0.02313232421875,
0.047607421875,
-0.003917694091796875,
0.016815185546875,
-0.013702392578125,
-0.01666259765625,
0.01904296875,
-0.0280609130859375,
0.0240631103515625,
0.05987548828125,
0.08404541015625,
0.00910186767578125,
-0.030517578125,
-0.0204620361328125,
0.041473388671875,
0.022003173828125,
-0.0849609375,
0.045867919921875,
-0.024078369140625,
-0.0186920166015625,
-0.0230712890625,
0.013153076171875,
0.016143798828125,
-0.034698486328125,
0.005855560302734375,
0.0253448486328125,
0.04736328125,
0.04205322265625,
0.041656494140625,
0.045074462890625,
0.056610107421875,
-0.05511474609375,
0.01277923583984375,
-0.00977325439453125,
-0.0170135498046875,
0.0294036865234375,
-0.002513885498046875,
-0.008697509765625,
0.0151519775390625,
-0.0308990478515625,
-0.0211181640625,
0.0207366943359375,
0.00710296630859375,
-0.028411865234375,
0.042572021484375,
0.0042877197265625,
0.0186309814453125,
0.06353759765625,
-0.025299072265625,
0.041259765625,
0.046356201171875,
-0.01690673828125,
0.0251007080078125,
0.01105499267578125,
0.036895751953125,
-0.0283355712890625,
-0.0133056640625,
-0.07891845703125,
0.0133056640625,
0.040863037109375,
-0.0230255126953125,
0.0335693359375,
0.001758575439453125,
-0.01386260986328125,
0.0070648193359375,
0.0215301513671875,
-0.00620269775390625,
0.002437591552734375,
-0.04107666015625,
-0.00168609619140625,
-0.0175323486328125,
-0.038421630859375,
0.0123291015625,
0.048309326171875,
-0.0165252685546875,
-0.0018796920776367188,
0.01039886474609375,
0.058502197265625,
-0.006610870361328125,
0.03521728515625,
-0.0313720703125,
0.0202789306640625,
0.0273590087890625,
-0.0413818359375,
0.0430908203125,
-0.029083251953125,
0.049713134765625,
0.056488037109375,
-0.0277557373046875,
0.0293121337890625,
0.0067901611328125,
0.0105438232421875,
0.024871826171875,
0.0029659271240234375,
-0.005367279052734375,
-0.01561737060546875,
-0.040069580078125,
-0.06103515625,
0.02325439453125,
0.09783935546875,
-0.01995849609375,
-0.0679931640625,
0.0283203125,
0.04815673828125,
-0.0270233154296875,
-0.0479736328125,
-0.01238250732421875,
0.0008692741394042969,
-0.0391845703125,
0.00045752525329589844,
0.016204833984375,
0.013519287109375,
-0.039764404296875,
-0.0058135986328125,
0.01308441162109375,
-0.03765869140625,
-0.0789794921875,
-0.051116943359375,
-0.0819091796875,
-0.0019474029541015625,
-0.008270263671875,
0.01137542724609375,
0.004596710205078125,
0.01715087890625,
-0.0177459716796875,
-0.03594970703125,
-0.024810791015625,
0.032257080078125,
0.0007977485656738281,
-0.0255584716796875,
0.0190887451171875,
-0.0160369873046875,
-0.033721923828125,
0.0223541259765625,
0.0089874267578125,
-0.01151275634765625,
-0.0236663818359375,
-0.0288848876953125,
-0.03924560546875,
0.02484130859375,
-0.010223388671875,
0.03790283203125,
0.05322265625,
0.00923919677734375,
0.005550384521484375,
-0.0217437744140625,
-0.041412353515625,
0.00222015380859375,
-0.035980224609375,
0.0426025390625,
0.033203125,
-0.0140838623046875,
-0.01502227783203125,
0.032470703125,
0.006557464599609375,
-0.0017223358154296875,
0.0045928955078125,
-0.0255279541015625,
0.08447265625,
-0.0028934478759765625,
0.022247314453125,
-0.0291595458984375,
-0.02252197265625,
-0.022979736328125,
0.053558349609375,
-0.015655517578125,
0.05584716796875,
0.021759033203125,
0.0462646484375,
-0.0161895751953125,
-0.04486083984375,
0.038421630859375,
-0.0028209686279296875,
0.041290283203125,
-0.041473388671875,
-0.03192138671875,
-0.0292205810546875,
0.08154296875,
-0.0631103515625,
0.00168609619140625,
0.0199127197265625,
-0.0005459785461425781,
0.00225067138671875,
0.0222015380859375,
-0.08270263671875,
-0.00665283203125,
-0.10174560546875,
0.00571441650390625,
0.0195770263671875,
-0.0496826171875,
-0.004421234130859375,
-0.0011320114135742188,
-0.056854248046875,
-0.032958984375,
0.04364013671875,
0.00922393798828125,
0.0042572021484375,
-0.00807952880859375,
0.0164947509765625,
-0.03460693359375,
-0.0074310302734375,
0.00841522216796875,
-0.068359375,
-0.02117919921875,
-0.057586669921875,
0.09820556640625,
0.0804443359375,
-0.085205078125,
0.016326904296875,
0.07464599609375,
-0.02996826171875,
0.04266357421875,
-0.0148773193359375,
0.0439453125,
-0.004116058349609375,
-0.023834228515625,
-0.0047607421875,
-0.0238800048828125,
-0.05078125,
-0.04693603515625,
-0.01100921630859375,
-0.0268096923828125,
0.0007767677307128906,
-0.047760009765625,
0.0198516845703125,
-0.010589599609375,
-0.01439666748046875,
-0.0180816650390625,
-0.01137542724609375,
-0.01003265380859375,
-0.0268707275390625,
-0.004425048828125,
0.004482269287109375,
-0.0164031982421875,
-0.0018157958984375,
0.03924560546875,
-0.056365966796875,
0.024261474609375,
0.022796630859375,
0.0217132568359375,
-0.0296478271484375,
-0.07781982421875,
-0.0482177734375,
0.0290679931640625,
0.05718994140625,
0.001956939697265625,
-0.0172882080078125,
-0.0307769775390625,
0.050384521484375,
0.02691650390625,
-0.0197296142578125,
0.03277587890625,
-0.00620269775390625,
0.0167388916015625,
-0.0243682861328125,
-0.0085601806640625,
0.01058197021484375,
0.017547607421875,
-0.004436492919921875,
-0.007709503173828125,
-0.018096923828125,
-0.01666259765625,
0.057586669921875,
0.02203369140625,
0.00738525390625,
-0.0628662109375,
-0.009002685546875,
0.004177093505859375,
-0.0012216567993164062,
0.0301666259765625,
0.0156402587890625,
0.0187530517578125,
0.006145477294921875,
-0.0151824951171875,
-0.0018062591552734375,
-0.00662994384765625,
0.06256103515625,
0.0081787109375,
0.05401611328125,
-0.0010051727294921875,
-0.0034618377685546875,
-0.064453125,
-0.019744873046875,
0.06866455078125,
0.0029239654541015625,
-0.033599853515625,
0.00695037841796875,
-0.0182342529296875,
0.03704833984375,
0.005199432373046875,
0.0027637481689453125,
0.037384033203125,
0.03485107421875,
0.0019779205322265625,
0.0113372802734375,
-0.00565338134765625,
0.01219940185546875,
-0.027252197265625,
0.005985260009765625,
-0.0006160736083984375,
-0.0401611328125,
0.0157318115234375,
-0.0248260498046875,
-0.025390625,
-0.0127716064453125,
0.006130218505859375,
-0.004123687744140625,
-0.0271759033203125,
0.011199951171875,
0.0215301513671875,
0.015869140625,
0.01788330078125,
-0.020599365234375,
0.0241851806640625,
0.0096435546875,
-0.0303955078125,
-0.007415771484375,
-0.005794525146484375,
0.007965087890625,
0.03680419921875,
0.0176239013671875,
0.007266998291015625,
-0.019317626953125,
-0.05267333984375,
0.007389068603515625,
0.04913330078125,
0.034271240234375,
0.006954193115234375,
-0.0248565673828125,
0.06402587890625,
-0.0304718017578125,
-0.03424072265625,
-0.041748046875,
-0.024993896484375,
0.04217529296875,
-0.07562255859375,
0.04205322265625,
0.033203125,
-0.03070068359375,
0.022064208984375,
-0.01000213623046875,
-0.03399658203125,
-0.0911865234375,
0.0168304443359375,
-0.007122039794921875,
0.04913330078125,
-0.027099609375,
0.03363037109375,
-0.0059356689453125,
-0.0186614990234375,
-0.02886962890625,
0.0198211669921875,
0.00908660888671875,
0.007568359375,
-0.033233642578125,
-0.046539306640625,
-0.040771484375,
-0.0201263427734375,
-0.004486083984375,
-0.0341796875,
0.007076263427734375,
0.01873779296875,
0.0177001953125,
0.015350341796875,
-0.0038204193115234375,
-0.02044677734375,
-0.03369140625,
0.02044677734375,
0.0440673828125,
0.0208892822265625,
0.00920867919921875,
0.01062774658203125,
-0.0245208740234375,
0.002292633056640625,
0.02130126953125,
0.0018701553344726562,
0.0037860870361328125,
-0.0210723876953125,
-0.006381988525390625,
-0.0207061767578125,
0.015045166015625,
0.006908416748046875,
-0.0039520263671875,
-0.02197265625,
0.022857666015625,
-0.0036373138427734375,
0.0180206298828125,
-0.0362548828125,
-0.0015115737915039062,
0.0010128021240234375,
0.0628662109375,
-0.0216217041015625,
-0.0015716552734375,
0.049774169921875,
-0.01523590087890625,
-0.0313720703125,
0.020416259765625,
-0.0183258056640625,
-0.00902557373046875,
0.0205078125,
-0.0199737548828125,
0.0153961181640625,
-0.0233917236328125,
0.0360107421875,
0.047821044921875,
-0.00027871131896972656,
0.01448822021484375,
0.01561737060546875,
0.0137786865234375,
-0.0259246826171875,
0.0004124641418457031,
0.0036525726318359375,
0.0156097412109375,
0.073974609375,
0.0007953643798828125,
-0.043731689453125,
0.02728271484375,
-0.04779052734375,
-0.06903076171875,
-0.0093994140625,
-0.04791259765625,
0.0259246826171875,
-0.04217529296875,
-0.04620361328125,
-0.00864410400390625,
-0.032257080078125,
0.0009450912475585938,
-0.00470733642578125,
-0.00417327880859375,
0.044769287109375,
-0.01012420654296875,
-0.0016202926635742188,
0.0278472900390625,
-0.0196685791015625,
-0.01108551025390625,
-0.037841796875,
0.036590576171875,
0.00829315185546875,
-0.02899169921875,
0.006465911865234375,
0.000965118408203125,
-0.0014495849609375,
-0.049072265625,
0.0225677490234375,
-0.011077880859375,
-0.0008769035339355469,
-0.026702880859375,
0.0307159423828125,
0.020111083984375,
0.0280914306640625,
-0.008941650390625,
0.0220947265625,
-0.0252532958984375,
0.04315185546875,
-0.041015625,
0.0276336669921875,
0.01316070556640625,
0.0042266845703125,
-0.01398468017578125,
0.004421234130859375,
0.030792236328125,
-0.05755615234375,
-0.008819580078125,
0.0087890625,
-0.062255859375,
-0.0296783447265625,
0.01250457763671875,
0.01346588134765625,
0.0038585662841796875,
0.01352691650390625,
-0.024810791015625,
0.085205078125,
0.002964019775390625,
-0.065185546875,
0.018310546875,
0.0239715576171875,
-0.04864501953125,
-0.0235595703125,
0.020355224609375,
-0.0089874267578125,
-0.038116455078125,
0.00786590576171875,
-0.050201416015625,
0.025421142578125,
-0.0034198760986328125,
0.0333251953125,
-0.00705718994140625,
0.01537322998046875,
-0.002796173095703125,
-0.0066680908203125,
-0.037689208984375,
0.08062744140625,
-0.008026123046875,
-0.0089263916015625,
-0.052978515625,
0.0024814605712890625,
-0.03021240234375,
-0.01033782958984375,
-0.01519775390625,
-0.00872802734375,
-0.039276123046875,
0.019256591796875,
0.05853271484375,
-0.0106048583984375,
0.0074615478515625,
0.06878662109375,
-0.003070831298828125,
0.004421234130859375,
0.0167694091796875,
0.011383056640625,
0.051727294921875,
-0.048736572265625,
-0.03564453125,
0.0019588470458984375,
0.001544952392578125,
-0.0272369384765625,
0.0374755859375,
0.023681640625,
-0.048919677734375,
0.031829833984375,
0.01446533203125,
-0.006999969482421875,
0.035797119140625,
-0.01029205322265625,
-0.00457000732421875,
-0.032440185546875,
-0.04656982421875,
0.0018262863159179688,
0.020294189453125,
-0.00016486644744873047,
0.01251983642578125,
0.00205230712890625,
0.0282135009765625,
-0.00705718994140625,
-0.00774383544921875,
0.0185546875,
0.053863525390625,
-0.0552978515625,
-0.006221771240234375,
-0.0139312744140625,
0.00989532470703125,
-0.06573486328125,
0.00435638427734375,
0.0262451171875,
0.0099029541015625,
-0.022369384765625,
-0.0206146240234375,
-0.0010499954223632812,
-0.0173187255859375,
-0.00772857666015625,
-0.0179901123046875,
0.0146331787109375,
0.00943756103515625,
0.01678466796875,
-0.036865234375,
-0.00860595703125,
0.005008697509765625,
0.022186279296875,
-0.01030731201171875,
0.0234527587890625,
-0.0153045654296875,
-0.0078582763671875,
0.0171051025390625,
-0.02764892578125,
-0.0299530029296875,
0.00653839111328125,
0.0181427001953125,
0.008270263671875,
-0.0438232421875,
0.00643157958984375,
-0.00193023681640625,
-0.0019273757934570312,
0.0181732177734375,
-0.01324462890625,
-0.00860595703125,
-0.0148162841796875,
0.024200439453125,
0.0243988037109375,
0.0307769775390625,
-0.0092620849609375,
0.005062103271484375,
0.00817108154296875,
-0.03643798828125,
-0.01447296142578125,
0.0147552490234375,
-0.0153350830078125,
-0.0101318359375,
-0.0165557861328125,
-0.00955963134765625,
0.023284912109375,
-0.0110015869140625,
0.033935546875,
-0.033843994140625,
0.06097412109375,
-0.0007176399230957031,
-0.0158843994140625,
0.00972747802734375,
-0.0285491943359375,
0.01177215576171875,
0.005222320556640625,
0.01108551025390625,
0.0186614990234375,
-0.109130859375,
-0.0144805908203125,
-0.0220489501953125,
-0.0130462646484375,
0.0295257568359375,
0.02923583984375,
-0.02532958984375,
0.021270751953125,
-0.025115966796875,
0.005443572998046875,
-0.013458251953125,
-0.007022857666015625,
0.00159454345703125,
0.05633544921875,
0.007335662841796875,
0.035400390625,
-0.01125335693359375,
0.0014629364013671875,
0.030364990234375,
0.0289764404296875,
-0.0027217864990234375,
0.0760498046875,
-0.0306549072265625,
-0.00926971435546875,
-0.035430908203125,
-0.038116455078125,
0.0168304443359375,
-0.031463623046875,
0.057525634765625,
0.01861572265625,
-0.018829345703125,
-0.0225067138671875,
-0.08648681640625,
-0.0258636474609375,
0.033538818359375,
-0.0097503662109375,
-0.0170135498046875,
-0.0399169921875,
0.050018310546875,
-0.0016565322875976562,
-0.018951416015625,
-0.032562255859375,
-0.002307891845703125,
0.012908935546875,
-0.0134429931640625,
0.016510009765625,
-0.01898193359375,
-0.0220794677734375,
0.004749298095703125,
0.0533447265625,
0.02081298828125,
0.016021728515625,
0.040252685546875,
0.0164794921875,
0.027740478515625,
-0.035552978515625,
-0.031280517578125,
0.019439697265625,
0.0009541511535644531,
0.029998779296875,
-0.00746917724609375,
0.041778564453125,
0.03515625,
-0.047149658203125,
0.02606201171875,
0.0181427001953125,
0.0285491943359375,
-0.04705810546875,
-0.0011997222900390625,
0.037506103515625,
0.0004124641418457031,
0.0193328857421875,
0.02264404296875,
0.01549530029296875,
-0.0408935546875,
-0.0263214111328125,
0.00652313232421875,
-0.050994873046875,
0.004810333251953125,
0.0005364418029785156,
-0.00609588623046875,
0.050384521484375,
0.03814697265625,
-0.07708740234375,
0.0406494140625,
0.02545166015625,
0.0220184326171875,
0.0254974365234375,
0.043701171875,
-0.005802154541015625,
-0.00550079345703125,
-0.05718994140625,
0.00009870529174804688,
-0.0059661865234375,
0.02191162109375,
-0.007747650146484375,
0.043975830078125,
0.043212890625,
-0.025665283203125,
0.0279083251953125,
0.03436279296875,
0.0171051025390625,
0.091796875,
0.0021228790283203125,
-0.0240478515625,
0.01338958740234375,
-0.0140380859375,
0.0041961669921875,
-0.028656005859375,
0.0024967193603515625,
-0.056060791015625,
-0.03057861328125,
-0.033111572265625,
0.01052093505859375,
0.01366424560546875,
-0.05322265625,
-0.07733154296875,
0.1177978515625,
-0.03472900390625,
-0.024658203125,
-0.017852783203125,
0.002086639404296875,
-0.00833892822265625,
-0.0032062530517578125,
-0.006572723388671875,
-0.01141357421875,
-0.0182647705078125,
0.011993408203125,
-0.0086212158203125,
-0.020782470703125,
0.01154327392578125,
-0.00653076171875,
-0.032073974609375,
0.015289306640625,
0.0325927734375,
-0.037139892578125,
0.024993896484375,
0.0171356201171875,
0.0026493072509765625,
0.03814697265625,
-0.034912109375,
-0.02178955078125,
-0.038177490234375,
-0.0286407470703125,
0.004360198974609375,
0.0309600830078125,
-0.0261383056640625,
-0.0215606689453125,
0.006168365478515625,
0.0284423828125,
-0.0022335052490234375,
0.005741119384765625,
-0.00656890869140625,
-0.00765228271484375,
-0.033355712890625,
0.003437042236328125,
0.0286407470703125,
-0.07684326171875,
-0.00637054443359375,
0.0281829833984375,
-0.017547607421875,
0.0232696533203125,
0.037322998046875,
-0.0310516357421875,
0.0006814002990722656,
-0.0037746429443359375,
-0.032928466796875,
-0.0533447265625,
-0.0281829833984375,
0.041290283203125,
-0.00901031494140625,
0.051910400390625,
-0.043548583984375,
0.03515625,
0.05322265625,
0.003002166748046875,
-0.012115478515625,
0.006649017333984375,
-0.0122833251953125,
0.041595458984375,
0.004169464111328125,
-0.00746917724609375,
-0.0455322265625,
0.0014181137084960938,
0.003765106201171875,
0.03167724609375,
0.0016851425170898438,
0.0202484130859375,
-0.01020050048828125,
0.0499267578125,
-0.0012006759643554688,
0.08221435546875,
0.0343017578125,
0.0301361083984375,
-0.01102447509765625,
0.0499267578125,
-0.0025653839111328125,
-0.0294952392578125,
-0.0113677978515625,
-0.03753662109375,
0.004009246826171875,
-0.04693603515625,
0.0207977294921875,
-0.0245361328125,
-0.003505706787109375,
-0.057769775390625,
-0.0312042236328125,
0.01529693603515625
] |
ccbd1fd3847635e50062ebb4efb10cce796b477b
|
Wordpress Stackexchange
Q: Syncing BuddyPress and WordPress profile fields BuddyPress and WordPress store profile information in 2 separate locations, and there's a process to sync profile data between the 2 tables. However, this is pretty much limited (from how I'm reading the code) to a single name field.
What's the best way of adding other profile fields to this sync process (I'm particularly thinking of the description, and various contact fields) - looks like I'll need to create a function to hook into xprofile_updated_profile and user_profile_update_errors - is this right?
Is there an elegant way of establishing the mapping between WP usermeta and BP xprofile_data, or do I have to create the records representing profile fields in xprofile_fields manually?
A: I suggest if you want to use BuddyPress always, just ignore/remove WordPress profile informations and you can: Redirecting User to Their Buddypress Profile when They access their wordpress profile(wp-admin/profile.php):
http://buddydev.com/buddypress/playing-with-buddypress-and-wordpress-some-codes-for-the-site-admins/
|
Q: Syncing BuddyPress and WordPress profile fields BuddyPress and WordPress store profile information in 2 separate locations, and there's a process to sync profile data between the 2 tables. However, this is pretty much limited (from how I'm reading the code) to a single name field.
What's the best way of adding other profile fields to this sync process (I'm particularly thinking of the description, and various contact fields) - looks like I'll need to create a function to hook into xprofile_updated_profile and user_profile_update_errors - is this right?
Is there an elegant way of establishing the mapping between WP usermeta and BP xprofile_data, or do I have to create the records representing profile fields in xprofile_fields manually?
A: I suggest if you want to use BuddyPress always, just ignore/remove WordPress profile informations and you can: Redirecting User to Their Buddypress Profile when They access their wordpress profile(wp-admin/profile.php):
http://buddydev.com/buddypress/playing-with-buddypress-and-wordpress-some-codes-for-the-site-admins/
|
wordpress
|
{
"language": "en",
"length": 148,
"provenance": "stackexchange_00019.jsonl.gz:408394",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14056"
}
|
[
0.044036865234375,
-0.00738525390625,
0.0005269050598144531,
-0.0236663818359375,
-0.004119873046875,
-0.0084991455078125,
0.0163421630859375,
-0.039886474609375,
-0.0257110595703125,
0.050811767578125,
-0.0013341903686523438,
0.0198974609375,
0.00858306884765625,
-0.00505828857421875,
-0.01561737060546875,
-0.01678466796875,
0.0135345458984375,
0.0244903564453125,
0.02960205078125,
0.0123443603515625,
0.0006990432739257812,
0.020172119140625,
-0.02783203125,
-0.07318115234375,
0.0479736328125,
-0.0295562744140625,
0.029083251953125,
-0.0178070068359375,
0.056732177734375,
0.028717041015625,
0.036956787109375,
-0.052490234375,
0.02862548828125,
0.0082550048828125,
-0.04925537109375,
-0.031158447265625,
0.0452880859375,
-0.019195556640625,
-0.03656005859375,
0.06964111328125,
0.01178741455078125,
0.0037212371826171875,
0.005855560302734375,
0.035919189453125,
-0.00682830810546875,
-0.061004638671875,
0.03387451171875,
-0.057373046875,
0.0013151168823242188,
-0.00033736228942871094,
0.0086669921875,
0.0123748779296875,
0.018829345703125,
-0.0143585205078125,
0.0099945068359375,
0.007488250732421875,
-0.040618896484375,
-0.00063323974609375,
0.022247314453125,
0.01300811767578125,
-0.00266265869140625,
-0.005680084228515625,
0.0016469955444335938,
-0.0009870529174804688,
0.0023097991943359375,
-0.021209716796875,
-0.043609619140625,
0.0152435302734375,
-0.03759765625,
-0.0093231201171875,
0.052215576171875,
-0.0271453857421875,
-0.0016078948974609375,
-0.0248565673828125,
0.00446319580078125,
-0.006069183349609375,
0.01377105712890625,
-0.0224609375,
-0.00026345252990722656,
0.02557373046875,
-0.04443359375,
-0.05535888671875,
-0.0244903564453125,
-0.01531219482421875,
0.001705169677734375,
0.0171661376953125,
-0.0198211669921875,
0.0141754150390625,
-0.00627899169921875,
-0.01187896728515625,
-0.00852203369140625,
-0.036376953125,
-0.0179595947265625,
0.05645751953125,
0.0003650188446044922,
-0.00502777099609375,
0.0204315185546875,
0.038330078125,
0.020843505859375,
0.02264404296875,
-0.004550933837890625,
-0.03997802734375,
-0.003414154052734375,
-0.0213470458984375,
0.01873779296875,
0.044464111328125,
-0.0212860107421875,
-0.0657958984375,
0.034149169921875,
0.0158233642578125,
0.01259613037109375,
0.005680084228515625,
-0.006343841552734375,
-0.0092315673828125,
0.00940704345703125,
0.0011968612670898438,
-0.04217529296875,
0.045745849609375,
-0.01934814453125,
0.0266876220703125,
-0.0213470458984375,
-0.032440185546875,
-0.01392364501953125,
0.01153564453125,
0.01175689697265625,
-0.028900146484375,
-0.04229736328125,
0.060638427734375,
-0.01181793212890625,
-0.000001430511474609375,
-0.0285797119140625,
0.0174560546875,
0.07275390625,
0.0540771484375,
0.0139007568359375,
-0.01357269287109375,
0.01959228515625,
-0.02899169921875,
-0.00884246826171875,
0.03558349609375,
-0.0199127197265625,
-0.044647216796875,
0.01308441162109375,
-0.026275634765625,
0.021209716796875,
0.00652313232421875,
0.014556884765625,
0.03192138671875,
0.01806640625,
-0.0262298583984375,
0.004367828369140625,
0.03021240234375,
-0.031585693359375,
0.0287017822265625,
0.06634521484375,
-0.018890380859375,
0.04791259765625,
-0.04132080078125,
0.057769775390625,
-0.011505126953125,
-0.0175933837890625,
-0.0242156982421875,
0.016937255859375,
-0.0489501953125,
-0.06170654296875,
0.048919677734375,
-0.01373291015625,
-0.004734039306640625,
0.0132904052734375,
-0.051300048828125,
0.006618499755859375,
0.0012302398681640625,
-0.0021991729736328125,
0.0026454925537109375,
0.017669677734375,
0.0216827392578125,
-0.001373291015625,
-0.00574493408203125,
0.052093505859375,
-0.020111083984375,
-0.04205322265625,
-0.033416748046875,
0.060150146484375,
-0.0236053466796875,
-0.05340576171875,
0.041046142578125,
0.015899658203125,
0.06573486328125,
0.0241241455078125,
0.0173187255859375,
0.0341796875,
0.0027408599853515625,
-0.029815673828125,
0.030426025390625,
-0.0160369873046875,
-0.01216888427734375,
0.0233917236328125,
0.020721435546875,
-0.00814056396484375,
-0.0237884521484375,
-0.0631103515625,
0.0263824462890625,
0.0023040771484375,
-0.0021076202392578125,
-0.0428466796875,
0.02105712890625,
-0.019195556640625,
0.055572509765625,
-0.0279998779296875,
0.0012645721435546875,
0.01708984375,
-0.00222015380859375,
-0.022918701171875,
-0.0068511962890625,
-0.0052642822265625,
0.007450103759765625,
0.007076263427734375,
0.0098724365234375,
0.0212249755859375,
0.0218505859375,
-0.014312744140625,
0.017730712890625,
-0.03204345703125,
-0.0026683807373046875,
-0.006744384765625,
-0.006015777587890625,
-0.03582763671875,
-0.00799560546875,
-0.041015625,
-0.00981903076171875,
0.01141357421875,
0.068603515625,
-0.033966064453125,
-0.01535797119140625,
-0.022613525390625,
0.00356292724609375,
-0.0200347900390625,
-0.041046142578125,
0.00563812255859375,
0.042572021484375,
0.0172119140625,
-0.0238800048828125,
0.0034351348876953125,
0.037933349609375,
0.005481719970703125,
0.008148193359375,
0.037017822265625,
0.006587982177734375,
0.03515625,
0.07879638671875,
0.01152801513671875,
-0.01690673828125,
-0.00846099853515625,
-0.08953857421875,
-0.00890350341796875,
0.022064208984375,
-0.058868408203125,
-0.024627685546875,
0.016571044921875,
-0.02777099609375,
0.016387939453125,
-0.062286376953125,
-0.00029206275939941406,
-0.03131103515625,
0.037567138671875,
-0.019439697265625,
0.04046630859375,
0.0155487060546875,
0.0153045654296875,
-0.004169464111328125,
0.0028839111328125,
-0.03997802734375,
0.0060577392578125,
-0.035919189453125,
-0.0352783203125,
0.033782958984375,
-0.0165557861328125,
0.0110015869140625,
0.012359619140625,
-0.017974853515625,
-0.002849578857421875,
0.01128387451171875,
-0.037445068359375,
-0.00975799560546875,
0.0070648193359375,
-0.023712158203125,
-0.001621246337890625,
0.019775390625,
-0.00991058349609375,
-0.029693603515625,
-0.005001068115234375,
0.0176849365234375,
-0.03143310546875,
0.0430908203125,
-0.0069122314453125,
-0.0252838134765625,
0.0265655517578125,
-0.0826416015625,
0.061431884765625,
-0.06243896484375,
0.0203857421875,
0.07037353515625,
-0.00522613525390625,
0.005523681640625,
-0.0032291412353515625,
0.0097808837890625,
0.004489898681640625,
0.01436614990234375,
0.00885772705078125,
-0.023345947265625,
0.012664794921875,
0.068603515625,
0.0191650390625,
0.0169677734375,
-0.002094268798828125,
-0.03509521484375,
-0.01029205322265625,
0.02252197265625,
-0.042755126953125,
-0.033172607421875,
-0.04925537109375,
-0.0643310546875,
-0.00270843505859375,
0.0009775161743164062,
-0.0247955322265625,
0.0203399658203125,
0.03350830078125,
0.03564453125,
0.02642822265625,
-0.0758056640625,
-0.10003662109375,
-0.08892822265625,
-0.059539794921875,
-0.00969696044921875,
-0.01007080078125,
-0.0230255126953125,
0.01013946533203125,
0.0236358642578125,
-0.0016336441040039062,
-0.0311431884765625,
0.00691986083984375,
-0.0067291259765625,
-0.01641845703125,
-0.008209228515625,
-0.040313720703125,
-0.037872314453125,
0.021514892578125,
-0.0199432373046875,
0.023101806640625,
0.0089263916015625,
0.0146026611328125,
0.0168304443359375,
0.009246826171875,
0.006134033203125,
0.037689208984375,
-0.017913818359375,
-0.028472900390625,
0.0423583984375,
0.0292205810546875,
-0.0179901123046875,
-0.00632476806640625,
0.003612518310546875,
-0.0209503173828125,
0.01116180419921875,
0.02789306640625,
-0.032379150390625,
-0.0189361572265625,
0.00848388671875,
0.0046234130859375,
0.035064697265625,
-0.0134735107421875,
0.00411224365234375,
0.01239776611328125,
-0.01068878173828125,
-0.022369384765625,
-0.0007719993591308594,
-0.0012102127075195312,
-0.0430908203125,
-0.01473236083984375,
-0.0291290283203125,
-0.0248260498046875,
-0.0224151611328125,
0.026885986328125,
-0.01325225830078125,
-0.05255126953125,
0.051971435546875,
-0.023284912109375,
0.026214599609375,
-0.066162109375,
-0.0287933349609375,
-0.028961181640625,
0.09893798828125,
-0.03302001953125,
-0.005496978759765625,
0.0252685546875,
0.0284423828125,
-0.0775146484375,
-0.057464599609375,
-0.04193115234375,
-0.0034847259521484375,
-0.0026760101318359375,
-0.024383544921875,
-0.01001739501953125,
-0.026153564453125,
-0.015838623046875,
-0.005126953125,
-0.017547607421875,
-0.0185699462890625,
-0.0010118484497070312,
-0.01299285888671875,
-0.0235748291015625,
0.05908203125,
-0.03399658203125,
0.01126861572265625,
-0.00740814208984375,
-0.0192108154296875,
-0.07275390625,
-0.0187225341796875,
0.0149078369140625,
0.0323486328125,
0.0096282958984375,
-0.0305633544921875,
0.0008697509765625,
0.029632568359375,
-0.0035343170166015625,
0.0276947021484375,
0.03240966796875,
0.027435302734375,
-0.004215240478515625,
-0.0129547119140625,
0.0265655517578125,
-0.028228759765625,
-0.01324462890625,
-0.041748046875,
-0.0055389404296875,
0.01561737060546875,
-0.02703857421875,
0.0255889892578125,
-0.032989501953125,
-0.006000518798828125,
-0.023406982421875,
0.017547607421875,
0.00981903076171875,
0.0109100341796875,
-0.011077880859375,
-0.00171661376953125,
0.01043701171875,
-0.0322265625,
0.046112060546875,
-0.031524658203125,
-0.0037136077880859375,
0.006366729736328125,
0.0628662109375,
0.01213836669921875,
-0.0185699462890625,
-0.0623779296875,
0.043487548828125,
0.061767578125,
0.0002510547637939453,
-0.0006814002990722656,
0.0106353759765625,
-0.05511474609375,
0.047576904296875,
0.03411865234375,
0.0128936767578125,
-0.0252227783203125,
0.048492431640625,
0.007442474365234375,
0.0065765380859375,
0.0012836456298828125,
0.0134429931640625,
-0.0234832763671875,
0.01055145263671875,
-0.00214385986328125,
-0.040496826171875,
-0.0241851806640625,
0.045501708984375,
0.01049041748046875,
0.00881195068359375,
-0.03387451171875,
-0.038543701171875,
0.01513671875,
-0.062286376953125,
-0.0236663818359375,
-0.0022220611572265625,
-0.018341064453125,
-0.005916595458984375,
-0.0018663406372070312,
0.01025390625,
0.007358551025390625,
-0.043975830078125,
0.01690673828125,
0.01435089111328125,
0.034210205078125,
0.0268096923828125,
0.00879669189453125,
-0.01538848876953125,
0.04974365234375,
-0.01355743408203125,
-0.0797119140625,
0.0474853515625,
-0.040283203125,
0.0210113525390625,
0.0482177734375,
-0.01508331298828125,
0.0242919921875,
0.0321044921875,
-0.017059326171875,
-0.017120361328125,
-0.0210113525390625,
-0.01045989990234375,
-0.049407958984375,
0.027679443359375,
0.00438690185546875,
-0.00524139404296875,
-0.008636474609375,
0.05902099609375,
-0.04632568359375,
0.028900146484375,
0.0166473388671875,
0.07281494140625,
0.0726318359375,
-0.01107025146484375,
0.030975341796875,
-0.004360198974609375,
-0.007205963134765625,
-0.038909912109375,
-0.034149169921875,
-0.0186767578125,
0.0309906005859375,
-0.0067596435546875,
-0.0041046142578125,
0.048126220703125,
-0.01506805419921875,
0.041046142578125,
-0.01305389404296875,
-0.0135345458984375,
0.01904296875,
0.00775146484375,
-0.042633056640625,
0.01255035400390625,
0.0201568603515625,
-0.01125335693359375,
-0.0205535888671875,
-0.0006585121154785156,
-0.0007796287536621094,
-0.0310821533203125,
-0.0211029052734375,
0.0182647705078125,
-0.01534271240234375,
-0.021484375,
-0.025970458984375,
0.047149658203125,
-0.0233306884765625,
-0.03912353515625,
-0.036712646484375,
0.012664794921875,
-0.0182342529296875,
-0.024566650390625,
0.06292724609375,
-0.029632568359375,
-0.0118408203125,
-0.0281524658203125,
0.035614013671875,
-0.03997802734375,
-0.01166534423828125,
0.08587646484375,
0.040924072265625,
0.0044097900390625,
-0.00841522216796875,
-0.02874755859375,
-0.0284576416015625,
0.0115966796875,
-0.007904052734375,
-0.0292816162109375,
-0.00913238525390625,
-0.019012451171875,
0.0026073455810546875,
-0.04229736328125,
-0.029296875,
-0.01451873779296875,
0.0328369140625,
0.024139404296875,
0.006130218505859375,
-0.0216217041015625,
0.045623779296875,
-0.0274200439453125,
0.07110595703125,
-0.0150604248046875,
0.01068115234375,
0.00531005859375,
-0.0279998779296875,
-0.025482177734375,
-0.00978851318359375,
0.0182342529296875,
-0.0153045654296875,
0.03369140625,
0.0496826171875,
0.06390380859375,
0.01007080078125,
0.0291900634765625,
-0.041748046875,
-0.0007548332214355469,
-0.0227203369140625,
0.053985595703125,
-0.0794677734375,
-0.040069580078125,
0.0455322265625,
0.00238037109375,
0.01605224609375,
-0.03265380859375,
-0.04833984375,
0.00615692138671875,
0.0211181640625,
0.0018310546875,
0.01910400390625,
-0.0305938720703125,
0.0265960693359375,
0.0201873779296875,
0.0262603759765625,
0.0265045166015625,
-0.0002951622009277344,
0.01326751708984375,
-0.0157470703125,
0.0015230178833007812,
-0.035675048828125,
0.003658294677734375,
0.03155517578125,
0.0007343292236328125,
-0.0296478271484375,
0.026092529296875,
-0.030853271484375,
0.002811431884765625,
0.0184326171875,
0.03021240234375,
-0.050445556640625,
0.0173187255859375,
-0.00556182861328125,
0.0010824203491210938,
0.0138702392578125,
-0.01238250732421875,
-0.0411376953125,
-0.051666259765625,
0.0263824462890625,
0.021820068359375,
-0.0251617431640625,
0.01100921630859375,
0.0273284912109375,
-0.0146026611328125,
-0.0169219970703125,
0.006999969482421875,
0.0120391845703125,
0.0169830322265625,
-0.0015687942504882812,
0.0024127960205078125,
0.0160369873046875,
0.0025386810302734375,
-0.0012912750244140625,
0.0011434555053710938,
-0.04937744140625,
-0.041351318359375,
-0.0036373138427734375,
-0.0171966552734375,
-0.017333984375,
0.00457763671875,
-0.00838470458984375,
0.0703125,
0.02874755859375,
0.01439666748046875,
-0.034515380859375,
-0.00027632713317871094,
0.025787353515625,
0.00039839744567871094,
-0.042083740234375,
0.0185089111328125,
0.019012451171875,
-0.047027587890625,
0.0184326171875,
0.013397216796875,
-0.022674560546875,
-0.0205535888671875,
-0.0117034912109375,
0.054351806640625,
-0.00989532470703125,
-0.0143280029296875,
0.0085601806640625,
0.06304931640625,
0.01198577880859375,
-0.0005154609680175781,
0.032989501953125,
-0.053985595703125,
-0.04815673828125,
0.02166748046875,
-0.03515625,
-0.0019502639770507812,
0.0177154541015625,
-0.059295654296875,
0.07904052734375,
-0.0166778564453125,
0.0218353271484375,
0.00799560546875,
0.0193939208984375,
-0.025177001953125,
0.0031833648681640625,
-0.03375244140625,
0.0706787109375,
0.02471923828125,
0.058013916015625,
-0.03436279296875,
-0.0257415771484375,
0.027984619140625,
0.054595947265625,
0.091552734375,
0.047210693359375,
-0.046905517578125,
0.003574371337890625,
0.03253173828125,
0.006298065185546875,
-0.0242462158203125,
0.05877685546875,
-0.004123687744140625,
-0.00751495361328125,
0.0115203857421875,
-0.041168212890625,
0.01142120361328125,
-0.03900146484375,
-0.0007343292236328125,
0.01038360595703125,
0.0240325927734375,
0.054168701171875,
-0.0246734619140625,
-0.0047454833984375,
0.03533935546875,
-0.0273284912109375,
-0.01293182373046875,
-0.036956787109375,
0.0206756591796875,
-0.017333984375,
-0.0023136138916015625,
0.046600341796875,
0.06915283203125,
-0.0191192626953125,
0.03997802734375,
0.015838623046875,
-0.01508331298828125,
0.08038330078125,
0.01477813720703125,
0.09228515625,
-0.0298309326171875,
-0.005741119384765625,
-0.03515625,
0.038238525390625,
0.049713134765625,
-0.007221221923828125,
0.0156097412109375,
-0.06402587890625,
0.02850341796875,
0.0166015625,
0.054473876953125,
-0.053558349609375,
-0.059844970703125,
0.0174713134765625,
0.01220703125,
0.004486083984375,
0.00727081298828125,
-0.01239776611328125,
-0.0894775390625,
-0.0066070556640625,
-0.0479736328125,
0.01763916015625,
0.046661376953125,
-0.01067352294921875,
-0.015289306640625,
0.00066375732421875,
-0.0220184326171875,
0.03155517578125,
-0.00946044921875,
0.031402587890625,
-0.00585174560546875,
-0.0239715576171875,
-0.0079193115234375,
0.025115966796875,
0.05133056640625,
0.03399658203125,
0.00757598876953125,
0.00951385498046875,
0.038055419921875,
-0.0267181396484375,
-0.0166778564453125,
-0.0413818359375,
0.025909423828125,
0.0175933837890625,
0.021087646484375,
-0.050445556640625,
0.047821044921875,
0.052825927734375,
-0.0679931640625,
-0.038482666015625,
0.01352691650390625,
-0.0101165771484375,
-0.0538330078125,
-0.02166748046875,
0.00543975830078125,
0.0538330078125,
0.0086669921875,
0.0111541748046875,
0.008148193359375,
0.044281005859375,
0.001705169677734375,
0.01450347900390625,
0.00830841064453125,
0.0009946823120117188,
0.06121826171875,
0.016815185546875,
0.01043701171875,
0.029510498046875,
-0.127197265625,
-0.0250396728515625,
-0.060638427734375,
-0.01245880126953125,
0.031280517578125,
0.044677734375,
-0.0163726806640625,
0.0181884765625,
0.052459716796875,
-0.0118560791015625,
0.01971435546875,
-0.01593017578125,
0.0196380615234375,
0.0115203857421875,
0.0167236328125,
0.0240936279296875,
-0.028533935546875,
0.0005879402160644531,
-0.0242462158203125,
0.021820068359375,
0.044219970703125,
0.07855224609375,
-0.01885986328125,
0.032958984375,
-0.003002166748046875,
-0.0005130767822265625,
0.023468017578125,
0.007373809814453125,
0.0289764404296875,
0.0308380126953125,
0.006587982177734375,
-0.020843505859375,
0.008026123046875,
0.0377197265625,
0.01161956787109375,
-0.0198974609375,
-0.004955291748046875,
0.00196075439453125,
0.0162200927734375,
0.00971221923828125,
0.020965576171875,
-0.04302978515625,
-0.033111572265625,
-0.033416748046875,
0.0039520263671875,
-0.0184783935546875,
-0.0254669189453125,
0.0030994415283203125,
0.0218963623046875,
0.043609619140625,
-0.0171661376953125,
-0.01016998291015625,
-0.0148773193359375,
0.007122039794921875,
0.022796630859375,
0.033447265625,
-0.0170745849609375,
0.00006324052810668945,
-0.0249786376953125,
-0.015533447265625,
0.007442474365234375,
0.013824462890625,
0.004459381103515625,
-0.05657958984375,
0.0265350341796875,
0.0250091552734375,
0.035064697265625,
-0.01568603515625,
0.010589599609375,
0.0227203369140625,
-0.00262451171875,
0.021514892578125,
-0.01654052734375,
-0.048553466796875,
-0.0692138671875,
0.01392364501953125,
0.0092010498046875,
-0.040771484375,
-0.04888916015625,
-0.0753173828125,
-0.0364990234375,
0.00974273681640625,
-0.00284576416015625,
-0.0130767822265625,
-0.00433349609375,
0.01279449462890625,
-0.0068511962890625,
-0.0145721435546875,
-0.022369384765625,
0.009796142578125,
0.02716064453125,
0.01006317138671875,
0.00556182861328125,
-0.029083251953125,
-0.01019287109375,
0.0088043212890625,
-0.0193023681640625,
0.0257720947265625,
0.00176239013671875,
-0.021453857421875,
-0.0372314453125,
-0.0101470947265625,
-0.004970550537109375,
-0.03466796875,
-0.03515625,
-0.01131439208984375,
-0.01265716552734375,
0.0092620849609375,
-0.03131103515625,
0.00536346435546875,
-0.06500244140625,
-0.0036487579345703125,
-0.04443359375,
0.00006681680679321289,
0.00789642333984375,
-0.0540771484375,
-0.0743408203125,
0.0906982421875,
-0.02880859375,
-0.0273284912109375,
-0.09588623046875,
-0.020965576171875,
-0.0020751953125,
0.0001609325408935547,
-0.041351318359375,
0.005268096923828125,
-0.03875732421875,
0.08111572265625,
0.0092315673828125,
0.021270751953125,
-0.0156707763671875,
0.04052734375,
-0.0268402099609375,
0.0438232421875,
0.0202484130859375,
-0.004833221435546875,
0.0204010009765625,
0.000028789043426513672,
0.037078857421875,
0.0406494140625,
-0.0269012451171875,
-0.00589752197265625,
0.00855255126953125,
-0.0355224609375,
0.006488800048828125,
-0.040557861328125,
-0.042327880859375,
-0.01274871826171875,
0.05718994140625,
0.0677490234375,
0.016143798828125,
-0.042999267578125,
0.02386474609375,
-0.053680419921875,
-0.016326904296875,
-0.0177459716796875,
-0.00861358642578125,
-0.02679443359375,
-0.0073394775390625,
0.0092926025390625,
-0.0085296630859375,
0.00580596923828125,
0.00899505615234375,
-0.0185089111328125,
0.01012420654296875,
0.04058837890625,
-0.0158233642578125,
-0.028778076171875,
-0.012969970703125,
0.028656005859375,
-0.023529052734375,
-0.018951416015625,
-0.0018253326416015625,
0.0144500732421875,
-0.01446533203125,
0.01105499267578125,
0.0276031494140625,
0.0379638671875,
-0.046844482421875,
-0.0085601806640625,
0.0010986328125,
0.0216522216796875,
-0.03253173828125,
-0.0087890625,
-0.002197265625,
0.0292816162109375,
-0.005168914794921875,
0.038818359375,
-0.0078582763671875,
0.050537109375,
0.0208892822265625,
0.0012292861938476562,
-0.0060272216796875,
-0.0247039794921875,
-0.0139007568359375,
0.027740478515625,
0.01073455810546875,
-0.0206451416015625,
0.04693603515625,
-0.0308074951171875,
-0.00673675537109375,
0.00472259521484375,
0.02972412109375,
-0.08154296875,
0.048736572265625,
0.0219573974609375,
0.047271728515625,
0.0232391357421875
] |
34ecd6004e22ad1bba569f74887c189be36a8121
|
Wordpress Stackexchange
Q: Added 20 Custom Fields. Only 10 showing in drop down Just like the title states. I've added around 20+ custom fields into my wordpress site and only around 10 are showing in the drop down.
The custom fields are all functioning fine on the site side, but they just aren't showing up in the drop down.
A: There's a limit set inside the function that lists the meta data.
http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/template.php#L512
Run a filter on postmeta_form_limit to increase to your desired value, eg.
add_filter( 'postmeta_form_limit', 'meta_limit_increase' );
function meta_limit_increase( $limit ) {
return 50;
}
Hope that helps.. :)
|
Q: Added 20 Custom Fields. Only 10 showing in drop down Just like the title states. I've added around 20+ custom fields into my wordpress site and only around 10 are showing in the drop down.
The custom fields are all functioning fine on the site side, but they just aren't showing up in the drop down.
A: There's a limit set inside the function that lists the meta data.
http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/template.php#L512
Run a filter on postmeta_form_limit to increase to your desired value, eg.
add_filter( 'postmeta_form_limit', 'meta_limit_increase' );
function meta_limit_increase( $limit ) {
return 50;
}
Hope that helps.. :)
A: From the looks of things, you just have way too many custom fields. I would highly recommend creating a few custom meta boxes to handle them rather than relying entirely on the dropdown menu.
There are a few good tutorials out there, and whoever ends up maintaining the site will thank you for building a clean, easy-to-navigate UI.
|
wordpress
|
{
"language": "en",
"length": 158,
"provenance": "stackexchange_00019.jsonl.gz:408411",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14103"
}
|
[
0.058074951171875,
0.004261016845703125,
-0.005771636962890625,
-0.04119873046875,
0.01261138916015625,
-0.0183868408203125,
-0.001674652099609375,
-0.044342041015625,
-0.004840850830078125,
-0.00665283203125,
-0.03765869140625,
-0.02984619140625,
-0.0305633544921875,
-0.039398193359375,
0.0023288726806640625,
-0.071044921875,
0.02642822265625,
0.0104522705078125,
0.02679443359375,
0.0024471282958984375,
0.0150299072265625,
0.01438140869140625,
-0.004322052001953125,
0.03466796875,
0.020263671875,
-0.042572021484375,
0.02484130859375,
-0.039093017578125,
-0.01110076904296875,
-0.0244293212890625,
0.01134490966796875,
0.041107177734375,
0.0132904052734375,
0.029937744140625,
-0.0160064697265625,
0.017181396484375,
0.060791015625,
-0.0159912109375,
-0.01122283935546875,
0.059783935546875,
0.03857421875,
-0.0262451171875,
0.01299285888671875,
-0.0278472900390625,
0.01140594482421875,
-0.044036865234375,
0.07550048828125,
-0.0289764404296875,
-0.014068603515625,
-0.024169921875,
0.01381683349609375,
0.01325225830078125,
0.044097900390625,
-0.0806884765625,
-0.006748199462890625,
-0.033966064453125,
-0.00559234619140625,
0.01593017578125,
0.0313720703125,
-0.006877899169921875,
-0.0296173095703125,
-0.007251739501953125,
0.0006647109985351562,
-0.0216522216796875,
0.00615692138671875,
0.006877899169921875,
-0.019989013671875,
0.0184173583984375,
-0.0019073486328125,
-0.0166168212890625,
-0.0067138671875,
-0.027923583984375,
0.0009617805480957031,
-0.005413055419921875,
-0.0304412841796875,
-0.01526641845703125,
0.00260162353515625,
-0.041839599609375,
0.023956298828125,
0.00513458251953125,
-0.01131439208984375,
-0.032958984375,
-0.003902435302734375,
0.01114654541015625,
-0.006855010986328125,
0.039703369140625,
-0.022308349609375,
-0.00586700439453125,
0.0013837814331054688,
0.00421142578125,
-0.004222869873046875,
-0.06964111328125,
-0.03253173828125,
0.0670166015625,
0.045989990234375,
-0.025421142578125,
0.04071044921875,
0.022430419921875,
0.0127410888671875,
-0.01605224609375,
0.00577545166015625,
-0.0380859375,
-0.00335693359375,
-0.002063751220703125,
0.013702392578125,
-0.01029205322265625,
-0.030487060546875,
0.0032367706298828125,
0.056060791015625,
0.059295654296875,
-0.000049114227294921875,
0.00746917724609375,
0.045745849609375,
0.020477294921875,
-0.0302581787109375,
-0.078369140625,
-0.01329803466796875,
0.0019893646240234375,
-0.0133514404296875,
-0.044097900390625,
0.002208709716796875,
0.007411956787109375,
0.005474090576171875,
-0.01496124267578125,
-0.0013895034790039062,
-0.0217132568359375,
-0.039337158203125,
0.01152801513671875,
-0.0091094970703125,
0.04864501953125,
-0.03204345703125,
0.0083465576171875,
0.0406494140625,
-0.003765106201171875,
-0.019866943359375,
-0.025634765625,
0.021881103515625,
-0.01175689697265625,
-0.0037708282470703125,
0.045501708984375,
-0.05859375,
-0.04571533203125,
0.0201568603515625,
-0.0256805419921875,
-0.0171966552734375,
0.0042724609375,
0.0084228515625,
0.0184326171875,
0.0107421875,
-0.036834716796875,
-0.01491546630859375,
-0.006496429443359375,
0.050445556640625,
0.004302978515625,
-0.052947998046875,
0.0130462646484375,
0.022705078125,
-0.01432037353515625,
-0.053741455078125,
-0.035797119140625,
0.0035381317138671875,
0.0015840530395507812,
0.007030487060546875,
-0.08575439453125,
-0.05694580078125,
-0.031890869140625,
-0.04534912109375,
0.001190185546875,
0.0255584716796875,
-0.00223541259765625,
0.0176849365234375,
-0.01023101806640625,
0.050201416015625,
0.0233917236328125,
0.0008764266967773438,
0.021240234375,
0.01032257080078125,
0.050567626953125,
0.03399658203125,
-0.0176544189453125,
-0.022613525390625,
-0.03289794921875,
0.111328125,
-0.053466796875,
-0.074462890625,
0.06707763671875,
-0.01195526123046875,
0.057861328125,
0.0389404296875,
-0.0050048828125,
0.030487060546875,
0.0191650390625,
0.009063720703125,
-0.06085205078125,
0.00251007080078125,
0.022247314453125,
-0.0322265625,
-0.0059967041015625,
-0.021514892578125,
0.0577392578125,
-0.06597900390625,
0.00624847412109375,
0.0183868408203125,
0.025421142578125,
0.0193634033203125,
0.0159149169921875,
-0.0171051025390625,
0.03961181640625,
-0.0286865234375,
0.0286407470703125,
0.0162200927734375,
-0.032867431640625,
-0.031524658203125,
0.06817626953125,
0.0223846435546875,
-0.00733184814453125,
0.0282135009765625,
0.0361328125,
0.00009959936141967773,
0.0082550048828125,
0.022491455078125,
-0.056060791015625,
-0.0014543533325195312,
0.05413818359375,
0.04644775390625,
-0.006015777587890625,
-0.0215301513671875,
-0.01548004150390625,
0.05133056640625,
-0.001598358154296875,
-0.00754547119140625,
0.055572509765625,
0.019134521484375,
-0.01534271240234375,
-0.0307159423828125,
0.0004024505615234375,
-0.0237274169921875,
-0.1041259765625,
-0.0087890625,
0.07391357421875,
0.032196044921875,
0.030517578125,
-0.003208160400390625,
0.01812744140625,
0.060455322265625,
-0.031890869140625,
0.005023956298828125,
-0.0017337799072265625,
0.01514434814453125,
0.0157318115234375,
0.017425537109375,
-0.01013946533203125,
0.0225982666015625,
-0.052947998046875,
0.04345703125,
0.01538848876953125,
-0.040008544921875,
-0.0182342529296875,
0.01073455810546875,
-0.0194549560546875,
0.01318359375,
-0.01105499267578125,
-0.0006842613220214844,
-0.00434112548828125,
0.017822265625,
0.047393798828125,
0.047515869140625,
0.048187255859375,
-0.0281219482421875,
0.031982421875,
0.00408172607421875,
0.0113372802734375,
0.01103973388671875,
-0.04473876953125,
-0.06170654296875,
-0.04791259765625,
-0.004100799560546875,
0.04571533203125,
0.014862060546875,
-0.07427978515625,
-0.0132904052734375,
0.008758544921875,
-0.02532958984375,
-0.00786590576171875,
0.0213470458984375,
-0.04473876953125,
-0.004604339599609375,
-0.00525665283203125,
0.0185699462890625,
-0.00678253173828125,
0.02783203125,
0.007732391357421875,
-0.00926971435546875,
0.019073486328125,
0.0062103271484375,
-0.0302581787109375,
0.043365478515625,
-0.02471923828125,
0.0362548828125,
-0.0213775634765625,
0.02557373046875,
0.05535888671875,
-0.03125,
0.039764404296875,
-0.00970458984375,
-0.00835418701171875,
-0.048828125,
0.040863037109375,
-0.0032444000244140625,
-0.043914794921875,
-0.03521728515625,
-0.00716400146484375,
0.00930023193359375,
0.025482177734375,
0.01319122314453125,
-0.031707763671875,
0.0116424560546875,
0.015716552734375,
-0.037872314453125,
-0.057373046875,
0.01264190673828125,
-0.029205322265625,
-0.03717041015625,
-0.039520263671875,
-0.017059326171875,
0.02392578125,
-0.0703125,
-0.00542449951171875,
0.008514404296875,
-0.030487060546875,
-0.037322998046875,
-0.03814697265625,
-0.047210693359375,
-0.01558685302734375,
0.006855010986328125,
0.005893707275390625,
-0.0166473388671875,
0.09979248046875,
-0.01229095458984375,
-0.08551025390625,
-0.044219970703125,
-0.0124053955078125,
-0.007717132568359375,
0.020782470703125,
0.06500244140625,
-0.05767822265625,
0.01251983642578125,
0.0025177001953125,
0.029449462890625,
0.04248046875,
-0.058807373046875,
-0.0283050537109375,
-0.019805908203125,
-0.01496124267578125,
0.0047607421875,
-0.002094268798828125,
0.01114654541015625,
0.01265716552734375,
0.024566650390625,
-0.02850341796875,
-0.0021610260009765625,
0.005252838134765625,
-0.005420684814453125,
0.00827789306640625,
-0.01824951171875,
-0.01175689697265625,
-0.01094818115234375,
0.04730224609375,
-0.00830841064453125,
0.0188446044921875,
-0.0012235641479492188,
-0.0190277099609375,
0.00588226318359375,
-0.00036644935607910156,
-0.0008058547973632812,
0.004642486572265625,
-0.0004696846008300781,
-0.0164031982421875,
0.0218505859375,
0.004779815673828125,
0.037689208984375,
0.01708984375,
0.005237579345703125,
-0.01922607421875,
-0.0831298828125,
0.052459716796875,
-0.01439666748046875,
0.00490570068359375,
-0.034423828125,
-0.036376953125,
0.0134735107421875,
0.1129150390625,
-0.02130126953125,
-0.01312255859375,
0.00743865966796875,
0.0213165283203125,
-0.027313232421875,
-0.01403045654296875,
-0.03076171875,
-0.00809478759765625,
-0.06390380859375,
0.00589752197265625,
0.00942230224609375,
-0.0355224609375,
-0.01009368896484375,
-0.0120849609375,
-0.052642822265625,
-0.0226593017578125,
0.01531982421875,
0.0006570816040039062,
0.0274658203125,
-0.031829833984375,
0.0191650390625,
-0.034515380859375,
0.025787353515625,
-0.0287322998046875,
-0.0838623046875,
-0.0234527587890625,
0.00861358642578125,
0.042236328125,
-0.02337646484375,
0.0078277587890625,
-0.0171661376953125,
0.052703857421875,
0.0207977294921875,
0.0088348388671875,
0.00785064697265625,
-0.004940032958984375,
-0.00778961181640625,
-0.022216796875,
0.0104522705078125,
-0.034149169921875,
-0.04107666015625,
-0.05755615234375,
0.0242767333984375,
-0.010498046875,
-0.0140533447265625,
0.0008473396301269531,
-0.01053619384765625,
0.01346588134765625,
-0.01177215576171875,
-0.0240936279296875,
-0.06329345703125,
-0.0089263916015625,
-0.03472900390625,
-0.00196075439453125,
-0.0012693405151367188,
-0.01473236083984375,
-0.003482818603515625,
-0.0267333984375,
-0.0025844573974609375,
0.03973388671875,
0.049041748046875,
0.0007929801940917969,
-0.0005593299865722656,
-0.1005859375,
-0.0117645263671875,
0.0244598388671875,
0.049591064453125,
0.000621795654296875,
-0.0214996337890625,
-0.028961181640625,
0.0501708984375,
0.00026702880859375,
0.029449462890625,
-0.0149993896484375,
0.008697509765625,
-0.0111083984375,
0.0021228790283203125,
-0.005771636962890625,
0.0074462890625,
0.017181396484375,
0.004016876220703125,
0.003726959228515625,
-0.04034423828125,
0.0157470703125,
0.045440673828125,
-0.01953125,
0.02276611328125,
-0.0269927978515625,
-0.0198516845703125,
0.002582550048828125,
-0.0274810791015625,
0.045074462890625,
0.0155792236328125,
0.0096435546875,
0.0134735107421875,
0.01708984375,
0.040313720703125,
-0.00458526611328125,
-0.006198883056640625,
-0.01434326171875,
0.01551055908203125,
0.0538330078125,
0.027984619140625,
-0.01343536376953125,
-0.029296875,
0.10028076171875,
-0.0005846023559570312,
-0.04815673828125,
0.01052093505859375,
-0.0357666015625,
0.05267333984375,
0.0228729248046875,
0.0043487548828125,
0.004543304443359375,
0.0256805419921875,
0.00023496150970458984,
0.0179901123046875,
0.02093505859375,
0.019378662109375,
-0.0113677978515625,
0.05029296875,
-0.0019216537475585938,
0.01081085205078125,
-0.0272674560546875,
0.06524658203125,
0.00836181640625,
0.0106658935546875,
-0.0087738037109375,
0.01384735107421875,
0.031005859375,
0.021270751953125,
0.0187530517578125,
-0.0129852294921875,
-0.012298583984375,
0.00897216796875,
0.01519012451171875,
-0.005084991455078125,
-0.018951416015625,
0.0016927719116210938,
0.005252838134765625,
-0.00959014892578125,
0.004566192626953125,
0.0233154296875,
0.00959014892578125,
-0.0132904052734375,
0.0248565673828125,
-0.015899658203125,
-0.06488037109375,
0.01226806640625,
0.0462646484375,
-0.005924224853515625,
-0.03997802734375,
0.00441741943359375,
-0.02557373046875,
-0.023712158203125,
0.00878143310546875,
-0.033416748046875,
0.0163726806640625,
-0.0095062255859375,
-0.024749755859375,
-0.01457977294921875,
0.022247314453125,
-0.00731658935546875,
-0.0709228515625,
-0.0816650390625,
0.0169525146484375,
0.007144927978515625,
0.03228759765625,
-0.024993896484375,
0.00287628173828125,
-0.0045928955078125,
0.006488800048828125,
-0.0261383056640625,
0.0190887451171875,
0.0003619194030761719,
-0.01018524169921875,
0.01043701171875,
-0.01464080810546875,
-0.01087188720703125,
-0.026763916015625,
0.01959228515625,
-0.026397705078125,
0.0016584396362304688,
-0.01959228515625,
0.037353515625,
0.0182342529296875,
0.03594970703125,
-0.0144805908203125,
-0.032440185546875,
0.0266265869140625,
0.03314208984375,
0.031219482421875,
0.0096282958984375,
-0.01023101806640625,
0.00885009765625,
0.0240020751953125,
0.01554107666015625,
0.00029087066650390625,
0.01422882080078125,
-0.044647216796875,
0.0028362274169921875,
-0.049224853515625,
-0.031097412109375,
0.01076507568359375,
-0.03961181640625,
0.03271484375,
0.0472412109375,
0.0010128021240234375,
0.041748046875,
-0.018035888671875,
0.002124786376953125,
0.0005164146423339844,
0.036224365234375,
-0.0083160400390625,
-0.01300048828125,
0.08660888671875,
-0.0063323974609375,
-0.011322021484375,
-0.009552001953125,
-0.051544189453125,
0.034088134765625,
0.0280914306640625,
0.01885986328125,
-0.00815582275390625,
-0.027252197265625,
0.0309600830078125,
0.0290985107421875,
0.0108795166015625,
0.0299835205078125,
0.0111846923828125,
0.0238494873046875,
-0.00644683837890625,
0.01070404052734375,
-0.043426513671875,
0.01302337646484375,
0.06256103515625,
-0.001338958740234375,
-0.053619384765625,
0.02459716796875,
-0.0306243896484375,
0.003917694091796875,
0.040252685546875,
0.039642333984375,
-0.0616455078125,
0.0005464553833007812,
-0.007061004638671875,
-0.00201416015625,
0.041046142578125,
0.0032291412353515625,
-0.001293182373046875,
0.013336181640625,
0.00980377197265625,
0.0199127197265625,
-0.0096588134765625,
0.0241851806640625,
0.02227783203125,
-0.013092041015625,
-0.023590087890625,
-0.00594329833984375,
0.0015916824340820312,
0.03936767578125,
-0.0180816650390625,
-0.0222320556640625,
0.004863739013671875,
-0.01708984375,
0.0168304443359375,
0.00150299072265625,
-0.034698486328125,
-0.042510986328125,
-0.00482177734375,
-0.0111083984375,
-0.007167816162109375,
0.0306243896484375,
0.0293731689453125,
0.0577392578125,
0.058563232421875,
-0.0019474029541015625,
0.038665771484375,
0.0026264190673828125,
0.06646728515625,
0.00044083595275878906,
-0.0633544921875,
-0.0181427001953125,
-0.0235748291015625,
-0.0233917236328125,
0.01522064208984375,
0.0081939697265625,
-0.057891845703125,
0.0059661865234375,
0.04327392578125,
0.037322998046875,
0.002025604248046875,
-0.038482666015625,
0.045166015625,
-0.004734039306640625,
-0.0237274169921875,
-0.005603790283203125,
0.0244903564453125,
-0.0191650390625,
0.027435302734375,
0.0012083053588867188,
0.01505279541015625,
-0.00021898746490478516,
0.0106353759765625,
-0.0579833984375,
0.09063720703125,
0.008575439453125,
0.006587982177734375,
-0.005840301513671875,
0.042877197265625,
-0.0311126708984375,
0.01593017578125,
-0.032958984375,
0.06085205078125,
0.00782012939453125,
0.0107421875,
-0.06201171875,
-0.002582550048828125,
-0.0229339599609375,
0.0226898193359375,
0.0240478515625,
0.004482269287109375,
0.007297515869140625,
0.0027484893798828125,
0.0660400390625,
0.0254058837890625,
-0.01406097412109375,
0.0032138824462890625,
-0.01325225830078125,
0.04327392578125,
0.03509521484375,
-0.006237030029296875,
0.031036376953125,
0.00659942626953125,
-0.047088623046875,
0.023834228515625,
-0.01177978515625,
-0.000017762184143066406,
-0.00994873046875,
-0.003143310546875,
0.0428466796875,
-0.035797119140625,
-0.0197296142578125,
-0.031341552734375,
-0.0090179443359375,
0.058837890625,
0.039459228515625,
-0.036651611328125,
-0.0156402587890625,
-0.0318603515625,
0.043487548828125,
0.00396728515625,
0.03765869140625,
0.0016431808471679688,
0.01290130615234375,
0.0645751953125,
-0.032562255859375,
0.02288818359375,
0.0238037109375,
-0.0305328369140625,
0.045867919921875,
0.0072021484375,
0.0079193115234375,
-0.0247955322265625,
0.023681640625,
0.017578125,
0.0472412109375,
-0.052398681640625,
-0.046112060546875,
0.015655517578125,
0.015625,
-0.01279449462890625,
0.0176239013671875,
-0.0181884765625,
0.0098114013671875,
0.057952880859375,
-0.036956787109375,
-0.001941680908203125,
0.00824737548828125,
0.0293731689453125,
-0.004261016845703125,
0.0179901123046875,
-0.038665771484375,
-0.0142059326171875,
-0.0214385986328125,
-0.00652313232421875,
-0.005496978759765625,
0.063232421875,
0.033538818359375,
0.02618408203125,
-0.033416748046875,
-0.0264739990234375,
-0.00348663330078125,
-0.0020961761474609375,
0.029022216796875,
-0.01303863525390625,
-0.0142364501953125,
0.0058441162109375,
-0.0011005401611328125,
0.01239013671875,
0.02099609375,
0.0012722015380859375,
0.004268646240234375,
0.0051116943359375,
0.0137481689453125,
-0.004306793212890625,
0.046966552734375,
-0.003253936767578125,
-0.040679931640625,
-0.030120849609375,
0.01361846923828125,
0.0439453125,
0.01543426513671875,
-0.0019130706787109375,
-0.006015777587890625,
0.057373046875,
-0.0003571510314941406,
-0.0076141357421875,
0.019378662109375,
-0.042938232421875,
0.026397705078125,
0.0201568603515625,
0.054534912109375,
0.024810791015625,
-0.098876953125,
0.0056915283203125,
-0.070556640625,
-0.073486328125,
0.03057861328125,
0.032867431640625,
-0.0190277099609375,
0.006900787353515625,
-0.0038547515869140625,
-0.039794921875,
0.01248931884765625,
0.03546142578125,
0.0034236907958984375,
0.017578125,
-0.0015125274658203125,
-0.01322174072265625,
-0.060302734375,
-0.020782470703125,
0.0077362060546875,
0.0174102783203125,
-0.03082275390625,
0.06561279296875,
0.0004696846008300781,
-0.0070953369140625,
-0.005260467529296875,
-0.019256591796875,
0.03204345703125,
-0.01568603515625,
0.05010986328125,
0.03619384765625,
-0.005779266357421875,
-0.037811279296875,
-0.01239776611328125,
-0.004238128662109375,
0.034942626953125,
-0.061859130859375,
0.00847625732421875,
-0.0025157928466796875,
0.01474761962890625,
-0.045135498046875,
-0.015716552734375,
-0.037933349609375,
-0.004180908203125,
-0.0249176025390625,
-0.0379638671875,
0.0316162109375,
-0.0032520294189453125,
0.0028514862060546875,
-0.0164947509765625,
0.02801513671875,
-0.01175689697265625,
0.0006275177001953125,
0.0298309326171875,
0.0061798095703125,
0.0482177734375,
-0.0024738311767578125,
0.01364898681640625,
0.0287017822265625,
-0.0092926025390625,
0.0294036865234375,
0.022216796875,
0.014892578125,
0.044158935546875,
-0.021514892578125,
0.0122222900390625,
0.035430908203125,
0.033782958984375,
-0.04156494140625,
0.01078033447265625,
0.04132080078125,
-0.010833740234375,
0.023345947265625,
0.01526641845703125,
-0.00931549072265625,
-0.030670166015625,
-0.0216522216796875,
-0.0023555755615234375,
-0.0233612060546875,
-0.0268402099609375,
-0.01922607421875,
0.015655517578125,
0.0421142578125,
0.0181121826171875,
-0.062255859375,
0.0289154052734375,
-0.0213165283203125,
0.03741455078125,
0.01629638671875,
-0.010223388671875,
0.02685546875,
0.059906005859375,
-0.0200653076171875,
0.009063720703125,
0.01190185546875,
-0.00917816162109375,
0.0232086181640625,
-0.00794219970703125,
0.006786346435546875,
0.01032257080078125,
-0.0124359130859375,
-0.010223388671875,
-0.0202178955078125,
0.028839111328125,
0.0167388916015625,
-0.02557373046875,
0.0211181640625,
-0.00885009765625,
-0.01308441162109375,
-0.04925537109375,
0.01168060302734375,
-0.06494140625,
-0.0081939697265625,
-0.059844970703125,
0.050384521484375,
0.054656982421875,
-0.027679443359375,
-0.08984375,
0.027923583984375,
-0.0297698974609375,
-0.0213775634765625,
-0.05645751953125,
-0.0105438232421875,
-0.01678466796875,
0.07171630859375,
-0.002513885498046875,
-0.040924072265625,
-0.032470703125,
0.043426513671875,
0.0088653564453125,
-0.00494384765625,
0.036285400390625,
-0.004680633544921875,
-0.04107666015625,
0.00707244873046875,
0.00959014892578125,
-0.00009328126907348633,
0.02471923828125,
-0.027374267578125,
0.050628662109375,
0.037811279296875,
-0.047271728515625,
-0.02410888671875,
-0.006847381591796875,
-0.002162933349609375,
0.0107269287109375,
-0.02716064453125,
-0.053802490234375,
-0.080322265625,
0.0517578125,
-0.00841522216796875,
0.01361846923828125,
0.0284881591796875,
0.0017604827880859375,
-0.00628662109375,
-0.01195526123046875,
-0.003936767578125,
-0.007183074951171875,
-0.03631591796875,
-0.0104522705078125,
-0.01239013671875,
-0.0111083984375,
0.0029125213623046875,
-0.018341064453125,
-0.023681640625,
0.0117340087890625,
0.058624267578125,
0.03961181640625,
-0.06610107421875,
0.01751708984375,
0.0626220703125,
-0.050537109375,
-0.044921875,
0.0281982421875,
-0.013885498046875,
0.01151275634765625,
0.0279998779296875,
-0.029296875,
-0.07196044921875,
-0.00713348388671875,
0.06573486328125,
-0.042755126953125,
0.0760498046875,
-0.07403564453125,
-0.0322265625,
-0.002422332763671875,
0.03289794921875,
-0.0229034423828125,
0.026458740234375,
0.018829345703125,
0.0419921875,
0.00592041015625,
0.068359375,
-0.01367950439453125,
0.0638427734375,
-0.0078582763671875,
0.008636474609375,
-0.0222625732421875,
0.01047515869140625,
-0.004924774169921875,
0.01302337646484375,
0.0015363693237304688,
-0.03558349609375,
-0.0516357421875,
-0.0241241455078125,
-0.003082275390625,
0.0278472900390625,
-0.05389404296875,
0.025665283203125
] |
7897e5f5e36fa6878004f0ad0d65b7a63397659f
|
Wordpress Stackexchange
Q: urlencoding of the_title() doesn't work? hey guys,
<?php urlencode(the_title()); ?>doesn't take effect.
this is my entrie line of code:
<li><a href="mailto:?subject=<?php urlencode(the_title()); ?>&body=<?php the_permalink(); ?>">e-mail</a></li>
I don't want to have spaces in the_title(). Why does urlencode not work for me?
A: The the_title() echo the title. You must use get_the_title() instead. get_the_title() returns the title as string. Use
<? echo urlencode(get_the_title()) ?>
|
Q: urlencoding of the_title() doesn't work? hey guys,
<?php urlencode(the_title()); ?>doesn't take effect.
this is my entrie line of code:
<li><a href="mailto:?subject=<?php urlencode(the_title()); ?>&body=<?php the_permalink(); ?>">e-mail</a></li>
I don't want to have spaces in the_title(). Why does urlencode not work for me?
A: The the_title() echo the title. You must use get_the_title() instead. get_the_title() returns the title as string. Use
<? echo urlencode(get_the_title()) ?>
|
wordpress
|
{
"language": "en",
"length": 63,
"provenance": "stackexchange_00019.jsonl.gz:408415",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14114"
}
|
[
-0.00836944580078125,
-0.0276031494140625,
0.043304443359375,
0.0214691162109375,
-0.035736083984375,
-0.0164642333984375,
0.044281005859375,
-0.0391845703125,
0.0309906005859375,
0.041412353515625,
0.007598876953125,
-0.0166778564453125,
-0.0013866424560546875,
-0.027496337890625,
-0.048248291015625,
-0.010284423828125,
0.00168609619140625,
0.0109100341796875,
0.0220489501953125,
-0.0249786376953125,
0.0203857421875,
-0.01561737060546875,
0.00533294677734375,
0.0022144317626953125,
-0.00804901123046875,
-0.0187530517578125,
0.11920166015625,
-0.0207061767578125,
-0.0106353759765625,
-0.048583984375,
0.01239013671875,
0.02423095703125,
0.034637451171875,
0.0163116455078125,
-0.03656005859375,
0.0121002197265625,
0.000013053417205810547,
-0.0162200927734375,
-0.0128631591796875,
0.026031494140625,
-0.006031036376953125,
0.0005617141723632812,
0.044525146484375,
-0.034637451171875,
0.009033203125,
-0.0174560546875,
0.031585693359375,
-0.01416015625,
-0.02532958984375,
0.0020694732666015625,
0.021697998046875,
0.0009279251098632812,
0.032135009765625,
0.0188751220703125,
0.00521087646484375,
0.00536346435546875,
-0.0178375244140625,
0.0037784576416015625,
0.0238494873046875,
-0.03875732421875,
-0.0341796875,
0.007579803466796875,
0.019012451171875,
0.004367828369140625,
-0.0194854736328125,
0.04193115234375,
0.0302581787109375,
-0.004024505615234375,
-0.01348876953125,
-0.03472900390625,
-0.011383056640625,
-0.0350341796875,
0.00807952880859375,
-0.07708740234375,
-0.01464080810546875,
0.032196044921875,
-0.056793212890625,
-0.050018310546875,
0.0269012451171875,
-0.0399169921875,
0.06195068359375,
0.0003635883331298828,
-0.038360595703125,
0.0266571044921875,
-0.0203094482421875,
0.0053558349609375,
0.005786895751953125,
-0.0291748046875,
-0.003513336181640625,
-0.007419586181640625,
-0.0209197998046875,
-0.005474090576171875,
-0.00913238525390625,
-0.0047760009765625,
-0.0107574462890625,
-0.0194549560546875,
0.01548004150390625,
0.06781005859375,
-0.0027599334716796875,
0.024688720703125,
-0.0205535888671875,
-0.0228271484375,
0.0125732421875,
-0.036895751953125,
0.007518768310546875,
-0.006488800048828125,
0.007122039794921875,
-0.0134124755859375,
0.0186004638671875,
0.01361846923828125,
-0.04345703125,
-0.0029125213623046875,
-0.0201416015625,
-0.0185546875,
0.02471923828125,
0.0019702911376953125,
-0.0782470703125,
0.057342529296875,
0.0012226104736328125,
0.0081939697265625,
-0.0016574859619140625,
0.0088653564453125,
0.034912109375,
-0.01568603515625,
-0.0042266845703125,
0.0138397216796875,
0.008026123046875,
-0.0762939453125,
-0.0020122528076171875,
0.0014324188232421875,
-0.0159454345703125,
0.0192413330078125,
0.021636962890625,
0.020294189453125,
-0.0080108642578125,
-0.0218963623046875,
-0.050872802734375,
-0.032684326171875,
-0.02960205078125,
0.0170440673828125,
-0.02325439453125,
0.0018329620361328125,
0.060333251953125,
-0.0430908203125,
-0.022430419921875,
0.022918701171875,
-0.006778717041015625,
0.004425048828125,
0.0167999267578125,
-0.05810546875,
-0.0211181640625,
-0.051605224609375,
0.034332275390625,
0.007076263427734375,
-0.0198516845703125,
-0.012969970703125,
0.0094451904296875,
-0.03369140625,
-0.00337982177734375,
-0.044464111328125,
0.0128936767578125,
-0.0080718994140625,
-0.0010671615600585938,
-0.0003311634063720703,
-0.0277862548828125,
-0.000598907470703125,
-0.040771484375,
-0.0163116455078125,
0.002719879150390625,
-0.00661468505859375,
0.01006317138671875,
0.0170745849609375,
-0.05255126953125,
-0.0256195068359375,
-0.003833770751953125,
-0.0210723876953125,
-0.02642822265625,
0.00846099853515625,
0.0146484375,
0.0299072265625,
-0.004047393798828125,
-0.03143310546875,
0.015899658203125,
-0.01202392578125,
-0.042083740234375,
0.05645751953125,
0.0235137939453125,
0.0235137939453125,
-0.0103302001953125,
-0.009552001953125,
0.044647216796875,
0.083740234375,
-0.0191802978515625,
0.0188751220703125,
-0.0419921875,
-0.02032470703125,
0.00818634033203125,
0.0173187255859375,
-0.0226593017578125,
0.002960205078125,
0.0242462158203125,
-0.0428466796875,
0.036102294921875,
0.0160980224609375,
0.027587890625,
-0.0156402587890625,
0.0151214599609375,
-0.015106201171875,
-0.0195159912109375,
0.00962066650390625,
0.022918701171875,
0.005123138427734375,
-0.03619384765625,
-0.03009033203125,
-0.02947998046875,
0.0164794921875,
-0.027801513671875,
-0.0140838623046875,
-0.0168609619140625,
0.0022678375244140625,
-0.01154327392578125,
-0.01004791259765625,
-0.0221099853515625,
0.034271240234375,
0.051971435546875,
-0.0173492431640625,
-0.01457977294921875,
-0.00791168212890625,
0.0270233154296875,
-0.0079498291015625,
-0.04119873046875,
0.042266845703125,
0.024139404296875,
0.00693511962890625,
-0.0458984375,
0.00490570068359375,
-0.0175933837890625,
-0.0291595458984375,
-0.00934600830078125,
0.04522705078125,
0.035369873046875,
0.007137298583984375,
-0.0166168212890625,
-0.03338623046875,
0.02349853515625,
0.0011301040649414062,
0.039703369140625,
-0.0438232421875,
-0.006252288818359375,
0.046844482421875,
-0.005023956298828125,
0.0182647705078125,
0.00997161865234375,
-0.05755615234375,
-0.012359619140625,
0.049224853515625,
-0.0128326416015625,
-0.0274505615234375,
-0.002109527587890625,
0.0249481201171875,
-0.0002231597900390625,
0.034149169921875,
0.0157928466796875,
0.0205230712890625,
-0.0093994140625,
0.009979248046875,
0.002803802490234375,
0.01361083984375,
-0.0225372314453125,
-0.00742340087890625,
0.018585205078125,
0.049713134765625,
-0.00927734375,
0.07598876953125,
0.033966064453125,
0.0235595703125,
-0.04443359375,
-0.01287078857421875,
0.0003819465637207031,
0.037872314453125,
0.017486572265625,
0.0010004043579101562,
0.006450653076171875,
-0.0170135498046875,
0.03662109375,
-0.00994873046875,
0.0005474090576171875,
0.0009832382202148438,
0.03314208984375,
0.00861358642578125,
0.0177154541015625,
0.04608154296875,
0.01343536376953125,
0.0297698974609375,
0.053802490234375,
-0.006320953369140625,
0.06231689453125,
0.0037212371826171875,
0.00988006591796875,
-0.02593994140625,
0.054046630859375,
0.03509521484375,
-0.0167388916015625,
-0.0172576904296875,
0.007083892822265625,
-0.034423828125,
0.00238800048828125,
0.014556884765625,
0.0034809112548828125,
-0.00513458251953125,
-0.04705810546875,
0.0115814208984375,
0.0083465576171875,
0.051513671875,
-0.03265380859375,
-0.0533447265625,
-0.0200958251953125,
0.01678466796875,
-0.11871337890625,
-0.07177734375,
0.03521728515625,
-0.0726318359375,
-0.0010004043579101562,
-0.01529693603515625,
-0.03173828125,
0.005558013916015625,
0.017578125,
-0.00527191162109375,
0.053863525390625,
-0.04437255859375,
-0.05950927734375,
-0.034759521484375,
-0.073486328125,
-0.023345947265625,
0.00897979736328125,
0.01067352294921875,
-0.01201629638671875,
-0.046875,
-0.01837158203125,
-0.02294921875,
-0.0011320114135742188,
0.062744140625,
0.0423583984375,
-0.0087127685546875,
-0.030181884765625,
0.036407470703125,
-0.036590576171875,
0.01207733154296875,
0.023345947265625,
0.0011281967163085938,
-0.007610321044921875,
-0.0074920654296875,
0.024810791015625,
0.04583740234375,
0.035980224609375,
0.0265655517578125,
-0.0148468017578125,
0.0257110595703125,
0.028411865234375,
-0.046356201171875,
-0.03387451171875,
-0.032470703125,
-0.058868408203125,
0.039520263671875,
0.0467529296875,
0.005176544189453125,
-0.00617218017578125,
0.028289794921875,
0.00922393798828125,
0.04052734375,
0.0022296905517578125,
-0.004337310791015625,
-0.019012451171875,
-0.01061248779296875,
-0.00665283203125,
-0.0007853507995605469,
0.036956787109375,
0.01129150390625,
0.0182037353515625,
0.0184326171875,
0.0255126953125,
-0.0185089111328125,
0.0367431640625,
-0.07794189453125,
-0.0369873046875,
0.041046142578125,
-0.022247314453125,
0.003452301025390625,
-0.022735595703125,
-0.023162841796875,
-0.00870513916015625,
0.06927490234375,
-0.01482391357421875,
-0.043426513671875,
-0.01049041748046875,
0.035552978515625,
-0.052215576171875,
-0.0214080810546875,
0.0235137939453125,
-0.008636474609375,
-0.032501220703125,
0.004077911376953125,
-0.0233306884765625,
-0.0032958984375,
-0.007709503173828125,
0.04132080078125,
0.01456451416015625,
-0.025299072265625,
0.006008148193359375,
0.01500701904296875,
0.0157318115234375,
-0.0245361328125,
-0.003398895263671875,
-0.0247955322265625,
0.01010894775390625,
-0.0219879150390625,
-0.07305908203125,
-0.0246734619140625,
0.0300140380859375,
0.056427001953125,
-0.04180908203125,
0.0029926300048828125,
-0.055084228515625,
0.04058837890625,
0.02972412109375,
-0.0020999908447265625,
0.01062774658203125,
-0.045257568359375,
-0.006809234619140625,
0.0755615234375,
0.02471923828125,
-0.003780364990234375,
0.00634765625,
0.015869140625,
-0.0654296875,
0.0283660888671875,
-0.0178375244140625,
-0.0018968582153320312,
0.02001953125,
-0.047576904296875,
-0.0760498046875,
-0.00876617431640625,
0.0191802978515625,
-0.007568359375,
0.0175933837890625,
-0.00600433349609375,
0.0006160736083984375,
-0.05517578125,
0.040130615234375,
0.003932952880859375,
-0.03533935546875,
0.0047454833984375,
0.0191192626953125,
0.006008148193359375,
-0.0467529296875,
-0.00656890869140625,
-0.010223388671875,
0.042144775390625,
-0.0021038055419921875,
0.0220947265625,
0.0055999755859375,
-0.056976318359375,
0.07586669921875,
0.0025005340576171875,
0.0267486572265625,
-0.00586700439453125,
0.0167694091796875,
-0.0057830810546875,
-0.01070404052734375,
0.007251739501953125,
-0.0028476715087890625,
0.00959014892578125,
-0.0134124755859375,
0.009735107421875,
-0.01201629638671875,
0.0232391357421875,
-0.00879669189453125,
0.0092010498046875,
0.0193939208984375,
0.00885772705078125,
-0.056640625,
0.0290985107421875,
-0.033416748046875,
-0.0234375,
-0.0037689208984375,
0.006572723388671875,
-0.007587432861328125,
-0.0060577392578125,
0.0312347412109375,
-0.05877685546875,
-0.017547607421875,
-0.046600341796875,
0.064208984375,
-0.068115234375,
0.00913238525390625,
-0.0118560791015625,
-0.00908660888671875,
0.052093505859375,
0.02716064453125,
0.003143310546875,
-0.00043654441833496094,
-0.005107879638671875,
-0.0217132568359375,
-0.02288818359375,
0.044158935546875,
0.009552001953125,
0.0214080810546875,
0.01495361328125,
0.013671875,
0.04119873046875,
0.010101318359375,
0.004062652587890625,
0.0474853515625,
0.048065185546875,
-0.0099639892578125,
-0.01355743408203125,
0.09051513671875,
0.0264434814453125,
0.04150390625,
-0.0210723876953125,
-0.0030059814453125,
0.031890869140625,
0.025390625,
0.0201568603515625,
-0.032012939453125,
-0.004364013671875,
0.0226898193359375,
0.0207061767578125,
-0.0214385986328125,
-0.0211029052734375,
0.04010009765625,
0.045379638671875,
0.01666259765625,
0.01473236083984375,
-0.021453857421875,
-0.01544189453125,
-0.01464080810546875,
0.029449462890625,
-0.006160736083984375,
-0.033233642578125,
-0.040191650390625,
-0.01348876953125,
0.00556182861328125,
0.004913330078125,
-0.00849151611328125,
-0.0006885528564453125,
-0.0153656005859375,
0.0457763671875,
0.029052734375,
0.0193634033203125,
-0.0096435546875,
-0.033935546875,
0.051483154296875,
-0.032379150390625,
-0.0021514892578125,
0.05450439453125,
0.044403076171875,
-0.04193115234375,
-0.0161285400390625,
0.053680419921875,
-0.0063018798828125,
0.05145263671875,
-0.064208984375,
0.00409698486328125,
-0.010772705078125,
-0.01201629638671875,
0.053314208984375,
0.028656005859375,
-0.04986572265625,
0.0263519287109375,
-0.0274658203125,
0.0143585205078125,
0.01447296142578125,
-0.038177490234375,
-0.050140380859375,
-0.0638427734375,
0.0086669921875,
0.00283050537109375,
0.0026149749755859375,
0.0005960464477539062,
-0.016143798828125,
0.036376953125,
0.0115203857421875,
0.067626953125,
-0.0222930908203125,
0.047454833984375,
0.01467132568359375,
0.046844482421875,
-0.03131103515625,
-0.0099945068359375,
-0.0215606689453125,
0.00360107421875,
-0.005847930908203125,
-0.01032257080078125,
-0.0285491943359375,
-0.01373291015625,
0.052398681640625,
0.0274200439453125,
0.05035400390625,
-0.0036468505859375,
0.007274627685546875,
-0.0150604248046875,
-0.0006732940673828125,
-0.0202484130859375,
0.021484375,
-0.026214599609375,
-0.060089111328125,
0.020233154296875,
-0.02490234375,
0.031829833984375,
0.00450897216796875,
-0.006191253662109375,
0.028717041015625,
-0.0220184326171875,
0.0030841827392578125,
0.07073974609375,
-0.0413818359375,
0.02069091796875,
0.0931396484375,
0.043060302734375,
0.04852294921875,
-0.0216064453125,
0.0138092041015625,
0.029632568359375,
-0.016082763671875,
0.01134490966796875,
-0.0097198486328125,
0.0201263427734375,
-0.01259613037109375,
0.0232086181640625,
0.00797271728515625,
-0.00518035888671875,
0.0014514923095703125,
0.09368896484375,
0.08056640625,
-0.08514404296875,
-0.02716064453125,
0.0073699951171875,
-0.00885772705078125,
0.02154541015625,
-0.0199432373046875,
0.0192413330078125,
-0.00875091552734375,
0.023468017578125,
-0.0237884521484375,
-0.009124755859375,
0.00962066650390625,
-0.0199432373046875,
-0.0092010498046875,
0.01279449462890625,
0.05535888671875,
0.017333984375,
-0.07330322265625,
-0.015228271484375,
0.042236328125,
0.0081024169921875,
-0.02978515625,
-0.0167388916015625,
0.02520751953125,
-0.044342041015625,
-0.03857421875,
0.01971435546875,
0.0172882080078125,
0.0195770263671875,
-0.006244659423828125,
-0.0256195068359375,
0.03985595703125,
0.043304443359375,
-0.019317626953125,
-0.01103973388671875,
0.035797119140625,
-0.0224456787109375,
0.01000213623046875,
-0.0247802734375,
0.01971435546875,
0.04339599609375,
-0.0283050537109375,
0.014617919921875,
0.010498046875,
-0.0287628173828125,
-0.0008225440979003906,
0.0247650146484375,
0.0467529296875,
0.0015583038330078125,
-0.058837890625,
0.01030731201171875,
-0.006076812744140625,
-0.0001373291015625,
0.00275421142578125,
0.01593017578125,
-0.0209503173828125,
0.03363037109375,
-0.007328033447265625,
-0.0195159912109375,
0.00943756103515625,
-0.00421142578125,
-0.06903076171875,
0.08160400390625,
-0.01071929931640625,
0.03900146484375,
0.001953125,
0.0098724365234375,
-0.005970001220703125,
-0.0018777847290039062,
-0.040313720703125,
0.06951904296875,
-0.03997802734375,
0.005435943603515625,
-0.0012359619140625,
0.02435302734375,
-0.0005202293395996094,
-0.04998779296875,
-0.0140380859375,
-0.00901031494140625,
-0.045196533203125,
-0.0117034912109375,
0.036895751953125,
0.054656982421875,
0.043487548828125,
0.0008130073547363281,
0.022552490234375,
0.0423583984375,
0.05499267578125,
-0.03546142578125,
0.0125579833984375,
0.0186309814453125,
0.006801605224609375,
0.06878662109375,
0.0021457672119140625,
-0.0099945068359375,
0.019134521484375,
-0.0523681640625,
-0.06951904296875,
0.0268402099609375,
0.0335693359375,
-0.050689697265625,
-0.0013818740844726562,
0.048187255859375,
0.037994384765625,
-0.07513427734375,
0.003887176513671875,
-0.060943603515625,
0.055755615234375,
0.0025043487548828125,
0.01081085205078125,
0.06982421875,
0.0244293212890625,
0.0301971435546875,
-0.0200653076171875,
0.007476806640625,
-0.047943115234375,
0.0238494873046875,
0.0268707275390625,
0.0171356201171875,
-0.0009455680847167969,
-0.058502197265625,
-0.03668212890625,
0.039398193359375,
0.05438232421875,
-0.034942626953125,
0.0265960693359375,
0.0017671585083007812,
0.004528045654296875,
0.023468017578125,
-0.05682373046875,
0.0285797119140625,
-0.004604339599609375,
-0.0258026123046875,
-0.0019683837890625,
-0.0002808570861816406,
0.0330810546875,
0.030548095703125,
0.018707275390625,
0.0118865966796875,
-0.04986572265625,
-0.0136871337890625,
-0.04779052734375,
0.02392578125,
0.01534271240234375,
0.07135009765625,
0.035552978515625,
0.050689697265625,
-0.0736083984375,
-0.04412841796875,
0.0160675048828125,
0.0194091796875,
-0.01427459716796875,
-0.020843505859375,
-0.0087432861328125,
-0.0002903938293457031,
-0.032623291015625,
0.0088653564453125,
0.024658203125,
0.040008544921875,
0.044403076171875,
-0.00074005126953125,
-0.0010404586791992188,
0.0037326812744140625,
-0.027435302734375,
-0.02923583984375,
0.03485107421875,
-0.0198974609375,
0.039093017578125,
0.0142669677734375,
-0.01213836669921875,
-0.0150604248046875,
0.04107666015625,
0.02069091796875,
-0.042327880859375,
0.050750732421875,
-0.02081298828125,
-0.019805908203125,
0.0164947509765625,
0.0033473968505859375,
0.03839111328125,
-0.016326904296875,
-0.060302734375,
-0.0175018310546875,
0.0292816162109375,
-0.06591796875,
-0.0031642913818359375,
0.036041259765625,
-0.0148162841796875,
0.0081634521484375,
0.01158905029296875,
-0.01201629638671875,
0.03472900390625,
0.0258026123046875,
-0.03271484375,
0.0097503662109375,
0.032257080078125,
-0.0176849365234375,
-0.054107666015625,
-0.0184173583984375,
-0.0213623046875,
0.0369873046875,
-0.01666259765625,
0.02154541015625,
0.0015840530395507812,
0.0343017578125,
-0.0162506103515625,
0.0089263916015625,
-0.03497314453125,
0.00563812255859375,
-0.0088958740234375,
-0.0245819091796875,
-0.0100250244140625,
-0.0030460357666015625,
-0.052703857421875,
0.0297088623046875,
0.01322174072265625,
-0.003108978271484375,
0.062225341796875,
-0.03216552734375,
-0.0184783935546875,
-0.04071044921875,
0.0164642333984375,
-0.0194549560546875,
-0.0028095245361328125,
-0.0036830902099609375,
0.0036983489990234375,
0.04522705078125,
0.04119873046875,
-0.005107879638671875,
-0.0237274169921875,
-0.018402099609375,
-0.06829833984375,
0.035003662109375,
-0.042144775390625,
0.032012939453125,
0.0367431640625,
-0.006809234619140625,
0.0178985595703125,
-0.0157928466796875,
-0.0184478759765625,
0.0023937225341796875,
0.01641845703125,
-0.03253173828125,
0.00348663330078125,
-0.0250091552734375,
-0.0249481201171875,
-0.0110321044921875,
0.032806396484375,
0.002582550048828125,
0.0157623291015625,
-0.0146484375,
-0.009307861328125,
-0.004848480224609375,
-0.033111572265625,
-0.01279449462890625,
-0.052703857421875,
-0.00988006591796875,
0.013702392578125,
-0.030242919921875,
-0.0017986297607421875,
0.0141754150390625,
-0.0157318115234375,
-0.0234375,
-0.041595458984375,
0.0579833984375,
-0.042572021484375,
-0.0206756591796875,
-0.01026153564453125,
-0.04730224609375,
0.0240936279296875,
0.0167083740234375,
0.0113983154296875,
-0.08453369140625,
-0.037139892578125,
-0.03948974609375,
0.00467681884765625,
-0.056915283203125,
-0.007415771484375,
0.0265655517578125,
-0.0213623046875,
-0.09014892578125,
0.00609588623046875,
-0.0009207725524902344,
0.0246124267578125,
0.0210723876953125,
-0.05157470703125,
-0.00951385498046875,
-0.00601959228515625,
0.0117950439453125,
-0.0120391845703125,
0.0163421630859375,
-0.07696533203125,
-0.00643157958984375,
-0.0047454833984375,
-0.0234832763671875,
-0.029541015625,
-0.038177490234375,
-0.0246429443359375,
0.031341552734375,
0.0173187255859375,
-0.016448974609375,
-0.01500701904296875,
-0.01294708251953125,
-0.00229644775390625,
0.04217529296875,
0.00438690185546875,
-0.0175628662109375,
-0.033172607421875,
0.004734039306640625,
0.01395416259765625,
0.084716796875,
0.00812530517578125,
0.0205230712890625,
-0.005962371826171875,
0.018524169921875,
-0.0300750732421875,
-0.003772735595703125,
0.0255584716796875,
-0.0284576416015625,
0.03033447265625,
0.01404571533203125,
-0.05364990234375,
-0.0210418701171875,
-0.010894775390625,
0.006244659423828125,
-0.0216064453125,
-0.006153106689453125,
-0.0296173095703125,
-0.003566741943359375,
0.04412841796875,
0.06549072265625,
0.006572723388671875,
-0.03448486328125,
0.016143798828125,
0.027862548828125,
-0.0199432373046875,
-0.003597259521484375,
0.0277862548828125,
-0.07171630859375,
-0.0465087890625,
0.0024204254150390625,
-0.0242462158203125,
0.005626678466796875,
-0.035675048828125,
-0.033050537109375,
-0.0020732879638671875,
-0.0281982421875,
0.0182037353515625,
-0.00719451904296875,
-0.03515625,
0.09149169921875,
-0.06719970703125,
-0.0113525390625,
0.0303192138671875,
0.018951416015625,
0.030426025390625,
0.0063323974609375,
0.0259552001953125,
0.02545166015625,
0.0115509033203125,
-0.018310546875,
0.040924072265625,
0.0247650146484375,
0.02545166015625,
-0.040130615234375,
-0.021148681640625,
0.03857421875,
0.0034961700439453125,
0.03302001953125,
-0.00952911376953125,
0.036346435546875,
0.015228271484375,
0.04766845703125,
-0.0565185546875,
-0.004131317138671875,
-0.0156097412109375,
0.014373779296875,
-0.026031494140625,
0.021240234375,
0.03253173828125,
-0.01474761962890625,
0.019561767578125,
-0.001750946044921875,
0.07177734375,
-0.0177154541015625,
0.01258087158203125,
-0.09710693359375,
0.0114898681640625,
0.0093231201171875
] |
48186ad03f061664581d7a91b9318a6e5b8479ee
|
Wordpress Stackexchange
Q: How to Get Next or Previous Post in a Specific Tag? I'm trying to create links to the next and previous posts within a specific tag (on the post page itself), but I can't seem to find a plugin or source that does this.
I want to be able to something like this, appearing below the post.
get_previous_link("tagname");
get_next_link("tagname");
Anybody know of a way to accomplish this? Otherwise I'll have to write something myself, which is fine, but I figured I wouldn't reinvent the wheel unless I have to.
A: get_adjacent_post(), which is used by all functions that return a (link to) the next or previous post, only has a $in_same_cat argument, which looks at the categories the post is in, not the tags.
You could hook into the get_[next|previous]_post_join to modify the join query for your call, but then it's probably easier to copy the function, remove the category-specific code and replace it with tag-specific code. Or make it even more generic and submit it as a patch to WordPress :-)
|
Q: How to Get Next or Previous Post in a Specific Tag? I'm trying to create links to the next and previous posts within a specific tag (on the post page itself), but I can't seem to find a plugin or source that does this.
I want to be able to something like this, appearing below the post.
get_previous_link("tagname");
get_next_link("tagname");
Anybody know of a way to accomplish this? Otherwise I'll have to write something myself, which is fine, but I figured I wouldn't reinvent the wheel unless I have to.
A: get_adjacent_post(), which is used by all functions that return a (link to) the next or previous post, only has a $in_same_cat argument, which looks at the categories the post is in, not the tags.
You could hook into the get_[next|previous]_post_join to modify the join query for your call, but then it's probably easier to copy the function, remove the category-specific code and replace it with tag-specific code. Or make it even more generic and submit it as a patch to WordPress :-)
A: Does this work for that problem? http://digwp.com/2010/04/post-navigation-outside-loop/
The code in that post works for "Archive-View Pages" & "Single-View Pages" :P
A: Here's a version of the copy/paste edit that @Jan Fabry alluded to above (definitely not the most elegant solution, but it should work):
/**
* Retrieve adjacent post.
*
* Can either be next or previous post.
*
*
* @param bool $in_same_tag Optional. Whether post should be in same category.
* @param string $excluded_tags Optional. Excluded tags IDs.
* @param bool $previous Optional. Whether to retrieve previous post.
* @return mixed Post object if successful. Null if global $post is not set. Empty string if no corresponding post exists.
*/
function get_adjacent_post_by_tag($in_same_tag = false, $excluded_tags = '', $previous = true) {
global $post, $wpdb;
if ( empty( $post ) )
return null;
$current_post_date = $post->post_date;
$join = '';
$posts_in_ex_tags_sql = '';
if ( $in_same_tag || !empty($excluded_tags) ) {
$join = " INNER JOIN $wpdb->term_relationships AS tr ON p.ID = tr.object_id INNER JOIN $wpdb->term_taxonomy tt ON tr.term_taxonomy_id = tt.term_taxonomy_id";
if ( $in_same_tag ) {
$tag_array = wp_get_object_terms($post->ID, 'post_tag', array('fields' => 'ids'));
$join .= " AND tt.taxonomy = 'post_tag' AND tt.term_id IN (" . implode(',', $tag_array) . ")";
}
$posts_in_ex_tags_sql = "AND tt.taxonomy = 'post_tag'";
if ( !empty($excluded_tags) ) {
$excluded_tags = array_map('intval', explode(' and ', $excluded_tags));
if ( !empty($tag_array) ) {
$excluded_tags = array_diff($excluded_tags, $tag_array);
$posts_in_ex_tags_sql = '';
}
if ( !empty($excluded_tags) ) {
$posts_in_ex_tags_sql = " AND tt.taxonomy = 'post_tag' AND tt.term_id NOT IN (" . implode($excluded_tags, ',') . ')';
}
}
}
$adjacent = $previous ? 'previous' : 'next';
$op = $previous ? '<' : '>';
$order = $previous ? 'DESC' : 'ASC';
$join = apply_filters( "get_{$adjacent}_post_join", $join, $in_same_tag, $excluded_tags );
$where = apply_filters( "get_{$adjacent}_post_where", $wpdb->prepare("WHERE p.post_date $op %s AND p.post_type = %s AND p.post_status = 'publish' $posts_in_ex_tags_sql", $current_post_date, $post->post_type), $in_same_tag, $excluded_tags );
$sort = apply_filters( "get_{$adjacent}_post_sort", "ORDER BY p.post_date $order LIMIT 1" );
$query = "SELECT p.* FROM $wpdb->posts AS p $join $where $sort";
$query_key = 'adjacent_post_' . md5($query);
$result = wp_cache_get($query_key, 'counts');
if ( false !== $result )
return $result;
$result = $wpdb->get_row("SELECT p.* FROM $wpdb->posts AS p $join $where $sort");
if ( null === $result )
$result = '';
wp_cache_set($query_key, $result, 'counts');
return $result;
}
|
wordpress
|
{
"language": "en",
"length": 545,
"provenance": "stackexchange_00019.jsonl.gz:408429",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14150"
}
|
[
0.0772705078125,
-0.0171051025390625,
0.04302978515625,
0.0028438568115234375,
0.005611419677734375,
-0.0249176025390625,
0.06494140625,
-0.051727294921875,
-0.01428985595703125,
0.0357666015625,
-0.057891845703125,
0.03759765625,
0.0008087158203125,
0.0081787109375,
-0.0057525634765625,
-0.0391845703125,
0.043609619140625,
-0.0188140869140625,
0.0384521484375,
-0.00756072998046875,
0.0142364501953125,
0.01514434814453125,
0.07080078125,
0.055450439453125,
0.0111846923828125,
0.042388916015625,
0.075439453125,
-0.036285400390625,
0.03948974609375,
-0.00916290283203125,
0.031494140625,
-0.0718994140625,
0.01812744140625,
0.010009765625,
-0.007038116455078125,
-0.0638427734375,
-0.01922607421875,
-0.0018548965454101562,
-0.0050048828125,
0.0059051513671875,
0.023956298828125,
0.00041866302490234375,
-0.00018489360809326172,
-0.0087127685546875,
-0.0106658935546875,
-0.0170135498046875,
0.0141448974609375,
-0.037689208984375,
0.01045989990234375,
-0.021392822265625,
0.004425048828125,
-0.0137786865234375,
0.0194854736328125,
-0.00969696044921875,
-0.0268096923828125,
-0.02813720703125,
-0.0272369384765625,
-0.013702392578125,
0.0220947265625,
-0.01171875,
-0.013885498046875,
-0.0253143310546875,
0.0252227783203125,
0.004024505615234375,
-0.0062255859375,
0.01073455810546875,
0.060546875,
0.00556182861328125,
-0.0225982666015625,
-0.009124755859375,
0.037841796875,
-0.007320404052734375,
-0.005847930908203125,
0.00397491455078125,
-0.0175628662109375,
-0.0276947021484375,
0.0154876708984375,
-0.0247650146484375,
0.0018644332885742188,
0.01690673828125,
-0.0301666259765625,
0.016510009765625,
-0.019927978515625,
-0.03515625,
-0.00030612945556640625,
-0.0267181396484375,
-0.02764892578125,
0.002483367919921875,
-0.051910400390625,
-0.03460693359375,
-0.04486083984375,
-0.02935791015625,
-0.00018417835235595703,
-0.02484130859375,
-0.04791259765625,
0.003002166748046875,
0.051483154296875,
0.03790283203125,
0.01000213623046875,
-0.0016450881958007812,
0.00006437301635742188,
-0.051605224609375,
0.006885528564453125,
-0.016387939453125,
0.01110076904296875,
0.033721923828125,
-0.00583648681640625,
0.0081024169921875,
0.053619384765625,
0.0275421142578125,
0.003337860107421875,
0.0357666015625,
-0.00011587142944335938,
0.00254058837890625,
-0.040008544921875,
0.026336669921875,
-0.0170135498046875,
-0.00738525390625,
-0.0036830902099609375,
0.026702880859375,
-0.007190704345703125,
0.0233154296875,
-0.0293121337890625,
0.00296783447265625,
0.0260772705078125,
0.0166015625,
0.007480621337890625,
-0.01128387451171875,
0.0260772705078125,
0.025634765625,
-0.0143280029296875,
0.0169219970703125,
0.02313232421875,
-0.0103759765625,
-0.009368896484375,
-0.01385498046875,
-0.0033359527587890625,
-0.053192138671875,
-0.0205841064453125,
0.0104827880859375,
-0.036285400390625,
-0.024871826171875,
0.01959228515625,
-0.050384521484375,
0.03070068359375,
0.0166473388671875,
0.0092926025390625,
0.007221221923828125,
0.0020771026611328125,
-0.02392578125,
0.032012939453125,
-0.034454345703125,
0.0307159423828125,
-0.0205535888671875,
-0.0246429443359375,
-0.04052734375,
-0.0144195556640625,
-0.0145721435546875,
0.01123046875,
-0.033782958984375,
0.04168701171875,
0.016754150390625,
0.0169219970703125,
-0.0228118896484375,
-0.048065185546875,
-0.0300445556640625,
-0.08782958984375,
-0.0213165283203125,
0.0350341796875,
0.055816650390625,
0.051055908203125,
-0.0267181396484375,
0.02679443359375,
0.00827789306640625,
-0.01284027099609375,
-0.00926971435546875,
0.00624847412109375,
-0.017974853515625,
-0.0030803680419921875,
0.0789794921875,
0.01172637939453125,
-0.0276031494140625,
0.0163116455078125,
-0.012725830078125,
-0.04522705078125,
0.04632568359375,
0.015716552734375,
0.05853271484375,
0.00518798828125,
0.016693115234375,
0.022064208984375,
0.01142120361328125,
-0.044219970703125,
0.02044677734375,
-0.01462554931640625,
-0.01311492919921875,
0.046112060546875,
0.0230255126953125,
0.00118255615234375,
-0.02569580078125,
-0.01461029052734375,
0.041534423828125,
-0.0237579345703125,
0.0211639404296875,
-0.0333251953125,
0.02978515625,
-0.0189056396484375,
0.048858642578125,
-0.0196990966796875,
0.00789642333984375,
0.020660400390625,
-0.0231170654296875,
-0.0035953521728515625,
-0.05450439453125,
-0.018035888671875,
0.012298583984375,
-0.00757598876953125,
-0.0197601318359375,
0.01134490966796875,
-0.0112457275390625,
0.0117034912109375,
0.022705078125,
-0.021514892578125,
-0.01076507568359375,
0.031646728515625,
-0.00797271728515625,
-0.01363372802734375,
-0.0209197998046875,
-0.0277862548828125,
0.05194091796875,
-0.11151123046875,
0.01546478271484375,
0.0150299072265625,
0.00702667236328125,
-0.01238250732421875,
0.0236968994140625,
0.06256103515625,
-0.007724761962890625,
0.0113983154296875,
0.01039886474609375,
0.0246124267578125,
0.0114898681640625,
0.0022907257080078125,
0.016143798828125,
0.0087127685546875,
-0.05657958984375,
0.01546478271484375,
0.0025882720947265625,
-0.005954742431640625,
0.03240966796875,
0.023406982421875,
0.01290130615234375,
0.017059326171875,
0.04022216796875,
0.003360748291015625,
0.0134735107421875,
0.0214080810546875,
0.01262664794921875,
0.0064849853515625,
-0.01532745361328125,
0.0047454833984375,
-0.0237884521484375,
-0.039947509765625,
-0.02679443359375,
0.040130615234375,
-0.021331787109375,
0.04071044921875,
0.028656005859375,
-0.010040283203125,
-0.03125,
0.0019130706787109375,
0.023773193359375,
0.01495361328125,
0.0084991455078125,
-0.016357421875,
-0.0193023681640625,
-0.01507568359375,
-0.0103607177734375,
0.0299835205078125,
-0.0107574462890625,
-0.007053375244140625,
0.04095458984375,
0.017791748046875,
-0.0160675048828125,
-0.0208282470703125,
-0.0709228515625,
0.00997161865234375,
0.012115478515625,
-0.0338134765625,
-0.0012483596801757812,
0.00981903076171875,
0.0478515625,
-0.039154052734375,
0.050201416015625,
-0.0203857421875,
0.0149078369140625,
-0.057647705078125,
-0.055908203125,
0.036895751953125,
-0.055084228515625,
0.034820556640625,
0.062225341796875,
0.0007448196411132812,
0.007152557373046875,
0.0009226799011230469,
0.01727294921875,
0.00887298583984375,
-0.0193634033203125,
-0.033233642578125,
0.0073089599609375,
-0.09393310546875,
-0.042236328125,
0.027008056640625,
0.03094482421875,
-0.0019025802612304688,
-0.0478515625,
-0.002166748046875,
0.0301513671875,
-0.08111572265625,
-0.047576904296875,
0.0268096923828125,
-0.045196533203125,
0.00955963134765625,
0.040435791015625,
-0.022186279296875,
-0.035247802734375,
0.0750732421875,
0.0009322166442871094,
-0.004058837890625,
-0.040252685546875,
-0.061431884765625,
-0.06500244140625,
-0.0784912109375,
0.026702880859375,
0.006801605224609375,
0.0145111083984375,
0.01033782958984375,
0.035675048828125,
-0.0013275146484375,
-0.04364013671875,
0.006549835205078125,
-0.047882080078125,
-0.0302734375,
-0.003326416015625,
0.0018062591552734375,
0.01067352294921875,
0.0011892318725585938,
0.0229034423828125,
-0.004428863525390625,
0.0264434814453125,
-0.022003173828125,
-0.00872802734375,
-0.007381439208984375,
0.034210205078125,
0.0288848876953125,
0.0298919677734375,
-0.0029544830322265625,
0.0665283203125,
0.05926513671875,
0.007076263427734375,
-0.0004901885986328125,
-0.0157928466796875,
-0.035736083984375,
-0.007720947265625,
0.0070343017578125,
-0.00994873046875,
-0.0214080810546875,
0.01258087158203125,
0.00330352783203125,
-0.0170745849609375,
0.01331329345703125,
-0.01416015625,
0.004547119140625,
-0.0005941390991210938,
0.01715087890625,
-0.00009524822235107422,
-0.005687713623046875,
-0.013153076171875,
0.005977630615234375,
-0.0307769775390625,
0.007015228271484375,
-0.0287322998046875,
0.0089874267578125,
-0.06475830078125,
-0.040191650390625,
0.03228759765625,
-0.036895751953125,
0.01039886474609375,
-0.0306396484375,
-0.027008056640625,
-0.01448822021484375,
0.07373046875,
-0.058319091796875,
-0.01934814453125,
0.0089111328125,
0.0041351318359375,
0.0183868408203125,
-0.03594970703125,
-0.039642333984375,
-0.0372314453125,
-0.09619140625,
0.0215301513671875,
-0.002300262451171875,
-0.0212249755859375,
-0.018707275390625,
0.034637451171875,
-0.0531005859375,
-0.0284271240234375,
0.03173828125,
-0.005146026611328125,
-0.00457000732421875,
0.00218963623046875,
-0.01235198974609375,
-0.02093505859375,
-0.033721923828125,
0.0167388916015625,
-0.0234375,
-0.00276947021484375,
-0.011444091796875,
0.01318359375,
0.03167724609375,
-0.0223541259765625,
-0.00894927978515625,
0.0236663818359375,
0.03167724609375,
-0.005802154541015625,
0.036224365234375,
-0.00305938720703125,
0.03753662109375,
-0.0447998046875,
-0.0018024444580078125,
-0.05865478515625,
-0.009246826171875,
-0.0146636962890625,
0.0004124641418457031,
0.042022705078125,
-0.028106689453125,
-0.014892578125,
-0.040252685546875,
-0.0127410888671875,
-0.0250701904296875,
0.01458740234375,
0.00933074951171875,
0.04949951171875,
-0.0262451171875,
0.0174560546875,
-0.00960540771484375,
-0.048583984375,
0.035400390625,
0.0172576904296875,
-0.0268096923828125,
-0.005901336669921875,
0.032440185546875,
0.02178955078125,
-0.034759521484375,
0.0156707763671875,
0.00920867919921875,
0.033905029296875,
0.01227569580078125,
0.03790283203125,
0.0024547576904296875,
-0.03509521484375,
0.07928466796875,
0.0093994140625,
0.005962371826171875,
-0.0236053466796875,
0.049468994140625,
0.00667572021484375,
-0.010040283203125,
0.01215362548828125,
-0.0123138427734375,
0.01371002197265625,
0.0170440673828125,
-0.0367431640625,
-0.035125732421875,
-0.0338134765625,
0.07098388671875,
-0.022491455078125,
0.059295654296875,
-0.053070068359375,
0.0043792724609375,
-0.004119873046875,
0.068603515625,
0.023468017578125,
0.0533447265625,
-0.006374359130859375,
0.013214111328125,
0.0022182464599609375,
-0.00994873046875,
-0.0236053466796875,
-0.0110626220703125,
0.0147247314453125,
0.03179931640625,
-0.032562255859375,
0.005977630615234375,
-0.01085662841796875,
0.00424957275390625,
0.04107666015625,
0.001865386962890625,
-0.0206756591796875,
-0.02349853515625,
-0.0096588134765625,
-0.0195465087890625,
-0.002033233642578125,
-0.0421142578125,
0.029296875,
0.0295562744140625,
-0.01094818115234375,
0.033599853515625,
-0.022186279296875,
-0.016021728515625,
-0.0214080810546875,
0.004207611083984375,
-0.004955291748046875,
0.009002685546875,
0.00005900859832763672,
0.1123046875,
-0.0238037109375,
0.0811767578125,
-0.038970947265625,
0.00540924072265625,
0.004047393798828125,
0.01806640625,
0.0307159423828125,
-0.018524169921875,
0.004131317138671875,
-0.0160369873046875,
0.0263824462890625,
-0.03106689453125,
0.0033969879150390625,
0.01320648193359375,
0.037353515625,
-0.0014514923095703125,
-0.02239990234375,
0.03570556640625,
-0.0044708251953125,
-0.0208282470703125,
0.04180908203125,
0.09222412109375,
-0.007503509521484375,
-0.00705718994140625,
0.02215576171875,
0.01611328125,
0.03277587890625,
-0.0286102294921875,
0.030792236328125,
-0.02880859375,
0.0260467529296875,
-0.035614013671875,
-0.00623321533203125,
0.0128326416015625,
0.01111602783203125,
-0.01456451416015625,
0.0017671585083007812,
-0.005184173583984375,
0.06817626953125,
0.0042572021484375,
-0.0213623046875,
-0.037353515625,
0.035552978515625,
-0.016448974609375,
0.061676025390625,
-0.04644775390625,
-0.018463134765625,
-0.0643310546875,
-0.0054168701171875,
0.069091796875,
0.046295166015625,
-0.036865234375,
0.0308380126953125,
-0.05029296875,
-0.02276611328125,
-0.01395416259765625,
-0.04400634765625,
-0.04632568359375,
-0.0318603515625,
0.017608642578125,
0.03076171875,
-0.006908416748046875,
-0.0089111328125,
0.0033245086669921875,
0.0021800994873046875,
-0.00807952880859375,
0.04931640625,
0.00785064697265625,
0.04510498046875,
0.003826141357421875,
0.0567626953125,
0.01241302490234375,
0.00514984130859375,
-0.056884765625,
-0.0084228515625,
0.01534271240234375,
-0.07342529296875,
-0.038787841796875,
-0.0229339599609375,
0.00421905517578125,
0.0283355712890625,
0.003696441650390625,
-0.00350189208984375,
0.0199432373046875,
0.00160980224609375,
0.0297088623046875,
0.0015649795532226562,
-0.0283203125,
0.012237548828125,
-0.0297698974609375,
0.092529296875,
-0.0026454925537109375,
0.0031871795654296875,
-0.0031833648681640625,
0.00135040283203125,
-0.02490234375,
0.01922607421875,
-0.013397216796875,
0.0019702911376953125,
-0.0271453857421875,
-0.0104217529296875,
0.0199127197265625,
0.0374755859375,
0.04168701171875,
0.006511688232421875,
0.04852294921875,
0.02227783203125,
-0.0168609619140625,
0.041046142578125,
0.025421142578125,
0.061553955078125,
-0.010406494140625,
-0.007427215576171875,
0.035552978515625,
-0.038238525390625,
-0.0286712646484375,
-0.052734375,
-0.017486572265625,
0.027435302734375,
0.004581451416015625,
-0.0205841064453125,
0.006561279296875,
0.02069091796875,
0.02276611328125,
-0.0013685226440429688,
-0.00490570068359375,
0.00641632080078125,
-0.0291748046875,
0.004543304443359375,
0.01512908935546875,
-0.0100250244140625,
-0.004413604736328125,
-0.032562255859375,
0.0235748291015625,
0.00954437255859375,
-0.0099029541015625,
-0.0201873779296875,
0.00847625732421875,
-0.024871826171875,
-0.035247802734375,
-0.017974853515625,
-0.00981903076171875,
-0.0252838134765625,
-0.06475830078125,
-0.004055023193359375,
-0.005706787109375,
0.014923095703125,
0.0018157958984375,
-0.046417236328125,
0.0292510986328125,
0.016082763671875,
-0.01422882080078125,
-0.0196075439453125,
-0.016876220703125,
-0.0313720703125,
-0.01407623291015625,
-0.0294036865234375,
0.0115203857421875,
0.0189666748046875,
-0.01078033447265625,
0.0208282470703125,
-0.009735107421875,
-0.051971435546875,
-0.02001953125,
0.00782012939453125,
0.09552001953125,
0.002613067626953125,
-0.039459228515625,
0.028472900390625,
0.01849365234375,
-0.0219879150390625,
-0.01209259033203125,
0.0056304931640625,
-0.028594970703125,
0.0088653564453125,
-0.0205535888671875,
-0.005863189697265625,
0.007190704345703125,
-0.0211639404296875,
-0.0755615234375,
0.07708740234375,
0.00901031494140625,
0.055755615234375,
0.01393890380859375,
0.0068359375,
-0.017822265625,
-0.01314544677734375,
-0.053466796875,
0.053131103515625,
-0.005741119384765625,
0.060577392578125,
-0.073486328125,
-0.0196533203125,
0.0007357597351074219,
0.05010986328125,
0.0638427734375,
0.01551055908203125,
-0.0136871337890625,
-0.0202789306640625,
0.027862548828125,
0.0482177734375,
-0.01824951171875,
0.02911376953125,
0.032440185546875,
0.040771484375,
0.05560302734375,
-0.02520751953125,
0.051605224609375,
-0.01071929931640625,
0.0199737548828125,
0.036163330078125,
0.00799560546875,
-0.0018749237060546875,
-0.0445556640625,
-0.00936126708984375,
-0.04229736328125,
-0.01088714599609375,
0.01348114013671875,
-0.0226287841796875,
0.0226287841796875,
0.070556640625,
0.0546875,
-0.0305633544921875,
-0.02618408203125,
-0.031768798828125,
0.040985107421875,
-0.01715087890625,
0.02587890625,
0.034332275390625,
0.021209716796875,
0.050079345703125,
-0.0360107421875,
0.020477294921875,
-0.018157958984375,
-0.018798828125,
0.09796142578125,
0.0119781494140625,
0.0214385986328125,
-0.08349609375,
-0.01641845703125,
0.05352783203125,
0.10479736328125,
-0.0576171875,
-0.0143280029296875,
-0.002269744873046875,
-0.0227813720703125,
0.00927734375,
-0.0215911865234375,
0.0158233642578125,
0.01554107666015625,
-0.0011005401611328125,
-0.0390625,
-0.0129241943359375,
0.02703857421875,
0.049591064453125,
0.0089874267578125,
-0.01229095458984375,
-0.0479736328125,
-0.028228759765625,
-0.04925537109375,
0.02166748046875,
0.042724609375,
0.0249786376953125,
-0.00887298583984375,
0.025146484375,
0.023223876953125,
0.016937255859375,
0.027252197265625,
0.021392822265625,
-0.028900146484375,
-0.0243682861328125,
0.0214080810546875,
-0.03717041015625,
-0.041748046875,
0.0067596435546875,
0.003993988037109375,
0.02313232421875,
0.006534576416015625,
0.015625,
0.030670166015625,
-0.0064849853515625,
0.005435943603515625,
-0.008392333984375,
0.0195770263671875,
-0.049560546875,
0.0263214111328125,
0.00628662109375,
-0.0142974853515625,
0.00330352783203125,
-0.0278167724609375,
0.047271728515625,
-0.0030422210693359375,
0.04229736328125,
0.003253936767578125,
0.0191497802734375,
0.0254669189453125,
-0.02801513671875,
0.006908416748046875,
0.0081329345703125,
-0.056640625,
0.00579071044921875,
-0.059051513671875,
-0.0389404296875,
0.0018148422241210938,
0.0193023681640625,
-0.02410888671875,
0.0307769775390625,
0.02484130859375,
-0.0193939208984375,
0.01004791259765625,
-0.024200439453125,
0.051910400390625,
0.049652099609375,
-0.01410675048828125,
0.042449951171875,
-0.042205810546875,
-0.0273590087890625,
-0.006500244140625,
0.032318115234375,
0.02197265625,
-0.0079498291015625,
0.0186309814453125,
0.0229949951171875,
-0.0144500732421875,
0.055572509765625,
-0.06463623046875,
-0.0408935546875,
0.06890869140625,
-0.0095672607421875,
0.0155029296875,
-0.0054168701171875,
-0.0052490234375,
-0.007843017578125,
0.030364990234375,
-0.038360595703125,
-0.004730224609375,
-0.0511474609375,
0.0171051025390625,
-0.0073089599609375,
0.035491943359375,
-0.00710296630859375,
-0.00457000732421875,
-0.004581451416015625,
-0.01227569580078125,
0.0288543701171875,
0.03369140625,
-0.02264404296875,
0.0361328125,
0.0211334228515625,
0.00600433349609375,
0.002605438232421875,
-0.006641387939453125,
0.01103973388671875,
0.035858154296875,
-0.01378631591796875,
0.034454345703125,
0.014984130859375,
-0.0275421142578125,
0.04345703125,
0.0157928466796875,
0.000865936279296875,
0.00919342041015625,
-0.0178070068359375,
0.005645751953125,
0.0211029052734375,
0.06024169921875,
0.0013637542724609375,
0.030242919921875,
-0.020538330078125,
0.01026153564453125,
0.01496124267578125,
-0.054718017578125,
-0.0316162109375,
-0.034088134765625,
-0.0110931396484375,
0.03875732421875,
-0.0168609619140625,
-0.0239105224609375,
-0.0640869140625,
0.0013446807861328125,
0.01214599609375,
0.0017175674438476562,
-0.035186767578125,
0.0309906005859375,
-0.0087127685546875,
0.0023326873779296875,
-0.01812744140625,
-0.032958984375,
0.015899658203125,
0.0245208740234375,
-0.018768310546875,
-0.0279083251953125,
-0.03253173828125,
0.0230712890625,
-0.03997802734375,
0.02880859375,
0.0127410888671875,
-0.04095458984375,
-0.0145263671875,
0.04541015625,
0.0219879150390625,
0.0863037109375,
0.042144775390625,
0.015716552734375,
0.0143280029296875,
0.02203369140625,
-0.05987548828125,
-0.056915283203125,
0.05181884765625,
-0.054779052734375,
-0.04754638671875,
0.0022125244140625,
-0.02911376953125,
-0.014801025390625,
-0.054718017578125,
-0.1087646484375,
0.04803466796875,
-0.0244598388671875,
-0.043548583984375,
-0.042816162109375,
0.0250244140625,
0.0207366943359375,
-0.0270233154296875,
-0.0106964111328125,
-0.00949859619140625,
-0.048309326171875,
-0.0012950897216796875,
0.021728515625,
0.052398681640625,
-0.01067352294921875,
0.017425537109375,
-0.0245208740234375,
0.03106689453125,
0.01092529296875,
0.0298004150390625,
-0.0217132568359375,
0.039581298828125,
-0.021881103515625,
0.0259552001953125,
-0.035614013671875,
0.0274505615234375,
-0.0238800048828125,
0.03424072265625,
0.007534027099609375,
-0.0270843505859375,
-0.0288543701171875,
-0.033966064453125,
0.0136566162109375,
0.0504150390625,
0.01270294189453125,
-0.0199127197265625,
0.004150390625,
0.0008220672607421875,
-0.05908203125,
-0.0203704833984375,
0.03814697265625,
-0.05926513671875,
-0.01520538330078125,
-0.012603759765625,
-0.0012292861938476562,
-0.01419830322265625,
-0.0164794921875,
-0.048126220703125,
-0.02069091796875,
-0.052001953125,
0.027130126953125,
-0.073486328125,
0.05084228515625,
0.045684814453125,
-0.044830322265625,
-0.003620147705078125,
-0.00011748075485229492,
-0.0215606689453125,
0.0135650634765625,
-0.03472900390625,
0.049468994140625,
0.01092529296875,
-0.0196685791015625,
0.017852783203125,
0.0389404296875,
0.0092926025390625,
-0.00933837890625,
-0.039794921875,
-0.0246734619140625,
0.015960693359375,
0.004840850830078125,
-0.001712799072265625,
-0.009033203125,
0.01715087890625,
0.0188751220703125,
0.055908203125,
0.0081939697265625,
0.046875,
0.0193939208984375,
0.03594970703125,
-0.0222930908203125,
-0.0230712890625,
-0.006992340087890625,
-0.040191650390625,
-0.0147552490234375,
0.01316070556640625,
-0.01532745361328125,
-0.032135009765625,
0.00830078125,
0.041595458984375,
0.003971099853515625,
0.004024505615234375
] |
56cf1b377ab92725e253d6e8d0e262feb602ab57
|
Wordpress Stackexchange
Q: esc_url removes white space. Can I change that to using '-'? I'm using esc_url to sanitize my url. The only problem is that "my link" becomes "mylink". I wouldreally like it to become "my-link".
Is there a way to change this?
A: $url = esc_url ( str_replace(' ' , '-', $url ) );
Replace the spaces to - chars before activating esc_url function, and your problem is solved.
|
Q: esc_url removes white space. Can I change that to using '-'? I'm using esc_url to sanitize my url. The only problem is that "my link" becomes "mylink". I wouldreally like it to become "my-link".
Is there a way to change this?
A: $url = esc_url ( str_replace(' ' , '-', $url ) );
Replace the spaces to - chars before activating esc_url function, and your problem is solved.
|
wordpress
|
{
"language": "en",
"length": 69,
"provenance": "stackexchange_00019.jsonl.gz:408430",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14154"
}
|
[
0.041107177734375,
0.01464080810546875,
-0.03759765625,
-0.026611328125,
0.02459716796875,
-0.031219482421875,
0.033477783203125,
-0.0020580291748046875,
0.0232086181640625,
0.0301361083984375,
0.0160980224609375,
-0.01515960693359375,
-0.01021575927734375,
-0.03704833984375,
-0.03033447265625,
-0.00899505615234375,
0.0185394287109375,
-0.0179595947265625,
0.0052947998046875,
-0.01947021484375,
0.0224456787109375,
-0.017822265625,
0.018341064453125,
0.0192108154296875,
-0.01268768310546875,
0.00812530517578125,
0.08551025390625,
-0.00966644287109375,
-0.0283203125,
-0.0226898193359375,
0.0012960433959960938,
-0.00872039794921875,
0.0185546875,
0.018341064453125,
-0.028656005859375,
0.01214599609375,
-0.02764892578125,
0.0305633544921875,
-0.01087188720703125,
0.0263519287109375,
0.0240478515625,
-0.016265869140625,
0.00150299072265625,
-0.038421630859375,
-0.0168609619140625,
-0.01123046875,
0.032562255859375,
0.003070831298828125,
0.01506805419921875,
0.00713348388671875,
0.03680419921875,
-0.0019702911376953125,
0.040191650390625,
0.0038967132568359375,
-0.01525115966796875,
0.005229949951171875,
-0.0002827644348144531,
-0.0208282470703125,
0.00861358642578125,
0.01531982421875,
-0.004482269287109375,
0.023681640625,
0.002727508544921875,
-0.032867431640625,
0.0040283203125,
0.00975799560546875,
-0.0218963623046875,
0.018524169921875,
-0.06365966796875,
-0.01328277587890625,
0.0297088623046875,
-0.058441162109375,
-0.0189056396484375,
-0.022918701171875,
-0.0157623291015625,
0.01018524169921875,
-0.0184326171875,
-0.026214599609375,
0.0204925537109375,
0.016143798828125,
0.0103759765625,
0.0016050338745117188,
-0.02105712890625,
-0.0294647216796875,
-0.0006871223449707031,
-0.025115966796875,
-0.01206207275390625,
0.0030345916748046875,
-0.01049041748046875,
-0.043609619140625,
-0.00995635986328125,
-0.038360595703125,
0.004611968994140625,
0.005687713623046875,
-0.02978515625,
-0.034149169921875,
0.05322265625,
0.0214080810546875,
0.0169830322265625,
-0.00830078125,
0.049285888671875,
-0.07275390625,
0.0301971435546875,
-0.02056884765625,
-0.00909423828125,
0.04376220703125,
0.007053375244140625,
0.011199951171875,
0.023712158203125,
0.0124664306640625,
-0.006168365478515625,
-0.01145172119140625,
-0.0552978515625,
-0.0019550323486328125,
-0.026031494140625,
0.06842041015625,
-0.044586181640625,
-0.0265655517578125,
-0.035430908203125,
0.01824951171875,
-0.0020809173583984375,
0.01776123046875,
0.011077880859375,
0.01398468017578125,
-0.0302734375,
-0.0175628662109375,
-0.0037841796875,
-0.0293121337890625,
-0.032745361328125,
0.024200439453125,
-0.03424072265625,
0.023406982421875,
0.07977294921875,
0.00997161865234375,
-0.01407623291015625,
-0.034698486328125,
-0.014404296875,
-0.09112548828125,
-0.0284271240234375,
0.00966644287109375,
-0.0283050537109375,
-0.00789642333984375,
0.05230712890625,
-0.035491943359375,
0.032257080078125,
0.0474853515625,
0.0095977783203125,
-0.0216827392578125,
0.0247650146484375,
-0.05096435546875,
-0.004611968994140625,
-0.0290374755859375,
0.0272979736328125,
0.0095367431640625,
-0.051788330078125,
-0.005939483642578125,
0.0105133056640625,
-0.02838134765625,
-0.009368896484375,
-0.049072265625,
-0.0134124755859375,
-0.01296234130859375,
0.025238037109375,
0.006565093994140625,
-0.0102386474609375,
0.01453399658203125,
-0.016571044921875,
0.0008182525634765625,
0.0164947509765625,
0.020477294921875,
-0.017547607421875,
0.04095458984375,
-0.0187530517578125,
0.014862060546875,
0.0105133056640625,
-0.0159454345703125,
-0.0596923828125,
0.01122283935546875,
0.04766845703125,
0.040283203125,
0.024200439453125,
-0.0273895263671875,
0.0217437744140625,
0.01512908935546875,
-0.03607177734375,
-0.0016841888427734375,
0.0362548828125,
0.03759765625,
0.005615234375,
0.020263671875,
0.0428466796875,
0.0244293212890625,
-0.02886962890625,
-0.012237548828125,
-0.0225067138671875,
-0.03369140625,
0.03057861328125,
-0.009063720703125,
-0.0026264190673828125,
0.02581787109375,
0.052581787109375,
-0.025115966796875,
0.0279541015625,
0.021148681640625,
-0.0172119140625,
-0.003917694091796875,
-0.0030956268310546875,
-0.00409698486328125,
0.0237274169921875,
0.0364990234375,
0.0074462890625,
0.0006747245788574219,
-0.032196044921875,
0.0180511474609375,
-0.0152130126953125,
0.007434844970703125,
0.020172119140625,
0.0308380126953125,
-0.025238037109375,
0.006557464599609375,
-0.001068115234375,
-0.018890380859375,
0.0005044937133789062,
0.042999267578125,
-0.000014901161193847656,
-0.051544189453125,
-0.0164031982421875,
-0.042266845703125,
-0.042572021484375,
-0.042938232421875,
0.01282501220703125,
0.08758544921875,
0.078857421875,
0.0682373046875,
-0.0026378631591796875,
-0.00772857666015625,
0.0265960693359375,
-0.0716552734375,
-0.0023136138916015625,
0.05242919921875,
0.044342041015625,
0.051788330078125,
-0.004657745361328125,
-0.05194091796875,
0.0394287109375,
-0.007354736328125,
0.054595947265625,
-0.06591796875,
-0.00783538818359375,
0.0193328857421875,
0.00780487060546875,
-0.0026798248291015625,
0.0224456787109375,
-0.026611328125,
-0.00677490234375,
0.03466796875,
-0.05419921875,
-0.057220458984375,
-0.043365478515625,
0.04754638671875,
-0.0110626220703125,
-0.01434326171875,
0.026611328125,
-0.0167083740234375,
-0.0011606216430664062,
0.0020542144775390625,
0.0283966064453125,
0.0266876220703125,
0.02264404296875,
-0.033050537109375,
0.0074310302734375,
0.006496429443359375,
-0.0011730194091796875,
0.056549072265625,
-0.01239776611328125,
-0.0186920166015625,
-0.0015344619750976562,
-0.008209228515625,
-0.02838134765625,
0.023223876953125,
-0.0132293701171875,
0.0062103271484375,
-0.031646728515625,
-0.021087646484375,
-0.01511383056640625,
-0.043121337890625,
0.004589080810546875,
0.0288238525390625,
0.0187530517578125,
-0.0263519287109375,
0.0274810791015625,
-0.0178985595703125,
-0.0206298828125,
0.048858642578125,
0.005619049072265625,
-0.0618896484375,
0.044921875,
-0.052093505859375,
0.017730712890625,
-0.01337432861328125,
0.04498291015625,
0.05072021484375,
0.04345703125,
-0.03765869140625,
-0.0038928985595703125,
-0.028778076171875,
-0.011138916015625,
-0.00861358642578125,
-0.0330810546875,
0.037628173828125,
-0.14208984375,
-0.0259857177734375,
0.0001544952392578125,
0.01678466796875,
-0.047271728515625,
-0.035614013671875,
-0.053558349609375,
-0.018157958984375,
-0.112548828125,
-0.039093017578125,
-0.018768310546875,
-0.0233154296875,
-0.023284912109375,
0.044158935546875,
-0.01416015625,
0.01169586181640625,
0.06829833984375,
0.0011358261108398438,
0.043182373046875,
-0.007427215576171875,
-0.0645751953125,
0.003292083740234375,
-0.06103515625,
0.072509765625,
0.0020751953125,
0.028472900390625,
0.002780914306640625,
-0.0189666748046875,
-0.0008649826049804688,
-0.0003478527069091797,
0.0039215087890625,
0.0009641647338867188,
0.01140594482421875,
-0.049468994140625,
-0.01708984375,
-0.0379638671875,
-0.009979248046875,
-0.0245208740234375,
0.0921630859375,
-0.006107330322265625,
0.01727294921875,
0.032928466796875,
-0.00370025634765625,
0.025482177734375,
0.04132080078125,
-0.0224761962890625,
-0.009674072265625,
0.0579833984375,
0.026214599609375,
-0.004787445068359375,
0.0046844482421875,
-0.02923583984375,
-0.024749755859375,
0.0244140625,
-0.0008215904235839844,
0.0137786865234375,
-0.031494140625,
0.044830322265625,
0.01708984375,
-0.01282501220703125,
0.026763916015625,
-0.001491546630859375,
0.0362548828125,
-0.0240325927734375,
-0.0084991455078125,
-0.042816162109375,
0.017852783203125,
-0.003162384033203125,
-0.0134429931640625,
0.00357818603515625,
0.01264190673828125,
0.0080413818359375,
0.0095672607421875,
0.012908935546875,
0.0065460205078125,
0.04217529296875,
0.0489501953125,
0.0841064453125,
-0.0286865234375,
-0.048004150390625,
-0.040069580078125,
0.0634765625,
-0.062744140625,
-0.0190277099609375,
0.055419921875,
0.034454345703125,
-0.006633758544921875,
-0.02362060546875,
-0.05645751953125,
-0.04876708984375,
-0.0732421875,
0.001934051513671875,
-0.0120391845703125,
-0.03240966796875,
-0.0243377685546875,
0.01503753662109375,
-0.041259765625,
-0.0229949951171875,
0.0228729248046875,
0.0364990234375,
0.01015472412109375,
-0.022247314453125,
0.0258331298828125,
-0.031005859375,
0.003787994384765625,
0.008880615234375,
-0.0792236328125,
-0.002696990966796875,
-0.00467681884765625,
0.0340576171875,
-0.00859832763671875,
0.00704193115234375,
-0.03057861328125,
0.04034423828125,
0.01479339599609375,
-0.00423431396484375,
0.0299530029296875,
-0.023162841796875,
0.001895904541015625,
0.08123779296875,
0.051544189453125,
0.0020427703857421875,
0.019256591796875,
0.00969696044921875,
-0.072509765625,
0.0052032470703125,
0.002780914306640625,
0.01947021484375,
0.0643310546875,
-0.041961669921875,
-0.016021728515625,
-0.0101165771484375,
-0.0194244384765625,
-0.003326416015625,
0.037567138671875,
-0.0545654296875,
-0.01220703125,
-0.03607177734375,
0.025115966796875,
-0.023956298828125,
-0.01509857177734375,
0.00028395652770996094,
-0.0157012939453125,
0.006977081298828125,
-0.0094146728515625,
0.03338623046875,
-0.0594482421875,
0.004901885986328125,
0.0034198760986328125,
0.03363037109375,
0.0203857421875,
-0.0141448974609375,
0.034423828125,
-0.008758544921875,
0.0032024383544921875,
0.004848480224609375,
0.00740814208984375,
0.0251922607421875,
0.01055145263671875,
-0.0097503662109375,
0.00420379638671875,
0.01174163818359375,
0.06927490234375,
0.01132965087890625,
-0.00597381591796875,
0.0208587646484375,
-0.0192108154296875,
-0.0207672119140625,
-0.03668212890625,
0.002902984619140625,
-0.024383544921875,
0.00963592529296875,
-0.046173095703125,
0.048828125,
0.0855712890625,
-0.0386962890625,
0.033355712890625,
-0.0157470703125,
0.0047454833984375,
-0.06439208984375,
-0.00464630126953125,
-0.06982421875,
0.0201416015625,
-0.055908203125,
-0.0572509765625,
-0.00299072265625,
-0.01009368896484375,
0.0312347412109375,
0.037841796875,
0.005565643310546875,
-0.0325927734375,
0.0007486343383789062,
-0.0004215240478515625,
-0.04376220703125,
0.07354736328125,
-0.0004100799560546875,
-0.006488800048828125,
-0.005809783935546875,
0.0008921623229980469,
0.062042236328125,
0.00011414289474487305,
-0.0168914794921875,
0.036224365234375,
0.03167724609375,
-0.008331298828125,
-0.010711669921875,
0.05975341796875,
0.043304443359375,
-0.0021266937255859375,
-0.019287109375,
-0.0023860931396484375,
-0.0099334716796875,
0.017822265625,
0.0229949951171875,
-0.0203704833984375,
0.03997802734375,
-0.0177764892578125,
0.0231170654296875,
-0.027862548828125,
-0.040008544921875,
0.0285186767578125,
0.0302734375,
-0.0076751708984375,
0.02569580078125,
-0.000751495361328125,
0.01113128662109375,
-0.00011688470840454102,
0.023834228515625,
-0.04229736328125,
-0.027801513671875,
-0.0245208740234375,
-0.040771484375,
0.0260772705078125,
-0.0308990478515625,
-0.0008769035339355469,
-0.00011897087097167969,
-0.028656005859375,
-0.007358551025390625,
-0.01537322998046875,
-0.0106201171875,
-0.01806640625,
-0.01198577880859375,
0.061004638671875,
0.006031036376953125,
-0.05963134765625,
0.0152130126953125,
-0.0027484893798828125,
-0.0257568359375,
-0.0168914794921875,
0.10736083984375,
-0.02093505859375,
0.047332763671875,
-0.026336669921875,
-0.01515960693359375,
-0.02972412109375,
0.03057861328125,
0.00836181640625,
0.0037593841552734375,
-0.0438232421875,
-0.01297760009765625,
-0.024261474609375,
-0.0128326416015625,
-0.024169921875,
-0.01470947265625,
-0.033111572265625,
0.0114288330078125,
0.0195770263671875,
0.040557861328125,
0.031463623046875,
0.028961181640625,
0.03253173828125,
-0.0176849365234375,
-0.041778564453125,
0.03741455078125,
-0.03350830078125,
0.02197265625,
0.037811279296875,
0.0298004150390625,
-0.0172882080078125,
0.01328277587890625,
0.05224609375,
-0.0266876220703125,
-0.02496337890625,
-0.037017822265625,
0.032470703125,
-0.027801513671875,
0.044891357421875,
0.06298828125,
0.06982421875,
0.0260009765625,
0.014007568359375,
0.007389068603515625,
-0.003452301025390625,
-0.0230560302734375,
0.032623291015625,
-0.0156097412109375,
0.06756591796875,
-0.0211181640625,
-0.0013885498046875,
0.057830810546875,
0.003559112548828125,
-0.0011501312255859375,
0.02398681640625,
-0.00780487060546875,
0.037567138671875,
-0.0106353759765625,
0.01047515869140625,
0.019927978515625,
0.0302276611328125,
-0.0257110595703125,
0.038421630859375,
0.0216522216796875,
0.01507568359375,
0.03985595703125,
-0.0263824462890625,
0.025146484375,
0.08270263671875,
0.040863037109375,
-0.022186279296875,
0.03253173828125,
0.0012769699096679688,
-0.007587432861328125,
0.018463134765625,
0.08489990234375,
0.08551025390625,
-0.086669921875,
-0.00751495361328125,
0.02587890625,
-0.0203094482421875,
0.0211181640625,
-0.005527496337890625,
0.016357421875,
0.00893402099609375,
-0.00968170166015625,
-0.051025390625,
-0.036865234375,
-0.0274810791015625,
-0.01410675048828125,
-0.0253753662109375,
-0.0185089111328125,
0.0236663818359375,
0.020294189453125,
-0.0285491943359375,
0.03216552734375,
0.04302978515625,
0.0169677734375,
-0.046142578125,
0.0265045166015625,
0.0211639404296875,
-0.0138702392578125,
-0.05352783203125,
0.05133056640625,
0.0258331298828125,
-0.0005555152893066406,
-0.02923583984375,
0.0307159423828125,
0.0281219482421875,
0.0550537109375,
-0.00580596923828125,
0.0008378028869628906,
0.01904296875,
-0.013275146484375,
0.030029296875,
-0.04241943359375,
-0.046356201171875,
0.0239105224609375,
0.001033782958984375,
-0.013916015625,
0.0201416015625,
0.005558013916015625,
0.0152435302734375,
0.058807373046875,
0.06298828125,
-0.05718994140625,
-0.005970001220703125,
0.0294952392578125,
-0.0135345458984375,
-0.004207611083984375,
-0.0030612945556640625,
0.003940582275390625,
-0.042816162109375,
-0.0070343017578125,
-0.0128173828125,
-0.0316162109375,
0.02880859375,
-0.00775909423828125,
-0.0740966796875,
0.07843017578125,
0.02947998046875,
0.058868408203125,
-0.004058837890625,
0.01508331298828125,
-0.006603240966796875,
0.00015628337860107422,
-0.0166015625,
0.0147857666015625,
0.0258331298828125,
0.00926971435546875,
0.0016841888427734375,
-0.00850677490234375,
0.00824737548828125,
0.0252227783203125,
0.01380157470703125,
-0.0251922607421875,
0.0484619140625,
0.01611328125,
0.05108642578125,
-0.004650115966796875,
-0.0304412841796875,
-0.0088043212890625,
0.010650634765625,
0.00836944580078125,
0.038055419921875,
-0.0180206298828125,
0.021514892578125,
-0.029937744140625,
-0.01313018798828125,
0.026519775390625,
0.036590576171875,
0.038818359375,
0.0082855224609375,
0.0318603515625,
-0.02874755859375,
0.0273590087890625,
0.0245819091796875,
0.04364013671875,
-0.0121917724609375,
0.040130615234375,
0.01507568359375,
-0.00260162353515625,
-0.002780914306640625,
-0.0234527587890625,
0.03619384765625,
0.03302001953125,
0.03424072265625,
0.03533935546875,
0.0080413818359375,
0.076904296875,
-0.03289794921875,
-0.0017690658569335938,
-0.035797119140625,
0.0172882080078125,
0.0199432373046875,
0.047607421875,
0.049468994140625,
-0.01123046875,
-0.00046896934509277344,
0.0278472900390625,
0.040130615234375,
-0.0132293701171875,
-0.03515625,
0.01245880126953125,
-0.0027008056640625,
0.0164947509765625,
0.01007843017578125,
0.040252685546875,
0.01229095458984375,
0.0132598876953125,
-0.032318115234375,
0.007678985595703125,
0.052886962890625,
0.0245819091796875,
0.00811004638671875,
0.007259368896484375,
-0.07537841796875,
-0.002010345458984375,
-0.023773193359375,
-0.0149383544921875,
-0.0217742919921875,
0.029937744140625,
0.0548095703125,
-0.004108428955078125,
-0.008636474609375,
-0.0146331787109375,
-0.00841522216796875,
0.04736328125,
0.003326416015625,
0.006328582763671875,
-0.01052093505859375,
-0.0240936279296875,
0.015411376953125,
0.0169525146484375,
-0.01453399658203125,
0.0227813720703125,
0.038970947265625,
0.01026153564453125,
-0.048095703125,
-0.00644683837890625,
0.04302978515625,
-0.041229248046875,
0.0389404296875,
-0.045013427734375,
0.056976318359375,
0.032012939453125,
0.01605224609375,
-0.040313720703125,
0.0123291015625,
0.0673828125,
-0.001983642578125,
0.027313232421875,
-0.0015211105346679688,
-0.01236724853515625,
-0.018798828125,
-0.0064697265625,
0.0198822021484375,
0.0136566162109375,
-0.017059326171875,
-0.0229339599609375,
0.03607177734375,
0.002044677734375,
0.01389312744140625,
0.034027099609375,
0.0008640289306640625,
0.01549530029296875,
0.0236663818359375,
-0.01258087158203125,
0.019927978515625,
0.0283966064453125,
-0.035797119140625,
0.00278472900390625,
0.05267333984375,
-0.0107421875,
-0.0260009765625,
-0.05743408203125,
0.01009368896484375,
0.05743408203125,
-0.0465087890625,
0.0288543701171875,
-0.0178985595703125,
0.007740020751953125,
-0.0081329345703125,
-0.024505615234375,
-0.0042724609375,
0.0179290771484375,
-0.054473876953125,
-0.021392822265625,
0.0015916824340820312,
0.01192474365234375,
-0.00374603271484375,
0.051910400390625,
0.0232696533203125,
0.01806640625,
0.031982421875,
0.004062652587890625,
-0.00016605854034423828,
-0.004589080810546875,
0.054595947265625,
-0.0162200927734375,
-0.03814697265625,
-0.0007681846618652344,
0.033416748046875,
0.0091094970703125,
0.0364990234375,
-0.01502227783203125,
0.046356201171875,
-0.0101470947265625,
0.005214691162109375,
0.0220489501953125,
-0.05328369140625,
0.00852203369140625,
0.02874755859375,
-0.03314208984375,
0.0231781005859375,
0.01010894775390625,
-0.0194854736328125,
0.01314544677734375,
0.0205078125,
-0.026092529296875,
0.01338958740234375,
0.006378173828125,
-0.037750244140625,
-0.005523681640625,
-0.00525665283203125,
-0.0220947265625,
-0.00048613548278808594,
0.01190185546875,
-0.0162200927734375,
-0.01397705078125,
-0.0010786056518554688,
-0.0034332275390625,
0.0017995834350585938,
-0.051116943359375,
-0.0042572021484375,
0.0014247894287109375,
-0.022064208984375,
0.039520263671875,
-0.032073974609375,
-0.00887298583984375,
0.027191162109375,
-0.03973388671875,
0.0003273487091064453,
0.030059814453125,
-0.0196990966796875,
0.009368896484375,
0.0177764892578125,
-0.02398681640625,
-0.01342010498046875,
-0.042877197265625,
-0.05859375,
-0.052520751953125,
0.08837890625,
-0.052764892578125,
-0.0118408203125,
-0.0021953582763671875,
-0.00725555419921875,
-0.012664794921875,
0.0019664764404296875,
0.01322174072265625,
0.02545166015625,
0.0144500732421875,
-0.035369873046875,
-0.01078033447265625,
0.0112762451171875,
0.01334381103515625,
-0.030975341796875,
-0.008270263671875,
-0.049530029296875,
0.0228729248046875,
0.05352783203125,
-0.0335693359375,
0.012298583984375,
-0.023712158203125,
-0.0556640625,
0.032073974609375,
0.0330810546875,
-0.037017822265625,
-0.0081634521484375,
-0.0181121826171875,
-0.00023090839385986328,
0.0172576904296875,
0.0156402587890625,
-0.0258636474609375,
-0.0467529296875,
0.0012636184692382812,
0.0252227783203125,
0.06671142578125,
-0.004131317138671875,
0.0308837890625,
0.019775390625,
0.052001953125,
0.033599853515625,
0.002399444580078125,
0.0007295608520507812,
-0.0167083740234375,
0.01580810546875,
0.0182037353515625,
-0.0204315185546875,
-0.0198974609375,
-0.00519561767578125,
-0.01361846923828125,
-0.037322998046875,
-0.0252532958984375,
0.0292510986328125,
0.01421356201171875,
0.046905517578125,
0.006961822509765625,
-0.0022602081298828125,
-0.041259765625,
-0.017791748046875,
0.0040283203125,
0.060791015625,
-0.0014438629150390625,
-0.02032470703125,
-0.047821044921875,
-0.03173828125,
0.00537109375,
0.0035419464111328125,
-0.0023632049560546875,
-0.051788330078125,
-0.01123809814453125,
-0.0236358642578125,
-0.00502777099609375,
0.038970947265625,
0.0004506111145019531,
-0.00308990478515625,
0.0745849609375,
-0.04425048828125,
0.024566650390625,
-0.016448974609375,
0.027801513671875,
0.035919189453125,
-0.039398193359375,
-0.033172607421875,
-0.007678985595703125,
0.01384735107421875,
-0.010345458984375,
0.003662109375,
-0.037200927734375,
0.017242431640625,
0.00978851318359375,
-0.015625,
0.026702880859375,
-0.005016326904296875,
0.043609619140625,
0.00824737548828125,
0.0282135009765625,
0.007381439208984375,
0.037200927734375,
-0.060394287109375,
-0.01038360595703125,
0.0018711090087890625,
-0.0192413330078125,
-0.0347900390625,
0.036834716796875,
0.0631103515625,
-0.05615234375,
0.006443023681640625,
-0.05316162109375,
0.01031494140625,
-0.045562744140625,
0.00815582275390625,
-0.0240936279296875,
-0.0295257568359375,
0.0278472900390625
] |
2e531522bd31bf4a2b2c34030cf1448aa76ba3b8
|
Wordpress Stackexchange
Q: Pasting images removes class attribute When you paste an image with a class attribute in the Wysiwyg editor, the pasted image no longer has this class attribute.
This makes it harder to copy and paste images that are aligned with the alignleft or alignright classes.
This used to work in WordPress 2.7, but it no longer works in WordPress 2.8 and up. It also works in the "base" version of TinyMCE (tested with 3.2.7 and 3.3.9.3), so it is probably something that is added by WordPress. I tested this in Safari, Firefox 3.6 and Chrome on Mac OS X.
This has been mentioned in a Trac ticket but the main item was dismissed as a browser issue - but I think the class issue is not.
Has anyone else found a way to make this work?
A: Instead of pasting into the Visual editor, switch to the html editor for pasting any kind of html, or using shortcodes.
I'd recommend checking the "disable the visual editor" checkbox in your user profile. Then install Mark Jaquith's Markdown on Save plugin for more readable formatting without the wysiwyg pitfalls.
|
Q: Pasting images removes class attribute When you paste an image with a class attribute in the Wysiwyg editor, the pasted image no longer has this class attribute.
This makes it harder to copy and paste images that are aligned with the alignleft or alignright classes.
This used to work in WordPress 2.7, but it no longer works in WordPress 2.8 and up. It also works in the "base" version of TinyMCE (tested with 3.2.7 and 3.3.9.3), so it is probably something that is added by WordPress. I tested this in Safari, Firefox 3.6 and Chrome on Mac OS X.
This has been mentioned in a Trac ticket but the main item was dismissed as a browser issue - but I think the class issue is not.
Has anyone else found a way to make this work?
A: Instead of pasting into the Visual editor, switch to the html editor for pasting any kind of html, or using shortcodes.
I'd recommend checking the "disable the visual editor" checkbox in your user profile. Then install Mark Jaquith's Markdown on Save plugin for more readable formatting without the wysiwyg pitfalls.
|
wordpress
|
{
"language": "en",
"length": 188,
"provenance": "stackexchange_00019.jsonl.gz:408432",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14158"
}
|
[
0.04046630859375,
0.0113525390625,
-0.00974273681640625,
0.02996826171875,
0.0286407470703125,
-0.0599365234375,
0.07391357421875,
-0.0631103515625,
0.01479339599609375,
0.044952392578125,
0.0082855224609375,
-0.012298583984375,
0.0246734619140625,
-0.0252838134765625,
-0.029327392578125,
0.0006189346313476562,
0.00875091552734375,
-0.0145111083984375,
-0.0137939453125,
-0.02667236328125,
0.036102294921875,
-0.0186920166015625,
-0.0226898193359375,
-0.00994873046875,
0.01445770263671875,
0.00997161865234375,
0.0865478515625,
-0.01425933837890625,
0.0007600784301757812,
-0.0209503173828125,
0.014312744140625,
-0.0036563873291015625,
0.02923583984375,
0.058685302734375,
-0.05950927734375,
0.061767578125,
0.0032787322998046875,
0.0184326171875,
0.0016679763793945312,
0.023834228515625,
0.018646240234375,
-0.004604339599609375,
0.0350341796875,
-0.01215362548828125,
-0.01200103759765625,
-0.0155792236328125,
0.0235595703125,
-0.00974273681640625,
0.03350830078125,
-0.053863525390625,
0.007366180419921875,
0.0156707763671875,
0.0238494873046875,
-0.004638671875,
-0.0283660888671875,
-0.0013370513916015625,
-0.07098388671875,
0.0618896484375,
-0.0107879638671875,
0.06048583984375,
0.03204345703125,
0.051483154296875,
-0.033233642578125,
-0.019378662109375,
-0.027618408203125,
-0.011688232421875,
-0.0069427490234375,
0.01061248779296875,
-0.0006480216979980469,
-0.0208892822265625,
0.00351715087890625,
0.01532745361328125,
0.01300811767578125,
-0.05389404296875,
0.047515869140625,
0.03887939453125,
-0.043060302734375,
0.00301361083984375,
0.0233001708984375,
0.01446533203125,
0.0232696533203125,
0.001285552978515625,
-0.06109619140625,
0.00699615478515625,
0.007259368896484375,
0.0222625732421875,
0.004962921142578125,
-0.02337646484375,
0.0028896331787109375,
0.0064697265625,
-0.0095367431640625,
-0.039825439453125,
-0.004245758056640625,
0.0439453125,
-0.001861572265625,
-0.030548095703125,
-0.0160064697265625,
0.0198822021484375,
-0.01873779296875,
0.03790283203125,
-0.0139007568359375,
-0.021942138671875,
0.0244293212890625,
-0.047698974609375,
0.01383209228515625,
-0.017333984375,
-0.01316070556640625,
-0.0030422210693359375,
0.049346923828125,
0.037017822265625,
-0.0237274169921875,
0.060272216796875,
-0.005123138427734375,
0.0048065185546875,
-0.0187225341796875,
0.009490966796875,
-0.0167083740234375,
0.006397247314453125,
-0.01141357421875,
0.0213470458984375,
-0.016387939453125,
-0.0018243789672851562,
0.0033435821533203125,
-0.00579071044921875,
0.0211334228515625,
0.021240234375,
0.0005321502685546875,
-0.0204315185546875,
0.0631103515625,
-0.05865478515625,
-0.0457763671875,
0.051300048828125,
0.07293701171875,
0.0025177001953125,
0.00795745849609375,
0.01441192626953125,
0.01110076904296875,
-0.019561767578125,
-0.0211334228515625,
0.058013916015625,
-0.06524658203125,
-0.0338134765625,
0.029998779296875,
-0.041412353515625,
0.02288818359375,
0.0251007080078125,
-0.00833892822265625,
0.024139404296875,
0.04901123046875,
-0.07904052734375,
0.07879638671875,
-0.06268310546875,
0.047637939453125,
0.0175018310546875,
-0.01116180419921875,
-0.05828857421875,
0.06488037109375,
-0.05902099609375,
-0.004894256591796875,
-0.09210205078125,
0.026824951171875,
0.021331787109375,
0.044097900390625,
-0.01336669921875,
0.007198333740234375,
-0.04302978515625,
-0.091796875,
-0.011810302734375,
0.019378662109375,
-0.053619384765625,
-0.008331298828125,
0.006015777587890625,
0.05035400390625,
0.01114654541015625,
-0.005092620849609375,
0.03338623046875,
0.032073974609375,
-0.01812744140625,
0.0232086181640625,
0.028076171875,
-0.00446319580078125,
-0.031494140625,
0.0679931640625,
-0.0234527587890625,
-0.03692626953125,
-0.046356201171875,
0.01270294189453125,
0.01458740234375,
0.0216522216796875,
0.020355224609375,
0.036376953125,
-0.004375457763671875,
-0.0159149169921875,
-0.007480621337890625,
-0.001964569091796875,
0.001773834228515625,
-0.0311431884765625,
0.0093994140625,
-0.01690673828125,
-0.004352569580078125,
0.05712890625,
-0.0006976127624511719,
-0.0214996337890625,
-0.0290679931640625,
-0.089599609375,
-0.0214385986328125,
-0.00897216796875,
0.0228729248046875,
-0.0635986328125,
0.002285003662109375,
0.050506591796875,
-0.004970550537109375,
-0.022430419921875,
-0.0292816162109375,
0.005706787109375,
-0.0090789794921875,
-0.00609588623046875,
0.03851318359375,
-0.0008792877197265625,
0.032196044921875,
-0.012115478515625,
-0.054931640625,
0.00453948974609375,
-0.0028247833251953125,
-0.0196075439453125,
0.029388427734375,
-0.039703369140625,
0.013763427734375,
-0.0172576904296875,
0.0088348388671875,
0.0526123046875,
0.0217132568359375,
-0.0257110595703125,
0.052490234375,
-0.0158843994140625,
-0.0328369140625,
-0.045501708984375,
-0.03369140625,
0.03271484375,
0.0225677490234375,
0.0377197265625,
0.0294647216796875,
-0.0188446044921875,
-0.0283966064453125,
0.0305633544921875,
-0.023193359375,
0.0252685546875,
-0.041534423828125,
-0.012725830078125,
-0.006320953369140625,
0.0212860107421875,
-0.022979736328125,
0.0299530029296875,
0.0157012939453125,
-0.007694244384765625,
0.00988006591796875,
-0.001209259033203125,
-0.003040313720703125,
-0.0037784576416015625,
0.051177978515625,
0.00019824504852294922,
0.0263214111328125,
0.0007114410400390625,
-0.004093170166015625,
0.0023403167724609375,
0.035064697265625,
0.01229095458984375,
0.00629425048828125,
-0.051910400390625,
0.03912353515625,
0.0267181396484375,
0.020782470703125,
0.0008630752563476562,
0.054779052734375,
0.0269775390625,
0.0237579345703125,
-0.05352783203125,
-0.00780487060546875,
0.0216522216796875,
0.043426513671875,
-0.009063720703125,
-0.0003638267517089844,
0.029266357421875,
-0.00720977783203125,
0.01224517822265625,
-0.03216552734375,
0.042694091796875,
0.004344940185546875,
-0.0277557373046875,
-0.061279296875,
-0.026397705078125,
0.06292724609375,
0.034759521484375,
0.0052490234375,
0.03155517578125,
-0.00112152099609375,
0.0270843505859375,
0.01348114013671875,
0.02996826171875,
-0.0088043212890625,
0.00870513916015625,
0.038726806640625,
-0.046600341796875,
0.03472900390625,
0.00658416748046875,
-0.0220184326171875,
-0.0159912109375,
0.01837158203125,
0.008056640625,
-0.0224609375,
-0.0233917236328125,
0.029876708984375,
0.02056884765625,
0.044891357421875,
-0.043060302734375,
-0.059967041015625,
-0.025238037109375,
0.0027866363525390625,
-0.07293701171875,
-0.043182373046875,
-0.0162506103515625,
-0.047119140625,
-0.04705810546875,
0.037139892578125,
-0.041168212890625,
0.017547607421875,
0.04949951171875,
-0.004871368408203125,
0.0199432373046875,
-0.0011463165283203125,
-0.0017175674438476562,
-0.01297760009765625,
-0.0379638671875,
-0.0667724609375,
0.0087432861328125,
-0.0046844482421875,
0.004398345947265625,
0.019744873046875,
0.0230712890625,
0.00021004676818847656,
0.042022705078125,
0.02581787109375,
0.00479888916015625,
0.00547027587890625,
0.010009765625,
-0.0191802978515625,
-0.0009493827819824219,
0.0196075439453125,
0.020172119140625,
0.00804901123046875,
-0.0171051025390625,
-0.0201416015625,
0.005001068115234375,
-0.005054473876953125,
0.0228729248046875,
0.039215087890625,
-0.019287109375,
0.01568603515625,
0.048614501953125,
-0.03399658203125,
-0.04132080078125,
-0.0131988525390625,
-0.050537109375,
0.0140228271484375,
0.0243682861328125,
0.003719329833984375,
0.0059356689453125,
0.00949859619140625,
-0.0129852294921875,
0.02532958984375,
0.040985107421875,
-0.031036376953125,
0.0345458984375,
-0.033843994140625,
-0.037567138671875,
-0.0509033203125,
0.007457733154296875,
-0.0211944580078125,
0.053436279296875,
0.0005359649658203125,
0.01421356201171875,
0.0030994415283203125,
0.0159454345703125,
-0.016204833984375,
-0.04315185546875,
0.04229736328125,
0.01126861572265625,
0.0428466796875,
-0.0465087890625,
-0.0426025390625,
0.0081329345703125,
0.1119384765625,
-0.04052734375,
-0.025360107421875,
0.01800537109375,
0.023406982421875,
-0.0374755859375,
-0.005985260009765625,
-0.0303802490234375,
-0.019500732421875,
-0.0072784423828125,
-0.0103302001953125,
0.005710601806640625,
-0.0257720947265625,
-0.012725830078125,
-0.0162811279296875,
-0.00347137451171875,
-0.0268096923828125,
0.036773681640625,
-0.0110626220703125,
-0.0269622802734375,
0.0188140869140625,
-0.024139404296875,
-0.00684356689453125,
-0.01540374755859375,
-0.00829315185546875,
-0.08270263671875,
-0.00843048095703125,
-0.042572021484375,
0.08953857421875,
-0.01328277587890625,
0.02886962890625,
-0.033172607421875,
0.054107666015625,
-0.0013217926025390625,
0.004138946533203125,
0.00832366943359375,
0.0248260498046875,
-0.0220794677734375,
-0.0135955810546875,
0.006969451904296875,
-0.034210205078125,
-0.00023496150970458984,
-0.0287628173828125,
-0.051788330078125,
-0.062744140625,
-0.039215087890625,
-0.048614501953125,
0.01324462890625,
-0.026641845703125,
0.006870269775390625,
-0.00946044921875,
-0.005489349365234375,
0.022796630859375,
-0.0145416259765625,
0.0027828216552734375,
-0.0104522705078125,
0.006351470947265625,
0.020355224609375,
-0.0296173095703125,
0.0194244384765625,
-0.0035457611083984375,
0.0418701171875,
0.00135040283203125,
-0.00923919677734375,
0.01641845703125,
0.0208587646484375,
0.027191162109375,
0.01409149169921875,
0.0073699951171875,
0.00435638427734375,
0.01285552978515625,
-0.048248291015625,
-0.00653076171875,
0.01258087158203125,
-0.09747314453125,
0.078369140625,
-0.0185546875,
0.01041412353515625,
0.0135345458984375,
-0.03350830078125,
0.070556640625,
0.038543701171875,
0.019134521484375,
-0.0296173095703125,
0.0188751220703125,
0.0209197998046875,
0.00787353515625,
-0.048370361328125,
-0.027984619140625,
-0.01419830322265625,
-0.00311279296875,
-0.004413604736328125,
0.0204620361328125,
0.01861572265625,
-0.00012695789337158203,
-0.01328277587890625,
0.0027523040771484375,
0.000812530517578125,
-0.0155029296875,
-0.0233001708984375,
-0.01104736328125,
0.032379150390625,
-0.017333984375,
0.00408172607421875,
-0.00470733642578125,
-0.002521514892578125,
0.025482177734375,
0.0201568603515625,
-0.01434326171875,
-0.02801513671875,
0.0178375244140625,
0.0176239013671875,
-0.01030731201171875,
0.0261993408203125,
0.031097412109375,
0.01495361328125,
0.0009593963623046875,
-0.0157928466796875,
0.00812530517578125,
0.01483917236328125,
-0.04144287109375,
0.0279083251953125,
0.006473541259765625,
-0.00881195068359375,
0.035491943359375,
-0.015960693359375,
0.01076507568359375,
-0.01277923583984375,
-0.0090789794921875,
-0.003223419189453125,
-0.0224456787109375,
0.04156494140625,
0.0162506103515625,
-0.01025390625,
-0.0006589889526367188,
0.0185394287109375,
0.01348876953125,
-0.042724609375,
0.00567626953125,
0.052886962890625,
0.0501708984375,
-0.0158538818359375,
-0.0596923828125,
0.01617431640625,
-0.026702880859375,
-0.01428985595703125,
0.03729248046875,
-0.003448486328125,
-0.03729248046875,
-0.03057861328125,
-0.0042877197265625,
0.0244903564453125,
-0.01279449462890625,
-0.0233612060546875,
-0.018585205078125,
-0.05743408203125,
-0.038970947265625,
0.03741455078125,
-0.07080078125,
-0.01126861572265625,
-0.0061492919921875,
-0.023956298828125,
0.01525115966796875,
-0.031219482421875,
0.0137786865234375,
-0.0287322998046875,
0.0033512115478515625,
-0.031005859375,
0.03851318359375,
-0.047882080078125,
-0.00618743896484375,
-0.0294189453125,
0.031280517578125,
-0.09136962890625,
0.016021728515625,
0.0278472900390625,
0.0243988037109375,
-0.0018634796142578125,
-0.0294036865234375,
-0.0660400390625,
-0.0335693359375,
-0.0243988037109375,
-0.01910400390625,
-0.006561279296875,
0.01473236083984375,
0.0273895263671875,
0.04595947265625,
0.0162353515625,
-0.0145416259765625,
0.014739990234375,
0.0110931396484375,
-0.0019683837890625,
0.07025146484375,
-0.0229644775390625,
0.042144775390625,
-0.01229095458984375,
0.0408935546875,
-0.0180206298828125,
0.0007143020629882812,
0.004184722900390625,
-0.007160186767578125,
0.005176544189453125,
-0.05194091796875,
-0.0187530517578125,
0.0095977783203125,
-0.037200927734375,
0.0421142578125,
0.0300750732421875,
0.01158905029296875,
-0.01160430908203125,
-0.004383087158203125,
0.01288604736328125,
-0.0284423828125,
0.00775146484375,
-0.0205841064453125,
-0.0007548332214355469,
-0.0099639892578125,
-0.024749755859375,
0.03656005859375,
0.0003304481506347656,
-0.022857666015625,
0.021087646484375,
-0.00719451904296875,
0.0166168212890625,
0.0261077880859375,
0.062744140625,
-0.07159423828125,
-0.00197601318359375,
-0.0257415771484375,
0.0310821533203125,
0.018157958984375,
0.0204315185546875,
0.04315185546875,
0.0311737060546875,
-0.0199127197265625,
-0.033233642578125,
0.042572021484375,
-0.0009179115295410156,
-0.04498291015625,
0.01751708984375,
-0.030731201171875,
0.044342041015625,
0.016632080078125,
0.07879638671875,
-0.004955291748046875,
0.0152740478515625,
0.0183563232421875,
-0.0655517578125,
0.034759521484375,
0.0258026123046875,
0.03399658203125,
0.005992889404296875,
-0.023468017578125,
-0.003292083740234375,
-0.0017080307006835938,
0.0023021697998046875,
-0.00276947021484375,
-0.00016736984252929688,
-0.014739990234375,
0.017578125,
-0.0030307769775390625,
-0.04296875,
-0.019927978515625,
0.040557861328125,
-0.033599853515625,
-0.0140228271484375,
0.021697998046875,
-0.0200958251953125,
-0.00928497314453125,
-0.06451416015625,
-0.0220489501953125,
-0.01788330078125,
-0.021209716796875,
-0.008697509765625,
0.019287109375,
0.039398193359375,
0.01470184326171875,
0.015716552734375,
0.003997802734375,
-0.0209503173828125,
0.0009708404541015625,
0.0335693359375,
-0.03411865234375,
0.00424957275390625,
0.050201416015625,
-0.0279388427734375,
0.018707275390625,
0.0413818359375,
-0.01511383056640625,
0.0025081634521484375,
-0.0116424560546875,
0.028411865234375,
-0.0540771484375,
0.004486083984375,
0.024658203125,
-0.0093536376953125,
0.0079803466796875,
-0.033111572265625,
-0.033935546875,
-0.03582763671875,
0.0034942626953125,
-0.049652099609375,
-0.021728515625,
0.02520751953125,
-0.042510986328125,
-0.06573486328125,
0.073974609375,
0.02618408203125,
0.0245513916015625,
-0.0249786376953125,
0.0345458984375,
-0.0219573974609375,
0.01593017578125,
0.02020263671875,
0.03900146484375,
-0.036468505859375,
-0.0098724365234375,
-0.0227203369140625,
-0.0008645057678222656,
-0.002559661865234375,
0.041595458984375,
0.0027027130126953125,
-0.007061004638671875,
-0.0073699951171875,
-0.0006251335144042969,
0.06243896484375,
0.0604248046875,
0.0196075439453125,
-0.00640106201171875,
0.00518035888671875,
-0.0169830322265625,
0.006313323974609375,
-0.020965576171875,
0.0181427001953125,
-0.0467529296875,
0.0023670196533203125,
0.0273590087890625,
-0.00919342041015625,
-0.00693511962890625,
0.0221405029296875,
0.0003781318664550781,
-0.024078369140625,
-0.002960205078125,
0.0077362060546875,
-0.061492919921875,
-0.005542755126953125,
0.0372314453125,
-0.002490997314453125,
-0.0362548828125,
-0.06005859375,
-0.0160980224609375,
0.0211944580078125,
-0.01506805419921875,
0.053314208984375,
0.0290069580078125,
0.012908935546875,
0.067626953125,
0.025634765625,
0.040679931640625,
0.03692626953125,
-0.006412506103515625,
0.0119476318359375,
0.009063720703125,
0.03033447265625,
0.00853729248046875,
0.04339599609375,
0.02276611328125,
0.021636962890625,
-0.0250091552734375,
-0.033416748046875,
0.0014247894287109375,
0.0083770751953125,
0.038330078125,
-0.01216888427734375,
0.0401611328125,
-0.11102294921875,
-0.05206298828125,
0.017852783203125,
-0.0178375244140625,
0.00504302978515625,
0.01515960693359375,
0.017822265625,
0.0301361083984375,
0.0100555419921875,
-0.028106689453125,
-0.03192138671875,
0.00791168212890625,
0.019622802734375,
0.047210693359375,
-0.0012025833129882812,
0.041656494140625,
0.0033397674560546875,
-0.01515960693359375,
-0.0462646484375,
0.0208282470703125,
0.01108551025390625,
0.036834716796875,
-0.065185546875,
-0.0116729736328125,
0.0193328857421875,
0.034149169921875,
0.005947113037109375,
0.03656005859375,
0.04754638671875,
0.00545501708984375,
-0.041778564453125,
0.0065460205078125,
0.0023403167724609375,
-0.0423583984375,
0.02362060546875,
-0.007358551025390625,
0.02703857421875,
0.021697998046875,
-0.0160369873046875,
-0.009979248046875,
0.04119873046875,
0.036407470703125,
-0.0234832763671875,
0.029083251953125,
-0.0024127960205078125,
0.00942230224609375,
0.01079559326171875,
-0.0224761962890625,
-0.01605224609375,
0.0013227462768554688,
-0.064453125,
0.005710601806640625,
-0.0030345916748046875,
-0.099365234375,
0.0094451904296875,
0.038726806640625,
-0.04095458984375,
0.01407623291015625,
0.0179290771484375,
-0.03192138671875,
-0.0219879150390625,
0.0284271240234375,
0.026153564453125,
-0.00457763671875,
-0.00616455078125,
-0.00177764892578125,
0.0307769775390625,
0.0308685302734375,
0.0206756591796875,
0.032623291015625,
0.0159759521484375,
0.0804443359375,
-0.055328369140625,
0.027496337890625,
0.00978851318359375,
0.0124359130859375,
-0.0166473388671875,
-0.0154266357421875,
-0.022064208984375,
-0.04266357421875,
0.01508331298828125,
0.0128631591796875,
-0.0204620361328125,
0.034820556640625,
0.01454925537109375,
-0.0176849365234375,
-0.0120391845703125,
0.00799560546875,
0.00800323486328125,
0.0328369140625,
0.052398681640625,
-0.00969696044921875,
0.0008172988891601562,
-0.01325225830078125,
-0.03076171875,
0.027069091796875,
0.01125335693359375,
0.0182037353515625,
-0.006938934326171875,
0.034332275390625,
-0.01024627685546875,
0.04150390625,
-0.007541656494140625,
0.06134033203125,
0.0223846435546875,
0.00420379638671875,
0.01183319091796875,
0.0251922607421875,
-0.01284027099609375,
0.008819580078125,
0.0196685791015625,
-0.01302337646484375,
0.01374053955078125,
-0.06414794921875,
0.047576904296875,
0.033721923828125,
0.059661865234375,
-0.01904296875,
0.0171661376953125,
0.0219879150390625,
0.0212249755859375,
0.0034770965576171875,
-0.01145172119140625,
-0.01332855224609375,
-0.01396942138671875,
-0.0207977294921875,
0.0164031982421875,
-0.01116180419921875,
-0.0300140380859375,
-0.05230712890625,
-0.05889892578125,
0.037445068359375,
0.048370361328125,
-0.0643310546875,
0.0135650634765625,
0.054779052734375,
-0.01373291015625,
0.026580810546875,
-0.0174102783203125,
-0.0124359130859375,
0.021026611328125,
-0.0138092041015625,
-0.041900634765625,
-0.041107177734375,
0.057525634765625,
-0.0479736328125,
0.056304931640625,
0.072265625,
-0.049530029296875,
0.0007586479187011719,
0.03155517578125,
0.04937744140625,
0.07623291015625,
-0.05462646484375,
-0.01442718505859375,
0.0147705078125,
0.0104827880859375,
-0.050384521484375,
-0.0002892017364501953,
0.0179290771484375,
0.013214111328125,
0.016326904296875,
0.0021877288818359375,
-0.004459381103515625,
-0.003482818603515625,
-0.047027587890625,
-0.071044921875,
-0.026702880859375,
0.01447296142578125,
-0.03717041015625,
0.060455322265625,
-0.01140594482421875,
-0.04449462890625,
0.042755126953125,
0.0204620361328125,
-0.0028896331787109375,
0.055206298828125,
0.0232086181640625,
0.034698486328125,
0.06756591796875,
-0.015899658203125,
-0.004428863525390625,
-0.0189056396484375,
0.031036376953125,
0.0184326171875,
0.06109619140625,
-0.01543426513671875,
0.0126800537109375,
0.01551055908203125,
0.04876708984375,
-0.00905609130859375,
-0.0033779144287109375,
0.00942230224609375,
-0.027618408203125,
-0.0091094970703125,
0.0245819091796875,
-0.0157928466796875,
0.002872467041015625,
0.05120849609375,
0.033660888671875,
0.01373291015625,
-0.0130157470703125,
0.01074981689453125,
-0.01284027099609375,
-0.040771484375,
-0.023651123046875,
0.01174163818359375,
-0.0307769775390625,
-0.009063720703125,
-0.02740478515625,
0.0145111083984375,
0.037872314453125,
-0.006259918212890625,
-0.0172119140625,
-0.01268768310546875,
0.00025773048400878906,
0.0019588470458984375,
-0.09130859375,
0.033355712890625,
0.01690673828125,
-0.0052032470703125,
0.037109375,
0.00897216796875,
-0.01776123046875,
0.03497314453125,
0.08056640625,
0.03271484375,
-0.018707275390625,
-0.04229736328125,
0.01885986328125,
-0.01206207275390625,
0.032318115234375,
-0.050567626953125,
-0.047027587890625,
0.0204315185546875,
-0.00363922119140625,
-0.007671356201171875,
0.0008978843688964844,
0.0308685302734375,
-0.0390625,
-0.03607177734375,
-0.047271728515625,
-0.006786346435546875,
0.01165008544921875,
-0.0172119140625,
0.030609130859375,
-0.002254486083984375,
-0.01207733154296875,
0.0244140625,
-0.043548583984375,
0.01288604736328125,
0.0517578125,
0.049163818359375,
-0.010772705078125,
0.024383544921875,
-0.017303466796875,
0.036224365234375,
0.00012803077697753906
] |
4ec2caf414e6dcb8582b039357b7bf69a18c7b6e
|
Wordpress Stackexchange
Q: Return $post_id when DOING_AUTOSAVE? I see the following pattern over and over, on this site and on other places:
add_action( 'save_post', 'wpse14169_save_post' );
function wpse14169_save_post( $post_id )
{
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return $post_id;
}
// Other code...
}
Why should I return $post_id? save_post is an action, and the return value of an action handler is ignored. The WordPress core itself doesn't do it either.
The Codex example does return the $post_id, but it would not be the first incorrect (or outdated) line in the Codex.
Am I missing something? Do I need to return $post_id? Was there a there a time when this was needed?
A: Since nothing is being done with the return value, returning the post ID is pointless and should not be done. It only provides room for confusion.
Just tried it out, the following save_post action works fine.
function my_save_post($post_id)
{
// Stop WP from clearing custom fields on autosave
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
return;
// Prevent quick edit from clearing custom fields
if (defined('DOING_AJAX') && DOING_AJAX)
return;
// Sanitize, validate and save ...
}
|
Q: Return $post_id when DOING_AUTOSAVE? I see the following pattern over and over, on this site and on other places:
add_action( 'save_post', 'wpse14169_save_post' );
function wpse14169_save_post( $post_id )
{
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return $post_id;
}
// Other code...
}
Why should I return $post_id? save_post is an action, and the return value of an action handler is ignored. The WordPress core itself doesn't do it either.
The Codex example does return the $post_id, but it would not be the first incorrect (or outdated) line in the Codex.
Am I missing something? Do I need to return $post_id? Was there a there a time when this was needed?
A: Since nothing is being done with the return value, returning the post ID is pointless and should not be done. It only provides room for confusion.
Just tried it out, the following save_post action works fine.
function my_save_post($post_id)
{
// Stop WP from clearing custom fields on autosave
if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
return;
// Prevent quick edit from clearing custom fields
if (defined('DOING_AJAX') && DOING_AJAX)
return;
// Sanitize, validate and save ...
}
A: The 'save_post' action was added to core in 2.0, and has always been an action. Looking through the current autosave procedures, it doesn't appear to call the 'save_post' action directly at any time.
So the short answer is, no. There is no reason, and has never been any reason, to return any value on this action. Of course, it doesn't hurt at all to do return the post id.
|
wordpress
|
{
"language": "en",
"length": 257,
"provenance": "stackexchange_00019.jsonl.gz:408436",
"question_score": "8",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14169"
}
|
[
0.0294647216796875,
-0.0017099380493164062,
-0.0016727447509765625,
-0.0055084228515625,
0.0214080810546875,
-0.0185394287109375,
0.045562744140625,
-0.027313232421875,
0.018829345703125,
0.003826141357421875,
-0.031524658203125,
-0.02838134765625,
-0.0017328262329101562,
-0.0292510986328125,
-0.016876220703125,
-0.03900146484375,
0.059417724609375,
-0.045989990234375,
0.0232086181640625,
-0.00307464599609375,
-0.00830841064453125,
0.0312347412109375,
0.050994873046875,
0.00777435302734375,
0.03759765625,
-0.00809478759765625,
-0.003021240234375,
-0.00856781005859375,
0.0078277587890625,
-0.0012903213500976562,
0.0265655517578125,
-0.0137786865234375,
0.0184326171875,
0.035491943359375,
-0.043914794921875,
0.0170745849609375,
0.0014286041259765625,
0.01480865478515625,
-0.0018482208251953125,
0.0222015380859375,
0.0012826919555664062,
0.00098419189453125,
-0.00429534912109375,
-0.08642578125,
-0.0235595703125,
0.0148773193359375,
-0.010162353515625,
-0.0103607177734375,
-0.0038509368896484375,
0.0163726806640625,
0.002506256103515625,
0.0233001708984375,
0.007904052734375,
0.021697998046875,
0.01372528076171875,
-0.0077362060546875,
-0.063720703125,
-0.0017833709716796875,
0.06390380859375,
0.046661376953125,
-0.02471923828125,
-0.08203125,
0.01493072509765625,
-0.09454345703125,
0.0017385482788085938,
0.0154266357421875,
0.0296478271484375,
0.0103607177734375,
-0.040496826171875,
-0.0139617919921875,
0.00910186767578125,
-0.032470703125,
-0.00415802001953125,
0.010894775390625,
-0.0018978118896484375,
-0.036651611328125,
0.026153564453125,
0.005092620849609375,
-0.00567626953125,
0.043792724609375,
-0.025665283203125,
-0.00817108154296875,
-0.00608062744140625,
-0.01186370849609375,
-0.005916595458984375,
0.0193023681640625,
-0.0297088623046875,
-0.0033435821533203125,
-0.0226593017578125,
-0.053863525390625,
-0.020172119140625,
-0.08782958984375,
-0.00266265869140625,
-0.0136566162109375,
-0.0078125,
-0.045928955078125,
-0.0110015869140625,
0.054443359375,
-0.0234527587890625,
0.011962890625,
0.007015228271484375,
-0.023773193359375,
0.0077667236328125,
-0.040740966796875,
0.0047149658203125,
0.06085205078125,
0.00824737548828125,
-0.04803466796875,
-0.004791259765625,
0.004451751708984375,
0.0006728172302246094,
-0.032745361328125,
0.002773284912109375,
-0.0128173828125,
-0.0233154296875,
-0.0031490325927734375,
-0.034881591796875,
-0.009613037109375,
0.0028133392333984375,
-0.029571533203125,
0.0137786865234375,
-0.00510406494140625,
-0.00490570068359375,
-0.0125732421875,
0.0286407470703125,
-0.017669677734375,
-0.06494140625,
0.036529541015625,
0.0264129638671875,
0.0202178955078125,
-0.03448486328125,
-0.01495361328125,
0.0701904296875,
0.0216064453125,
0.0291748046875,
-0.032745361328125,
0.0233001708984375,
-0.027130126953125,
-0.01088714599609375,
0.031494140625,
-0.011932373046875,
-0.04718017578125,
-0.020263671875,
-0.00640106201171875,
0.0023956298828125,
0.0145416259765625,
0.01085662841796875,
0.0213470458984375,
0.0031490325927734375,
-0.058563232421875,
0.027191162109375,
-0.03948974609375,
0.0443115234375,
-0.0070648193359375,
-0.0007662773132324219,
-0.0300445556640625,
0.022918701171875,
-0.045806884765625,
-0.01067352294921875,
-0.041778564453125,
0.0279693603515625,
-0.01812744140625,
-0.004180908203125,
-0.050323486328125,
-0.05828857421875,
-0.001247406005859375,
-0.07489013671875,
-0.0100250244140625,
0.02374267578125,
0.069580078125,
0.0330810546875,
0.031646728515625,
0.0030879974365234375,
0.008056640625,
-0.0002734661102294922,
-0.0199737548828125,
0.01502227783203125,
-0.033111572265625,
0.035186767578125,
0.0280303955078125,
-0.034820556640625,
-0.0300140380859375,
0.0227813720703125,
-0.009490966796875,
-0.045379638671875,
0.060333251953125,
0.014129638671875,
0.08746337890625,
-0.007717132568359375,
0.0151824951171875,
-0.0010347366333007812,
0.0085601806640625,
-0.0105743408203125,
0.008209228515625,
0.006622314453125,
-0.048980712890625,
-0.00324249267578125,
-0.03411865234375,
0.004261016845703125,
0.0305938720703125,
0.0209197998046875,
-0.01219940185546875,
-0.00545501708984375,
0.0006732940673828125,
-0.1080322265625,
-0.005817413330078125,
-0.04193115234375,
0.03173828125,
-0.03857421875,
0.0243988037109375,
0.03863525390625,
0.0191650390625,
-0.043426513671875,
0.0075531005859375,
0.023345947265625,
0.0118408203125,
-0.0281524658203125,
0.0180816650390625,
-0.0164642333984375,
0.04791259765625,
-0.0538330078125,
-0.035858154296875,
-0.05694580078125,
-0.02545166015625,
0.01983642578125,
-0.0125274658203125,
-0.032012939453125,
-0.0112762451171875,
-0.0027713775634765625,
-0.01372528076171875,
0.0018415451049804688,
0.06341552734375,
0.07257080078125,
0.0283660888671875,
-0.036102294921875,
-0.027130126953125,
-0.06622314453125,
-0.154296875,
-0.00461578369140625,
0.114990234375,
0.0199432373046875,
-0.0166778564453125,
-0.0291290283203125,
-0.008544921875,
0.01453399658203125,
0.0269622802734375,
0.033477783203125,
-0.012603759765625,
0.01342010498046875,
0.039215087890625,
-0.00044608116149902344,
-0.0186309814453125,
0.01097869873046875,
-0.06219482421875,
-0.007244110107421875,
0.036956787109375,
-0.06011962890625,
-0.0284423828125,
0.031707763671875,
-0.036834716796875,
0.0067901611328125,
-0.071533203125,
-0.00140380859375,
-0.033843994140625,
0.004146575927734375,
0.00725555419921875,
0.037384033203125,
0.037506103515625,
-0.006336212158203125,
-0.0246429443359375,
0.01502227783203125,
0.01337432861328125,
0.0030307769775390625,
0.050567626953125,
0.049896240234375,
-0.012847900390625,
-0.0170440673828125,
-0.0242767333984375,
0.024993896484375,
0.0278472900390625,
-0.0046844482421875,
0.04864501953125,
-0.023040771484375,
-0.0209808349609375,
0.00574493408203125,
-0.0517578125,
-0.01496124267578125,
-0.02069091796875,
0.01215362548828125,
-0.017425537109375,
0.00685882568359375,
0.02728271484375,
-0.039276123046875,
0.0496826171875,
0.0263824462890625,
-0.0298309326171875,
0.0179443359375,
-0.0104217529296875,
0.0066986083984375,
-0.01751708984375,
0.0400390625,
0.057830810546875,
0.017303466796875,
0.00647735595703125,
-0.0047149658203125,
0.015899658203125,
-0.00441741943359375,
0.004619598388671875,
-0.01526641845703125,
0.0002930164337158203,
-0.061431884765625,
-0.012054443359375,
0.043212890625,
0.1312255859375,
-0.01922607421875,
-0.05242919921875,
0.030517578125,
0.06646728515625,
-0.03216552734375,
-0.07611083984375,
0.017547607421875,
-0.046875,
-0.01038360595703125,
-0.003173828125,
-0.0223541259765625,
-0.00861358642578125,
-0.0143585205078125,
-0.0026569366455078125,
-0.017669677734375,
-0.0093231201171875,
-0.0570068359375,
-0.06964111328125,
-0.0650634765625,
-0.032257080078125,
-0.01715087890625,
-0.00417327880859375,
0.016571044921875,
0.06414794921875,
0.0151519775390625,
-0.03631591796875,
0.006031036376953125,
-0.042449951171875,
-0.0443115234375,
-0.0013446807861328125,
-0.027862548828125,
-0.0189666748046875,
-0.0179443359375,
0.012237548828125,
0.0038890838623046875,
-0.0362548828125,
0.030853271484375,
-0.02227783203125,
-0.021453857421875,
-0.0270233154296875,
0.038726806640625,
0.01493072509765625,
-0.002197265625,
0.044403076171875,
0.108642578125,
-0.0005140304565429688,
-0.0075225830078125,
-0.0162811279296875,
-0.04669189453125,
0.013824462890625,
0.03460693359375,
-0.005214691162109375,
-0.006961822509765625,
0.0087432861328125,
0.035919189453125,
0.03448486328125,
-0.0033245086669921875,
0.00830841064453125,
0.006984710693359375,
0.0081939697265625,
0.041351318359375,
-0.0223388671875,
0.06744384765625,
0.00565338134765625,
-0.01190185546875,
0.025238037109375,
0.021942138671875,
0.026214599609375,
-0.06500244140625,
-0.01678466796875,
-0.04034423828125,
0.0246429443359375,
-0.06805419921875,
-0.005146026611328125,
-0.03533935546875,
0.0003802776336669922,
-0.01171112060546875,
0.05975341796875,
-0.03143310546875,
0.005340576171875,
-0.0374755859375,
0.0016307830810546875,
-0.024505615234375,
-0.069580078125,
-0.044677734375,
0.00384521484375,
-0.037384033203125,
0.022918701171875,
-0.0161895751953125,
0.007282257080078125,
-0.0186614990234375,
0.036468505859375,
-0.009185791015625,
-0.02764892578125,
0.032257080078125,
-0.050811767578125,
0.048370361328125,
0.00640869140625,
0.0335693359375,
-0.015869140625,
0.004638671875,
-0.055511474609375,
-0.1170654296875,
-0.01511383056640625,
-0.044952392578125,
0.0723876953125,
0.01532745361328125,
-0.0041351318359375,
-0.00959014892578125,
0.055755615234375,
0.0203857421875,
0.01100921630859375,
0.004474639892578125,
0.00902557373046875,
-0.02545166015625,
0.0054931640625,
0.0220184326171875,
-0.0228424072265625,
-0.0031261444091796875,
-0.0177001953125,
-0.046417236328125,
0.0006155967712402344,
-0.032928466796875,
0.01020050048828125,
0.003971099853515625,
-0.035430908203125,
-0.03558349609375,
-0.01067352294921875,
-0.037628173828125,
0.01372528076171875,
-0.0247802734375,
-0.012359619140625,
-0.029205322265625,
-0.046478271484375,
0.023284912109375,
0.004787445068359375,
0.01140594482421875,
0.002902984619140625,
0.0528564453125,
0.0165863037109375,
-0.01837158203125,
0.0162353515625,
-0.0141448974609375,
0.021636962890625,
0.004604339599609375,
0.0289459228515625,
-0.0037841796875,
-0.02374267578125,
0.057159423828125,
-0.007068634033203125,
0.0020809173583984375,
-0.08251953125,
0.0858154296875,
-0.0225677490234375,
0.01102447509765625,
-0.01432037353515625,
-0.057342529296875,
0.07208251953125,
0.0183868408203125,
-0.0190582275390625,
-0.009063720703125,
0.01934814453125,
0.0301666259765625,
-0.048370361328125,
0.046356201171875,
-0.01389312744140625,
-0.036041259765625,
0.01511383056640625,
0.005878448486328125,
0.00047969818115234375,
0.0233917236328125,
-0.007801055908203125,
0.012542724609375,
0.0033740997314453125,
0.0059967041015625,
-0.006809234619140625,
-0.002185821533203125,
0.0110931396484375,
0.033203125,
0.0183563232421875,
0.016143798828125,
-0.0246429443359375,
0.0004673004150390625,
-0.002201080322265625,
-0.01129913330078125,
-0.040802001953125,
-0.0164337158203125,
0.01120758056640625,
0.01568603515625,
0.006793975830078125,
0.0008559226989746094,
0.01934814453125,
0.060577392578125,
-0.03314208984375,
-0.016357421875,
0.0262908935546875,
0.04559326171875,
-0.0472412109375,
-0.0093841552734375,
0.023529052734375,
-0.0205230712890625,
-0.0207061767578125,
0.0516357421875,
0.05438232421875,
-0.01474761962890625,
-0.0455322265625,
0.05712890625,
0.0609130859375,
0.022613525390625,
-0.0022754669189453125,
0.00821685791015625,
-0.0037994384765625,
0.01454925537109375,
-0.0188140869140625,
-0.0292205810546875,
-0.00807952880859375,
0.0257415771484375,
0.01605224609375,
-0.00441741943359375,
-0.0038547515869140625,
0.0200042724609375,
0.0185089111328125,
-0.00572967529296875,
0.04290771484375,
0.027587890625,
-0.053924560546875,
0.01372528076171875,
0.026641845703125,
-0.003017425537109375,
-0.02166748046875,
0.0153961181640625,
-0.022491455078125,
0.01019287109375,
0.0021038055419921875,
-0.01953125,
-0.01184844970703125,
-0.0154571533203125,
-0.0031070709228515625,
0.0006995201110839844,
-0.021087646484375,
0.00849151611328125,
0.020843505859375,
0.027801513671875,
-0.0247039794921875,
-0.049041748046875,
0.0255279541015625,
-0.0218658447265625,
0.0276336669921875,
-0.03271484375,
0.01366424560546875,
-0.0085906982421875,
0.0182342529296875,
0.0279693603515625,
0.0115966796875,
-0.013916015625,
-0.01020050048828125,
-0.035888671875,
-0.01494598388671875,
0.0180511474609375,
-0.0060882568359375,
-0.0161895751953125,
-0.002635955810546875,
-0.0026378631591796875,
0.01898193359375,
0.004688262939453125,
0.0188751220703125,
0.00400543212890625,
0.00598907470703125,
-0.024383544921875,
0.040374755859375,
-0.0299072265625,
0.060150146484375,
0.0014276504516601562,
0.0295562744140625,
-0.0019989013671875,
0.01313018798828125,
0.008392333984375,
-0.009307861328125,
-0.0305633544921875,
-0.0190582275390625,
0.01507568359375,
0.0269622802734375,
0.006824493408203125,
0.00913238525390625,
0.0216217041015625,
0.002277374267578125,
-0.01175689697265625,
0.0179443359375,
0.006267547607421875,
-0.0163421630859375,
-0.036590576171875,
0.048126220703125,
0.0015497207641601562,
-0.004207611083984375,
-0.03533935546875,
-0.013214111328125,
0.028289794921875,
0.0286102294921875,
0.0191497802734375,
-0.04669189453125,
0.007266998291015625,
0.01236724853515625,
0.00730133056640625,
0.01105499267578125,
0.060150146484375,
0.0188751220703125,
0.04046630859375,
0.015625,
0.0239410400390625,
0.0009450912475585938,
0.008880615234375,
-0.042449951171875,
-0.031982421875,
0.051300048828125,
0.0224609375,
-0.0377197265625,
0.04425048828125,
-0.0210113525390625,
0.023712158203125,
0.033905029296875,
0.0625,
-0.0675048828125,
0.030426025390625,
0.03802490234375,
-0.0076904296875,
0.020111083984375,
-0.018707275390625,
0.0085601806640625,
0.0174407958984375,
0.002716064453125,
-0.0174560546875,
-0.03564453125,
-0.004100799560546875,
-0.00995635986328125,
0.012969970703125,
-0.0249481201171875,
0.01251220703125,
-0.0135345458984375,
-0.02154541015625,
-0.0006794929504394531,
0.00734710693359375,
0.0104217529296875,
-0.0189971923828125,
0.022613525390625,
-0.00812530517578125,
-0.0171966552734375,
-0.0843505859375,
-0.01513671875,
0.01239776611328125,
-0.0282440185546875,
0.0211639404296875,
0.0014925003051757812,
0.042755126953125,
0.03826904296875,
-0.01151275634765625,
0.0306243896484375,
-0.0208740234375,
0.0245208740234375,
-0.0302276611328125,
-0.030548095703125,
0.0164947509765625,
0.031158447265625,
-0.07147216796875,
0.0321044921875,
-0.017059326171875,
-0.0219573974609375,
-0.01163482666015625,
0.0011844635009765625,
0.0999755859375,
-0.053314208984375,
-0.0081939697265625,
0.031707763671875,
0.0187225341796875,
-0.0276336669921875,
-0.0213775634765625,
0.02313232421875,
-0.04791259765625,
-0.03094482421875,
-0.0308837890625,
-0.0400390625,
0.007236480712890625,
-0.052215576171875,
-0.059967041015625,
0.10528564453125,
0.041412353515625,
0.018768310546875,
-0.020751953125,
0.034210205078125,
-0.0088958740234375,
0.04254150390625,
-0.0290985107421875,
0.06402587890625,
0.022674560546875,
-0.0115814208984375,
-0.0672607421875,
-0.01079559326171875,
-0.0293426513671875,
0.036468505859375,
0.037445068359375,
0.0236053466796875,
-0.03717041015625,
0.001453399658203125,
0.0035953521728515625,
-0.0116729736328125,
-0.039276123046875,
0.046051025390625,
0.0179595947265625,
0.0255126953125,
0.0416259765625,
-0.0296783447265625,
0.0244903564453125,
-0.0183258056640625,
-0.0027141571044921875,
0.037567138671875,
0.0192108154296875,
0.0236358642578125,
-0.038330078125,
-0.0002772808074951172,
-0.033111572265625,
-0.00897979736328125,
0.01268768310546875,
0.03460693359375,
0.022369384765625,
0.0157012939453125,
0.04998779296875,
-0.05224609375,
0.016693115234375,
-0.032135009765625,
0.058074951171875,
0.003376007080078125,
0.0168609619140625,
0.03009033203125,
0.00800323486328125,
0.0237579345703125,
0.024383544921875,
0.0091400146484375,
0.020721435546875,
0.0108184814453125,
0.053009033203125,
0.035858154296875,
0.0233917236328125,
-0.0195770263671875,
0.01300048828125,
0.04302978515625,
0.067626953125,
-0.041412353515625,
-0.0174102783203125,
-0.0022068023681640625,
-0.0111541748046875,
0.00762939453125,
-0.0299835205078125,
0.0201873779296875,
-0.0211944580078125,
-0.0161285400390625,
-0.02734375,
0.0105438232421875,
0.047393798828125,
-0.0015316009521484375,
0.0147247314453125,
0.0290374755859375,
-0.047698974609375,
-0.006717681884765625,
-0.053070068359375,
-0.017730712890625,
0.0302886962890625,
0.048736572265625,
0.045501708984375,
0.0419921875,
0.03485107421875,
-0.0302734375,
-0.0026226043701171875,
0.0401611328125,
0.040924072265625,
-0.0055999755859375,
-0.0223236083984375,
-0.035308837890625,
0.0340576171875,
0.0252227783203125,
-0.004146575927734375,
0.0384521484375,
0.05047607421875,
0.0280609130859375,
-0.0222930908203125,
-0.01099395751953125,
0.0021572113037109375,
-0.036834716796875,
-0.00214385986328125,
-0.04425048828125,
0.01096343994140625,
0.01377105712890625,
-0.0006737709045410156,
0.0245208740234375,
-0.0101165771484375,
0.032562255859375,
-0.01180267333984375,
0.0572509765625,
-0.00860595703125,
0.00281524658203125,
0.039337158203125,
-0.0176239013671875,
0.043182373046875,
0.0131988525390625,
-0.016571044921875,
-0.0014295578002929688,
-0.005584716796875,
-0.01708984375,
-0.02880859375,
0.0022983551025390625,
-0.000885009765625,
0.04180908203125,
-0.007640838623046875,
-0.039886474609375,
0.03643798828125,
-0.01015472412109375,
0.019683837890625,
0.021636962890625,
0.0025463104248046875,
-0.005344390869140625,
-0.0289306640625,
-0.01922607421875,
-0.0027484893798828125,
0.02166748046875,
-0.00927734375,
0.0309600830078125,
0.0025272369384765625,
0.0066986083984375,
-0.026458740234375,
0.019317626953125,
-0.05950927734375,
-0.031646728515625,
0.007350921630859375,
-0.036224365234375,
-0.00467681884765625,
0.0209503173828125,
-0.0377197265625,
0.0227203369140625,
0.02593994140625,
0.0081787109375,
0.043121337890625,
-0.0279693603515625,
0.01428985595703125,
-0.018280029296875,
0.0179290771484375,
-0.0174713134765625,
-0.031646728515625,
-0.039764404296875,
0.004772186279296875,
0.032318115234375,
0.0272674560546875,
-0.027130126953125,
0.0277862548828125,
0.0103912353515625,
-0.0166168212890625,
0.045562744140625,
-0.048431396484375,
0.06011962890625,
0.0280914306640625,
-0.0286407470703125,
0.03717041015625,
0.0003559589385986328,
-0.0258636474609375,
0.0081329345703125,
0.01189422607421875,
-0.020599365234375,
0.01319122314453125,
-0.043182373046875,
-0.0297393798828125,
0.01058197021484375,
0.030548095703125,
-0.01354217529296875,
0.01207733154296875,
-0.005222320556640625,
-0.00426483154296875,
-0.0196685791015625,
-0.0116119384765625,
-0.0028667449951171875,
-0.0028209686279296875,
-0.039520263671875,
0.0091552734375,
-0.03070068359375,
-0.0095672607421875,
-0.022369384765625,
-0.00021135807037353516,
0.0164337158203125,
0.01302337646484375,
-0.0234222412109375,
0.03216552734375,
-0.0228424072265625,
-0.0242767333984375,
0.00609588623046875,
0.020111083984375,
-0.0173797607421875,
0.0248260498046875,
0.007427215576171875,
-0.039703369140625,
-0.0200347900390625,
0.06170654296875,
-0.0072021484375,
-0.0249481201171875,
-0.0294647216796875,
-0.00511932373046875,
-0.026123046875,
-0.0027751922607421875,
-0.01471710205078125,
0.027496337890625,
0.054290771484375,
-0.046234130859375,
0.01416015625,
0.004947662353515625,
0.0178070068359375,
-0.03106689453125,
-0.0066070556640625,
-0.0236358642578125,
0.0087890625,
-0.05792236328125,
0.0286407470703125,
0.031280517578125,
-0.01132965087890625,
-0.0174407958984375,
0.033599853515625,
-0.0035190582275390625,
-0.0103759765625,
-0.01071929931640625,
0.0030574798583984375,
-0.023223876953125,
0.043243408203125,
0.0186614990234375,
-0.06939697265625,
-0.0034637451171875,
0.023956298828125,
0.0167999267578125,
-0.0093841552734375,
0.03826904296875,
0.036895751953125,
-0.090087890625,
-0.0159149169921875,
-0.045135498046875,
-0.0234375,
0.0263214111328125,
-0.009735107421875,
0.029388427734375,
0.0276031494140625,
-0.035614013671875,
-0.0121612548828125,
-0.0206146240234375,
-0.0243988037109375,
-0.0274658203125,
-0.0191192626953125,
0.0277557373046875,
0.021240234375,
0.03302001953125,
0.0305938720703125,
-0.007175445556640625,
-0.048248291015625,
0.0274810791015625,
0.0026416778564453125,
-0.047088623046875,
0.0090789794921875,
0.012237548828125,
-0.0231781005859375,
-0.01389312744140625,
0.0019779205322265625,
0.01324462890625,
0.0277099609375,
0.005352020263671875,
0.00012683868408203125,
-0.005680084228515625,
0.020751953125,
-0.0198822021484375,
-0.059112548828125,
0.01007843017578125,
0.0033168792724609375,
-0.0211639404296875,
-0.0272979736328125,
0.029083251953125,
-0.01125335693359375,
-0.02056884765625,
0.0723876953125,
0.042724609375,
0.056976318359375,
-0.060882568359375,
-0.014129638671875,
0.0250396728515625,
0.021148681640625,
-0.031890869140625,
-0.02203369140625,
-0.032135009765625,
0.0228118896484375,
0.007755279541015625,
0.036529541015625,
0.0224456787109375,
-0.0173797607421875,
0.020660400390625,
-0.00347137451171875,
-0.041168212890625,
0.06597900390625,
-0.0026493072509765625,
0.011444091796875,
-0.015869140625,
0.0199737548828125,
0.04571533203125,
-0.037994384765625,
0.0018777847290039062,
0.044281005859375,
0.00908660888671875,
-0.00862884521484375,
0.0205078125,
0.01885986328125,
0.030792236328125,
-0.0005846023559570312
] |
a438e460e04491f38359c83bb91610081e256c68
|
Wordpress Stackexchange
Q: Display navigation menu item conditionally based on user capabilities I have one "branch" of my main site's navigation tree that should only be accessible to a set of registered, logged-in users. I understand how to query a user's role and capabilities. This question is specifically about what is the best way to leverage the build-in nav menu, but just hide an item conditionally.
Do I need to overload the built-in default navigation and write a custom query and build the navigation structure manually? I'd love to avoid this if possible.
I don't need full code samples, just your ideas and general framework / approach.
Appreciate the advice!
T
A: Use your own walker and check the capability before you create an item.
|
Q: Display navigation menu item conditionally based on user capabilities I have one "branch" of my main site's navigation tree that should only be accessible to a set of registered, logged-in users. I understand how to query a user's role and capabilities. This question is specifically about what is the best way to leverage the build-in nav menu, but just hide an item conditionally.
Do I need to overload the built-in default navigation and write a custom query and build the navigation structure manually? I'd love to avoid this if possible.
I don't need full code samples, just your ideas and general framework / approach.
Appreciate the advice!
T
A: Use your own walker and check the capability before you create an item.
A: Someone has made a brilliant plugin to do this with no coding. Even has checkboxes in the menu editor interface for selecting the approved roles per menu item.
http://wordpress.org/extend/plugins/nav-menu-roles/
A: The answer toscho posted is correct but for the few people who know what they are doing and how to do it. :)
I'm adding this for the rest of the world as a simpler solution for the less advanced users. The idea would be to have different menus and just displaying them based on the user role.
So say you have 3 menus named editor, author and default:
if (current_user_can('Editor')){
//menu for editor role
wp_nav_menu( array('menu' => 'editor' ));
}elseif(current_user_can('Author')){
//menu for author role
wp_nav_menu( array('menu' => 'author' ));
}else{
//default menu
wp_nav_menu( array('menu' => 'default' ));
}
A: The trouble with overriding start_el and end_el is that doing so only controls the display of the menu item in question - it doesn't affect the display of the children. I think you need to override display_element to hide the children as well.
Also, it's possible to use the description field of the menu item to hold information for each menu item about whether to display it or not.
This code looks in the description of each menu item for a comma delimited list of capabilities such as [capability: this_one, next_one] and if the current user has none of the capabilities won't display the item (or any of its children). It's fairly easy to remove the strings from the description if you actually want to use the description for its intended purpose.
/*
* hide or display menus based on user capabilities
*
* Use the description field of the custom menu item. If it contains a string like [capability: xx, xx]
* display the menu item only if the user has at least one of the capabilities.
* If a menu item is not displayed, nor are any of its sub items.
*/
/* Custom Walker */
class NASS_Nav_Walker extends Walker_Nav_Menu {
// override parent method
function display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output ) {
// we know the $element is a menu item
// we want to check its description field to see if it's OK to display it
// in which case we just retreat to the parent method
$desc = $element->description;
if ( should_display_menu_item($desc) ) {
parent::display_element( $element, &$children_elements, $max_depth, $depth=0, $args, &$output );
} else {
return;
}
}
}
/* should we display the menu item, if this is its description? */
function should_display_menu_item( $desc ) {
// first see if the description contains a capability specification of the form
// [capability: comma, delimited, list]
// we assume all capability names consist only of lower case with underbars
$prefix = "\[capability:";
$postfix = "\]";
$pattern = '@' . $prefix . '([a-z_, ]+)' . $postfix . '@';
$answer = true;
if ( preg_match($pattern, $desc, $matches) ) { // if we've got a match
$found = $matches[1]; // the parenthesized bit of the regex
$caps = array_map('trim', explode(",", $found));
if ( count ($caps) > 0 ) { // there is at least one
$answer = false;
// now see if the user has any of them
foreach ($caps as $cap) {
if ( current_user_can ($cap) ) $answer = true;
}
}
}
return $answer;
}
A: I have tried my hand at using the description field to use as to which roles can access which menu items, and based my modifications on code I got from here - Pimp my WP Menu
My modified version:
<?php
/***
* Menu WALKER - for restricting the menu items visibility
* Code modified by - Trupti Bhatt (http://3sided.co.in)
* using original code posted here - http://www.tisseur-de-toile.fr/wordpress-tricks/pimp-my-wordpress-menu-part-2-access-granted-to-authorized-personnel-only.html
***/
class description_walker extends Walker_Nav_Menu
{
/*
* Custom var to store current role
*/
private $current_user_role = "";
/*
* Get te current user role
*/
private function getCurrentUserRole()
{
global $current_user;
if ( is_user_logged_in() )
{
if ( $this->current_user_role == "" )
{
$this->current_user_role = $current_user->roles[0];
}
return $this->current_user_role;
}
else
{
$this->current_user_role='visitor';
return $this->current_user_role;
}
}
/*
* Check if the user is an administrator
*/
private function isAdmin()
{
$current_role = $this->getCurrentUserRole();
if ( $current_role == "administrator" )
{
return true;
}
else
{
return false;
}
}
/*
* Get all restrictions
*/
private function getAllRestrictions()
{
global $menu_restricted_access_array;
$all_restrictions_array = array();
foreach ( $menu_restricted_access_array as $one_restriction )
{
$all_restrictions_array = array_merge($all_restrictions_array, $one_restriction);
}
$all_restrictions_array = array_unique($all_restrictions_array);
return $all_restrictions_array;
}
/*
* Check the access
*/
private function isAccessGranted( $id_menu_item )
{
global $menu_restricted_access_array;
if ( $this->isAdmin() )
{
return true;
}
else if ( isset($menu_restricted_access_array[$this->current_user_role]) )
{
$restricted_access = $menu_restricted_access_array[$this->current_user_role];
if ( in_array($id_menu_item, $restricted_access) )
{
return true;
}
else
{
return false;
}
}
else {
return true;
}
}
/*
* Element render
*/
function start_el(&$output, $item, $depth, $args)
{
global $wp_query, $menu_restricted_access_array;
global $g_role,$g_pageid;
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$g_role=strtolower((trim($item->description)));
$str = explode(',',$g_role);
for( $i=0; $i< count($str); $i++)
{
if (strtolower(trim($str[$i]))==$this->current_user_role)
{
$restriction =$item->object_id;
$menu_restricted_access_array[$this->current_user_role] =array( $restriction);
}
}
$class_names = $value = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID;
/*
* First test, add custom class to each menu item
*/
$classes[] = 'my-custom-menu-class';
/*
* Detect the menu item matching the unpublished page
* Detect the menu item matching the unpublished page
*/
// -> FLag to display the output
$item_to_display = true;
$is_item_published = true;
// -> Gather data of linked object
$item_data = get_post($item->object_id);
// --> If it's a page, act on the flag
if ( !empty($item_data) && ($item->object == "page") )
{
$is_item_published = ( $item_data->post_status == "publish" ) ? true : false;
$item_output = "";
}
/*
* Detect and display by user Role
**/
if ( _USE_RESTRICTED_ACCESS )
{
$restrictions_array = $this->getAllRestrictions();
$this->isAccessGranted($item->object_id);
}
else
{
$item_to_display = $is_item_published;
}
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) );
$class_names = ' class="' . esc_attr( $class_names ) . '"';
$id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args );
$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
$output .= $indent . '<li id="menu-item-'. $item->ID . '"' . $value . $class_names .'>';
$attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : '';
$attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : '';
$attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : '';
$attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : '';
if($depth != 0)
{
$description = $append = $prepend = "";
}
// --> If the flag is true, when display the output
if ( $item_to_display )
{
$item_output = $args->before;
$item_output .= '<a'. $attributes .'>';
$item_output .= $args->link_before .apply_filters( 'the_title', $item->title, $item->ID ).$append; // this is where the strong tags are prepend and append to the description
$item_output .= '</a>';
$item_output .= $args->after;
}
$output .= apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
}
}
/*
* Restrictions configuration
* 2 is page id of Homepage
**/
define("_USE_RESTRICTED_ACCESS", true);
$menu_restricted_access_array['subscriber'] = array('2');
?>
It is not the cleanest version yet, but it works. I hope someone else can make a good use of it as well.
A: I'm going to post my solution for others who may happen upon this thread. I'm not 100% happy with it because you shouldn't couple a template with menu functionality (Toscho's approach of using metadata or a custom taxonomy is probably more correct). However, it's a quick and dirty one. I've tried to mitigate the tight coupling by providing some constants near the top of functions.php to help future developers maintain the code:
// define the custom password-protected template that is used to determine whether this item is protected or not in the menus
define ('ZG_PROTECTED_PAGE_TEMPLATE', 'page-membersonly.php');
// define the custom capability name for protected pages
define ('ZG_PROTECTED_PAGE_CAPABILITY', 'view_member_pages');
So the protected page template is just a variant of single.php, but it will check to see whether current_user_can(ZG_PROTECTED_PAGE_CAPABILITY) before displaying any content, for security reasons.
Next, I implement a custom walker, as per Toscho's suggestion. The walker in this case is extremely simple - we override the Walker_Nav_Menu's public start_el and end_el methods, just intercepting them long enough to ask the question: do we have access to see the menu item?
The rule is simple: if the page is not a "private" page (which in this case is determined by that page using a particular page template) it's visible. If it IS a "private" page, and the user is authenticated into a role that has the custom capability we're looking for, then it is visible. Otherwise, it's not visible.
If we do have access, then we just have to use the Walker_Nav_Menu's built-in methods without modification, so we call the parent:: method of the same name.
/* Custom Walker to prevent password-protected pages from appearing in the list */
class HALCO_Nav_Walker extends Walker_Nav_Menu {
protected $is_private = false;
protected $page_is_visible = false;
// override parent method
function start_el(&$output, $item, $depth, $args) {
// does this menu item refer to a page that is using our protected template?
$is_private = get_post_meta($item->object_id, '_wp_page_template', true) == ZG_PROTECTED_PAGE_TEMPLATE;
$page_is_visible = !$is_private || ($is_private && current_user_can(ZG_PROTECTED_PAGE_CAPABILITY));
if ($page_is_visible){
parent::start_el(&$output, $item, $depth, $args);
}
}
// override parent method
function end_el(&$output, $item, $depth) {
if ($page_is_visible){
parent::end_el(&$output, $item, $depth);
}
}
}
|
wordpress
|
{
"language": "en",
"length": 1703,
"provenance": "stackexchange_00019.jsonl.gz:408437",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14171"
}
|
[
0.034393310546875,
0.0053253173828125,
-0.0125579833984375,
0.0080413818359375,
0.0091400146484375,
-0.0290985107421875,
0.03204345703125,
-0.044158935546875,
0.0286865234375,
-0.004894256591796875,
-0.056732177734375,
-0.033935546875,
-0.0635986328125,
-0.016387939453125,
-0.043487548828125,
-0.08636474609375,
0.0228424072265625,
-0.006195068359375,
-0.0019464492797851562,
-0.023895263671875,
-0.00025177001953125,
-0.013153076171875,
0.0234375,
0.09716796875,
0.06207275390625,
-0.07647705078125,
0.0010290145874023438,
-0.04168701171875,
0.039825439453125,
-0.01229095458984375,
0.034332275390625,
-0.0027408599853515625,
-0.0296478271484375,
-0.023529052734375,
0.1138916015625,
-0.01360321044921875,
-0.0013837814331054688,
0.023529052734375,
0.058258056640625,
-0.03424072265625,
0.00681304931640625,
-0.003574371337890625,
-0.048980712890625,
-0.006378173828125,
-0.0322265625,
-0.06524658203125,
0.0014772415161132812,
-0.02764892578125,
0.01953125,
-0.0091400146484375,
0.036895751953125,
0.0301666259765625,
0.0290679931640625,
-0.0039520263671875,
-0.0129852294921875,
0.0261688232421875,
-0.00016927719116210938,
-0.0160064697265625,
0.0283660888671875,
0.040252685546875,
-0.0090484619140625,
-0.0032958984375,
0.00662994384765625,
-0.059539794921875,
0.0255584716796875,
-0.016326904296875,
0.0299530029296875,
0.02825927734375,
-0.07080078125,
-0.01219940185546875,
0.048583984375,
-0.02496337890625,
0.004207611083984375,
0.03985595703125,
-0.08544921875,
-0.026641845703125,
0.043731689453125,
-0.0108489990234375,
0.044189453125,
-0.02996826171875,
-0.019073486328125,
0.045074462890625,
-0.0235748291015625,
-0.0299835205078125,
-0.004730224609375,
-0.0142669677734375,
-0.031219482421875,
-0.005863189697265625,
-0.0085906982421875,
0.01131439208984375,
-0.0154266357421875,
0.037322998046875,
-0.01152801513671875,
0.0231170654296875,
-0.01448822021484375,
-0.0181121826171875,
0.0259552001953125,
0.0732421875,
-0.0037670135498046875,
0.01355743408203125,
-0.00060272216796875,
-0.03656005859375,
0.01366424560546875,
-0.042877197265625,
-0.0006985664367675781,
0.0457763671875,
0.020904541015625,
0.04974365234375,
0.038970947265625,
0.0214080810546875,
0.029083251953125,
0.0191497802734375,
-0.0030994415283203125,
-0.033416748046875,
0.00968170166015625,
0.01177215576171875,
-0.012786865234375,
0.0273284912109375,
0.0178375244140625,
0.00493621826171875,
-0.0281982421875,
0.01371002197265625,
0.008575439453125,
-0.00008255243301391602,
-0.026275634765625,
-0.01125335693359375,
0.0174102783203125,
-0.0229034423828125,
-0.00250244140625,
0.02178955078125,
-0.00771331787109375,
0.002826690673828125,
0.056396484375,
0.033599853515625,
-0.00833892822265625,
-0.01442718505859375,
0.00556182861328125,
-0.00765228271484375,
0.009979248046875,
-0.0218963623046875,
0.0085906982421875,
0.0023136138916015625,
0.022705078125,
-0.017303466796875,
0.0175933837890625,
0.030303955078125,
0.013458251953125,
0.00965118408203125,
0.033782958984375,
-0.05322265625,
0.00006699562072753906,
-0.0277557373046875,
0.031280517578125,
-0.001537322998046875,
-0.0026798248291015625,
0.019073486328125,
0.01399993896484375,
0.0008935928344726562,
-0.036956787109375,
0.00183868408203125,
-0.0048675537109375,
0.01320648193359375,
0.025787353515625,
-0.09326171875,
-0.0653076171875,
-0.043121337890625,
-0.039581298828125,
0.00992584228515625,
0.0244140625,
0.01537322998046875,
0.0076446533203125,
-0.041748046875,
0.02838134765625,
0.0014142990112304688,
-0.01248931884765625,
0.04693603515625,
0.0227813720703125,
0.052703857421875,
-0.0037784576416015625,
0.01227569580078125,
-0.0112762451171875,
-0.05157470703125,
0.07379150390625,
-0.040283203125,
-0.07720947265625,
0.0404052734375,
-0.0230255126953125,
0.042327880859375,
0.050537109375,
-0.0031948089599609375,
0.071533203125,
-0.007595062255859375,
-0.021026611328125,
-0.021636962890625,
0.0020999908447265625,
-0.0310516357421875,
0.04010009765625,
-0.0231781005859375,
0.01418304443359375,
0.021484375,
0.0474853515625,
-0.0226287841796875,
-0.010406494140625,
-0.01325225830078125,
-0.06524658203125,
-0.01433563232421875,
-0.032562255859375,
0.01580810546875,
0.023773193359375,
0.035491943359375,
-0.00952911376953125,
0.0328369140625,
0.00008475780487060547,
-0.07427978515625,
-0.01448822021484375,
-0.0102386474609375,
-0.0007901191711425781,
0.006671905517578125,
0.01049041748046875,
-0.0345458984375,
0.031463623046875,
0.0138397216796875,
0.0208740234375,
0.0557861328125,
0.0204010009765625,
-0.015380859375,
0.01361846923828125,
-0.0114593505859375,
0.06512451171875,
0.01861572265625,
0.032867431640625,
-0.033203125,
0.0638427734375,
0.046539306640625,
-0.0020694732666015625,
0.00614166259765625,
0.0164947509765625,
-0.07073974609375,
0.006923675537109375,
0.04400634765625,
0.01186370849609375,
0.01181793212890625,
-0.02081298828125,
0.034271240234375,
0.03973388671875,
-0.0024852752685546875,
-0.0093231201171875,
0.034454345703125,
-0.0296478271484375,
-0.0111846923828125,
0.024566650390625,
0.018951416015625,
0.052093505859375,
0.0609130859375,
0.0138397216796875,
0.028045654296875,
-0.00533294677734375,
0.0001850128173828125,
-0.01441192626953125,
-0.022796630859375,
0.01268768310546875,
0.0218658447265625,
-0.00443267822265625,
0.0218048095703125,
0.005970001220703125,
-0.034759521484375,
0.01227569580078125,
-0.0016384124755859375,
-0.0169677734375,
-0.01898193359375,
0.043182373046875,
0.01360321044921875,
0.0022754669189453125,
-0.0139923095703125,
0.04180908203125,
-0.0075836181640625,
-0.022552490234375,
-0.0081939697265625,
0.02984619140625,
-0.0037555694580078125,
-0.01287841796875,
-0.00811767578125,
-0.005184173583984375,
-0.0190277099609375,
0.023468017578125,
-0.007770538330078125,
0.00797271728515625,
-0.0099945068359375,
-0.00609588623046875,
0.006404876708984375,
0.034332275390625,
-0.00783538818359375,
-0.0404052734375,
0.05474853515625,
-0.05413818359375,
-0.020965576171875,
-0.023193359375,
-0.049224853515625,
0.035552978515625,
-0.03729248046875,
0.001369476318359375,
0.0723876953125,
0.0277862548828125,
-0.01154327392578125,
0.023345947265625,
-0.022003173828125,
0.0267333984375,
0.0285491943359375,
0.0301361083984375,
-0.0136871337890625,
0.03277587890625,
0.07684326171875,
0.0247802734375,
-0.032440185546875,
0.04058837890625,
-0.0005679130554199219,
0.0049896240234375,
0.001834869384765625,
-0.02191162109375,
-0.022918701171875,
-0.04620361328125,
-0.0440673828125,
0.08673095703125,
0.020477294921875,
0.0127105712890625,
-0.04815673828125,
0.07464599609375,
0.040252685546875,
-0.051666259765625,
-0.020538330078125,
-0.043975830078125,
-0.040557861328125,
-0.0310516357421875,
0.04901123046875,
-0.01319122314453125,
0.0032291412353515625,
-0.00992584228515625,
0.032379150390625,
-0.0042877197265625,
-0.0556640625,
-0.00791168212890625,
-0.0110626220703125,
-0.002307891845703125,
0.0158843994140625,
0.0175018310546875,
-0.004467010498046875,
-0.01012420654296875,
0.0287933349609375,
-0.0094146728515625,
-0.006229400634765625,
-0.021240234375,
-0.032257080078125,
0.0238800048828125,
0.034576416015625,
0.047760009765625,
-0.039703369140625,
-0.054931640625,
0.06817626953125,
0.0272064208984375,
0.002544403076171875,
-0.0143280029296875,
-0.0245819091796875,
-0.051788330078125,
0.013153076171875,
0.0140380859375,
0.007663726806640625,
-0.0165252685546875,
-0.008453369140625,
0.0302276611328125,
0.0308837890625,
-0.0074615478515625,
-0.0013360977172851562,
-0.00804901123046875,
-0.004413604736328125,
0.01027679443359375,
-0.01456451416015625,
0.07196044921875,
-0.01062774658203125,
-0.006435394287109375,
0.01357269287109375,
-0.0022106170654296875,
0.01535797119140625,
-0.02313232421875,
-0.01329803466796875,
0.0054779052734375,
0.0254974365234375,
0.00940704345703125,
0.033172607421875,
-0.006847381591796875,
-0.01470184326171875,
-0.01090240478515625,
0.057647705078125,
-0.0030689239501953125,
-0.01338958740234375,
0.007228851318359375,
0.00450897216796875,
-0.034210205078125,
0.0087890625,
-0.068359375,
0.0188140869140625,
-0.05316162109375,
0.0218505859375,
-0.0026912689208984375,
-0.0286407470703125,
-0.033111572265625,
-0.04193115234375,
-0.049957275390625,
-0.0294647216796875,
0.0191497802734375,
-0.006732940673828125,
0.00881195068359375,
-0.0222625732421875,
-0.0013065338134765625,
-0.036529541015625,
0.0005245208740234375,
-0.03057861328125,
-0.060394287109375,
-0.01415252685546875,
-0.00916290283203125,
0.03936767578125,
0.004680633544921875,
-0.007205963134765625,
-0.010467529296875,
0.0390625,
0.014556884765625,
0.0131378173828125,
0.01288604736328125,
-0.01486968994140625,
0.0200653076171875,
0.00439453125,
0.001312255859375,
-0.0123291015625,
0.0079345703125,
-0.01776123046875,
-0.043182373046875,
-0.028778076171875,
-0.01387786865234375,
-0.02197265625,
0.03033447265625,
-0.041259765625,
-0.053680419921875,
-0.037994384765625,
-0.07464599609375,
-0.012298583984375,
-0.0202789306640625,
-0.0333251953125,
-0.027801513671875,
-0.07318115234375,
0.00732421875,
-0.036773681640625,
-0.0213623046875,
0.0159149169921875,
0.025848388671875,
0.018402099609375,
-0.011962890625,
0.0255126953125,
0.03009033203125,
0.033538818359375,
0.0175018310546875,
0.038330078125,
0.0240936279296875,
-0.00899505615234375,
-0.0011262893676757812,
0.0217437744140625,
0.00001704692840576172,
0.0272979736328125,
0.0305938720703125,
0.0177154541015625,
-0.025543212890625,
0.011566162109375,
0.04229736328125,
-0.061309814453125,
0.035888671875,
0.03369140625,
-0.031829833984375,
0.01140594482421875,
0.037750244140625,
0.01207733154296875,
-0.043365478515625,
-0.039337158203125,
-0.005764007568359375,
-0.001739501953125,
0.031097412109375,
0.02423095703125,
0.030120849609375,
-0.004596710205078125,
-0.00928497314453125,
0.0068511962890625,
-0.01617431640625,
-0.0114593505859375,
0.0083160400390625,
-0.0286712646484375,
0.01058197021484375,
-0.002437591552734375,
-0.0295562744140625,
-0.01018524169921875,
-0.015411376953125,
0.05352783203125,
-0.005802154541015625,
-0.05572509765625,
0.00449371337890625,
-0.001556396484375,
0.03662109375,
0.040802001953125,
-0.0252685546875,
0.044158935546875,
0.037017822265625,
0.00313568115234375,
-0.012725830078125,
-0.032135009765625,
0.01457977294921875,
-0.048675537109375,
-0.0260772705078125,
-0.0020771026611328125,
-0.0230560302734375,
-0.00537872314453125,
0.018707275390625,
-0.0131683349609375,
-0.005321502685546875,
-0.0074462890625,
0.014129638671875,
0.0071868896484375,
-0.054046630859375,
-0.0003478527069091797,
0.08673095703125,
0.0016498565673828125,
-0.078369140625,
0.04669189453125,
-0.00589752197265625,
-0.047454833984375,
0.010894775390625,
0.018890380859375,
0.0018367767333984375,
0.0296478271484375,
-0.0088348388671875,
0.0015001296997070312,
-0.01448822021484375,
0.05145263671875,
-0.03619384765625,
-0.08740234375,
-0.036468505859375,
-0.0008625984191894531,
0.03326416015625,
-0.06414794921875,
-0.01221466064453125,
-0.0181121826171875,
-0.0313720703125,
0.005191802978515625,
-0.01538848876953125,
-0.032501220703125,
0.0189666748046875,
0.0201263427734375,
-0.019439697265625,
-0.04144287109375,
0.0175933837890625,
-0.0170135498046875,
0.037139892578125,
-0.0303192138671875,
-0.00986480712890625,
0.0005564689636230469,
-0.0369873046875,
0.00765228271484375,
-0.0233917236328125,
0.00927734375,
-0.03509521484375,
0.01197052001953125,
0.03717041015625,
0.01047515869140625,
-0.04547119140625,
0.01532745361328125,
-0.00152587890625,
0.00646209716796875,
-0.037200927734375,
-0.0804443359375,
-0.050140380859375,
-0.0531005859375,
-0.01515960693359375,
0.00638580322265625,
-0.01280975341796875,
-0.01349639892578125,
-0.032928466796875,
0.0239715576171875,
0.0225830078125,
-0.0062255859375,
0.0017175674438476562,
0.044158935546875,
-0.00699615478515625,
0.04119873046875,
0.01092529296875,
0.01242828369140625,
-0.03741455078125,
-0.0208282470703125,
0.003170013427734375,
-0.019805908203125,
-0.02325439453125,
-0.0350341796875,
0.007404327392578125,
0.031158447265625,
0.05096435546875,
0.0028533935546875,
0.040618896484375,
-0.01554107666015625,
0.00582122802734375,
-0.0167694091796875,
0.013031005859375,
-0.04962158203125,
0.02593994140625,
-0.01065826416015625,
0.006336212158203125,
0.025787353515625,
-0.00203704833984375,
-0.0256195068359375,
-0.00479888916015625,
0.0271453857421875,
0.01192474365234375,
-0.007534027099609375,
-0.047119140625,
0.059234619140625,
0.08697509765625,
-0.03631591796875,
0.05670166015625,
0.03997802734375,
0.022552490234375,
0.055084228515625,
-0.0150909423828125,
-0.0457763671875,
0.024444580078125,
0.0010519027709960938,
-0.024261474609375,
-0.0165557861328125,
-0.0102996826171875,
-0.02117919921875,
-0.00005984306335449219,
0.0736083984375,
0.053314208984375,
-0.081298828125,
-0.007415771484375,
0.0038433074951171875,
-0.01557159423828125,
-0.0112457275390625,
0.003173828125,
-0.00460052490234375,
-0.000995635986328125,
-0.0186920166015625,
-0.0266571044921875,
-0.04376220703125,
-0.034423828125,
0.004032135009765625,
-0.0167388916015625,
0.0128021240234375,
0.0163726806640625,
0.0097198486328125,
0.018829345703125,
-0.0153961181640625,
-0.0091094970703125,
0.035980224609375,
-0.0301361083984375,
-0.005947113037109375,
0.028350830078125,
-0.02960205078125,
-0.0440673828125,
0.034637451171875,
-0.006542205810546875,
0.005405426025390625,
0.01158905029296875,
0.00522613525390625,
0.002223968505859375,
0.043670654296875,
-0.0400390625,
0.0254058837890625,
0.0177154541015625,
-0.00347900390625,
0.01467132568359375,
-0.0269775390625,
0.00971221923828125,
0.003864288330078125,
-0.024688720703125,
0.01377105712890625,
0.007793426513671875,
-0.042388916015625,
-0.026458740234375,
-0.032379150390625,
0.1202392578125,
-0.05230712890625,
-0.0166168212890625,
-0.006778717041015625,
0.007709503173828125,
-0.0099334716796875,
-0.017333984375,
0.048095703125,
-0.053070068359375,
-0.004360198974609375,
0.006374359130859375,
0.00971221923828125,
-0.040771484375,
-0.0126190185546875,
-0.00484466552734375,
0.0313720703125,
-0.034637451171875,
-0.004638671875,
0.00688934326171875,
0.0189971923828125,
0.0272369384765625,
0.034698486328125,
-0.032257080078125,
0.06622314453125,
-0.021820068359375,
0.051239013671875,
-0.0001842975616455078,
0.01224517822265625,
0.0268402099609375,
-0.006511688232421875,
-0.0091705322265625,
-0.00505828857421875,
-0.01549530029296875,
-0.00691986083984375,
0.015625,
0.0308685302734375,
0.0253143310546875,
0.0125274658203125,
-0.0194854736328125,
0.0002446174621582031,
0.00726318359375,
-0.0218505859375,
0.0297393798828125,
-0.046417236328125,
-0.049957275390625,
-0.0239715576171875,
0.0068511962890625,
0.01207733154296875,
0.0008697509765625,
0.0246734619140625,
-0.038330078125,
0.013397216796875,
0.0225677490234375,
0.025482177734375,
0.004558563232421875,
-0.002960205078125,
0.035614013671875,
-0.0477294921875,
-0.01390838623046875,
-0.0181732177734375,
0.043975830078125,
0.02777099609375,
0.01776123046875,
0.034271240234375,
0.01461029052734375,
-0.009979248046875,
0.0130462646484375,
0.0255889892578125,
0.030670166015625,
-0.031890869140625,
0.01201629638671875,
0.004108428955078125,
0.025726318359375,
-0.0210723876953125,
-0.0350341796875,
0.061767578125,
0.05621337890625,
0.002521514892578125,
-0.0281829833984375,
0.0079345703125,
0.0214385986328125,
0.00685882568359375,
0.021759033203125,
0.0080413818359375,
0.054595947265625,
0.0936279296875,
-0.0170135498046875,
0.0120697021484375,
0.0173797607421875,
0.017669677734375,
-0.0005040168762207031,
0.01215362548828125,
-0.035797119140625,
0.00806427001953125,
-0.01934814453125,
-0.00803375244140625,
0.0105438232421875,
0.0018663406372070312,
0.013336181640625,
0.0021724700927734375,
0.031402587890625,
-0.0025463104248046875,
-0.007293701171875,
0.0293121337890625,
-0.00548553466796875,
0.0103302001953125,
-0.033538818359375,
-0.06048583984375,
0.0137481689453125,
0.02374267578125,
0.003360748291015625,
0.0235443115234375,
0.00406646728515625,
0.00797271728515625,
0.012908935546875,
-0.003711700439453125,
0.06256103515625,
-0.0096893310546875,
-0.01300048828125,
-0.0389404296875,
0.04132080078125,
0.049530029296875,
0.02435302734375,
0.01079559326171875,
-0.0017328262329101562,
0.0789794921875,
-0.00021088123321533203,
0.0253753662109375,
0.001331329345703125,
-0.016357421875,
0.01605224609375,
-0.0100860595703125,
0.05438232421875,
0.03265380859375,
-0.08953857421875,
-0.01407623291015625,
-0.01062774658203125,
-0.07659912109375,
0.0325927734375,
0.043365478515625,
-0.03717041015625,
0.018585205078125,
0.05340576171875,
0.01097869873046875,
-0.02252197265625,
0.0024242401123046875,
-0.0017786026000976562,
-0.0161590576171875,
0.038726806640625,
0.0140380859375,
-0.06158447265625,
-0.0027618408203125,
-0.042510986328125,
-0.00341796875,
0.0577392578125,
0.01137542724609375,
0.04559326171875,
0.04962158203125,
0.0036830902099609375,
-0.005016326904296875,
-0.020843505859375,
0.0011072158813476562,
-0.01171112060546875,
-0.036285400390625,
-0.0260772705078125,
0.0262451171875,
-0.060943603515625,
0.01428985595703125,
0.0290069580078125,
-0.01387786865234375,
0.02557373046875,
0.01148223876953125,
0.0015869140625,
-0.0267486572265625,
-0.018035888671875,
-0.029388427734375,
0.0021514892578125,
0.00113677978515625,
-0.0210723876953125,
0.02130126953125,
0.00141143798828125,
-0.003536224365234375,
0.0147247314453125,
-0.03155517578125,
-0.04815673828125,
0.002849578857421875,
-0.01788330078125,
-0.040069580078125,
0.00453948974609375,
0.042816162109375,
0.006195068359375,
-0.003261566162109375,
-0.01154327392578125,
-0.0060882568359375,
0.0269927978515625,
-0.033477783203125,
0.022796630859375,
-0.052703857421875,
0.035125732421875,
-0.005435943603515625,
0.0261688232421875,
-0.02838134765625,
-0.00641632080078125,
0.01154327392578125,
0.01529693603515625,
0.0017137527465820312,
-0.03985595703125,
-0.018341064453125,
-0.026763916015625,
-0.0170745849609375,
0.016448974609375,
-0.01493072509765625,
-0.04510498046875,
-0.0280609130859375,
0.0111083984375,
0.01580810546875,
0.0239105224609375,
-0.0921630859375,
0.056549072265625,
0.003940582275390625,
0.048980712890625,
-0.036041259765625,
0.015411376953125,
-0.006366729736328125,
-0.0275421142578125,
-0.016876220703125,
0.0236053466796875,
-0.01355743408203125,
0.0272216796875,
0.046478271484375,
0.02886962890625,
0.04345703125,
-0.03656005859375,
-0.0308990478515625,
0.0377197265625,
0.0391845703125,
0.06683349609375,
0.02764892578125,
-0.038787841796875,
-0.04559326171875,
-0.01251220703125,
0.0250701904296875,
0.0216522216796875,
0.0178680419921875,
-0.0360107421875,
-0.061279296875,
0.041656494140625,
-0.02154541015625,
0.0130767822265625,
-0.0357666015625,
-0.054840087890625,
0.044189453125,
0.0194549560546875,
-0.04888916015625,
0.069091796875,
0.0295867919921875,
-0.0246429443359375,
-0.032440185546875,
0.0213775634765625,
-0.02587890625,
0.038330078125,
-0.0380859375,
0.000713348388671875,
0.01873779296875,
0.0107421875,
0.0133209228515625,
-0.039154052734375,
0.005401611328125,
-0.018798828125,
-0.0256500244140625,
0.0010385513305664062,
0.01169586181640625,
0.00118255615234375,
0.005344390869140625,
-0.048095703125,
-0.00574493408203125,
0.001621246337890625,
0.06414794921875,
0.01049041748046875,
-0.0090484619140625,
-0.00897216796875,
-0.020721435546875,
0.0248870849609375,
0.005977630615234375,
0.0045928955078125,
0.01226806640625,
-0.045745849609375,
-0.065673828125,
-0.00624847412109375,
0.00302886962890625,
0.0152435302734375,
-0.059234619140625,
0.04248046875,
0.02490234375,
-0.07073974609375,
-0.0188446044921875,
0.044464111328125,
-0.08642578125,
0.0258026123046875,
-0.011749267578125,
-0.01538848876953125,
-0.061737060546875,
-0.005161285400390625,
-0.00440216064453125,
-0.01953125,
-0.03509521484375,
-0.0107574462890625,
0.0108642578125,
-0.04864501953125,
-0.0325927734375,
-0.01073455810546875,
-0.0016002655029296875,
-0.031005859375,
0.0321044921875,
-0.00922393798828125,
0.00653076171875,
-0.03173828125,
-0.01300811767578125,
-0.01551055908203125,
0.040130615234375,
0.0182647705078125,
0.07623291015625,
-0.02996826171875,
0.047088623046875,
0.036285400390625,
-0.0091400146484375,
-0.02001953125,
0.04150390625,
-0.0148773193359375,
0.038726806640625,
0.0238800048828125,
-0.01788330078125,
0.06365966796875,
-0.02001953125,
0.00010889768600463867,
-0.007495880126953125,
-0.0012788772583007812,
-0.06256103515625,
0.0297393798828125,
0.039886474609375,
0.006725311279296875,
0.026611328125
] |
16460b384a772626e3311b351a61f06deb089a9d
|
Wordpress Stackexchange
Q: Long Waiting Times on GoDaddy? I prefer not to use GoDaddy because I always encounter performance issues. However, one of my clients is rather insistent on using them... so we are.
I've tested this with a vanilla Wordpress 3.0+ install with no active plugins, but it always seems to happen for me: Whenever a new page/post is called by the browser, we encounter 3-10 second "waiting" times.
I don't have this problem on any non-godaddy wordpress installs (they nearly always get their pages in queue in under 2 seconds). But all my Godaddy installs exhibit this behavior.
Is anyone familiar with this issue?
A: It's really simply GoDaddy and slow mysql and webservers. I've heard apocryphal stories of people making lots of noise to GoDaddy support and as a result, speeds improve. Do they get moved to better servers or get priority load-balancing? Impossible to say.
One other thing to try is http://wordpress.org/extend/plugins/use-google-libraries/ but sometimes it doesn't help much with an overall slow shared hosting system.
|
Q: Long Waiting Times on GoDaddy? I prefer not to use GoDaddy because I always encounter performance issues. However, one of my clients is rather insistent on using them... so we are.
I've tested this with a vanilla Wordpress 3.0+ install with no active plugins, but it always seems to happen for me: Whenever a new page/post is called by the browser, we encounter 3-10 second "waiting" times.
I don't have this problem on any non-godaddy wordpress installs (they nearly always get their pages in queue in under 2 seconds). But all my Godaddy installs exhibit this behavior.
Is anyone familiar with this issue?
A: It's really simply GoDaddy and slow mysql and webservers. I've heard apocryphal stories of people making lots of noise to GoDaddy support and as a result, speeds improve. Do they get moved to better servers or get priority load-balancing? Impossible to say.
One other thing to try is http://wordpress.org/extend/plugins/use-google-libraries/ but sometimes it doesn't help much with an overall slow shared hosting system.
A:
I prefer not to use GoDaddy because I
always encounter performance issues.
However, one of my clients is rather
insistent on using them... so we are.
This is exactly what I do in reverse , I insist that if they want to stay with godaddy they can find another developer/designer.
A: Godaddy is to blame. I think a monkey does everything manually whenever we submit a request for anything. Be it a password change or anything, it will take several minutes before anything happens. Monkey is so busy dealing with everything.
Other than that they throttle their FTP connections, limit number of concurrent FTP connections, always have permission issues & are terrible in performance.
And lets not forget there servers are poorly configured which leads to hacked sites and several times, WP is blamed for getting hacked.
A: Avoid using godaddy, I had the same problem with them.
You are referring to TTFB, (Time to first Byte).
Regular TTFB range from 0.3 to 1.5 sec max. in a good server configuration.
It doesn't matter if you use CDN, Minimize your java/css.
Although your website after the TTFB load fine, If the server is not well configured/optimized it will take too much time to deliver the first byte.
The use of cache plugins, CDN and improved code will only affect how your website load after the TTFB.
An excellent tool for test is http://www.webpagetest.org/
My suggestion, Find another web host, preferable close to your client location if visitors are locals.
A: GoDaddy make use CloudLinux on their servers, meaning you're allocated a small amount of CPU, RAM and a certain number of concurrent connections to Apache per user.
CloudLinux makes it possible for GoDaddy to indeed "prioritise" users based on the noise they make to tech-support by simply allocating a larger portion of the CPU/RAM available for bursting to.
CloudLinux however is a good thing when reasonable limits are set, as it means abusive users cannot consume 95% of the servers total processing power and RAM, but when limited too harshly will indeed result in the experience you're having.
I implore you to go forth and whine at tech-support to increase your limits :-)
A: I too, use Godaddy for all my sites and web hosting, but for some reason the php/mySQL specific sites (wordpress etc..) were taking, on average, 8-20 seconds to start loading the page which was no acceptable. I did the normal troubleshooting, disable all plug-ins etc.. but nothing helped.
Finally found the solution to this problem and may be a solution for others, not just GoDaddy. I was using a Windows Hosting account and switched to a Linux hosting account which is native to php/mySQL pages and now my site loads in less then 1-2 seconds. Check out the fast load times yourself on my wordpress site http://techcentral.northwoodswebdesigns.com/
A: I have the same issue with Godaddy WP hosting (not the basic one). The average waiting time when a new page or post is visited is around 6-12 seconds, especially in the mobile devices. Can anyone give some suggestions on my site, https://labellecosmetic.ca/ ? I don't know how to transfer to another server, so just looking for the solution on Godaddy itself.
|
wordpress
|
{
"language": "en",
"length": 702,
"provenance": "stackexchange_00019.jsonl.gz:408442",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14186"
}
|
[
0.06817626953125,
-0.00283050537109375,
0.01739501953125,
0.0196533203125,
-0.00902557373046875,
-0.03955078125,
0.064697265625,
-0.046966552734375,
0.0183563232421875,
0.0281829833984375,
-0.05780029296875,
0.03271484375,
-0.014617919921875,
-0.00275421142578125,
-0.01629638671875,
-0.005519866943359375,
0.0206451416015625,
-0.01018524169921875,
0.0073089599609375,
0.000043332576751708984,
-0.005786895751953125,
-0.00023734569549560547,
0.0147857666015625,
-0.030670166015625,
0.036834716796875,
-0.0027408599853515625,
0.06549072265625,
-0.036376953125,
0.058929443359375,
0.01143646240234375,
0.03338623046875,
-0.0675048828125,
-0.0044708251953125,
0.01508331298828125,
-0.004009246826171875,
0.00124359130859375,
0.0177459716796875,
0.01280975341796875,
0.033203125,
0.0030384063720703125,
0.020782470703125,
-0.0018453598022460938,
0.047943115234375,
-0.0259552001953125,
0.028564453125,
-0.03533935546875,
0.03668212890625,
-0.08343505859375,
-0.0005979537963867188,
-0.012542724609375,
0.0243988037109375,
0.02777099609375,
0.017547607421875,
0.026458740234375,
-0.01378631591796875,
0.01012420654296875,
0.004131317138671875,
0.0738525390625,
0.031982421875,
-0.0928955078125,
-0.061004638671875,
0.0211029052734375,
0.0262908935546875,
0.050201416015625,
-0.015625,
0.01345062255859375,
-0.012359619140625,
0.0242462158203125,
0.0257415771484375,
-0.02069091796875,
-0.0079345703125,
0.0009593963623046875,
0.00011026859283447266,
-0.031646728515625,
0.001537322998046875,
0.0170745849609375,
-0.01253509521484375,
0.00254058837890625,
0.016265869140625,
0.0135498046875,
-0.0193939208984375,
-0.03155517578125,
-0.005641937255859375,
-0.04400634765625,
0.021636962890625,
-0.0019063949584960938,
-0.0013628005981445312,
0.00991058349609375,
-0.03369140625,
-0.0243682861328125,
-0.038055419921875,
-0.05047607421875,
-0.0284881591796875,
0.0110931396484375,
-0.004486083984375,
-0.0216522216796875,
-0.0270843505859375,
-0.0093994140625,
-0.0005803108215332031,
-0.0179443359375,
0.0205535888671875,
-0.0267486572265625,
0.004547119140625,
-0.006591796875,
-0.01386260986328125,
-0.01983642578125,
0.0135650634765625,
-0.001407623291015625,
0.0272369384765625,
0.036376953125,
-0.023956298828125,
0.040802001953125,
0.0251312255859375,
0.01274871826171875,
-0.04156494140625,
-0.00695037841796875,
-0.021026611328125,
-0.0162353515625,
-0.0133056640625,
-0.0307464599609375,
-0.007495880126953125,
0.0244293212890625,
-0.021697998046875,
-0.026214599609375,
0.034088134765625,
0.014739990234375,
-0.0175323486328125,
-0.005161285400390625,
-0.014678955078125,
0.034759521484375,
-0.0184173583984375,
0.0150146484375,
0.0264892578125,
0.01739501953125,
-0.0213165283203125,
-0.0169219970703125,
0.0321044921875,
0.0000020265579223632812,
-0.00472259521484375,
0.044036865234375,
-0.01508331298828125,
-0.0643310546875,
-0.034912109375,
-0.0131683349609375,
0.038421630859375,
0.00887298583984375,
0.020355224609375,
0.01416778564453125,
0.00861358642578125,
-0.0145721435546875,
0.01502227783203125,
0.005115509033203125,
0.0198974609375,
0.0038967132568359375,
-0.00881195068359375,
-0.032562255859375,
0.00269317626953125,
-0.025604248046875,
0.023712158203125,
-0.0330810546875,
0.0023403167724609375,
-0.02056884765625,
0.008636474609375,
-0.00981903076171875,
-0.0221099853515625,
0.0026683807373046875,
-0.018524169921875,
0.009857177734375,
0.01708984375,
0.0020923614501953125,
-0.0220184326171875,
-0.013671875,
0.01849365234375,
0.00595855712890625,
-0.00927734375,
0.031585693359375,
0.0134124755859375,
0.0408935546875,
0.04339599609375,
-0.07159423828125,
-0.03619384765625,
-0.035675048828125,
0.10125732421875,
-0.024200439453125,
-0.017822265625,
0.03961181640625,
0.01297760009765625,
0.051483154296875,
-0.001033782958984375,
0.01007080078125,
0.0052337646484375,
0.024749755859375,
-0.060638427734375,
0.058746337890625,
-0.00286865234375,
0.0009274482727050781,
-0.047454833984375,
0.01346588134765625,
-0.012847900390625,
-0.04840087890625,
-0.033355712890625,
0.01020050048828125,
-0.01287078857421875,
0.01947021484375,
-0.0112457275390625,
-0.01441192626953125,
-0.00409698486328125,
0.0158843994140625,
0.01334381103515625,
0.0125274658203125,
-0.0006232261657714844,
-0.0154876708984375,
-0.008148193359375,
-0.011322021484375,
-0.021240234375,
0.001438140869140625,
-0.0169525146484375,
0.062103271484375,
0.01641845703125,
0.07342529296875,
0.007686614990234375,
-0.047149658203125,
-0.004150390625,
-0.0191192626953125,
0.004985809326171875,
0.04071044921875,
-0.022491455078125,
0.023529052734375,
0.00989532470703125,
0.039642333984375,
-0.01149749755859375,
-0.00688934326171875,
0.034912109375,
0.05963134765625,
-0.0054168701171875,
-0.0254364013671875,
0.006732940673828125,
-0.057403564453125,
0.02227783203125,
0.04339599609375,
0.025054931640625,
-0.03759765625,
-0.03497314453125,
-0.0194091796875,
-0.05059814453125,
-0.10040283203125,
0.00479888916015625,
-0.0011129379272460938,
0.0246429443359375,
0.0212554931640625,
-0.021484375,
-0.05023193359375,
0.0416259765625,
-0.053497314453125,
-0.01198577880859375,
0.042388916015625,
-0.00004506111145019531,
0.003047943115234375,
0.0120391845703125,
-0.003536224365234375,
0.005176544189453125,
0.051361083984375,
0.003955841064453125,
0.0223236083984375,
-0.0296173095703125,
0.002910614013671875,
-0.006885528564453125,
-0.005413055419921875,
0.0001575946807861328,
0.004352569580078125,
0.0162200927734375,
-0.06146240234375,
-0.00582122802734375,
-0.0218505859375,
0.001888275146484375,
-0.0225372314453125,
-0.043426513671875,
0.02630615234375,
0.00791168212890625,
-0.032562255859375,
-0.0137481689453125,
0.01125335693359375,
0.015899658203125,
-0.00997161865234375,
-0.01751708984375,
-0.0501708984375,
0.01806640625,
0.00949859619140625,
0.0079498291015625,
0.0295257568359375,
0.05267333984375,
0.01097869873046875,
-0.025543212890625,
0.056640625,
-0.00836181640625,
-0.0227508544921875,
0.045257568359375,
-0.0282440185546875,
0.034515380859375,
-0.0128631591796875,
0.0244140625,
0.044158935546875,
-0.0119781494140625,
0.00870513916015625,
0.019683837890625,
-0.0302734375,
0.0283355712890625,
0.037261962890625,
0.0107269287109375,
-0.0117340087890625,
-0.044525146484375,
0.01100921630859375,
0.02386474609375,
0.0810546875,
-0.0430908203125,
-0.0614013671875,
-0.01206207275390625,
0.0208587646484375,
-0.0712890625,
-0.0853271484375,
-0.0231475830078125,
-0.053802490234375,
-0.00833892822265625,
-0.0287017822265625,
-0.0199432373046875,
0.005279541015625,
-0.0330810546875,
0.01552581787109375,
0.006580352783203125,
-0.009918212890625,
-0.1007080078125,
-0.05615234375,
-0.08087158203125,
-0.0010547637939453125,
-0.013519287109375,
0.016387939453125,
0.00838470458984375,
0.01690673828125,
-0.01033782958984375,
-0.07568359375,
-0.059417724609375,
-0.06158447265625,
-0.0279541015625,
-0.024078369140625,
0.01031494140625,
-0.003215789794921875,
-0.02587890625,
0.0180511474609375,
-0.0264892578125,
-0.004146575927734375,
-0.00719451904296875,
-0.032989501953125,
-0.0190887451171875,
0.0091705322265625,
-0.01107025146484375,
0.0205078125,
0.0304412841796875,
0.0005450248718261719,
-0.0245513916015625,
-0.03192138671875,
0.0021953582763671875,
0.0211944580078125,
-0.0009813308715820312,
-0.049041748046875,
-0.00037980079650878906,
-0.0198211669921875,
-0.0283203125,
0.0019016265869140625,
-0.035614013671875,
-0.01537322998046875,
-0.0005660057067871094,
-0.055999755859375,
0.05303955078125,
-0.00738525390625,
-0.01137542724609375,
0.00432586669921875,
0.00899505615234375,
-0.049652099609375,
0.045989990234375,
-0.0003650188446044922,
-0.0205230712890625,
-0.0174102783203125,
0.022186279296875,
-0.0132293701171875,
-0.0537109375,
0.0445556640625,
-0.01751708984375,
0.01580810546875,
-0.048583984375,
-0.03216552734375,
-0.00897216796875,
0.1195068359375,
-0.016815185546875,
0.002712249755859375,
-0.00494384765625,
0.00901031494140625,
-0.00836944580078125,
-0.05523681640625,
-0.05657958984375,
-0.015655517578125,
-0.00846099853515625,
0.0174407958984375,
0.0087432861328125,
-0.00838470458984375,
-0.021728515625,
0.0016584396362304688,
-0.0207366943359375,
-0.001987457275390625,
0.00186920166015625,
-0.05596923828125,
0.035491943359375,
-0.0232696533203125,
0.0322265625,
-0.04296875,
0.0199432373046875,
-0.0814208984375,
-0.0760498046875,
-0.0096282958984375,
-0.0015134811401367188,
0.0499267578125,
0.0183258056640625,
-0.0178070068359375,
-0.004535675048828125,
0.03363037109375,
0.052581787109375,
0.04217529296875,
0.017608642578125,
-0.0438232421875,
0.047698974609375,
0.01372528076171875,
0.037200927734375,
-0.000972747802734375,
-0.02996826171875,
0.003498077392578125,
0.00693511962890625,
-0.01043701171875,
-0.0027637481689453125,
-0.02618408203125,
0.019195556640625,
-0.019378662109375,
-0.037139892578125,
-0.04241943359375,
-0.050933837890625,
0.04058837890625,
-0.022552490234375,
0.00701141357421875,
-0.06353759765625,
-0.06304931640625,
0.030059814453125,
-0.04071044921875,
-0.0020084381103515625,
0.00942230224609375,
0.05548095703125,
0.0172119140625,
-0.00042128562927246094,
0.0159912109375,
-0.0237579345703125,
0.00762939453125,
0.036346435546875,
0.035797119140625,
-0.015380859375,
-0.0203857421875,
0.05963134765625,
-0.0012159347534179688,
0.035888671875,
0.0148773193359375,
-0.054779052734375,
0.0188751220703125,
-0.03521728515625,
0.032501220703125,
0.060638427734375,
-0.0268402099609375,
0.02215576171875,
-0.004123687744140625,
0.001239776611328125,
-0.0250701904296875,
0.01555633544921875,
0.02435302734375,
-0.04107666015625,
-0.043670654296875,
-0.0909423828125,
0.045257568359375,
-0.043670654296875,
0.0321044921875,
-0.0089111328125,
0.007122039794921875,
0.08160400390625,
0.023193359375,
-0.006992340087890625,
0.00637054443359375,
-0.026885986328125,
0.006038665771484375,
0.0225982666015625,
-0.00829315185546875,
-0.0264892578125,
0.0362548828125,
-0.012908935546875,
0.06561279296875,
-0.0006818771362304688,
-0.0467529296875,
0.005825042724609375,
-0.00958251953125,
0.0279998779296875,
0.02203369140625,
-0.0037021636962890625,
0.047393798828125,
0.0258636474609375,
-0.0159759521484375,
0.0121307373046875,
0.0005106925964355469,
0.0005655288696289062,
-0.0400390625,
-0.01032257080078125,
-0.0017614364624023438,
-0.02880859375,
-0.00557708740234375,
0.006778717041015625,
-0.03912353515625,
0.0006451606750488281,
0.019134521484375,
0.0443115234375,
0.0289154052734375,
0.0240325927734375,
0.0025424957275390625,
0.0085296630859375,
-0.0062408447265625,
0.018341064453125,
-0.014556884765625,
-0.036102294921875,
-0.0302276611328125,
0.006366729736328125,
0.026580810546875,
-0.02655029296875,
0.00848388671875,
0.0233917236328125,
0.020172119140625,
-0.01258087158203125,
0.02386474609375,
0.011566162109375,
0.003292083740234375,
-0.0309600830078125,
-0.036651611328125,
0.02606201171875,
0.007415771484375,
-0.00001627206802368164,
0.011077880859375,
0.0161590576171875,
0.045654296875,
-0.017242431640625,
0.004352569580078125,
0.0013027191162109375,
0.01016998291015625,
0.03216552734375,
-0.0308074951171875,
-0.0163116455078125,
-0.0304412841796875,
0.0256500244140625,
-0.01331329345703125,
-0.00926971435546875,
0.01910400390625,
-0.01047515869140625,
0.050018310546875,
-0.0002868175506591797,
-0.048614501953125,
-0.0673828125,
0.040771484375,
-0.01178741455078125,
0.0086212158203125,
0.02392578125,
-0.0214691162109375,
-0.048553466796875,
-0.048828125,
-0.052734375,
-0.0273590087890625,
-0.040557861328125,
0.0211944580078125,
-0.01500701904296875,
-0.0203094482421875,
-0.0296173095703125,
-0.04364013671875,
-0.0318603515625,
0.041839599609375,
0.052825927734375,
-0.07061767578125,
-0.0106964111328125,
-0.047088623046875,
0.0214996337890625,
0.0104522705078125,
-0.01343536376953125,
-0.048797607421875,
0.01160430908203125,
-0.0205841064453125,
0.00766754150390625,
-0.03460693359375,
0.01171112060546875,
-0.033843994140625,
-0.0179901123046875,
0.005641937255859375,
0.040374755859375,
0.00696563720703125,
-0.00923919677734375,
0.018035888671875,
0.027740478515625,
-0.0212554931640625,
0.01019287109375,
0.0028362274169921875,
-0.046600341796875,
0.028564453125,
-0.0299072265625,
-0.039276123046875,
0.0027923583984375,
0.0020160675048828125,
-0.00948333740234375,
0.0138092041015625,
-0.03216552734375,
0.0260772705078125,
0.004856109619140625,
0.01435089111328125,
0.049835205078125,
0.0203399658203125,
0.05645751953125,
0.01161956787109375,
0.0258026123046875,
0.036285400390625,
0.06317138671875,
0.00865936279296875,
-0.049407958984375,
0.05084228515625,
0.0164947509765625,
-0.04644775390625,
0.0009646415710449219,
-0.033538818359375,
-0.006130218505859375,
0.05072021484375,
0.05096435546875,
-0.061920166015625,
-0.007305145263671875,
0.00962066650390625,
-0.021453857421875,
-0.033203125,
-0.05078125,
-0.0054931640625,
-0.0743408203125,
0.07318115234375,
-0.0052947998046875,
-0.0294647216796875,
-0.01331329345703125,
-0.04962158203125,
-0.00978851318359375,
-0.017822265625,
0.036773681640625,
0.017852783203125,
-0.025054931640625,
0.01824951171875,
0.02337646484375,
0.0284271240234375,
-0.000035881996154785156,
0.005260467529296875,
-0.0109710693359375,
-0.0240631103515625,
-0.0246429443359375,
0.0129547119140625,
-0.038330078125,
0.0025196075439453125,
0.02239990234375,
0.020050048828125,
0.0019140243530273438,
0.051971435546875,
-0.00872039794921875,
0.0192108154296875,
0.0171966552734375,
-0.0131988525390625,
0.0200347900390625,
-0.0282440185546875,
-0.00804901123046875,
0.03271484375,
-0.0677490234375,
-0.0005693435668945312,
-0.022613525390625,
0.04010009765625,
0.01580810546875,
0.0192108154296875,
0.007640838623046875,
-0.006107330322265625,
-0.00360870361328125,
0.05657958984375,
-0.0021190643310546875,
-0.032867431640625,
-0.024810791015625,
0.01371002197265625,
-0.0294952392578125,
0.0254669189453125,
-0.00007241964340209961,
0.02362060546875,
0.005664825439453125,
0.010986328125,
-0.062255859375,
0.032989501953125,
0.053863525390625,
-0.01398468017578125,
-0.036956787109375,
0.0299072265625,
-0.018463134765625,
0.0075531005859375,
-0.0092315673828125,
0.0621337890625,
-0.04632568359375,
0.0258941650390625,
0.017730712890625,
0.035919189453125,
0.0308990478515625,
-0.04473876953125,
-0.0031185150146484375,
-0.01537322998046875,
-0.0267333984375,
-0.0106658935546875,
0.0203704833984375,
0.0545654296875,
0.0389404296875,
-0.0014743804931640625,
-0.034881591796875,
0.00128173828125,
0.004268646240234375,
-0.0216827392578125,
0.0192108154296875,
-0.01508331298828125,
-0.02252197265625,
0.0016622543334960938,
-0.0130615234375,
-0.0247955322265625,
0.01244354248046875,
0.0106201171875,
-0.0250091552734375,
0.0008444786071777344,
0.0128936767578125,
-0.006317138671875,
-0.01265716552734375,
0.049774169921875,
0.003997802734375,
-0.039398193359375,
-0.0175933837890625,
-0.03387451171875,
0.04052734375,
-0.00606536865234375,
-0.00937652587890625,
0.015625,
0.010040283203125,
0.004154205322265625,
0.0174407958984375,
-0.005645751953125,
0.03509521484375,
-0.0285491943359375,
0.038055419921875,
-0.004100799560546875,
0.025482177734375,
-0.06842041015625,
-0.05535888671875,
0.006877899169921875,
0.033416748046875,
-0.0170745849609375,
-0.020721435546875,
0.00429534912109375,
-0.0220947265625,
0.027069091796875,
-0.0635986328125,
0.006595611572265625,
-0.0189971923828125,
-0.055023193359375,
0.00836181640625,
-0.021270751953125,
-0.0095367431640625,
-0.00872039794921875,
0.00907135009765625,
0.049835205078125,
0.0198211669921875,
0.0083770751953125,
0.0010137557983398438,
-0.046112060546875,
-0.0023174285888671875,
0.025146484375,
0.042144775390625,
-0.015869140625,
-0.007289886474609375,
-0.00424957275390625,
0.0089569091796875,
0.0087127685546875,
-0.044036865234375,
-0.0058746337890625,
-0.035797119140625,
-0.05645751953125,
-0.019561767578125,
0.06201171875,
-0.0095977783203125,
0.050201416015625,
0.06182861328125,
0.0849609375,
0.0205535888671875,
-0.01393890380859375,
0.05218505859375,
-0.002414703369140625,
-0.002498626708984375,
-0.0012292861938476562,
-0.050750732421875,
0.00982666015625,
-0.039642333984375,
0.0174102783203125,
-0.0037670135498046875,
0.0222625732421875,
0.01480865478515625,
0.0056610107421875,
0.0154876708984375,
-0.038482666015625,
0.030242919921875,
0.0161590576171875,
0.047119140625,
0.0256805419921875,
0.0279998779296875,
-0.0198211669921875,
0.00931549072265625,
0.0321044921875,
-0.033966064453125,
0.00310516357421875,
0.00998687744140625,
0.042694091796875,
0.035888671875,
-0.00647735595703125,
-0.00487518310546875,
-0.008544921875,
0.041778564453125,
0.03369140625,
0.00313568115234375,
0.027740478515625,
-0.0270233154296875,
-0.0007786750793457031,
0.013031005859375,
0.0059051513671875,
-0.00304412841796875,
0.06243896484375,
-0.0121917724609375,
-0.004047393798828125,
0.020660400390625,
-0.01413726806640625,
0.029296875,
0.024200439453125,
-0.0146942138671875,
0.0099334716796875,
0.004978179931640625,
-0.0155181884765625,
-0.0712890625,
-0.014251708984375,
0.0211029052734375,
-0.0172271728515625,
-0.01261138916015625,
-0.039581298828125,
0.033538818359375,
0.02838134765625,
0.007129669189453125,
-0.038330078125,
-0.0287933349609375,
-0.0211639404296875,
-0.005344390869140625,
-0.0003707408905029297,
-0.0325927734375,
-0.0295867919921875,
0.03955078125,
0.0227813720703125,
0.00688934326171875,
0.0160980224609375,
-0.02667236328125,
0.0265960693359375,
0.032470703125,
-0.003505706787109375,
-0.0289154052734375,
-0.0017566680908203125,
-0.01425933837890625,
-0.00991058349609375,
0.00959014892578125,
0.043914794921875,
-0.0084686279296875,
0.04541015625,
-0.039215087890625,
0.0160064697265625,
-0.0272979736328125,
-0.04278564453125,
-0.0124359130859375,
0.050506591796875,
-0.04022216796875,
-0.030029296875,
0.041412353515625,
-0.0174407958984375,
-0.00662994384765625,
-0.0241241455078125,
-0.018463134765625,
-0.0020313262939453125,
-0.05096435546875,
-0.0159149169921875,
-0.002872467041015625,
-0.00799560546875,
0.0310516357421875,
-0.089599609375,
0.045440673828125,
0.0231475830078125,
0.0186920166015625,
-0.0233917236328125,
0.023040771484375,
-0.0159149169921875,
0.006290435791015625,
-0.0195770263671875,
-0.0821533203125,
-0.0103912353515625,
0.11053466796875,
-0.01383209228515625,
0.007152557373046875,
0.023529052734375,
-0.0196075439453125,
-0.008697509765625,
-0.04071044921875,
-0.0110015869140625,
0.019775390625,
-0.03582763671875,
0.0036163330078125,
0.0338134765625,
-0.01494598388671875,
-0.02020263671875,
-0.0445556640625,
0.0078125,
-0.02008056640625,
-0.0284881591796875,
-0.0135955810546875,
0.0794677734375,
0.09661865234375,
0.02618408203125,
-0.01995849609375,
0.050689697265625,
-0.0209503173828125,
0.0007982254028320312,
-0.07098388671875,
-0.03912353515625,
0.00595855712890625,
0.01922607421875,
-0.028961181640625,
-0.002803802490234375,
-0.06396484375,
0.064208984375,
0.020843505859375,
0.0129241943359375,
0.0251922607421875,
0.00493621826171875,
-0.0088043212890625,
0.03070068359375,
0.0292205810546875,
0.01507568359375,
0.0162200927734375,
0.0236968994140625,
0.0290374755859375,
0.08984375,
0.034637451171875,
-0.004238128662109375,
-0.01236724853515625,
-0.1500244140625,
0.0223541259765625,
-0.042877197265625,
-0.0258941650390625,
-0.0447998046875,
0.0106201171875,
0.0006818771362304688,
0.01116943359375,
0.0085601806640625,
-0.0256805419921875,
-0.0008668899536132812,
0.017181396484375,
-0.0272674560546875,
0.0181732177734375,
-0.07122802734375,
-0.01690673828125,
-0.0279541015625,
0.0119781494140625,
0.0165252685546875,
0.0134124755859375,
0.0135345458984375,
-0.00807952880859375,
0.033172607421875,
-0.039031982421875,
-0.0210113525390625,
0.003276824951171875,
-0.001995086669921875,
-0.0141143798828125,
-0.0197906494140625,
-0.005008697509765625,
0.0069122314453125,
-0.0262451171875,
0.0015993118286132812,
0.0269317626953125,
0.06439208984375,
-0.05670166015625,
0.0104522705078125,
0.0240478515625,
0.017059326171875,
-0.03363037109375,
0.004199981689453125,
0.01544952392578125,
-0.003589630126953125,
0.0009784698486328125,
-0.0118408203125,
-0.003734588623046875,
-0.00736236572265625,
-0.0273895263671875,
0.06689453125,
-0.0142822265625,
0.0211944580078125,
-0.0130767822265625,
0.02740478515625,
-0.004985809326171875,
-0.0109710693359375,
0.036468505859375,
-0.03363037109375,
0.004352569580078125,
-0.0321044921875,
-0.0254974365234375,
-0.04693603515625,
0.017333984375,
-0.007110595703125,
-0.0307769775390625,
0.0211944580078125
] |
c1e73efc300eee150bcc8b181f4ba91c138a4781
|
Wordpress Stackexchange
Q: $wpdb->get_row() only returns a single row? Why is it? I tried the same query in the console and it returned multiple rows. Here's the query:
$this->wpdb->get_row("SELECT * FROM ".$this->wpdb->users." WHERE status = 'active'", ARRAY_A);
It keeps returning the same single row when there are several active users. Am I missing something?
A: Indeed, use get_row() only when you expect to get one result, else you can use get_results()
|
Q: $wpdb->get_row() only returns a single row? Why is it? I tried the same query in the console and it returned multiple rows. Here's the query:
$this->wpdb->get_row("SELECT * FROM ".$this->wpdb->users." WHERE status = 'active'", ARRAY_A);
It keeps returning the same single row when there are several active users. Am I missing something?
A: Indeed, use get_row() only when you expect to get one result, else you can use get_results()
A: There are three ways to pull data from the database.
1.$wpdb->get_var:use this to get a single value from the database table. Like if you want to count the total number of comments. You can do it in following way:
<?php
$comment_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM $wpdb->comments;"));
echo '<p>Total comments: ' . $comment_count . '</p>';
?>
2.$wpdb->get_row : To retrieve an entire table row you can use this.
Example:
<?php
$thepost = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = 1" ) );
echo $thepost->post_title;
?>
OR
<?php
$thepost = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = 1" ), ARRAY_A );
print_r ($thepost);
?>
By using the ARRAY_A parameter in get_row your post data is returned as an associative array. Alternatively, you could use the ARRAY_N parameter to return your post data in a numerically indexed array.
3.$wpdb->get_results:Standard SELECT queries should use the get_results function for retrieving multiple rows of data from the database.
<?php
global $wpdb;
$allposts = $wpdb->get_results( $wpdb->prepare("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish'") );
foreach ($allposts as $singlepost) {
echo '<p>' .$singlepost->post_title. '</p>';
}
?>
and you need the last one, as you can expect.
A: $wpdb->get_row('query', output_type, row_offset);
row_offset
(integer) The desired row (0 being the first). Defaults to 0.
va http://codex.wordpress.org/Class_Reference/wpdb
A: my solution is simple..
<?php
function count_results() {
# use the data base
global $wpdb;
# Query to count all results from one table
$sql_count_results = '
SELECT count(*) as count
FROM `YOUR_TABLE`;';
# Ejecute function
$results = $wpdb->get_row( $sql_count_results , OBJECT );
# Return results
return $results->count;
}
Use:
<?php
echo count_results();
|
wordpress
|
{
"language": "en",
"length": 335,
"provenance": "stackexchange_00019.jsonl.gz:408460",
"question_score": "37",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14239"
}
|
[
0.06890869140625,
0.00965118408203125,
-0.01491546630859375,
-0.030364990234375,
0.0416259765625,
-0.044281005859375,
0.07135009765625,
-0.0017919540405273438,
0.0102081298828125,
0.0538330078125,
-0.049163818359375,
0.020843505859375,
-0.0267333984375,
-0.0019893646240234375,
-0.03887939453125,
-0.0361328125,
0.049468994140625,
-0.04449462890625,
-0.00632476806640625,
-0.00949859619140625,
-0.01543426513671875,
0.0287933349609375,
0.0004169940948486328,
0.08319091796875,
0.0008854866027832031,
-0.030242919921875,
0.06903076171875,
-0.0036487579345703125,
0.0308685302734375,
-0.0089111328125,
0.013427734375,
-0.0232696533203125,
-0.01123046875,
0.01404571533203125,
0.01427459716796875,
0.01177215576171875,
0.023773193359375,
0.0126190185546875,
0.0023288726806640625,
0.0345458984375,
0.014312744140625,
-0.0012054443359375,
-0.06072998046875,
-0.0104522705078125,
-0.04345703125,
-0.04241943359375,
0.042572021484375,
0.03143310546875,
0.0200958251953125,
0.00926971435546875,
0.0132904052734375,
0.01197052001953125,
0.02001953125,
-0.006626129150390625,
-0.004497528076171875,
0.01812744140625,
-0.00377655029296875,
-0.037200927734375,
0.0394287109375,
-0.02593994140625,
-0.031707763671875,
-0.031890869140625,
0.044036865234375,
-0.00815582275390625,
-0.03570556640625,
0.01171112060546875,
0.01097869873046875,
0.0103607177734375,
0.002685546875,
-0.05169677734375,
-0.00563812255859375,
0.01393890380859375,
-0.006053924560546875,
0.0025157928466796875,
-0.04840087890625,
-0.021820068359375,
0.0187835693359375,
-0.05767822265625,
0.006572723388671875,
0.0194091796875,
-0.014068603515625,
-0.04486083984375,
-0.0965576171875,
0.04522705078125,
-0.017852783203125,
0.0572509765625,
-0.006320953369140625,
-0.0118560791015625,
-0.0261688232421875,
-0.02740478515625,
-0.0222930908203125,
-0.055572509765625,
-0.01523590087890625,
-0.007625579833984375,
-0.0173797607421875,
-0.0443115234375,
-0.0037021636962890625,
0.0504150390625,
-0.01389312744140625,
-0.00418853759765625,
-0.0139617919921875,
-0.0310516357421875,
-0.0132598876953125,
-0.03668212890625,
0.006824493408203125,
-0.006969451904296875,
0.0228271484375,
0.006999969482421875,
0.0306854248046875,
0.0282135009765625,
-0.007717132568359375,
0.075927734375,
-0.0265655517578125,
-0.01215362548828125,
-0.0256195068359375,
-0.0123748779296875,
-0.06683349609375,
0.005069732666015625,
0.0074920654296875,
-0.0172119140625,
0.01113128662109375,
0.04449462890625,
-0.0244903564453125,
-0.00879669189453125,
-0.03411865234375,
-0.0248870849609375,
-0.00798797607421875,
-0.01493072509765625,
-0.025543212890625,
0.026885986328125,
-0.006946563720703125,
0.0035610198974609375,
-0.0008907318115234375,
0.02130126953125,
-0.017852783203125,
-0.0191802978515625,
0.006313323974609375,
-0.0004992485046386719,
-0.0025348663330078125,
0.0384521484375,
0.0014324188232421875,
-0.06585693359375,
-0.0240936279296875,
0.01300811767578125,
-0.0082550048828125,
-0.00922393798828125,
0.0157318115234375,
0.0115814208984375,
-0.00640106201171875,
0.023345947265625,
-0.0623779296875,
0.044647216796875,
-0.031524658203125,
0.03729248046875,
0.051483154296875,
0.006694793701171875,
0.00887298583984375,
-0.01206207275390625,
0.03326416015625,
0.01543426513671875,
0.085205078125,
-0.0044403076171875,
-0.0305328369140625,
0.0179443359375,
-0.045654296875,
-0.007843017578125,
-0.0596923828125,
-0.0214996337890625,
0.031982421875,
-0.0187225341796875,
0.007518768310546875,
0.006267547607421875,
0.0777587890625,
0.037445068359375,
-0.0006022453308105469,
0.036956787109375,
-0.0173492431640625,
0.0172882080078125,
0.0203399658203125,
-0.0259552001953125,
-0.01666259765625,
-0.032989501953125,
0.0180206298828125,
0.0217132568359375,
-0.032928466796875,
0.097900390625,
-0.007350921630859375,
0.06988525390625,
-0.0149078369140625,
0.00982666015625,
-0.04266357421875,
0.080810546875,
-0.03656005859375,
-0.002666473388671875,
0.0311126708984375,
-0.016021728515625,
-0.0278167724609375,
-0.021331787109375,
-0.0033721923828125,
-0.02734375,
0.07342529296875,
-0.04962158203125,
0.0487060546875,
-0.05340576171875,
-0.035369873046875,
-0.028289794921875,
-0.0030002593994140625,
-0.0023899078369140625,
-0.0166778564453125,
-0.0159149169921875,
0.0165863037109375,
-0.00872039794921875,
-0.0386962890625,
0.0300445556640625,
-0.0322265625,
0.0031185150146484375,
-0.0183563232421875,
0.0509033203125,
-0.0034084320068359375,
0.039520263671875,
-0.0190887451171875,
-0.037628173828125,
0.006134033203125,
0.00878143310546875,
0.01806640625,
-0.039520263671875,
0.0020809173583984375,
-0.0299835205078125,
0.01248931884765625,
-0.03302001953125,
0.0284881591796875,
0.04815673828125,
0.0618896484375,
0.08404541015625,
-0.0162811279296875,
0.0015277862548828125,
0.023529052734375,
-0.0218963623046875,
0.0028629302978515625,
0.0233306884765625,
0.02874755859375,
-0.023406982421875,
0.0078277587890625,
0.037261962890625,
-0.01995849609375,
-0.044219970703125,
0.0220794677734375,
0.004077911376953125,
-0.032562255859375,
0.0214385986328125,
0.0019254684448242188,
0.013427734375,
0.01326751708984375,
-0.031341552734375,
-0.03350830078125,
0.060638427734375,
-0.02197265625,
0.0295867919921875,
-0.0211029052734375,
0.0020923614501953125,
-0.01377105712890625,
0.0184326171875,
0.02911376953125,
-0.024993896484375,
-0.00868988037109375,
0.0157318115234375,
0.01192474365234375,
0.03411865234375,
-0.0005602836608886719,
-0.004856109619140625,
0.0037937164306640625,
-0.0069122314453125,
0.0014133453369140625,
0.0455322265625,
-0.06719970703125,
0.0205841064453125,
0.00689697265625,
-0.0035686492919921875,
-0.0292205810546875,
-0.0016765594482421875,
-0.00365447998046875,
0.004970550537109375,
-0.0027332305908203125,
-0.00669097900390625,
0.048736572265625,
0.0073394775390625,
-0.00458526611328125,
-0.020263671875,
-0.0200958251953125,
-0.0030975341796875,
0.0208587646484375,
0.0699462890625,
0.0157318115234375,
0.04193115234375,
-0.059600830078125,
0.01279449462890625,
0.04217529296875,
-0.0158843994140625,
0.00933074951171875,
-0.0175323486328125,
0.04241943359375,
0.055908203125,
-0.0177154541015625,
-0.005756378173828125,
-0.01343536376953125,
-0.027923583984375,
-0.016815185546875,
-0.006389617919921875,
-0.031341552734375,
-0.0012903213500976562,
-0.071044921875,
0.03790283203125,
0.046600341796875,
0.12457275390625,
-0.003143310546875,
-0.035736083984375,
0.0279083251953125,
0.07525634765625,
-0.036712646484375,
-0.11822509765625,
-0.0180816650390625,
-0.0496826171875,
0.047088623046875,
-0.035797119140625,
0.0026092529296875,
-0.01520538330078125,
-0.0164947509765625,
0.0244293212890625,
0.025146484375,
0.0237579345703125,
-0.059814453125,
-0.003387451171875,
-0.082275390625,
0.0285186767578125,
-0.023529052734375,
0.0238494873046875,
0.0029201507568359375,
0.0521240234375,
-0.00023663043975830078,
-0.031768798828125,
-0.00494384765625,
0.003940582275390625,
-0.034759521484375,
-0.03509521484375,
0.020721435546875,
-0.032745361328125,
-0.01409149169921875,
0.0124969482421875,
-0.049652099609375,
-0.021087646484375,
0.0094451904296875,
-0.026702880859375,
0.02044677734375,
-0.004825592041015625,
0.0550537109375,
0.0108489990234375,
-0.06280517578125,
0.03497314453125,
0.07122802734375,
-0.025543212890625,
0.00907135009765625,
-0.0129547119140625,
-0.01715087890625,
0.0005078315734863281,
-0.012542724609375,
-0.00011163949966430664,
0.0079193115234375,
0.0025310516357421875,
0.0428466796875,
0.045196533203125,
-0.041290283203125,
0.000034689903259277344,
0.06976318359375,
0.01568603515625,
0.0391845703125,
-0.01629638671875,
-0.019866943359375,
-0.0186767578125,
0.021820068359375,
-0.0161590576171875,
0.016510009765625,
-0.01003265380859375,
0.0218963623046875,
-0.046875,
-0.03173828125,
0.057586669921875,
0.0247650146484375,
-0.003330230712890625,
-0.021026611328125,
-0.03448486328125,
-0.003387451171875,
0.086181640625,
-0.002788543701171875,
-0.0214080810546875,
-0.00283050537109375,
0.0210723876953125,
-0.0550537109375,
-0.03271484375,
-0.05548095703125,
0.007732391357421875,
-0.0174407958984375,
-0.00699615478515625,
-0.0205841064453125,
-0.004444122314453125,
-0.028106689453125,
-0.0149078369140625,
-0.0164642333984375,
-0.02960205078125,
0.032989501953125,
-0.039825439453125,
0.02996826171875,
0.023193359375,
-0.002414703369140625,
0.00739288330078125,
-0.0049896240234375,
-0.03778076171875,
-0.040435791015625,
-0.010528564453125,
0.0279693603515625,
-0.0009832382202148438,
-0.014312744140625,
0.012939453125,
0.007144927978515625,
0.036956787109375,
-0.028350830078125,
0.0467529296875,
-0.0070648193359375,
0.03631591796875,
0.001384735107421875,
-0.01113128662109375,
0.008544921875,
-0.021820068359375,
-0.0310516357421875,
-0.060333251953125,
0.01580810546875,
-0.036773681640625,
-0.053863525390625,
-0.004276275634765625,
-0.0751953125,
0.0218505859375,
-0.01485443115234375,
-0.00966644287109375,
0.01273345947265625,
0.05255126953125,
-0.00824737548828125,
0.01476287841796875,
-0.0255889892578125,
-0.04595947265625,
0.046112060546875,
0.0185394287109375,
0.005672454833984375,
-0.0033092498779296875,
0.052215576171875,
0.00775909423828125,
-0.04119873046875,
-0.04052734375,
-0.0008993148803710938,
0.040924072265625,
-0.007785797119140625,
0.04052734375,
0.040069580078125,
-0.0491943359375,
0.05364990234375,
0.03729248046875,
0.006275177001953125,
0.00952911376953125,
0.053741455078125,
0.001514434814453125,
-0.0230560302734375,
0.0283050537109375,
-0.006740570068359375,
-0.04754638671875,
0.034820556640625,
-0.01151275634765625,
0.0022869110107421875,
0.001842498779296875,
0.018310546875,
-0.0067138671875,
-0.01116180419921875,
-0.0277099609375,
-0.0614013671875,
0.0203094482421875,
-0.041900634765625,
0.02783203125,
-0.0250701904296875,
0.0259857177734375,
0.0200653076171875,
0.01800537109375,
-0.017364501953125,
0.0089111328125,
0.0286712646484375,
0.006305694580078125,
0.045623779296875,
-0.019378662109375,
-0.003231048583984375,
-0.041656494140625,
-0.00677490234375,
0.010101318359375,
-0.00746917724609375,
-0.053131103515625,
0.006496429443359375,
-0.00925445556640625,
0.027862548828125,
0.034576416015625,
-0.0008029937744140625,
0.0465087890625,
0.024688720703125,
-0.0003974437713623047,
-0.01245880126953125,
-0.02716064453125,
0.0208892822265625,
-0.045867919921875,
0.03204345703125,
-0.008880615234375,
0.007843017578125,
0.007503509521484375,
0.05322265625,
0.0038089752197265625,
0.043548583984375,
-0.02587890625,
0.0413818359375,
-0.002857208251953125,
0.0731201171875,
-0.0086822509765625,
-0.01309967041015625,
0.0016222000122070312,
0.06732177734375,
-0.01248931884765625,
-0.043914794921875,
0.040008544921875,
0.037384033203125,
0.03240966796875,
0.06085205078125,
-0.0194854736328125,
-0.007534027099609375,
-0.012786865234375,
-0.0210723876953125,
0.097900390625,
0.03094482421875,
-0.05914306640625,
-0.08282470703125,
-0.018035888671875,
0.047882080078125,
-0.006504058837890625,
-0.012420654296875,
0.0233612060546875,
0.00010383129119873047,
0.046356201171875,
0.0035343170166015625,
-0.0024013519287109375,
0.0034427642822265625,
0.011932373046875,
0.002819061279296875,
-0.017852783203125,
-0.034027099609375,
0.00333404541015625,
0.0044403076171875,
-0.0018224716186523438,
-0.0083770751953125,
0.0189971923828125,
-0.010650634765625,
0.051513671875,
-0.06829833984375,
-0.01505279541015625,
-0.11102294921875,
-0.0165557861328125,
0.0809326171875,
0.08172607421875,
0.007167816162109375,
-0.0226287841796875,
-0.028594970703125,
-0.0173187255859375,
0.0272674560546875,
-0.037017822265625,
0.0002613067626953125,
-0.0266571044921875,
0.017120361328125,
0.028289794921875,
0.026397705078125,
-0.017181396484375,
-0.036163330078125,
-0.023193359375,
0.0161590576171875,
-0.0003185272216796875,
-0.0191650390625,
0.060760498046875,
0.0194854736328125,
0.025238037109375,
0.02301025390625,
0.055999755859375,
-0.003692626953125,
-0.0204925537109375,
0.0084228515625,
-0.0243988037109375,
0.0012769699096679688,
-0.00559234619140625,
-0.002429962158203125,
-0.05181884765625,
-0.004146575927734375,
0.004161834716796875,
0.02581787109375,
-0.0009045600891113281,
0.01335906982421875,
-0.01157379150390625,
-0.016754150390625,
-0.0176544189453125,
-0.019927978515625,
0.047760009765625,
0.0016498565673828125,
-0.00782012939453125,
-0.038116455078125,
-0.0111236572265625,
-0.0171966552734375,
0.01004791259765625,
-0.022125244140625,
0.007266998291015625,
0.016815185546875,
0.00934600830078125,
0.0280609130859375,
-0.0226898193359375,
0.0340576171875,
0.0213775634765625,
0.035308837890625,
0.0280303955078125,
0.01727294921875,
-0.036041259765625,
0.0005421638488769531,
0.0260467529296875,
-0.0059967041015625,
-0.0088653564453125,
0.027801513671875,
-0.003993988037109375,
0.04949951171875,
0.0245819091796875,
0.07867431640625,
-0.05047607421875,
0.0338134765625,
0.0246124267578125,
-0.0216827392578125,
0.052032470703125,
0.01064300537109375,
-0.025115966796875,
-0.065185546875,
0.028656005859375,
-0.0147705078125,
0.01424407958984375,
0.00785064697265625,
-0.005496978759765625,
0.0165557861328125,
-0.0242462158203125,
0.04522705078125,
-0.0041961669921875,
-0.0175323486328125,
-0.0226593017578125,
0.01226806640625,
-0.016143798828125,
0.00240325927734375,
-0.006885528564453125,
0.016021728515625,
-0.01444244384765625,
-0.050048828125,
0.002437591552734375,
-0.0189056396484375,
-0.019927978515625,
-0.0037631988525390625,
-0.0025806427001953125,
-0.007415771484375,
0.053863525390625,
-0.036895751953125,
-0.0017032623291015625,
0.03826904296875,
-0.049835205078125,
-0.091796875,
-0.0221099853515625,
0.0002551078796386719,
0.037750244140625,
-0.0325927734375,
0.040283203125,
-0.01702880859375,
-0.01500701904296875,
0.0015459060668945312,
-0.029815673828125,
0.0218658447265625,
-0.01654052734375,
-0.0101776123046875,
0.0298004150390625,
0.00019979476928710938,
-0.005939483642578125,
0.01142120361328125,
-0.005584716796875,
-0.0193939208984375,
0.003814697265625,
-0.001483917236328125,
-0.02386474609375,
0.01806640625,
0.0176239013671875,
-0.043182373046875,
0.0116424560546875,
-0.00968170166015625,
0.00830841064453125,
0.0294036865234375,
0.0003261566162109375,
-0.0191192626953125,
-0.015594482421875,
-0.04388427734375,
0.05072021484375,
0.01416778564453125,
0.06085205078125,
-0.013824462890625,
0.00812530517578125,
0.038330078125,
-0.0115203857421875,
0.01371002197265625,
-0.003444671630859375,
-0.0189208984375,
0.003986358642578125,
0.037506103515625,
0.0229339599609375,
-0.0080718994140625,
0.0323486328125,
-0.0011320114135742188,
0.0413818359375,
0.07427978515625,
-0.029022216796875,
0.02984619140625,
0.00614166259765625,
-0.01491546630859375,
0.016387939453125,
0.02313232421875,
0.0133209228515625,
0.00876617431640625,
0.0212249755859375,
-0.0252685546875,
-0.0017080307006835938,
0.031524658203125,
-0.036834716796875,
0.00007784366607666016,
0.05352783203125,
0.06646728515625,
-0.026641845703125,
-0.007350921630859375,
-0.035400390625,
0.040740966796875,
0.03155517578125,
0.006855010986328125,
0.0282745361328125,
0.0156707763671875,
0.08013916015625,
-0.0083160400390625,
0.005092620849609375,
0.001331329345703125,
0.00913238525390625,
0.036590576171875,
0.0124664306640625,
0.0184326171875,
-0.0518798828125,
0.004558563232421875,
0.043792724609375,
0.0574951171875,
-0.0413818359375,
-0.045257568359375,
0.015960693359375,
-0.003055572509765625,
0.02020263671875,
0.0171966552734375,
0.0169830322265625,
0.0217132568359375,
0.0533447265625,
-0.0306396484375,
-0.00704193115234375,
0.021240234375,
-0.01047515869140625,
-0.00836181640625,
-0.0169677734375,
0.01458740234375,
0.00457000732421875,
-0.019500732421875,
-0.0195465087890625,
0.020050048828125,
0.0103302001953125,
0.005466461181640625,
-0.01025390625,
0.0250244140625,
-0.0008835792541503906,
-0.014495849609375,
0.048919677734375,
-0.0321044921875,
0.026580810546875,
-0.06298828125,
-0.080322265625,
0.00689697265625,
0.04754638671875,
0.04833984375,
-0.0304718017578125,
-0.01233673095703125,
-0.007427215576171875,
-0.00563812255859375,
0.0300140380859375,
0.071533203125,
0.007411956787109375,
-0.042266845703125,
-0.045318603515625,
-0.0020313262939453125,
0.0386962890625,
0.0223541259765625,
0.01220703125,
-0.030670166015625,
0.07061767578125,
0.00507354736328125,
0.015533447265625,
-0.00655364990234375,
-0.011749267578125,
0.0189056396484375,
-0.0290069580078125,
-0.00470733642578125,
0.006099700927734375,
-0.07830810546875,
-0.029296875,
-0.009033203125,
-0.0057830810546875,
0.008575439453125,
0.039886474609375,
0.009033203125,
0.004268646240234375,
0.01154327392578125,
0.0121917724609375,
-0.0281982421875,
0.0164947509765625,
0.0233001708984375,
0.002948760986328125,
0.01508331298828125,
0.0154876708984375,
-0.034942626953125,
-0.024139404296875,
0.01336669921875,
0.0226593017578125,
-0.006511688232421875,
0.0261077880859375,
0.0155792236328125,
-0.0005669593811035156,
0.004253387451171875,
0.027313232421875,
-0.03118896484375,
-0.001506805419921875,
0.040557861328125,
-0.00823974609375,
-0.011566162109375,
-0.0188140869140625,
-0.03125,
0.00861358642578125,
0.040283203125,
-0.0182037353515625,
-0.0042266845703125,
0.0159912109375,
0.0162811279296875,
-0.01523590087890625,
0.02130126953125,
-0.0164794921875,
0.00806427001953125,
-0.009674072265625,
-0.01751708984375,
0.046783447265625,
0.041961669921875,
0.01128387451171875,
0.042327880859375,
-0.0283660888671875,
-0.033233642578125,
0.014190673828125,
-0.05401611328125,
-0.00948333740234375,
0.00868988037109375,
-0.004505157470703125,
0.0478515625,
-0.01068878173828125,
-0.039154052734375,
0.039306640625,
-0.0118408203125,
-0.0298614501953125,
0.0033550262451171875,
-0.016082763671875,
0.036834716796875,
0.00574493408203125,
0.0212554931640625,
-0.035552978515625,
-0.004512786865234375,
0.060882568359375,
0.0024089813232421875,
-0.00994110107421875,
0.01044464111328125,
0.00391387939453125,
0.044189453125,
-0.0552978515625,
-0.018890380859375,
0.0133819580078125,
-0.0491943359375,
0.0129241943359375,
0.002452850341796875,
-0.0034580230712890625,
-0.007049560546875,
-0.0132598876953125,
0.0296478271484375,
-0.0230560302734375,
-0.007144927978515625,
-0.034881591796875,
-0.0215606689453125,
0.0287017822265625,
0.07940673828125,
-0.03326416015625,
-0.01654052734375,
0.0217437744140625,
-0.00884246826171875,
-0.01439666748046875,
-0.00510406494140625,
0.007434844970703125,
-0.0021305084228515625,
-0.0294036865234375,
0.023529052734375,
-0.0259857177734375,
0.0537109375,
-0.00792694091796875,
-0.014617919921875,
-0.00437164306640625,
0.0289154052734375,
-0.00328826904296875,
-0.03173828125,
0.010955810546875,
-0.001590728759765625,
0.01678466796875,
0.008697509765625,
-0.0019626617431640625,
0.017852783203125,
-0.046722412109375,
-0.0899658203125,
0.09307861328125,
-0.0231781005859375,
-0.034210205078125,
-0.0020427703857421875,
-0.01024627685546875,
0.00830078125,
-0.0066986083984375,
-0.0103759765625,
-0.0069580078125,
-0.024749755859375,
0.0135040283203125,
-0.004421234130859375,
0.03948974609375,
0.014495849609375,
0.01910400390625,
-0.056365966796875,
-0.01271820068359375,
-0.03570556640625,
-0.010833740234375,
-0.0283355712890625,
-0.005985260009765625,
0.0322265625,
0.038482666015625,
-0.0123443603515625,
0.01953125,
0.0322265625,
-0.001407623291015625,
0.01007843017578125,
-0.0208587646484375,
-0.0022335052490234375,
-0.005558013916015625,
-0.00543212890625,
0.0294036865234375,
0.00046634674072265625,
-0.0247802734375,
-0.0377197265625,
-0.0118408203125,
-0.0248870849609375,
-0.0045928955078125,
0.0338134765625,
-0.07196044921875,
0.0210113525390625,
0.01285552978515625,
-0.050262451171875,
-0.0064544677734375,
0.047607421875,
-0.0733642578125,
0.025909423828125,
-0.0020465850830078125,
-0.017547607421875,
-0.066162109375,
-0.05181884765625,
0.0006990432739257812,
-0.01332855224609375,
-0.039337158203125,
0.0011005401611328125,
0.0374755859375,
-0.04241943359375,
0.014007568359375,
0.001346588134765625,
0.0183563232421875,
-0.02313232421875,
0.01482391357421875,
0.00719451904296875,
-0.001636505126953125,
-0.0177459716796875,
-0.0009546279907226562,
0.00502777099609375,
0.016082763671875,
-0.0205841064453125,
0.035797119140625,
0.0562744140625,
-0.0230712890625,
-0.007747650146484375,
-0.00045871734619140625,
-0.004215240478515625,
0.08624267578125,
-0.007213592529296875,
0.035003662109375,
0.0052337646484375,
-0.00775909423828125,
0.026519775390625,
-0.0014181137084960938,
-0.00814056396484375,
0.032135009765625,
-0.031158447265625,
-0.0302276611328125,
0.023101806640625,
0.0286102294921875,
-0.006740570068359375,
0.012847900390625
] |
9dec21b7fcac529b0fe4b4cfbc3ee234939329a1
|
Wordpress Stackexchange
Q: Reason for Lowercase usernames I can see validate_user() calls sanitize_user() with strict argument as true, which means uppercase letters are not allowed too.
In source code, I found this comment
// If strict, reduce to ASCII for max portability.
if ( $strict )
$username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username );
I would like to know how does this affect portability?
A: Uppercase characters are not blocked in usernames on single site setups.
Uppercase characters ARE blocked in usernames on multisite setups. The wpmu_validate_user_signup function forces lowercase a-z and numbers 0-9 only.
|
Q: Reason for Lowercase usernames I can see validate_user() calls sanitize_user() with strict argument as true, which means uppercase letters are not allowed too.
In source code, I found this comment
// If strict, reduce to ASCII for max portability.
if ( $strict )
$username = preg_replace( '|[^a-z0-9 _.\-@]|i', '', $username );
I would like to know how does this affect portability?
A: Uppercase characters are not blocked in usernames on single site setups.
Uppercase characters ARE blocked in usernames on multisite setups. The wpmu_validate_user_signup function forces lowercase a-z and numbers 0-9 only.
A: If You are not allowing users to register site, you may disable 'uppercase' restriction from MS install, just add into your theme functions.php file:
remove_action( 'sanitize_user', 'strtolower' );
A: Off hand, I suppose it would be so you can use validate_user's results in a URL or a $_GET string. I'm sure there are plenty of other reasons as well, I guess I don't know what they mean by max portability...
|
wordpress
|
{
"language": "en",
"length": 164,
"provenance": "stackexchange_00019.jsonl.gz:408471",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14275"
}
|
[
0.01152801513671875,
-0.01065826416015625,
-0.0269775390625,
-0.0555419921875,
-0.01291656494140625,
-0.0259246826171875,
-0.00994110107421875,
0.0160675048828125,
-0.016387939453125,
0.06683349609375,
0.0207061767578125,
0.0102386474609375,
0.06707763671875,
-0.0283660888671875,
0.0014190673828125,
0.01161956787109375,
-0.01715087890625,
0.023773193359375,
-0.0293731689453125,
-0.051025390625,
0.027496337890625,
-0.05926513671875,
-0.051177978515625,
0.029937744140625,
0.00304412841796875,
-0.0582275390625,
0.137939453125,
-0.033843994140625,
0.00727081298828125,
-0.027252197265625,
0.0211334228515625,
0.0018053054809570312,
-0.007598876953125,
0.00931549072265625,
0.035400390625,
0.02349853515625,
0.0115814208984375,
0.006229400634765625,
0.05364990234375,
-0.0030422210693359375,
0.01552581787109375,
-0.0124969482421875,
0.006725311279296875,
0.00859832763671875,
-0.006282806396484375,
-0.08111572265625,
0.09478759765625,
-0.014923095703125,
0.04840087890625,
-0.0211944580078125,
0.01267242431640625,
0.033050537109375,
0.01491546630859375,
-0.036407470703125,
-0.005947113037109375,
0.0567626953125,
-0.061004638671875,
0.0017528533935546875,
0.01447296142578125,
0.06365966796875,
0.02032470703125,
-0.007495880126953125,
-0.0029239654541015625,
-0.02947998046875,
0.01300048828125,
-0.006587982177734375,
0.01006317138671875,
0.0258026123046875,
-0.005756378173828125,
-0.0010442733764648438,
-0.013946533203125,
-0.0038909912109375,
-0.00807952880859375,
0.0261993408203125,
0.006832122802734375,
-0.00756072998046875,
0.0164031982421875,
0.0204010009765625,
0.025970458984375,
0.043243408203125,
0.000995635986328125,
-0.032684326171875,
-0.0423583984375,
0.032257080078125,
0.0005354881286621094,
0.0491943359375,
-0.00824737548828125,
-0.0232086181640625,
0.0007700920104980469,
0.0030307769775390625,
0.0024871826171875,
0.0277862548828125,
-0.0186004638671875,
0.0265960693359375,
0.0006151199340820312,
-0.035186767578125,
-0.0032749176025390625,
0.025970458984375,
0.0082550048828125,
-0.01544189453125,
0.065673828125,
-0.0594482421875,
0.0270233154296875,
-0.0222625732421875,
-0.01044464111328125,
0.0261077880859375,
0.010498046875,
0.02459716796875,
0.0163421630859375,
0.018646240234375,
-0.00635528564453125,
-0.0174407958984375,
-0.02880859375,
-0.0615234375,
0.0012960433959960938,
0.01422882080078125,
-0.05755615234375,
0.050079345703125,
0.038726806640625,
0.0000016689300537109375,
0.015869140625,
0.04296875,
-0.014129638671875,
-0.0389404296875,
-0.00676727294921875,
-0.021484375,
-0.022216796875,
-0.0173797607421875,
-0.05157470703125,
0.095458984375,
-0.0267181396484375,
-0.01538848876953125,
0.00247955322265625,
-0.0006375312805175781,
-0.0301513671875,
-0.0579833984375,
0.0149688720703125,
-0.022247314453125,
-0.01419830322265625,
0.0653076171875,
-0.02716064453125,
-0.048828125,
0.014312744140625,
-0.01105499267578125,
0.0050811767578125,
0.021209716796875,
0.0240325927734375,
0.01392364501953125,
0.00128936767578125,
-0.08782958984375,
0.053863525390625,
-0.055816650390625,
0.005657196044921875,
0.0390625,
-0.024200439453125,
0.01119232177734375,
0.0007748603820800781,
-0.015777587890625,
0.0036678314208984375,
-0.026153564453125,
0.01363372802734375,
-0.006046295166015625,
0.0157623291015625,
-0.0062713623046875,
-0.0377197265625,
0.00514984130859375,
-0.0182647705078125,
-0.016937255859375,
0.02630615234375,
-0.04608154296875,
0.0253143310546875,
0.02728271484375,
0.0217132568359375,
0.0016326904296875,
0.028472900390625,
0.0028934478759765625,
-0.016937255859375,
0.0297088623046875,
0.0092926025390625,
0.038787841796875,
0.0184783935546875,
-0.036163330078125,
0.040924072265625,
0.003459930419921875,
-0.026611328125,
-0.0274658203125,
0.023529052734375,
0.0298004150390625,
0.0291290283203125,
0.0208892822265625,
0.027252197265625,
0.0001214146614074707,
0.003940582275390625,
-0.021820068359375,
0.01113128662109375,
-0.046905517578125,
0.0478515625,
-0.00786590576171875,
0.006832122802734375,
0.005859375,
0.0333251953125,
-0.06903076171875,
0.06689453125,
-0.04266357421875,
-0.007389068603515625,
-0.0272369384765625,
-0.02117919921875,
0.0014295578002929688,
-0.035736083984375,
0.020782470703125,
0.03009033203125,
-0.0220489501953125,
-0.020599365234375,
-0.0008020401000976562,
0.01105499267578125,
-0.004932403564453125,
-0.0164642333984375,
0.0289459228515625,
0.008544921875,
0.0196380615234375,
0.032562255859375,
-0.041015625,
0.03729248046875,
-0.006603240966796875,
-0.00690460205078125,
-0.028228759765625,
-0.007122039794921875,
-0.019073486328125,
-0.01253509521484375,
0.00484466552734375,
0.0194091796875,
0.035064697265625,
0.0828857421875,
0.06256103515625,
-0.03045654296875,
-0.006183624267578125,
-0.01015472412109375,
-0.03338623046875,
-0.0206298828125,
0.055999755859375,
0.01580810546875,
0.01763916015625,
-0.04034423828125,
-0.00377655029296875,
0.0167999267578125,
0.0177001953125,
0.0252685546875,
-0.005031585693359375,
-0.004070281982421875,
0.036865234375,
-0.0198822021484375,
-0.005298614501953125,
0.017333984375,
-0.07769775390625,
-0.00934600830078125,
0.039642333984375,
-0.0380859375,
-0.0304718017578125,
-0.026092529296875,
0.04119873046875,
-0.01239776611328125,
-0.0203399658203125,
0.005817413330078125,
-0.0165863037109375,
0.01593017578125,
-0.0281524658203125,
-0.0117034912109375,
-0.035125732421875,
-0.030487060546875,
-0.006744384765625,
0.037933349609375,
-0.057830810546875,
-0.005603790283203125,
0.03265380859375,
0.06365966796875,
0.0150604248046875,
0.0017757415771484375,
-0.025634765625,
0.00838470458984375,
0.017852783203125,
0.024810791015625,
0.0205841064453125,
0.04302978515625,
-0.006855010986328125,
0.00885772705078125,
-0.04949951171875,
0.046417236328125,
0.04254150390625,
0.0155181884765625,
-0.03155517578125,
0.0239715576171875,
0.0157928466796875,
-0.006633758544921875,
0.0213165283203125,
0.011688232421875,
-0.053070068359375,
0.01507568359375,
0.020111083984375,
-0.015899658203125,
-0.01226806640625,
0.0037860870361328125,
0.031585693359375,
0.0133514404296875,
-0.038848876953125,
-0.006282806396484375,
-0.0112457275390625,
0.0007619857788085938,
-0.003856658935546875,
-0.004749298095703125,
-0.028106689453125,
-0.0189971923828125,
0.03472900390625,
0.0248260498046875,
0.0694580078125,
-0.01666259765625,
-0.0270538330078125,
-0.02880859375,
0.0248870849609375,
-0.03326416015625,
-0.0322265625,
-0.0308685302734375,
-0.0244293212890625,
0.022552490234375,
0.00751495361328125,
0.0163726806640625,
-0.00701904296875,
0.00997161865234375,
0.01308441162109375,
-0.0005230903625488281,
-0.058135986328125,
-0.017852783203125,
-0.058837890625,
-0.05194091796875,
-0.00804901123046875,
0.0186920166015625,
0.0006256103515625,
0.0029201507568359375,
0.036468505859375,
-0.0108184814453125,
-0.05816650390625,
-0.020721435546875,
-0.0121612548828125,
-0.01019287109375,
-0.00421905517578125,
-0.0267486572265625,
-0.011444091796875,
-0.0267181396484375,
-0.00830841064453125,
-0.0205078125,
-0.0036411285400390625,
0.0227508544921875,
0.016021728515625,
0.0244598388671875,
-0.039276123046875,
0.0183258056640625,
0.0159454345703125,
-0.031951904296875,
-0.00887298583984375,
0.0278778076171875,
-0.06402587890625,
-0.025787353515625,
0.017578125,
-0.0153656005859375,
0.02886962890625,
-0.0290069580078125,
-0.01219940185546875,
0.0086517333984375,
0.04461669921875,
0.03790283203125,
0.0041656494140625,
-0.0097808837890625,
-0.0083770751953125,
0.00853729248046875,
0.0179901123046875,
0.052459716796875,
-0.01280975341796875,
0.0328369140625,
-0.0251007080078125,
-0.01364898681640625,
-0.00687408447265625,
-0.025054931640625,
-0.0240325927734375,
-0.004100799560546875,
-0.008514404296875,
-0.07159423828125,
0.041961669921875,
-0.02093505859375,
0.00921630859375,
-0.028594970703125,
-0.020843505859375,
0.010345458984375,
0.107421875,
-0.00860595703125,
-0.0246124267578125,
-0.0008568763732910156,
0.0237579345703125,
-0.046630859375,
-0.00206756591796875,
-0.0297393798828125,
0.0085296630859375,
0.004047393798828125,
-0.037567138671875,
-0.0271453857421875,
-0.0263824462890625,
0.025390625,
-0.08599853515625,
0.041259765625,
-0.039093017578125,
0.01409912109375,
0.005706787109375,
0.02569580078125,
-0.0079498291015625,
0.0103912353515625,
-0.01082611083984375,
0.0118255615234375,
-0.03179931640625,
-0.046417236328125,
-0.015594482421875,
-0.0011997222900390625,
0.04779052734375,
0.0005345344543457031,
-0.00887298583984375,
-0.032379150390625,
0.03076171875,
0.00530242919921875,
0.0142974853515625,
0.0025119781494140625,
-0.007297515869140625,
0.0279693603515625,
0.035369873046875,
0.0045013427734375,
0.00994873046875,
-0.0024318695068359375,
-0.001796722412109375,
-0.03631591796875,
-0.01279449462890625,
-0.005062103271484375,
0.0198974609375,
0.035736083984375,
-0.0238800048828125,
-0.0016908645629882812,
-0.01483917236328125,
0.0047149658203125,
0.04205322265625,
0.00408935546875,
-0.00991058349609375,
-0.0364990234375,
-0.0233917236328125,
0.032501220703125,
-0.0179901123046875,
0.01873779296875,
0.0006732940673828125,
-0.0022907257080078125,
-0.01102447509765625,
-0.027496337890625,
0.0223388671875,
-0.01319122314453125,
0.0212249755859375,
0.0091705322265625,
0.0124664306640625,
-0.01113128662109375,
-0.0178680419921875,
0.037261962890625,
-0.00505828857421875,
0.02496337890625,
0.03466796875,
-0.0299835205078125,
-0.0163421630859375,
-0.05706787109375,
0.042633056640625,
0.0076446533203125,
-0.002841949462890625,
0.0576171875,
0.0220794677734375,
-0.0379638671875,
-0.0295562744140625,
0.01161956787109375,
0.0202178955078125,
-0.0268707275390625,
-0.03759765625,
-0.046173095703125,
0.0295867919921875,
-0.07318115234375,
-0.03082275390625,
-0.0533447265625,
0.01702880859375,
-0.053375244140625,
-0.0169677734375,
-0.003711700439453125,
-0.037139892578125,
-0.04022216796875,
-0.000009953975677490234,
0.03631591796875,
-0.0579833984375,
0.013336181640625,
-0.0138397216796875,
-0.0170440673828125,
0.0885009765625,
0.01258087158203125,
-0.03546142578125,
-0.02313232421875,
-0.035614013671875,
0.052703857421875,
0.001766204833984375,
0.01474761962890625,
0.0016756057739257812,
-0.038848876953125,
-0.0015687942504882812,
0.0279083251953125,
-0.0207061767578125,
-0.0038433074951171875,
-0.0092926025390625,
0.0276336669921875,
-0.01432037353515625,
-0.005474090576171875,
0.0143280029296875,
-0.0033111572265625,
-0.017730712890625,
0.00821685791015625,
0.0096282958984375,
0.0120391845703125,
0.05218505859375,
0.0252532958984375,
0.01238250732421875,
-0.001926422119140625,
-0.0279541015625,
0.01181793212890625,
0.0247039794921875,
-0.022247314453125,
-0.0246734619140625,
0.0196075439453125,
0.02508544921875,
0.004245758056640625,
0.0243377685546875,
-0.0022411346435546875,
0.00487518310546875,
-0.007640838623046875,
0.0115814208984375,
-0.0467529296875,
-0.041015625,
-0.0240631103515625,
-0.0209808349609375,
0.005519866943359375,
-0.029754638671875,
0.00667572021484375,
-0.034820556640625,
-0.02301025390625,
-0.0204010009765625,
0.0180816650390625,
-0.00665283203125,
-0.038421630859375,
-0.023956298828125,
-0.0019502639770507812,
-0.0180511474609375,
-0.0225067138671875,
-0.01491546630859375,
-0.0097198486328125,
-0.019134521484375,
-0.018280029296875,
0.06610107421875,
-0.020111083984375,
0.020782470703125,
-0.02679443359375,
0.00861358642578125,
0.0059051513671875,
0.02801513671875,
0.01369476318359375,
-0.009063720703125,
-0.057281494140625,
0.0240631103515625,
-0.0203399658203125,
0.0028705596923828125,
-0.00778961181640625,
-0.046234130859375,
-0.0499267578125,
-0.029754638671875,
0.014892578125,
0.021759033203125,
0.01303863525390625,
0.00138092041015625,
-0.01247406005859375,
0.0204925537109375,
0.0078582763671875,
0.04315185546875,
-0.09039306640625,
0.07366943359375,
0.0369873046875,
-0.018341064453125,
-0.0275115966796875,
0.042877197265625,
0.053314208984375,
0.01393890380859375,
0.004695892333984375,
-0.0212554931640625,
-0.0191802978515625,
-0.014556884765625,
0.016632080078125,
0.0139617919921875,
0.03826904296875,
-0.013519287109375,
0.036163330078125,
-0.0274505615234375,
0.003124237060546875,
-0.0325927734375,
0.022491455078125,
-0.07867431640625,
-0.0022983551025390625,
-0.027740478515625,
-0.01025390625,
0.0276641845703125,
-0.007656097412109375,
-0.041778564453125,
0.031463623046875,
0.00608062744140625,
0.005458831787109375,
0.0239410400390625,
-0.0172119140625,
0.0186614990234375,
0.002910614013671875,
-0.0136260986328125,
-0.0011739730834960938,
0.0058746337890625,
0.01453399658203125,
-0.013214111328125,
-0.0124053955078125,
-0.0283050537109375,
0.00995635986328125,
0.049468994140625,
0.00371551513671875,
0.00408172607421875,
0.03338623046875,
-0.015625,
-0.005523681640625,
0.12237548828125,
0.07293701171875,
-0.1629638671875,
-0.004970550537109375,
0.0160064697265625,
0.0247802734375,
0.01523590087890625,
0.006107330322265625,
0.00798797607421875,
-0.026214599609375,
0.04827880859375,
-0.038360595703125,
0.002887725830078125,
0.028472900390625,
-0.029022216796875,
0.018524169921875,
0.004833221435546875,
0.0819091796875,
0.019622802734375,
-0.0119781494140625,
-0.00675201416015625,
-0.0130157470703125,
0.04351806640625,
0.024200439453125,
-0.0030040740966796875,
-0.01470184326171875,
-0.057037353515625,
-0.0670166015625,
-0.055877685546875,
-0.0153045654296875,
-0.060455322265625,
0.004375457763671875,
-0.0006985664367675781,
0.052642822265625,
0.0092926025390625,
-0.0016164779663085938,
-0.005924224853515625,
-0.028656005859375,
0.049713134765625,
0.0237884521484375,
-0.0611572265625,
-0.01538848876953125,
0.0236358642578125,
-0.0267333984375,
0.018890380859375,
0.0292510986328125,
-0.044403076171875,
-0.007778167724609375,
-0.0139312744140625,
0.0865478515625,
-0.0007719993591308594,
-0.03802490234375,
0.0090789794921875,
-0.01490020751953125,
-0.00742340087890625,
-0.01157379150390625,
-0.01369476318359375,
-0.0794677734375,
-0.06787109375,
-0.0217437744140625,
-0.08526611328125,
0.021331787109375,
-0.0247802734375,
-0.0667724609375,
0.017791748046875,
-0.00983428955078125,
0.077392578125,
0.01442718505859375,
-0.0238800048828125,
0.016693115234375,
-0.028533935546875,
-0.0186767578125,
0.0238494873046875,
0.0203094482421875,
-0.01352691650390625,
-0.01432037353515625,
0.01513671875,
-0.030914306640625,
-0.004451751708984375,
-0.0244140625,
-0.01568603515625,
-0.0161590576171875,
-0.0015516281127929688,
0.04180908203125,
0.05377197265625,
0.044586181640625,
-0.0086517333984375,
-0.01050567626953125,
0.00949859619140625,
0.0391845703125,
-0.00023174285888671875,
0.039825439453125,
-0.011566162109375,
-0.0272216796875,
0.01055145263671875,
0.01251983642578125,
0.0082855224609375,
0.004795074462890625,
0.0135498046875,
-0.08270263671875,
0.02130126953125,
0.04669189453125,
0.03790283203125,
0.015960693359375,
0.045928955078125,
0.0288543701171875,
-0.0275726318359375,
-0.01267242431640625,
-0.03326416015625,
0.047210693359375,
-0.00439453125,
0.01947021484375,
0.0390625,
0.02349853515625,
0.005596160888671875,
0.01126861572265625,
0.01132965087890625,
0.01067352294921875,
-0.0099029541015625,
0.042633056640625,
0.03765869140625,
0.03631591796875,
-0.021331787109375,
-0.007465362548828125,
0.03668212890625,
0.0567626953125,
-0.026947021484375,
-0.027374267578125,
-0.002910614013671875,
0.010345458984375,
0.0260162353515625,
-0.00771331787109375,
0.036865234375,
-0.0155487060546875,
-0.020263671875,
-0.05029296875,
0.037506103515625,
0.05804443359375,
-0.002201080322265625,
-0.014251708984375,
-0.0325927734375,
-0.0206756591796875,
0.062255859375,
-0.0125579833984375,
0.0100860595703125,
0.0065155029296875,
0.0211944580078125,
-0.007740020751953125,
0.03033447265625,
-0.0109710693359375,
-0.0101318359375,
-0.025421142578125,
-0.01203155517578125,
-0.0007848739624023438,
0.0182342529296875,
-0.0218658447265625,
0.00441741943359375,
0.0277557373046875,
0.0290069580078125,
-0.0029811859130859375,
-0.020965576171875,
0.019989013671875,
0.01067352294921875,
-0.0467529296875,
-0.0186309814453125,
0.047760009765625,
-0.0294647216796875,
0.050567626953125,
-0.0188751220703125,
-0.0018253326416015625,
-0.022918701171875,
-0.0266571044921875,
-0.044219970703125,
0.0194091796875,
0.0224609375,
0.0200653076171875,
0.0102386474609375,
0.004924774169921875,
-0.003147125244140625,
0.002140045166015625,
-0.0173492431640625,
-0.00402069091796875,
0.03778076171875,
-0.047637939453125,
-0.003360748291015625,
-0.005535125732421875,
0.0003879070281982422,
-0.01468658447265625,
0.01464080810546875,
0.0012922286987304688,
0.036285400390625,
0.03509521484375,
-0.055694580078125,
0.0033416748046875,
0.060333251953125,
0.0157470703125,
0.0238800048828125,
0.002716064453125,
-0.0012102127075195312,
-0.032470703125,
0.003162384033203125,
0.0095062255859375,
-0.0017309188842773438,
-0.042022705078125,
0.09375,
-0.039642333984375,
-0.0219573974609375,
-0.037445068359375,
0.01459503173828125,
-0.05859375,
-0.040252685546875,
0.0029125213623046875,
-0.0220184326171875,
-0.012908935546875,
0.022613525390625,
-0.060455322265625,
0.0594482421875,
-0.005367279052734375,
0.0179901123046875,
0.057373046875,
-0.02825927734375,
0.00542449951171875,
0.0006084442138671875,
0.00249481201171875,
-0.0251617431640625,
-0.056640625,
-0.004055023193359375,
0.0304107666015625,
0.0029888153076171875,
0.035736083984375,
-0.0033359527587890625,
0.033721923828125,
-0.030609130859375,
-0.0341796875,
0.006580352783203125,
-0.053070068359375,
-0.004337310791015625,
0.0215911865234375,
0.0108184814453125,
0.03973388671875,
-0.044158935546875,
-0.0205230712890625,
-0.0101776123046875,
0.00879669189453125,
-0.04718017578125,
-0.021453857421875,
0.01654052734375,
0.03753662109375,
0.0191497802734375,
0.047760009765625,
-0.0011701583862304688,
-0.0070953369140625,
0.0242156982421875,
-0.002101898193359375,
-0.006313323974609375,
-0.041473388671875,
-0.016571044921875,
0.0169830322265625,
-0.01470184326171875,
0.0303955078125,
0.007778167724609375,
-0.011932373046875,
-0.060516357421875,
-0.0296173095703125,
0.004962921142578125,
-0.0235443115234375,
-0.00914764404296875,
-0.041717529296875,
-0.004253387451171875,
0.0286712646484375,
-0.04541015625,
0.002536773681640625,
-0.00843048095703125,
-0.005336761474609375,
-0.048126220703125,
-0.0231170654296875,
-0.028533935546875,
0.031402587890625,
-0.016387939453125,
0.0005602836608886719,
0.038177490234375,
0.00502777099609375,
-0.05108642578125,
0.02215576171875,
-0.01444244384765625,
0.060302734375,
-0.0286102294921875,
-0.01580810546875,
0.0244903564453125,
0.00797271728515625,
-0.015167236328125,
-0.115966796875,
-0.0252685546875,
-0.08251953125,
0.04693603515625,
0.04864501953125,
-0.021331787109375,
0.0199737548828125,
-0.018096923828125,
-0.040374755859375,
0.0390625,
0.021697998046875,
-0.04656982421875,
-0.0019407272338867188,
-0.021270751953125,
-0.0175628662109375,
0.0297393798828125,
-0.004268646240234375,
-0.006175994873046875,
-0.005764007568359375,
0.042755126953125,
0.01428985595703125,
-0.00807952880859375,
0.041900634765625,
0.00557708740234375,
0.0231170654296875,
0.03204345703125,
0.038726806640625,
-0.0196685791015625,
0.00948333740234375,
-0.0266876220703125,
0.042572021484375,
0.048126220703125,
-0.006847381591796875,
0.031036376953125,
0.01079559326171875,
-0.039276123046875,
-0.0281219482421875,
-0.0208892822265625,
-0.0126800537109375,
-0.03594970703125,
0.0980224609375,
-0.0186767578125,
0.0203094482421875,
0.005657196044921875,
-0.051300048828125,
-0.01788330078125,
-0.0046234130859375,
0.00496673583984375,
0.00974273681640625,
-0.03851318359375,
0.02838134765625,
-0.0195770263671875,
0.034332275390625,
0.006252288818359375,
-0.034271240234375,
0.0215301513671875,
-0.04510498046875,
0.0043792724609375,
-0.0108489990234375,
0.0266571044921875,
-0.0270843505859375,
0.05206298828125,
-0.05853271484375,
-0.095703125,
0.029449462890625,
0.026519775390625,
-0.06951904296875,
-0.03125,
0.00965118408203125,
-0.0225982666015625,
0.0154266357421875,
0.0217132568359375,
0.00809478759765625,
-0.0132598876953125,
0.0020236968994140625,
-0.02880859375,
-0.0091400146484375,
0.0182342529296875,
0.0139312744140625,
0.02880859375,
-0.0197296142578125,
0.043701171875,
0.01708984375,
-0.03826904296875,
-0.00740814208984375,
-0.0347900390625,
-0.0262603759765625,
0.04119873046875,
0.01483154296875,
-0.03411865234375,
0.039642333984375,
-0.0079193115234375,
0.0139617919921875,
0.005954742431640625,
0.006145477294921875,
-0.007053375244140625,
0.01483917236328125,
-0.0211334228515625,
-0.0184478759765625,
-0.0013322830200195312
] |
2d81d7f7497cec0619e68dd475b8466b3b57a9ec
|
Wordpress Stackexchange
Q: Programmatically create blogs with dummy content on a WPMU site I'm trying to set up a WPMU test environment with 5-6K blogs, lots of posts comments, users etc.
Browsing trough the WP's functions, I picked up wp_insert_post, wp_insert_comment, create_empty_blog(), and wp_insert_user().
So basically I would run a big for loop in which I create random blogs, get their ID, switch to each of them and insert posts with random content.
Is this really this easy as it looks? :)
Or I'm missing something here?
A: I would suggest you take a look at WP Dummy Content.
You can easily extend this plugin or build a script to activate and run it.
As suggested by @kaiser I would really record all the performance data I can to get in insights into this scale of operations.
|
Q: Programmatically create blogs with dummy content on a WPMU site I'm trying to set up a WPMU test environment with 5-6K blogs, lots of posts comments, users etc.
Browsing trough the WP's functions, I picked up wp_insert_post, wp_insert_comment, create_empty_blog(), and wp_insert_user().
So basically I would run a big for loop in which I create random blogs, get their ID, switch to each of them and insert posts with random content.
Is this really this easy as it looks? :)
Or I'm missing something here?
A: I would suggest you take a look at WP Dummy Content.
You can easily extend this plugin or build a script to activate and run it.
As suggested by @kaiser I would really record all the performance data I can to get in insights into this scale of operations.
|
wordpress
|
{
"language": "en",
"length": 135,
"provenance": "stackexchange_00019.jsonl.gz:408482",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14310"
}
|
[
0.03961181640625,
-0.0182952880859375,
0.006885528564453125,
0.01044464111328125,
-0.006500244140625,
-0.039398193359375,
0.055084228515625,
-0.03558349609375,
-0.033935546875,
-0.0022296905517578125,
-0.044891357421875,
0.01800537109375,
-0.025970458984375,
-0.011138916015625,
0.0303955078125,
-0.0445556640625,
0.018096923828125,
0.00489044189453125,
0.03314208984375,
-0.01568603515625,
0.00974273681640625,
-0.0182342529296875,
0.0301513671875,
-0.00333404541015625,
0.03631591796875,
-0.033111572265625,
0.054107666015625,
-0.014007568359375,
0.025848388671875,
-0.0274810791015625,
0.03326416015625,
0.01242828369140625,
-0.001369476318359375,
0.02960205078125,
-0.0121307373046875,
0.04229736328125,
0.03253173828125,
-0.0017881393432617188,
0.01485443115234375,
0.03790283203125,
-0.0032444000244140625,
0.0024566650390625,
0.0360107421875,
0.0210723876953125,
0.021759033203125,
-0.044403076171875,
0.0096893310546875,
-0.07366943359375,
0.00977325439453125,
-0.0165252685546875,
0.0186920166015625,
0.01314544677734375,
0.024749755859375,
-0.01085662841796875,
-0.00791168212890625,
0.0014810562133789062,
-0.02691650390625,
0.018341064453125,
0.038055419921875,
-0.040374755859375,
-0.029266357421875,
-0.0276947021484375,
0.0316162109375,
0.0212554931640625,
0.027587890625,
0.0018024444580078125,
0.0191802978515625,
0.042236328125,
-0.002552032470703125,
0.02044677734375,
0.004291534423828125,
-0.0068817138671875,
-0.007709503173828125,
-0.007244110107421875,
-0.006137847900390625,
0.0076904296875,
0.0010814666748046875,
-0.0146636962890625,
0.0087127685546875,
0.025177001953125,
0.0240631103515625,
0.0255889892578125,
0.0027332305908203125,
-0.05718994140625,
0.03656005859375,
-0.03021240234375,
-0.00420379638671875,
-0.01177978515625,
-0.0263824462890625,
-0.0296783447265625,
-0.01873779296875,
-0.051727294921875,
-0.0506591796875,
0.04559326171875,
-0.002773284912109375,
-0.01367950439453125,
0.01580810546875,
0.055816650390625,
0.0159912109375,
0.01277923583984375,
0.01079559326171875,
-0.040252685546875,
0.0140838623046875,
-0.0238800048828125,
0.0237579345703125,
0.039276123046875,
-0.0438232421875,
-0.065673828125,
0.038116455078125,
0.0168609619140625,
0.006328582763671875,
0.0238037109375,
-0.00853729248046875,
-0.016632080078125,
-0.0094451904296875,
0.01236724853515625,
-0.032745361328125,
0.0229644775390625,
0.0038318634033203125,
0.010101318359375,
-0.01548004150390625,
-0.008819580078125,
0.0134429931640625,
0.019805908203125,
0.0081787109375,
0.0167388916015625,
-0.0014390945434570312,
-0.0290374755859375,
-0.0273895263671875,
-0.01971435546875,
-0.0261077880859375,
0.042633056640625,
0.0625,
0.040435791015625,
0.01383209228515625,
-0.002819061279296875,
0.0164642333984375,
-0.051116943359375,
-0.01529693603515625,
0.0247802734375,
0.0063934326171875,
-0.043731689453125,
-0.0250091552734375,
-0.004886627197265625,
0.048248291015625,
0.0477294921875,
0.0236358642578125,
-0.0172271728515625,
0.0287933349609375,
-0.0048065185546875,
-0.0304412841796875,
-0.0121307373046875,
-0.0116119384765625,
-0.008331298828125,
0.070556640625,
-0.03521728515625,
-0.00324249267578125,
-0.0153656005859375,
0.06439208984375,
0.0271148681640625,
0.0013608932495117188,
0.0171661376953125,
0.029022216796875,
-0.01416778564453125,
-0.0162506103515625,
-0.0184173583984375,
-0.01239776611328125,
-0.003307342529296875,
0.0391845703125,
0.017425537109375,
-0.023162841796875,
-0.041046142578125,
0.004985809326171875,
0.031280517578125,
0.0064697265625,
0.057708740234375,
-0.0242919921875,
0.0159912109375,
0.03143310546875,
0.0168304443359375,
-0.01026153564453125,
-0.0260467529296875,
0.06341552734375,
-0.0068206787109375,
-0.05438232421875,
-0.027557373046875,
0.01482391357421875,
0.03704833984375,
0.06640625,
0.023406982421875,
0.031646728515625,
-0.04632568359375,
-0.01226806640625,
-0.028411865234375,
0.019195556640625,
-0.0004963874816894531,
-0.054107666015625,
-0.0158538818359375,
-0.006988525390625,
0.01036834716796875,
0.0068206787109375,
0.00640106201171875,
-0.00458526611328125,
0.0251922607421875,
-0.01515960693359375,
0.00461578369140625,
-0.007266998291015625,
0.0018320083618164062,
-0.0008463859558105469,
0.00646209716796875,
0.01593017578125,
-0.0267486572265625,
0.00809478759765625,
-0.029052734375,
-0.03887939453125,
-0.037139892578125,
-0.0211639404296875,
0.01708984375,
0.01519775390625,
0.00690460205078125,
-0.01354217529296875,
0.011627197265625,
-0.0053253173828125,
-0.01190185546875,
0.07098388671875,
-0.05108642578125,
0.0007724761962890625,
-0.0447998046875,
0.039825439453125,
-0.002899169921875,
-0.0281524658203125,
0.030914306640625,
0.045806884765625,
-0.0012979507446289062,
-0.0268096923828125,
0.026702880859375,
-0.0015001296997070312,
-0.03759765625,
-0.02459716796875,
0.04852294921875,
0.0478515625,
0.049713134765625,
0.0275421142578125,
0.001956939697265625,
0.076904296875,
0.00051116943359375,
0.050750732421875,
-0.035308837890625,
0.041748046875,
0.10711669921875,
-0.0258026123046875,
0.0101165771484375,
-0.01519012451171875,
-0.07427978515625,
0.01387786865234375,
0.035064697265625,
-0.0260772705078125,
0.0321044921875,
0.01102447509765625,
-0.0202484130859375,
0.0011014938354492188,
-0.01605224609375,
0.005523681640625,
-0.0307464599609375,
0.06365966796875,
0.003490447998046875,
0.039886474609375,
0.0202178955078125,
-0.02166748046875,
0.0278778076171875,
-0.012847900390625,
-0.0518798828125,
0.00571441650390625,
-0.004638671875,
0.00482177734375,
-0.0214691162109375,
-0.027252197265625,
-0.005680084228515625,
0.042816162109375,
-0.01395416259765625,
-0.0160675048828125,
0.043426513671875,
-0.0296630859375,
-0.0207366943359375,
0.00859832763671875,
-0.0260467529296875,
-0.042999267578125,
-0.038421630859375,
-0.01432037353515625,
-0.02960205078125,
0.0011053085327148438,
0.0252685546875,
-0.0231170654296875,
0.0340576171875,
0.01995849609375,
-0.01739501953125,
0.03173828125,
-0.12109375,
0.0845947265625,
-0.066162109375,
0.045501708984375,
0.09259033203125,
-0.0022487640380859375,
0.00726318359375,
-0.0011997222900390625,
0.01171875,
-0.02630615234375,
0.0308837890625,
-0.0017194747924804688,
-0.03729248046875,
-0.020965576171875,
0.006587982177734375,
0.0246124267578125,
0.049468994140625,
0.01064300537109375,
-0.0214385986328125,
0.01023101806640625,
0.036651611328125,
0.0005941390991210938,
-0.033233642578125,
0.024139404296875,
-0.042205810546875,
0.006885528564453125,
-0.0288848876953125,
-0.01812744140625,
-0.029052734375,
-0.0192108154296875,
-0.005634307861328125,
-0.0159149169921875,
-0.03070068359375,
-0.0645751953125,
-0.06622314453125,
-0.05657958984375,
-0.0009336471557617188,
-0.01287078857421875,
0.002471923828125,
0.009307861328125,
0.0282135009765625,
-0.0092620849609375,
-0.040802001953125,
-0.00366973876953125,
0.0204315185546875,
-0.0039005279541015625,
-0.0113067626953125,
0.0027408599853515625,
0.00296783447265625,
-0.005157470703125,
0.0057220458984375,
0.01015472412109375,
0.03265380859375,
-0.040008544921875,
0.010528564453125,
-0.014312744140625,
-0.0221710205078125,
0.005718231201171875,
-0.0277557373046875,
0.0054473876953125,
0.0068359375,
-0.01450347900390625,
-0.042266845703125,
0.0309906005859375,
0.0177154541015625,
-0.0133056640625,
-0.03515625,
-0.0164031982421875,
-0.015838623046875,
0.01904296875,
-0.034759521484375,
-0.00756072998046875,
0.0066680908203125,
0.023651123046875,
0.006557464599609375,
-0.033966064453125,
-0.01367950439453125,
-0.0298309326171875,
-0.0018720626831054688,
0.00873565673828125,
-0.03594970703125,
-0.0183868408203125,
-0.0193634033203125,
-0.012847900390625,
0.0019683837890625,
-0.018280029296875,
0.0001932382583618164,
0.0009350776672363281,
0.019073486328125,
-0.004749298095703125,
0.04595947265625,
-0.0158538818359375,
-0.0172119140625,
-0.0015783309936523438,
0.05474853515625,
-0.0709228515625,
-0.00913238525390625,
0.0263214111328125,
0.01479339599609375,
-0.054656982421875,
-0.0139312744140625,
-0.08917236328125,
-0.005840301513671875,
-0.023773193359375,
0.01233673095703125,
-0.00775909423828125,
-0.0064849853515625,
0.0005893707275390625,
-0.052703857421875,
0.00848388671875,
-0.037841796875,
0.01470184326171875,
0.0009555816650390625,
0.042816162109375,
-0.03778076171875,
0.0252838134765625,
-0.0284576416015625,
0.00737762451171875,
-0.0357666015625,
-0.0631103515625,
-0.0106201171875,
-0.029998779296875,
0.041351318359375,
0.02850341796875,
-0.0201568603515625,
-0.0087738037109375,
0.029510498046875,
-0.0207977294921875,
0.0347900390625,
0.0229034423828125,
0.0428466796875,
0.034942626953125,
-0.04425048828125,
0.000701904296875,
-0.027862548828125,
-0.041656494140625,
-0.047943115234375,
0.0238189697265625,
0.058868408203125,
-0.0035953521728515625,
0.024932861328125,
-0.015045166015625,
0.0287628173828125,
0.0247650146484375,
-0.027435302734375,
-0.0109100341796875,
0.02679443359375,
-0.0295867919921875,
0.019989013671875,
-0.03497314453125,
0.0245208740234375,
-0.0022983551025390625,
-0.0292816162109375,
0.012725830078125,
0.004024505615234375,
0.072021484375,
0.0195159912109375,
0.0107574462890625,
0.0101470947265625,
0.002971649169921875,
-0.0006871223449707031,
0.0106353759765625,
0.033172607421875,
-0.01340484619140625,
0.012725830078125,
0.00624847412109375,
-0.0289459228515625,
0.0281219482421875,
-0.0083465576171875,
0.0220947265625,
-0.00733184814453125,
-0.02569580078125,
0.0416259765625,
0.023681640625,
-0.04071044921875,
0.01568603515625,
-0.0212249755859375,
-0.0177154541015625,
-0.01251983642578125,
0.05401611328125,
-0.0069427490234375,
0.01238250732421875,
-0.0635986328125,
-0.0286407470703125,
0.01184844970703125,
-0.06494140625,
-0.020721435546875,
0.006999969482421875,
-0.01556396484375,
-0.0221710205078125,
-0.03887939453125,
-0.01537322998046875,
0.0968017578125,
0.02069091796875,
0.046173095703125,
0.02557373046875,
0.054718017578125,
-0.00966644287109375,
0.020050048828125,
-0.01140594482421875,
0.04931640625,
0.004669189453125,
-0.0294952392578125,
-0.01605224609375,
0.010223388671875,
0.058258056640625,
0.01113128662109375,
-0.024566650390625,
0.0316162109375,
0.0004305839538574219,
0.0064849853515625,
0.002471923828125,
-0.057159423828125,
-0.005458831787109375,
-0.041351318359375,
-0.00548553466796875,
-0.005931854248046875,
-0.0171966552734375,
0.0306854248046875,
0.0022983551025390625,
-0.027374267578125,
0.025787353515625,
-0.0183868408203125,
0.0723876953125,
0.057464599609375,
0.0219268798828125,
0.01715087890625,
-0.01303863525390625,
-0.0300445556640625,
-0.0017118453979492188,
-0.058258056640625,
-0.045989990234375,
-0.007686614990234375,
0.033599853515625,
0.06298828125,
-0.006076812744140625,
-0.03021240234375,
0.0026302337646484375,
-0.032012939453125,
0.0132598876953125,
0.009796142578125,
-0.043731689453125,
-0.0040130615234375,
-0.028839111328125,
-0.0286102294921875,
0.03204345703125,
-0.01160430908203125,
0.0277099609375,
-0.04278564453125,
0.004909515380859375,
-0.01338958740234375,
0.03680419921875,
0.0028247833251953125,
-0.0428466796875,
-0.040435791015625,
-0.029815673828125,
-0.035430908203125,
-0.0006356239318847656,
-0.014007568359375,
0.0215911865234375,
-0.0209197998046875,
-0.01479339599609375,
0.0390625,
-0.01287841796875,
-0.0044097900390625,
-0.0318603515625,
0.0193634033203125,
-0.0205078125,
0.0126800537109375,
0.01678466796875,
-0.0191497802734375,
-0.0154876708984375,
-0.0117034912109375,
-0.023193359375,
-0.0194091796875,
-0.0229034423828125,
-0.0282135009765625,
-0.043487548828125,
0.00888824462890625,
0.015625,
0.0101165771484375,
-0.022918701171875,
-0.0548095703125,
0.004878997802734375,
-0.009246826171875,
0.0125274658203125,
-0.00702667236328125,
-0.00257110595703125,
0.0220184326171875,
0.0036983489990234375,
0.027862548828125,
0.02239990234375,
0.020355224609375,
0.001708984375,
-0.0460205078125,
0.01122283935546875,
-0.0186920166015625,
-0.030670166015625,
-0.033172607421875,
0.0076446533203125,
0.02679443359375,
0.066162109375,
-0.0164947509765625,
0.01165008544921875,
0.00919342041015625,
0.00872802734375,
-0.002063751220703125,
0.003734588623046875,
0.00980377197265625,
-0.004383087158203125,
0.03765869140625,
-0.011138916015625,
0.016632080078125,
-0.0018911361694335938,
0.004810333251953125,
-0.0181427001953125,
-0.0009984970092773438,
-0.01073455810546875,
0.005115509033203125,
-0.0258941650390625,
0.05926513671875,
0.06494140625,
-0.003353118896484375,
0.05401611328125,
0.0147857666015625,
0.015716552734375,
0.0277862548828125,
0.0205535888671875,
-0.041351318359375,
-0.037628173828125,
0.0721435546875,
0.031982421875,
-0.033721923828125,
0.06048583984375,
-0.032073974609375,
0.017486572265625,
0.0321044921875,
0.045074462890625,
-0.0650634765625,
0.005512237548828125,
-0.0097198486328125,
-0.01995849609375,
0.04254150390625,
0.004425048828125,
0.01500701904296875,
-0.0157470703125,
0.031097412109375,
0.029937744140625,
-0.0088043212890625,
0.0126190185546875,
-0.01165771484375,
-0.0270843505859375,
0.0009551048278808594,
-0.00902557373046875,
0.0287017822265625,
-0.01247406005859375,
0.072998046875,
0.00685882568359375,
0.06939697265625,
-0.04638671875,
0.0008449554443359375,
0.00652313232421875,
0.005573272705078125,
-0.036163330078125,
0.04302978515625,
-0.026123046875,
0.031585693359375,
-0.01361846923828125,
0.03173828125,
0.0187530517578125,
0.04730224609375,
0.006561279296875,
-0.0083160400390625,
0.02398681640625,
-0.0093536376953125,
-0.04986572265625,
0.005062103271484375,
0.03204345703125,
0.00945281982421875,
0.00243377685546875,
0.041900634765625,
-0.02972412109375,
-0.040374755859375,
-0.004924774169921875,
-0.020721435546875,
0.08135986328125,
-0.03753662109375,
-0.006591796875,
0.0650634765625,
-0.0240936279296875,
-0.04058837890625,
-0.0418701171875,
0.051666259765625,
-0.057525634765625,
-0.01532745361328125,
0.0010013580322265625,
0.005146026611328125,
-0.024871826171875,
-0.03497314453125,
-0.05865478515625,
0.112548828125,
-0.0218048095703125,
0.026763916015625,
-0.002777099609375,
0.045196533203125,
-0.006877899169921875,
0.0226898193359375,
-0.050201416015625,
0.06610107421875,
-0.0234832763671875,
0.043365478515625,
-0.0889892578125,
-0.006870269775390625,
-0.00791168212890625,
0.0179290771484375,
-0.0018787384033203125,
0.0002779960632324219,
-0.01313018798828125,
-0.0142822265625,
0.01039886474609375,
-0.0014791488647460938,
-0.01280975341796875,
0.029205322265625,
-0.0195159912109375,
0.0135040283203125,
0.0095672607421875,
-0.037994384765625,
0.01739501953125,
0.006160736083984375,
-0.0281982421875,
0.00392913818359375,
0.007404327392578125,
0.00402069091796875,
0.01239013671875,
0.0208892822265625,
-0.004070281982421875,
-0.00455474853515625,
0.011505126953125,
-0.00925445556640625,
0.01092529296875,
0.0254669189453125,
0.031829833984375,
-0.043426513671875,
0.010162353515625,
-0.034515380859375,
0.061431884765625,
0.0171356201171875,
0.040283203125,
0.04736328125,
0.0282440185546875,
0.043914794921875,
0.008087158203125,
0.029083251953125,
0.0016384124755859375,
-0.022216796875,
0.04681396484375,
0.005603790283203125,
0.0182647705078125,
-0.044708251953125,
0.0015697479248046875,
0.03369140625,
0.052032470703125,
-0.028350830078125,
-0.016937255859375,
0.004085540771484375,
0.036834716796875,
0.021392822265625,
-0.0183563232421875,
0.036773681640625,
-0.003017425537109375,
0.039337158203125,
-0.00701141357421875,
-0.0126190185546875,
-0.0213470458984375,
-0.0226898193359375,
-0.0008358955383300781,
0.018524169921875,
0.055267333984375,
0.018951416015625,
0.0037212371826171875,
-0.021759033203125,
0.018707275390625,
0.03533935546875,
-0.005458831787109375,
0.042022705078125,
-0.0321044921875,
-0.01605224609375,
0.0014543533325195312,
0.0159912109375,
0.0168609619140625,
-0.0229644775390625,
0.006732940673828125,
-0.0255279541015625,
0.007190704345703125,
0.01493072509765625,
-0.0286712646484375,
0.0183258056640625,
0.04425048828125,
0.034210205078125,
-0.04974365234375,
-0.038604736328125,
-0.0001493692398071289,
-0.036651611328125,
-0.0187225341796875,
0.002582550048828125,
-0.0382080078125,
0.0001074075698852539,
-0.026824951171875,
0.00576019287109375,
0.0179290771484375,
0.005283355712890625,
-0.0277862548828125,
0.021240234375,
-0.0023651123046875,
-0.0195159912109375,
0.06475830078125,
-0.01204681396484375,
0.0293426513671875,
-0.01277923583984375,
-0.126953125,
-0.0023593902587890625,
-0.050811767578125,
-0.038116455078125,
0.028106689453125,
0.0189361572265625,
-0.03399658203125,
0.0548095703125,
-0.0029544830322265625,
0.0119781494140625,
0.0150909423828125,
-0.0204620361328125,
0.02801513671875,
0.013458251953125,
0.0187835693359375,
0.0115966796875,
-0.11871337890625,
-0.057708740234375,
-0.059295654296875,
0.059967041015625,
-0.0240020751953125,
0.145751953125,
-0.04461669921875,
0.0175933837890625,
-0.016845703125,
-0.035247802734375,
0.032257080078125,
0.005031585693359375,
-0.040252685546875,
0.035797119140625,
0.017791748046875,
-0.01373291015625,
-0.005908966064453125,
0.009918212890625,
0.016387939453125,
-0.0008716583251953125,
0.01134490966796875,
-0.055908203125,
0.02984619140625,
0.0251617431640625,
0.034423828125,
-0.029144287109375,
-0.00954437255859375,
-0.0171356201171875,
-0.01690673828125,
0.03106689453125,
-0.0030059814453125,
-0.0260467529296875,
0.01209259033203125,
0.01436614990234375,
-0.05914306640625,
0.0038776397705078125,
-0.034271240234375,
0.0021305084228515625,
0.0240325927734375,
0.07781982421875,
0.00036263465881347656,
0.0291290283203125,
-0.0192718505859375,
0.0013837814331054688,
0.0101776123046875,
0.00765228271484375,
0.0208892822265625,
-0.048004150390625,
0.040130615234375,
0.0283660888671875,
0.0504150390625,
-0.030853271484375,
0.01123046875,
0.03472900390625,
0.0036106109619140625,
0.020843505859375,
0.0098876953125,
-0.0279388427734375,
-0.0240631103515625,
0.00850677490234375,
0.009246826171875,
-0.001377105712890625,
-0.019500732421875,
-0.043060302734375,
-0.033233642578125,
-0.00806427001953125,
-0.009307861328125,
-0.01024627685546875,
-0.004489898681640625,
0.021392822265625,
-0.0136260986328125,
-0.03973388671875,
0.0482177734375,
-0.007724761962890625,
0.027313232421875,
-0.05682373046875,
-0.043731689453125,
-0.01413726806640625,
0.035675048828125,
-0.0435791015625,
0.03497314453125,
0.06903076171875,
-0.0367431640625,
-0.052032470703125,
0.03631591796875,
0.032989501953125,
0.07098388671875,
-0.01512908935546875,
0.0023975372314453125,
0.025543212890625,
0.0197906494140625,
-0.045013427734375,
-0.08160400390625,
0.0012292861938476562,
-0.03704833984375,
0.01010894775390625,
0.003940582275390625,
-0.0117950439453125,
0.0194549560546875,
-0.04510498046875,
-0.09716796875,
0.006305694580078125,
-0.004680633544921875,
-0.0557861328125,
-0.05194091796875,
0.046173095703125,
-0.002071380615234375,
-0.01293182373046875,
-0.0222320556640625,
0.024932861328125,
0.02508544921875,
0.0149078369140625,
-0.03326416015625,
0.0202789306640625,
0.0288238525390625,
-0.049560546875,
0.018768310546875,
-0.01806640625,
0.0153350830078125,
-0.0321044921875,
0.016143798828125,
-0.028961181640625,
0.0545654296875,
0.053009033203125,
-0.0102081298828125,
0.0035572052001953125,
0.01299285888671875,
-0.038543701171875,
-0.042816162109375,
-0.0286712646484375,
-0.009185791015625,
0.0304718017578125,
0.091064453125,
0.07379150390625,
0.03240966796875,
-0.0853271484375,
-0.0022182464599609375,
0.0011463165283203125,
-0.0230865478515625,
-0.005191802978515625,
0.006931304931640625,
-0.04388427734375,
0.00402069091796875,
-0.00923919677734375,
0.0005054473876953125,
-0.01367950439453125,
-0.02447509765625,
-0.0197601318359375,
-0.01149749755859375,
-0.0020351409912109375,
0.002826690673828125,
0.01483917236328125,
-0.0277557373046875,
0.034393310546875,
-0.018096923828125,
-0.006183624267578125,
-0.019500732421875,
0.039215087890625,
-0.005157470703125,
-0.023468017578125,
-0.019012451171875,
-0.02545166015625,
-0.0203399658203125,
0.042694091796875,
-0.0166168212890625,
0.01270294189453125,
-0.04461669921875,
0.0009679794311523438,
0.00557708740234375,
0.0036602020263671875,
-0.0083770751953125,
0.005146026611328125,
0.030120849609375,
0.006977081298828125,
-0.01065826416015625,
-0.01361083984375,
-0.01059722900390625,
-0.0297088623046875,
-0.0289459228515625,
0.03546142578125,
-0.0026378631591796875,
-0.024322509765625,
0.031524658203125,
-0.04443359375,
-0.016998291015625,
-0.004058837890625,
-0.03936767578125,
-0.05731201171875,
0.0148468017578125,
-0.0237579345703125,
-0.0013427734375,
0.0125885009765625
] |
bd391635e52ef67bd2efd50610a5068262dfd847
|
Wordpress Stackexchange
Q: Get terms by taxonomy AND post_type I have 2 custom post types 'bookmarks' and 'snippets' and a shared taxonomy 'tag'. I can generate a list of all terms in the taxonomy with get_terms(), but I can't figure out how to limit the list to the post type. What I'm basically looking for is something like this:
get_terms(array('taxonomy' => 'tag', 'post_type' => 'snippet'));
Is there a way to achieve this? Ideas are greatly appreciated!!
Oh, I'm on WP 3.1.1
A: I was unable to make the get_terms arguments to work with Gavin's version of the code above, but finally did by changing
$terms2 = get_terms( $taxonomy );
to
$terms2 = get_terms( $taxonomy, $args );
as it was in the original function from Bainternet.
|
Q: Get terms by taxonomy AND post_type I have 2 custom post types 'bookmarks' and 'snippets' and a shared taxonomy 'tag'. I can generate a list of all terms in the taxonomy with get_terms(), but I can't figure out how to limit the list to the post type. What I'm basically looking for is something like this:
get_terms(array('taxonomy' => 'tag', 'post_type' => 'snippet'));
Is there a way to achieve this? Ideas are greatly appreciated!!
Oh, I'm on WP 3.1.1
A: I was unable to make the get_terms arguments to work with Gavin's version of the code above, but finally did by changing
$terms2 = get_terms( $taxonomy );
to
$terms2 = get_terms( $taxonomy, $args );
as it was in the original function from Bainternet.
A: So it just happens that I needed something like that for a project I'm working on. I simply wrote a query to select all posts of a custom type, then I check what are the actual terms of my taxonomy they are using.
Then I got all terms of that taxonomy using get_terms() and then I only used those that were in both of the lists, wrapped it up in a function and I was done.
But then I needed more then just the ID's: I needed the names so I added a new argument named $fields so I could tell the function what to return. Then I figured that get_terms accepts many arguments and my function was limited to simply terms that are being used by a post type so I added one more if statement and there you go:
The Function:
/* get terms limited to post type
@ $taxonomies - (string|array) (required) The taxonomies to retrieve terms from.
@ $args - (string|array) all Possible Arguments of get_terms http://codex.wordpress.org/Function_Reference/get_terms
@ $post_type - (string|array) of post types to limit the terms to
@ $fields - (string) What to return (default all) accepts ID,name,all,get_terms.
if you want to use get_terms arguments then $fields must be set to 'get_terms'
*/
function get_terms_by_post_type($taxonomies,$args,$post_type,$fields = 'all'){
$args = array(
'post_type' => (array)$post_type,
'posts_per_page' => -1
);
$the_query = new WP_Query( $args );
$terms = array();
while ($the_query->have_posts()){
$the_query->the_post();
$curent_terms = wp_get_object_terms( $post->ID, $taxonomy);
foreach ($curent_terms as $t){
//avoid duplicates
if (!in_array($t,$terms)){
$terms[] = $c;
}
}
}
wp_reset_query();
//return array of term objects
if ($fields == "all")
return $terms;
//return array of term ID's
if ($fields == "ID"){
foreach ($terms as $t){
$re[] = $t->term_id;
}
return $re;
}
//return array of term names
if ($fields == "name"){
foreach ($terms as $t){
$re[] = $t->name;
}
return $re;
}
// get terms with get_terms arguments
if ($fields == "get_terms"){
$terms2 = get_terms( $taxonomies, $args );
foreach ($terms as $t){
if (in_array($t,$terms2)){
$re[] = $t;
}
}
return $re;
}
}
Usage:
If you only need a list of term id's then:
$terms = get_terms_by_post_type('tag','','snippet','ID');
If you only need a list of term names then:
$terms = get_terms_by_post_type('tag','','snippet','name');
If you only need a list of term objects then:
$terms = get_terms_by_post_type('tag','','snippet');
And if you need to use extra arguments of get_terms like: orderby, order, hierarchical ...
$args = array('orderby' => 'count', 'order' => 'DESC', 'hide_empty' => 1);
$terms = get_terms_by_post_type('tag',$args,'snippet','get_terms');
Enjoy!
Update:
To fix the term count to specific post type change:
foreach ($current_terms as $t){
//avoid duplicates
if (!in_array($t,$terms)){
$terms[] = $t;
}
}
to:
foreach ($current_terms as $t){
//avoid duplicates
if (!in_array($t,$terms)){
$t->count = 1;
$terms[] = $t;
}else{
$key = array_search($t, $terms);
$terms[$key]->count = $terms[$key]->count + 1;
}
}
A: Here is another way to do something similar, with one SQL query:
static public function get_terms_by_post_type( $taxonomies, $post_types ) {
global $wpdb;
$query = $wpdb->prepare(
"SELECT t.*, COUNT(*) from $wpdb->terms AS t
INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id
INNER JOIN $wpdb->term_relationships AS r ON r.term_taxonomy_id = tt.term_taxonomy_id
INNER JOIN $wpdb->posts AS p ON p.ID = r.object_id
WHERE p.post_type IN('%s') AND tt.taxonomy IN('%s')
GROUP BY t.term_id",
join( "', '", $post_types ),
join( "', '", $taxonomies )
);
$results = $wpdb->get_results( $query );
return $results;
}
A: Great question and solid answers.
I really liked the approach by @jessica using the terms_clauses filter, because it extends the get_terms function in a very reasonable way.
My code is a continuation of her idea, with some sql from @braydon to reduce duplicates. It also allows for an array of post_types:
/**
* my_terms_clauses
*
* filter the terms clauses
*
* @param $clauses array
* @param $taxonomy string
* @param $args array
* @return array
**/
function my_terms_clauses($clauses, $taxonomy, $args)
{
global $wpdb;
if ($args['post_types'])
{
$post_types = implode("','", array_map('esc_sql', (array) $args['post_types']));
// allow for arrays
if ( is_array($args['post_types']) ) {
$post_types = implode( "','", $args['post_types'] );
}
$clauses['join'] .= " INNER JOIN $wpdb->term_relationships AS r ON r.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN $wpdb->posts AS p ON p.ID = r.object_id";
$clauses['where'] .= " AND p.post_type IN ('". $post_types. "') GROUP BY t.term_id";
}
return $clauses;
}
add_filter('terms_clauses', 'my_terms_clauses', 99999, 3);
Because get_terms doesn't have a clause for GROUPY BY, I had to add it to the end of the WHERE clause. Notice that I have the filter priority set very-high, in hopes it will always go last.
A: I wrote a function that allows you to pass post_type in the $args array to the get_terms() function:
HT to @braydon for writing the SQL.
/**
* terms_clauses
*
* filter the terms clauses
*
* @param $clauses array
* @param $taxonomy string
* @param $args array
* @return array
**/
function terms_clauses($clauses, $taxonomy, $args)
{
global $wpdb;
if ($args['post_type'])
{
$clauses['join'] .= " INNER JOIN $wpdb->term_relationships AS r ON r.term_taxonomy_id = tt.term_taxonomy_id INNER JOIN $wpdb->posts AS p ON p.ID = r.object_id";
$clauses['where'] .= " AND p.post_type='{$args['post_type']}'";
}
return $clauses;
}
add_filter('terms_clauses', 'terms_clauses', 10, 3);
A: @Bainternet: Thanks! I had to alter the function slightly because it wasn't working (some typos). The only problem now is that the term count is off. The count isn't taking the post type into consideration so I don't think you can use get_terms() in this.
function get_terms_by_post_type($post_type,$taxonomy,$fields='all',$args){
$q_args = array(
'post_type' => (array)$post_type,
'posts_per_page' => -1
);
$the_query = new WP_Query( $q_args );
$terms = array();
while ($the_query->have_posts()) { $the_query->the_post();
global $post;
$current_terms = get_the_terms( $post->ID, $taxonomy);
foreach ($current_terms as $t){
//avoid duplicates
if (!in_array($t,$terms)){
$t->count = 1;
$terms[] = $t;
}else{
$key = array_search($t, $terms);
$terms[$key]->count = $terms[$key]->count + 1;
}
}
}
wp_reset_query();
//return array of term objects
if ($fields == "all")
return $terms;
//return array of term ID's
if ($fields == "ID"){
foreach ($terms as $t){
$re[] = $t->term_id;
}
return $re;
}
//return array of term names
if ($fields == "name"){
foreach ($terms as $t){
$re[] = $t->name;
}
return $re;
}
// get terms with get_terms arguments
if ($fields == "get_terms"){
$terms2 = get_terms( $taxonomy, $args );
foreach ($terms as $t){
if (in_array($t,$terms2)){
$re[] = $t;
}
}
return $re;
}
}
EDIT: Added the fix(es). But somehow it's still not working for me. The count still shows the incorrect value.
A: Avoid Duplicates:
//avoid duplicates
$mivalor=$t->term_id;
$arr=array_filter($terms, function ($item) use ($mivalor) {return isset($item->term_id) && $item->term_id == $mivalor;});
if (empty($arr)){
$t->count=1;
$terms[] = $t;
}else{
$key = array_search($t, $terms);
$terms[$key]->count = $terms[$key]->count + 1;
}
|
wordpress
|
{
"language": "en",
"length": 1195,
"provenance": "stackexchange_00019.jsonl.gz:408485",
"question_score": "18",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14331"
}
|
[
0.04254150390625,
0.00771331787109375,
-0.0084686279296875,
0.00890350341796875,
-0.0039520263671875,
-0.029022216796875,
0.04132080078125,
-0.0267486572265625,
-0.032135009765625,
-0.00342559814453125,
-0.044189453125,
-0.005199432373046875,
-0.050872802734375,
-0.0274200439453125,
0.005466461181640625,
-0.05804443359375,
0.0506591796875,
-0.0222320556640625,
0.038818359375,
-0.01506805419921875,
0.0161590576171875,
0.0116729736328125,
0.04656982421875,
0.057373046875,
0.036712646484375,
-0.01006317138671875,
0.0304718017578125,
-0.042816162109375,
0.034881591796875,
-0.00911712646484375,
0.022979736328125,
-0.0126190185546875,
0.01047515869140625,
0.016082763671875,
0.007568359375,
0.0061798095703125,
-0.01044464111328125,
0.00890350341796875,
0.0180816650390625,
0.0280914306640625,
0.021209716796875,
-0.0030422210693359375,
-0.00975799560546875,
0.0110931396484375,
-0.01476287841796875,
-0.03826904296875,
0.0144500732421875,
-0.04315185546875,
-0.007354736328125,
-0.05010986328125,
0.041259765625,
-0.0240936279296875,
0.059356689453125,
-0.0330810546875,
-0.02606201171875,
0.015167236328125,
0.02117919921875,
-0.03265380859375,
0.037750244140625,
-0.059600830078125,
-0.04327392578125,
-0.0309295654296875,
0.05084228515625,
0.008758544921875,
0.003772735595703125,
0.0113067626953125,
0.007480621337890625,
-0.0014314651489257812,
-0.019073486328125,
-0.0079498291015625,
0.0307464599609375,
-0.0328369140625,
0.020050048828125,
0.0037326812744140625,
0.012786865234375,
-0.09417724609375,
0.02191162109375,
-0.049560546875,
-0.00754547119140625,
0.037017822265625,
0.00907135009765625,
-0.039398193359375,
-0.041168212890625,
0.03875732421875,
-0.0289154052734375,
0.0390625,
-0.0110626220703125,
-0.0110931396484375,
0.01006317138671875,
-0.03692626953125,
-0.00856781005859375,
0.0005483627319335938,
-0.03692626953125,
0.02105712890625,
0.01922607421875,
-0.04595947265625,
0.0301666259765625,
0.048126220703125,
-0.01505279541015625,
0.00458526611328125,
0.0031585693359375,
-0.047332763671875,
0.041748046875,
-0.0599365234375,
0.032012939453125,
0.023834228515625,
-0.038238525390625,
0.02764892578125,
0.07672119140625,
0.037078857421875,
0.0136566162109375,
0.00420379638671875,
0.0031757354736328125,
-0.007770538330078125,
-0.00475311279296875,
-0.0142974853515625,
-0.039581298828125,
0.0224456787109375,
-0.00438690185546875,
-0.0143890380859375,
0.011444091796875,
0.017822265625,
0.036865234375,
0.00942230224609375,
0.0022525787353515625,
0.0235443115234375,
-0.0195465087890625,
-0.050048828125,
0.00054931640625,
0.051513671875,
-0.036590576171875,
0.00824737548828125,
0.0181427001953125,
-0.01548004150390625,
-0.0130767822265625,
-0.02734375,
-0.010711669921875,
-0.04132080078125,
-0.0093841552734375,
-0.00044083595275878906,
-0.0016832351684570312,
0.00011801719665527344,
0.046234130859375,
-0.0113677978515625,
0.019439697265625,
-0.01096343994140625,
0.017120361328125,
0.0265350341796875,
-0.00015282630920410156,
0.006008148193359375,
0.01403045654296875,
0.003391265869140625,
0.057861328125,
0.01456451416015625,
-0.07684326171875,
-0.01264190673828125,
0.02313232421875,
-0.037750244140625,
-0.050018310546875,
-0.0867919921875,
0.006561279296875,
-0.0250396728515625,
-0.0006208419799804688,
0.0019817352294921875,
-0.0212249755859375,
0.04766845703125,
-0.01360321044921875,
0.004657745361328125,
0.0171966552734375,
-0.0220947265625,
0.03546142578125,
-0.010345458984375,
0.006866455078125,
0.0186614990234375,
0.01666259765625,
0.0163726806640625,
-0.01690673828125,
-0.0175323486328125,
0.04541015625,
0.01340484619140625,
-0.0211334228515625,
-0.0257720947265625,
0.039154052734375,
-0.016754150390625,
-0.04443359375,
0.0131988525390625,
0.0130462646484375,
0.0283966064453125,
0.019317626953125,
0.005115509033203125,
0.051422119140625,
0.01161956787109375,
-0.059234619140625,
0.029693603515625,
-0.0013570785522460938,
-0.00150299072265625,
-0.0560302734375,
0.00047516822814941406,
-0.02789306640625,
-0.0007257461547851562,
0.004222869873046875,
-0.0151519775390625,
-0.0011529922485351562,
0.011566162109375,
-0.048004150390625,
0.002910614013671875,
-0.0229949951171875,
0.0182952880859375,
0.011749267578125,
0.02862548828125,
0.0030269622802734375,
-0.00917816162109375,
-0.029144287109375,
0.0090484619140625,
-0.0015163421630859375,
0.020416259765625,
-0.0257110595703125,
0.006900787353515625,
0.0013971328735351562,
-0.012054443359375,
0.01503753662109375,
-0.036102294921875,
0.017364501953125,
0.04559326171875,
0.02349853515625,
0.018463134765625,
-0.0213470458984375,
0.011199951171875,
0.005092620849609375,
0.0723876953125,
-0.0628662109375,
-0.032684326171875,
0.06256103515625,
0.052490234375,
0.01551055908203125,
-0.004329681396484375,
0.056396484375,
-0.0660400390625,
0.0133056640625,
0.037139892578125,
0.02642822265625,
0.02899169921875,
-0.013763427734375,
-0.0180816650390625,
0.059356689453125,
-0.0190277099609375,
0.01183319091796875,
-0.031646728515625,
0.02325439453125,
0.044036865234375,
0.0162811279296875,
0.0254669189453125,
0.031219482421875,
0.050384521484375,
0.0285186767578125,
0.035308837890625,
-0.03167724609375,
0.0017194747924804688,
0.015777587890625,
-0.0181427001953125,
-0.003917694091796875,
-0.057098388671875,
-0.0165252685546875,
-0.0255889892578125,
0.02825927734375,
0.03399658203125,
0.041900634765625,
0.0440673828125,
-0.03936767578125,
0.0022525787353515625,
0.009063720703125,
0.0307464599609375,
0.00812530517578125,
0.0282440185546875,
0.0310516357421875,
-0.032073974609375,
-0.0257568359375,
-0.007076263427734375,
0.024078369140625,
0.0031795501708984375,
0.01081085205078125,
0.05322265625,
-0.0117950439453125,
-0.00676727294921875,
-0.0183563232421875,
-0.045379638671875,
-0.00506591796875,
0.0293731689453125,
-0.06842041015625,
-0.0390625,
-0.004665374755859375,
0.0261383056640625,
-0.0204315185546875,
-0.0004856586456298828,
-0.0038623809814453125,
0.01059722900390625,
-0.0244903564453125,
-0.05804443359375,
0.04296875,
-0.0455322265625,
0.033843994140625,
0.06591796875,
0.01418304443359375,
-0.006298065185546875,
0.01419830322265625,
-0.0027217864990234375,
0.019866943359375,
0.004100799560546875,
-0.0163116455078125,
0.0171356201171875,
-0.07318115234375,
0.0008764266967773438,
0.0092010498046875,
0.0328369140625,
-0.0012531280517578125,
-0.040985107421875,
-0.01239776611328125,
0.020751953125,
-0.049346923828125,
0.003925323486328125,
0.056396484375,
-0.054840087890625,
0.0096435546875,
-0.032470703125,
-0.0166015625,
-0.018707275390625,
-0.025970458984375,
-0.0019445419311523438,
0.02490234375,
-0.0262603759765625,
-0.0772705078125,
-0.045074462890625,
-0.0694580078125,
0.03271484375,
-0.01300048828125,
0.00980377197265625,
0.01264190673828125,
0.0760498046875,
0.0229644775390625,
-0.045196533203125,
0.0193023681640625,
0.044097900390625,
-0.029052734375,
0.01538848876953125,
0.001041412353515625,
-0.022705078125,
0.03131103515625,
0.00467681884765625,
-0.0069427490234375,
0.022674560546875,
-0.01441192626953125,
-0.0296630859375,
0.003177642822265625,
0.01239013671875,
0.03204345703125,
0.005161285400390625,
-0.00989532470703125,
0.048065185546875,
0.0435791015625,
-0.0024204254150390625,
-0.000023603439331054688,
-0.0013103485107421875,
-0.0141143798828125,
0.004795074462890625,
-0.013580322265625,
-0.0259552001953125,
-0.01117706298828125,
0.0176849365234375,
-0.0042724609375,
0.0235137939453125,
-0.0090789794921875,
-0.0179595947265625,
0.06756591796875,
-0.004817962646484375,
-0.0018491744995117188,
-0.0199737548828125,
-0.0160980224609375,
-0.047332763671875,
0.026824951171875,
-0.0232391357421875,
-0.0218963623046875,
-0.03741455078125,
0.01287078857421875,
-0.05224609375,
-0.06536865234375,
0.04461669921875,
-0.065185546875,
-0.007694244384765625,
-0.06329345703125,
-0.007259368896484375,
-0.0192413330078125,
0.08746337890625,
-0.050872802734375,
0.0020580291748046875,
-0.057525634765625,
-0.002407073974609375,
0.0006055831909179688,
-0.0810546875,
-0.0269012451171875,
-0.015777587890625,
-0.05712890625,
0.01204681396484375,
-0.01342010498046875,
-0.00919342041015625,
-0.031280517578125,
-0.0104522705078125,
-0.060546875,
-0.0218963623046875,
0.0289764404296875,
-0.052520751953125,
0.007503509521484375,
-0.0016164779663085938,
-0.00916290283203125,
-0.04339599609375,
-0.0265045166015625,
-0.0117034912109375,
-0.05194091796875,
-0.00970458984375,
0.0217437744140625,
0.0131683349609375,
-0.0016889572143554688,
-0.032867431640625,
0.0244140625,
0.060821533203125,
0.01207733154296875,
0.0038013458251953125,
0.01849365234375,
0.0148773193359375,
-0.0172119140625,
0.0079345703125,
0.007274627685546875,
-0.0273590087890625,
-0.0311431884765625,
-0.007205963134765625,
0.0130767822265625,
0.064208984375,
0.006488800048828125,
0.01385498046875,
0.00823974609375,
-0.0167694091796875,
-0.041717529296875,
-0.0131072998046875,
-0.00278472900390625,
-0.0090789794921875,
0.008331298828125,
-0.0313720703125,
-0.01097869873046875,
-0.040618896484375,
0.0577392578125,
0.03857421875,
-0.0288543701171875,
-0.00445556640625,
0.09442138671875,
0.0184478759765625,
-0.0361328125,
-0.0517578125,
-0.0009775161743164062,
0.036376953125,
-0.016693115234375,
0.0207366943359375,
0.0007548332214355469,
-0.042938232421875,
0.07391357421875,
-0.01401519775390625,
0.029144287109375,
-0.032867431640625,
0.036224365234375,
-0.01348114013671875,
-0.0168609619140625,
0.0274200439453125,
-0.0198974609375,
0.01332855224609375,
0.029632568359375,
-0.026702880859375,
-0.040008544921875,
-0.00536346435546875,
0.07855224609375,
-0.052154541015625,
0.055206298828125,
-0.0472412109375,
-0.0264739990234375,
0.0189361572265625,
0.011138916015625,
-0.0261993408203125,
0.01556396484375,
-0.0086517333984375,
-0.016448974609375,
-0.043701171875,
0.01934814453125,
0.00794219970703125,
0.0278778076171875,
-0.0045013427734375,
0.047607421875,
0.005184173583984375,
0.01410675048828125,
-0.020355224609375,
-0.00036025047302246094,
0.0014066696166992188,
-0.0167999267578125,
-0.068115234375,
0.031982421875,
-0.004543304443359375,
-0.01068115234375,
0.04168701171875,
0.001506805419921875,
0.03955078125,
0.0305633544921875,
0.018768310546875,
0.01177215576171875,
-0.01482391357421875,
0.02008056640625,
-0.018798828125,
0.00027680397033691406,
0.004852294921875,
-0.006748199462890625,
0.01367950439453125,
0.0606689453125,
-0.034912109375,
0.04083251953125,
-0.007411956787109375,
0.0287933349609375,
0.01375579833984375,
0.032562255859375,
0.0163116455078125,
-0.000995635986328125,
-0.009796142578125,
0.00689697265625,
0.0098114013671875,
-0.0219573974609375,
-0.00658416748046875,
-0.0260467529296875,
0.03021240234375,
-0.0379638671875,
-0.0195770263671875,
0.064453125,
-0.0160675048828125,
-0.031951904296875,
-0.0135345458984375,
-0.010101318359375,
-0.002605438232421875,
-0.02203369140625,
-0.005496978759765625,
0.0179290771484375,
0.025543212890625,
-0.036590576171875,
0.04046630859375,
-0.0191192626953125,
0.0162200927734375,
-0.0159149169921875,
-0.0338134765625,
0.01001739501953125,
0.0394287109375,
-0.0673828125,
-0.01503753662109375,
0.0167083740234375,
-0.043670654296875,
-0.048126220703125,
0.00585174560546875,
-0.0244903564453125,
0.024444580078125,
-0.0004336833953857422,
0.057891845703125,
-0.034942626953125,
-0.03466796875,
-0.019256591796875,
-0.007289886474609375,
0.058868408203125,
0.042022705078125,
-0.030120849609375,
0.0191192626953125,
-0.038848876953125,
-0.004955291748046875,
-0.0537109375,
-0.055755615234375,
-0.0237579345703125,
-0.0081329345703125,
0.004924774169921875,
0.017364501953125,
0.0151519775390625,
0.01119232177734375,
-0.00041794776916503906,
0.02301025390625,
0.0029697418212890625,
0.002101898193359375,
0.0190582275390625,
-0.012481689453125,
0.005340576171875,
0.0281829833984375,
0.01212310791015625,
-0.01554107666015625,
-0.023956298828125,
-0.03228759765625,
-0.0246124267578125,
-0.121337890625,
-0.00728607177734375,
0.0029239654541015625,
-0.0208282470703125,
0.08148193359375,
0.031707763671875,
0.032318115234375,
0.004100799560546875,
-0.01120758056640625,
-0.006572723388671875,
-0.0100250244140625,
0.017364501953125,
0.00429534912109375,
-0.00637054443359375,
0.0286407470703125,
-0.011077880859375,
0.0215911865234375,
-0.0130767822265625,
-0.019439697265625,
0.014190673828125,
-0.01331329345703125,
0.01520538330078125,
0.016448974609375,
0.0411376953125,
-0.041778564453125,
0.0002913475036621094,
0.00370025634765625,
0.026214599609375,
0.01087188720703125,
0.035064697265625,
0.0221405029296875,
0.01386260986328125,
-0.01102447509765625,
-0.03363037109375,
0.045013427734375,
0.008148193359375,
-0.0168304443359375,
0.03021240234375,
-0.031982421875,
-0.03485107421875,
-0.00933074951171875,
0.0254058837890625,
-0.0121917724609375,
0.01012420654296875,
0.05474853515625,
0.004535675048828125,
-0.058349609375,
0.0235137939453125,
-0.0161590576171875,
-0.00928497314453125,
-0.0307159423828125,
-0.0164337158203125,
-0.038116455078125,
-0.0258636474609375,
0.0021381378173828125,
-0.0017976760864257812,
0.00010764598846435547,
0.058380126953125,
0.01421356201171875,
-0.00556182861328125,
-0.029205322265625,
0.0039043426513671875,
0.001026153564453125,
-0.01434326171875,
0.0222625732421875,
-0.0394287109375,
-0.013397216796875,
-0.04327392578125,
0.00867462158203125,
-0.0183563232421875,
0.00014793872833251953,
0.003665924072265625,
-0.026763916015625,
0.01165771484375,
0.031463623046875,
-0.02197265625,
0.032135009765625,
0.0015668869018554688,
-0.0595703125,
-0.02520751953125,
-0.01465606689453125,
-0.005626678466796875,
0.03173828125,
-0.009857177734375,
0.0207672119140625,
-0.02484130859375,
-0.0085601806640625,
-0.0297698974609375,
-0.042816162109375,
0.0645751953125,
-0.016448974609375,
-0.006275177001953125,
0.0418701171875,
0.048828125,
-0.0244293212890625,
0.0069427490234375,
-0.025543212890625,
-0.048248291015625,
-0.01617431640625,
0.01219940185546875,
-0.03375244140625,
-0.01346588134765625,
0.01071929931640625,
-0.0631103515625,
0.06451416015625,
0.0223541259765625,
0.0095672607421875,
0.01129150390625,
0.0230865478515625,
-0.031768798828125,
-0.000044345855712890625,
-0.06396484375,
0.05059814453125,
0.0250396728515625,
0.03192138671875,
-0.0595703125,
-0.004474639892578125,
0.0016613006591796875,
0.00954437255859375,
0.058990478515625,
0.0026607513427734375,
-0.0118865966796875,
-0.02191162109375,
0.04827880859375,
0.04595947265625,
-0.0163116455078125,
0.007724761962890625,
0.05133056640625,
0.0255584716796875,
0.061065673828125,
0.00897216796875,
0.0648193359375,
-0.032257080078125,
0.033599853515625,
0.06689453125,
-0.0014276504516601562,
-0.01514434814453125,
-0.0279541015625,
-0.0665283203125,
-0.0516357421875,
-0.0037136077880859375,
0.0175018310546875,
-0.01183319091796875,
0.0200958251953125,
0.00684356689453125,
0.0419921875,
-0.042999267578125,
0.03277587890625,
-0.03497314453125,
0.05096435546875,
-0.00382232666015625,
0.036590576171875,
0.0286407470703125,
0.01328277587890625,
0.0814208984375,
-0.0244293212890625,
0.0226287841796875,
0.0061798095703125,
0.00231170654296875,
0.058563232421875,
-0.020599365234375,
0.0140228271484375,
-0.07867431640625,
0.00846099853515625,
0.0176544189453125,
0.052734375,
-0.062347412109375,
-0.049407958984375,
0.0145416259765625,
0.0008130073547363281,
-0.0029811859130859375,
0.02362060546875,
0.0204315185546875,
0.058502197265625,
0.0780029296875,
-0.052703857421875,
0.015899658203125,
0.021331787109375,
0.04290771484375,
-0.01157379150390625,
-0.032012939453125,
-0.046722412109375,
0.00037097930908203125,
-0.052581787109375,
0.018890380859375,
0.0159454345703125,
0.038665771484375,
0.0154876708984375,
0.0626220703125,
0.00846099853515625,
-0.00783538818359375,
0.006793975830078125,
0.0246429443359375,
-0.0115509033203125,
-0.006420135498046875,
0.0036468505859375,
-0.0226593017578125,
-0.024078369140625,
0.0009512901306152344,
0.044769287109375,
-0.048736572265625,
-0.0005421638488769531,
0.0298919677734375,
0.0146942138671875,
-0.004955291748046875,
0.05841064453125,
0.0247650146484375,
-0.0079193115234375,
-0.04132080078125,
0.0052490234375,
0.0292816162109375,
-0.00811004638671875,
0.01409149169921875,
-0.028839111328125,
0.0579833984375,
-0.00618743896484375,
0.03973388671875,
0.007049560546875,
-0.0039825439453125,
0.0303192138671875,
-0.0263824462890625,
0.0181732177734375,
0.01116180419921875,
-0.07891845703125,
0.0002753734588623047,
-0.06463623046875,
-0.047637939453125,
0.023895263671875,
0.031768798828125,
-0.01381683349609375,
0.01898193359375,
0.004657745361328125,
-0.048065185546875,
-0.0037899017333984375,
0.0445556640625,
0.01678466796875,
0.002651214599609375,
-0.002849578857421875,
-0.00882720947265625,
-0.06488037109375,
-0.0308074951171875,
-0.01580810546875,
0.018035888671875,
0.0197906494140625,
0.03570556640625,
-0.0003647804260253906,
0.01605224609375,
-0.022308349609375,
0.07269287109375,
-0.0802001953125,
-0.03460693359375,
0.052154541015625,
-0.0161895751953125,
0.0169525146484375,
-0.008758544921875,
-0.01494598388671875,
0.035797119140625,
0.046234130859375,
-0.032196044921875,
0.01143646240234375,
-0.0048065185546875,
0.006671905517578125,
-0.0254364013671875,
0.046234130859375,
-0.022491455078125,
-0.0265655517578125,
-0.050262451171875,
-0.0421142578125,
0.029693603515625,
0.041839599609375,
0.0479736328125,
0.00757598876953125,
0.005222320556640625,
-0.041778564453125,
0.017974853515625,
-0.0286712646484375,
0.023529052734375,
0.041259765625,
0.00908660888671875,
-0.04632568359375,
0.0001386404037475586,
-0.0138092041015625,
0.0080108642578125,
0.01316070556640625,
0.0386962890625,
0.0177154541015625,
-0.00521087646484375,
0.0134735107421875,
-0.009735107421875,
0.01812744140625,
-0.03399658203125,
-0.01367950439453125,
0.0235137939453125,
-0.00533294677734375,
-0.0015735626220703125,
-0.00576019287109375,
-0.0302276611328125,
-0.044952392578125,
-0.01233673095703125,
0.01421356201171875,
-0.016632080078125,
-0.032257080078125,
-0.05853271484375,
0.003269195556640625,
0.02294921875,
-0.002742767333984375,
-0.009979248046875,
0.01042938232421875,
-0.0142364501953125,
-0.003391265869140625,
0.00798797607421875,
-0.08160400390625,
0.0244293212890625,
0.00672149658203125,
-0.004695892333984375,
0.01247406005859375,
-0.047393798828125,
-0.0245819091796875,
-0.0235595703125,
0.04058837890625,
0.047698974609375,
-0.050750732421875,
-0.038543701171875,
0.0595703125,
0.0440673828125,
0.08837890625,
0.029327392578125,
-0.020904541015625,
-0.0008058547973632812,
0.0177764892578125,
-0.023345947265625,
-0.07025146484375,
0.01959228515625,
-0.060150146484375,
-0.0272216796875,
0.0063629150390625,
-0.00586700439453125,
0.01151275634765625,
-0.0307159423828125,
-0.05755615234375,
0.037139892578125,
0.0007009506225585938,
-0.0283660888671875,
-0.0816650390625,
0.0029697418212890625,
0.0182952880859375,
-0.00499725341796875,
-0.0240478515625,
-0.007232666015625,
-0.05584716796875,
0.01554107666015625,
0.0176849365234375,
0.007015228271484375,
0.044952392578125,
0.0150909423828125,
-0.0155029296875,
0.016265869140625,
0.0150146484375,
0.002941131591796875,
-0.00933074951171875,
-0.01044464111328125,
0.0257110595703125,
0.035919189453125,
-0.0261077880859375,
-0.02606201171875,
-0.0003306865692138672,
-0.009002685546875,
0.01053619384765625,
-0.04962158203125,
-0.040985107421875,
-0.043548583984375,
0.0204925537109375,
0.02557373046875,
0.007617950439453125,
-0.00395965576171875,
-0.0102386474609375,
0.0016317367553710938,
-0.06414794921875,
0.0013380050659179688,
0.036468505859375,
-0.0682373046875,
-0.0031890869140625,
0.0181884765625,
-0.028839111328125,
-0.0285491943359375,
0.0243377685546875,
-0.059661865234375,
0.0017404556274414062,
-0.0234832763671875,
-0.0296478271484375,
-0.03643798828125,
0.04998779296875,
-0.0311126708984375,
-0.01128387451171875,
-0.02099609375,
-0.0301513671875,
-0.009552001953125,
-0.048583984375,
-0.050140380859375,
-0.0018672943115234375,
-0.00797271728515625,
0.0099029541015625,
0.01422119140625,
0.0207366943359375,
-0.01342010498046875,
0.0181732177734375,
0.0008907318115234375,
-0.0251312255859375,
0.029022216796875,
0.0213470458984375,
0.022369384765625,
-0.0250091552734375,
0.032257080078125,
0.032196044921875,
0.0384521484375,
0.003414154052734375,
0.05340576171875,
0.00970458984375,
0.03363037109375,
-0.0204315185546875,
-0.0042266845703125,
0.003753662109375,
-0.023193359375,
0.0139007568359375,
-0.0019102096557617188,
-0.00732421875,
-0.0210723876953125,
-0.007030487060546875,
0.0101470947265625,
-0.017181396484375,
0.00977325439453125
] |
be8456f2c5c2cad717a8c8ae6dc86bbf08340213
|
Wordpress Stackexchange
Q: Separate Wordpress themes for each category page I've read http://codex.wordpress.org/Category_Templates, which tells you how to change your index.php for each category. But I want to load a whole different theme directory in for my site when a particular category is viewed.
So for example, if I go to:
http://www.mysite.com/mycategory/
It will load a separate theme.
Is this possible?
A: I think what would work best for your case is making use of the WordPress template hierarchy.
You can actually just create a custom template file in your theme folder named category-{slug}.php to get a custom look for that category.
Example:
If your category was 'Dogs' and the slug you set for it was 'dog', the template file loaded for that category would be named category-dog.php, otherwise it falls back to category.php.
Codex Link:
http://codex.wordpress.org/Template_Hierarchy
|
Q: Separate Wordpress themes for each category page I've read http://codex.wordpress.org/Category_Templates, which tells you how to change your index.php for each category. But I want to load a whole different theme directory in for my site when a particular category is viewed.
So for example, if I go to:
http://www.mysite.com/mycategory/
It will load a separate theme.
Is this possible?
A: I think what would work best for your case is making use of the WordPress template hierarchy.
You can actually just create a custom template file in your theme folder named category-{slug}.php to get a custom look for that category.
Example:
If your category was 'Dogs' and the slug you set for it was 'dog', the template file loaded for that category would be named category-dog.php, otherwise it falls back to category.php.
Codex Link:
http://codex.wordpress.org/Template_Hierarchy
A: There is no point in switching to another theme when the category page is loaded because it is actually just the another page of your site which could be customized through the theme category template. I suppose you can use conditional tags for categories to customize your header and footer too or load custom CSS style sheet. Something like:
<?php if ( is_category('your-category') ) { ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory' ); ?>/my-category-style.css" />
<?php } else { ?>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php } ?>
A: You have two solution I guess:
*
*If you want to work in one Database, here your can just choose one theme directory, and then change the WordPress template hierarchy, because your site when it's loaded connect directly to index of your theme first and then to another PHP file in the theme folder.
*You can add others sub-domains to your site, and linked them to official site. and for every sub-domains you can choose one theme. But really it's not recommended.
A: Old plugin here that might still work:
http://download.mikelopez.com/2006/10/17/wordpress-themed-categories-plugin/
|
wordpress
|
{
"language": "en",
"length": 322,
"provenance": "stackexchange_00019.jsonl.gz:408488",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14341"
}
|
[
0.034637451171875,
-0.01580810546875,
-0.0169219970703125,
-0.052642822265625,
0.01140594482421875,
-0.028961181640625,
0.0257568359375,
-0.0022125244140625,
-0.048370361328125,
0.0221405029296875,
-0.0143585205078125,
0.0183563232421875,
0.0026264190673828125,
-0.017852783203125,
0.0222625732421875,
-0.0404052734375,
0.0172882080078125,
-0.0026721954345703125,
0.040191650390625,
-0.0039825439453125,
0.0185699462890625,
0.0195770263671875,
0.01087188720703125,
0.041961669921875,
0.0036678314208984375,
-0.006412506103515625,
0.042510986328125,
-0.031646728515625,
0.007564544677734375,
-0.0244293212890625,
0.0240020751953125,
0.002685546875,
0.015106201171875,
0.0204010009765625,
0.00739288330078125,
0.042999267578125,
0.01003265380859375,
0.0191497802734375,
0.03448486328125,
0.01214599609375,
0.015106201171875,
-0.0098876953125,
0.06707763671875,
0.032867431640625,
0.03741455078125,
-0.043609619140625,
0.028533935546875,
-0.09307861328125,
0.006977081298828125,
-0.063232421875,
0.02276611328125,
0.01763916015625,
0.044769287109375,
-0.0557861328125,
-0.0212860107421875,
0.021820068359375,
-0.0224456787109375,
0.0245208740234375,
0.031341552734375,
-0.0285186767578125,
-0.036956787109375,
-0.0059814453125,
0.025054931640625,
-0.00363922119140625,
-0.00606536865234375,
-0.017059326171875,
-0.01387786865234375,
0.038909912109375,
-0.047882080078125,
-0.0236968994140625,
0.031646728515625,
-0.0220489501953125,
0.0130157470703125,
-0.02508544921875,
-0.030731201171875,
-0.007099151611328125,
0.01413726806640625,
-0.0288238525390625,
0.0158233642578125,
-0.0229339599609375,
-0.02191162109375,
-0.0187835693359375,
-0.021026611328125,
-0.055267333984375,
0.039947509765625,
0.01934814453125,
-0.01015472412109375,
-0.0182647705078125,
-0.0338134765625,
0.00348663330078125,
-0.0237884521484375,
0.007694244384765625,
-0.041351318359375,
0.032989501953125,
-0.00389862060546875,
0.0190277099609375,
0.006877899169921875,
0.044158935546875,
-0.006565093994140625,
0.0238494873046875,
-0.00930023193359375,
-0.0284271240234375,
0.0275726318359375,
-0.038299560546875,
-0.00412750244140625,
0.044830322265625,
0.0242156982421875,
0.0274200439453125,
0.0286102294921875,
0.01114654541015625,
0.009307861328125,
0.036712646484375,
0.004451751708984375,
-0.0012102127075195312,
-0.02606201171875,
0.0205841064453125,
-0.00992584228515625,
0.0007610321044921875,
-0.007122039794921875,
0.0038967132568359375,
0.02496337890625,
0.05987548828125,
0.031646728515625,
-0.04052734375,
-0.0175628662109375,
-0.00713348388671875,
-0.00006031990051269531,
-0.08740234375,
0.0286407470703125,
-0.0238037109375,
-0.0296783447265625,
0.0020732879638671875,
0.0249176025390625,
0.05877685546875,
0.03369140625,
0.0019779205322265625,
0.0171051025390625,
0.00042366981506347656,
-0.0157318115234375,
0.0157928466796875,
0.0270843505859375,
-0.014190673828125,
0.00020110607147216797,
-0.01326751708984375,
-0.0189666748046875,
0.01250457763671875,
0.0008144378662109375,
0.024383544921875,
-0.0025634765625,
-0.02069091796875,
0.010223388671875,
-0.033966064453125,
0.037200927734375,
0.0107421875,
0.00749969482421875,
-0.032073974609375,
0.024017333984375,
-0.034271240234375,
-0.00629425048828125,
-0.039703369140625,
-0.01004791259765625,
0.0104217529296875,
0.036285400390625,
-0.0233612060546875,
-0.027496337890625,
-0.01526641845703125,
-0.0313720703125,
-0.0005788803100585938,
0.006561279296875,
-0.0220794677734375,
-0.0109710693359375,
0.0145416259765625,
0.0113677978515625,
-0.00997161865234375,
0.00015819072723388672,
0.0036525726318359375,
-0.00038433074951171875,
-0.00264739990234375,
0.0116729736328125,
0.044952392578125,
-0.01174163818359375,
-0.045166015625,
-0.0054931640625,
-0.0025615692138671875,
-0.049468994140625,
0.048675537109375,
0.01261138916015625,
0.0709228515625,
-0.0122528076171875,
0.02423095703125,
0.0276031494140625,
0.01055908203125,
-0.03436279296875,
0.0157318115234375,
0.0167236328125,
-0.00551605224609375,
-0.0199127197265625,
0.022064208984375,
0.002593994140625,
-0.050567626953125,
-0.018585205078125,
0.0196685791015625,
-0.00003319978713989258,
0.0287017822265625,
0.00577545166015625,
0.00937652587890625,
-0.005886077880859375,
0.043609619140625,
-0.0031261444091796875,
0.024383544921875,
-0.0019779205322265625,
-0.0015077590942382812,
0.0057525634765625,
-0.0672607421875,
-0.034759521484375,
0.0208892822265625,
0.0146331787109375,
0.0014047622680664062,
0.006092071533203125,
-0.004940032958984375,
0.006282806396484375,
0.024871826171875,
-0.0213165283203125,
0.030303955078125,
0.03704833984375,
0.01325225830078125,
-0.03399658203125,
-0.0283050537109375,
-0.0305023193359375,
0.045074462890625,
-0.1409912109375,
0.0280914306640625,
0.0467529296875,
0.054229736328125,
-0.03936767578125,
0.01480865478515625,
-0.005046844482421875,
0.0173797607421875,
-0.0242767333984375,
0.0184173583984375,
0.025787353515625,
-0.005496978759765625,
-0.057098388671875,
-0.046844482421875,
0.028717041015625,
-0.0496826171875,
-0.0105133056640625,
-0.0004100799560546875,
0.0179290771484375,
0.0204925537109375,
0.0244903564453125,
-0.0118865966796875,
0.0225830078125,
-0.0242462158203125,
0.017486572265625,
0.031951904296875,
-0.014739990234375,
-0.039306640625,
0.0264892578125,
-0.0030422210693359375,
0.0252838134765625,
0.00844573974609375,
-0.032440185546875,
0.015777587890625,
0.0283203125,
0.01507568359375,
0.016693115234375,
0.01212310791015625,
-0.0162353515625,
0.013092041015625,
0.006923675537109375,
-0.044219970703125,
-0.0027599334716796875,
0.03411865234375,
-0.0013990402221679688,
0.018798828125,
-0.0204315185546875,
-0.0090484619140625,
-0.0010967254638671875,
0.0173187255859375,
-0.0207366943359375,
0.05126953125,
-0.040557861328125,
-0.017913818359375,
-0.05120849609375,
-0.1236572265625,
-0.0175018310546875,
0.01248931884765625,
-0.0196685791015625,
0.0096282958984375,
0.02191162109375,
0.0372314453125,
-0.019500732421875,
0.01326751708984375,
-0.0357666015625,
0.0160369873046875,
0.041168212890625,
-0.0191802978515625,
0.037872314453125,
-0.02325439453125,
-0.000591278076171875,
0.0307769775390625,
-0.01177978515625,
0.0018367767333984375,
0.0113372802734375,
-0.010528564453125,
0.03997802734375,
-0.013763427734375,
-0.0110931396484375,
0.0014257431030273438,
-0.046600341796875,
0.01247406005859375,
0.0258331298828125,
0.01751708984375,
0.0242919921875,
-0.01629638671875,
0.03143310546875,
0.022796630859375,
-0.0035686492919921875,
-0.035247802734375,
-0.004238128662109375,
-0.024993896484375,
0.044158935546875,
-0.0015821456909179688,
0.0011014938354492188,
-0.04571533203125,
0.0146942138671875,
0.020965576171875,
0.017669677734375,
-0.06280517578125,
-0.05023193359375,
-0.052459716796875,
-0.0634765625,
-0.01904296875,
0.0038299560546875,
-0.005222320556640625,
-0.00482940673828125,
0.058258056640625,
0.0115509033203125,
-0.0330810546875,
-0.002597808837890625,
0.04974365234375,
0.0018939971923828125,
-0.000568389892578125,
0.001544952392578125,
-0.041534423828125,
0.028045654296875,
0.00115966796875,
0.0229644775390625,
0.031768798828125,
-0.00799560546875,
-0.0111541748046875,
-0.0307464599609375,
0.01152801513671875,
-0.034698486328125,
0.04254150390625,
0.062286376953125,
-0.01806640625,
-0.0229034423828125,
-0.044189453125,
-0.051055908203125,
-0.002483367919921875,
-0.061370849609375,
0.009674072265625,
0.0443115234375,
-0.01021575927734375,
-0.01499176025390625,
0.00519561767578125,
-0.005092620849609375,
-0.0030918121337890625,
0.0023593902587890625,
-0.045989990234375,
0.058990478515625,
0.00795745849609375,
0.00506591796875,
-0.00937652587890625,
-0.0280609130859375,
-0.04010009765625,
0.0136566162109375,
-0.0338134765625,
-0.0060882568359375,
-0.033050537109375,
0.035125732421875,
-0.0202789306640625,
-0.06463623046875,
0.0404052734375,
-0.0193023681640625,
-0.0244140625,
-0.0242462158203125,
-0.020355224609375,
0.0167694091796875,
0.08331298828125,
-0.0704345703125,
-0.00927734375,
0.0258636474609375,
0.03240966796875,
-0.01302337646484375,
-0.031494140625,
-0.07421875,
-0.028594970703125,
-0.0821533203125,
0.011932373046875,
-0.01538848876953125,
-0.0218353271484375,
-0.01165771484375,
0.0060577392578125,
-0.04632568359375,
-0.039825439453125,
0.037353515625,
-0.03057861328125,
0.013916015625,
-0.02606201171875,
-0.0047607421875,
-0.032623291015625,
-0.020416259765625,
-0.027374267578125,
-0.0166015625,
-0.0052337646484375,
-0.0192413330078125,
0.022216796875,
0.01922607421875,
-0.0090179443359375,
-0.0034770965576171875,
0.033447265625,
0.005523681640625,
0.02655029296875,
0.0159149169921875,
-0.00601959228515625,
0.023834228515625,
0.042724609375,
0.028778076171875,
0.00299072265625,
0.00518798828125,
-0.038726806640625,
-0.0430908203125,
0.0081024169921875,
-0.033355712890625,
0.0306549072265625,
-0.021575927734375,
-0.01611328125,
-0.0579833984375,
-0.0189666748046875,
-0.0268707275390625,
-0.0009284019470214844,
0.0128631591796875,
-0.0264739990234375,
-0.01056671142578125,
-0.04803466796875,
0.052001953125,
-0.0028285980224609375,
-0.019134521484375,
0.006744384765625,
0.0509033203125,
0.00888824462890625,
-0.032867431640625,
-0.0623779296875,
0.00931549072265625,
0.041107177734375,
0.0004153251647949219,
0.05560302734375,
0.00011026859283447266,
-0.0217437744140625,
0.0777587890625,
0.01007843017578125,
-0.0255126953125,
-0.00678253173828125,
0.05718994140625,
-0.010711669921875,
-0.01885986328125,
-0.008544921875,
-0.03704833984375,
0.051239013671875,
0.0212860107421875,
-0.0031948089599609375,
-0.00926971435546875,
0.0038394927978515625,
0.0246124267578125,
-0.0002677440643310547,
-0.0033435821533203125,
-0.03497314453125,
-0.0274505615234375,
0.0021839141845703125,
0.0208740234375,
0.07757568359375,
0.05316162109375,
-0.00992584228515625,
0.05975341796875,
0.0443115234375,
-0.01470947265625,
0.01142120361328125,
0.040924072265625,
-0.01488494873046875,
-0.002716064453125,
0.0176544189453125,
-0.0364990234375,
-0.0311431884765625,
-0.00040459632873535156,
0.006069183349609375,
-0.006374359130859375,
-0.02496337890625,
-0.03497314453125,
-0.0027866363525390625,
0.023651123046875,
0.023590087890625,
-0.033203125,
0.0223541259765625,
-0.01131439208984375,
-0.0033893585205078125,
0.01319122314453125,
-0.0587158203125,
-0.036712646484375,
-0.0292816162109375,
-0.006237030029296875,
0.0020580291748046875,
-0.0269927978515625,
0.04241943359375,
-0.005825042724609375,
-0.00893402099609375,
0.01395416259765625,
-0.005126953125,
0.017974853515625,
0.0031681060791015625,
0.029266357421875,
0.0015287399291992188,
0.003597259521484375,
0.0038051605224609375,
0.0027713775634765625,
0.0245361328125,
-0.041351318359375,
0.0017957687377929688,
0.0101165771484375,
0.039947509765625,
-0.02569580078125,
-0.037506103515625,
0.0237579345703125,
-0.0299530029296875,
-0.0106353759765625,
-0.01432037353515625,
-0.038421630859375,
-0.007083892822265625,
-0.01336669921875,
-0.005096435546875,
0.019866943359375,
-0.0012350082397460938,
-0.03155517578125,
0.00801849365234375,
-0.0238037109375,
0.0033359527587890625,
0.034912109375,
-0.041290283203125,
0.00628662109375,
0.008392333984375,
-0.07452392578125,
0.0008306503295898438,
0.037078857421875,
-0.0762939453125,
-0.037689208984375,
-0.004062652587890625,
-0.033355712890625,
0.019866943359375,
0.024200439453125,
0.031494140625,
-0.0158843994140625,
-0.046600341796875,
0.0062408447265625,
-0.0011148452758789062,
0.03594970703125,
-0.00472259521484375,
-0.07928466796875,
0.054931640625,
-0.0789794921875,
0.0015354156494140625,
-0.02716064453125,
-0.07562255859375,
-0.058441162109375,
-0.0335693359375,
0.0016412734985351562,
0.006999969482421875,
0.011871337890625,
0.0079803466796875,
-0.04241943359375,
0.02191162109375,
0.022064208984375,
0.0058441162109375,
-0.046478271484375,
0.050506591796875,
0.0179595947265625,
0.0230255126953125,
-0.015655517578125,
0.01629638671875,
0.0055389404296875,
-0.0122833251953125,
-0.03179931640625,
-0.0687255859375,
0.0005650520324707031,
0.039276123046875,
-0.041473388671875,
0.06170654296875,
0.06658935546875,
0.027984619140625,
0.00879669189453125,
-0.0355224609375,
-0.0025501251220703125,
-0.0225067138671875,
0.020721435546875,
-0.038909912109375,
0.0014295578002929688,
-0.004940032958984375,
0.00726318359375,
0.0253143310546875,
-0.020050048828125,
-0.036773681640625,
0.052093505859375,
-0.01418304443359375,
0.039031982421875,
0.0125579833984375,
-0.08795166015625,
0.075439453125,
0.05682373046875,
0.027618408203125,
0.058624267578125,
-0.0012903213500976562,
0.03924560546875,
0.00665283203125,
0.0062408447265625,
0.0184783935546875,
-0.0085296630859375,
0.02581787109375,
0.00506591796875,
0.012115478515625,
0.01201629638671875,
-0.0159912109375,
-0.020172119140625,
0.07244873046875,
0.031982421875,
-0.08282470703125,
-0.001491546630859375,
0.00261688232421875,
0.00011736154556274414,
-0.013580322265625,
0.01425933837890625,
-0.01776123046875,
-0.02764892578125,
0.023590087890625,
-0.00595855712890625,
-0.002895355224609375,
0.0142364501953125,
0.0030040740966796875,
-0.0011892318725585938,
-0.01001739501953125,
0.0178070068359375,
0.0194091796875,
-0.043731689453125,
0.0083465576171875,
0.02899169921875,
0.0254974365234375,
-0.0150146484375,
0.004581451416015625,
0.0027980804443359375,
-0.0168609619140625,
-0.0210113525390625,
0.041107177734375,
-0.006999969482421875,
0.007373809814453125,
-0.005222320556640625,
-0.0107574462890625,
-0.00567626953125,
0.0341796875,
-0.0243072509765625,
0.0145111083984375,
0.0020046234130859375,
-0.0170440673828125,
0.027587890625,
0.020111083984375,
0.015289306640625,
-0.0036220550537109375,
-0.035247802734375,
-0.0050506591796875,
-0.039794921875,
0.0233612060546875,
-0.0333251953125,
-0.03863525390625,
0.09716796875,
-0.025909423828125,
-0.0196075439453125,
0.0225372314453125,
0.062042236328125,
-0.01983642578125,
0.0284271240234375,
0.04510498046875,
-0.029998779296875,
-0.0186614990234375,
0.036834716796875,
-0.011962890625,
-0.00962066650390625,
0.0173187255859375,
-0.0836181640625,
0.0672607421875,
-0.0258331298828125,
0.07733154296875,
0.02154541015625,
0.007686614990234375,
0.005313873291015625,
-0.0125579833984375,
-0.029510498046875,
0.0653076171875,
0.032684326171875,
0.0276336669921875,
-0.03009033203125,
-0.00286102294921875,
0.0116119384765625,
0.0201568603515625,
0.061004638671875,
0.01030731201171875,
-0.00949859619140625,
0.027984619140625,
0.07464599609375,
0.0184173583984375,
-0.01206207275390625,
0.038055419921875,
-0.039703369140625,
-0.020477294921875,
-0.0153961181640625,
0.006710052490234375,
0.017608642578125,
-0.006359100341796875,
-0.06268310546875,
-0.017181396484375,
0.026641845703125,
0.030487060546875,
0.021270751953125,
0.0177001953125,
-0.0419921875,
0.019775390625,
0.03704833984375,
-0.007503509521484375,
-0.0015964508056640625,
0.03472900390625,
0.029754638671875,
-0.045166015625,
0.01393890380859375,
-0.0321044921875,
0.056182861328125,
0.00267791748046875,
0.0094451904296875,
0.0218963623046875,
-0.0009908676147460938,
0.048919677734375,
0.006107330322265625,
-0.006500244140625,
0.029296875,
0.00806427001953125,
0.0548095703125,
0.0318603515625,
0.024078369140625,
-0.044219970703125,
-0.00644683837890625,
0.0202178955078125,
0.0633544921875,
-0.053253173828125,
-0.050079345703125,
0.01454925537109375,
-0.00043892860412597656,
-0.01007080078125,
0.0071868896484375,
-0.0198974609375,
0.0256500244140625,
0.056854248046875,
-0.0350341796875,
-0.0112457275390625,
0.0151824951171875,
0.0273590087890625,
-0.00823974609375,
-0.0128936767578125,
0.00146484375,
-0.0162353515625,
-0.04425048828125,
0.048858642578125,
0.040008544921875,
0.044891357421875,
-0.0274810791015625,
0.0760498046875,
-0.0096435546875,
-0.0167388916015625,
0.00524139404296875,
0.042694091796875,
-0.021240234375,
-0.00496673583984375,
-0.01593017578125,
-0.053009033203125,
0.00688934326171875,
0.034393310546875,
0.00015211105346679688,
-0.001861572265625,
0.034088134765625,
0.0665283203125,
0.01488494873046875,
-0.02679443359375,
0.0254058837890625,
-0.0003628730773925781,
0.0096282958984375,
-0.03436279296875,
0.0207061767578125,
0.01471710205078125,
-0.01016998291015625,
-0.00775909423828125,
0.006877899169921875,
0.037689208984375,
-0.0029850006103515625,
0.00968170166015625,
0.00972747802734375,
-0.0377197265625,
0.01282501220703125,
-0.00899505615234375,
0.0538330078125,
0.0202789306640625,
-0.08355712890625,
-0.0217742919921875,
-0.027008056640625,
-0.034454345703125,
0.034698486328125,
0.04962158203125,
-0.002819061279296875,
0.004364013671875,
0.053558349609375,
-0.007061004638671875,
-0.001453399658203125,
-0.01132965087890625,
0.0169830322265625,
-0.0604248046875,
0.019866943359375,
0.00933074951171875,
-0.057525634765625,
-0.033721923828125,
-0.00716400146484375,
0.0283050537109375,
0.004833221435546875,
0.08660888671875,
-0.0121307373046875,
-0.0040283203125,
0.0019893646240234375,
0.04205322265625,
-0.03564453125,
-0.0297088623046875,
0.0841064453125,
0.002429962158203125,
0.00848388671875,
-0.01953125,
-0.016265869140625,
0.0005927085876464844,
0.0283660888671875,
-0.035430908203125,
-0.0271453857421875,
0.0007381439208984375,
0.0238189697265625,
0.0035839080810546875,
0.037445068359375,
-0.0184173583984375,
-0.0484619140625,
-0.06268310546875,
0.00151824951171875,
0.0232696533203125,
0.036529541015625,
-0.0235595703125,
0.0168609619140625,
-0.0184173583984375,
0.0004744529724121094,
0.001094818115234375,
0.032623291015625,
-0.022918701171875,
0.0233612060546875,
-0.034271240234375,
-0.03607177734375,
0.036376953125,
-0.005687713623046875,
0.0116424560546875,
0.0087890625,
0.057220458984375,
0.01812744140625,
-0.06640625,
-0.003070831298828125,
0.02642822265625,
0.0200958251953125,
-0.025909423828125,
0.01824951171875,
0.0361328125,
-0.016387939453125,
0.016204833984375,
-0.05792236328125,
-0.05194091796875,
-0.03955078125,
0.01525115966796875,
0.037750244140625,
-0.016693115234375,
-0.0164337158203125,
-0.07464599609375,
-0.01212310791015625,
0.038909912109375,
0.0280914306640625,
-0.06353759765625,
0.025665283203125,
0.0009407997131347656,
0.048980712890625,
-0.00945281982421875,
-0.004512786865234375,
-0.0035953521728515625,
0.006206512451171875,
-0.05560302734375,
0.0089569091796875,
-0.026214599609375,
-0.03631591796875,
-0.01491546630859375,
0.01355743408203125,
0.049468994140625,
-0.0251617431640625,
-0.00795745849609375,
0.00222015380859375,
0.005756378173828125,
0.059783935546875,
-0.0037822723388671875,
0.00865936279296875,
0.032012939453125,
0.007472991943359375,
-0.0601806640625,
-0.040985107421875,
0.01490020751953125,
0.0014524459838867188,
-0.01287841796875,
0.00753021240234375,
-0.034271240234375,
-0.0131683349609375,
-0.04296875,
-0.05841064453125,
0.03692626953125,
0.004901885986328125,
-0.0404052734375,
-0.048828125,
0.0128173828125,
-0.016815185546875,
-0.021942138671875,
-0.0188446044921875,
-0.040130615234375,
0.006923675537109375,
0.056304931640625,
0.03302001953125,
0.030914306640625,
-0.01503753662109375,
0.044219970703125,
-0.0266876220703125,
0.059417724609375,
0.0261077880859375,
0.0228729248046875,
-0.01415252685546875,
0.01727294921875,
-0.019683837890625,
0.03765869140625,
-0.0308837890625,
-0.0297393798828125,
-0.019866943359375,
-0.0009407997131347656,
0.01372528076171875,
-0.0282135009765625,
-0.04888916015625,
-0.031494140625,
0.058135986328125,
0.0164031982421875,
0.027099609375,
0.006893157958984375,
-0.06878662109375,
-0.058502197265625,
0.0031871795654296875,
-0.0019817352294921875,
0.03363037109375,
-0.10919189453125,
0.023284912109375,
0.07232666015625,
-0.003631591796875,
0.047698974609375,
-0.016082763671875,
-0.00952911376953125,
0.00726318359375,
0.0113677978515625,
0.0147705078125,
-0.0906982421875,
-0.0030307769775390625,
0.01102447509765625,
-0.0160369873046875,
-0.00421142578125,
-0.0110015869140625,
0.015899658203125,
-0.0115814208984375,
0.00516510009765625,
-0.0216064453125,
0.0228424072265625,
-0.03619384765625,
-0.006755828857421875,
-0.00934600830078125,
0.01111602783203125,
-0.001895904541015625,
0.0196075439453125,
-0.0191802978515625,
0.031402587890625,
-0.004611968994140625,
0.024871826171875,
-0.0143280029296875,
0.039154052734375,
0.0201416015625,
0.069091796875,
0.0176544189453125,
-0.01326751708984375,
-0.01415252685546875,
0.05010986328125,
-0.04052734375,
-0.020965576171875,
-0.03753662109375,
-0.05145263671875,
-0.0008287429809570312,
-0.0127105712890625,
0.0269622802734375,
-0.032623291015625,
0.050140380859375,
-0.0156707763671875,
-0.01123046875,
0.03448486328125
] |
bf975eac5b997c93cc097489ce6bf617efb539ed
|
Wordpress Stackexchange
Q: Not sure the best way to save custom plugin data Doing my first plugin with 3.1 Everything is great, but I need to store the data now. My data is sufficiently complex that it requires custom tables (as opposed to options). So now I am wondering how I save the data. Normally, I would just create a processing page to handle it, but that doesn't seem like the best way within the WP API. How do I go about saving my form data from my plugin settings page into my custom tables? Thanks!
EDIT: To clarify, I know how to code it, I am not sure architecturally the best way to do it.
A: Not that there is specialized API for something exactly like that.
*
*Create your table, see Creating Tables with Plugins in Codex.
*Process submitted form (since you are not using higher APIs, don't forget to check for capabilities, use nonces and such).
*Write data to your custom table, using $wpdb.
|
Q: Not sure the best way to save custom plugin data Doing my first plugin with 3.1 Everything is great, but I need to store the data now. My data is sufficiently complex that it requires custom tables (as opposed to options). So now I am wondering how I save the data. Normally, I would just create a processing page to handle it, but that doesn't seem like the best way within the WP API. How do I go about saving my form data from my plugin settings page into my custom tables? Thanks!
EDIT: To clarify, I know how to code it, I am not sure architecturally the best way to do it.
A: Not that there is specialized API for something exactly like that.
*
*Create your table, see Creating Tables with Plugins in Codex.
*Process submitted form (since you are not using higher APIs, don't forget to check for capabilities, use nonces and such).
*Write data to your custom table, using $wpdb.
|
wordpress
|
{
"language": "en",
"length": 165,
"provenance": "stackexchange_00019.jsonl.gz:408508",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14402"
}
|
[
0.0296173095703125,
-0.014007568359375,
0.00580596923828125,
-0.0267333984375,
-0.00283050537109375,
-0.01508331298828125,
0.011932373046875,
-0.00778961181640625,
0.0159149169921875,
-0.0045623779296875,
-0.031707763671875,
-0.01123809814453125,
-0.048614501953125,
-0.033233642578125,
-0.01363372802734375,
-0.049957275390625,
0.04840087890625,
-0.034454345703125,
0.0208740234375,
-0.01529693603515625,
-0.01070404052734375,
0.015167236328125,
0.022857666015625,
0.0526123046875,
0.037933349609375,
-0.03656005859375,
0.01197052001953125,
-0.0205078125,
0.056854248046875,
-0.00041961669921875,
0.0291595458984375,
-0.03314208984375,
0.0008144378662109375,
0.0229949951171875,
0.017486572265625,
0.0210418701171875,
0.040863037109375,
0.003459930419921875,
0.0264129638671875,
0.0350341796875,
0.0390625,
-0.0156097412109375,
-0.043548583984375,
0.00922393798828125,
-0.01049041748046875,
-0.07183837890625,
0.056365966796875,
-0.0265350341796875,
-0.012481689453125,
-0.004886627197265625,
0.0223388671875,
0.01195526123046875,
0.036590576171875,
-0.01233673095703125,
-0.00742340087890625,
0.0016832351684570312,
-0.01258087158203125,
-0.005950927734375,
0.0261688232421875,
0.0011539459228515625,
-0.01230621337890625,
-0.018157958984375,
0.028076171875,
0.006134033203125,
0.03167724609375,
-0.0023193359375,
0.038543701171875,
0.034881591796875,
0.0050506591796875,
0.0226287841796875,
0.003963470458984375,
-0.01404571533203125,
0.0023250579833984375,
-0.0024547576904296875,
-0.0311431884765625,
-0.0182342529296875,
0.051513671875,
0.0104217529296875,
-0.009002685546875,
0.0016031265258789062,
-0.0286407470703125,
-0.026275634765625,
0.02276611328125,
-0.039703369140625,
0.00104522705078125,
-0.01099395751953125,
-0.0214080810546875,
0.01299285888671875,
0.0196685791015625,
0.0098114013671875,
0.0009088516235351562,
-0.01177215576171875,
0.01273345947265625,
0.056304931640625,
-0.008941650390625,
-0.0237274169921875,
-0.0218048095703125,
-0.0234375,
-0.00988006591796875,
0.0260009765625,
0.0257720947265625,
-0.04278564453125,
0.050628662109375,
-0.01861572265625,
0.01812744140625,
0.039276123046875,
-0.00745391845703125,
-0.08673095703125,
0.00820159912109375,
0.007293701171875,
-0.00894927978515625,
0.03302001953125,
-0.0028934478759765625,
-0.054473876953125,
0.022552490234375,
0.041015625,
-0.003131866455078125,
0.034881591796875,
0.01544952392578125,
-0.01238250732421875,
-0.0228271484375,
0.01312255859375,
-0.042510986328125,
-0.029266357421875,
-0.0039043426513671875,
-0.047271728515625,
-0.003391265869140625,
0.0312347412109375,
-0.03369140625,
0.014129638671875,
-0.0311279296875,
0.02264404296875,
0.072265625,
0.03912353515625,
0.01273345947265625,
-0.007495880126953125,
0.050262451171875,
-0.0279541015625,
-0.0037670135498046875,
0.019378662109375,
-0.0065155029296875,
-0.0240936279296875,
-0.0113067626953125,
-0.03240966796875,
-0.01202392578125,
0.0264434814453125,
0.01131439208984375,
0.0156707763671875,
-0.02197265625,
-0.0587158203125,
0.0185394287109375,
-0.0169525146484375,
0.0213470458984375,
-0.006473541259765625,
0.011383056640625,
-0.0128173828125,
0.0001856088638305664,
-0.01593017578125,
-0.0013427734375,
-0.013214111328125,
-0.006198883056640625,
-0.030548095703125,
-0.00708770751953125,
-0.02960205078125,
-0.034881591796875,
0.0256195068359375,
-0.0184783935546875,
0.0018367767333984375,
0.021087646484375,
-0.01169586181640625,
0.0191497802734375,
0.00036716461181640625,
-0.032196044921875,
0.01511383056640625,
0.018218994140625,
0.019622802734375,
-0.0082244873046875,
-0.028961181640625,
0.03314208984375,
0.044830322265625,
-0.006427764892578125,
-0.022003173828125,
0.0254364013671875,
-0.00965118408203125,
-0.032257080078125,
0.050567626953125,
0.008636474609375,
0.08770751953125,
0.00762176513671875,
0.0268707275390625,
-0.0362548828125,
0.0026073455810546875,
-0.0595703125,
0.0213470458984375,
-0.00921630859375,
0.00244140625,
-0.01247406005859375,
0.0035495758056640625,
-0.01090240478515625,
-0.003551483154296875,
-0.043365478515625,
0.007617950439453125,
-0.0002989768981933594,
0.00037860870361328125,
-0.04302978515625,
0.01187896728515625,
-0.0256805419921875,
0.0460205078125,
-0.0217132568359375,
0.01006317138671875,
0.0191650390625,
-0.005123138427734375,
-0.0286865234375,
0.0036258697509765625,
-0.0004456043243408203,
-0.006572723388671875,
-0.0169219970703125,
0.03692626953125,
0.002178192138671875,
0.0421142578125,
0.0162506103515625,
-0.03460693359375,
-0.0131378173828125,
0.0015230178833007812,
-0.0289306640625,
-0.01174163818359375,
-0.0086669921875,
-0.009552001953125,
0.0009622573852539062,
-0.016082763671875,
0.062225341796875,
0.016357421875,
0.0265960693359375,
0.05218505859375,
0.001789093017578125,
-0.01250457763671875,
0.01502227783203125,
-0.0634765625,
0.001926422119140625,
0.0389404296875,
0.01456451416015625,
0.001590728759765625,
-0.0226287841796875,
0.0367431640625,
-0.0108489990234375,
-0.03204345703125,
-0.00885772705078125,
0.032470703125,
0.03717041015625,
0.049407958984375,
-0.00782012939453125,
-0.032012939453125,
0.0290069580078125,
-0.03900146484375,
-0.00026869773864746094,
0.02203369140625,
-0.052398681640625,
-0.0185089111328125,
0.027130126953125,
-0.036895751953125,
0.01433563232421875,
0.0072784423828125,
0.011505126953125,
-0.01166534423828125,
0.02435302734375,
-0.0013723373413085938,
0.042938232421875,
0.044830322265625,
-0.0007166862487792969,
-0.006786346435546875,
0.00576019287109375,
-0.015838623046875,
-0.00725555419921875,
-0.0107421875,
0.04595947265625,
0.036041259765625,
-0.06585693359375,
-0.00951385498046875,
0.0478515625,
0.01404571533203125,
-0.005992889404296875,
0.046905517578125,
-0.04974365234375,
-0.0250091552734375,
0.004611968994140625,
-0.03369140625,
-0.031951904296875,
-0.0010957717895507812,
-0.0259552001953125,
-0.00960540771484375,
0.037872314453125,
0.018035888671875,
-0.0229644775390625,
0.01885986328125,
-0.007076263427734375,
-0.022247314453125,
0.01184844970703125,
-0.0177764892578125,
0.0201873779296875,
-0.018310546875,
0.029876708984375,
0.06597900390625,
0.009246826171875,
-0.0190582275390625,
-0.00789642333984375,
-0.0069122314453125,
-0.01372528076171875,
0.0140380859375,
-0.0083465576171875,
-0.038330078125,
-0.053070068359375,
-0.01374053955078125,
0.0294952392578125,
0.11688232421875,
-0.01403045654296875,
-0.06109619140625,
0.01456451416015625,
0.060089111328125,
-0.018035888671875,
-0.061859130859375,
0.00820159912109375,
-0.0528564453125,
-0.01174163818359375,
-0.03704833984375,
-0.030548095703125,
-0.008575439453125,
-0.01372528076171875,
0.0009632110595703125,
0.007404327392578125,
-0.02838134765625,
-0.02130126953125,
-0.022918701171875,
-0.0537109375,
-0.03021240234375,
0.01361846923828125,
0.00792694091796875,
-0.0015773773193359375,
0.05010986328125,
-0.01242828369140625,
-0.05523681640625,
-0.0283050537109375,
-0.061767578125,
0.0030517578125,
0.00653076171875,
0.0230712890625,
-0.031982421875,
0.0136566162109375,
0.0057830810546875,
0.0140228271484375,
0.018951416015625,
-0.01280975341796875,
-0.02947998046875,
-0.006984710693359375,
-0.017120361328125,
-0.00919342041015625,
0.01288604736328125,
0.00930023193359375,
0.00439453125,
0.00862884521484375,
-0.045745849609375,
-0.01551055908203125,
0.0198974609375,
-0.0263214111328125,
-0.018890380859375,
0.0015001296997070312,
-0.0224609375,
-0.00383758544921875,
0.021331787109375,
-0.01273345947265625,
0.030975341796875,
0.006183624267578125,
-0.01551055908203125,
-0.0051727294921875,
-0.016754150390625,
-0.03521728515625,
0.008544921875,
0.0771484375,
-0.01242828369140625,
-0.0247650146484375,
0.0287322998046875,
-0.00936126708984375,
0.023712158203125,
-0.057708740234375,
-0.00201416015625,
-0.0806884765625,
0.056488037109375,
-0.0099639892578125,
0.0343017578125,
-0.04949951171875,
-0.03546142578125,
-0.0052490234375,
0.1279296875,
-0.0200958251953125,
-0.007648468017578125,
0.0001811981201171875,
0.020263671875,
-0.0089263916015625,
-0.0248565673828125,
-0.03424072265625,
-0.020751953125,
-0.034027099609375,
-0.0131683349609375,
-0.024261474609375,
-0.00795745849609375,
-0.006481170654296875,
0.00284576416015625,
-0.00945281982421875,
-0.0335693359375,
0.03265380859375,
-0.07879638671875,
0.01024627685546875,
0.00415802001953125,
-0.00292205810546875,
-0.037750244140625,
0.00394439697265625,
-0.042724609375,
-0.07098388671875,
-0.0026836395263671875,
-0.05194091796875,
0.05279541015625,
0.0408935546875,
-0.03704833984375,
-0.01007080078125,
0.02337646484375,
0.0230560302734375,
0.055694580078125,
0.002902984619140625,
0.0013284683227539062,
-0.014129638671875,
-0.0236358642578125,
0.0269622802734375,
-0.048675537109375,
-0.022125244140625,
-0.03668212890625,
-0.0008988380432128906,
0.0038356781005859375,
-0.0201873779296875,
-0.0172882080078125,
-0.0174102783203125,
-0.00982666015625,
-0.01483917236328125,
-0.035186767578125,
-0.060028076171875,
-0.006988525390625,
-0.04986572265625,
-0.005527496337890625,
-0.00907135009765625,
-0.03631591796875,
0.043182373046875,
0.021087646484375,
-0.0034656524658203125,
0.027801513671875,
0.1177978515625,
0.00946044921875,
-0.0211639404296875,
-0.1494140625,
-0.004764556884765625,
0.0428466796875,
-0.0171966552734375,
0.00977325439453125,
0.0032215118408203125,
-0.047607421875,
0.07421875,
0.00257110595703125,
-0.003284454345703125,
-0.03253173828125,
0.09161376953125,
0.02459716796875,
0.0253448486328125,
-0.021820068359375,
-0.0003483295440673828,
0.0031948089599609375,
0.037811279296875,
-0.0159912109375,
-0.026641845703125,
-0.030914306640625,
0.0362548828125,
-0.02069091796875,
0.036712646484375,
-0.042266845703125,
-0.06463623046875,
0.0205230712890625,
-0.045440673828125,
0.0303497314453125,
0.036224365234375,
-0.014129638671875,
0.0631103515625,
-0.0037364959716796875,
0.007137298583984375,
0.005306243896484375,
0.024139404296875,
0.0040435791015625,
0.032470703125,
-0.002956390380859375,
-0.005786895751953125,
-0.0240631103515625,
0.00234222412109375,
0.040435791015625,
-0.0328369140625,
-0.049774169921875,
-0.03240966796875,
-0.0247650146484375,
0.013336181640625,
0.037506103515625,
0.0073699951171875,
0.0357666015625,
0.045257568359375,
-0.002410888671875,
0.0036487579345703125,
-0.03302001953125,
0.036834716796875,
-0.046875,
-0.0229339599609375,
-0.0125274658203125,
-0.025665283203125,
-0.042999267578125,
0.039276123046875,
-0.0279388427734375,
-0.0023670196533203125,
0.01070404052734375,
0.050018310546875,
0.0248870849609375,
0.02764892578125,
0.0309906005859375,
-0.01739501953125,
0.00849151611328125,
-0.0257568359375,
-0.0230865478515625,
-0.0193023681640625,
0.0037479400634765625,
-0.0188140869140625,
0.0062408447265625,
-0.03802490234375,
-0.02117919921875,
0.06292724609375,
-0.019561767578125,
-0.00390625,
-0.0241546630859375,
-0.0168609619140625,
-0.037841796875,
0.01320648193359375,
0.041961669921875,
0.01279449462890625,
-0.017578125,
0.02044677734375,
-0.0191802978515625,
-0.041015625,
-0.01343536376953125,
-0.031280517578125,
0.02069091796875,
-0.045806884765625,
-0.046142578125,
-0.02362060546875,
-0.01132965087890625,
-0.005764007568359375,
-0.00991058349609375,
-0.03350830078125,
0.007549285888671875,
-0.0066986083984375,
0.0124053955078125,
-0.05914306640625,
0.042999267578125,
-0.01806640625,
-0.01163482666015625,
-0.0345458984375,
0.038848876953125,
0.0067138671875,
0.0192108154296875,
-0.0189971923828125,
-0.025634765625,
-0.0235137939453125,
-0.01497650146484375,
-0.00705718994140625,
-0.0200042724609375,
-0.018341064453125,
-0.004657745361328125,
-0.0013294219970703125,
0.0175018310546875,
-0.015899658203125,
-0.03253173828125,
0.003276824951171875,
-0.01032257080078125,
-0.0124664306640625,
-0.024169921875,
0.00786590576171875,
0.074462890625,
-0.050445556640625,
0.078369140625,
0.001956939697265625,
0.00719451904296875,
-0.05450439453125,
-0.00682830810546875,
0.02984619140625,
-0.038665771484375,
-0.05548095703125,
-0.04376220703125,
-0.034393310546875,
0.03961181640625,
0.04656982421875,
-0.0140838623046875,
0.0183563232421875,
-0.007793426513671875,
0.00876617431640625,
0.004787445068359375,
0.04058837890625,
0.0011491775512695312,
-0.028656005859375,
0.071533203125,
-0.0071258544921875,
0.0047760009765625,
-0.016571044921875,
-0.0142364501953125,
0.0309295654296875,
-0.00894927978515625,
0.020263671875,
-0.00707244873046875,
-0.046417236328125,
0.0413818359375,
-0.01529693603515625,
0.01507568359375,
0.0345458984375,
-0.012054443359375,
0.023468017578125,
-0.017181396484375,
-0.005565643310546875,
0.01505279541015625,
-0.007625579833984375,
0.08087158203125,
0.0088653564453125,
-0.04949951171875,
0.042694091796875,
-0.05584716796875,
0.050933837890625,
0.04388427734375,
0.06976318359375,
-0.085205078125,
0.036163330078125,
-0.0054473876953125,
-0.027099609375,
0.052947998046875,
-0.0091705322265625,
-0.007595062255859375,
-0.018768310546875,
0.01000213623046875,
0.00010627508163452148,
-0.0350341796875,
-0.00730133056640625,
0.00128936767578125,
-0.0017480850219726562,
0.0195159912109375,
0.009979248046875,
-0.01189422607421875,
0.0006079673767089844,
-0.045318603515625,
-0.004344940185546875,
-0.0217132568359375,
0.01702880859375,
0.04046630859375,
0.0020084381103515625,
-0.0180511474609375,
-0.046112060546875,
0.0072021484375,
-0.0074310302734375,
-0.055267333984375,
-0.0004711151123046875,
-0.026641845703125,
0.0748291015625,
0.05242919921875,
-0.0184173583984375,
-0.0030975341796875,
0.01126861572265625,
0.049713134765625,
-0.0226898193359375,
-0.002597808837890625,
0.01580810546875,
0.035614013671875,
-0.0677490234375,
0.0189361572265625,
-0.049102783203125,
0.0217437744140625,
-0.0177459716796875,
-0.03790283203125,
0.08441162109375,
-0.026947021484375,
-0.00881195068359375,
0.006866455078125,
-0.0006299018859863281,
0.00286865234375,
-0.070068359375,
-0.0112152099609375,
-0.053558349609375,
0.0178985595703125,
-0.046630859375,
0.015869140625,
0.0251617431640625,
-0.06427001953125,
-0.0504150390625,
0.08502197265625,
0.00055694580078125,
0.000385284423828125,
-0.0120849609375,
0.044586181640625,
-0.0000787973403930664,
0.0279083251953125,
-0.047027587890625,
0.0390625,
-0.043609619140625,
0.047882080078125,
-0.057861328125,
0.007091522216796875,
0.0008525848388671875,
0.00528717041015625,
0.09588623046875,
0.01873779296875,
-0.024139404296875,
-0.004302978515625,
0.04156494140625,
-0.006725311279296875,
-0.03564453125,
0.048858642578125,
0.022613525390625,
0.01904296875,
0.0693359375,
-0.01523590087890625,
0.03369140625,
0.02783203125,
0.004261016845703125,
0.046661376953125,
0.004428863525390625,
0.0020809173583984375,
-0.0341796875,
0.0267333984375,
0.012420654296875,
-0.03045654296875,
-0.00482177734375,
-0.018951416015625,
-0.0024127960205078125,
0.00724029541015625,
0.0232391357421875,
-0.0233917236328125,
-0.01617431640625,
-0.01312255859375,
0.0258636474609375,
0.0104522705078125,
0.0035343170166015625,
0.0221710205078125,
0.00899505615234375,
0.017913818359375,
0.0013828277587890625,
0.001613616943359375,
0.00855255126953125,
-0.0102081298828125,
0.0614013671875,
0.00844573974609375,
0.0204925537109375,
-0.055511474609375,
-0.016845703125,
0.0163116455078125,
0.06866455078125,
-0.045745849609375,
-0.053955078125,
0.009613037109375,
0.0167083740234375,
0.01788330078125,
0.026123046875,
0.049957275390625,
0.035003662109375,
0.0567626953125,
-0.0272979736328125,
-0.015960693359375,
-0.0006875991821289062,
0.0246734619140625,
-0.007518768310546875,
-0.0061187744140625,
-0.0094146728515625,
-0.0311279296875,
0.0018978118896484375,
-0.027923583984375,
-0.0130767822265625,
-0.01007080078125,
0.03338623046875,
-0.03424072265625,
0.0182037353515625,
0.006252288818359375,
0.0004096031188964844,
0.0206298828125,
0.0019330978393554688,
-0.0011625289916992188,
-0.042449951171875,
-0.046966552734375,
0.0247650146484375,
0.036346435546875,
-0.01483917236328125,
0.05682373046875,
0.05133056640625,
0.037384033203125,
-0.01068115234375,
-0.0177001953125,
0.04193115234375,
-0.0249176025390625,
-0.005283355712890625,
-0.061126708984375,
0.00389862060546875,
0.0194091796875,
0.003448486328125,
0.00572967529296875,
-0.0223236083984375,
0.046539306640625,
-0.0224456787109375,
0.06097412109375,
-0.005725860595703125,
-0.018768310546875,
0.0290985107421875,
-0.033935546875,
0.09637451171875,
0.0018339157104492188,
-0.00714111328125,
-0.005512237548828125,
-0.0026988983154296875,
0.010955810546875,
-0.028472900390625,
0.0208892822265625,
0.0084075927734375,
0.0270843505859375,
0.0016260147094726562,
-0.0132904052734375,
0.039459228515625,
-0.02398681640625,
-0.0009870529174804688,
0.00780487060546875,
0.00799560546875,
-0.011260986328125,
-0.031829833984375,
-0.018585205078125,
-0.005451202392578125,
0.02886962890625,
0.015655517578125,
0.047698974609375,
-0.00445556640625,
0.0262451171875,
0.00804901123046875,
0.003948211669921875,
-0.010101318359375,
0.002986907958984375,
0.015533447265625,
-0.006580352783203125,
-0.006336212158203125,
-0.00875091552734375,
-0.00943756103515625,
-0.0009407997131347656,
0.0304107666015625,
-0.03594970703125,
-0.029541015625,
-0.00555419921875,
0.038055419921875,
0.0316162109375,
0.006961822509765625,
-0.028900146484375,
-0.020233154296875,
0.0012664794921875,
-0.004817962646484375,
0.019012451171875,
-0.00036907196044921875,
-0.008209228515625,
0.054229736328125,
0.0272979736328125,
0.02960205078125,
0.005390167236328125,
-0.045013427734375,
0.035491943359375,
0.041748046875,
-0.038909912109375,
-0.0174560546875,
-0.0030975341796875,
-0.0302886962890625,
0.00803375244140625,
-0.01436614990234375,
0.05548095703125,
-0.0028133392333984375,
-0.054229736328125,
0.015625,
0.02618408203125,
0.048248291015625,
-0.003665924072265625,
0.027435302734375,
-0.010467529296875,
0.011138916015625,
0.01024627685546875,
-0.028167724609375,
-0.0226898193359375,
-0.04931640625,
0.001010894775390625,
0.03326416015625,
-0.0299530029296875,
-0.002178192138671875,
-0.07843017578125,
-0.0102691650390625,
0.0171356201171875,
-0.00751495361328125,
-0.037261962890625,
0.006011962890625,
-0.031463623046875,
0.024658203125,
-0.02264404296875,
0.03033447265625,
-0.011260986328125,
0.04937744140625,
0.0312347412109375,
-0.0291748046875,
-0.00382232666015625,
0.0635986328125,
0.018341064453125,
0.0325927734375,
0.024261474609375,
-0.0289764404296875,
-0.0016412734985351562,
0.04229736328125,
0.034027099609375,
0.0927734375,
0.0156707763671875,
0.004169464111328125,
0.04302978515625,
-0.031951904296875,
-0.0222930908203125,
-0.03558349609375,
0.00891876220703125,
-0.05548095703125,
-0.0235137939453125,
-0.062469482421875,
0.016510009765625,
0.007434844970703125,
-0.042510986328125,
-0.0452880859375,
0.072998046875,
-0.0193328857421875,
-0.009490966796875,
-0.009185791015625,
-0.004489898681640625,
0.0214996337890625,
-0.0188140869140625,
-0.00576019287109375,
-0.031890869140625,
-0.04376220703125,
-0.006572723388671875,
-0.000946044921875,
0.03143310546875,
0.00653839111328125,
-0.0020084381103515625,
-0.05615234375,
-0.0089874267578125,
-0.019683837890625,
-0.0016183853149414062,
0.00191497802734375,
-0.01108551025390625,
0.0303955078125,
0.0367431640625,
-0.04022216796875,
0.00394439697265625,
0.017364501953125,
0.023834228515625,
-0.0215911865234375,
-0.01004791259765625,
0.0157318115234375,
0.041778564453125,
0.051513671875,
0.0728759765625,
0.00194549560546875,
-0.07611083984375,
0.00812530517578125,
-0.0097808837890625,
0.00925445556640625,
0.01129150390625,
-0.0127410888671875,
-0.0467529296875,
-0.00832366943359375,
0.03118896484375,
0.00024700164794921875,
-0.0023746490478515625,
0.0670166015625,
0.01303863525390625,
0.00034117698669433594,
0.090576171875,
-0.034393310546875,
-0.04937744140625,
0.0020694732666015625,
0.0255889892578125,
-0.0276641845703125,
-0.0018901824951171875,
-0.0053253173828125,
0.0030956268310546875,
-0.00138092041015625,
0.007694244384765625,
0.045989990234375,
0.0268402099609375,
-0.07635498046875,
0.01250457763671875,
0.0022068023681640625,
0.0060882568359375,
-0.055938720703125,
-0.0478515625,
0.0000438690185546875,
0.0085296630859375,
0.007537841796875,
0.022491455078125,
-0.024261474609375,
-0.005771636962890625,
0.0012044906616210938,
-0.0031185150146484375,
-0.02490234375,
-0.08056640625,
-0.04638671875,
0.01555633544921875,
-0.00630950927734375,
-0.0012273788452148438,
0.0347900390625,
-0.0205841064453125,
0.017669677734375,
-0.0291748046875,
0.032623291015625,
-0.030792236328125,
0.0154876708984375,
-0.0782470703125,
-0.00981903076171875,
0.0185089111328125
] |
da42685c790c8d9c5f2fd91226308313159f0ec1
|
Wordpress Stackexchange
Q: How to Check If A Plugin Is Enabled Through API? How to find out if a particular plugin is enabled in a sub-blog in a multisite blog?
A: Hm, I am not entirely sure about mechanics here. Usual is_plugin_active() checks if plugin is in active_plugins option.
By this logic you could probably retrieve active_plugins of specific blog with get_blog_option() and check it for plugin.
|
Q: How to Check If A Plugin Is Enabled Through API? How to find out if a particular plugin is enabled in a sub-blog in a multisite blog?
A: Hm, I am not entirely sure about mechanics here. Usual is_plugin_active() checks if plugin is in active_plugins option.
By this logic you could probably retrieve active_plugins of specific blog with get_blog_option() and check it for plugin.
A: Ya what Rarst said, for his example you can do something like the following but it returns an array with active plugin name/plugin_filename.php
get_option('active_plugins');
You can try using use the global $plugin to get a lot more data.
global $plugins;
$plugins = array(
'all' => apply_filters( 'all_plugins', get_plugins() ),
'search' => array(),
'active' => array(),
'inactive' => array(),
'recently_activated' => array(),
'upgrade' => array(),
'mustuse' => array(),
'dropins' => array()
);
|
wordpress
|
{
"language": "en",
"length": 137,
"provenance": "stackexchange_00019.jsonl.gz:408512",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14410"
}
|
[
0.0292510986328125,
0.00931549072265625,
0.0105133056640625,
-0.00525665283203125,
0.0146484375,
-0.017120361328125,
0.034820556640625,
-0.030426025390625,
0.042449951171875,
0.003810882568359375,
-0.0438232421875,
0.007740020751953125,
-0.00658416748046875,
-0.0190277099609375,
-0.00897216796875,
-0.0217437744140625,
0.0216522216796875,
0.000835418701171875,
-0.01374053955078125,
-0.01451873779296875,
0.0072479248046875,
0.019744873046875,
-0.0531005859375,
0.07122802734375,
0.0343017578125,
-0.031036376953125,
0.056793212890625,
-0.01242828369140625,
0.03790283203125,
-0.0157318115234375,
0.032379150390625,
-0.026153564453125,
-0.01183319091796875,
0.046478271484375,
0.008392333984375,
-0.034576416015625,
0.03460693359375,
0.0086669921875,
0.01462554931640625,
0.039093017578125,
0.044097900390625,
-0.0232391357421875,
-0.0265655517578125,
0.05010986328125,
-0.0145111083984375,
-0.062469482421875,
0.059112548828125,
-0.022674560546875,
0.022735595703125,
-0.0192718505859375,
-0.006938934326171875,
-0.0177001953125,
0.0083465576171875,
-0.047943115234375,
-0.0322265625,
-0.0443115234375,
-0.0023193359375,
0.020355224609375,
0.038116455078125,
-0.004451751708984375,
-0.031951904296875,
-0.014801025390625,
0.025177001953125,
-0.0233154296875,
0.0313720703125,
-0.01128387451171875,
-0.0096282958984375,
0.041595458984375,
-0.035552978515625,
0.0196990966796875,
0.025360107421875,
-0.045166015625,
0.02801513671875,
0.05682373046875,
-0.039306640625,
-0.09197998046875,
0.0175933837890625,
-0.022125244140625,
0.0513916015625,
-0.00893402099609375,
0.0206298828125,
0.02984619140625,
0.022857666015625,
-0.023040771484375,
-0.010467529296875,
-0.0005125999450683594,
-0.01152801513671875,
-0.01438140869140625,
-0.029205322265625,
0.0160064697265625,
-0.0311737060546875,
-0.01552581787109375,
0.0030918121337890625,
0.0016326904296875,
-0.0268096923828125,
0.01104736328125,
0.056060791015625,
0.08099365234375,
-0.0202789306640625,
-0.0299072265625,
0.0124053955078125,
-0.058868408203125,
-0.00376129150390625,
-0.0277557373046875,
0.0014162063598632812,
0.038421630859375,
0.02947998046875,
-0.006626129150390625,
0.021240234375,
0.0023212432861328125,
-0.00478363037109375,
0.051727294921875,
-0.005954742431640625,
-0.028167724609375,
-0.01520538330078125,
-0.0022373199462890625,
-0.03533935546875,
0.0200042724609375,
0.00885009765625,
-0.022735595703125,
0.0209808349609375,
0.06951904296875,
-0.02154541015625,
-0.044158935546875,
-0.01544189453125,
-0.011993408203125,
-0.01314544677734375,
-0.03985595703125,
-0.0390625,
0.015625,
-0.0209808349609375,
0.0279083251953125,
0.025177001953125,
-0.01181793212890625,
-0.041290283203125,
-0.0112457275390625,
0.01219940185546875,
0.0621337890625,
0.0150299072265625,
-0.01641845703125,
0.0214080810546875,
-0.042633056640625,
-0.01690673828125,
0.016204833984375,
-0.0008711814880371094,
-0.00592803955078125,
0.01593017578125,
0.0253143310546875,
-0.007579803466796875,
-0.0300445556640625,
0.0582275390625,
-0.04449462890625,
0.0002033710479736328,
0.00091552734375,
0.038543701171875,
-0.01910400390625,
0.0302581787109375,
-0.020111083984375,
0.0217437744140625,
-0.0174560546875,
-0.00342559814453125,
0.017242431640625,
0.0439453125,
-0.036041259765625,
-0.02685546875,
-0.037200927734375,
-0.0218963623046875,
-0.00521087646484375,
0.0300445556640625,
0.0033359527587890625,
0.00262451171875,
0.005725860595703125,
0.027618408203125,
0.0276641845703125,
0.005741119384765625,
0.028564453125,
0.0008215904235839844,
0.0252227783203125,
0.0210723876953125,
0.01898193359375,
-0.00586700439453125,
-0.0117645263671875,
0.07122802734375,
-0.018829345703125,
-0.04193115234375,
0.037506103515625,
-0.0024089813232421875,
0.017913818359375,
0.00342559814453125,
-0.0036220550537109375,
0.028533935546875,
0.03143310546875,
-0.00231170654296875,
-0.0034313201904296875,
-0.004680633544921875,
-0.0170745849609375,
-0.0084686279296875,
0.01380157470703125,
-0.01306915283203125,
-0.028076171875,
0.034454345703125,
-0.006683349609375,
-0.00024056434631347656,
-0.006626129150390625,
-0.07476806640625,
-0.016082763671875,
-0.01318359375,
0.020477294921875,
0.0259246826171875,
0.03125,
-0.0185546875,
-0.00803375244140625,
0.01617431640625,
-0.03753662109375,
-0.01251983642578125,
0.00304412841796875,
-0.0176849365234375,
0.029815673828125,
0.01007843017578125,
0.00136566162109375,
0.003253936767578125,
-0.00408172607421875,
-0.006198883056640625,
-0.0172119140625,
0.0160369873046875,
-0.00910186767578125,
-0.0062255859375,
-0.01163482666015625,
0.026153564453125,
0.0181732177734375,
0.00921630859375,
-0.00679779052734375,
0.04052734375,
0.040496826171875,
-0.01433563232421875,
-0.000278472900390625,
0.044952392578125,
-0.04278564453125,
0.0128326416015625,
0.027740478515625,
0.0418701171875,
0.0159454345703125,
-0.0008664131164550781,
-0.00629425048828125,
0.032318115234375,
-0.059906005859375,
-0.0062255859375,
-0.006168365478515625,
0.03216552734375,
0.08251953125,
-0.091796875,
0.01201629638671875,
0.036529541015625,
0.05743408203125,
-0.0037899017333984375,
0.051544189453125,
-0.0008974075317382812,
-0.0305328369140625,
-0.01187896728515625,
0.0169219970703125,
0.0172576904296875,
0.0291900634765625,
-0.0233001708984375,
0.0268707275390625,
0.050933837890625,
0.039764404296875,
0.04681396484375,
0.051849365234375,
-0.02191162109375,
0.029876708984375,
0.0031528472900390625,
-0.002132415771484375,
0.001514434814453125,
0.049407958984375,
0.08502197265625,
0.024627685546875,
-0.049072265625,
-0.04620361328125,
0.03814697265625,
0.039825439453125,
-0.04925537109375,
-0.031646728515625,
-0.052337646484375,
-0.014892578125,
0.00585174560546875,
-0.050689697265625,
0.00972747802734375,
-0.01690673828125,
-0.04693603515625,
-0.01898193359375,
0.0165557861328125,
0.023223876953125,
-0.033782958984375,
0.03167724609375,
-0.00919342041015625,
-0.01224517822265625,
-0.017669677734375,
-0.06011962890625,
0.06170654296875,
-0.044677734375,
0.0198211669921875,
0.07330322265625,
-0.0012989044189453125,
0.01267242431640625,
0.005107879638671875,
-0.047576904296875,
-0.006175994873046875,
0.0038738250732421875,
-0.005828857421875,
0.025390625,
-0.0859375,
0.048309326171875,
0.005401611328125,
0.00957489013671875,
-0.02484130859375,
-0.046295166015625,
-0.0233001708984375,
-0.015960693359375,
-0.0863037109375,
-0.0399169921875,
-0.0211181640625,
-0.07806396484375,
0.04364013671875,
-0.03533935546875,
-0.0268402099609375,
-0.016693115234375,
0.00597381591796875,
0.022552490234375,
-0.0299072265625,
-0.0401611328125,
-0.024993896484375,
-0.0657958984375,
-0.05059814453125,
-0.00034117698669433594,
0.0119781494140625,
0.00649261474609375,
0.005794525146484375,
0.0692138671875,
-0.0004451274871826172,
-0.06072998046875,
-0.006534576416015625,
-0.0352783203125,
-0.0160369873046875,
0.01148223876953125,
-0.00945281982421875,
0.006175994873046875,
-0.0165557861328125,
0.0196990966796875,
0.0051727294921875,
0.0194549560546875,
-0.025054931640625,
-0.0066070556640625,
0.0164947509765625,
0.002056121826171875,
0.0203704833984375,
-0.031982421875,
-0.015899658203125,
0.0258941650390625,
-0.01224517822265625,
-0.03814697265625,
0.01326751708984375,
-0.0498046875,
-0.0418701171875,
0.0233917236328125,
0.018035888671875,
0.006175994873046875,
0.0095367431640625,
-0.01446533203125,
-0.0051422119140625,
-0.0010471343994140625,
-0.00949859619140625,
-0.06048583984375,
0.04559326171875,
0.00738525390625,
0.02099609375,
0.008758544921875,
0.01548004150390625,
-0.0196075439453125,
-0.02752685546875,
-0.02801513671875,
-0.0079193115234375,
-0.06378173828125,
0.041534423828125,
-0.07598876953125,
0.0262603759765625,
0.0211181640625,
-0.00972747802734375,
-0.0077056884765625,
0.0022602081298828125,
-0.0100250244140625,
-0.0132293701171875,
0.019134521484375,
-0.055999755859375,
-0.01117706298828125,
-0.0028553009033203125,
-0.01184844970703125,
0.0250396728515625,
-0.0005860328674316406,
-0.0733642578125,
-0.01055145263671875,
-0.06341552734375,
-0.0226287841796875,
-0.02484130859375,
-0.03643798828125,
0.0092315673828125,
-0.02349853515625,
-0.023101806640625,
-0.0318603515625,
0.0267181396484375,
-0.046783447265625,
-0.0215911865234375,
0.01995849609375,
-0.0233001708984375,
-0.0219573974609375,
-0.01201629638671875,
-0.014984130859375,
-0.0450439453125,
0.007366180419921875,
-0.06988525390625,
0.032989501953125,
0.0506591796875,
-0.03955078125,
-0.007114410400390625,
0.0015344619750976562,
-0.004741668701171875,
-0.01568603515625,
-0.0005168914794921875,
0.0007081031799316406,
-0.004825592041015625,
0.0246124267578125,
-0.01148223876953125,
-0.00386810302734375,
0.003925323486328125,
0.0143585205078125,
-0.040374755859375,
0.0120086669921875,
0.00011563301086425781,
-0.0238800048828125,
0.0467529296875,
-0.0443115234375,
-0.0056915283203125,
-0.0179901123046875,
-0.0372314453125,
-0.032928466796875,
-0.03985595703125,
0.00235748291015625,
0.0245513916015625,
-0.0016260147094726562,
0.04498291015625,
-0.0207366943359375,
0.0030307769775390625,
-0.004634857177734375,
0.10546875,
0.0136260986328125,
-0.0092926025390625,
-0.03155517578125,
0.03594970703125,
0.0299224853515625,
0.034759521484375,
0.01453399658203125,
0.021240234375,
-0.01654052734375,
-0.002685546875,
0.0138397216796875,
0.0084228515625,
-0.01218414306640625,
-0.016845703125,
0.02252197265625,
-0.0079193115234375,
-0.0014791488647460938,
0.0265960693359375,
0.0303497314453125,
-0.00870513916015625,
-0.035308837890625,
-0.01043701171875,
-0.0240936279296875,
0.035064697265625,
-0.03326416015625,
0.058807373046875,
-0.0226898193359375,
-0.024810791015625,
0.0151214599609375,
0.0157318115234375,
0.010345458984375,
0.043914794921875,
-0.0216217041015625,
0.009674072265625,
-0.0048370361328125,
-0.004150390625,
0.0208587646484375,
0.0650634765625,
-0.01568603515625,
0.03271484375,
0.00817108154296875,
-0.0292816162109375,
-0.0249176025390625,
-0.01413726806640625,
0.044525146484375,
-0.043212890625,
-0.07196044921875,
-0.006103515625,
-0.006046295166015625,
0.03350830078125,
0.060211181640625,
-0.011444091796875,
0.054534912109375,
0.0127105712890625,
-0.04962158203125,
-0.0024662017822265625,
-0.0302581787109375,
-0.0185699462890625,
-0.06317138671875,
-0.03997802734375,
-0.05987548828125,
0.00496673583984375,
-0.01219940185546875,
0.042022705078125,
-0.039794921875,
0.025848388671875,
-0.005306243896484375,
-0.0005044937133789062,
0.00632476806640625,
0.00982666015625,
0.036468505859375,
-0.0229949951171875,
-0.032196044921875,
0.00788116455078125,
-0.003032684326171875,
-0.040313720703125,
-0.0211181640625,
-0.004138946533203125,
0.035797119140625,
0.0252227783203125,
0.0065155029296875,
0.032073974609375,
0.03277587890625,
-0.03485107421875,
0.0570068359375,
0.00844573974609375,
-0.057281494140625,
-0.04071044921875,
0.016815185546875,
0.050811767578125,
-0.0062103271484375,
-0.02215576171875,
-0.01139068603515625,
-0.016326904296875,
0.00286102294921875,
-0.0056610107421875,
-0.05462646484375,
0.032257080078125,
0.049713134765625,
-0.032958984375,
-0.01497650146484375,
0.00899505615234375,
-0.015899658203125,
-0.018310546875,
-0.0185699462890625,
-0.0119171142578125,
0.03662109375,
-0.019622802734375,
0.0226287841796875,
-0.0199127197265625,
-0.01413726806640625,
0.0051727294921875,
0.0108184814453125,
0.042388916015625,
0.0237884521484375,
-0.10699462890625,
0.036163330078125,
-0.043182373046875,
-0.006412506103515625,
-0.030853271484375,
-0.037689208984375,
-0.07861328125,
-0.0261383056640625,
0.01081085205078125,
0.0245208740234375,
-0.01837158203125,
-0.030609130859375,
0.0262908935546875,
-0.012237548828125,
-0.01458740234375,
0.010894775390625,
0.007720947265625,
0.080810546875,
-0.0097503662109375,
0.03997802734375,
0.047943115234375,
0.05804443359375,
-0.047271728515625,
-0.0194854736328125,
-0.01088714599609375,
-0.02459716796875,
-0.00676727294921875,
-0.004047393798828125,
0.0308380126953125,
0.0160980224609375,
0.022216796875,
0.01477813720703125,
-0.0033721923828125,
0.006053924560546875,
0.00516510009765625,
-0.013671875,
-0.03436279296875,
0.02294921875,
0.0101776123046875,
0.00437164306640625,
-0.037078857421875,
-0.0184326171875,
-0.004383087158203125,
-0.01593017578125,
0.012481689453125,
0.005138397216796875,
-0.01157379150390625,
0.0177001953125,
-0.018341064453125,
0.0531005859375,
0.032684326171875,
0.001861572265625,
0.030120849609375,
0.031402587890625,
0.017333984375,
-0.037078857421875,
-0.01273345947265625,
0.006435394287109375,
-0.0025959014892578125,
-0.0007371902465820312,
-0.0218963623046875,
-0.00543212890625,
-0.005138397216796875,
-0.017181396484375,
0.0015916824340820312,
0.00850677490234375,
0.02581787109375,
-0.04754638671875,
0.0172271728515625,
0.0031585693359375,
0.0026397705078125,
0.0191192626953125,
-0.0215606689453125,
0.000059664249420166016,
-0.01256561279296875,
0.051025390625,
0.005611419677734375,
-0.0178070068359375,
0.0186767578125,
-0.00848388671875,
-0.024505615234375,
-0.0297393798828125,
0.046417236328125,
0.035491943359375,
0.025726318359375,
0.0265655517578125,
-0.01148223876953125,
0.0263214111328125,
-0.0106353759765625,
0.01445770263671875,
0.00490570068359375,
-0.005397796630859375,
-0.043212890625,
0.0180816650390625,
-0.019195556640625,
-0.0165557861328125,
-0.0106658935546875,
-0.028076171875,
0.033538818359375,
0.07562255859375,
-0.0303192138671875,
-0.00820159912109375,
0.06207275390625,
-0.0369873046875,
-0.047576904296875,
-0.009613037109375,
0.016693115234375,
0.0733642578125,
-0.0241851806640625,
0.030120849609375,
-0.006656646728515625,
-0.001190185546875,
-0.009033203125,
-0.005992889404296875,
0.05780029296875,
-0.00946807861328125,
-0.0186309814453125,
0.032867431640625,
0.03900146484375,
-0.020233154296875,
-0.0306396484375,
0.01568603515625,
-0.0283355712890625,
0.01898193359375,
-0.019744873046875,
0.0233917236328125,
-0.00102996826171875,
-0.016082763671875,
-0.04400634765625,
0.09619140625,
-0.016387939453125,
0.0183258056640625,
0.0116729736328125,
0.051116943359375,
-0.032562255859375,
0.01006317138671875,
-0.030303955078125,
0.038055419921875,
-0.05810546875,
0.061126708984375,
-0.056060791015625,
0.00420379638671875,
0.0248260498046875,
0.02874755859375,
0.0222625732421875,
0.0084075927734375,
-0.02520751953125,
-0.0312347412109375,
-0.03173828125,
-0.01806640625,
-0.028228759765625,
0.046539306640625,
-0.0013799667358398438,
0.0540771484375,
0.03741455078125,
-0.0560302734375,
0.0237274169921875,
-0.0237579345703125,
-0.0048370361328125,
0.0361328125,
-0.017425537109375,
-0.0033111572265625,
-0.024261474609375,
0.0167694091796875,
0.05499267578125,
-0.0288238525390625,
-0.04498291015625,
-0.029327392578125,
0.0255279541015625,
0.00830841064453125,
0.01258087158203125,
-0.0306243896484375,
0.0107574462890625,
-0.0139617919921875,
0.03216552734375,
-0.00969696044921875,
0.0302581787109375,
-0.034149169921875,
0.0113067626953125,
-0.01061248779296875,
-0.01296234130859375,
-0.0021820068359375,
0.0443115234375,
-0.05902099609375,
-0.0109710693359375,
0.006977081298828125,
0.015777587890625,
-0.007068634033203125,
0.0034332275390625,
-0.006328582763671875,
-0.0272064208984375,
-0.002513885498046875,
-0.0667724609375,
0.01611328125,
0.0261077880859375,
0.00473785400390625,
0.0406494140625,
-0.00788116455078125,
-0.00440216064453125,
0.0751953125,
-0.034576416015625,
-0.01248931884765625,
0.0261688232421875,
0.046478271484375,
0.01922607421875,
0.00024771690368652344,
-0.044342041015625,
-0.058624267578125,
-0.01410675048828125,
0.00455474853515625,
0.01158905029296875,
0.032318115234375,
-0.006099700927734375,
0.03997802734375,
-0.031768798828125,
-0.01096343994140625,
-0.03582763671875,
0.061920166015625,
-0.004291534423828125,
0.040740966796875,
-0.0777587890625,
-0.0770263671875,
0.0195465087890625,
0.057647705078125,
-0.0014181137084960938,
0.031829833984375,
0.0063323974609375,
0.036651611328125,
0.0008602142333984375,
0.00785064697265625,
0.08575439453125,
-0.002613067626953125,
0.01629638671875,
-0.028900146484375,
-0.0019664764404296875,
0.00768280029296875,
-0.0154266357421875,
-0.0101776123046875,
-0.0272674560546875,
0.059814453125,
-0.01110076904296875,
0.0189666748046875,
0.01171875,
0.00899505615234375,
0.0362548828125,
0.0430908203125,
0.00995635986328125,
0.02032470703125,
-0.08740234375,
0.0125579833984375,
-0.0672607421875,
-0.05609130859375,
0.0203704833984375,
0.04229736328125,
-0.0195465087890625,
0.01404571533203125,
0.0153045654296875,
-0.0182647705078125,
0.043304443359375,
-0.00313568115234375,
-0.00714111328125,
0.0411376953125,
0.0236358642578125,
0.0068206787109375,
-0.044921875,
-0.0218505859375,
-0.023834228515625,
0.03204345703125,
0.0294189453125,
0.04296875,
-0.004322052001953125,
0.0341796875,
0.007720947265625,
-0.02587890625,
0.011932373046875,
0.014801025390625,
-0.0295257568359375,
-0.0312042236328125,
-0.02001953125,
0.0168304443359375,
-0.0538330078125,
0.052093505859375,
0.0115509033203125,
0.0295867919921875,
0.056671142578125,
-0.0404052734375,
0.011749267578125,
0.01345062255859375,
0.0218353271484375,
-0.038421630859375,
-0.05572509765625,
-0.0283203125,
0.01666259765625,
-0.01187896728515625,
0.0160369873046875,
0.006565093994140625,
-0.01123046875,
-0.0225982666015625,
-0.0291900634765625,
-0.0300750732421875,
0.03570556640625,
-0.062225341796875,
0.0237579345703125,
-0.0279541015625,
-0.0025177001953125,
0.019012451171875,
-0.0120391845703125,
0.0240478515625,
0.00933074951171875,
0.0183868408203125,
0.02606201171875,
-0.0183258056640625,
0.038787841796875,
0.01959228515625,
0.036407470703125,
-0.031951904296875,
0.01076507568359375,
0.042449951171875,
0.0133209228515625,
0.013336181640625,
-0.0140380859375,
-0.00946044921875,
-0.04278564453125,
-0.013519287109375,
0.003704071044921875,
-0.0310211181640625,
-0.0124969482421875,
-0.006587982177734375,
-0.039215087890625,
0.0280303955078125,
-0.033294677734375,
0.01470184326171875,
-0.057891845703125,
-0.039794921875,
0.0233306884765625,
-0.0279083251953125,
-0.0275115966796875,
0.0106658935546875,
0.048980712890625,
0.0082855224609375,
0.0180206298828125,
-0.00981903076171875,
-0.0223236083984375,
0.01119232177734375,
0.04486083984375,
0.042694091796875,
-0.05291748046875,
0.0011911392211914062,
0.05914306640625,
0.058929443359375,
0.09326171875,
0.013885498046875,
0.00646209716796875,
0.01206207275390625,
-0.0000013709068298339844,
-0.0343017578125,
-0.035491943359375,
0.0267333984375,
-0.052642822265625,
-0.053436279296875,
-0.058746337890625,
0.00811004638671875,
0.0157012939453125,
-0.045318603515625,
-0.061492919921875,
0.0360107421875,
-0.01708984375,
-0.035400390625,
-0.058807373046875,
0.004123687744140625,
0.020782470703125,
0.0112457275390625,
-0.0206756591796875,
-0.00783538818359375,
-0.056732177734375,
0.00896453857421875,
0.0192413330078125,
0.014068603515625,
0.0190277099609375,
-0.01174163818359375,
-0.0261993408203125,
0.0203857421875,
0.00774383544921875,
0.0101470947265625,
-0.002651214599609375,
-0.0220794677734375,
0.031768798828125,
0.017974853515625,
-0.036865234375,
0.0033416748046875,
0.029541015625,
0.044464111328125,
-0.028472900390625,
-0.05352783203125,
0.00406646728515625,
0.0160064697265625,
0.051727294921875,
0.07550048828125,
0.00829315185546875,
-0.07763671875,
0.006927490234375,
-0.0229034423828125,
-0.052520751953125,
0.00835418701171875,
0.0290069580078125,
-0.032928466796875,
0.0318603515625,
-0.006145477294921875,
0.0011014938354492188,
-0.024383544921875,
0.004913330078125,
-0.0194549560546875,
-0.0179595947265625,
0.02093505859375,
-0.008941650390625,
0.005443572998046875,
-0.0222015380859375,
0.01004791259765625,
-0.01470947265625,
-0.00846099853515625,
-0.023193359375,
0.019500732421875,
-0.0153350830078125,
-0.0022945404052734375,
0.033203125,
0.00476837158203125,
-0.0305633544921875,
0.0157623291015625,
0.01398468017578125,
-0.0027256011962890625,
-0.010498046875,
-0.03863525390625,
-0.018707275390625,
0.00855255126953125,
-0.0017118453979492188,
-0.01018524169921875,
0.00461578369140625,
0.019134521484375,
0.00614166259765625,
0.04669189453125,
0.04278564453125,
0.043670654296875,
-0.0172271728515625,
0.06927490234375,
0.029510498046875,
-0.06854248046875,
0.0017795562744140625,
-0.020599365234375,
-0.01007080078125,
0.034698486328125,
-0.019256591796875,
-0.0679931640625,
0.0697021484375,
-0.0133056640625,
0.0274505615234375,
0.034881591796875
] |
6b13c02a5e6a7400d1691fa5e8331dc06cefb658
|
Wordpress Stackexchange
Q: Is it possible to rename a post format? Since WP 3.1, it's been possible to use Tumblr-style post formats. I want to use the 'aside' option in a theme, but I want it to have a different title in the WP admin area.
So, for example, when a user is writing a post, they have the option for the post to be, say, either 'Standard' or 'Quick' -- rather than 'Standard' or 'Aside'.
Is it possible to do this without modifying the core? It'd be great if it's something that could be pretty easily done via functions.php or the like. I live in hope...
Thanks!
A: I think this is the only way for now. Put this in your functions.php in your theme folder or create a simple plugin:
function rename_post_formats( $safe_text ) {
if ( $safe_text == 'Aside' )
return 'Quick';
return $safe_text;
}
add_filter( 'esc_html', 'rename_post_formats' );
//rename Aside in posts list table
function live_rename_formats() {
global $current_screen;
if ( $current_screen->id == 'edit-post' ) { ?>
<script type="text/javascript">
jQuery('document').ready(function() {
jQuery("span.post-state-format").each(function() {
if ( jQuery(this).text() == "Aside" )
jQuery(this).text("Quick");
});
});
</script>
<?php }
}
add_action('admin_head', 'live_rename_formats');
|
Q: Is it possible to rename a post format? Since WP 3.1, it's been possible to use Tumblr-style post formats. I want to use the 'aside' option in a theme, but I want it to have a different title in the WP admin area.
So, for example, when a user is writing a post, they have the option for the post to be, say, either 'Standard' or 'Quick' -- rather than 'Standard' or 'Aside'.
Is it possible to do this without modifying the core? It'd be great if it's something that could be pretty easily done via functions.php or the like. I live in hope...
Thanks!
A: I think this is the only way for now. Put this in your functions.php in your theme folder or create a simple plugin:
function rename_post_formats( $safe_text ) {
if ( $safe_text == 'Aside' )
return 'Quick';
return $safe_text;
}
add_filter( 'esc_html', 'rename_post_formats' );
//rename Aside in posts list table
function live_rename_formats() {
global $current_screen;
if ( $current_screen->id == 'edit-post' ) { ?>
<script type="text/javascript">
jQuery('document').ready(function() {
jQuery("span.post-state-format").each(function() {
if ( jQuery(this).text() == "Aside" )
jQuery(this).text("Quick");
});
});
</script>
<?php }
}
add_action('admin_head', 'live_rename_formats');
A: Post formats are hard-coded into WordPress. You can't change them, but as JohnnyPea points out you can hide the existing name with a couple of tricks.
Chip Bennett recommends setting up your own custom taxonomy if you really need to create your own set of post formats, and I strongly second that recommendation.
But take a second to think about this. Post formats are designed to help you style the output of your blog for the reader. The reader doesn't care if it's called an Aside or a Quick, they just care how the post content is presented. If you're just trying to change the post format label on the admin side for yourself, then please just roll your own custom taxonomy and use that.
A: The correct method would be to register a custom taxonomy, and not use core Post Formats at all.
A: A much more reliable (and less hacky) way to do this would be the following:
function rename_post_formats($translation, $text, $context, $domain) {
$names = array(
'Audio' => 'Podcast',
'Status' => 'Tweet'
);
if ($context == 'Post format') {
$translation = str_replace(array_keys($names), array_values($names), $text);
}
return $translation;
}
add_filter('gettext_with_context', 'rename_post_formats', 10, 4);
A: I've customized the post formats and display them in a tab bar horizontally along the top of the post editor page. I customize their names a lil somethin like this. It is quite an involved and hackish process but I pasted it into a Gist if you'd like to check it out: https://gist.github.com/dcondrey/059dec0c5b01197c9f11
Final result comes out looking somethin like this:
A: I see nothing wrong with altering the title of these post formats to suit the needs of your editorial team and process. Unless changing the names would break theme functionality from rendering them properly. The idea behind these formats is that a theme can state which are supported and only those would be listed in the editor.
From what I can tell @JohnyPea's method would not break anything on the theme side. I am curious if anyone has tried @Aaron's method. If so were you able to switch themes without issue.
Ultimately what we are talking about is making these semantically more useful to the editorial staff and a custom post type would likely be overkill if we are only interested in a name change/synonym.
|
wordpress
|
{
"language": "en",
"length": 574,
"provenance": "stackexchange_00019.jsonl.gz:408522",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14444"
}
|
[
0.026702880859375,
0.00348663330078125,
-0.04541015625,
-0.008026123046875,
0.01309967041015625,
-0.05072021484375,
0.030853271484375,
-0.01213836669921875,
-0.034088134765625,
0.044097900390625,
0.01105499267578125,
0.030609130859375,
-0.006046295166015625,
-0.018585205078125,
-0.002079010009765625,
-0.0084228515625,
0.040771484375,
0.00533294677734375,
0.0621337890625,
-0.0022335052490234375,
-0.0007700920104980469,
0.020172119140625,
0.035247802734375,
0.04052734375,
0.046722412109375,
-0.033660888671875,
0.09210205078125,
-0.0224761962890625,
0.045318603515625,
-0.001888275146484375,
0.05859375,
-0.0570068359375,
0.024444580078125,
0.01174163818359375,
-0.0226593017578125,
0.0145263671875,
0.019683837890625,
-0.0014944076538085938,
-0.0009417533874511719,
0.01995849609375,
0.02227783203125,
0.00350189208984375,
0.0081024169921875,
0.0115203857421875,
-0.01507568359375,
-0.046356201171875,
0.0423583984375,
-0.0217437744140625,
0.0611572265625,
0.0011587142944335938,
0.0017805099487304688,
-0.043609619140625,
-0.006137847900390625,
-0.0218658447265625,
-0.039520263671875,
0.0055999755859375,
-0.0567626953125,
0.04974365234375,
0.0289306640625,
0.051483154296875,
-0.005214691162109375,
0.0022068023681640625,
-0.0281219482421875,
-0.054534912109375,
0.0011844635009765625,
0.01496124267578125,
0.052947998046875,
0.005504608154296875,
0.0034503936767578125,
0.0219268798828125,
0.0270538330078125,
-0.005725860595703125,
0.0227508544921875,
-0.01629638671875,
0.0128021240234375,
0.0016279220581054688,
-0.035430908203125,
-0.01398468017578125,
0.0228271484375,
-0.0181884765625,
0.01861572265625,
0.006099700927734375,
0.01605224609375,
-0.01366424560546875,
-0.006481170654296875,
-0.0037631988525390625,
-0.01029205322265625,
-0.020599365234375,
-0.044189453125,
-0.029144287109375,
-0.0299835205078125,
-0.08660888671875,
-0.042449951171875,
0.0357666015625,
0.0222625732421875,
-0.0107879638671875,
0.025604248046875,
0.060760498046875,
-0.029022216796875,
0.003810882568359375,
0.0159454345703125,
-0.0267333984375,
0.0185699462890625,
-0.036102294921875,
-0.006694793701171875,
0.053985595703125,
0.0265045166015625,
0.004184722900390625,
-0.005054473876953125,
-0.0015001296997070312,
-0.0144500732421875,
-0.026336669921875,
0.01446533203125,
0.0228729248046875,
-0.054351806640625,
-0.006610870361328125,
-0.014434814453125,
-0.0017461776733398438,
-0.0141754150390625,
0.006381988525390625,
-0.00662994384765625,
0.0260162353515625,
0.0270843505859375,
-0.0159149169921875,
0.037811279296875,
0.0478515625,
-0.014801025390625,
-0.054290771484375,
0.01477813720703125,
-0.017181396484375,
-0.0191497802734375,
0.0034656524658203125,
0.036956787109375,
0.052001953125,
0.0283050537109375,
-0.0030956268310546875,
0.0242156982421875,
-0.0343017578125,
-0.02154541015625,
0.00818634033203125,
0.025238037109375,
-0.03851318359375,
-0.0200958251953125,
-0.00023806095123291016,
-0.01397705078125,
0.0170440673828125,
0.005954742431640625,
0.021270751953125,
0.003292083740234375,
-0.0086822509765625,
-0.001483917236328125,
-0.040283203125,
0.0274200439453125,
0.024139404296875,
0.007266998291015625,
-0.047027587890625,
0.04754638671875,
-0.042999267578125,
0.0214996337890625,
-0.0643310546875,
0.04913330078125,
0.0077056884765625,
0.01959228515625,
-0.005214691162109375,
-0.05023193359375,
-0.00433349609375,
-0.06976318359375,
-0.0106048583984375,
0.01715087890625,
0.024322509765625,
-0.00937652587890625,
0.000896453857421875,
-0.016448974609375,
0.00864410400390625,
-0.0003056526184082031,
0.005321502685546875,
-0.03570556640625,
-0.031036376953125,
0.0276947021484375,
0.01194000244140625,
-0.008392333984375,
-0.033172607421875,
-0.0343017578125,
0.043060302734375,
-0.020782470703125,
-0.00951385498046875,
0.0193328857421875,
0.025909423828125,
0.01354217529296875,
0.0223236083984375,
0.021728515625,
-0.0029392242431640625,
-0.00617218017578125,
-0.0164947509765625,
-0.0137939453125,
-0.0226898193359375,
-0.002246856689453125,
-0.0007281303405761719,
-0.0266265869140625,
0.0308837890625,
-0.0002608299255371094,
0.016571044921875,
-0.04736328125,
0.01519775390625,
-0.08856201171875,
-0.009063720703125,
-0.01082611083984375,
0.03643798828125,
0.00791168212890625,
0.008880615234375,
0.0073089599609375,
-0.004482269287109375,
-0.041412353515625,
0.031829833984375,
-0.0244903564453125,
-0.0141754150390625,
0.01200103759765625,
0.00531005859375,
-0.0007166862487792969,
0.021148681640625,
0.0129852294921875,
0.0075225830078125,
-0.0134124755859375,
0.0369873046875,
0.0239410400390625,
-0.05010986328125,
-0.0191192626953125,
-0.047698974609375,
-0.01080322265625,
-0.0223846435546875,
-0.0103302001953125,
0.06951904296875,
0.003448486328125,
0.027862548828125,
-0.025238037109375,
-0.027923583984375,
-0.005859375,
-0.042694091796875,
0.0251922607421875,
0.039581298828125,
0.0243377685546875,
0.0261383056640625,
-0.035797119140625,
-0.0156402587890625,
0.05377197265625,
-0.0013980865478515625,
0.017852783203125,
-0.008636474609375,
0.027313232421875,
0.06414794921875,
-0.03509521484375,
0.007488250732421875,
0.030609130859375,
-0.0280303955078125,
-0.0007224082946777344,
0.07501220703125,
-0.029815673828125,
-0.00402069091796875,
0.0017080307006835938,
0.00536346435546875,
0.002819061279296875,
-0.037109375,
-0.01398468017578125,
-0.0309600830078125,
0.0968017578125,
-0.0428466796875,
0.0416259765625,
0.0158233642578125,
-0.03509521484375,
0.0091400146484375,
0.002399444580078125,
-0.037750244140625,
-0.005279541015625,
0.0528564453125,
0.05322265625,
0.00907135009765625,
-0.061767578125,
-0.01507568359375,
0.019683837890625,
0.03753662109375,
-0.018035888671875,
0.04437255859375,
-0.01136016845703125,
-0.00902557373046875,
-0.022674560546875,
-0.057403564453125,
-0.00016319751739501953,
0.00435638427734375,
0.0060272216796875,
0.004322052001953125,
0.0022258758544921875,
0.0458984375,
-0.007114410400390625,
0.04302978515625,
0.0124053955078125,
0.000007987022399902344,
0.02191162109375,
-0.05645751953125,
0.03289794921875,
-0.030059814453125,
0.07489013671875,
0.06317138671875,
0.004627227783203125,
-0.007061004638671875,
0.0033397674560546875,
0.00981903076171875,
0.01091766357421875,
0.015838623046875,
0.0009531974792480469,
-0.02490234375,
-0.0251922607421875,
-0.0028209686279296875,
0.026763916015625,
0.0614013671875,
-0.018951416015625,
-0.040740966796875,
0.0234222412109375,
0.03082275390625,
-0.049835205078125,
-0.059417724609375,
-0.02197265625,
-0.076416015625,
0.0037517547607421875,
0.014801025390625,
-0.04412841796875,
-0.01050567626953125,
0.04510498046875,
0.0092315673828125,
0.029083251953125,
0.01270294189453125,
-0.0200958251953125,
-0.0018873214721679688,
-0.05712890625,
-0.037200927734375,
-0.00704193115234375,
-0.0103912353515625,
0.0198822021484375,
0.022857666015625,
0.030242919921875,
-0.046722412109375,
0.01824951171875,
0.06573486328125,
-0.02294921875,
0.0032863616943359375,
0.034576416015625,
-0.0268096923828125,
-0.006420135498046875,
0.00875091552734375,
0.0213165283203125,
0.017852783203125,
-0.01702880859375,
-0.016204833984375,
-0.0265045166015625,
0.01346588134765625,
-0.005458831787109375,
0.00038886070251464844,
0.032562255859375,
0.000032067298889160156,
-0.0143890380859375,
-0.04461669921875,
-0.027984619140625,
-0.020172119140625,
-0.048614501953125,
0.036468505859375,
0.027923583984375,
-0.003814697265625,
-0.00262451171875,
0.0198974609375,
0.01251220703125,
-0.003025054931640625,
0.0350341796875,
-0.029541015625,
0.038665771484375,
-0.0013074874877929688,
0.003665924072265625,
-0.035308837890625,
-0.033966064453125,
-0.0253753662109375,
0.018707275390625,
-0.039886474609375,
0.0117950439453125,
-0.00482177734375,
0.010498046875,
-0.00919342041015625,
-0.05596923828125,
0.02630615234375,
-0.05206298828125,
-0.00914764404296875,
-0.04107666015625,
0.0082855224609375,
-0.00608062744140625,
0.060821533203125,
-0.082763671875,
-0.00501251220703125,
-0.0278472900390625,
0.00934600830078125,
-0.01690673828125,
-0.054779052734375,
-0.0596923828125,
-0.006793975830078125,
-0.1107177734375,
0.020904541015625,
-0.0120086669921875,
-0.00701141357421875,
-0.043060302734375,
0.09527587890625,
-0.053680419921875,
-0.033599853515625,
0.0357666015625,
-0.0169219970703125,
0.009613037109375,
-0.012481689453125,
-0.0011844635009765625,
-0.046478271484375,
-0.0148468017578125,
-0.02392578125,
-0.0836181640625,
-0.0262451171875,
-0.0088043212890625,
0.06768798828125,
0.023040771484375,
-0.06915283203125,
0.00334930419921875,
0.06231689453125,
0.053558349609375,
0.0167388916015625,
-0.0029201507568359375,
-0.048004150390625,
0.0038967132568359375,
-0.00832366943359375,
-0.0011301040649414062,
-0.01520538330078125,
0.0010519027709960938,
0.0009183883666992188,
-0.0533447265625,
0.00004470348358154297,
-0.016326904296875,
-0.02984619140625,
0.0352783203125,
-0.045928955078125,
-0.037109375,
-0.036590576171875,
-0.0016984939575195312,
0.015289306640625,
-0.033172607421875,
0.016632080078125,
-0.053802490234375,
-0.0183868408203125,
0.05029296875,
0.0202178955078125,
-0.014862060546875,
-0.001758575439453125,
0.055267333984375,
-0.00493621826171875,
-0.032562255859375,
-0.052581787109375,
0.00225067138671875,
0.045501708984375,
-0.0120086669921875,
0.0091705322265625,
-0.0174713134765625,
-0.05242919921875,
0.08404541015625,
0.0007801055908203125,
-0.04315185546875,
0.0002111196517944336,
-0.004749298095703125,
0.031982421875,
-0.0106048583984375,
-0.0257110595703125,
0.0165557861328125,
0.05694580078125,
0.003704071044921875,
0.000797271728515625,
0.018280029296875,
0.0221710205078125,
0.0030078887939453125,
0.0220794677734375,
-0.036163330078125,
-0.02362060546875,
-0.0307769775390625,
0.0182037353515625,
-0.022491455078125,
0.01490020751953125,
-0.0034923553466796875,
0.00168609619140625,
0.006267547607421875,
0.0079193115234375,
0.00299835205078125,
-0.01195526123046875,
0.01381683349609375,
-0.02294921875,
0.030120849609375,
-0.0248565673828125,
-0.028350830078125,
-0.0083160400390625,
-0.006687164306640625,
0.04766845703125,
0.030914306640625,
-0.006439208984375,
-0.0306396484375,
0.0078125,
-0.01019287109375,
-0.064697265625,
0.005474090576171875,
-0.004177093505859375,
0.0283050537109375,
0.009613037109375,
0.010772705078125,
0.0159149169921875,
0.009918212890625,
-0.005168914794921875,
-0.0189666748046875,
0.029205322265625,
-0.035736083984375,
0.002819061279296875,
0.019439697265625,
0.0258026123046875,
-0.00189971923828125,
-0.0173797607421875,
0.039093017578125,
0.008026123046875,
0.028106689453125,
-0.01200103759765625,
0.0196075439453125,
0.020263671875,
0.00930023193359375,
0.01306915283203125,
-0.0250244140625,
-0.0099639892578125,
0.01509857177734375,
0.0391845703125,
0.0009493827819824219,
-0.003963470458984375,
0.0050506591796875,
-0.021209716796875,
-0.03546142578125,
0.0156097412109375,
0.0027618408203125,
-0.033447265625,
-0.0251617431640625,
0.0019588470458984375,
0.01427459716796875,
0.0175018310546875,
-0.00141143798828125,
-0.01019287109375,
-0.036407470703125,
-0.018829345703125,
-0.006969451904296875,
-0.03515625,
-0.0224151611328125,
-0.00901031494140625,
-0.02362060546875,
-0.0006985664367675781,
-0.00957489013671875,
-0.0171356201171875,
-0.055694580078125,
0.0112457275390625,
-0.006870269775390625,
0.03125,
-0.0008172988891601562,
-0.0034942626953125,
-0.0269012451171875,
-0.002880096435546875,
-0.005603790283203125,
-0.002910614013671875,
0.04388427734375,
-0.01161956787109375,
-0.03619384765625,
0.0160675048828125,
-0.0643310546875,
-0.01161956787109375,
-0.04400634765625,
-0.054290771484375,
-0.04144287109375,
-0.0073089599609375,
0.0006380081176757812,
0.01529693603515625,
-0.0274810791015625,
0.0004723072052001953,
-0.0013608932495117188,
0.047821044921875,
0.0014886856079101562,
0.071533203125,
-0.019744873046875,
-0.0057830810546875,
0.0034008026123046875,
0.033935546875,
-0.01361846923828125,
-0.0357666015625,
-0.00037598609924316406,
-0.0255279541015625,
-0.00841522216796875,
-0.069580078125,
-0.004077911376953125,
0.0265045166015625,
-0.0316162109375,
0.022735595703125,
0.027496337890625,
0.0060272216796875,
0.0308380126953125,
-0.005176544189453125,
0.01369476318359375,
-0.027740478515625,
-0.045989990234375,
-0.035858154296875,
-0.008636474609375,
0.0006608963012695312,
-0.0196075439453125,
0.0159759521484375,
-0.01036834716796875,
-0.00732421875,
0.0352783203125,
-0.0210113525390625,
0.01006317138671875,
0.03204345703125,
-0.03564453125,
0.040496826171875,
-0.0015230178833007812,
-0.00390625,
-0.001567840576171875,
-0.005950927734375,
0.002040863037109375,
-0.0301513671875,
-0.02752685546875,
0.0223541259765625,
0.01629638671875,
0.061553955078125,
-0.00490570068359375,
-0.01560211181640625,
0.031158447265625,
-0.037811279296875,
0.041229248046875,
0.06982421875,
0.065185546875,
-0.11444091796875,
0.0308685302734375,
-0.0009145736694335938,
-0.01329803466796875,
0.06317138671875,
-0.002689361572265625,
0.0187530517578125,
0.02252197265625,
0.00003725290298461914,
0.035003662109375,
-0.0253753662109375,
0.007785797119140625,
0.004444122314453125,
-0.0255126953125,
-0.0144195556640625,
0.048553466796875,
0.04022216796875,
-0.01033782958984375,
0.0279388427734375,
0.00618743896484375,
0.03887939453125,
-0.031494140625,
-0.035736083984375,
-0.00634002685546875,
-0.03631591796875,
-0.05035400390625,
0.02130126953125,
-0.0175933837890625,
0.03582763671875,
-0.01934814453125,
-0.003978729248046875,
0.017913818359375,
0.0699462890625,
-0.040435791015625,
0.0204620361328125,
0.028564453125,
0.024810791015625,
-0.023590087890625,
-0.0267181396484375,
0.0210723876953125,
-0.0162811279296875,
-0.038909912109375,
0.01544189453125,
-0.037933349609375,
-0.03875732421875,
-0.0268402099609375,
-0.0701904296875,
0.0653076171875,
-0.022674560546875,
-0.01751708984375,
0.0146636962890625,
0.0020732879638671875,
-0.00693511962890625,
0.017852783203125,
-0.0260467529296875,
-0.065185546875,
-0.0631103515625,
-0.00637054443359375,
-0.08514404296875,
0.006443023681640625,
-0.0216522216796875,
-0.06781005859375,
0.08447265625,
0.004756927490234375,
0.01485443115234375,
0.007110595703125,
0.032196044921875,
-0.031585693359375,
0.01210784912109375,
-0.00860595703125,
0.0150909423828125,
-0.015472412109375,
-0.0396728515625,
0.0116424560546875,
0.025726318359375,
-0.0369873046875,
-0.01094818115234375,
-0.0379638671875,
-0.0174102783203125,
0.02886962890625,
-0.00591278076171875,
0.03375244140625,
0.027740478515625,
0.0102691650390625,
-0.0121307373046875,
-0.0014429092407226562,
0.0180816650390625,
0.015899658203125,
0.0107421875,
0.052276611328125,
-0.04840087890625,
-0.04547119140625,
0.0159912109375,
0.06671142578125,
0.08575439453125,
-0.00890350341796875,
0.0135955810546875,
-0.036590576171875,
0.0097503662109375,
0.044342041015625,
-0.0100250244140625,
0.0025272369384765625,
0.035491943359375,
0.031402587890625,
-0.06378173828125,
-0.036590576171875,
-0.03271484375,
0.0265045166015625,
0.006618499755859375,
0.0182342529296875,
0.0081329345703125,
0.004913330078125,
0.04290771484375,
0.00693511962890625,
-0.006900787353515625,
0.0042724609375,
0.0226898193359375,
0.06781005859375,
0.0237274169921875,
0.021392822265625,
-0.051300048828125,
0.024322509765625,
0.02911376953125,
0.073486328125,
-0.053375244140625,
-0.0154266357421875,
0.01119232177734375,
-0.014190673828125,
-0.0016660690307617188,
-0.052398681640625,
-0.006954193115234375,
-0.029998779296875,
-0.023040771484375,
-0.00189208984375,
-0.0034885406494140625,
0.0382080078125,
0.004657745361328125,
0.01409912109375,
0.0240936279296875,
-0.028106689453125,
0.0176849365234375,
-0.047027587890625,
-0.00417327880859375,
0.0234222412109375,
0.035247802734375,
0.01532745361328125,
0.058074951171875,
0.0226898193359375,
-0.00945281982421875,
0.00628662109375,
0.0166473388671875,
0.0006232261657714844,
-0.0257415771484375,
0.0013942718505859375,
-0.0233917236328125,
0.0158843994140625,
0.0190277099609375,
-0.00724029541015625,
0.029937744140625,
0.06597900390625,
0.040435791015625,
-0.033416748046875,
-0.016357421875,
0.0251007080078125,
-0.01910400390625,
0.0178375244140625,
-0.019927978515625,
0.0289154052734375,
0.020538330078125,
0.0026988983154296875,
-0.0007581710815429688,
0.06719970703125,
-0.005779266357421875,
-0.05963134765625,
0.06256103515625,
-0.0207977294921875,
0.00878143310546875,
0.053192138671875,
0.00574493408203125,
0.019195556640625,
-0.004657745361328125,
-0.0972900390625,
-0.026763916015625,
-0.0255889892578125,
-0.01424407958984375,
0.01166534423828125,
0.0096588134765625,
-0.0228118896484375,
0.035369873046875,
0.03802490234375,
-0.006526947021484375,
0.01155853271484375,
-0.029632568359375,
0.042205810546875,
0.048187255859375,
0.01126861572265625,
0.047027587890625,
-0.0166015625,
-0.02105712890625,
0.00029778480529785156,
0.0416259765625,
0.007015228271484375,
0.032684326171875,
-0.0181884765625,
0.0271148681640625,
0.00164031982421875,
0.0160980224609375,
-0.021728515625,
-0.03765869140625,
0.055999755859375,
-0.040802001953125,
0.001270294189453125,
0.006786346435546875,
0.01287078857421875,
0.03997802734375,
0.027130126953125,
-0.0367431640625,
0.01259613037109375,
-0.0035552978515625,
-0.002468109130859375,
-0.020599365234375,
0.056640625,
-0.00798797607421875,
-0.015228271484375,
0.0095062255859375,
0.003711700439453125,
0.019195556640625,
0.03839111328125,
0.003665924072265625,
0.0056915283203125,
0.04779052734375,
-0.0193023681640625,
0.039794921875,
-0.002685546875,
0.05548095703125,
0.0282745361328125,
-0.01220703125,
-0.042572021484375,
0.0618896484375,
-0.002147674560546875,
0.01334381103515625,
0.0254058837890625,
0.0732421875,
0.0283966064453125,
0.0024814605712890625,
-0.0294342041015625,
-0.0247955322265625,
0.016815185546875,
-0.0019054412841796875,
-0.00438690185546875,
-0.047607421875,
0.0027904510498046875,
-0.0362548828125,
-0.0225067138671875,
-0.03314208984375,
-0.049163818359375,
0.0157928466796875,
0.037841796875,
-0.0060577392578125,
-0.01171875,
-0.049713134765625,
-0.0330810546875,
0.002796173095703125,
-0.0034847259521484375,
-0.012786865234375,
0.0107269287109375,
0.01157379150390625,
-0.0184478759765625,
0.001186370849609375,
-0.01433563232421875,
-0.01541900634765625,
-0.00003129243850708008,
-0.01251220703125,
-0.065673828125,
-0.06707763671875,
0.053314208984375,
-0.06378173828125,
0.0216522216796875,
0.058258056640625,
-0.0205841064453125,
-0.038726806640625,
-0.0166778564453125,
0.0067901611328125,
0.0367431640625,
-0.0013933181762695312,
-0.00041604042053222656,
0.03656005859375,
0.01146697998046875,
-0.04705810546875,
-0.1171875,
0.0022125244140625,
-0.087158203125,
0.017913818359375,
-0.007720947265625,
-0.02862548828125,
-0.018829345703125,
-0.04150390625,
-0.034210205078125,
0.0186920166015625,
0.020233154296875,
-0.036163330078125,
-0.012542724609375,
-0.00008338689804077148,
0.00193023681640625,
-0.0036869049072265625,
-0.00333404541015625,
-0.01181793212890625,
-0.027313232421875,
0.0142364501953125,
0.0238189697265625,
0.03326416015625,
-0.00511932373046875,
0.014434814453125,
-0.038055419921875,
0.03143310546875,
0.00856781005859375,
0.00998687744140625,
0.0157623291015625,
0.0004513263702392578,
0.0202178955078125,
0.044189453125,
-0.037567138671875,
0.01031494140625,
-0.0263824462890625,
0.0086669921875,
0.024505615234375,
-0.027740478515625,
-0.09088134765625,
-0.04302978515625,
0.071533203125,
0.061553955078125,
0.045440673828125,
-0.014678955078125,
-0.01116180419921875,
-0.01641845703125,
-0.0182647705078125,
0.004756927490234375,
0.0111236572265625,
-0.046173095703125,
0.007389068603515625,
0.0379638671875,
-0.031524658203125,
-0.0355224609375,
-0.00449371337890625,
-0.048919677734375,
0.00489044189453125,
0.004119873046875,
0.0070343017578125,
-0.030303955078125,
0.014862060546875,
0.09637451171875,
-0.064208984375,
-0.0072479248046875,
0.03271484375,
-0.01151275634765625,
0.050750732421875,
0.00682830810546875,
-0.040863037109375,
0.0007452964782714844,
-0.00888824462890625,
0.0252532958984375,
0.0010938644409179688,
0.007289886474609375,
-0.023651123046875,
0.0219879150390625,
-0.0182952880859375,
0.0059967041015625,
0.004974365234375,
-0.0018968582153320312,
0.0017566680908203125,
0.002964019775390625,
-0.00311279296875,
0.013275146484375,
-0.0311126708984375,
0.032928466796875,
-0.0256195068359375,
0.01142120361328125,
0.003177642822265625,
0.0035533905029296875,
0.0592041015625,
-0.01288604736328125,
-0.0010232925415039062,
0.024383544921875,
-0.016143798828125,
-0.049468994140625,
0.009918212890625,
-0.01280975341796875,
0.02032470703125,
0.0009059906005859375
] |
81efe58dd47fce628f8d6d836961dfea3b66a519
|
Wordpress Stackexchange
Q: How can I let my audience tag my posts? I have over 400 interviews on my site and my audience keeps asking me for a way to sort through them.
I don't have time to tag all 400 interviews. Do you think there's a way for my audience to tag interviews themselves?
A: Andrew,
Matt Mullenweg uses a similar feature on on his blog, Ma.tt, that lets users tag photos.
He released the code as a plugin, Matts Community Tags. You will have to create a custom taxonomy for the tags and add some additional code to your templates to make it work. See the discussion on the WordPress.org forums for more information.
|
Q: How can I let my audience tag my posts? I have over 400 interviews on my site and my audience keeps asking me for a way to sort through them.
I don't have time to tag all 400 interviews. Do you think there's a way for my audience to tag interviews themselves?
A: Andrew,
Matt Mullenweg uses a similar feature on on his blog, Ma.tt, that lets users tag photos.
He released the code as a plugin, Matts Community Tags. You will have to create a custom taxonomy for the tags and add some additional code to your templates to make it work. See the discussion on the WordPress.org forums for more information.
|
wordpress
|
{
"language": "en",
"length": 114,
"provenance": "stackexchange_00019.jsonl.gz:408533",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14493"
}
|
[
0.0816650390625,
0.0246429443359375,
0.03387451171875,
0.026824951171875,
0.02740478515625,
-0.042999267578125,
0.10797119140625,
-0.0626220703125,
0.0013980865478515625,
0.0255279541015625,
-0.0174560546875,
0.009857177734375,
-0.0281829833984375,
-0.0146484375,
-0.026153564453125,
-0.043609619140625,
0.028717041015625,
-0.0088653564453125,
0.0255889892578125,
-0.0173187255859375,
0.0040130615234375,
0.00499725341796875,
0.037750244140625,
-0.0015516281127929688,
0.025146484375,
0.032257080078125,
0.01328277587890625,
0.015960693359375,
0.017547607421875,
0.0162506103515625,
0.0293731689453125,
-0.058441162109375,
-0.00525665283203125,
0.04302978515625,
-0.033599853515625,
0.005573272705078125,
0.035614013671875,
0.01097869873046875,
0.02191162109375,
0.035858154296875,
0.0203857421875,
-0.00940704345703125,
0.0100860595703125,
0.0206756591796875,
0.010528564453125,
-0.0511474609375,
0.05218505859375,
-0.049041748046875,
0.024017333984375,
-0.0673828125,
0.00004547834396362305,
0.00989532470703125,
0.0160064697265625,
-0.10845947265625,
-0.001194000244140625,
0.052825927734375,
0.05523681640625,
-0.058624267578125,
0.0238800048828125,
-0.0070037841796875,
-0.01187896728515625,
-0.001995086669921875,
0.0201568603515625,
-0.0240478515625,
-0.0019121170043945312,
-0.001636505126953125,
-0.03729248046875,
0.01302337646484375,
-0.01291656494140625,
-0.0153350830078125,
0.00856781005859375,
-0.032012939453125,
0.04248046875,
-0.005664825439453125,
-0.0146636962890625,
-0.007579803466796875,
0.01273345947265625,
0.0249176025390625,
0.00434112548828125,
-0.0209808349609375,
-0.0197601318359375,
-0.040740966796875,
-0.0153656005859375,
0.018707275390625,
-0.04400634765625,
0.029510498046875,
-0.0186309814453125,
-0.0046234130859375,
-0.0312347412109375,
-0.0011110305786132812,
-0.01451873779296875,
-0.0086822509765625,
-0.0513916015625,
0.032806396484375,
0.006381988525390625,
-0.0284423828125,
0.00830841064453125,
0.0304718017578125,
-0.0301361083984375,
-0.01568603515625,
-0.00289154052734375,
-0.0278167724609375,
-0.015167236328125,
-0.0276947021484375,
0.0172271728515625,
0.0435791015625,
-0.01329803466796875,
0.033172607421875,
0.061737060546875,
0.037933349609375,
0.0222015380859375,
0.00927734375,
0.0029773712158203125,
0.0013322830200195312,
-0.03961181640625,
0.004154205322265625,
-0.01515960693359375,
0.0037689208984375,
0.01153564453125,
0.003841400146484375,
0.0216064453125,
0.0511474609375,
-0.0016355514526367188,
0.03680419921875,
-0.018402099609375,
0.0195770263671875,
0.025146484375,
-0.07666015625,
-0.0190277099609375,
0.03546142578125,
-0.00749969482421875,
0.002010345458984375,
-0.0161895751953125,
0.01277923583984375,
-0.020660400390625,
-0.018463134765625,
-0.00032138824462890625,
-0.060516357421875,
-0.038055419921875,
0.033721923828125,
-0.020599365234375,
-0.0379638671875,
0.042724609375,
-0.05242919921875,
0.04681396484375,
0.03167724609375,
0.0213623046875,
0.0191802978515625,
0.01495361328125,
-0.0158233642578125,
0.0265960693359375,
-0.020721435546875,
0.0132598876953125,
0.01149749755859375,
-0.0002334117889404297,
-0.035491943359375,
0.0228424072265625,
-0.0384521484375,
0.045654296875,
-0.05706787109375,
0.002719879150390625,
-0.00759124755859375,
0.0640869140625,
0.027496337890625,
0.0186920166015625,
0.0172119140625,
-0.05615234375,
-0.007480621337890625,
0.0270538330078125,
-0.0012712478637695312,
-0.005474090576171875,
0.0143585205078125,
0.0307464599609375,
0.026031494140625,
0.00949859619140625,
0.0291900634765625,
0.01123046875,
0.0016317367553710938,
0.0147247314453125,
0.042083740234375,
-0.017486572265625,
-0.04595947265625,
0.03857421875,
-0.04437255859375,
-0.06256103515625,
0.027130126953125,
-0.0036869049072265625,
0.07763671875,
0.03564453125,
0.00949859619140625,
0.021453857421875,
-0.040008544921875,
-0.035491943359375,
0.012359619140625,
0.022369384765625,
-0.0016422271728515625,
-0.0197906494140625,
-0.006778717041015625,
0.0160064697265625,
-0.0301361083984375,
0.0306854248046875,
-0.01064300537109375,
0.033935546875,
-0.0309906005859375,
-0.00943756103515625,
0.0113067626953125,
-0.0246429443359375,
0.0390625,
0.039825439453125,
0.0042877197265625,
0.0008440017700195312,
-0.0237274169921875,
0.0136871337890625,
-0.02130126953125,
-0.0328369140625,
0.038818359375,
0.010101318359375,
-0.01030731201171875,
0.02398681640625,
-0.0178680419921875,
0.018310546875,
0.006061553955078125,
0.00390625,
0.019134521484375,
0.05352783203125,
-0.02093505859375,
-0.0232391357421875,
-0.0171356201171875,
-0.0118255615234375,
0.0203399658203125,
-0.1109619140625,
0.0484619140625,
0.0465087890625,
0.016845703125,
-0.0196990966796875,
0.0218353271484375,
0.0164031982421875,
-0.01702880859375,
-0.01336669921875,
0.03851318359375,
0.0170135498046875,
-0.01702880859375,
0.0017843246459960938,
0.038330078125,
0.053985595703125,
0.04052734375,
0.027435302734375,
0.01708984375,
0.0036487579345703125,
0.020599365234375,
-0.0211029052734375,
0.00002384185791015625,
0.01641845703125,
-0.01279449462890625,
0.01229095458984375,
0.023284912109375,
0.0194854736328125,
0.01197052001953125,
-0.04144287109375,
-0.0007543563842773438,
0.005367279052734375,
-0.059051513671875,
-0.057708740234375,
-0.0208587646484375,
0.0333251953125,
-0.015960693359375,
0.038726806640625,
0.0214385986328125,
-0.007007598876953125,
-0.00994110107421875,
0.0020313262939453125,
-0.0100860595703125,
0.005283355712890625,
0.03765869140625,
-0.053314208984375,
0.0172271728515625,
0.0029392242431640625,
0.0151519775390625,
-0.008056640625,
0.00991058349609375,
-0.0007963180541992188,
0.0157012939453125,
-0.0084686279296875,
-0.0067138671875,
-0.007549285888671875,
0.00006657838821411133,
0.01690673828125,
0.021942138671875,
-0.08013916015625,
-0.06494140625,
-0.021942138671875,
0.0302886962890625,
-0.0251617431640625,
0.0013952255249023438,
-0.022857666015625,
-0.0046539306640625,
-0.0462646484375,
-0.06829833984375,
0.05242919921875,
-0.0546875,
0.0704345703125,
0.102783203125,
0.003124237060546875,
0.03759765625,
0.01447296142578125,
-0.01263427734375,
-0.0289459228515625,
0.021087646484375,
0.01348876953125,
0.009765625,
-0.0216217041015625,
0.04290771484375,
0.01030731201171875,
0.06390380859375,
-0.0171966552734375,
-0.04229736328125,
0.001453399658203125,
0.0176239013671875,
-0.036468505859375,
-0.04266357421875,
0.086181640625,
-0.035003662109375,
-0.0147705078125,
-0.004955291748046875,
-0.0293121337890625,
-0.0391845703125,
0.031402587890625,
-0.0243377685546875,
-0.06768798828125,
0.008819580078125,
-0.00963592529296875,
-0.058929443359375,
-0.05511474609375,
-0.0007710456848144531,
0.0174560546875,
0.0379638671875,
0.0145111083984375,
0.00720977783203125,
0.0095672607421875,
-0.0234832763671875,
0.0298004150390625,
0.006053924560546875,
-0.001628875732421875,
0.0152740478515625,
-0.003509521484375,
0.0029621124267578125,
0.038726806640625,
0.004238128662109375,
0.03985595703125,
0.031951904296875,
-0.0340576171875,
-0.022552490234375,
-0.033233642578125,
0.0230255126953125,
0.02764892578125,
-0.0088958740234375,
0.00930023193359375,
0.0273590087890625,
0.01155853271484375,
-0.0148162841796875,
0.0699462890625,
0.01525115966796875,
0.0229949951171875,
-0.08819580078125,
-0.026702880859375,
-0.041839599609375,
-0.0439453125,
-0.01329803466796875,
0.0196990966796875,
0.046112060546875,
-0.00609588623046875,
-0.020904541015625,
0.039154052734375,
-0.004741668701171875,
0.005092620849609375,
-0.011688232421875,
-0.0465087890625,
-0.037017822265625,
0.06561279296875,
-0.040771484375,
0.0046234130859375,
-0.04144287109375,
0.067626953125,
-0.0582275390625,
-0.0144500732421875,
0.06292724609375,
0.0147857666015625,
0.00942230224609375,
-0.01556396484375,
-0.03857421875,
0.005748748779296875,
0.07623291015625,
-0.00457000732421875,
-0.020782470703125,
-0.0094757080078125,
-0.0089263916015625,
0.0067596435546875,
0.031951904296875,
-0.0258636474609375,
-0.0228424072265625,
-0.05743408203125,
-0.006977081298828125,
-0.03643798828125,
-0.0222320556640625,
-0.005596160888671875,
0.01189422607421875,
-0.00368499755859375,
-0.053070068359375,
0.02294921875,
-0.0141448974609375,
0.00977325439453125,
-0.04833984375,
0.0239715576171875,
-0.06591796875,
-0.0100860595703125,
-0.007457733154296875,
-0.046478271484375,
-0.01329803466796875,
0.005298614501953125,
0.0245361328125,
-0.0118865966796875,
0.00980377197265625,
-0.00617218017578125,
0.041839599609375,
-0.0028247833251953125,
0.051025390625,
-0.01438140869140625,
0.00714874267578125,
0.031280517578125,
0.00791168212890625,
-0.005954742431640625,
-0.006023406982421875,
0.001861572265625,
-0.007503509521484375,
-0.0211181640625,
0.05462646484375,
-0.01016998291015625,
0.03594970703125,
0.0007081031799316406,
-0.03204345703125,
-0.0309906005859375,
-0.02850341796875,
-0.03076171875,
-0.005077362060546875,
-0.01311492919921875,
-0.034637451171875,
-0.0154876708984375,
-0.034515380859375,
0.0124664306640625,
-0.00481414794921875,
-0.0014886856079101562,
0.032989501953125,
0.060760498046875,
-0.0008459091186523438,
-0.0027599334716796875,
-0.1015625,
0.0174102783203125,
0.037322998046875,
0.0149078369140625,
0.046234130859375,
0.02886962890625,
-0.0341796875,
0.04339599609375,
0.0124664306640625,
-0.0205841064453125,
-0.0015382766723632812,
0.056549072265625,
-0.005764007568359375,
-0.0430908203125,
0.0328369140625,
0.00164031982421875,
-0.01355743408203125,
0.0207672119140625,
-0.0119171142578125,
-0.016693115234375,
0.001041412353515625,
0.024993896484375,
-0.0426025390625,
0.05810546875,
-0.0022602081298828125,
-0.039825439453125,
0.026123046875,
-0.03741455078125,
-0.0162506103515625,
0.008026123046875,
-0.0113525390625,
0.005237579345703125,
-0.0265655517578125,
-0.0257415771484375,
-0.034576416015625,
-0.04339599609375,
0.0004284381866455078,
0.0017442703247070312,
-0.0276947021484375,
-0.02581787109375,
-0.021759033203125,
0.00312042236328125,
0.000507354736328125,
-0.05780029296875,
-0.0628662109375,
-0.03546142578125,
-0.00516510009765625,
0.00748443603515625,
0.07672119140625,
0.002468109130859375,
0.0163116455078125,
0.04339599609375,
-0.006839752197265625,
0.02154541015625,
-0.00630950927734375,
0.026885986328125,
-0.0224151611328125,
-0.046234130859375,
-0.0154876708984375,
-0.01129150390625,
-0.002887725830078125,
0.0440673828125,
-0.0714111328125,
0.0478515625,
0.0119171142578125,
0.054718017578125,
0.0367431640625,
-0.007289886474609375,
-0.0003936290740966797,
0.030181884765625,
-0.00033092498779296875,
-0.032257080078125,
0.019317626953125,
-0.029571533203125,
0.024932861328125,
0.0282745361328125,
0.043304443359375,
0.0087432861328125,
-0.036834716796875,
0.003200531005859375,
-0.050018310546875,
-0.0153350830078125,
-0.01690673828125,
-0.042266845703125,
0.011810302734375,
-0.044281005859375,
-0.01441192626953125,
0.03851318359375,
0.02032470703125,
-0.0004935264587402344,
-0.0099029541015625,
-0.01180267333984375,
-0.01102447509765625,
0.039886474609375,
-0.0289459228515625,
-0.007663726806640625,
-0.01270294189453125,
-0.0168609619140625,
0.006404876708984375,
-0.00879669189453125,
-0.0276641845703125,
-0.047149658203125,
-0.007495880126953125,
0.0006356239318847656,
0.03948974609375,
-0.00791168212890625,
0.0222625732421875,
-0.01306915283203125,
-0.0188446044921875,
-0.031402587890625,
0.007442474365234375,
0.0249481201171875,
-0.006317138671875,
-0.05157470703125,
0.0017728805541992188,
-0.03826904296875,
0.00036454200744628906,
0.005794525146484375,
-0.0330810546875,
-0.016754150390625,
-0.0164947509765625,
0.0228118896484375,
0.033447265625,
-0.032806396484375,
-0.06219482421875,
-0.0220794677734375,
0.0015249252319335938,
0.037078857421875,
0.04827880859375,
-0.01526641845703125,
-0.033050537109375,
0.0394287109375,
-0.00125885009765625,
-0.018890380859375,
-0.0241241455078125,
0.031951904296875,
-0.0263824462890625,
-0.0257415771484375,
-0.088623046875,
0.0181121826171875,
0.038909912109375,
-0.0228118896484375,
0.032196044921875,
-0.006015777587890625,
0.0298919677734375,
0.0115966796875,
-0.0440673828125,
0.00502777099609375,
-0.0031490325927734375,
0.063720703125,
-0.047607421875,
-0.034393310546875,
0.05682373046875,
-0.0184326171875,
-0.0311279296875,
-0.0033416748046875,
-0.0026760101318359375,
0.0250701904296875,
0.0185394287109375,
-0.0159454345703125,
-0.01332855224609375,
0.051422119140625,
-0.05810546875,
-0.0162200927734375,
-0.0141754150390625,
-0.003173828125,
0.0185394287109375,
0.01277923583984375,
-0.015350341796875,
0.01776123046875,
-0.004680633544921875,
0.002086639404296875,
0.0104217529296875,
-0.0263824462890625,
0.0006628036499023438,
-0.0203399658203125,
-0.0215911865234375,
-0.042633056640625,
0.002513885498046875,
-0.027557373046875,
-0.0206451416015625,
-0.0102691650390625,
-0.0204620361328125,
0.0212860107421875,
-0.01483917236328125,
-0.0004248619079589844,
0.00864410400390625,
-0.054046630859375,
0.0675048828125,
0.0269012451171875,
0.01515960693359375,
0.036407470703125,
-0.01541900634765625,
-0.005176544189453125,
-0.0018262863159179688,
0.0029621124267578125,
0.0117645263671875,
-0.0220794677734375,
-0.02423095703125,
0.0260009765625,
-0.02313232421875,
-0.049346923828125,
0.029266357421875,
-0.0101470947265625,
0.01450347900390625,
-0.02789306640625,
0.0386962890625,
-0.017333984375,
0.0199737548828125,
-0.007465362548828125,
-0.01800537109375,
0.009857177734375,
0.034088134765625,
-0.01506805419921875,
-0.01316070556640625,
-0.0053253173828125,
-0.030242919921875,
-0.01515960693359375,
-0.042449951171875,
0.0177459716796875,
0.01157379150390625,
0.00499725341796875,
0.021636962890625,
0.00594329833984375,
-0.054779052734375,
-0.031890869140625,
0.01251220703125,
0.06671142578125,
0.01024627685546875,
-0.037078857421875,
0.048187255859375,
0.03155517578125,
-0.052459716796875,
0.0127410888671875,
-0.03564453125,
0.0169677734375,
0.01201629638671875,
-0.0087890625,
-0.05706787109375,
-0.00873565673828125,
-0.0189361572265625,
-0.034393310546875,
0.10321044921875,
0.024169921875,
-0.00714111328125,
0.01546478271484375,
0.05804443359375,
-0.0330810546875,
0.02935791015625,
-0.028900146484375,
0.01125335693359375,
-0.0135040283203125,
0.0226898193359375,
-0.05859375,
-0.0229339599609375,
-0.0086669921875,
0.056182861328125,
0.047760009765625,
0.00811004638671875,
-0.0289764404296875,
-0.01010894775390625,
0.0185699462890625,
0.03564453125,
-0.005146026611328125,
0.0288543701171875,
0.01294708251953125,
-0.007556915283203125,
-0.001384735107421875,
-0.00470733642578125,
0.045196533203125,
-0.06024169921875,
-0.0103607177734375,
0.0248870849609375,
0.0264892578125,
0.050018310546875,
-0.03509521484375,
-0.00732421875,
-0.0309295654296875,
-0.0191650390625,
0.034149169921875,
-0.0191650390625,
-0.003971099853515625,
0.041259765625,
0.05267333984375,
-0.023223876953125,
-0.05047607421875,
-0.005405426025390625,
0.038818359375,
0.04461669921875,
0.01007843017578125,
0.07293701171875,
0.014007568359375,
0.05108642578125,
-0.007221221923828125,
0.0178375244140625,
-0.0220489501953125,
0.0037994384765625,
0.05584716796875,
0.0124359130859375,
0.0198822021484375,
-0.0628662109375,
-0.06988525390625,
0.0565185546875,
0.10675048828125,
-0.0277862548828125,
-0.0154266357421875,
0.00917816162109375,
0.00725555419921875,
0.00757598876953125,
-0.01107025146484375,
0.01971435546875,
0.0300750732421875,
0.033050537109375,
-0.02911376953125,
0.0197601318359375,
0.009613037109375,
0.035247802734375,
0.002124786376953125,
0.0028247833251953125,
-0.047271728515625,
0.01275634765625,
-0.02923583984375,
0.0166168212890625,
0.0286407470703125,
0.044158935546875,
-0.0112762451171875,
-0.003795623779296875,
-0.01031494140625,
-0.0013790130615234375,
0.007526397705078125,
0.0247955322265625,
0.0484619140625,
-0.0194549560546875,
0.015472412109375,
0.00836944580078125,
0.045013427734375,
-0.0124359130859375,
-0.002899169921875,
-0.03228759765625,
0.01290130615234375,
0.048583984375,
-0.0114593505859375,
-0.028656005859375,
0.062042236328125,
-0.0023250579833984375,
-0.00461578369140625,
-0.00991058349609375,
-0.0225372314453125,
0.0199737548828125,
-0.01544952392578125,
0.01551055908203125,
0.003955841064453125,
0.05194091796875,
-0.0117034912109375,
0.022552490234375,
0.00893402099609375,
-0.02703857421875,
0.0177764892578125,
-0.0274505615234375,
0.04412841796875,
0.0164947509765625,
-0.07427978515625,
0.0020542144775390625,
-0.0718994140625,
-0.03466796875,
0.044830322265625,
0.02734375,
-0.034942626953125,
0.032318115234375,
-0.0172119140625,
-0.016937255859375,
0.03228759765625,
-0.01392364501953125,
-0.004184722900390625,
0.0233154296875,
-0.003490447998046875,
-0.02337646484375,
-0.036956787109375,
-0.0237579345703125,
0.04254150390625,
0.0423583984375,
-0.017242431640625,
0.059600830078125,
-0.0159912109375,
-0.003833770751953125,
-0.0209197998046875,
-0.00127410888671875,
-0.01175689697265625,
-0.0187530517578125,
0.00829315185546875,
0.01702880859375,
-0.01265716552734375,
-0.0244903564453125,
-0.00783538818359375,
0.042327880859375,
0.055816650390625,
-0.0174560546875,
0.0235443115234375,
0.01279449462890625,
0.00997161865234375,
-0.0187225341796875,
0.01800537109375,
-0.03131103515625,
-0.0177154541015625,
0.00959014892578125,
-0.0018949508666992188,
-0.00029659271240234375,
0.00263214111328125,
0.00527191162109375,
0.0229949951171875,
-0.0210113525390625,
-0.0010347366333007812,
-0.0291595458984375,
0.006320953369140625,
-0.06597900390625,
0.0186767578125,
0.01343536376953125,
-0.029327392578125,
0.041839599609375,
-0.015625,
0.031829833984375,
0.005878448486328125,
0.04339599609375,
0.04510498046875,
-0.0439453125,
0.017913818359375,
0.0253448486328125,
0.0487060546875,
-0.0212860107421875,
0.01485443115234375,
0.003513336181640625,
0.0090789794921875,
0.0005469322204589844,
-0.0199432373046875,
-0.02655029296875,
-0.0229949951171875,
0.011627197265625,
0.037872314453125,
0.01326751708984375,
-0.00035691261291503906,
-0.04791259765625,
-0.01544952392578125,
0.020782470703125,
-0.01739501953125,
-0.02471923828125,
0.0303497314453125,
-0.0194244384765625,
-0.0108184814453125,
-0.010711669921875,
-0.05145263671875,
0.02276611328125,
0.028564453125,
-0.0297393798828125,
-0.01309967041015625,
-0.035400390625,
-0.007415771484375,
-0.036651611328125,
0.0309600830078125,
0.026458740234375,
-0.044342041015625,
0.00983428955078125,
0.05242919921875,
0.05792236328125,
0.1046142578125,
0.009307861328125,
-0.012786865234375,
-0.0172119140625,
0.0178985595703125,
-0.0155181884765625,
-0.047515869140625,
0.008056640625,
-0.034423828125,
-0.0198516845703125,
-0.025665283203125,
0.00537872314453125,
0.006381988525390625,
-0.055816650390625,
-0.147216796875,
0.08538818359375,
-0.049835205078125,
-0.050567626953125,
0.0198974609375,
0.002788543701171875,
0.01383209228515625,
-0.042694091796875,
0.0004239082336425781,
-0.0015344619750976562,
-0.042083740234375,
-0.0269775390625,
0.01467132568359375,
0.030181884765625,
0.01285552978515625,
0.0142059326171875,
-0.0279388427734375,
0.0074462890625,
-0.006664276123046875,
-0.01436614990234375,
0.0224151611328125,
-0.0232086181640625,
0.01543426513671875,
0.0160064697265625,
-0.0667724609375,
-0.042572021484375,
-0.00803375244140625,
0.0258026123046875,
0.00566864013671875,
0.00627899169921875,
-0.015899658203125,
-0.0197296142578125,
0.0292205810546875,
0.027923583984375,
0.0023746490478515625,
-0.01013946533203125,
0.049041748046875,
0.0015878677368164062,
-0.049224853515625,
0.009918212890625,
0.004489898681640625,
-0.018035888671875,
-0.01776123046875,
-0.0035953521728515625,
-0.0296478271484375,
0.0099029541015625,
0.01322174072265625,
-0.05218505859375,
0.01485443115234375,
-0.006244659423828125,
-0.00853729248046875,
-0.061492919921875,
0.002010345458984375,
0.03985595703125,
-0.033782958984375,
-0.01055908203125,
0.0015020370483398438,
0.0008254051208496094,
0.00039577484130859375,
-0.01837158203125,
0.0251617431640625,
-0.058624267578125,
0.0167694091796875,
0.027313232421875,
0.030364990234375,
0.01507568359375,
0.020172119140625,
-0.043426513671875,
-0.006496429443359375,
0.0308074951171875,
0.0040435791015625,
0.046539306640625,
0.04022216796875,
-0.0298004150390625,
-0.006732940673828125,
0.00030684471130371094,
-0.0207977294921875,
0.0005893707275390625,
-0.0160980224609375,
0.0168304443359375,
-0.042633056640625,
-0.0017747879028320312,
-0.003147125244140625,
-0.018524169921875,
0.0197296142578125,
-0.01071929931640625,
0.01560211181640625,
-0.0031795501708984375,
0.034210205078125,
-0.005985260009765625,
-0.011322021484375,
0.02978515625
] |
823eef4dcf367058e595d3d579a49f8914f812ce
|
Wordpress Stackexchange
Q: I'm trying to add an image in my CSS I'm trying to add an image in my CSS with the theme folder code, <?php bloginfo('template_directory'); ?>, which works in HTML but for some reason it's not working in the CSS. Does anyone know why or a solution?
Here's my code:
background: url("<?php bloginfo('template_directory'); ?>/images/bg.jpg");
A: That's because php code inside a CSS file is not parsed unless you configure your server to. Just use it as a relative path to the image (as per the CSS file).
background: url("images/bg.jpg");
|
Q: I'm trying to add an image in my CSS I'm trying to add an image in my CSS with the theme folder code, <?php bloginfo('template_directory'); ?>, which works in HTML but for some reason it's not working in the CSS. Does anyone know why or a solution?
Here's my code:
background: url("<?php bloginfo('template_directory'); ?>/images/bg.jpg");
A: That's because php code inside a CSS file is not parsed unless you configure your server to. Just use it as a relative path to the image (as per the CSS file).
background: url("images/bg.jpg");
|
wordpress
|
{
"language": "en",
"length": 90,
"provenance": "stackexchange_00019.jsonl.gz:408540",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14517"
}
|
[
0.0771484375,
-0.0007925033569335938,
0.048248291015625,
-0.0253753662109375,
0.01107025146484375,
-0.01500701904296875,
0.052154541015625,
-0.04229736328125,
0.01136016845703125,
0.020782470703125,
-0.1165771484375,
0.0308074951171875,
-0.01494598388671875,
0.007457733154296875,
-0.015869140625,
-0.036285400390625,
0.032501220703125,
-0.037933349609375,
0.035430908203125,
0.01220703125,
-0.000911712646484375,
0.033538818359375,
0.0447998046875,
-0.023101806640625,
0.0333251953125,
-0.0062255859375,
0.062042236328125,
-0.01093292236328125,
0.0194091796875,
-0.013671875,
0.02581787109375,
-0.0112152099609375,
0.00665283203125,
0.0408935546875,
-0.0227203369140625,
-0.00945281982421875,
0.007122039794921875,
0.0027217864990234375,
-0.00849151611328125,
0.018890380859375,
0.0253448486328125,
-0.0182037353515625,
0.0379638671875,
0.00669097900390625,
0.00858306884765625,
-0.046844482421875,
0.0330810546875,
-0.0372314453125,
0.00974273681640625,
-0.059539794921875,
0.0256195068359375,
0.01433563232421875,
0.03240966796875,
0.0021305084228515625,
-0.0227508544921875,
0.0257415771484375,
-0.0159454345703125,
0.040924072265625,
0.0238494873046875,
-0.038116455078125,
-0.04278564453125,
-0.007236480712890625,
0.03729248046875,
0.007648468017578125,
0.01568603515625,
-0.012725830078125,
0.0031261444091796875,
0.02166748046875,
-0.0579833984375,
-0.00814056396484375,
0.039031982421875,
-0.03082275390625,
-0.0136871337890625,
-0.064453125,
0.001583099365234375,
0.0313720703125,
-0.0048980712890625,
-0.046844482421875,
-0.003818511962890625,
0.00982666015625,
0.0078277587890625,
-0.008209228515625,
-0.012237548828125,
-0.0210723876953125,
0.029266357421875,
0.005947113037109375,
-0.00946807861328125,
-0.0096588134765625,
-0.01348114013671875,
-0.01357269287109375,
-0.0305938720703125,
0.0010051727294921875,
-0.0014934539794921875,
-0.0262298583984375,
-0.036956787109375,
-0.013671875,
0.0189971923828125,
0.058746337890625,
-0.01227569580078125,
0.031890869140625,
-0.0196533203125,
-0.0211334228515625,
0.037933349609375,
-0.05218505859375,
0.001102447509765625,
0.0447998046875,
-0.0013952255249023438,
0.032806396484375,
0.0221099853515625,
0.006031036376953125,
0.01454925537109375,
-0.01155853271484375,
-0.0120697021484375,
-0.034210205078125,
-0.01377105712890625,
0.0023784637451171875,
-0.0374755859375,
-0.00594329833984375,
0.020233154296875,
-0.045196533203125,
0.014678955078125,
0.036590576171875,
-0.01033782958984375,
0.0017232894897460938,
-0.01006317138671875,
0.00705718994140625,
0.0018587112426757812,
-0.032684326171875,
0.0206146240234375,
-0.027252197265625,
-0.03765869140625,
0.06817626953125,
0.04656982421875,
-0.0245513916015625,
-0.0170135498046875,
0.00345611572265625,
0.01446533203125,
-0.03387451171875,
-0.0132904052734375,
0.0158538818359375,
0.0236968994140625,
-0.01568603515625,
0.015960693359375,
0.0142669677734375,
-0.005855560302734375,
0.0172576904296875,
-0.0084381103515625,
0.018890380859375,
0.002613067626953125,
-0.07781982421875,
0.06744384765625,
-0.058013916015625,
0.01009368896484375,
0.0237274169921875,
0.0204010009765625,
0.00940704345703125,
0.047882080078125,
-0.0197906494140625,
-0.003353118896484375,
-0.035919189453125,
-0.0259857177734375,
0.03265380859375,
0.072509765625,
-0.00010752677917480469,
0.0211181640625,
-0.05438232421875,
-0.05914306640625,
-0.01428985595703125,
0.0157318115234375,
-0.03179931640625,
-0.0101776123046875,
0.005161285400390625,
0.003997802734375,
0.032989501953125,
0.019744873046875,
0.03558349609375,
0.0284881591796875,
-0.01421356201171875,
0.01434326171875,
0.057037353515625,
0.007411956787109375,
-0.0003733634948730469,
0.046356201171875,
-0.012237548828125,
-0.0284576416015625,
-0.02191162109375,
0.007965087890625,
0.0168609619140625,
0.018585205078125,
0.027618408203125,
0.0203857421875,
0.0170745849609375,
-0.03936767578125,
0.0210113525390625,
-0.01235198974609375,
-0.0275421142578125,
-0.02337646484375,
-0.0055999755859375,
-0.022430419921875,
0.00937652587890625,
0.01090240478515625,
0.01120758056640625,
0.01280975341796875,
0.0039043426513671875,
0.01715087890625,
0.00153350830078125,
0.005176544189453125,
0.0184478759765625,
-0.006511688232421875,
0.00862884521484375,
-0.00238037109375,
-0.01528167724609375,
0.0238189697265625,
-0.0941162109375,
-0.0127410888671875,
0.04583740234375,
0.0002219676971435547,
0.00583648681640625,
0.0080718994140625,
0.0286865234375,
-0.01035308837890625,
-0.01267242431640625,
-0.01459503173828125,
0.0027008056640625,
0.02203369140625,
0.037200927734375,
-0.04217529296875,
-0.003635406494140625,
-0.0197601318359375,
0.033355712890625,
-0.0721435546875,
0.0219879150390625,
-0.01934814453125,
0.0058746337890625,
-0.01009368896484375,
-0.00437164306640625,
0.0126800537109375,
-0.04803466796875,
0.0185394287109375,
0.035736083984375,
0.0308685302734375,
0.0218353271484375,
0.004425048828125,
-0.01555633544921875,
0.0810546875,
0.031036376953125,
0.0280303955078125,
-0.03546142578125,
0.003330230712890625,
-0.0265350341796875,
0.018524169921875,
-0.03179931640625,
0.038848876953125,
-0.048309326171875,
0.007320404052734375,
0.0380859375,
0.0017690658569335938,
-0.01470947265625,
-0.00661468505859375,
0.04193115234375,
0.00594329833984375,
0.0101470947265625,
-0.0252532958984375,
0.007801055908203125,
-0.01641845703125,
0.027374267578125,
-0.005092620849609375,
-0.006473541259765625,
-0.0288543701171875,
0.034912109375,
0.01242828369140625,
-0.04913330078125,
0.0124969482421875,
0.033843994140625,
-0.0073089599609375,
0.015594482421875,
-0.001422882080078125,
-0.01507568359375,
0.0152587890625,
0.01033782958984375,
-0.01131439208984375,
-0.02923583984375,
0.006610870361328125,
-0.0005626678466796875,
0.0423583984375,
-0.0247802734375,
0.040283203125,
0.0210113525390625,
-0.008758544921875,
0.026336669921875,
0.04638671875,
0.0215911865234375,
0.0038242340087890625,
0.01453399658203125,
-0.0189361572265625,
0.00844573974609375,
0.03515625,
0.032440185546875,
0.01435089111328125,
0.0038242340087890625,
0.0110321044921875,
0.041473388671875,
-0.021759033203125,
0.017425537109375,
0.0030364990234375,
0.026275634765625,
-0.0019092559814453125,
0.006496429443359375,
0.0007781982421875,
-0.01480865478515625,
-0.01273345947265625,
0.0144805908203125,
0.029510498046875,
-0.0389404296875,
0.0133209228515625,
-0.01174163818359375,
-0.0201873779296875,
-0.0217132568359375,
-0.085693359375,
-0.051239013671875,
-0.0262603759765625,
-0.0491943359375,
-0.0484619140625,
0.0290679931640625,
-0.021697998046875,
0.032989501953125,
0.03485107421875,
-0.004711151123046875,
-0.019317626953125,
-0.0440673828125,
-0.01102447509765625,
-0.093505859375,
-0.06512451171875,
-0.053253173828125,
0.015777587890625,
0.0014944076538085938,
-0.00638580322265625,
0.07366943359375,
0.005157470703125,
-0.036163330078125,
0.0325927734375,
0.015350341796875,
0.028411865234375,
0.0516357421875,
0.00516510009765625,
-0.01690673828125,
-0.0169677734375,
-0.00537109375,
0.0277099609375,
0.0217742919921875,
-0.034393310546875,
0.01158905029296875,
-0.04156494140625,
-0.037200927734375,
-0.07073974609375,
0.05609130859375,
0.07080078125,
-0.0648193359375,
-0.018280029296875,
-0.05767822265625,
-0.036224365234375,
-0.042510986328125,
-0.064208984375,
0.040863037109375,
0.04779052734375,
-0.001430511474609375,
-0.0193023681640625,
0.0017604827880859375,
0.025604248046875,
0.01030731201171875,
0.0176849365234375,
-0.0200347900390625,
0.039154052734375,
-0.0016326904296875,
0.004421234130859375,
-0.031890869140625,
0.0268402099609375,
-0.0063018798828125,
0.004627227783203125,
-0.00868988037109375,
0.0019197463989257812,
-0.037994384765625,
0.020355224609375,
-0.0767822265625,
-0.0482177734375,
0.03167724609375,
0.01113128662109375,
0.04327392578125,
-0.0240325927734375,
-0.019439697265625,
-0.00585174560546875,
0.08123779296875,
-0.025787353515625,
-0.041259765625,
-0.0268707275390625,
0.031341552734375,
-0.034942626953125,
-0.08782958984375,
0.01678466796875,
-0.01030731201171875,
-0.038604736328125,
-0.01271820068359375,
0.0185546875,
-0.047210693359375,
0.0149383544921875,
-0.042877197265625,
-0.0345458984375,
-0.02606201171875,
0.0163421630859375,
0.0222015380859375,
-0.00907135009765625,
0.028961181640625,
-0.0374755859375,
0.035552978515625,
-0.004108428955078125,
-0.035308837890625,
-0.09466552734375,
-0.02862548828125,
-0.012115478515625,
0.08056640625,
-0.025115966796875,
0.053985595703125,
-0.043365478515625,
0.04559326171875,
-0.01232147216796875,
0.008880615234375,
-0.003475189208984375,
0.0242767333984375,
-0.0200347900390625,
-0.0136871337890625,
-0.00519561767578125,
-0.041778564453125,
-0.006053924560546875,
0.01132965087890625,
-0.01442718505859375,
0.035308837890625,
-0.01458740234375,
-0.0218505859375,
0.022216796875,
-0.041656494140625,
0.037689208984375,
-0.0105438232421875,
0.0224151611328125,
0.038818359375,
0.002960205078125,
-0.016082763671875,
-0.0142364501953125,
0.044525146484375,
0.0236968994140625,
0.00943756103515625,
0.0283203125,
-0.00658416748046875,
0.0899658203125,
0.016143798828125,
-0.0100555419921875,
-0.01129913330078125,
0.0255889892578125,
0.040435791015625,
-0.0008378028869628906,
0.0306243896484375,
0.007228851318359375,
-0.0267333984375,
0.05291748046875,
0.0110626220703125,
0.0233154296875,
-0.006084442138671875,
0.03924560546875,
-0.01068878173828125,
-0.035552978515625,
0.040008544921875,
-0.0106964111328125,
-0.0271453857421875,
0.039642333984375,
-0.019989013671875,
-0.00783538818359375,
-0.01702880859375,
0.023284912109375,
-0.0217132568359375,
0.01042938232421875,
-0.0269927978515625,
-0.042877197265625,
-0.004802703857421875,
-0.047271728515625,
0.055145263671875,
0.050567626953125,
-0.02862548828125,
0.061065673828125,
0.0193634033203125,
0.0007486343383789062,
0.0240478515625,
0.002227783203125,
-0.0003657341003417969,
0.0135498046875,
0.0143280029296875,
-0.0193328857421875,
0.0285186767578125,
-0.01180267333984375,
0.0712890625,
0.058135986328125,
0.0015916824340820312,
0.0004811286926269531,
-0.0132293701171875,
-0.03057861328125,
-0.0343017578125,
-0.00211334228515625,
0.032958984375,
0.0090179443359375,
-0.002445220947265625,
0.007282257080078125,
-0.0009627342224121094,
-0.035736083984375,
-0.0380859375,
0.04754638671875,
0.03570556640625,
-0.0206451416015625,
0.059844970703125,
-0.044586181640625,
0.0307159423828125,
-0.021820068359375,
-0.004638671875,
-0.0135650634765625,
-0.0165557861328125,
0.0178680419921875,
0.02001953125,
0.0142669677734375,
0.00647735595703125,
-0.0242767333984375,
0.02581787109375,
-0.02838134765625,
-0.000713348388671875,
-0.011810302734375,
0.07086181640625,
-0.048675537109375,
-0.041595458984375,
0.0142822265625,
-0.04052734375,
-0.01038360595703125,
0.01464080810546875,
-0.0031948089599609375,
-0.0237579345703125,
-0.03070068359375,
-0.007904052734375,
0.04058837890625,
-0.006687164306640625,
-0.01885986328125,
0.014251708984375,
-0.004566192626953125,
0.03729248046875,
0.037841796875,
0.0036907196044921875,
0.00844573974609375,
-0.002414703369140625,
-0.048370361328125,
-0.040618896484375,
-0.043792724609375,
0.0241241455078125,
0.003009796142578125,
-0.0014181137084960938,
-0.01218414306640625,
0.0096435546875,
-0.04168701171875,
0.01239776611328125,
-0.0135955810546875,
-0.001453399658203125,
-0.0277099609375,
0.01529693603515625,
0.0199432373046875,
0.00690460205078125,
-0.04608154296875,
-0.0032501220703125,
-0.032867431640625,
-0.0167083740234375,
0.0008263587951660156,
-0.03253173828125,
-0.0303497314453125,
-0.033447265625,
-0.0107574462890625,
0.0193939208984375,
-0.0106201171875,
-0.0101165771484375,
-0.023895263671875,
0.0416259765625,
0.0249481201171875,
0.068359375,
0.0082244873046875,
0.005519866943359375,
-0.00878143310546875,
0.0233917236328125,
0.004375457763671875,
0.0122528076171875,
0.017425537109375,
-0.029510498046875,
0.0017633438110351562,
-0.05224609375,
-0.01239013671875,
-0.0049896240234375,
-0.0036945343017578125,
0.0404052734375,
0.055267333984375,
0.018280029296875,
0.0027751922607421875,
-0.01361846923828125,
-0.01507568359375,
-0.01326751708984375,
0.035919189453125,
-0.01215362548828125,
0.004459381103515625,
0.0209808349609375,
-0.0022563934326171875,
0.039764404296875,
-0.0284423828125,
0.003330230712890625,
-0.0027618408203125,
-0.007671356201171875,
-0.00399017333984375,
0.0298309326171875,
-0.0209503173828125,
0.032928466796875,
0.06689453125,
0.0152740478515625,
0.05889892578125,
0.0197906494140625,
0.040283203125,
0.017822265625,
0.0328369140625,
-0.01184844970703125,
-0.0294036865234375,
0.0306243896484375,
-0.0027599334716796875,
-0.03131103515625,
0.00658416748046875,
-0.0340576171875,
0.04498291015625,
0.05841064453125,
0.06219482421875,
-0.06878662109375,
0.0128936767578125,
-0.0241851806640625,
-0.02301025390625,
0.09027099609375,
-0.0024089813232421875,
-0.017242431640625,
0.0010576248168945312,
0.07220458984375,
-0.0095672607421875,
-0.0030670166015625,
0.043121337890625,
0.03887939453125,
-0.006351470947265625,
0.0237884521484375,
-0.014495849609375,
-0.0001366138458251953,
-0.07659912109375,
-0.048065185546875,
0.0950927734375,
-0.07379150390625,
0.01641845703125,
0.034912109375,
-0.0296783447265625,
-0.01015472412109375,
0.003475189208984375,
0.0162353515625,
-0.021942138671875,
-0.0182342529296875,
0.0137786865234375,
-0.007579803466796875,
0.0283050537109375,
0.0265045166015625,
0.00560760498046875,
-0.0172576904296875,
0.00518798828125,
-0.021484375,
0.05926513671875,
0.011505126953125,
0.00235748291015625,
-0.009429931640625,
-0.037506103515625,
-0.017852783203125,
-0.026702880859375,
0.036651611328125,
-0.00276947021484375,
-0.02874755859375,
0.05792236328125,
-0.0413818359375,
-0.00400543212890625,
0.04339599609375,
-0.026824951171875,
-0.0287017822265625,
0.0140228271484375,
0.048095703125,
-0.029510498046875,
0.0118865966796875,
0.02496337890625,
-0.0001703500747680664,
-0.022247314453125,
-0.005741119384765625,
-0.05670166015625,
0.02764892578125,
-0.04888916015625,
0.03173828125,
0.032806396484375,
0.00919342041015625,
-0.01434326171875,
-0.02569580078125,
-0.0162353515625,
-0.0008101463317871094,
-0.0552978515625,
0.01220703125,
-0.054534912109375,
0.019927978515625,
-0.0201568603515625,
0.0171966552734375,
0.0848388671875,
0.0107421875,
-0.001987457275390625,
-0.0221710205078125,
0.052001953125,
0.046051025390625,
-0.01181793212890625,
0.000537872314453125,
0.0004558563232421875,
-0.043792724609375,
-0.0039825439453125,
0.033050537109375,
0.029327392578125,
-0.0243988037109375,
-0.02313232421875,
0.0247802734375,
-0.00916290283203125,
-0.02386474609375,
0.020843505859375,
0.0164794921875,
-0.0589599609375,
0.0222015380859375,
0.03875732421875,
-0.0295867919921875,
0.005847930908203125,
0.035614013671875,
-0.02099609375,
0.017852783203125,
-0.027069091796875,
-0.01152801513671875,
0.0321044921875,
-0.025909423828125,
0.019317626953125,
-0.0096282958984375,
0.002288818359375,
-0.0014820098876953125,
0.026824951171875,
0.01129913330078125,
0.062225341796875,
-0.03118896484375,
0.0024242401123046875,
0.00875091552734375,
0.004604339599609375,
-0.039581298828125,
-0.01108551025390625,
0.030242919921875,
0.026947021484375,
-0.02105712890625,
-0.00876617431640625,
-0.00022530555725097656,
0.004894256591796875,
0.0286712646484375,
-0.01532745361328125,
0.041534423828125,
-0.0780029296875,
-0.0577392578125,
-0.0193634033203125,
-0.01540374755859375,
0.0325927734375,
0.00788116455078125,
0.00711822509765625,
0.0082244873046875,
-0.0192413330078125,
-0.0125274658203125,
-0.0174560546875,
0.027069091796875,
0.011871337890625,
0.018341064453125,
-0.0143890380859375,
0.0382080078125,
0.0152740478515625,
0.00811767578125,
-0.018890380859375,
0.026824951171875,
0.0234832763671875,
0.01229095458984375,
-0.00482177734375,
0.00725555419921875,
0.0267486572265625,
0.0050048828125,
-0.0190277099609375,
0.0207366943359375,
0.0147857666015625,
-0.003215789794921875,
-0.0266571044921875,
-0.0156707763671875,
-0.019775390625,
-0.045745849609375,
0.020172119140625,
-0.0260772705078125,
0.04296875,
0.043914794921875,
-0.0018405914306640625,
-0.0188751220703125,
-0.008514404296875,
0.07965087890625,
-0.039215087890625,
0.043853759765625,
-0.006198883056640625,
-0.007595062255859375,
-0.022186279296875,
-0.0016918182373046875,
0.0205841064453125,
0.00815582275390625,
-0.005481719970703125,
0.00909423828125,
-0.00914764404296875,
-0.06585693359375,
0.006591796875,
0.0283355712890625,
-0.0299835205078125,
0.031463623046875,
0.058380126953125,
-0.0130157470703125,
-0.0220489501953125,
-0.0006856918334960938,
0.042938232421875,
-0.034912109375,
0.0080718994140625,
0.0106201171875,
-0.041015625,
-0.035858154296875,
-0.034942626953125,
0.0653076171875,
0.016754150390625,
0.089111328125,
-0.0517578125,
0.03558349609375,
0.0242767333984375,
-0.021484375,
0.0142059326171875,
0.0162811279296875,
-0.00846099853515625,
-0.021026611328125,
-0.0046844482421875,
-0.01441192626953125,
-0.08013916015625,
0.0246124267578125,
0.0151519775390625,
-0.0124359130859375,
-0.00843048095703125,
0.028076171875,
0.0098724365234375,
0.0228271484375,
0.0294189453125,
-0.0139617919921875,
-0.0072174072265625,
-0.03289794921875,
-0.0115814208984375,
0.0443115234375,
-0.0033416748046875,
-0.03204345703125,
0.02825927734375,
0.003467559814453125,
-0.0247344970703125,
0.041656494140625,
-0.06121826171875,
0.06884765625,
0.05206298828125,
-0.0119781494140625,
-0.08966064453125,
-0.0176849365234375,
-0.0079345703125,
-0.0238800048828125,
-0.00452423095703125,
0.067138671875,
-0.01947021484375,
-0.0406494140625,
0.04736328125,
0.050262451171875,
0.05242919921875,
-0.0209503173828125,
0.012939453125,
0.0474853515625,
0.0004153251647949219,
0.0182647705078125,
0.0082244873046875,
-0.01084136962890625,
-0.006221771240234375,
-0.0079193115234375,
0.0230712890625,
-0.0050201416015625,
0.00017178058624267578,
-0.0374755859375,
0.0038299560546875,
0.0222930908203125,
0.0158538818359375,
-0.050933837890625,
0.0289764404296875,
-0.0186004638671875,
0.0159454345703125,
-0.01476287841796875,
-0.00689697265625,
0.01345062255859375,
0.0195159912109375,
-0.0242156982421875,
-0.0280914306640625,
-0.015289306640625,
0.0137786865234375,
-0.023162841796875,
0.054656982421875,
0.057373046875,
-0.03997802734375,
0.06280517578125,
0.052337646484375,
0.0321044921875,
0.11785888671875,
-0.049652099609375,
-0.012939453125,
-0.0025157928466796875,
0.0154876708984375,
-0.0328369140625,
-0.045745849609375,
0.0294647216796875,
-0.04742431640625,
-0.0195159912109375,
-0.0389404296875,
0.017333984375,
0.018341064453125,
-0.04241943359375,
-0.10052490234375,
0.014678955078125,
-0.01221466064453125,
-0.043609619140625,
-0.0246124267578125,
-0.01161956787109375,
-0.022064208984375,
0.0377197265625,
0.003475189208984375,
-0.0210113525390625,
0.0084228515625,
0.025543212890625,
0.0008530616760253906,
0.033172607421875,
0.01220703125,
0.01230621337890625,
-0.03173828125,
0.00872802734375,
0.00489044189453125,
-0.0028076171875,
-0.0156402587890625,
-0.03240966796875,
0.027008056640625,
0.0251007080078125,
-0.0291595458984375,
-0.038787841796875,
0.0341796875,
0.01294708251953125,
-0.0295562744140625,
-0.07415771484375,
-0.0196990966796875,
-0.0293731689453125,
0.06658935546875,
0.007083892822265625,
0.01007843017578125,
-0.01605224609375,
-0.01470184326171875,
-0.0256195068359375,
-0.022369384765625,
-0.018768310546875,
0.0168304443359375,
-0.052978515625,
-0.00722503662109375,
0.010955810546875,
-0.004283905029296875,
0.01024627685546875,
-0.000583648681640625,
-0.0180511474609375,
-0.00930023193359375,
0.01032257080078125,
-0.00439453125,
-0.028289794921875,
-0.03912353515625,
0.10382080078125,
-0.030303955078125,
0.041046142578125,
-0.0018396377563476562,
0.03656005859375,
0.0694580078125,
0.028472900390625,
0.036285400390625,
0.00710296630859375,
-0.01255035400390625,
0.0287017822265625,
0.00484466552734375,
-0.001373291015625,
-0.0200347900390625,
-0.0418701171875,
0.0068511962890625,
-0.00992584228515625,
-0.0200958251953125,
-0.0259552001953125,
0.026336669921875,
0.04412841796875,
-0.01776123046875,
0.0682373046875,
-0.0099334716796875,
-0.011322021484375,
-0.0297088623046875,
0.043365478515625,
-0.00799560546875,
-0.00917816162109375,
0.004451751708984375,
-0.00577545166015625,
0.0111083984375,
-0.0116729736328125,
-0.036285400390625,
-0.047760009765625,
0.00937652587890625,
-0.035552978515625,
-0.004756927490234375,
0.01181793212890625
] |
6ba30d1968e3363e0e0fdc37fe4087fd7ba06c02
|
Wordpress Stackexchange
Q: Wordpress | Sub-domain switching I'm finding a way to redirect to a sub-domain. Sub-domains contain instances of multiple languages, say for an example -:
http://mysite/?p=7694
This is the English site and I want it to redirect to (when user selects particular language)
http://chinese.mysite/?p=7694
Is there a simple way of doing this want to know if there are any plugins to do so. This the requirement of my client, and they wont to do it in that way.
Thanks.
A: You can Use qTranslate, this WordPress plugin let you have an easy to use interface for managing a fully multilingual web site.
One-Click-Switching between the
languages - Change the language as
easy as switching Choose one of 3
Modes to make your URLs pretty and
SEO-friendly. - The everywhere
compatible ?lang=en, simple and
beautiful /en/foo/ or nice and neat
en.yoursite.com One language for each
URL - Users and SEO will thank you for
not mixing multilingual content
For reference: http://codex.wordpress.org/Multilingual_WordPress
|
Q: Wordpress | Sub-domain switching I'm finding a way to redirect to a sub-domain. Sub-domains contain instances of multiple languages, say for an example -:
http://mysite/?p=7694
This is the English site and I want it to redirect to (when user selects particular language)
http://chinese.mysite/?p=7694
Is there a simple way of doing this want to know if there are any plugins to do so. This the requirement of my client, and they wont to do it in that way.
Thanks.
A: You can Use qTranslate, this WordPress plugin let you have an easy to use interface for managing a fully multilingual web site.
One-Click-Switching between the
languages - Change the language as
easy as switching Choose one of 3
Modes to make your URLs pretty and
SEO-friendly. - The everywhere
compatible ?lang=en, simple and
beautiful /en/foo/ or nice and neat
en.yoursite.com One language for each
URL - Users and SEO will thank you for
not mixing multilingual content
For reference: http://codex.wordpress.org/Multilingual_WordPress
A: You can use WP Subdomains its a plugin for WordPress that allows you to setup your main categories, pages and authors as subdomains.
|
wordpress
|
{
"language": "en",
"length": 184,
"provenance": "stackexchange_00019.jsonl.gz:408552",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14544"
}
|
[
0.044677734375,
0.00469970703125,
0.0168914794921875,
0.0472412109375,
-0.01091766357421875,
-0.051971435546875,
0.058685302734375,
-0.06866455078125,
0.00801849365234375,
0.0207366943359375,
0.0206756591796875,
-0.017974853515625,
-0.0052947998046875,
-0.043548583984375,
-0.0081634521484375,
-0.010589599609375,
0.0157928466796875,
-0.006145477294921875,
-0.0030422210693359375,
-0.011962890625,
-0.022186279296875,
0.0106353759765625,
0.0091094970703125,
0.0036640167236328125,
0.0265960693359375,
-0.054901123046875,
0.07440185546875,
-0.0271453857421875,
0.0013275146484375,
-0.03826904296875,
0.031341552734375,
0.0311279296875,
0.0281829833984375,
0.004695892333984375,
-0.00909423828125,
-0.0120697021484375,
0.004795074462890625,
-0.000005185604095458984,
0.00278472900390625,
0.01070404052734375,
0.021484375,
-0.00954437255859375,
-0.02838134765625,
0.043914794921875,
-0.009429931640625,
-0.0772705078125,
0.04925537109375,
-0.040802001953125,
0.00022590160369873047,
0.00037407875061035156,
0.0118560791015625,
-0.021728515625,
0.0308074951171875,
-0.041015625,
-0.01197052001953125,
-0.0007557868957519531,
-0.01549530029296875,
0.0297088623046875,
0.0116119384765625,
0.0151824951171875,
-0.0008912086486816406,
0.0298309326171875,
-0.0029449462890625,
0.0034961700439453125,
-0.0230255126953125,
-0.00894927978515625,
-0.0513916015625,
0.007598876953125,
-0.0367431640625,
-0.0169525146484375,
0.038330078125,
-0.038330078125,
0.0204925537109375,
-0.055145263671875,
-0.026123046875,
0.037261962890625,
-0.00799560546875,
-0.018768310546875,
0.0240325927734375,
-0.047607421875,
0.0186004638671875,
0.0069122314453125,
-0.004016876220703125,
-0.03814697265625,
0.033782958984375,
0.004253387451171875,
-0.0186767578125,
-0.025848388671875,
-0.0838623046875,
-0.017913818359375,
-0.043487548828125,
-0.039215087890625,
-0.0831298828125,
-0.003917694091796875,
0.00276947021484375,
-0.00806427001953125,
0.017486572265625,
0.0032482147216796875,
0.0018014907836914062,
0.0016183853149414062,
-0.00304412841796875,
-0.039306640625,
0.01367950439453125,
-0.017730712890625,
0.007114410400390625,
-0.0047607421875,
0.01296234130859375,
0.016754150390625,
0.030792236328125,
0.0175018310546875,
-0.0251312255859375,
0.05169677734375,
-0.0216522216796875,
-0.00830841064453125,
-0.0155181884765625,
0.0147857666015625,
-0.026641845703125,
-0.007389068603515625,
-0.01434326171875,
0.009552001953125,
0.015472412109375,
0.044921875,
0.007404327392578125,
-0.0299530029296875,
-0.01119232177734375,
-0.033935546875,
-0.0102691650390625,
-0.043426513671875,
-0.005794525146484375,
0.0105133056640625,
-0.01763916015625,
0.01279449462890625,
0.036590576171875,
0.02313232421875,
-0.01519012451171875,
-0.01047515869140625,
0.0477294921875,
0.022613525390625,
0.02239990234375,
-0.020263671875,
0.0439453125,
-0.02471923828125,
-0.0309600830078125,
0.0304412841796875,
-0.01168060302734375,
0.0439453125,
0.013641357421875,
-0.0067901611328125,
-0.0205230712890625,
-0.07220458984375,
0.034332275390625,
-0.08917236328125,
0.0626220703125,
-0.037841796875,
-0.048248291015625,
-0.056640625,
-0.00902557373046875,
-0.033355712890625,
0.013397216796875,
-0.038177490234375,
-0.0311126708984375,
-0.0226593017578125,
0.03802490234375,
-0.01033782958984375,
-0.01163482666015625,
0.027374267578125,
-0.0282745361328125,
-0.0034694671630859375,
0.0252838134765625,
-0.03973388671875,
0.057464599609375,
0.0003294944763183594,
-0.0219879150390625,
-0.0279693603515625,
0.0113525390625,
-0.007320404052734375,
0.0022869110107421875,
0.0301666259765625,
-0.01052093505859375,
0.0609130859375,
0.03375244140625,
-0.027099609375,
0.0296783447265625,
0.015106201171875,
-0.0310516357421875,
0.036163330078125,
-0.0110931396484375,
0.041107177734375,
0.014801025390625,
0.01334381103515625,
-0.011322021484375,
0.0191497802734375,
-0.0430908203125,
0.0235443115234375,
-0.0184783935546875,
-0.0090484619140625,
0.01337432861328125,
0.0214080810546875,
-0.0009512901306152344,
-0.0288238525390625,
0.0023555755615234375,
-0.00470733642578125,
-0.0172271728515625,
-0.0014295578002929688,
-0.027435302734375,
-0.01123809814453125,
-0.01230621337890625,
0.0186614990234375,
0.039093017578125,
0.03314208984375,
-0.0229034423828125,
0.0009946823120117188,
-0.004913330078125,
-0.03326416015625,
-0.019927978515625,
0.0323486328125,
-0.0089263916015625,
0.035064697265625,
0.033355712890625,
0.013336181640625,
0.0445556640625,
-0.0260009765625,
0.0233306884765625,
-0.0177459716796875,
0.0006709098815917969,
-0.0221405029296875,
-0.0009737014770507812,
-0.011016845703125,
-0.00887298583984375,
0.024383544921875,
-0.05364990234375,
0.0308380126953125,
0.041015625,
-0.0116729736328125,
-0.057861328125,
0.0168304443359375,
-0.0095977783203125,
-0.01076507568359375,
-0.0216522216796875,
0.051788330078125,
0.0232696533203125,
0.01049041748046875,
-0.0147857666015625,
-0.00003802776336669922,
0.0042572021484375,
-0.05755615234375,
0.00399017333984375,
0.004791259765625,
0.0033664703369140625,
0.046630859375,
-0.0054779052734375,
0.0075225830078125,
0.00359344482421875,
-0.0248260498046875,
-0.00519561767578125,
0.0350341796875,
-0.0164642333984375,
-0.06768798828125,
0.031951904296875,
-0.021942138671875,
0.028411865234375,
-0.0244293212890625,
-0.0693359375,
0.012847900390625,
0.02935791015625,
-0.023162841796875,
0.0009317398071289062,
-0.0144805908203125,
0.0015325546264648438,
-0.01312255859375,
0.0255584716796875,
-0.049041748046875,
0.01325225830078125,
0.00640869140625,
0.0261383056640625,
-0.01532745361328125,
-0.01276397705078125,
-0.0091705322265625,
0.033447265625,
-0.00003403425216674805,
-0.0122833251953125,
0.02618408203125,
-0.036834716796875,
-0.030059814453125,
-0.006153106689453125,
-0.046539306640625,
-0.0225067138671875,
-0.01148223876953125,
0.00992584228515625,
-0.0023097991943359375,
0.0283355712890625,
0.0026454925537109375,
-0.03179931640625,
0.025238037109375,
0.00435638427734375,
-0.03875732421875,
0.064453125,
-0.038604736328125,
0.03619384765625,
-0.0201873779296875,
0.0667724609375,
0.0667724609375,
-0.0171051025390625,
-0.01531219482421875,
0.017486572265625,
-0.0167236328125,
0.0097198486328125,
-0.005710601806640625,
-0.01081085205078125,
0.0465087890625,
-0.11700439453125,
-0.00788116455078125,
0.01085662841796875,
-0.062225341796875,
0.004634857177734375,
-0.022857666015625,
-0.034423828125,
-0.0244598388671875,
-0.10693359375,
-0.04345703125,
-0.01451873779296875,
-0.03033447265625,
0.025115966796875,
0.051483154296875,
-0.002750396728515625,
-0.038177490234375,
0.0863037109375,
0.0120086669921875,
0.0020465850830078125,
-0.0010042190551757812,
-0.04498291015625,
-0.0146026611328125,
-0.0587158203125,
-0.037078857421875,
-0.0193023681640625,
0.0006279945373535156,
0.0170135498046875,
-0.0655517578125,
-0.00563812255859375,
-0.01270294189453125,
0.027008056640625,
0.07611083984375,
-0.0046844482421875,
-0.02423095703125,
-0.005435943603515625,
-0.064453125,
0.018218994140625,
-0.0037899017333984375,
0.046844482421875,
0.02227783203125,
0.0107574462890625,
0.015869140625,
0.01320648193359375,
0.0114898681640625,
0.0289764404296875,
-0.08868408203125,
-0.03656005859375,
0.031341552734375,
-0.0176544189453125,
-0.033050537109375,
-0.00039887428283691406,
-0.0197296142578125,
-0.0292205810546875,
-0.025634765625,
0.0191497802734375,
-0.005878448486328125,
-0.0243988037109375,
-0.006023406982421875,
0.0149688720703125,
0.00710296630859375,
0.0020885467529296875,
-0.0237579345703125,
0.015472412109375,
-0.003353118896484375,
0.01422119140625,
-0.0102996826171875,
0.035491943359375,
-0.018707275390625,
-0.0114898681640625,
0.004566192626953125,
-0.0166473388671875,
-0.0226593017578125,
0.0173187255859375,
-0.0169219970703125,
-0.05059814453125,
0.02056884765625,
-0.061737060546875,
-0.030975341796875,
-0.0211334228515625,
-0.00765228271484375,
-0.0008587837219238281,
0.06756591796875,
-0.0303955078125,
0.02044677734375,
0.01824951171875,
0.005229949951171875,
-0.0254974365234375,
-0.017425537109375,
-0.10406494140625,
-0.0026149749755859375,
-0.10302734375,
-0.001468658447265625,
-0.0264129638671875,
-0.0024890899658203125,
-0.0179443359375,
0.03863525390625,
-0.03460693359375,
-0.04510498046875,
0.030029296875,
-0.00817108154296875,
-0.031463623046875,
0.0115509033203125,
-0.0015802383422851562,
-0.04913330078125,
-0.01611328125,
0.0016345977783203125,
-0.01123809814453125,
-0.0027141571044921875,
0.01232147216796875,
-0.008575439453125,
0.01629638671875,
-0.037567138671875,
0.00809478759765625,
0.038848876953125,
-0.005123138427734375,
0.03271484375,
-0.038604736328125,
-0.006805419921875,
0.0240936279296875,
0.0206756591796875,
-0.03265380859375,
0.01262664794921875,
-0.0048065185546875,
0.01300811767578125,
-0.01947021484375,
0.0215911865234375,
-0.012451171875,
-0.0215606689453125,
0.0242767333984375,
-0.050872802734375,
-0.08135986328125,
-0.0166778564453125,
-0.02618408203125,
0.005115509033203125,
-0.0190582275390625,
-0.0096588134765625,
-0.016845703125,
-0.0760498046875,
0.028289794921875,
0.004878997802734375,
-0.0149078369140625,
0.00787353515625,
-0.006622314453125,
0.005748748779296875,
-0.037445068359375,
-0.0169830322265625,
-0.0196990966796875,
0.0257415771484375,
-0.0166168212890625,
0.049774169921875,
0.018951416015625,
-0.020172119140625,
0.09033203125,
0.002887725830078125,
-0.005764007568359375,
0.045379638671875,
-0.012786865234375,
0.016326904296875,
-0.02154541015625,
0.0014753341674804688,
0.00623321533203125,
-0.02593994140625,
0.0303955078125,
0.00756072998046875,
-0.0123443603515625,
-0.0044403076171875,
0.0307159423828125,
0.0196380615234375,
-0.033477783203125,
-0.04547119140625,
-0.04852294921875,
0.0259552001953125,
0.0156402587890625,
0.0007529258728027344,
-0.015838623046875,
0.00972747802734375,
0.007373809814453125,
0.053070068359375,
-0.00908660888671875,
0.04022216796875,
-0.0026702880859375,
0.0347900390625,
0.03973388671875,
0.01172637939453125,
0.004940032958984375,
0.00732421875,
-0.00693511962890625,
0.04168701171875,
0.005542755126953125,
-0.0472412109375,
0.02374267578125,
-0.0064239501953125,
-0.0295562744140625,
0.025115966796875,
-0.0138397216796875,
0.032470703125,
0.0308074951171875,
-0.01763916015625,
0.0196685791015625,
0.012481689453125,
-0.0134735107421875,
-0.048919677734375,
0.0259246826171875,
-0.01275634765625,
0.00739288330078125,
-0.02301025390625,
0.12255859375,
0.0006089210510253906,
0.0509033203125,
-0.0121612548828125,
-0.0210113525390625,
0.04107666015625,
0.0239410400390625,
0.0167388916015625,
-0.0042877197265625,
-0.022674560546875,
0.03387451171875,
0.036651611328125,
-0.0235748291015625,
0.0106201171875,
0.054443359375,
0.0625,
0.030670166015625,
-0.01175689697265625,
-0.03619384765625,
-0.04803466796875,
-0.01363372802734375,
0.0246124267578125,
0.00911712646484375,
-0.03387451171875,
-0.01404571533203125,
-0.00939178466796875,
0.0098876953125,
-0.004962921142578125,
-0.015625,
-0.01259613037109375,
-0.03143310546875,
0.009002685546875,
0.012237548828125,
-0.0165863037109375,
0.01995849609375,
0.01052093505859375,
-0.01474761962890625,
0.009429931640625,
-0.00614166259765625,
-0.042572021484375,
-0.033538818359375,
0.0004494190216064453,
-0.01230621337890625,
0.032745361328125,
-0.0310211181640625,
-0.022064208984375,
0.0181121826171875,
0.0125732421875,
0.0177459716796875,
0.0167694091796875,
0.042236328125,
-0.00335693359375,
-0.06512451171875,
0.0163421630859375,
-0.013702392578125,
0.0025196075439453125,
0.00119781494140625,
-0.0263214111328125,
-0.040069580078125,
-0.0177764892578125,
0.01067352294921875,
-0.0130615234375,
-0.0037212371826171875,
-0.024566650390625,
-0.02508544921875,
0.00922393798828125,
0.036895751953125,
-0.046417236328125,
-0.0032863616943359375,
0.03643798828125,
-0.027069091796875,
0.02154541015625,
0.0011272430419921875,
0.022705078125,
0.017364501953125,
-0.0203094482421875,
0.01015472412109375,
-0.0184326171875,
-0.0118255615234375,
-0.001922607421875,
-0.0231170654296875,
0.003978729248046875,
0.0550537109375,
-0.0018215179443359375,
0.013702392578125,
-0.006481170654296875,
0.010650634765625,
-0.029144287109375,
-0.026397705078125,
-0.02423095703125,
0.0309906005859375,
-0.02569580078125,
-0.01071929931640625,
0.024322509765625,
-0.0291595458984375,
-0.0119171142578125,
-0.01373291015625,
0.0003731250762939453,
-0.0077667236328125,
0.03729248046875,
-0.018524169921875,
0.005344390869140625,
0.03631591796875,
0.0243072509765625,
0.035552978515625,
0.0272674560546875,
0.01593017578125,
-0.01800537109375,
-0.01271820068359375,
0.008575439453125,
0.036956787109375,
0.004852294921875,
-0.036346435546875,
0.008880615234375,
-0.022308349609375,
-0.0018911361694335938,
-0.01396942138671875,
0.095703125,
0.04962158203125,
-0.1326904296875,
0.00582122802734375,
0.005611419677734375,
-0.0156097412109375,
-0.0443115234375,
0.0083465576171875,
-0.0185394287109375,
0.00238037109375,
0.0234832763671875,
-0.041717529296875,
-0.026123046875,
0.0074615478515625,
0.007904052734375,
-0.018341064453125,
-0.01409912109375,
0.043975830078125,
0.02313232421875,
-0.0093536376953125,
-0.021209716796875,
0.0048828125,
-0.00624847412109375,
-0.018798828125,
-0.01263427734375,
0.050079345703125,
-0.0121917724609375,
-0.044952392578125,
0.047393798828125,
-0.036895751953125,
0.00958251953125,
-0.0416259765625,
-0.025177001953125,
0.040008544921875,
0.097412109375,
-0.04351806640625,
-0.0093994140625,
0.07421875,
0.0014925003051757812,
0.03973388671875,
-0.01335906982421875,
0.0125885009765625,
-0.03546142578125,
-0.05255126953125,
-0.00945281982421875,
-0.048736572265625,
-0.00235748291015625,
-0.017333984375,
-0.0079193115234375,
0.0479736328125,
0.01203155517578125,
-0.03631591796875,
0.0239105224609375,
0.01078033447265625,
-0.01329803466796875,
-0.0025157928466796875,
-0.01104736328125,
-0.05059814453125,
-0.067626953125,
-0.01519012451171875,
-0.1083984375,
-0.0025119781494140625,
-0.0175323486328125,
-0.06658935546875,
0.08575439453125,
0.0110626220703125,
0.05810546875,
0.0246429443359375,
0.0281219482421875,
-0.024322509765625,
-0.002605438232421875,
-0.0122833251953125,
0.03851318359375,
0.013885498046875,
-0.002193450927734375,
-0.021240234375,
0.0007829666137695312,
0.006351470947265625,
0.02947998046875,
0.0173797607421875,
0.0128173828125,
-0.045013427734375,
0.0158843994140625,
0.033050537109375,
0.016265869140625,
0.0024852752685546875,
0.045074462890625,
-0.027191162109375,
0.0413818359375,
0.0261688232421875,
-0.0635986328125,
-0.0012226104736328125,
0.014434814453125,
-0.033599853515625,
0.0059814453125,
-0.0031604766845703125,
-0.021087646484375,
0.000690460205078125,
0.021514892578125,
-0.065185546875,
0.016143798828125,
0.024688720703125,
0.036224365234375,
0.061767578125,
-0.018310546875,
0.032379150390625,
-0.025390625,
0.049896240234375,
-0.0276336669921875,
0.058868408203125,
-0.003795623779296875,
0.0272369384765625,
-0.007106781005859375,
0.0108489990234375,
0.062225341796875,
-0.02032470703125,
0.0028533935546875,
0.0223846435546875,
-0.02606201171875,
0.0509033203125,
0.023895263671875,
0.0207061767578125,
-0.0269927978515625,
-0.01248931884765625,
0.0280914306640625,
0.06829833984375,
-0.050323486328125,
-0.06243896484375,
-0.0008754730224609375,
-0.01119232177734375,
0.0318603515625,
0.0273284912109375,
0.037017822265625,
0.003376007080078125,
0.006130218505859375,
0.0263519287109375,
-0.0063629150390625,
-0.0013360977172851562,
0.0016870498657226562,
0.0159454345703125,
0.03558349609375,
0.000823974609375,
0.038543701171875,
-0.040313720703125,
-0.0152587890625,
0.043701171875,
0.09033203125,
0.0102386474609375,
0.0894775390625,
-0.0109710693359375,
-0.0443115234375,
0.01727294921875,
0.005718231201171875,
-0.005908966064453125,
-0.03424072265625,
-0.012847900390625,
-0.06561279296875,
0.0113983154296875,
0.036590576171875,
0.017364501953125,
-0.02093505859375,
0.04833984375,
0.0687255859375,
-0.0283050537109375,
-0.017242431640625,
0.032073974609375,
-0.002674102783203125,
0.08074951171875,
-0.041778564453125,
0.034820556640625,
-0.034759521484375,
-0.03314208984375,
-0.044342041015625,
0.01380157470703125,
0.0162506103515625,
0.001277923583984375,
0.05450439453125,
-0.0013751983642578125,
-0.0086517333984375,
0.00020372867584228516,
-0.01983642578125,
0.0504150390625,
0.0207366943359375,
-0.06732177734375,
-0.01019287109375,
-0.01477813720703125,
-0.05230712890625,
0.0308837890625,
0.0419921875,
-0.022705078125,
0.012451171875,
-0.001407623291015625,
0.0115509033203125,
0.035888671875,
-0.04779052734375,
0.01151275634765625,
0.03558349609375,
0.0242462158203125,
0.022247314453125,
-0.056427001953125,
-0.026123046875,
-0.0103759765625,
0.0155792236328125,
-0.01300048828125,
0.050811767578125,
-0.00847625732421875,
0.016510009765625,
-0.0227203369140625,
-0.00998687744140625,
0.00647735595703125,
-0.0223541259765625,
0.05462646484375,
0.03607177734375,
-0.00777435302734375,
-0.0306243896484375,
-0.037841796875,
0.0239410400390625,
0.00809478759765625,
-0.031341552734375,
0.0265350341796875,
-0.01788330078125,
0.00838470458984375,
-0.01059722900390625,
0.018402099609375,
-0.044158935546875,
-0.085693359375,
-0.09136962890625,
0.0166015625,
0.005615234375,
0.02203369140625,
-0.03363037109375,
0.0116424560546875,
-0.0361328125,
-0.034515380859375,
0.01409149169921875,
-0.041534423828125,
-0.0120086669921875,
0.0265655517578125,
-0.0056304931640625,
-0.0311431884765625,
0.03271484375,
-0.0038661956787109375,
-0.002765655517578125,
0.01403045654296875,
0.043548583984375,
0.01395416259765625,
-0.0239105224609375,
-0.0228271484375,
-0.04022216796875,
-0.0238037109375,
-0.022674560546875,
-0.022613525390625,
0.019073486328125,
-0.0192413330078125,
-0.040130615234375,
0.019195556640625,
-0.007610321044921875,
-0.0026836395263671875,
-0.004581451416015625,
-0.0008492469787597656,
0.03515625,
-0.005962371826171875,
0.0037899017333984375,
-0.029052734375,
0.023834228515625,
-0.0119781494140625,
-0.0277252197265625,
-0.007747650146484375,
-0.034423828125,
0.041290283203125,
-0.02801513671875,
-0.0110626220703125,
0.00943756103515625,
0.0223541259765625,
-0.05810546875,
-0.0197906494140625,
-0.039093017578125,
-0.00960540771484375,
-0.055328369140625,
-0.003448486328125,
0.025146484375,
-0.002460479736328125,
-0.00914764404296875,
-0.03753662109375,
-0.011474609375,
0.0153961181640625,
-0.031646728515625,
-0.01548004150390625,
0.0097808837890625,
0.006244659423828125,
-0.035736083984375,
-0.043304443359375,
0.0343017578125,
-0.07257080078125,
-0.00305938720703125,
-0.0131072998046875,
-0.0176849365234375,
-0.02020263671875,
-0.052215576171875,
-0.06329345703125,
0.08489990234375,
-0.016387939453125,
-0.02239990234375,
-0.033843994140625,
0.0278167724609375,
-0.017333984375,
0.038116455078125,
0.00531768798828125,
-0.024261474609375,
0.001605987548828125,
0.014434814453125,
0.019683837890625,
0.049072265625,
-0.00569915771484375,
0.030914306640625,
0.0386962890625,
0.049163818359375,
0.053192138671875,
-0.00872039794921875,
0.004730224609375,
-0.035675048828125,
0.0299530029296875,
0.0287628173828125,
-0.039825439453125,
-0.056610107421875,
0.0219268798828125,
0.038116455078125,
0.0148162841796875,
-0.052001953125,
-0.0248565673828125,
-0.057342529296875,
0.04583740234375,
-0.022125244140625,
0.0084381103515625,
0.012359619140625,
-0.01230621337890625,
-0.024169921875,
0.00841522216796875,
-0.00749969482421875,
0.0037746429443359375,
-0.041961669921875,
0.0005693435668945312,
-0.004917144775390625,
-0.0008993148803710938,
-0.00461578369140625,
0.004642486572265625,
-0.0233154296875,
-0.0018606185913085938,
0.0140380859375,
-0.0106353759765625,
-0.028411865234375,
0.042022705078125,
0.0684814453125,
-0.050262451171875,
0.008026123046875,
0.0011444091796875,
0.004161834716796875,
0.0213165283203125,
-0.02337646484375,
-0.0010328292846679688,
0.043701171875,
-0.0010881423950195312,
0.0156402587890625,
0.0285186767578125,
0.004314422607421875,
-0.00970458984375,
0.005970001220703125,
-0.034576416015625,
0.0307159423828125,
0.0171051025390625,
0.056732177734375,
-0.01009368896484375,
0.00528717041015625,
0.034759521484375,
-0.005733489990234375,
0.0034580230712890625,
-0.0031280517578125,
0.0055999755859375,
0.0176544189453125,
-0.051422119140625,
0.0007843971252441406,
-0.0308990478515625,
-0.045501708984375,
0.007549285888671875,
0.017578125,
0.004329681396484375,
-0.0232696533203125,
0.016845703125,
-0.0023097991943359375,
0.014801025390625,
0.0223846435546875
] |
0d4634850da0965af0a9c2b78b3aa4b172e9b1a7
|
Wordpress Stackexchange
Q: Clear cache when a post is submitted I have a question.
How can I clear the cache when a post is submitted ?
Actually, I need to clear two speficied pages which display these articles ?
By default, I have noticed the index.php is cleared automatically when a post is submitted.
But not Archive page or Category page...
Thanks in advance.
EDIT :
By the way, how to clear only a specific page with W3 Total Cache ?
Example : Clear /blog.php
A: Hm, I am not sure but I think that whole cache should be invalidated on publishing of new post... Had you tried to enable debug info in W3TC and check why are those pages aren't refreshed?
As for manual cache clear, from plugin's FAQ:
How can I flush the cache without
using the WP Admin interface?
It's possible to empty the entire
cache or simply purge the cache of a
single post / page:
Purge the entire
page cache:
if
(function_exists('w3tc_pgcache_flush'))
{ w3tc_pgcache_flush(); }
Purge a
single post / page by passing it's ID:
if
(function_exists('w3tc_pgcache_flush_post'))
{ w3tc_pgcache_flush_post($post_id);
}
|
Q: Clear cache when a post is submitted I have a question.
How can I clear the cache when a post is submitted ?
Actually, I need to clear two speficied pages which display these articles ?
By default, I have noticed the index.php is cleared automatically when a post is submitted.
But not Archive page or Category page...
Thanks in advance.
EDIT :
By the way, how to clear only a specific page with W3 Total Cache ?
Example : Clear /blog.php
A: Hm, I am not sure but I think that whole cache should be invalidated on publishing of new post... Had you tried to enable debug info in W3TC and check why are those pages aren't refreshed?
As for manual cache clear, from plugin's FAQ:
How can I flush the cache without
using the WP Admin interface?
It's possible to empty the entire
cache or simply purge the cache of a
single post / page:
Purge the entire
page cache:
if
(function_exists('w3tc_pgcache_flush'))
{ w3tc_pgcache_flush(); }
Purge a
single post / page by passing it's ID:
if
(function_exists('w3tc_pgcache_flush_post'))
{ w3tc_pgcache_flush_post($post_id);
}
|
wordpress
|
{
"language": "en",
"length": 183,
"provenance": "stackexchange_00019.jsonl.gz:408563",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14576"
}
|
[
0.048919677734375,
0.0213775634765625,
-0.01788330078125,
-0.013763427734375,
0.039093017578125,
-0.04290771484375,
0.0396728515625,
-0.0450439453125,
0.02703857421875,
0.0117340087890625,
-0.035888671875,
-0.041351318359375,
-0.00260162353515625,
-0.03521728515625,
-0.036468505859375,
-0.038421630859375,
0.046844482421875,
-0.0223846435546875,
0.048583984375,
0.0008397102355957031,
0.0286712646484375,
0.0218658447265625,
0.050018310546875,
0.030517578125,
0.00047397613525390625,
0.02532958984375,
0.0189361572265625,
-0.0198211669921875,
-0.0287628173828125,
-0.04302978515625,
0.00458526611328125,
0.0234527587890625,
0.019683837890625,
0.046783447265625,
-0.0631103515625,
0.032562255859375,
-0.037384033203125,
0.0399169921875,
0.005672454833984375,
0.0230712890625,
0.04638671875,
-0.0178375244140625,
0.01515960693359375,
-0.0190582275390625,
-0.01383209228515625,
0.01209259033203125,
0.0174713134765625,
-0.03369140625,
0.037811279296875,
-0.005523681640625,
0.0024623870849609375,
0.03265380859375,
0.014373779296875,
-0.023529052734375,
-0.03204345703125,
-0.030731201171875,
0.004878997802734375,
-0.0172119140625,
0.044403076171875,
-0.0007691383361816406,
-0.0408935546875,
-0.013153076171875,
0.0170135498046875,
-0.039093017578125,
-0.00951385498046875,
-0.00372314453125,
0.039764404296875,
0.002803802490234375,
-0.0745849609375,
-0.01364898681640625,
0.060455322265625,
-0.01366424560546875,
-0.007663726806640625,
-0.0009050369262695312,
-0.01287841796875,
-0.0173797607421875,
0.01187896728515625,
-0.0007905960083007812,
-0.00021076202392578125,
0.031036376953125,
-0.030059814453125,
-0.039581298828125,
-0.0139312744140625,
-0.007335662841796875,
-0.0121002197265625,
0.01146697998046875,
-0.0167694091796875,
-0.00017595291137695312,
-0.035491943359375,
-0.058990478515625,
-0.0209808349609375,
-0.07232666015625,
-0.030731201171875,
-0.0296173095703125,
-0.018768310546875,
-0.060760498046875,
0.039794921875,
0.08489990234375,
-0.0305633544921875,
-0.0120697021484375,
0.0006146430969238281,
-0.03033447265625,
0.007511138916015625,
-0.048065185546875,
0.0166168212890625,
0.01259613037109375,
-0.04443359375,
-0.037017822265625,
0.0465087890625,
0.053863525390625,
0.015899658203125,
-0.023590087890625,
-0.0201263427734375,
-0.00391387939453125,
-0.053375244140625,
0.0145111083984375,
-0.0242919921875,
-0.02276611328125,
-0.002960205078125,
-0.00464630126953125,
0.00801849365234375,
0.0150909423828125,
-0.0118255615234375,
-0.0024204254150390625,
0.01102447509765625,
0.0091705322265625,
-0.0005331039428710938,
-0.01517486572265625,
0.00846099853515625,
-0.01383209228515625,
-0.061004638671875,
0.01806640625,
0.1131591796875,
0.01800537109375,
0.025848388671875,
-0.027862548828125,
0.0259857177734375,
-0.044921875,
-0.004383087158203125,
0.017547607421875,
0.0013608932495117188,
-0.038726806640625,
-0.00424957275390625,
-0.003917694091796875,
-0.01285552978515625,
0.0362548828125,
0.01507568359375,
-0.00014293193817138672,
-0.00749969482421875,
-0.059356689453125,
-0.01360321044921875,
-0.00736236572265625,
0.041900634765625,
-0.01216888427734375,
-0.014801025390625,
-0.038330078125,
0.0057220458984375,
-0.0377197265625,
0.005023956298828125,
-0.038360595703125,
0.0606689453125,
-0.02618408203125,
-0.006618499755859375,
0.04913330078125,
-0.004604339599609375,
0.024200439453125,
-0.045654296875,
-0.009002685546875,
0.0294036865234375,
-0.0009541511535644531,
0.0231475830078125,
-0.038238525390625,
0.02459716796875,
0.0022430419921875,
-0.005039215087890625,
0.0235443115234375,
0.033966064453125,
-0.0214996337890625,
-0.0035419464111328125,
0.041046142578125,
-0.032379150390625,
-0.034088134765625,
0.0017452239990234375,
-0.02252197265625,
-0.04376220703125,
-0.00958251953125,
0.050811767578125,
0.055419921875,
-0.032958984375,
0.034912109375,
0.07293701171875,
0.0188446044921875,
-0.031585693359375,
0.03839111328125,
0.04058837890625,
-0.0218353271484375,
-0.0208587646484375,
-0.01140594482421875,
0.01551055908203125,
-0.053253173828125,
0.025360107421875,
-0.0002105236053466797,
0.01213836669921875,
-0.0164794921875,
-0.08538818359375,
0.0174713134765625,
-0.03582763671875,
0.036346435546875,
-0.0261077880859375,
0.0241546630859375,
0.0248870849609375,
0.0190582275390625,
-0.0148773193359375,
-0.06268310546875,
-0.0235595703125,
-0.0192718505859375,
0.007793426513671875,
0.014373779296875,
0.0260162353515625,
0.00989532470703125,
-0.00608062744140625,
0.003673553466796875,
-0.034423828125,
-0.03204345703125,
0.07244873046875,
0.00945281982421875,
-0.0172576904296875,
-0.017547607421875,
0.053253173828125,
-0.00909423828125,
-0.03173828125,
0.052337646484375,
0.06048583984375,
0.06817626953125,
-0.0159149169921875,
-0.005870819091796875,
-0.0019025802612304688,
-0.08416748046875,
0.0010509490966796875,
0.06890869140625,
-0.006153106689453125,
0.041015625,
-0.034149169921875,
0.048370361328125,
0.034088134765625,
0.0093994140625,
-0.012359619140625,
0.033477783203125,
0.034515380859375,
0.04913330078125,
-0.023773193359375,
-0.033172607421875,
0.0012998580932617188,
-0.085205078125,
0.029937744140625,
0.0173492431640625,
0.01491546630859375,
-0.017059326171875,
-0.004192352294921875,
0.0211639404296875,
0.01157379150390625,
-0.0142059326171875,
-0.0266571044921875,
0.00027680397033691406,
0.09765625,
-0.0384521484375,
0.025787353515625,
0.01561737060546875,
-0.0467529296875,
0.0094757080078125,
0.0299530029296875,
-0.0295257568359375,
-0.00030231475830078125,
0.00952911376953125,
0.00527191162109375,
0.01519775390625,
-0.0274200439453125,
0.015716552734375,
0.00467681884765625,
-0.011444091796875,
-0.0008220672607421875,
0.0228729248046875,
-0.0016460418701171875,
-0.005001068115234375,
-0.00600433349609375,
0.012481689453125,
0.01282501220703125,
0.0172882080078125,
0.0135345458984375,
0.0272064208984375,
0.0225982666015625,
0.01560211181640625,
-0.0233917236328125,
0.036834716796875,
0.0164337158203125,
-0.022216796875,
-0.00557708740234375,
-0.048553466796875,
0.034454345703125,
-0.027984619140625,
0.006633758544921875,
0.06207275390625,
0.02703857421875,
-0.006927490234375,
0.00273895263671875,
0.0296478271484375,
0.013671875,
0.01708984375,
-0.00177001953125,
0.0003886222839355469,
-0.021942138671875,
0.0030651092529296875,
0.0377197265625,
0.046051025390625,
-0.0036182403564453125,
-0.0239410400390625,
-0.002773284912109375,
0.0391845703125,
-0.07879638671875,
-0.09002685546875,
-0.05517578125,
-0.0377197265625,
0.0198211669921875,
-0.0033435821533203125,
0.0155487060546875,
-0.0095062255859375,
-0.0012998580932617188,
0.0163116455078125,
-0.027587890625,
-0.01247406005859375,
-0.0230255126953125,
-0.05804443359375,
-0.042999267578125,
-0.043121337890625,
-0.01224517822265625,
-0.01212310791015625,
0.013580322265625,
0.083984375,
0.007152557373046875,
-0.07611083984375,
-0.02093505859375,
0.003353118896484375,
-0.05999755859375,
-0.01248931884765625,
0.006103515625,
-0.016693115234375,
0.002582550048828125,
0.002407073974609375,
-0.0208740234375,
0.0286865234375,
-0.0204620361328125,
0.00196075439453125,
-0.010009765625,
-0.031341552734375,
0.0210723876953125,
-0.008514404296875,
-0.018310546875,
-0.01078033447265625,
0.016998291015625,
-0.05133056640625,
-0.0238800048828125,
-0.0181732177734375,
-0.06390380859375,
-0.056549072265625,
0.05517578125,
-0.00315093994140625,
-0.04119873046875,
-0.0149993896484375,
-0.0224761962890625,
0.00003540515899658203,
0.01114654541015625,
-0.0225830078125,
-0.0014190673828125,
-0.00168609619140625,
-0.0156402587890625,
0.001651763916015625,
0.034271240234375,
-0.00751495361328125,
0.032958984375,
0.022918701171875,
0.02752685546875,
0.0305023193359375,
-0.0305023193359375,
-0.01206207275390625,
-0.0723876953125,
0.02178955078125,
-0.038299560546875,
-0.01053619384765625,
-0.0311431884765625,
0.0001728534698486328,
0.0032482147216796875,
0.06280517578125,
-0.01050567626953125,
-0.0308685302734375,
-0.03851318359375,
0.0016145706176757812,
-0.0135345458984375,
-0.049163818359375,
0.01116943359375,
-0.01556396484375,
-0.06591796875,
0.0292816162109375,
0.0020694732666015625,
-0.016815185546875,
-0.0149078369140625,
0.029296875,
-0.036041259765625,
-0.0316162109375,
0.0673828125,
-0.08599853515625,
0.03271484375,
-0.0063018798828125,
0.033660888671875,
-0.05517578125,
-0.0308837890625,
-0.03057861328125,
-0.045928955078125,
0.0046234130859375,
-0.0276031494140625,
0.0081787109375,
0.0277557373046875,
-0.0192413330078125,
0.0066680908203125,
0.0300445556640625,
0.027496337890625,
0.0316162109375,
-0.0140838623046875,
-0.02099609375,
-0.055389404296875,
0.023590087890625,
0.01580810546875,
-0.0167694091796875,
-0.008331298828125,
-0.00037384033203125,
-0.01519775390625,
-0.0177001953125,
-0.0284576416015625,
-0.034942626953125,
0.00844573974609375,
-0.023193359375,
-0.03167724609375,
-0.053802490234375,
-0.010498046875,
-0.030914306640625,
-0.040374755859375,
0.0188751220703125,
-0.0164947509765625,
0.0236053466796875,
0.048553466796875,
0.03155517578125,
0.0171051025390625,
0.01528167724609375,
0.077392578125,
0.0072021484375,
-0.040283203125,
-0.0782470703125,
0.004077911376953125,
0.01137542724609375,
0.00272369384765625,
0.0254058837890625,
-0.006351470947265625,
-0.005207061767578125,
0.00881195068359375,
-0.02374267578125,
0.0273284912109375,
-0.07305908203125,
0.0628662109375,
-0.0219879150390625,
-0.0172271728515625,
0.028656005859375,
-0.00829315185546875,
0.033447265625,
0.043182373046875,
0.00649261474609375,
0.0165252685546875,
0.0064239501953125,
0.0031070709228515625,
0.0010013580322265625,
-0.040252685546875,
-0.03125,
-0.04296875,
0.01386260986328125,
0.0192718505859375,
0.047576904296875,
0.049560546875,
-0.01416778564453125,
0.07989501953125,
0.056488037109375,
-0.0006489753723144531,
-0.01885986328125,
0.022308349609375,
-0.0173187255859375,
0.01548004150390625,
-0.00092315673828125,
-0.005016326904296875,
-0.0308837890625,
-0.0014905929565429688,
-0.0229644775390625,
0.025115966796875,
-0.04046630859375,
0.0443115234375,
0.0256195068359375,
-0.0157623291015625,
-0.0057373046875,
0.006855010986328125,
0.0386962890625,
-0.01202392578125,
0.005184173583984375,
-0.00254058837890625,
-0.01442718505859375,
0.0010690689086914062,
-0.03570556640625,
0.029296875,
-0.0034122467041015625,
-0.007080078125,
0.006420135498046875,
0.016937255859375,
-0.04132080078125,
0.0207061767578125,
0.002468109130859375,
0.0482177734375,
0.040985107421875,
0.0285491943359375,
0.01366424560546875,
-0.0031909942626953125,
-0.00737762451171875,
0.005237579345703125,
-0.01271820068359375,
-0.059661865234375,
-0.028900146484375,
0.0173187255859375,
0.04443359375,
-0.02880859375,
-0.03704833984375,
0.04156494140625,
0.015533447265625,
0.001789093017578125,
-0.003086090087890625,
-0.0020618438720703125,
-0.041259765625,
-0.006214141845703125,
0.0276947021484375,
0.020355224609375,
0.005893707275390625,
-0.0210723876953125,
0.0231781005859375,
-0.052520751953125,
0.016143798828125,
0.0200347900390625,
-0.0008993148803710938,
-0.0298614501953125,
-0.034576416015625,
0.01812744140625,
-0.036285400390625,
-0.0145416259765625,
-0.006137847900390625,
0.043426513671875,
-0.035186767578125,
-0.0200042724609375,
0.053375244140625,
0.00243377685546875,
0.0199432373046875,
-0.020477294921875,
-0.03472900390625,
0.022216796875,
-0.004932403564453125,
0.03778076171875,
-0.0023746490478515625,
0.0104827880859375,
-0.027099609375,
-0.023651123046875,
-0.06573486328125,
-0.0271453857421875,
-0.0113067626953125,
-0.064453125,
0.005748748779296875,
0.035797119140625,
0.031097412109375,
-0.0035114288330078125,
-0.038360595703125,
-0.01708984375,
-0.0017480850219726562,
0.0306549072265625,
0.037628173828125,
-0.024749755859375,
0.047607421875,
0.01210784912109375,
0.003856658935546875,
0.00860595703125,
0.0299072265625,
0.0243377685546875,
-0.007465362548828125,
-0.0007929801940917969,
-0.07403564453125,
-0.0169219970703125,
0.0343017578125,
-0.067626953125,
0.0274505615234375,
0.02764892578125,
-0.0010824203491210938,
-0.0197601318359375,
-0.0116424560546875,
-0.0005903244018554688,
-0.0235137939453125,
0.04052734375,
0.01342010498046875,
-0.0157470703125,
0.0222320556640625,
-0.007190704345703125,
0.013031005859375,
0.024688720703125,
0.002017974853515625,
0.007061004638671875,
-0.01296234130859375,
0.022491455078125,
-0.033782958984375,
-0.0133514404296875,
0.033203125,
0.0675048828125,
0.02313232421875,
0.06103515625,
0.0281524658203125,
0.046844482421875,
0.0299835205078125,
-0.020599365234375,
-0.0277252197265625,
0.0419921875,
0.0260772705078125,
-0.01354217529296875,
-0.00457763671875,
0.00250244140625,
-0.006763458251953125,
0.00008279085159301758,
0.0291290283203125,
0.034942626953125,
-0.038726806640625,
0.01934814453125,
0.008148193359375,
-0.033203125,
0.006465911865234375,
0.00450897216796875,
-0.0143280029296875,
0.0063018798828125,
-0.018035888671875,
-0.0148468017578125,
-0.03338623046875,
-0.0121002197265625,
0.02313232421875,
0.00324249267578125,
-0.0091705322265625,
0.047027587890625,
0.006351470947265625,
-0.07916259765625,
0.0126190185546875,
0.0709228515625,
-0.034271240234375,
-0.0244598388671875,
0.00913238525390625,
-0.02020263671875,
0.010223388671875,
-0.032958984375,
0.0195159912109375,
-0.0400390625,
0.03155517578125,
0.033935546875,
0.033172607421875,
-0.0269317626953125,
0.057891845703125,
-0.0249481201171875,
0.0474853515625,
0.01303863525390625,
0.01849365234375,
-0.056854248046875,
-0.044097900390625,
0.011962890625,
0.0396728515625,
-0.055206298828125,
0.03973388671875,
-0.012786865234375,
-0.035308837890625,
-0.0106353759765625,
-0.0289459228515625,
0.049407958984375,
-0.046966552734375,
0.0007987022399902344,
0.028564453125,
0.042999267578125,
0.0006051063537597656,
-0.0154266357421875,
0.020233154296875,
-0.0152740478515625,
0.037506103515625,
-0.0230255126953125,
0.052032470703125,
-0.0018129348754882812,
-0.0183868408203125,
-0.127197265625,
0.106689453125,
0.033203125,
0.10528564453125,
-0.01236724853515625,
0.0025768280029296875,
-0.0181427001953125,
-0.023895263671875,
-0.050079345703125,
0.07513427734375,
0.027862548828125,
0.0269622802734375,
-0.05426025390625,
0.00047969818115234375,
-0.004070281982421875,
-0.0045623779296875,
0.0419921875,
0.01279449462890625,
-0.03765869140625,
0.0025424957275390625,
0.0293731689453125,
0.047088623046875,
0.0169677734375,
0.0364990234375,
-0.0057373046875,
0.04376220703125,
0.032073974609375,
-0.06866455078125,
0.023834228515625,
-0.040496826171875,
0.0036334991455078125,
0.0179443359375,
0.005260467529296875,
0.00806427001953125,
-0.01971435546875,
0.01751708984375,
-0.035919189453125,
0.0025272369384765625,
0.01033782958984375,
0.052032470703125,
0.00748443603515625,
0.0170135498046875,
0.032440185546875,
-0.0173797607421875,
-0.022857666015625,
-0.0139007568359375,
0.032501220703125,
0.014312744140625,
0.0211944580078125,
0.0604248046875,
0.03826904296875,
-0.001422882080078125,
-0.0016412734985351562,
0.024932861328125,
-0.010528564453125,
-0.030853271484375,
0.052520751953125,
0.0122528076171875,
0.0261383056640625,
-0.01123809814453125,
0.0234527587890625,
-0.004169464111328125,
0.036163330078125,
-0.046875,
-0.0286407470703125,
-0.0030670166015625,
0.0012254714965820312,
0.0188751220703125,
-0.01445770263671875,
0.039459228515625,
-0.08905029296875,
-0.04736328125,
0.0286712646484375,
0.0029926300048828125,
0.00252532958984375,
-0.0309906005859375,
0.0052032470703125,
0.0126953125,
0.00505828857421875,
0.050872802734375,
-0.0078582763671875,
-0.024017333984375,
0.007549285888671875,
0.034637451171875,
0.00466156005859375,
0.01739501953125,
-0.0185394287109375,
-0.00980377197265625,
-0.0180816650390625,
0.0291595458984375,
0.02471923828125,
0.004116058349609375,
-0.05072021484375,
-0.045562744140625,
0.0396728515625,
0.03948974609375,
0.0054931640625,
0.029815673828125,
0.0654296875,
0.0187225341796875,
-0.04266357421875,
-0.02178955078125,
-0.027862548828125,
-0.041961669921875,
0.019256591796875,
-0.0149993896484375,
-0.040069580078125,
-0.036956787109375,
-0.038482666015625,
-0.0235748291015625,
0.01503753662109375,
-0.01519775390625,
-0.046630859375,
0.0180816650390625,
-0.00490570068359375,
-0.046722412109375,
0.05224609375,
-0.01073455810546875,
0.0653076171875,
-0.016937255859375,
-0.01433563232421875,
-0.01141357421875,
-0.0312042236328125,
0.00926971435546875,
0.00501251220703125,
0.0164794921875,
0.002750396728515625,
0.04498291015625,
0.037445068359375,
-0.0252532958984375,
0.029815673828125,
-0.004581451416015625,
-0.00959014892578125,
0.024658203125,
0.04010009765625,
-0.00608062744140625,
-0.02642822265625,
-0.035888671875,
0.0306396484375,
0.03472900390625,
-0.01214599609375,
0.0157012939453125,
0.01497650146484375,
-0.01277923583984375,
0.05035400390625,
-0.017578125,
0.01061248779296875,
0.0361328125,
-0.009490966796875,
-0.0421142578125,
-0.0211029052734375,
-0.0033473968505859375,
-0.057952880859375,
0.041351318359375,
0.0153656005859375,
0.033966064453125,
0.05450439453125,
-0.055633544921875,
0.0196533203125,
-0.016265869140625,
-0.009735107421875,
-0.01336669921875,
0.0253143310546875,
0.031707763671875,
0.004253387451171875,
0.0279083251953125,
0.0161590576171875,
-0.0031833648681640625,
0.042877197265625,
-0.00768280029296875,
-0.01043701171875,
0.03192138671875,
-0.05712890625,
0.046478271484375,
0.04150390625,
-0.0262451171875,
-0.023406982421875,
-0.005893707275390625,
-0.01727294921875,
-0.001949310302734375,
0.01247406005859375,
0.01560211181640625,
0.0034046173095703125,
-0.0008807182312011719,
-0.0220947265625,
-0.007572174072265625,
0.01378631591796875,
0.0148468017578125,
-0.0018768310546875,
-0.0269927978515625,
-0.011810302734375,
-0.037689208984375,
0.03778076171875,
-0.0056304931640625,
-0.0033283233642578125,
-0.0193023681640625,
-0.0200958251953125,
-0.0003533363342285156,
-0.057373046875,
-0.008056640625,
0.02789306640625,
0.019805908203125,
0.004261016845703125,
-0.048187255859375,
0.040557861328125,
-0.037567138671875,
0.038116455078125,
-0.01067352294921875,
-0.01355743408203125,
-0.0155181884765625,
0.00848388671875,
-0.01678466796875,
-0.0318603515625,
-0.05145263671875,
0.0258636474609375,
-0.029541015625,
-0.01352691650390625,
0.037872314453125,
-0.00911712646484375,
-0.0297698974609375,
-0.058441162109375,
-0.00930023193359375,
-0.0084381103515625,
-0.045440673828125,
0.0007562637329101562,
0.04248046875,
0.005096435546875,
-0.029327392578125,
-0.07354736328125,
0.0010051727294921875,
-0.0256805419921875,
0.01226043701171875,
-0.03985595703125,
0.0239715576171875,
0.026519775390625,
-0.0200347900390625,
-0.037017822265625,
0.018035888671875,
-0.009063720703125,
-0.0218505859375,
-0.027435302734375,
0.00875091552734375,
-0.00021576881408691406,
-0.009521484375,
-0.0011615753173828125,
-0.043731689453125,
-0.0343017578125,
0.0005598068237304688,
0.005924224853515625,
0.068603515625,
0.0245208740234375,
0.0243072509765625,
-0.0079193115234375,
0.0110321044921875,
-0.027679443359375,
0.0223236083984375,
0.0126190185546875,
0.004100799560546875,
0.013671875,
0.036956787109375,
-0.03289794921875,
0.0028972625732421875,
-0.00444793701171875,
0.0015592575073242188,
-0.0147705078125,
-0.0156402587890625,
-0.007144927978515625,
0.0224456787109375,
0.06597900390625,
0.05718994140625,
0.0230255126953125,
-0.04766845703125,
0.0311279296875,
0.0110321044921875,
-0.03240966796875,
-0.01352691650390625,
0.01457977294921875,
-0.046661376953125,
-0.0240478515625,
-0.01338958740234375,
-0.006793975830078125,
-0.0165863037109375,
-0.0200653076171875,
-0.023193359375,
-0.020477294921875,
-0.00466156005859375,
-0.002857208251953125,
-0.0034999847412109375,
-0.006000518798828125,
-0.01502227783203125,
-0.01496124267578125,
-0.026580810546875,
-0.00047779083251953125,
0.0210723876953125,
-0.0308685302734375,
0.0210418701171875,
0.015960693359375,
0.044952392578125,
-0.056121826171875,
-0.00736236572265625,
0.01094818115234375,
0.004673004150390625,
-0.031707763671875,
-0.00040435791015625,
0.0143280029296875,
-0.01221466064453125,
-0.01031494140625,
-0.025299072265625,
0.0099639892578125,
-0.018524169921875,
-0.042999267578125,
-0.005382537841796875,
-0.0310516357421875,
-0.0296630859375,
-0.0222625732421875,
0.040771484375,
-0.032257080078125,
-0.0052490234375,
0.031097412109375,
-0.06292724609375,
-0.0031337738037109375,
0.02545166015625,
-0.007312774658203125,
-0.02496337890625,
0.030181884765625,
-0.06304931640625,
0.00852203369140625,
0.0126495361328125
] |
c9616f4ec2d45df4cacab25325f4e2233ec52ee8
|
Wordpress Stackexchange
Q: Adding An Image To A Custom Taxonomy Term I would like to be able to associate an image with a custom taxonomy term. Ideally, I'd like to provide the end-user with an interface for managing the image directly on the term itself.
I have worked with a plugin that provides this functionality (Ultimate Taxonomy Manager) - it may be what I stick with. I'm after the best practice, though, and would like to know if any of you have worked through this before and what solutions you recommend.
A: Maybe How TO custom taxonomies extra fields is whats you are looking for?
|
Q: Adding An Image To A Custom Taxonomy Term I would like to be able to associate an image with a custom taxonomy term. Ideally, I'd like to provide the end-user with an interface for managing the image directly on the term itself.
I have worked with a plugin that provides this functionality (Ultimate Taxonomy Manager) - it may be what I stick with. I'm after the best practice, though, and would like to know if any of you have worked through this before and what solutions you recommend.
A: Maybe How TO custom taxonomies extra fields is whats you are looking for?
A: You can use the Advanced Custom Fields plugin to add a custom field (an image field) to you custom taxonomy group or individual taxonomies.
|
wordpress
|
{
"language": "en",
"length": 128,
"provenance": "stackexchange_00019.jsonl.gz:408564",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14584"
}
|
[
0.08416748046875,
0.01053619384765625,
0.036224365234375,
-0.0238189697265625,
0.033172607421875,
-0.0125885009765625,
0.04974365234375,
-0.0567626953125,
0.01110076904296875,
0.005100250244140625,
-0.028778076171875,
0.002643585205078125,
-0.0328369140625,
-0.0225372314453125,
-0.0070037841796875,
-0.033477783203125,
0.03436279296875,
-0.008758544921875,
0.057220458984375,
0.00420379638671875,
0.01549530029296875,
0.022125244140625,
0.0548095703125,
-0.057342529296875,
0.0277099609375,
0.0200042724609375,
0.03656005859375,
-0.020294189453125,
0.0258636474609375,
0.0013303756713867188,
0.0237274169921875,
-0.025909423828125,
0.0108795166015625,
-0.0014772415161132812,
0.033111572265625,
-0.018768310546875,
0.01715087890625,
-0.01100921630859375,
0.01103973388671875,
0.000347137451171875,
0.03460693359375,
-0.0276031494140625,
0.0198822021484375,
0.02130126953125,
0.0092926025390625,
-0.01032257080078125,
0.017578125,
-0.059600830078125,
0.0195770263671875,
-0.04583740234375,
0.028594970703125,
0.00652313232421875,
0.047027587890625,
-0.0445556640625,
-0.02569580078125,
0.00942230224609375,
-0.0245208740234375,
0.0127716064453125,
0.0265350341796875,
-0.03656005859375,
-0.0263824462890625,
-0.032928466796875,
0.047210693359375,
0.0232391357421875,
0.026519775390625,
-0.0146331787109375,
-0.01342010498046875,
0.032318115234375,
-0.051666259765625,
0.0067901611328125,
0.032745361328125,
-0.03973388671875,
0.01000213623046875,
-0.00574493408203125,
-0.0080413818359375,
-0.05029296875,
0.040618896484375,
-0.0325927734375,
0.00479888916015625,
0.005794525146484375,
0.00164794921875,
-0.022857666015625,
0.032135009765625,
0.014404296875,
0.01303863525390625,
0.0285491943359375,
-0.01432037353515625,
-0.0145416259765625,
-0.01261138916015625,
-0.01519775390625,
-0.00970458984375,
-0.06671142578125,
-0.042999267578125,
0.0489501953125,
0.01285552978515625,
-0.011749267578125,
-0.005847930908203125,
0.0057220458984375,
-0.031707763671875,
0.033233642578125,
-0.0206298828125,
-0.01446533203125,
0.052032470703125,
-0.040374755859375,
0.007091522216796875,
0.0082855224609375,
0.01378631591796875,
-0.007366180419921875,
0.024627685546875,
0.010986328125,
-0.024322509765625,
0.020050048828125,
0.0253753662109375,
-0.016937255859375,
-0.00527191162109375,
0.018096923828125,
0.01898193359375,
0.010894775390625,
0.0006961822509765625,
0.018157958984375,
0.002307891845703125,
0.01629638671875,
0.0139007568359375,
0.0263671875,
-0.005313873291015625,
0.01045989990234375,
-0.0180511474609375,
-0.04522705078125,
-0.0260162353515625,
-0.0175933837890625,
-0.040618896484375,
0.061065673828125,
0.06695556640625,
0.00994873046875,
-0.0010194778442382812,
0.00644683837890625,
-0.0033721923828125,
-0.0032444000244140625,
0.00897979736328125,
0.00966644287109375,
0.00936126708984375,
-0.0211334228515625,
0.0098419189453125,
0.0087890625,
0.0066375732421875,
0.017822265625,
0.0021419525146484375,
0.02099609375,
0.0184478759765625,
-0.0811767578125,
0.0576171875,
-0.052581787109375,
0.027130126953125,
0.00836944580078125,
-0.0027103424072265625,
-0.00685882568359375,
0.0198211669921875,
-0.01093292236328125,
-0.0016689300537109375,
-0.00601959228515625,
0.0225830078125,
0.00980377197265625,
-0.0180206298828125,
0.005809783935546875,
0.0230865478515625,
-0.01519012451171875,
-0.025177001953125,
0.01222991943359375,
0.0162506103515625,
-0.037872314453125,
0.0220794677734375,
0.01629638671875,
-0.0014715194702148438,
0.010467529296875,
0.017333984375,
0.00988006591796875,
-0.0075836181640625,
0.032684326171875,
0.013916015625,
0.0266571044921875,
0.00901031494140625,
-0.048004150390625,
0.041717529296875,
-0.024322509765625,
-0.025115966796875,
-0.01444244384765625,
-0.001773834228515625,
0.046356201171875,
0.0419921875,
0.0311126708984375,
-0.018707275390625,
-0.02691650390625,
-0.0592041015625,
0.01385498046875,
0.00885009765625,
0.0158233642578125,
-0.05352783203125,
-0.01200103759765625,
-0.0198516845703125,
-0.00894927978515625,
-0.032379150390625,
-0.0030574798583984375,
-0.0233154296875,
-0.004817962646484375,
-0.0210113525390625,
-0.0223236083984375,
-0.0044708251953125,
0.0270233154296875,
-0.0196990966796875,
-0.0024776458740234375,
0.006832122802734375,
-0.035797119140625,
0.015899658203125,
-0.05169677734375,
-0.022186279296875,
-0.005100250244140625,
-0.00478363037109375,
-0.0352783203125,
-0.0059967041015625,
-0.022064208984375,
0.00690460205078125,
-0.0133056640625,
-0.01357269287109375,
0.047882080078125,
-0.01136016845703125,
0.035614013671875,
-0.052459716796875,
0.0218963623046875,
-0.040985107421875,
0.04425048828125,
-0.05328369140625,
0.0253448486328125,
0.00426483154296875,
0.0020599365234375,
-0.012359619140625,
-0.0167083740234375,
0.0200042724609375,
-0.092529296875,
0.024993896484375,
0.050445556640625,
0.00661468505859375,
-0.0019931793212890625,
-0.023040771484375,
0.01007843017578125,
0.053680419921875,
0.049835205078125,
0.0217437744140625,
0.00568389892578125,
0.00921630859375,
0.0097808837890625,
0.0189971923828125,
-0.013092041015625,
0.0125274658203125,
-0.0460205078125,
0.041290283203125,
0.0168914794921875,
-0.0307769775390625,
-0.0214080810546875,
0.006252288818359375,
0.0027942657470703125,
0.009490966796875,
0.00002110004425048828,
-0.01262664794921875,
0.0020656585693359375,
-0.00942230224609375,
0.02410888671875,
0.0021495819091796875,
0.003509521484375,
-0.033935546875,
0.00823211669921875,
0.01372528076171875,
-0.0174407958984375,
-0.0032806396484375,
0.01727294921875,
0.0296630859375,
-0.0029010772705078125,
-0.0389404296875,
0.002262115478515625,
0.0250701904296875,
0.0024814605712890625,
0.0036106109619140625,
-0.0190887451171875,
-0.004077911376953125,
-0.004077911376953125,
0.0224456787109375,
-0.06591796875,
0.025482177734375,
0.040985107421875,
-0.07122802734375,
-0.05902099609375,
-0.007175445556640625,
0.0309906005859375,
-0.0142974853515625,
-0.0112457275390625,
-0.010833740234375,
-0.00611114501953125,
-0.038604736328125,
-0.05389404296875,
0.045928955078125,
-0.05035400390625,
0.006744384765625,
0.0716552734375,
-0.0081787109375,
0.017120361328125,
0.008697509765625,
-0.00372314453125,
0.006999969482421875,
0.022186279296875,
0.01471710205078125,
-0.005809783935546875,
-0.046875,
-0.01812744140625,
0.0252227783203125,
0.0186309814453125,
-0.0022258758544921875,
-0.0197296142578125,
-0.01715087890625,
-0.00018739700317382812,
-0.0201568603515625,
0.00460052490234375,
-0.00453948974609375,
-0.018035888671875,
-0.0240325927734375,
0.01494598388671875,
-0.0033321380615234375,
-0.0021038055419921875,
0.03375244140625,
-0.0036029815673828125,
-0.016754150390625,
-0.038818359375,
-0.00913238525390625,
-0.08477783203125,
-0.059417724609375,
-0.049072265625,
0.018341064453125,
0.00626373291015625,
-0.0025634765625,
0.06597900390625,
0.01171112060546875,
-0.040618896484375,
0.0164794921875,
0.00521087646484375,
0.002490997314453125,
0.024566650390625,
0.01540374755859375,
-0.0098419189453125,
-0.00357818603515625,
0.0026378631591796875,
0.0170745849609375,
0.04766845703125,
-0.044921875,
0.0019397735595703125,
-0.0184478759765625,
0.003040313720703125,
-0.01296234130859375,
0.00600433349609375,
0.02398681640625,
0.009979248046875,
0.0093231201171875,
-0.032073974609375,
0.0263214111328125,
-0.0021724700927734375,
0.0014848709106445312,
0.0306396484375,
-0.0230560302734375,
-0.020721435546875,
0.0009179115295410156,
0.0111846923828125,
-0.036590576171875,
-0.0087890625,
-0.04022216796875,
-0.0281219482421875,
0.0200042724609375,
-0.005157470703125,
-0.0152435302734375,
0.040771484375,
-0.031707763671875,
-0.05059814453125,
0.03912353515625,
-0.028472900390625,
0.014862060546875,
-0.0196685791015625,
0.0308990478515625,
-0.049713134765625,
-0.057159423828125,
0.0408935546875,
-0.0284271240234375,
0.038665771484375,
-0.058013916015625,
-0.0296478271484375,
-0.022003173828125,
0.093017578125,
-0.00885009765625,
-0.01092529296875,
-0.00548553466796875,
-0.01386260986328125,
0.00934600830078125,
0.0194549560546875,
-0.043670654296875,
-0.0220794677734375,
-0.07781982421875,
0.01422882080078125,
0.0096435546875,
-0.0303802490234375,
-0.0292510986328125,
0.0290374755859375,
-0.07476806640625,
-0.0257720947265625,
0.0171661376953125,
-0.045867919921875,
0.0007753372192382812,
0.040802001953125,
-0.0196990966796875,
0.010833740234375,
-0.0223541259765625,
-0.045745849609375,
-0.0894775390625,
-0.00601959228515625,
-0.04827880859375,
0.040191650390625,
-0.00928497314453125,
0.03656005859375,
-0.02227783203125,
0.037872314453125,
-0.00445556640625,
0.0185546875,
-0.0164337158203125,
0.0153350830078125,
-0.00656890869140625,
-0.032135009765625,
-0.0219573974609375,
-0.0377197265625,
-0.025177001953125,
-0.022216796875,
-0.00872039794921875,
0.0267486572265625,
0.0003275871276855469,
0.0019025802612304688,
0.00559234619140625,
-0.022796630859375,
-0.00774383544921875,
-0.0031375885009765625,
-0.01262664794921875,
0.0175323486328125,
-0.014068603515625,
-0.0203399658203125,
-0.01309967041015625,
-0.01094818115234375,
-0.0033664703369140625,
0.01554107666015625,
-0.0130157470703125,
0.0179901123046875,
0.029327392578125,
0.0099029541015625,
-0.0132904052734375,
-0.0582275390625,
0.0203094482421875,
0.034576416015625,
0.01611328125,
-0.0016870498657226562,
-0.003448486328125,
-0.0201568603515625,
0.01800537109375,
-0.0016536712646484375,
0.0179595947265625,
-0.034820556640625,
0.03936767578125,
-0.01678466796875,
-0.02899169921875,
0.043182373046875,
-0.02716064453125,
0.0296478271484375,
0.0116424560546875,
-0.034423828125,
-0.0279998779296875,
-0.03973388671875,
0.072265625,
-0.0430908203125,
0.06756591796875,
-0.049774169921875,
-0.03997802734375,
0.0308380126953125,
-0.0299530029296875,
-0.0013408660888671875,
0.0006432533264160156,
-0.00897216796875,
-0.030914306640625,
-0.05877685546875,
0.006557464599609375,
0.0027904510498046875,
-0.036468505859375,
-0.004161834716796875,
0.02667236328125,
0.0006389617919921875,
0.0150604248046875,
0.0161895751953125,
-0.00244140625,
0.051055908203125,
0.0025005340576171875,
-0.05926513671875,
0.004802703857421875,
0.0021038055419921875,
-0.011871337890625,
0.021759033203125,
0.028045654296875,
0.042755126953125,
-0.0005788803100585938,
-0.005626678466796875,
0.01229095458984375,
-0.032501220703125,
-0.004909515380859375,
-0.037811279296875,
-0.0233154296875,
0.004344940185546875,
-0.0295257568359375,
0.02691650390625,
0.006877899169921875,
-0.05767822265625,
0.0177154541015625,
-0.0023288726806640625,
0.006313323974609375,
0.0360107421875,
0.02557373046875,
0.0194244384765625,
0.00231170654296875,
-0.02581787109375,
0.0156707763671875,
-0.0010204315185546875,
-0.005252838134765625,
0.017120361328125,
-0.027069091796875,
0.0143280029296875,
-0.0474853515625,
-0.033050537109375,
0.06829833984375,
-0.03216552734375,
-0.01495361328125,
-0.0023345947265625,
-0.032257080078125,
-0.0303192138671875,
-0.03350830078125,
-0.010955810546875,
0.040863037109375,
-0.0013523101806640625,
-0.0229034423828125,
0.0265045166015625,
-0.035003662109375,
0.03546142578125,
-0.01995849609375,
0.0215911865234375,
-0.009246826171875,
-0.009033203125,
-0.05999755859375,
0.00362396240234375,
-0.0067138671875,
-0.0005974769592285156,
-0.054443359375,
0.0028667449951171875,
-0.02716064453125,
0.0124969482421875,
-0.028411865234375,
0.0220489501953125,
-0.00447845458984375,
-0.01166534423828125,
0.0179901123046875,
0.022186279296875,
0.007781982421875,
-0.01129913330078125,
-0.04925537109375,
-0.004787445068359375,
-0.04168701171875,
-0.003753662109375,
-0.036346435546875,
-0.04168701171875,
-0.0267181396484375,
0.005901336669921875,
0.01232147216796875,
0.027252197265625,
0.019805908203125,
0.00975799560546875,
0.0037994384765625,
0.0184478759765625,
0.0009360313415527344,
0.03900146484375,
0.01424407958984375,
-0.03790283203125,
0.004688262939453125,
0.046173095703125,
-0.01873779296875,
-0.058319091796875,
-0.01267242431640625,
-0.033721923828125,
-0.04754638671875,
-0.10845947265625,
0.010040283203125,
0.046966552734375,
-0.002964019775390625,
0.0938720703125,
0.02227783203125,
0.044921875,
0.0251922607421875,
-0.026947021484375,
0.00232696533203125,
-0.01111602783203125,
0.034271240234375,
-0.03704833984375,
-0.01494598388671875,
0.0506591796875,
-0.0290679931640625,
0.0537109375,
-0.001796722412109375,
0.0147705078125,
-0.0020732879638671875,
-0.038848876953125,
0.0188446044921875,
0.03741455078125,
0.023468017578125,
-0.01849365234375,
-0.0018301010131835938,
-0.02716064453125,
0.004913330078125,
0.004627227783203125,
0.0019893646240234375,
0.00472259521484375,
0.00830078125,
-0.02764892578125,
-0.050628662109375,
0.0087890625,
0.0019817352294921875,
-0.018798828125,
0.0235443115234375,
-0.018707275390625,
0.0009608268737792969,
-0.00609588623046875,
0.04266357421875,
-0.00881195068359375,
0.0186309814453125,
0.018585205078125,
-0.0086517333984375,
0.03155517578125,
0.0166473388671875,
-0.0099029541015625,
-0.009765625,
-0.013671875,
-0.0193939208984375,
-0.01491546630859375,
-0.0006809234619140625,
0.0169525146484375,
-0.0023899078369140625,
0.0019779205322265625,
0.0274200439453125,
0.0091552734375,
-0.0120086669921875,
-0.041412353515625,
0.0258941650390625,
-0.03509521484375,
0.01180267333984375,
0.0289459228515625,
-0.025543212890625,
0.0158233642578125,
0.0198211669921875,
0.05987548828125,
-0.049163818359375,
0.0198211669921875,
0.026092529296875,
-0.0213775634765625,
0.0133514404296875,
0.0215911865234375,
-0.0025787353515625,
-0.003406524658203125,
-0.01214599609375,
-0.054931640625,
0.05517578125,
-0.0023651123046875,
0.0028858184814453125,
-0.0099334716796875,
-0.044677734375,
-0.007564544677734375,
-0.0352783203125,
0.0123291015625,
-0.0214080810546875,
-0.0179901123046875,
0.0830078125,
-0.06805419921875,
0.00824737548828125,
0.0239715576171875,
0.045440673828125,
-0.004467010498046875,
0.0018558502197265625,
-0.0084991455078125,
-0.048583984375,
-0.028594970703125,
-0.0119781494140625,
-0.058380126953125,
0.007038116455078125,
-0.014739990234375,
-0.049102783203125,
0.08245849609375,
-0.0096435546875,
0.01300048828125,
-0.0140838623046875,
0.036773681640625,
0.007526397705078125,
0.0205841064453125,
-0.010772705078125,
0.041046142578125,
-0.0325927734375,
0.0219268798828125,
-0.0556640625,
0.01119232177734375,
-0.007457733154296875,
0.03387451171875,
0.07061767578125,
0.0220794677734375,
-0.035125732421875,
-0.01515960693359375,
0.045318603515625,
0.0328369140625,
-0.007717132568359375,
0.037811279296875,
0.023590087890625,
-0.033233642578125,
0.00650787353515625,
0.04364013671875,
0.053863525390625,
-0.015716552734375,
-0.024810791015625,
0.0404052734375,
0.0038051605224609375,
0.0237579345703125,
-0.00388336181640625,
0.0289154052734375,
-0.041534423828125,
-0.003482818603515625,
0.0567626953125,
-0.07684326171875,
0.01479339599609375,
0.00495147705078125,
-0.033050537109375,
0.0595703125,
0.031158447265625,
0.014678955078125,
0.02459716796875,
-0.024261474609375,
0.059967041015625,
0.039825439453125,
0.0233917236328125,
0.039520263671875,
0.004299163818359375,
0.052886962890625,
0.0286865234375,
-0.0269927978515625,
0.01299285888671875,
-0.02374267578125,
-0.008819580078125,
-0.09637451171875,
0.0048980712890625,
0.047149658203125,
0.05096435546875,
-0.04833984375,
-0.01058197021484375,
0.0131378173828125,
0.00885772705078125,
0.0179443359375,
-0.0171051025390625,
0.01354217529296875,
-0.00670623779296875,
0.0184326171875,
-0.046539306640625,
0.040496826171875,
0.0290679931640625,
0.0246124267578125,
-0.0094757080078125,
0.00738525390625,
-0.07940673828125,
0.00982666015625,
-0.0233001708984375,
0.01258087158203125,
-0.0008473396301269531,
0.0281524658203125,
0.00785064697265625,
0.041107177734375,
-0.01432037353515625,
-0.004344940185546875,
-0.01447296142578125,
0.032318115234375,
0.02227783203125,
0.0028743743896484375,
0.0010204315185546875,
-0.01299285888671875,
0.006343841552734375,
0.01401519775390625,
-0.042877197265625,
-0.00397491455078125,
0.0057830810546875,
0.0518798828125,
0.0009598731994628906,
-0.031585693359375,
0.0159759521484375,
-0.021392822265625,
0.0382080078125,
-0.04925537109375,
0.08905029296875,
0.07489013671875,
0.0187530517578125,
-0.005702972412109375,
-0.03033447265625,
0.136474609375,
-0.034637451171875,
0.032745361328125,
-0.006954193115234375,
-0.031951904296875,
0.046142578125,
-0.0194244384765625,
0.079345703125,
-0.00838470458984375,
-0.080078125,
-0.013427734375,
-0.0226593017578125,
-0.06622314453125,
0.044891357421875,
0.052947998046875,
-0.0273895263671875,
-0.00232696533203125,
-0.007770538330078125,
-0.020416259765625,
-0.0024852752685546875,
0.0030117034912109375,
0.005817413330078125,
-0.0172271728515625,
0.0010356903076171875,
-0.014190673828125,
-0.0159454345703125,
0.00624847412109375,
0.0097808837890625,
0.019378662109375,
-0.006927490234375,
0.03460693359375,
-0.005176544189453125,
0.0251617431640625,
-0.0006880760192871094,
-0.0026702880859375,
0.003223419189453125,
0.0010881423950195312,
0.035064697265625,
0.00612640380859375,
0.004985809326171875,
-0.0166015625,
-0.04779052734375,
0.0452880859375,
0.00960540771484375,
-0.0173797607421875,
-0.0015087127685546875,
0.007785797119140625,
0.0037441253662109375,
0.03369140625,
0.04791259765625,
-0.0177154541015625,
-0.004108428955078125,
-0.044281005859375,
-0.04803466796875,
0.050933837890625,
0.004077911376953125,
0.0080413818359375,
0.0184783935546875,
0.023681640625,
-0.01457977294921875,
0.031463623046875,
-0.028594970703125,
0.06536865234375,
0.04266357421875,
-0.0081024169921875,
-0.03765869140625,
0.004150390625,
-0.0127105712890625,
0.005893707275390625,
-0.00428009033203125,
0.03350830078125,
0.0119171142578125,
-0.0635986328125,
0.0157318115234375,
-0.015777587890625,
0.027130126953125,
-0.0313720703125,
-0.01030731201171875,
-0.005084991455078125,
0.016632080078125,
-0.0096588134765625,
-0.03912353515625,
-0.0267181396484375,
-0.0391845703125,
-0.01056671142578125,
0.033203125,
-0.0196380615234375,
-0.013336181640625,
-0.06256103515625,
-0.0120086669921875,
0.051849365234375,
0.0245513916015625,
-0.049224853515625,
0.04010009765625,
-0.0316162109375,
-0.0256500244140625,
0.0394287109375,
-0.06982421875,
0.033111572265625,
0.07110595703125,
-0.00470733642578125,
-0.04669189453125,
-0.0312042236328125,
-0.004302978515625,
-0.06427001953125,
0.029205322265625,
0.022064208984375,
-0.047332763671875,
0.056671142578125,
0.08428955078125,
0.06640625,
0.1182861328125,
0.029632568359375,
-0.0296783447265625,
-0.01149749755859375,
0.0009489059448242188,
-0.00814056396484375,
0.00911712646484375,
0.036224365234375,
-0.0257720947265625,
-0.053070068359375,
-0.0253143310546875,
0.01430511474609375,
0.0243682861328125,
-0.0338134765625,
-0.130859375,
0.0309295654296875,
-0.033721923828125,
-0.04437255859375,
-0.039825439453125,
0.031524658203125,
-0.0178680419921875,
-0.0183563232421875,
-0.007366180419921875,
-0.01081085205078125,
0.033843994140625,
0.038818359375,
0.0012187957763671875,
0.01070404052734375,
0.0302886962890625,
0.01020050048828125,
-0.024505615234375,
-0.0021343231201171875,
-0.00405120849609375,
-0.0034503936767578125,
0.04412841796875,
-0.037109375,
0.0126953125,
0.02459716796875,
-0.0633544921875,
-0.07379150390625,
-0.048828125,
-0.003780364990234375,
-0.033111572265625,
-0.06671142578125,
-0.0032501220703125,
-0.0024261474609375,
0.0758056640625,
0.0141143798828125,
0.0060577392578125,
-0.03955078125,
-0.03643798828125,
-0.0576171875,
0.0027942657470703125,
0.00025773048400878906,
-0.0001493692398071289,
-0.05560302734375,
0.021575927734375,
0.032806396484375,
-0.0361328125,
-0.00861358642578125,
0.0215606689453125,
-0.061431884765625,
0.023162841796875,
0.0217132568359375,
0.01495361328125,
-0.08660888671875,
0.04864501953125,
0.017364501953125,
-0.032745361328125,
0.0021190643310546875,
-0.026641845703125,
-0.00888824462890625,
-0.007511138916015625,
-0.04608154296875,
-0.009918212890625,
-0.006500244140625,
0.00414276123046875,
0.0380859375,
-0.007415771484375,
-0.0032978057861328125,
-0.0200653076171875,
0.006717681884765625,
-0.0296173095703125,
0.0335693359375,
0.01666259765625,
0.03594970703125,
-0.045928955078125,
0.06793212890625,
0.0357666015625,
0.0501708984375,
-0.03533935546875,
-0.05487060546875,
-0.0374755859375,
-0.00494384765625,
-0.045074462890625,
0.03643798828125,
-0.01076507568359375,
-0.017242431640625,
0.0184326171875,
0.005950927734375,
-0.004383087158203125,
-0.005023956298828125,
0.0039005279541015625,
-0.00809478759765625,
-0.0105743408203125,
0.01399993896484375
] |
268c816c2ab3f95ba1dc8ce152c0fd3b3812d01a
|
Wordpress Stackexchange
Q: Why is style.css not being enqueued? I got a pretty basic theme and just found out my style.css file doesn't get loaded into the <head>. I already searched around but can't find out, why it's not loading.
I inspected the global $wp_styles object already but couldn't find anything:
function style_test()
{
$wp_styles = new WP_Styles();
echo '<pre>';
// $wp_styles->enqueue == completely empty
print_r( $wp_styles->registered );
echo '</pre>';
}
add_action( 'wp_print_scripts', 'style_test', 0 );
Inside the object i also can't find my registered/enqueued stylesheets (they get loaded), so i guess i'm doing something wrong on inspecting this too. Any ideas?
Note:
If i enqueue it manually, my style.css file get's loaded. Just the automatic loading doesn't work. Further more i can access the file with get_theme_data( TEMPLATEPATH.'/style.css' ); without a problem.
A: The recommended way to do it is by enqueue-ing style.css in the functions.php of the theme.
Add this to functions.php
/**
* Load CSS and JS the right way
*/
function myprefix_load_css_and_js() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'myprefix_load_css_and_js' );
You can refer this in the WordPress theme handbook here and see examples here.
|
Q: Why is style.css not being enqueued? I got a pretty basic theme and just found out my style.css file doesn't get loaded into the <head>. I already searched around but can't find out, why it's not loading.
I inspected the global $wp_styles object already but couldn't find anything:
function style_test()
{
$wp_styles = new WP_Styles();
echo '<pre>';
// $wp_styles->enqueue == completely empty
print_r( $wp_styles->registered );
echo '</pre>';
}
add_action( 'wp_print_scripts', 'style_test', 0 );
Inside the object i also can't find my registered/enqueued stylesheets (they get loaded), so i guess i'm doing something wrong on inspecting this too. Any ideas?
Note:
If i enqueue it manually, my style.css file get's loaded. Just the automatic loading doesn't work. Further more i can access the file with get_theme_data( TEMPLATEPATH.'/style.css' ); without a problem.
A: The recommended way to do it is by enqueue-ing style.css in the functions.php of the theme.
Add this to functions.php
/**
* Load CSS and JS the right way
*/
function myprefix_load_css_and_js() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'myprefix_load_css_and_js' );
You can refer this in the WordPress theme handbook here and see examples here.
A: Theme stylesheets aren't usually enqueued, they're normally loaded using..
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
So naturally you don't see them(it) in the styles array..
You can of course(if you prefer) use an enqueue instead.
A: although its already solved i think this will also help someone.
You can load style.css by adding this line of code in any single page or custom template.
wp_enqueue_style('style', get_stylesheet_uri() );
A: Minor nitpick on Arun's answer above. Like they said, you should enqueue it in the functions.php file, but it is probably better to define and call it anonymously within the add_action function, since you are not calling it anywhere else. That way, you avoid adding it to the global namespace.
add_action('wp_enqueue_scripts', function () {
wp_enqueue_style('style', get_stylesheet_uri());
});
|
wordpress
|
{
"language": "en",
"length": 318,
"provenance": "stackexchange_00019.jsonl.gz:408587",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14655"
}
|
[
0.01036834716796875,
0.0047760009765625,
-0.053863525390625,
-0.061492919921875,
0.01256561279296875,
-0.0275421142578125,
-0.01345062255859375,
0.027099609375,
-0.0439453125,
0.002437591552734375,
-0.0794677734375,
0.0322265625,
-0.043426513671875,
0.007694244384765625,
0.0233154296875,
-0.062255859375,
0.0616455078125,
-0.043365478515625,
0.0152130126953125,
0.01189422607421875,
0.003475189208984375,
0.04254150390625,
0.0174713134765625,
0.07977294921875,
0.03509521484375,
-0.0399169921875,
0.0673828125,
0.00904083251953125,
0.0216064453125,
-0.006103515625,
0.03289794921875,
-0.0249786376953125,
0.0361328125,
0.02734375,
-0.043670654296875,
-0.0184783935546875,
0.013580322265625,
-0.007030487060546875,
-0.003940582275390625,
0.042236328125,
0.01239013671875,
0.003276824951171875,
0.00908660888671875,
0.0740966796875,
-0.0196990966796875,
-0.06988525390625,
0.02752685546875,
-0.0302886962890625,
-0.03009033203125,
-0.015777587890625,
0.04412841796875,
-0.015869140625,
0.058837890625,
-0.0176544189453125,
-0.004154205322265625,
0.0264892578125,
-0.0269775390625,
0.0161285400390625,
0.006504058837890625,
0.03167724609375,
-0.00039196014404296875,
0.0191802978515625,
-0.00264739990234375,
-0.032867431640625,
-0.0274658203125,
-0.0027942657470703125,
0.0072021484375,
-0.0009965896606445312,
-0.053955078125,
-0.029052734375,
0.035064697265625,
-0.023956298828125,
-0.00902557373046875,
-0.0237274169921875,
-0.037567138671875,
0.008819580078125,
-0.0055694580078125,
-0.041778564453125,
0.0282745361328125,
-0.0119171142578125,
0.01513671875,
-0.048492431640625,
-0.054595947265625,
0.012359619140625,
0.0218048095703125,
0.04461669921875,
-0.0009183883666992188,
-0.02825927734375,
-0.007537841796875,
-0.05047607421875,
-0.013031005859375,
-0.0128631591796875,
-0.01556396484375,
-0.02764892578125,
-0.01507568359375,
-0.04156494140625,
0.026519775390625,
0.07470703125,
0.016265869140625,
0.0286102294921875,
-0.01474761962890625,
-0.035491943359375,
0.0300750732421875,
-0.0465087890625,
-0.01263427734375,
0.048370361328125,
-0.01096343994140625,
0.0159149169921875,
0.0132598876953125,
0.0239715576171875,
0.01873779296875,
-0.0548095703125,
0.03936767578125,
-0.008544921875,
-0.007068634033203125,
-0.03094482421875,
-0.01084136962890625,
0.0243377685546875,
-0.00832366943359375,
-0.02008056640625,
0.009307861328125,
0.0400390625,
-0.012603759765625,
-0.0243377685546875,
-0.01531219482421875,
-0.02374267578125,
0.0005650520324707031,
-0.029266357421875,
0.027801513671875,
0.025543212890625,
-0.0156707763671875,
-0.00643157958984375,
0.0302886962890625,
0.0098419189453125,
0.0006589889526367188,
-0.0213470458984375,
0.05487060546875,
-0.0275115966796875,
-0.029205322265625,
0.0164642333984375,
0.003917694091796875,
-0.03460693359375,
-0.0218353271484375,
-0.0190887451171875,
-0.005252838134765625,
0.007598876953125,
0.01666259765625,
0.02557373046875,
0.0001112222671508789,
-0.031494140625,
0.03302001953125,
-0.044219970703125,
0.04144287109375,
0.01084136962890625,
-0.01041412353515625,
-0.00801849365234375,
0.050079345703125,
-0.031982421875,
-0.0400390625,
-0.04302978515625,
-0.034423828125,
0.01326751708984375,
0.029052734375,
-0.03314208984375,
0.004756927490234375,
-0.038909912109375,
0.006561279296875,
0.01495361328125,
0.0382080078125,
0.02252197265625,
-0.0254364013671875,
-0.028778076171875,
0.049560546875,
0.02337646484375,
-0.009033203125,
0.038909912109375,
0.00951385498046875,
0.0037441253662109375,
0.0247039794921875,
0.0160980224609375,
-0.025054931640625,
-0.028961181640625,
0.06805419921875,
-0.0545654296875,
-0.0165252685546875,
-0.034698486328125,
0.022186279296875,
0.0286407470703125,
0.0013933181762695312,
0.029296875,
0.0111541748046875,
-0.005275726318359375,
-0.0153961181640625,
-0.024444580078125,
-0.0002448558807373047,
-0.0015544891357421875,
0.0118560791015625,
0.008819580078125,
0.00119781494140625,
0.026153564453125,
0.00004857778549194336,
-0.015869140625,
0.0394287109375,
-0.0264739990234375,
-0.033782958984375,
0.00467681884765625,
-0.02362060546875,
0.034027099609375,
-0.004589080810546875,
0.0094757080078125,
-0.0027618408203125,
0.0008983612060546875,
0.003509521484375,
-0.045196533203125,
-0.0218353271484375,
0.047027587890625,
-0.0172271728515625,
0.06640625,
-0.00733184814453125,
0.02667236328125,
-0.002468109130859375,
-0.036773681640625,
0.01409912109375,
0.015045166015625,
-0.02227783203125,
0.020050048828125,
-0.043212890625,
0.007633209228515625,
-0.0233306884765625,
0.00616455078125,
0.040191650390625,
0.032745361328125,
0.050811767578125,
0.087646484375,
-0.0119171142578125,
-0.01076507568359375,
0.0055389404296875,
-0.0037403106689453125,
0.0133209228515625,
0.0162200927734375,
0.045074462890625,
0.029815673828125,
0.011932373046875,
-0.00501251220703125,
0.05401611328125,
0.00768280029296875,
0.02777099609375,
-0.032318115234375,
0.0018854141235351562,
-0.0189208984375,
0.0212860107421875,
-0.0187225341796875,
0.045989990234375,
-0.0704345703125,
0.021209716796875,
0.041656494140625,
-0.0194549560546875,
0.0017290115356445312,
-0.0193328857421875,
0.0176239013671875,
0.00839996337890625,
0.01751708984375,
0.0000426173210144043,
-0.005306243896484375,
0.0139007568359375,
0.0013761520385742188,
0.01194000244140625,
-0.01172637939453125,
-0.0029201507568359375,
0.01233673095703125,
0.00933837890625,
-0.07794189453125,
-0.0078277587890625,
0.039794921875,
0.016998291015625,
-0.0185089111328125,
-0.01361083984375,
-0.01120758056640625,
-0.003093719482421875,
0.0233154296875,
0.00440216064453125,
0.03302001953125,
-0.02197265625,
-0.00769805908203125,
-0.01477813720703125,
-0.0528564453125,
0.0046234130859375,
0.02099609375,
0.06329345703125,
0.0509033203125,
0.058135986328125,
0.05718994140625,
0.033538818359375,
0.0308685302734375,
0.017333984375,
-0.0022411346435546875,
0.04180908203125,
0.02301025390625,
0.0014896392822265625,
0.00421142578125,
0.007568359375,
0.028289794921875,
-0.01045989990234375,
-0.0016202926635742188,
0.01861572265625,
-0.0005931854248046875,
0.037200927734375,
0.0081024169921875,
-0.0001156926155090332,
-0.01415252685546875,
-0.03741455078125,
0.00884246826171875,
0.044158935546875,
0.03143310546875,
0.0249786376953125,
-0.032745361328125,
0.01317596435546875,
0.033172607421875,
-0.068115234375,
-0.0897216796875,
-0.060455322265625,
-0.06683349609375,
-0.006114959716796875,
-0.027313232421875,
-0.0289764404296875,
0.0233154296875,
-0.018280029296875,
0.0233612060546875,
-0.02703857421875,
-0.033477783203125,
-0.054534912109375,
-0.0823974609375,
-0.07537841796875,
-0.01397705078125,
0.0110931396484375,
0.0101470947265625,
0.0011272430419921875,
0.048614501953125,
0.00266265869140625,
-0.043792724609375,
0.01181793212890625,
0.02081298828125,
0.0093841552734375,
0.00368499755859375,
0.040191650390625,
-0.034454345703125,
-0.0017576217651367188,
-0.00794219970703125,
-0.01715087890625,
0.032745361328125,
-0.03411865234375,
-0.004180908203125,
-0.023956298828125,
-0.011260986328125,
-0.009246826171875,
0.06549072265625,
0.037384033203125,
-0.0477294921875,
0.02008056640625,
-0.0565185546875,
-0.0391845703125,
0.0062103271484375,
-0.040740966796875,
0.034942626953125,
0.0241241455078125,
-0.019775390625,
-0.003231048583984375,
0.041839599609375,
0.0210723876953125,
-0.0004725456237792969,
0.00800323486328125,
-0.002971649169921875,
0.04681396484375,
-0.0030269622802734375,
0.002655029296875,
-0.0284271240234375,
0.050201416015625,
-0.01157379150390625,
0.047882080078125,
0.0394287109375,
0.0027313232421875,
-0.006443023681640625,
-0.0253448486328125,
-0.04888916015625,
-0.0255584716796875,
0.0236663818359375,
-0.0154876708984375,
0.0450439453125,
-0.02850341796875,
-0.019287109375,
-0.00955963134765625,
0.0794677734375,
-0.03033447265625,
-0.00870513916015625,
0.04443359375,
0.037872314453125,
-0.07366943359375,
-0.07501220703125,
-0.037567138671875,
0.001956939697265625,
-0.06158447265625,
0.007518768310546875,
-0.01227569580078125,
-0.031463623046875,
-0.0007834434509277344,
-0.05450439453125,
-0.0452880859375,
-0.047332763671875,
0.027587890625,
0.031707763671875,
0.0020809173583984375,
0.0185394287109375,
-0.0186614990234375,
0.0045623779296875,
-0.01378631591796875,
-0.00007677078247070312,
-0.136474609375,
-0.0240020751953125,
-0.028045654296875,
0.0927734375,
-0.0031948089599609375,
0.03369140625,
-0.028289794921875,
0.06158447265625,
0.00748443603515625,
0.003887176513671875,
0.042999267578125,
0.021270751953125,
-0.00548553466796875,
-0.01812744140625,
0.0235443115234375,
-0.0560302734375,
0.00978851318359375,
0.038787841796875,
-0.046356201171875,
0.0321044921875,
-0.0188140869140625,
-0.0369873046875,
0.0487060546875,
-0.054962158203125,
-0.01157379150390625,
0.01934814453125,
0.01201629638671875,
-0.010955810546875,
0.00208282470703125,
-0.028228759765625,
0.019012451171875,
-0.0026721954345703125,
0.03387451171875,
-0.0166778564453125,
0.01041412353515625,
-0.01171875,
0.031707763671875,
0.0291290283203125,
-0.0266876220703125,
0.0303955078125,
0.04742431640625,
0.033477783203125,
0.0139923095703125,
0.0012111663818359375,
-0.029571533203125,
-0.02911376953125,
0.026763916015625,
0.0092315673828125,
0.015960693359375,
0.003692626953125,
0.042022705078125,
0.01464080810546875,
-0.01151275634765625,
0.0103759765625,
0.004962921142578125,
-0.028564453125,
0.035736083984375,
0.011138916015625,
-0.0084991455078125,
0.0213470458984375,
-0.003753662109375,
-0.00640106201171875,
-0.01039886474609375,
-0.0103912353515625,
-0.01068878173828125,
-0.0157470703125,
-0.006710052490234375,
0.089111328125,
0.02911376953125,
-0.003742218017578125,
0.043792724609375,
0.0712890625,
0.0222015380859375,
0.01361083984375,
0.0156707763671875,
-0.026397705078125,
0.0282745361328125,
0.0421142578125,
0.005950927734375,
0.005970001220703125,
-0.0195465087890625,
0.05560302734375,
-0.00756072998046875,
-0.0345458984375,
-0.03790283203125,
0.005687713623046875,
0.07147216796875,
0.0199737548828125,
0.006076812744140625,
0.02392578125,
0.0146942138671875,
-0.04449462890625,
-0.014923095703125,
0.01531982421875,
-0.01214599609375,
-0.0484619140625,
0.0462646484375,
0.006351470947265625,
-0.01348114013671875,
0.01361083984375,
0.024505615234375,
0.01898193359375,
0.011627197265625,
-0.00528717041015625,
-0.0004038810729980469,
-0.0265960693359375,
0.05133056640625,
0.010040283203125,
-0.0221710205078125,
0.02947998046875,
0.0166168212890625,
0.042388916015625,
-0.032196044921875,
-0.0290069580078125,
0.0203704833984375,
0.0450439453125,
-0.0550537109375,
-0.004180908203125,
0.032684326171875,
0.0035686492919921875,
-0.037139892578125,
0.00029468536376953125,
-0.030731201171875,
-0.0284423828125,
-0.027618408203125,
-0.01406097412109375,
0.01514434814453125,
0.0198516845703125,
0.0170745849609375,
0.01340484619140625,
0.022796630859375,
0.035736083984375,
-0.0012083053588867188,
0.0120697021484375,
-0.0104217529296875,
-0.0216064453125,
0.0052642822265625,
0.005733489990234375,
0.004917144775390625,
-0.0255889892578125,
-0.0404052734375,
-0.01407623291015625,
-0.00368499755859375,
0.033477783203125,
-0.0386962890625,
0.00960540771484375,
-0.02490234375,
0.0165557861328125,
-0.0201873779296875,
0.0243988037109375,
0.040679931640625,
0.0228729248046875,
-0.0029659271240234375,
-0.0068511962890625,
-0.020965576171875,
-0.00946807861328125,
-0.0260162353515625,
-0.0335693359375,
-0.01235198974609375,
0.0021419525146484375,
-0.029754638671875,
0.006618499755859375,
-0.059539794921875,
-0.03436279296875,
-0.0236053466796875,
0.0428466796875,
0.033966064453125,
0.034423828125,
-0.033721923828125,
0.07037353515625,
0.0183563232421875,
0.0149688720703125,
0.0154571533203125,
0.03900146484375,
-0.01505279541015625,
-0.00597381591796875,
-0.0150299072265625,
-0.04833984375,
0.0005707740783691406,
-0.017913818359375,
0.0025424957275390625,
0.0643310546875,
0.08575439453125,
0.01381683349609375,
0.0175628662109375,
0.01654052734375,
0.0036563873291015625,
-0.0200347900390625,
-0.0177459716796875,
0.0307464599609375,
-0.00783538818359375,
0.0217132568359375,
0.03228759765625,
0.044189453125,
-0.035614013671875,
0.0055084228515625,
0.0250244140625,
-0.024261474609375,
0.051361083984375,
-0.040985107421875,
-0.058990478515625,
0.05242919921875,
0.023345947265625,
0.029815673828125,
0.026580810546875,
-0.0165863037109375,
0.01161956787109375,
-0.01285552978515625,
0.0220184326171875,
-0.031951904296875,
-0.04034423828125,
0.02294921875,
-0.0037364959716796875,
0.02484130859375,
0.018585205078125,
0.00804901123046875,
-0.007755279541015625,
0.061492919921875,
0.042449951171875,
-0.06890869140625,
-0.01358795166015625,
-0.003124237060546875,
-0.01343536376953125,
0.0018863677978515625,
-0.01448822021484375,
0.01434326171875,
0.0026035308837890625,
0.05706787109375,
0.040008544921875,
0.00994873046875,
0.057952880859375,
-0.0038852691650390625,
-0.0089263916015625,
-0.038360595703125,
-0.0284881591796875,
-0.00638580322265625,
-0.080078125,
0.0226287841796875,
0.059661865234375,
-0.037506103515625,
-0.033355712890625,
0.0019311904907226562,
0.00030303001403808594,
-0.0294647216796875,
-0.03900146484375,
0.023468017578125,
-0.00637054443359375,
-0.00142669677734375,
0.01024627685546875,
-0.0016298294067382812,
0.035125732421875,
0.012603759765625,
-0.0016279220581054688,
0.0086822509765625,
-0.0249786376953125,
0.0283660888671875,
0.0311737060546875,
-0.03399658203125,
0.027191162109375,
0.0123291015625,
-0.035186767578125,
0.0247039794921875,
0.017242431640625,
-0.041534423828125,
-0.0215606689453125,
-0.016937255859375,
0.07293701171875,
-0.043792724609375,
-0.00308990478515625,
0.0017862319946289062,
0.049835205078125,
0.0203094482421875,
-0.0163116455078125,
0.0172271728515625,
-0.0372314453125,
-0.0012483596801757812,
-0.0038547515869140625,
-0.019287109375,
-0.035980224609375,
-0.0562744140625,
-0.01311492919921875,
0.0462646484375,
-0.033203125,
0.004901885986328125,
0.044769287109375,
0.0148468017578125,
-0.0139312744140625,
0.00021135807037353516,
-0.007289886474609375,
0.0186309814453125,
0.01373291015625,
-0.004550933837890625,
-0.02880859375,
-0.01348114013671875,
-0.000583648681640625,
0.042022705078125,
0.019683837890625,
0.002841949462890625,
0.0013637542724609375,
0.01548004150390625,
0.07159423828125,
0.051361083984375,
0.01409149169921875,
-0.01523590087890625,
-0.00981903076171875,
-0.020843505859375,
-0.035888671875,
-0.005764007568359375,
0.0138397216796875,
-0.032867431640625,
-0.0714111328125,
0.0140533447265625,
-0.007480621337890625,
-0.0208892822265625,
-0.002574920654296875,
-0.007904052734375,
-0.07025146484375,
0.02166748046875,
0.03802490234375,
0.00788116455078125,
-0.03863525390625,
0.052001953125,
0.0157928466796875,
-0.0079803466796875,
-0.049102783203125,
-0.022674560546875,
0.0287017822265625,
0.00962066650390625,
-0.02520751953125,
-0.0185394287109375,
-0.004062652587890625,
-0.00450897216796875,
-0.00711822509765625,
-0.0311737060546875,
0.020416259765625,
-0.0007586479187011719,
0.052886962890625,
0.0287933349609375,
0.039306640625,
-0.019195556640625,
-0.0285491943359375,
-0.0273284912109375,
0.049102783203125,
-0.020416259765625,
-0.00858306884765625,
0.012908935546875,
0.019866943359375,
-0.00847625732421875,
-0.0178985595703125,
0.0157470703125,
-0.06005859375,
-0.00878143310546875,
-0.00989532470703125,
-0.019195556640625,
0.00832366943359375,
0.0036830902099609375,
-0.0009360313415527344,
0.00815582275390625,
0.01361083984375,
0.006076812744140625,
-0.0426025390625,
0.0474853515625,
0.005279541015625,
0.03216552734375,
-0.0036144256591796875,
0.044464111328125,
-0.00583648681640625,
-0.00858306884765625,
-0.0338134765625,
0.049102783203125,
-0.004520416259765625,
0.039825439453125,
-0.01202392578125,
0.01038360595703125,
-0.044403076171875,
0.032470703125,
0.019561767578125,
-0.007526397705078125,
0.03448486328125,
-0.01172637939453125,
-0.07720947265625,
-0.00539398193359375,
0.036346435546875,
-0.028900146484375,
0.004344940185546875,
-0.00394439697265625,
0.03985595703125,
0.031097412109375,
0.0126800537109375,
-0.0189056396484375,
0.046295166015625,
0.042999267578125,
-0.048492431640625,
0.02166748046875,
-0.004787445068359375,
-0.0038280487060546875,
0.0055084228515625,
-0.0193328857421875,
-0.00865936279296875,
-0.0151214599609375,
-0.01290130615234375,
-0.0160980224609375,
-0.01399993896484375,
0.03765869140625,
0.006748199462890625,
0.0201263427734375,
0.004573822021484375,
0.04461669921875,
0.03509521484375,
-0.0345458984375,
-0.00827789306640625,
0.0421142578125,
0.01055908203125,
0.01247406005859375,
0.02294921875,
0.027191162109375,
-0.07598876953125,
-0.0570068359375,
-0.038818359375,
0.061492919921875,
-0.00395965576171875,
0.037261962890625,
-0.024017333984375,
0.0298919677734375,
0.053253173828125,
-0.00850677490234375,
0.0340576171875,
0.0106658935546875,
0.0164642333984375,
-0.02642822265625,
0.01490020751953125,
-0.0137786865234375,
-0.031402587890625,
0.0146026611328125,
0.021026611328125,
-0.0159454345703125,
-0.0009055137634277344,
-0.00665283203125,
0.0247344970703125,
0.002628326416015625,
-0.00008529424667358398,
-0.0501708984375,
-0.0537109375,
-0.0706787109375,
-0.0009055137634277344,
-0.00379180908203125,
-0.0306549072265625,
-0.01111602783203125,
0.0015478134155273438,
0.032684326171875,
-0.039154052734375,
0.04376220703125,
-0.02130126953125,
0.062286376953125,
0.0234375,
0.03485107421875,
-0.018768310546875,
0.0175018310546875,
-0.022674560546875,
0.011138916015625,
0.0079498291015625,
0.0298004150390625,
-0.00875091552734375,
-0.04034423828125,
0.03411865234375,
0.0673828125,
0.06634521484375,
0.003284454345703125,
0.02215576171875,
0.0654296875,
-0.04248046875,
-0.0203399658203125,
-0.0269927978515625,
-0.0362548828125,
-0.0513916015625,
0.005126953125,
0.016082763671875,
-0.019317626953125,
-0.0143585205078125,
-0.019927978515625,
0.020263671875,
0.01197052001953125,
-0.004268646240234375,
-0.05487060546875,
0.0195770263671875,
-0.0384521484375,
0.0640869140625,
-0.0265350341796875,
0.0261077880859375,
0.0093536376953125,
0.01442718505859375,
-0.027923583984375,
-0.00945281982421875,
-0.004352569580078125,
0.0279083251953125,
-0.013275146484375,
0.004467010498046875,
0.037200927734375,
0.0005402565002441406,
0.050872802734375,
0.0142059326171875,
0.005084991455078125,
0.0640869140625,
-0.058563232421875,
0.0006999969482421875,
0.0307769775390625,
0.017608642578125,
-0.031280517578125,
-0.09735107421875,
-0.0206451416015625,
-0.0430908203125,
0.0287017822265625,
-0.035858154296875,
-0.0022792816162109375,
0.0027713775634765625,
-0.050048828125,
-0.0986328125,
0.0238494873046875,
-0.0127105712890625,
-0.0396728515625,
-0.0968017578125,
0.01160430908203125,
0.01221466064453125,
-0.022552490234375,
-0.03460693359375,
-0.035064697265625,
-0.0213470458984375,
0.057861328125,
0.00617218017578125,
0.02996826171875,
0.04449462890625,
-0.0134429931640625,
-0.054656982421875,
-0.01123809814453125,
-0.0159912109375,
0.01568603515625,
-0.0244293212890625,
-0.00675201416015625,
0.0401611328125,
0.04248046875,
-0.0005221366882324219,
0.001384735107421875,
0.032440185546875,
-0.006587982177734375,
0.000713348388671875,
0.0012044906616210938,
-0.0289306640625,
-0.020751953125,
0.0784912109375,
-0.01284027099609375,
0.01837158203125,
0.00891876220703125,
0.00885009765625,
-0.0150909423828125,
-0.023345947265625,
-0.0289306640625,
0.009521484375,
-0.050994873046875,
-0.0250091552734375,
-0.01444244384765625,
0.005146026611328125,
-0.0166778564453125,
-0.0670166015625,
-0.04412841796875,
-0.01401519775390625,
-0.0267486572265625,
0.034881591796875,
0.00421905517578125,
-0.052215576171875,
0.06573486328125,
-0.0214385986328125,
0.0183258056640625,
0.0097808837890625,
0.03912353515625,
0.033050537109375,
0.04998779296875,
-0.0091552734375,
0.0267181396484375,
-0.041656494140625,
-0.0201873779296875,
0.0017185211181640625,
-0.0208740234375,
-0.003086090087890625,
0.00826263427734375,
0.004573822021484375,
-0.0099334716796875,
-0.01326751708984375,
-0.0267181396484375,
0.0150909423828125,
0.0191192626953125,
-0.023406982421875,
0.06414794921875,
-0.0323486328125,
0.0140533447265625,
-0.00445556640625,
0.00681304931640625,
-0.0106353759765625,
0.023406982421875,
0.0180511474609375,
0.005466461181640625,
-0.0017099380493164062,
-0.03228759765625,
-0.020050048828125,
-0.044525146484375,
0.0036182403564453125,
-0.0231170654296875,
-0.01336669921875,
0.0115509033203125
] |
afca6c9dd31ceb6872fb483b086f9e5532651d67
|
Wordpress Stackexchange
Q: After server migration only the homepage works I have recently changed hosting of my WordPress site to VPS.net. I have moved all of my files and imported the database. Everything appeared to be fine until I clicked a link and noticed that all of my pages are bringing back a 404 except the homepage.
Site URL is http://inksquared.com
A: Try flushing your mod_rewrite rules:
Dashboard -> Settings -> Permalinks
Save settings (no need to make any changes)
|
Q: After server migration only the homepage works I have recently changed hosting of my WordPress site to VPS.net. I have moved all of my files and imported the database. Everything appeared to be fine until I clicked a link and noticed that all of my pages are bringing back a 404 except the homepage.
Site URL is http://inksquared.com
A: Try flushing your mod_rewrite rules:
Dashboard -> Settings -> Permalinks
Save settings (no need to make any changes)
A: I guess you get http://yoursite but not http://yoursite/anything
I had a similar problem and it worked when I changed
the httpd.conf from
AllowOverride None
to
AllowOverride All
It makes the .htaccess take effect.
A: I had faced the same problem.
I did the following to resolve it on an Ubuntu Server:
*
*In /etc/apache2/apache2.conf, edit AllowOverride None for /var/www/ to AllowOverride All
*Type in the following command to enable mod_rewrite for .htaccess
sudo a2enmod rewrite
*Restart your apache server:
sudo service apache2 restart
The problem solved!!!
A: In Ubuntu 14.04 - the 000-default.conf file can be found here /etc/apache2/sites-available
Or if you run multiple wp the virtual host setting would be your config file name. e.g. domain.conf
You have to replace AllowOverride None to AllowOverride All
Hope this will work.
A: The reason is most likely that the .htaccess file wasn't copied over. On Mac OS X, and in some FTP applications, this file is considered "hidden" because it starts with a .. If you go to the Settings -> Permalinks section in your admin section, you can regenerate this file, but it's probably best to find the version you had previously and use that again (especially if you use a caching plugin).
A: Do you get a web server 404 or a WordPress 404? If it's a web server 404, you most likely didn't copy the root htaccess file over from the old installation, or it doesn't have correct permissions to run.
My first troubleshooting item would be to check and see if an htaccess file exists in the root. And if so, what it contains.
|
wordpress
|
{
"language": "en",
"length": 346,
"provenance": "stackexchange_00019.jsonl.gz:408595",
"question_score": "41",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14685"
}
|
[
0.00922393798828125,
0.013519287109375,
-0.0038890838623046875,
0.03692626953125,
-0.0152740478515625,
-0.03546142578125,
0.0298004150390625,
-0.07757568359375,
0.01462554931640625,
0.025054931640625,
-0.019744873046875,
-0.021026611328125,
0.0188446044921875,
-0.0200653076171875,
-0.016387939453125,
-0.020355224609375,
0.02239990234375,
0.0086669921875,
0.00739288330078125,
-0.0030422210693359375,
-0.0031108856201171875,
0.027679443359375,
-0.01519012451171875,
0.028106689453125,
-0.0191650390625,
-0.0222930908203125,
0.045379638671875,
-0.0284423828125,
-0.019378662109375,
-0.03424072265625,
-0.0011119842529296875,
0.04638671875,
0.007068634033203125,
0.0111846923828125,
-0.0144500732421875,
-0.0203399658203125,
0.017822265625,
-0.0091400146484375,
-0.0312347412109375,
0.07330322265625,
0.0299835205078125,
-0.0229034423828125,
0.03338623046875,
0.049835205078125,
0.00511932373046875,
-0.027435302734375,
0.03741455078125,
-0.04205322265625,
0.0032062530517578125,
0.026397705078125,
-0.0076141357421875,
0.041259765625,
-0.0082550048828125,
0.0014123916625976562,
0.022308349609375,
-0.006092071533203125,
0.033355712890625,
-0.007419586181640625,
0.009918212890625,
-0.0270843505859375,
-0.02496337890625,
0.0382080078125,
0.01537322998046875,
0.0205535888671875,
-0.01837158203125,
0.0121612548828125,
0.02484130859375,
-0.006275177001953125,
-0.08160400390625,
-0.0261077880859375,
0.041778564453125,
-0.04217529296875,
0.00971221923828125,
-0.0052642822265625,
-0.0012378692626953125,
-0.0433349609375,
0.0148162841796875,
-0.03973388671875,
0.00620269775390625,
0.019500732421875,
0.02490234375,
-0.0211944580078125,
-0.0126953125,
-0.064208984375,
0.03338623046875,
-0.03131103515625,
0.01016998291015625,
-0.0058746337890625,
-0.041351318359375,
-0.0013208389282226562,
-0.0209197998046875,
-0.01491546630859375,
-0.047393798828125,
0.006587982177734375,
0.0020618438720703125,
-0.0023670196533203125,
-0.001056671142578125,
0.0024738311767578125,
-0.0335693359375,
0.0121307373046875,
-0.01953125,
-0.0269622802734375,
0.041168212890625,
-0.0284881591796875,
0.006053924560546875,
-0.0125732421875,
0.0069427490234375,
0.0007252693176269531,
0.0237579345703125,
0.023956298828125,
-0.035888671875,
0.045166015625,
-0.0200653076171875,
-0.0213775634765625,
-0.0188140869140625,
0.009857177734375,
-0.04815673828125,
-0.023345947265625,
-0.01062774658203125,
-0.0262451171875,
0.01062774658203125,
0.042724609375,
-0.048187255859375,
-0.057861328125,
-0.020599365234375,
-0.06268310546875,
-0.02825927734375,
0.0221405029296875,
0.0038967132568359375,
0.01496124267578125,
-0.0197601318359375,
0.0238494873046875,
0.0172576904296875,
0.0055084228515625,
-0.015106201171875,
-0.0261077880859375,
0.0245819091796875,
-0.02252197265625,
-0.00818634033203125,
0.024261474609375,
0.01137542724609375,
-0.055999755859375,
-0.035003662109375,
0.0094146728515625,
-0.01480865478515625,
0.021087646484375,
0.026611328125,
0.018524169921875,
-0.029693603515625,
-0.028961181640625,
-0.0308990478515625,
0.017425537109375,
0.027252197265625,
0.00954437255859375,
0.01898193359375,
-0.0311737060546875,
0.035888671875,
-0.03179931640625,
0.0091094970703125,
-0.03460693359375,
0.022247314453125,
0.026275634765625,
0.032135009765625,
-0.03131103515625,
-0.0465087890625,
-0.0626220703125,
-0.053131103515625,
-0.0128326416015625,
0.01519012451171875,
0.043212890625,
-0.02630615234375,
0.00418853759765625,
0.0285797119140625,
0.026336669921875,
-0.00508880615234375,
0.020660400390625,
0.0179595947265625,
-0.00044727325439453125,
-0.0165863037109375,
0.03643798828125,
0.03179931640625,
-0.00455474853515625,
0.0155029296875,
0.01397705078125,
-0.06298828125,
0.04327392578125,
-0.001117706298828125,
0.0364990234375,
0.005710601806640625,
-0.0037975311279296875,
0.03924560546875,
0.051422119140625,
-0.0263519287109375,
0.01995849609375,
0.01374053955078125,
-0.008636474609375,
0.005023956298828125,
0.0032958984375,
0.0090484619140625,
-0.02984619140625,
-0.017669677734375,
0.00811004638671875,
0.022125244140625,
0.030731201171875,
0.0283355712890625,
0.0279388427734375,
-0.004238128662109375,
0.025909423828125,
0.05224609375,
0.060150146484375,
0.005023956298828125,
0.03179931640625,
-0.033966064453125,
-0.0214080810546875,
-0.03314208984375,
-0.0003445148468017578,
-0.0132904052734375,
-0.0024051666259765625,
-0.0070343017578125,
0.005817413330078125,
-0.01104736328125,
-0.01473236083984375,
-0.01450347900390625,
0.0241241455078125,
-0.019561767578125,
-0.0032634735107421875,
-0.008331298828125,
0.00231170654296875,
0.01084136962890625,
-0.005161285400390625,
0.03656005859375,
0.001033782958984375,
-0.0122833251953125,
-0.007801055908203125,
-0.05120849609375,
0.00518035888671875,
-0.043548583984375,
-0.01003265380859375,
-0.0174407958984375,
0.040557861328125,
0.01126861572265625,
-0.0186004638671875,
-0.00933074951171875,
0.0113067626953125,
0.01611328125,
-0.06610107421875,
-0.0184478759765625,
0.029205322265625,
-0.0260467529296875,
0.042083740234375,
0.01129913330078125,
0.02734375,
0.005695343017578125,
-0.052978515625,
-0.049560546875,
0.05712890625,
-0.026641845703125,
0.02392578125,
-0.037506103515625,
0.00785064697265625,
-0.00545501708984375,
0.0078125,
0.011505126953125,
-0.006988525390625,
-0.044708251953125,
0.006988525390625,
-0.0025272369384765625,
0.0265655517578125,
0.0088043212890625,
-0.035797119140625,
0.00897216796875,
0.0259552001953125,
0.002307891845703125,
0.0738525390625,
0.065185546875,
-0.025177001953125,
-0.0207672119140625,
-0.036041259765625,
0.016326904296875,
0.03289794921875,
-0.0027141571044921875,
-0.0061492919921875,
-0.00833892822265625,
-0.00010567903518676758,
-0.0028209686279296875,
-0.038787841796875,
0.03753662109375,
0.03155517578125,
0.027191162109375,
0.005306243896484375,
0.0247955322265625,
0.0474853515625,
-0.000047087669372558594,
0.04815673828125,
0.01451873779296875,
-0.017425537109375,
0.0374755859375,
-0.0455322265625,
0.01273345947265625,
-0.0178985595703125,
0.050933837890625,
0.062408447265625,
0.016204833984375,
-0.02587890625,
0.011505126953125,
0.0178680419921875,
0.035003662109375,
-0.016204833984375,
-0.005092620849609375,
0.036376953125,
-0.08203125,
-0.012237548828125,
0.013336181640625,
-0.0048065185546875,
-0.00848388671875,
-0.0219879150390625,
-0.01267242431640625,
-0.01433563232421875,
-0.10137939453125,
-0.077880859375,
-0.06689453125,
0.0067291259765625,
-0.024871826171875,
0.005580902099609375,
0.01026153564453125,
0.030059814453125,
-0.0211944580078125,
0.02752685546875,
-0.0093841552734375,
-0.0021228790283203125,
-0.07757568359375,
-0.0682373046875,
-0.0850830078125,
-0.050537109375,
-0.013275146484375,
0.0253448486328125,
0.007205963134765625,
0.0007386207580566406,
0.004726409912109375,
-0.0229949951171875,
0.0096435546875,
0.0443115234375,
-0.011474609375,
-0.0110931396484375,
0.00959014892578125,
-0.01378631591796875,
0.00536346435546875,
-0.00566864013671875,
0.0452880859375,
0.0295257568359375,
-0.0303955078125,
0.0000622868537902832,
-0.03472900390625,
-0.0109100341796875,
-0.046783447265625,
-0.02020263671875,
0.0716552734375,
-0.034332275390625,
-0.04168701171875,
-0.045867919921875,
-0.06231689453125,
0.012115478515625,
-0.049163818359375,
0.0193634033203125,
0.0220947265625,
-0.0234375,
0.0233154296875,
-0.0135498046875,
0.0010442733764648438,
0.0027408599853515625,
0.0294647216796875,
-0.0157012939453125,
0.0182342529296875,
-0.005512237548828125,
-0.018951416015625,
-0.037872314453125,
0.04608154296875,
-0.0180206298828125,
0.0308074951171875,
0.0194854736328125,
-0.01148223876953125,
-0.0027294158935546875,
0.0182342529296875,
-0.0168914794921875,
-0.060302734375,
0.0247039794921875,
-0.07550048828125,
-0.01287078857421875,
-0.034423828125,
0.002391815185546875,
-0.0129852294921875,
0.07244873046875,
-0.0634765625,
-0.01568603515625,
0.0188751220703125,
0.0023250579833984375,
-0.0078887939453125,
0.019256591796875,
-0.071533203125,
-0.01016998291015625,
-0.0127105712890625,
-0.01003265380859375,
-0.01160430908203125,
-0.01171875,
0.006748199462890625,
-0.0418701171875,
0.021514892578125,
-0.04168701171875,
0.0254669189453125,
0.00677490234375,
-0.0255889892578125,
-0.01540374755859375,
-0.0091400146484375,
-0.04913330078125,
-0.01442718505859375,
0.0167236328125,
-0.07366943359375,
-0.03424072265625,
0.03411865234375,
0.0687255859375,
-0.003753662109375,
-0.0382080078125,
0.0181427001953125,
0.0811767578125,
-0.027069091796875,
0.0149383544921875,
-0.017547607421875,
0.016815185546875,
-0.004413604736328125,
-0.02728271484375,
-0.0290679931640625,
-0.0169830322265625,
0.0132598876953125,
-0.036346435546875,
-0.08221435546875,
-0.07159423828125,
-0.041351318359375,
-0.0023632049560546875,
0.00759124755859375,
-0.045623779296875,
-0.01461029052734375,
-0.02862548828125,
-0.0184478759765625,
0.00849151611328125,
0.0077362060546875,
-0.0227813720703125,
-0.0203857421875,
0.0026607513427734375,
0.0227508544921875,
-0.0262908935546875,
-0.01398468017578125,
0.00406646728515625,
0.06854248046875,
0.004024505615234375,
-0.00955963134765625,
0.032379150390625,
0.052276611328125,
0.032440185546875,
0.038970947265625,
0.061492919921875,
0.02685546875,
-0.003643035888671875,
0.0379638671875,
0.0131988525390625,
0.0042266845703125,
-0.0067596435546875,
0.0250396728515625,
0.01007843017578125,
-0.0377197265625,
0.021697998046875,
0.022918701171875,
0.00811004638671875,
0.04193115234375,
0.02349853515625,
-0.0253753662109375,
0.0123138427734375,
-0.00690460205078125,
-0.00557708740234375,
-0.0182647705078125,
0.005321502685546875,
-0.025848388671875,
0.0099945068359375,
-0.027801513671875,
0.045440673828125,
-0.0013246536254882812,
0.00975799560546875,
0.009368896484375,
0.052764892578125,
-0.01169586181640625,
0.00894927978515625,
0.017669677734375,
0.032562255859375,
0.012969970703125,
0.0275421142578125,
0.0084228515625,
-0.03533935546875,
-0.005153656005859375,
0.027252197265625,
0.01123809814453125,
-0.043548583984375,
0.0260467529296875,
-0.0140838623046875,
-0.0419921875,
0.04779052734375,
0.0191650390625,
0.0011425018310546875,
-0.017059326171875,
-0.025238037109375,
0.00922393798828125,
0.04571533203125,
-0.04656982421875,
-0.0190887451171875,
0.042633056640625,
-0.008697509765625,
0.01238250732421875,
0.00603485107421875,
0.0311431884765625,
0.0374755859375,
0.00533294677734375,
-0.0311279296875,
-0.04071044921875,
-0.01105499267578125,
0.0311737060546875,
0.0006132125854492188,
-0.0020999908447265625,
0.01471710205078125,
0.010711669921875,
0.0860595703125,
-0.051971435546875,
-0.0263671875,
0.04034423828125,
0.07989501953125,
0.00821685791015625,
-0.01416015625,
-0.0307464599609375,
-0.031280517578125,
-0.00798797607421875,
0.04791259765625,
-0.035858154296875,
-0.0760498046875,
-0.024810791015625,
0.01020050048828125,
0.02227783203125,
-0.0517578125,
-0.0008001327514648438,
-0.043609619140625,
-0.0167083740234375,
0.00839996337890625,
-0.01023101806640625,
0.0010557174682617188,
0.001583099365234375,
-0.0005593299865722656,
0.019134521484375,
-0.03302001953125,
-0.01995849609375,
-0.008209228515625,
0.01385498046875,
-0.0189666748046875,
-0.022552490234375,
0.03167724609375,
0.00540924072265625,
0.06109619140625,
-0.0162811279296875,
-0.045379638671875,
0.01409912109375,
0.02593994140625,
-0.0024776458740234375,
-0.02349853515625,
-0.048431396484375,
-0.004787445068359375,
-0.00677490234375,
0.0038433074951171875,
0.08502197265625,
-0.0233154296875,
-0.014923095703125,
-0.059722900390625,
0.00745391845703125,
0.016815185546875,
-0.0024261474609375,
-0.039215087890625,
-0.056427001953125,
-0.0011548995971679688,
0.06982421875,
-0.00457000732421875,
-0.0269622802734375,
0.0726318359375,
0.003887176513671875,
0.05560302734375,
0.0100555419921875,
0.044403076171875,
-0.00667572021484375,
-0.0281829833984375,
0.024749755859375,
-0.006381988525390625,
-0.045562744140625,
-0.038421630859375,
-0.02166748046875,
0.019287109375,
0.0487060546875,
-0.0168304443359375,
0.0104522705078125,
-0.040679931640625,
-0.004276275634765625,
-0.0369873046875,
0.0438232421875,
-0.063720703125,
0.0013036727905273438,
-0.02471923828125,
0.0216217041015625,
0.0132598876953125,
-0.051025390625,
-0.0009617805480957031,
-0.029388427734375,
0.02423095703125,
-0.012420654296875,
-0.006256103515625,
0.028472900390625,
0.0034580230712890625,
0.047576904296875,
-0.005649566650390625,
0.0361328125,
0.03680419921875,
0.0206146240234375,
0.030975341796875,
-0.024658203125,
-0.00943756103515625,
-0.0010814666748046875,
-0.01229095458984375,
-0.03875732421875,
-0.006404876708984375,
-0.007289886474609375,
-0.0091705322265625,
0.00043201446533203125,
0.0743408203125,
0.04913330078125,
-0.0740966796875,
-0.02685546875,
-0.01392364501953125,
-0.02227783203125,
0.00855255126953125,
0.01290130615234375,
-0.01506805419921875,
-0.0128173828125,
-0.003276824951171875,
0.0167236328125,
-0.02435302734375,
-0.0061492919921875,
0.0236053466796875,
-0.01092529296875,
-0.03973388671875,
0.036529541015625,
0.0025844573974609375,
-0.03607177734375,
0.02734375,
0.0131683349609375,
-0.01419830322265625,
0.004833221435546875,
0.0014657974243164062,
0.038299560546875,
-0.0227508544921875,
-0.043701171875,
0.032073974609375,
-0.0158233642578125,
-0.01235198974609375,
0.006114959716796875,
0.03607177734375,
-0.0024890899658203125,
0.008819580078125,
0.0045623779296875,
-0.0252685546875,
-0.00870513916015625,
-0.032318115234375,
0.0487060546875,
-0.0236968994140625,
-0.0005240440368652344,
-0.01271820068359375,
-0.032196044921875,
-0.01446533203125,
-0.01352691650390625,
-0.01137542724609375,
-0.0135040283203125,
-0.0084228515625,
0.051666259765625,
-0.0204315185546875,
-0.03228759765625,
-0.00826263427734375,
0.007236480712890625,
0.0207977294921875,
-0.01039886474609375,
-0.0150909423828125,
-0.044281005859375,
-0.00139617919921875,
-0.01305389404296875,
-0.023773193359375,
-0.0024852752685546875,
-0.031280517578125,
-0.036773681640625,
0.0823974609375,
-0.0190277099609375,
0.037109375,
0.06573486328125,
0.0201263427734375,
-0.06756591796875,
-0.0067901611328125,
-0.0199737548828125,
0.042144775390625,
-0.00678253173828125,
0.00970458984375,
-0.02386474609375,
0.0096282958984375,
-0.0029506683349609375,
0.006572723388671875,
0.08160400390625,
0.00849151611328125,
-0.045806884765625,
-0.00644683837890625,
0.07220458984375,
0.027130126953125,
-0.00679779052734375,
0.055938720703125,
-0.0523681640625,
0.021697998046875,
-0.000408172607421875,
-0.0576171875,
0.027374267578125,
-0.0020427703857421875,
-0.055877685546875,
-0.032958984375,
-0.005771636962890625,
-0.019989013671875,
-0.00922393798828125,
-0.054290771484375,
-0.03631591796875,
0.00289154052734375,
0.00323486328125,
-0.009765625,
0.006801605224609375,
-0.0065765380859375,
-0.00970458984375,
-0.02166748046875,
-0.014739990234375,
-0.018310546875,
0.02142333984375,
0.00615692138671875,
0.0148162841796875,
0.01690673828125,
0.0246124267578125,
-0.0156707763671875,
-0.0071868896484375,
0.0024814605712890625,
0.032806396484375,
-0.037689208984375,
0.07891845703125,
0.050689697265625,
0.040985107421875,
0.01448822021484375,
0.01139068603515625,
-0.00710296630859375,
0.0777587890625,
-0.044403076171875,
-0.04791259765625,
0.00017893314361572266,
0.0027523040771484375,
0.016632080078125,
0.01806640625,
0.03076171875,
-0.006221771240234375,
0.0216217041015625,
0.00628662109375,
-0.00832366943359375,
-0.0207061767578125,
-0.019744873046875,
-0.001708984375,
0.0299072265625,
0.05865478515625,
0.0179901123046875,
-0.019500732421875,
0.00916290283203125,
0.006954193115234375,
0.0309600830078125,
0.00460052490234375,
0.01120758056640625,
-0.007232666015625,
-0.001888275146484375,
-0.0293121337890625,
0.06024169921875,
0.0045013427734375,
0.0296173095703125,
-0.0693359375,
-0.032958984375,
-0.03277587890625,
0.0517578125,
0.00998687744140625,
0.006259918212890625,
-0.0117950439453125,
-0.024871826171875,
0.0005688667297363281,
0.0006303787231445312,
0.00727081298828125,
-0.043914794921875,
0.036529541015625,
-0.002323150634765625,
-0.000009119510650634766,
-0.026641845703125,
-0.016693115234375,
-0.05755615234375,
0.07421875,
-0.015777587890625,
0.0273284912109375,
0.0077667236328125,
0.01299285888671875,
-0.036712646484375,
0.0040740966796875,
0.01413726806640625,
0.0638427734375,
0.061614990234375,
-0.0228729248046875,
-0.024871826171875,
0.0050048828125,
-0.011077880859375,
0.00220489501953125,
0.03289794921875,
0.00020968914031982422,
0.0004863739013671875,
-0.00441741943359375,
-0.037994384765625,
-0.0279083251953125,
0.04156494140625,
0.0262603759765625,
0.002262115478515625,
-0.00391387939453125,
0.0026531219482421875,
-0.015716552734375,
-0.00214385986328125,
-0.0296173095703125,
0.041412353515625,
0.01386260986328125,
0.1510009765625,
-0.060638427734375,
0.02978515625,
-0.01800537109375,
0.01512908935546875,
-0.0030975341796875,
-0.0187835693359375,
0.01172637939453125,
0.024322509765625,
-0.003032684326171875,
-0.009796142578125,
-0.065185546875,
0.0295257568359375,
-0.0034999847412109375,
-0.0198211669921875,
0.047943115234375,
-0.01216888427734375,
0.00801849365234375,
0.0002090930938720703,
0.005985260009765625,
-0.04400634765625,
-0.0294342041015625,
-0.059722900390625,
-0.0406494140625,
0.0280914306640625,
0.0157623291015625,
0.020660400390625,
0.099853515625,
0.0111541748046875,
0.0016832351684570312,
0.0386962890625,
-0.10650634765625,
0.057342529296875,
0.038421630859375,
0.02239990234375,
-0.032196044921875,
0.0145111083984375,
-0.00885009765625,
-0.006473541259765625,
0.00878143310546875,
0.03912353515625,
0.0277099609375,
-0.056793212890625,
-0.050384521484375,
-0.0330810546875,
-0.0256805419921875,
-0.036102294921875,
-0.0132598876953125,
-0.01192474365234375,
-0.0203094482421875,
0.0205230712890625,
-0.03753662109375,
0.0010652542114257812,
-0.0049285888671875,
-0.018157958984375,
0.01343536376953125,
0.006183624267578125,
-0.0123138427734375,
0.018829345703125,
-0.016998291015625,
0.024444580078125,
0.016693115234375,
-0.061492919921875,
0.052642822265625,
-0.02471923828125,
-0.00009733438491821289,
-0.0232086181640625,
0.0256805419921875,
-0.0248260498046875,
-0.004497528076171875,
-0.04949951171875,
-0.00823974609375,
-0.037811279296875,
0.0172882080078125,
-0.0170135498046875,
-0.01971435546875,
0.037872314453125,
-0.0099334716796875,
-0.04510498046875,
-0.057342529296875,
-0.032073974609375,
-0.0045623779296875,
-0.0293426513671875,
-0.03399658203125,
0.0035495758056640625,
-0.0271148681640625,
0.009613037109375,
0.0045928955078125,
0.00617218017578125,
-0.0479736328125,
-0.037445068359375,
-0.03570556640625,
-0.0207061767578125,
-0.036651611328125,
-0.051788330078125,
-0.059967041015625,
0.0207061767578125,
-0.005840301513671875,
-0.02423095703125,
-0.0621337890625,
-0.0266265869140625,
-0.003932952880859375,
0.044525146484375,
-0.0272216796875,
-0.018524169921875,
-0.055084228515625,
0.03863525390625,
0.0355224609375,
0.05108642578125,
0.01158905029296875,
0.01497650146484375,
0.021240234375,
0.050445556640625,
0.02899169921875,
0.04583740234375,
-0.006175994873046875,
-0.0311431884765625,
0.02972412109375,
0.03802490234375,
-0.0169830322265625,
-0.046356201171875,
0.031890869140625,
-0.036773681640625,
0.029510498046875,
-0.00333404541015625,
-0.012725830078125,
-0.0099639892578125,
-0.01458740234375,
-0.003448486328125,
0.0043487548828125,
0.0038604736328125,
-0.06884765625,
-0.06146240234375,
-0.018768310546875,
-0.04730224609375,
0.032440185546875,
-0.08734130859375,
0.0079345703125,
0.0026397705078125,
-0.007312774658203125,
0.01554107666015625,
-0.044769287109375,
-0.0173187255859375,
0.0083465576171875,
0.0308990478515625,
0.0048980712890625,
0.0243377685546875,
-0.046234130859375,
0.06817626953125,
-0.04949951171875,
-0.019775390625,
0.028228759765625,
0.0248260498046875,
0.0017900466918945312,
0.0269622802734375,
0.017547607421875,
-0.0066680908203125,
0.0310516357421875,
0.01045989990234375,
0.039398193359375,
0.0119781494140625,
0.0250701904296875,
-0.042022705078125,
0.04718017578125,
0.0076904296875,
0.0017137527465820312,
0.033935546875,
0.0252685546875,
-0.035308837890625,
-0.052001953125,
0.0008153915405273438,
0.005306243896484375,
0.02252197265625,
-0.005157470703125,
0.052337646484375,
-0.03900146484375,
-0.017333984375,
0.00971221923828125,
-0.042572021484375,
0.0206451416015625,
0.0247650146484375,
0.01067352294921875,
0.016021728515625,
0.01143646240234375,
-0.01361083984375,
-0.01146697998046875,
-0.006198883056640625
] |
cc8a1461464d8b18b3d4c3205eefbed9fe406650
|
Wordpress Stackexchange
Q: Selling WordPress sites? What are the laws concerning developing WordPress sites using other developers' plugins and then selling the sites?
A: Please read through the following:
*
*http://codex.wordpress.org/License
*http://wordpress.org/about/license/
*http://en.wikipedia.org/wiki/GPL
*http://www.gnu.org/licenses/gpl.html
You can't can sell it as software or development, although and/or you can also charge for maintanance and install.
Anyway, you should at least donate to the plugin developers, if you make money with their work somehow.
EDIT
I'm am sorry for my previous lines: I have to admit that GPL code can be sold, even if it's not your code, althought I still recommend donating.
|
Q: Selling WordPress sites? What are the laws concerning developing WordPress sites using other developers' plugins and then selling the sites?
A: Please read through the following:
*
*http://codex.wordpress.org/License
*http://wordpress.org/about/license/
*http://en.wikipedia.org/wiki/GPL
*http://www.gnu.org/licenses/gpl.html
You can't can sell it as software or development, although and/or you can also charge for maintanance and install.
Anyway, you should at least donate to the plugin developers, if you make money with their work somehow.
EDIT
I'm am sorry for my previous lines: I have to admit that GPL code can be sold, even if it's not your code, althought I still recommend donating.
A: Under GPL you CAN resell the software.
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. GPLv2 Section 1
The main restriction is if you do sell (or give away) you must:
1) allow others to resell your works
2) provide them with the original and modified source under GPL.
3) Don't claim ownership/copyright of the original code and clearly start where (if anywhere) you modified it
Note that although WordPress.org requires all plugins in the WordPress.org repo to be GPL that doesn't mean it's true for plugins found outside of WordPress.org. It is YOUR responsibility to know the license. The biggest example is a lot of themes will license there PHP template files as GPL but not the CSS, JS, or Image files. Also some plugins will be GPL compatible but not GPL
WordPress.com uses plugins made by others to enhance the site and make a profit. Nothing says you can't make money just that if you distribute the code at all you have to allow others to do the same. Part of CNN.com runs WordPress has made and modified code that will never see because they don't redistribute it. Because the plugin authors have redistribute their code that changes everything.
Really it also comes down to ethics. In most cases credit/donations are nice. I also think it depends if you block the end-user from the source or allow them to see that it's WordPress and which plugins are used or are trying to create a closed source system.
I'm not a lawyer I suggest that you talk to one before starting a business reselling GPL Code. My advice is purely from my own knowledge and understanding.
I also encourage you to read the links that @cadeyrn posted although they link to GPLv3 and WordPress is under GPLv2
|
wordpress
|
{
"language": "en",
"length": 416,
"provenance": "stackexchange_00019.jsonl.gz:408606",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14724"
}
|
[
0.019927978515625,
-0.00555419921875,
0.033905029296875,
0.042510986328125,
-0.0268707275390625,
-0.0091400146484375,
0.035430908203125,
-0.061004638671875,
-0.01438140869140625,
0.00299835205078125,
-0.0132293701171875,
0.0163421630859375,
-0.066650390625,
-0.0211029052734375,
-0.00125885009765625,
-0.044036865234375,
0.0174713134765625,
0.002796173095703125,
0.04376220703125,
0.0024738311767578125,
0.0044708251953125,
0.00717926025390625,
0.034332275390625,
-0.01137542724609375,
0.050537109375,
-0.0390625,
0.0626220703125,
-0.0252838134765625,
0.044281005859375,
-0.02252197265625,
0.03985595703125,
-0.01947021484375,
0.01192474365234375,
0.0038089752197265625,
-0.0178985595703125,
-0.0237274169921875,
-0.0029354095458984375,
-0.000659942626953125,
0.00827789306640625,
0.01284027099609375,
0.032257080078125,
-0.0230255126953125,
-0.03265380859375,
0.011749267578125,
-0.01849365234375,
-0.07080078125,
0.06634521484375,
-0.018463134765625,
-0.021240234375,
-0.00443267822265625,
0.0235748291015625,
-0.0150909423828125,
0.040496826171875,
-0.016143798828125,
-0.01064300537109375,
-0.016143798828125,
0.056243896484375,
-0.02508544921875,
0.021148681640625,
-0.042572021484375,
-0.043914794921875,
0.0166015625,
0.04779052734375,
0.02490234375,
0.02081298828125,
0.00937652587890625,
-0.036590576171875,
0.0289764404296875,
-0.01296234130859375,
0.0227508544921875,
0.01230621337890625,
-0.051300048828125,
-0.0011196136474609375,
-0.003963470458984375,
0.00846099853515625,
-0.0239715576171875,
0.032440185546875,
-0.0017728805541992188,
0.0030002593994140625,
0.027069091796875,
0.04229736328125,
-0.005496978759765625,
-0.01154327392578125,
0.007228851318359375,
0.007480621337890625,
0.029052734375,
0.0198822021484375,
-0.0275115966796875,
-0.034637451171875,
-0.01308441162109375,
-0.0135955810546875,
0.043609619140625,
-0.054718017578125,
0.0145263671875,
-0.00843048095703125,
-0.01519775390625,
0.05499267578125,
0.038421630859375,
0.0244140625,
-0.0102386474609375,
0.0020809173583984375,
-0.0572509765625,
-0.0025348663330078125,
-0.01236724853515625,
0.012786865234375,
0.0565185546875,
0.00820159912109375,
-0.04180908203125,
0.0003058910369873047,
0.0009851455688476562,
-0.00458526611328125,
-0.028350830078125,
0.0238037109375,
-0.017913818359375,
-0.007354736328125,
0.02508544921875,
0.014007568359375,
0.02618408203125,
-0.00119781494140625,
0.03826904296875,
-0.006366729736328125,
0.0180206298828125,
0.020050048828125,
-0.01849365234375,
-0.016632080078125,
-0.02532958984375,
-0.01448822021484375,
-0.04229736328125,
-0.0151214599609375,
0.0382080078125,
-0.0037136077880859375,
0.015228271484375,
0.01206207275390625,
-0.005199432373046875,
-0.045745849609375,
-0.0155487060546875,
0.015777587890625,
0.01253509521484375,
-0.011383056640625,
0.005222320556640625,
-0.01265716552734375,
-0.005687713623046875,
0.02294921875,
-0.042327880859375,
0.0858154296875,
0.0157470703125,
0.01007080078125,
0.03466796875,
0.038848876953125,
0.03326416015625,
0.039031982421875,
-0.003589630126953125,
0.005573272705078125,
-0.0013532638549804688,
0.07269287109375,
-0.0556640625,
0.0513916015625,
-0.0615234375,
0.053131103515625,
-0.0201873779296875,
-0.0199737548828125,
-0.003566741943359375,
0.033233642578125,
-0.0247650146484375,
-0.00868988037109375,
-0.00800323486328125,
-0.043914794921875,
0.0096282958984375,
0.01554107666015625,
-0.056182861328125,
0.046478271484375,
-0.047119140625,
0.03424072265625,
-0.0017557144165039062,
0.004436492919921875,
0.052032470703125,
0.033782958984375,
0.00255584716796875,
0.034637451171875,
0.0017185211181640625,
-0.026092529296875,
-0.01611328125,
0.0821533203125,
-0.04339599609375,
-0.061920166015625,
0.006549835205078125,
-0.008392333984375,
0.02398681640625,
0.054351806640625,
-0.01078033447265625,
0.056732177734375,
-0.0238037109375,
0.01464080810546875,
0.03662109375,
-0.01345062255859375,
-0.062469482421875,
0.01187896728515625,
0.00807952880859375,
-0.01461029052734375,
-0.0177764892578125,
-0.033447265625,
0.043212890625,
-0.0218048095703125,
0.0270843505859375,
-0.007293701171875,
0.01861572265625,
-0.01047515869140625,
0.02117919921875,
0.05029296875,
0.062042236328125,
-0.021514892578125,
0.00417327880859375,
-0.0145416259765625,
-0.01195526123046875,
-0.0218353271484375,
-0.0088348388671875,
0.0169525146484375,
0.07757568359375,
0.035491943359375,
0.00682830810546875,
0.06396484375,
-0.0218505859375,
0.0445556640625,
0.03009033203125,
-0.0026798248291015625,
0.0191650390625,
-0.01922607421875,
-0.00015246868133544922,
-0.02581787109375,
0.017730712890625,
-0.0160980224609375,
0.03204345703125,
-0.003879547119140625,
0.0104827880859375,
-0.03497314453125,
-0.037933349609375,
-0.0254364013671875,
-0.061676025390625,
0.03314208984375,
0.0595703125,
0.040740966796875,
0.0250396728515625,
-0.0205230712890625,
-0.0406494140625,
0.05938720703125,
-0.044342041015625,
0.007564544677734375,
-0.0196685791015625,
0.05316162109375,
0.0728759765625,
-0.0199737548828125,
-0.02789306640625,
0.01554107666015625,
-0.0264434814453125,
0.001804351806640625,
0.032867431640625,
-0.0394287109375,
-0.051177978515625,
0.050140380859375,
-0.031463623046875,
0.0149383544921875,
-0.039093017578125,
-0.01242828369140625,
-0.0194244384765625,
-0.04302978515625,
0.0236053466796875,
-0.00231170654296875,
0.0162506103515625,
-0.0005660057067871094,
-0.00016450881958007812,
0.0175018310546875,
-0.01447296142578125,
-0.0014362335205078125,
0.013153076171875,
0.01045989990234375,
0.017181396484375,
-0.0172882080078125,
-0.0085601806640625,
0.02008056640625,
0.009857177734375,
-0.00004112720489501953,
0.0007762908935546875,
-0.02581787109375,
0.0006213188171386719,
0.005817413330078125,
-0.0545654296875,
0.0164031982421875,
0.0148773193359375,
-0.009368896484375,
-0.0299072265625,
0.007709503173828125,
0.0082550048828125,
-0.021209716796875,
0.027862548828125,
0.01331329345703125,
-0.0289764404296875,
0.0285491943359375,
-0.027008056640625,
0.00848388671875,
-0.0242767333984375,
0.00504302978515625,
0.03936767578125,
0.014739990234375,
-0.020782470703125,
0.002925872802734375,
-0.0008897781372070312,
0.0205535888671875,
-0.0157623291015625,
-0.014434814453125,
0.046600341796875,
-0.1092529296875,
-0.0081024169921875,
0.01024627685546875,
0.046661376953125,
-0.0260162353515625,
-0.06500244140625,
-0.038665771484375,
0.01064300537109375,
-0.0645751953125,
-0.0162506103515625,
-0.01202392578125,
-0.04241943359375,
0.02301025390625,
0.0165863037109375,
-0.01461029052734375,
-0.0235595703125,
0.03662109375,
0.0240936279296875,
0.0099639892578125,
-0.046966552734375,
-0.068603515625,
-0.09014892578125,
-0.1009521484375,
-0.01076507568359375,
0.006320953369140625,
0.02899169921875,
0.00472259521484375,
0.005725860595703125,
0.0019445419311523438,
-0.061737060546875,
-0.00661468505859375,
0.083740234375,
0.0012578964233398438,
-0.0008835792541503906,
-0.006008148193359375,
-0.04791259765625,
-0.005878448486328125,
-0.00086212158203125,
0.036041259765625,
-0.00768280029296875,
-0.0012636184692382812,
0.006908416748046875,
0.0005526542663574219,
-0.01215362548828125,
0.01186370849609375,
-0.034149169921875,
-0.0068206787109375,
0.0181121826171875,
-0.037109375,
-0.034912109375,
-0.01025390625,
0.0132598876953125,
-0.0311126708984375,
0.0087127685546875,
0.0175323486328125,
-0.024139404296875,
0.00981903076171875,
-0.00978851318359375,
0.022979736328125,
0.0196075439453125,
-0.04351806640625,
-0.0186767578125,
0.03753662109375,
0.0277557373046875,
0.046783447265625,
0.005588531494140625,
0.0161590576171875,
-0.019561767578125,
-0.0036830902099609375,
-0.013336181640625,
0.0479736328125,
0.020172119140625,
0.009613037109375,
-0.027069091796875,
-0.00023305416107177734,
0.04937744140625,
0.033599853515625,
0.028106689453125,
-0.00806427001953125,
-0.049346923828125,
-0.009613037109375,
0.08282470703125,
-0.01470947265625,
-0.025390625,
0.0039043426513671875,
-0.0002636909484863281,
0.0167083740234375,
0.0416259765625,
-0.0033893585205078125,
-0.035003662109375,
-0.003841400146484375,
-0.006198883056640625,
-0.0131683349609375,
-0.01230621337890625,
0.0014972686767578125,
-0.007495880126953125,
0.015533447265625,
-0.033905029296875,
0.023162841796875,
0.00821685791015625,
0.0284271240234375,
-0.02142333984375,
0.026458740234375,
-0.0404052734375,
-0.0263214111328125,
-0.007511138916015625,
-0.0404052734375,
-0.0174407958984375,
0.01416015625,
0.04229736328125,
0.0101165771484375,
-0.01544189453125,
-0.02618408203125,
0.022125244140625,
-0.0282745361328125,
0.0181427001953125,
-0.0068817138671875,
0.0308685302734375,
-0.033447265625,
0.01503753662109375,
0.007114410400390625,
-0.025421142578125,
-0.0167083740234375,
-0.051727294921875,
-0.041259765625,
-0.022003173828125,
-0.0110626220703125,
0.036529541015625,
0.00934600830078125,
-0.00603485107421875,
-0.0078277587890625,
0.0098114013671875,
0.007183074951171875,
-0.01007843017578125,
-0.01580810546875,
-0.0020885467529296875,
0.0379638671875,
0.0193634033203125,
0.0234832763671875,
-0.0171051025390625,
-0.026641845703125,
0.03619384765625,
0.0692138671875,
0.0130615234375,
0.010833740234375,
-0.09149169921875,
0.0025310516357421875,
0.03399658203125,
-0.002033233642578125,
0.0367431640625,
0.028076171875,
-0.016204833984375,
0.036346435546875,
0.011627197265625,
-0.0095367431640625,
-0.001720428466796875,
0.01219940185546875,
0.00919342041015625,
-0.0125579833984375,
-0.00244140625,
0.00879669189453125,
0.0235137939453125,
0.010223388671875,
-0.000020265579223632812,
0.02581787109375,
-0.0140380859375,
-0.0173492431640625,
0.01180267333984375,
0.0012655258178710938,
0.015380859375,
-0.0216522216796875,
-0.01099395751953125,
0.031463623046875,
0.038818359375,
0.049346923828125,
-0.0134735107421875,
0.0352783203125,
0.031158447265625,
-0.0201873779296875,
-0.035247802734375,
-0.0171356201171875,
-0.0343017578125,
0.02069091796875,
-0.061798095703125,
-0.055206298828125,
-0.005580902099609375,
-0.0092315673828125,
0.048187255859375,
0.030242919921875,
-0.0253448486328125,
-0.005401611328125,
-0.0007262229919433594,
0.007282257080078125,
-0.007015228271484375,
0.004138946533203125,
0.0394287109375,
0.0020580291748046875,
-0.039794921875,
-0.02923583984375,
-0.02301025390625,
-0.01091766357421875,
-0.05682373046875,
-0.013519287109375,
-0.021240234375,
-0.00901031494140625,
0.004238128662109375,
0.06549072265625,
-0.0062255859375,
0.020782470703125,
-0.01239013671875,
0.10107421875,
0.07476806640625,
0.0170745849609375,
0.00925445556640625,
-0.0117340087890625,
-0.01525115966796875,
-0.0147552490234375,
-0.06298828125,
-0.00113677978515625,
0.02716064453125,
-0.00495147705078125,
0.0167694091796875,
0.0008158683776855469,
-0.01334381103515625,
0.0251922607421875,
-0.027587890625,
-0.011260986328125,
-0.03424072265625,
0.00036644935607910156,
0.002063751220703125,
0.01548004150390625,
0.0225982666015625,
-0.026641845703125,
0.036468505859375,
0.007091522216796875,
-0.00969696044921875,
-0.003093719482421875,
0.00470733642578125,
-0.007663726806640625,
-0.048095703125,
0.00334930419921875,
0.0283355712890625,
0.006092071533203125,
-0.0298309326171875,
-0.0076141357421875,
-0.046844482421875,
0.01934814453125,
-0.0262603759765625,
-0.004337310791015625,
0.034454345703125,
-0.0141143798828125,
0.0048980712890625,
-0.027618408203125,
0.00848388671875,
-0.0013246536254882812,
-0.0193939208984375,
0.09161376953125,
0.0474853515625,
-0.02294921875,
-0.024444580078125,
-0.033782958984375,
-0.018157958984375,
-0.01163482666015625,
-0.041168212890625,
-0.0285797119140625,
-0.0104217529296875,
0.019805908203125,
0.030670166015625,
-0.0303955078125,
-0.0557861328125,
0.0179901123046875,
-0.0007119178771972656,
0.00453948974609375,
0.02471923828125,
-0.0008220672607421875,
0.038421630859375,
0.0175628662109375,
0.044403076171875,
0.025054931640625,
0.005474090576171875,
-0.053985595703125,
-0.016754150390625,
0.008941650390625,
-0.016326904296875,
-0.039764404296875,
0.0027217864990234375,
-0.0192718505859375,
0.00432586669921875,
0.019287109375,
-0.00031495094299316406,
-0.005405426025390625,
-0.02838134765625,
0.004558563232421875,
-0.01947021484375,
0.0291748046875,
-0.0587158203125,
-0.04852294921875,
-0.01329803466796875,
-0.0364990234375,
0.00505828857421875,
-0.00893402099609375,
0.0016012191772460938,
0.0293121337890625,
-0.0325927734375,
0.01485443115234375,
0.030029296875,
-0.0025005340576171875,
-0.007541656494140625,
-0.0014095306396484375,
-0.00713348388671875,
0.025665283203125,
0.01264190673828125,
0.035552978515625,
0.05120849609375,
0.009521484375,
-0.0229034423828125,
-0.01410675048828125,
-0.02423095703125,
-0.023468017578125,
0.0017986297607421875,
-0.0203704833984375,
-0.0196685791015625,
0.00400543212890625,
0.0943603515625,
0.08447265625,
-0.11273193359375,
-0.0163726806640625,
0.02496337890625,
-0.02423095703125,
-0.02130126953125,
-0.021148681640625,
0.01537322998046875,
-0.029571533203125,
0.051513671875,
0.0232086181640625,
-0.01416015625,
0.01433563232421875,
-0.0159912109375,
-0.0181427001953125,
-0.026947021484375,
0.052703857421875,
0.027618408203125,
-0.0841064453125,
0.08013916015625,
0.06195068359375,
0.0169830322265625,
-0.01409912109375,
-0.0007576942443847656,
0.0158538818359375,
0.00972747802734375,
-0.010955810546875,
0.04193115234375,
-0.059051513671875,
0.0303192138671875,
-0.0232391357421875,
0.0118408203125,
0.044464111328125,
0.042144775390625,
-0.0179290771484375,
-0.0174102783203125,
0.0186920166015625,
0.07208251953125,
-0.01102447509765625,
-0.0142822265625,
0.027252197265625,
0.04229736328125,
-0.0343017578125,
0.0238189697265625,
-0.0169525146484375,
-0.0160675048828125,
-0.0115203857421875,
0.01172637939453125,
0.09600830078125,
-0.04248046875,
-0.0192413330078125,
0.0303192138671875,
0.0300445556640625,
-0.0094757080078125,
-0.03729248046875,
-0.0289154052734375,
-0.043212890625,
0.0131072998046875,
-0.042816162109375,
0.014984130859375,
0.0364990234375,
-0.049530029296875,
-0.031524658203125,
0.028778076171875,
0.0173187255859375,
-0.018768310546875,
0.00133514404296875,
0.0230560302734375,
-0.01300811767578125,
0.004253387451171875,
-0.00102996826171875,
0.0357666015625,
-0.01314544677734375,
-0.0257568359375,
-0.0232391357421875,
0.01033782958984375,
-0.023681640625,
0.0224761962890625,
0.054718017578125,
0.034576416015625,
-0.059326171875,
-0.00879669189453125,
0.0098876953125,
0.006229400634765625,
-0.01230621337890625,
0.06689453125,
-0.008331298828125,
0.009368896484375,
-0.00324249267578125,
-0.020660400390625,
0.038055419921875,
-0.0350341796875,
-0.04217529296875,
0.007793426513671875,
-0.00003719329833984375,
-0.026580810546875,
-0.0113067626953125,
-0.0010004043579101562,
-0.017181396484375,
-0.004009246826171875,
-0.01007843017578125,
0.07562255859375,
-0.0017566680908203125,
0.0011510848999023438,
-0.0323486328125,
0.0199432373046875,
0.038604736328125,
-0.01702880859375,
0.025421142578125,
-0.0273590087890625,
0.0177154541015625,
-0.004970550537109375,
0.0238800048828125,
0.025909423828125,
-0.00817108154296875,
0.015716552734375,
0.052764892578125,
-0.048675537109375,
0.0194854736328125,
0.048248291015625,
0.031341552734375,
-0.00885009765625,
-0.033355712890625,
0.058380126953125,
0.0457763671875,
-0.00865936279296875,
-0.031219482421875,
0.0089874267578125,
0.00980377197265625,
0.0085906982421875,
-0.0208587646484375,
0.022918701171875,
-0.03143310546875,
0.00806427001953125,
-0.031280517578125,
0.01224517822265625,
0.016998291015625,
-0.0093994140625,
-0.0081329345703125,
0.016326904296875,
0.0023174285888671875,
0.016387939453125,
-0.007740020751953125,
-0.039581298828125,
-0.005901336669921875,
0.032073974609375,
0.0213623046875,
0.013763427734375,
-0.0188751220703125,
-0.014892578125,
-0.01678466796875,
0.033905029296875,
0.01239776611328125,
0.016693115234375,
-0.0657958984375,
-0.0697021484375,
0.031494140625,
0.056976318359375,
-0.010772705078125,
-0.0009002685546875,
0.01029205322265625,
0.050262451171875,
0.01146697998046875,
-0.018280029296875,
0.031982421875,
0.0043792724609375,
0.0005192756652832031,
-0.03570556640625,
0.0240631103515625,
0.01439666748046875,
0.0021648406982421875,
0.00350189208984375,
0.0192718505859375,
0.0261688232421875,
-0.0172119140625,
0.047210693359375,
-0.0121002197265625,
-0.0137176513671875,
0.003993988037109375,
-0.004302978515625,
0.05413818359375,
0.002788543701171875,
-0.0226593017578125,
-0.0034961700439453125,
-0.0014753341674804688,
-0.004451751708984375,
0.0107574462890625,
0.02911376953125,
-0.01473236083984375,
0.041473388671875,
0.00838470458984375,
-0.0017290115356445312,
0.027191162109375,
0.004650115966796875,
-0.0199432373046875,
-0.01050567626953125,
0.0435791015625,
-0.0196990966796875,
-0.05108642578125,
-0.032073974609375,
-0.044342041015625,
0.059600830078125,
0.0308380126953125,
0.037353515625,
-0.0016851425170898438,
0.051483154296875,
-0.021270751953125,
-0.03387451171875,
0.0253753662109375,
-0.0192718505859375,
0.0169830322265625,
0.04937744140625,
0.0011358261108398438,
-0.0301971435546875,
-0.01261138916015625,
0.01491546630859375,
0.01165008544921875,
-0.0428466796875,
0.00399017333984375,
-0.0283050537109375,
0.01525115966796875,
0.0052337646484375,
0.0006580352783203125,
-0.01824951171875,
-0.0299835205078125,
0.0026836395263671875,
0.0179595947265625,
0.01995849609375,
0.03460693359375,
-0.01629638671875,
0.0212860107421875,
-0.0265045166015625,
-0.032440185546875,
0.0111846923828125,
-0.037078857421875,
-0.00762176513671875,
0.022705078125,
0.0172576904296875,
-0.08660888671875,
0.0124053955078125,
-0.004547119140625,
-0.050048828125,
0.0321044921875,
0.049224853515625,
0.0153350830078125,
-0.030029296875,
0.003582000732421875,
-0.01523590087890625,
-0.00913238525390625,
-0.058135986328125,
-0.0174102783203125,
0.0252838134765625,
0.0145416259765625,
-0.02142333984375,
-0.0034637451171875,
-0.0179290771484375,
-0.02081298828125,
0.006481170654296875,
0.0203857421875,
0.0041961669921875,
-0.006683349609375,
-0.0289459228515625,
0.0015306472778320312,
0.03173828125,
-0.001331329345703125,
-0.03851318359375,
0.028717041015625,
-0.0325927734375,
0.01214599609375,
-0.003963470458984375,
0.048370361328125,
-0.031097412109375,
-0.01531982421875,
-0.030517578125,
-0.031158447265625,
-0.018096923828125,
0.061798095703125,
0.0003631114959716797,
0.08056640625,
0.053680419921875,
-0.07025146484375,
0.01019287109375,
0.10107421875,
0.07843017578125,
0.1400146484375,
0.05072021484375,
-0.0137786865234375,
0.0243072509765625,
-0.045074462890625,
0.002590179443359375,
-0.066162109375,
-0.002155303955078125,
-0.0748291015625,
-0.032501220703125,
0.00594329833984375,
0.022705078125,
0.041534423828125,
-0.02166748046875,
-0.054229736328125,
0.022430419921875,
-0.006519317626953125,
-0.036407470703125,
0.014129638671875,
-0.0024852752685546875,
-0.007534027099609375,
-0.01395416259765625,
0.01058197021484375,
-0.0205841064453125,
-0.023223876953125,
-0.0035457611083984375,
-0.01461029052734375,
0.033782958984375,
-0.02728271484375,
0.0014925003051757812,
0.04266357421875,
0.05181884765625,
0.07196044921875,
-0.040130615234375,
-0.0039043426513671875,
0.03350830078125,
-0.01094818115234375,
0.0399169921875,
-0.006168365478515625,
-0.01708984375,
-0.00688934326171875,
-0.039031982421875,
0.01134490966796875,
-0.047943115234375,
0.0037555694580078125,
-0.021331787109375,
0.00244903564453125,
-0.01010894775390625,
-0.01177978515625,
0.0006327629089355469,
0.0207672119140625,
-0.0203857421875,
-0.030303955078125,
-0.01288604736328125,
0.00812530517578125,
-0.0614013671875,
-0.01617431640625,
0.012237548828125,
-0.03515625,
0.012603759765625,
0.0012350082397460938,
-0.049713134765625,
0.00650787353515625,
-0.036834716796875,
-0.0279388427734375,
-0.012451171875,
-0.01293182373046875,
0.09381103515625,
-0.048431396484375,
0.0024871826171875,
0.0296478271484375,
-0.00624847412109375,
0.04461669921875,
0.042236328125,
0.02740478515625,
0.0196990966796875,
-0.05810546875,
0.0206298828125,
0.00400543212890625,
0.034393310546875,
-0.055084228515625,
-0.03289794921875,
-0.019287109375,
0.047027587890625,
0.016754150390625,
0.06298828125,
-0.03997802734375,
0.0704345703125,
0.036651611328125,
0.003368377685546875,
1.1920928955078125e-7,
0.00887298583984375,
0.01023101806640625,
0.0248565673828125,
-0.0267181396484375,
-0.00917816162109375,
-0.0061492919921875,
-0.053619384765625,
0.0160675048828125,
0.02447509765625,
0.05084228515625,
-0.00994873046875,
0.0266571044921875,
-0.035858154296875,
0.02349853515625,
0.0101776123046875
] |
faf422ee78168d02225cd03b2cc005f0c75f59a9
|
Wordpress Stackexchange
Q: How does one reduce the number of stored revisions? How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
A: add to your wp-config.php file the following line:
// set max post revisions
define('WP_POST_REVISIONS', 5);
source: http://codex.wordpress.org/Editing_wp-config.php#Post_Revisions
|
Q: How does one reduce the number of stored revisions? How does one reduce the number of stored revision (e.g. 5 max) for post types that support revisions?
A: add to your wp-config.php file the following line:
// set max post revisions
define('WP_POST_REVISIONS', 5);
source: http://codex.wordpress.org/Editing_wp-config.php#Post_Revisions
A: Just use the plugin. Simpler than screwing around with it, and provides more control.
http://wordpress.org/extend/plugins/revision-control/
A: @Piet's answer is the best, but some sql code to remove all old revisions older than 28 days:
DELETE a,b,c FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID=c.post_id)
WHERE a.post_type='revision'
AND a.post_date < DATE_ADD(NOW(), INTERVAL -28 DAY);
SQL and PHP code (for diffrent WP_PREFIX than "wp_") iworks_revisions.zip
A: I'm not sure of an automatic way but there is always running the MySQL Query DELETE FROM wp_posts WHERE post_type = "revision" (source) I haven't done it but I'm sure it works. I'd look for a plugin by now there has to be something.
|
wordpress
|
{
"language": "en",
"length": 162,
"provenance": "stackexchange_00019.jsonl.gz:408607",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14727"
}
|
[
0.023193359375,
-0.0095367431640625,
-0.0162200927734375,
-0.00479888916015625,
0.005123138427734375,
-0.035858154296875,
0.0307769775390625,
-0.0208740234375,
0.0157623291015625,
-0.0107574462890625,
-0.032928466796875,
-0.0261383056640625,
-0.01258087158203125,
-0.03363037109375,
-0.00528717041015625,
-0.041778564453125,
0.0650634765625,
-0.057830810546875,
0.005786895751953125,
-0.005924224853515625,
0.0059814453125,
0.0290069580078125,
0.046905517578125,
0.09368896484375,
-0.0021915435791015625,
0.0282440185546875,
0.06646728515625,
-0.03717041015625,
-0.02679443359375,
-0.056793212890625,
0.01375579833984375,
0.03765869140625,
0.021575927734375,
-0.017669677734375,
0.032958984375,
0.0218963623046875,
0.0200653076171875,
-0.00673675537109375,
0.03375244140625,
-0.0179595947265625,
0.029266357421875,
-0.015838623046875,
0.0198974609375,
-0.0484619140625,
-0.006256103515625,
0.004833221435546875,
0.01445770263671875,
-0.0181884765625,
0.0295867919921875,
-0.052490234375,
-0.013702392578125,
0.0259246826171875,
0.02447509765625,
-0.07037353515625,
-0.035919189453125,
-0.02337646484375,
0.0307464599609375,
-0.0038928985595703125,
0.04010009765625,
-0.0296630859375,
-0.053558349609375,
0.0029506683349609375,
0.0193939208984375,
-0.00502777099609375,
-0.022918701171875,
0.007373809814453125,
0.045196533203125,
0.007030487060546875,
-0.06494140625,
-0.0294036865234375,
0.038238525390625,
-0.027374267578125,
0.0158843994140625,
-0.0164642333984375,
0.010101318359375,
-0.0015773773193359375,
-0.0103912353515625,
0.006114959716796875,
0.01849365234375,
0.01116943359375,
0.026397705078125,
-0.007328033447265625,
0.018035888671875,
-0.01837158203125,
0.007518768310546875,
-0.0025463104248046875,
-0.0101318359375,
-0.00791168212890625,
-0.03521728515625,
-0.0004470348358154297,
-0.0257415771484375,
-0.0189666748046875,
-0.044830322265625,
0.0102996826171875,
0.01015472412109375,
-0.032989501953125,
0.01788330078125,
-0.005725860595703125,
-0.000946044921875,
-0.0400390625,
0.0192718505859375,
-0.03118896484375,
-0.040740966796875,
0.0188446044921875,
0.0261077880859375,
0.0278167724609375,
-0.034637451171875,
-0.022613525390625,
0.05548095703125,
0.045257568359375,
0.0195465087890625,
0.02447509765625,
-0.00865936279296875,
-0.0352783203125,
-0.0190887451171875,
0.004268646240234375,
-0.0335693359375,
0.0419921875,
0.0236358642578125,
0.0122528076171875,
0.01380157470703125,
0.03741455078125,
-0.039581298828125,
-0.01331329345703125,
-0.0174407958984375,
-0.0275115966796875,
0.005672454833984375,
-0.01751708984375,
-0.00554656982421875,
0.0496826171875,
-0.03515625,
0.00197601318359375,
0.06842041015625,
0.0015039443969726562,
-0.01181793212890625,
-0.040374755859375,
0.018707275390625,
-0.0229034423828125,
-0.046173095703125,
0.062103271484375,
-0.0714111328125,
-0.0111083984375,
0.04644775390625,
-0.0830078125,
0.0168914794921875,
0.00882720947265625,
0.0216217041015625,
0.0237274169921875,
0.01122283935546875,
-0.0191650390625,
-0.00820159912109375,
0.02252197265625,
0.051513671875,
-0.01287078857421875,
-0.02764892578125,
-0.045257568359375,
0.012847900390625,
-0.041961669921875,
-0.01062774658203125,
-0.05169677734375,
0.0004353523254394531,
-0.0196075439453125,
0.0253753662109375,
0.0032672882080078125,
-0.055877685546875,
0.056976318359375,
-0.0245208740234375,
-0.01947021484375,
0.026092529296875,
0.007190704345703125,
0.0288848876953125,
-0.0309600830078125,
0.01282501220703125,
-0.0036411285400390625,
-0.0206451416015625,
0.01024627685546875,
-0.01346588134765625,
-0.0198211669921875,
0.0009388923645019531,
0.0531005859375,
0.023223876953125,
-0.0243682861328125,
-0.030853271484375,
0.0345458984375,
-0.03558349609375,
0.014251708984375,
-0.003269195556640625,
0.042938232421875,
0.034088134765625,
0.020111083984375,
0.005672454833984375,
-0.00885772705078125,
0.00223541259765625,
-0.036102294921875,
0.000591278076171875,
-0.00785064697265625,
-0.003543853759765625,
-0.003215789794921875,
-0.001132965087890625,
0.019287109375,
-0.021453857421875,
-0.01483917236328125,
-0.00951385498046875,
0.001194000244140625,
-0.0634765625,
0.006175994873046875,
-0.027099609375,
0.0276641845703125,
-0.00737762451171875,
0.034454345703125,
0.0267791748046875,
0.0258026123046875,
-0.0219879150390625,
-0.02154541015625,
-0.002269744873046875,
0.0122528076171875,
-0.01445770263671875,
0.00832366943359375,
0.0029277801513671875,
-0.0201263427734375,
-0.00494384765625,
-0.0121002197265625,
-0.016326904296875,
0.0105743408203125,
0.050811767578125,
-0.0345458984375,
-0.0003914833068847656,
-0.043853759765625,
0.035797119140625,
-0.0105133056640625,
-0.046417236328125,
0.04412841796875,
0.016082763671875,
0.01508331298828125,
0.00977325439453125,
-0.008331298828125,
0.0029468536376953125,
-0.105224609375,
0.01224517822265625,
0.06365966796875,
0.032440185546875,
0.0204315185546875,
-0.0159454345703125,
-0.010345458984375,
0.0149993896484375,
-0.050750732421875,
0.005588531494140625,
-0.0159454345703125,
-0.01092529296875,
0.0095672607421875,
0.0186004638671875,
-0.005222320556640625,
0.02685546875,
-0.039459228515625,
0.017181396484375,
0.032379150390625,
-0.02252197265625,
0.023529052734375,
0.0017547607421875,
-0.032867431640625,
0.0129241943359375,
-0.047637939453125,
-0.016265869140625,
-0.0254669189453125,
0.0066375732421875,
0.06512451171875,
0.04608154296875,
0.04888916015625,
-0.0309906005859375,
0.04620361328125,
0.0020694732666015625,
-0.0279693603515625,
0.0019683837890625,
-0.054412841796875,
-0.040435791015625,
0.0026226043701171875,
-0.040679931640625,
0.05682373046875,
0.016632080078125,
-0.051239013671875,
-0.0198974609375,
-0.0023174285888671875,
0.022491455078125,
-0.00925445556640625,
-0.00382232666015625,
-0.041839599609375,
0.04052734375,
-0.01062774658203125,
-0.0374755859375,
-0.027008056640625,
0.01221466064453125,
0.01025390625,
-0.0287628173828125,
0.005214691162109375,
-0.01129150390625,
-0.0120697021484375,
-0.0043487548828125,
-0.07061767578125,
0.05010986328125,
-0.03936767578125,
0.07220458984375,
0.0882568359375,
0.01385498046875,
0.0146942138671875,
0.0035686492919921875,
0.01788330078125,
0.00997161865234375,
0.006771087646484375,
-0.01557159423828125,
-0.034149169921875,
-0.05548095703125,
-0.0256805419921875,
0.0128021240234375,
-0.004695892333984375,
0.012237548828125,
-0.0223541259765625,
-0.00470733642578125,
0.00537872314453125,
-0.0266571044921875,
-0.0110321044921875,
-0.004863739013671875,
-0.035552978515625,
-0.0163116455078125,
0.008758544921875,
-0.01476287841796875,
-0.01262664794921875,
0.031402587890625,
0.00521087646484375,
0.054656982421875,
-0.0224609375,
-0.03619384765625,
-0.0198516845703125,
-0.069091796875,
-0.041717529296875,
0.00711822509765625,
0.0029926300048828125,
0.01001739501953125,
0.1053466796875,
0.00894927978515625,
-0.072509765625,
-0.02178955078125,
-0.049163818359375,
-0.037689208984375,
0.01526641845703125,
0.029022216796875,
-0.020263671875,
-0.006072998046875,
0.013641357421875,
-0.017059326171875,
0.012451171875,
-0.0129852294921875,
-0.037628173828125,
0.002460479736328125,
-0.0230865478515625,
0.0125579833984375,
0.03680419921875,
-0.0270843505859375,
-0.004058837890625,
0.04315185546875,
-0.03497314453125,
-0.03399658203125,
-0.00047898292541503906,
-0.03594970703125,
-0.0174560546875,
0.0087432861328125,
-0.0096435546875,
-0.037628173828125,
0.03436279296875,
0.041412353515625,
0.00616455078125,
0.06036376953125,
0.00763702392578125,
0.01617431640625,
-0.0003390312194824219,
0.005054473876953125,
-0.0850830078125,
0.0352783203125,
-0.00457763671875,
-0.00016069412231445312,
0.017852783203125,
0.022735595703125,
0.00682830810546875,
-0.0160675048828125,
-0.0389404296875,
-0.04693603515625,
0.0265045166015625,
-0.050323486328125,
0.0238189697265625,
-0.057342529296875,
-0.0093841552734375,
-0.047698974609375,
0.072509765625,
-0.03826904296875,
-0.0230865478515625,
-0.051239013671875,
0.0132598876953125,
0.0168914794921875,
-0.0670166015625,
0.0256805419921875,
-0.024566650390625,
-0.041229248046875,
0.02301025390625,
-0.0034637451171875,
-0.0299835205078125,
-0.019134521484375,
-0.022216796875,
-0.036346435546875,
-0.0257568359375,
0.045379638671875,
-0.03558349609375,
0.0272369384765625,
-0.0010480880737304688,
0.033233642578125,
-0.02947998046875,
-0.0274658203125,
-0.023529052734375,
-0.09808349609375,
-0.0137786865234375,
-0.011016845703125,
0.06976318359375,
0.01535797119140625,
-0.04583740234375,
0.0023746490478515625,
0.055328369140625,
0.0193634033203125,
0.03521728515625,
-0.005794525146484375,
0.00881195068359375,
-0.00928497314453125,
-0.029052734375,
0.01165008544921875,
-0.035186767578125,
-0.0282135009765625,
-0.0386962890625,
0.01129913330078125,
0.0102081298828125,
-0.03216552734375,
-0.011962890625,
-0.0305938720703125,
0.01220703125,
-0.07928466796875,
-0.0244598388671875,
-0.0224151611328125,
0.010986328125,
-0.0177764892578125,
-0.004360198974609375,
-0.030975341796875,
-0.07745361328125,
0.0164031982421875,
0.039886474609375,
-0.012664794921875,
0.0196990966796875,
0.0584716796875,
0.00978851318359375,
-0.0245361328125,
-0.08575439453125,
-0.0046844482421875,
0.002964019775390625,
0.01331329345703125,
0.046875,
0.004150390625,
0.007732391357421875,
0.018890380859375,
-0.02752685546875,
-0.0439453125,
-0.0165557861328125,
0.0290679931640625,
0.0038299560546875,
-0.0079803466796875,
-0.012939453125,
-0.048614501953125,
0.08013916015625,
0.01047515869140625,
0.01201629638671875,
-0.036834716796875,
0.01244354248046875,
0.058502197265625,
-0.021514892578125,
0.0227508544921875,
-0.019287109375,
-0.0367431640625,
0.019500732421875,
-0.0273895263671875,
0.03741455078125,
0.027618408203125,
-0.0036373138427734375,
0.032958984375,
0.01343536376953125,
0.0258941650390625,
0.0078277587890625,
0.016357421875,
-0.037506103515625,
0.0261993408203125,
0.041961669921875,
0.0008072853088378906,
0.01020050048828125,
-0.0059356689453125,
-0.02532958984375,
-0.0099639892578125,
-0.042572021484375,
-0.005115509033203125,
0.0113983154296875,
0.0222320556640625,
0.0032444000244140625,
0.0083770751953125,
0.03533935546875,
-0.0254364013671875,
-0.00150299072265625,
-0.0024471282958984375,
-0.036712646484375,
-0.0010833740234375,
-0.037322998046875,
0.033966064453125,
-0.00563812255859375,
-0.0067901611328125,
0.034454345703125,
0.0208587646484375,
0.00616455078125,
0.00565338134765625,
-0.017425537109375,
0.0791015625,
0.07415771484375,
-0.0217437744140625,
0.01084136962890625,
0.03839111328125,
0.005859375,
-0.07183837890625,
-0.010467529296875,
-0.015838623046875,
-0.052459716796875,
0.004993438720703125,
0.0017290115356445312,
0.0024585723876953125,
0.041961669921875,
0.0219573974609375,
0.032379150390625,
0.00014519691467285156,
0.001445770263671875,
-0.025390625,
-0.044525146484375,
-0.004695892333984375,
0.0211181640625,
0.01349639892578125,
-0.032562255859375,
0.01422882080078125,
-0.031494140625,
-0.00734710693359375,
-0.00958251953125,
-0.015411376953125,
-0.025299072265625,
-0.0184173583984375,
-0.001018524169921875,
-0.03790283203125,
-0.01032257080078125,
-0.00572967529296875,
-0.01363372802734375,
-0.0298614501953125,
0.01523590087890625,
-0.0097808837890625,
0.0014133453369140625,
-0.01251220703125,
-0.0169525146484375,
0.00910186767578125,
0.0036792755126953125,
-0.0146331787109375,
0.033660888671875,
-0.0222320556640625,
-0.042633056640625,
0.007144927978515625,
-0.03863525390625,
-0.040252685546875,
-0.0340576171875,
0.0204925537109375,
-0.0013599395751953125,
-0.00864410400390625,
-0.01514434814453125,
0.01629638671875,
0.0017271041870117188,
0.017059326171875,
-0.039215087890625,
-0.01197052001953125,
0.01056671142578125,
0.0275115966796875,
-0.00782012939453125,
-0.022064208984375,
0.022308349609375,
-0.00829315185546875,
0.01568603515625,
-0.01142120361328125,
0.00415802001953125,
0.0328369140625,
-0.0256500244140625,
0.037445068359375,
-0.01558685302734375,
-0.071044921875,
-0.01409912109375,
-0.040374755859375,
-0.018798828125,
-0.006885528564453125,
-0.027435302734375,
0.0193023681640625,
-0.020965576171875,
0.01461029052734375,
-0.020904541015625,
0.01363372802734375,
-0.040618896484375,
-0.00682830810546875,
0.0302581787109375,
0.00440216064453125,
0.011199951171875,
-0.0089874267578125,
-0.0231170654296875,
0.0173797607421875,
0.0197906494140625,
0.01360321044921875,
-0.032867431640625,
0.012298583984375,
-0.01556396484375,
0.01351165771484375,
0.0192413330078125,
0.0465087890625,
0.006366729736328125,
0.053466796875,
0.0245513916015625,
0.00772857666015625,
-0.01110076904296875,
-0.01462554931640625,
0.046722412109375,
0.0028285980224609375,
-0.01030731201171875,
0.035919189453125,
-0.0179901123046875,
0.01244354248046875,
0.052093505859375,
0.053863525390625,
-0.10321044921875,
0.042572021484375,
0.02923583984375,
0.0234375,
0.044189453125,
0.0172119140625,
-0.00624847412109375,
-0.0236358642578125,
-0.01739501953125,
-0.042999267578125,
-0.0285186767578125,
-0.030731201171875,
-0.007640838623046875,
-0.01323699951171875,
-0.026702880859375,
0.00926971435546875,
0.0224761962890625,
0.021026611328125,
0.031707763671875,
-0.01094818115234375,
0.034088134765625,
-0.014404296875,
0.026611328125,
0.0267791748046875,
-0.032958984375,
-0.09222412109375,
-0.0023479461669921875,
0.0102996826171875,
-0.04620361328125,
0.0216522216796875,
-0.016265869140625,
0.018524169921875,
0.054931640625,
-0.018768310546875,
0.01482391357421875,
0.0219879150390625,
-0.0236358642578125,
-0.07147216796875,
-0.04180908203125,
0.019317626953125,
0.011016845703125,
-0.0479736328125,
0.0325927734375,
-0.04083251953125,
-0.04437255859375,
-0.005207061767578125,
-0.0020389556884765625,
0.094482421875,
-0.01788330078125,
-0.033843994140625,
0.024200439453125,
-0.01374053955078125,
-0.016632080078125,
-0.013214111328125,
0.004314422607421875,
-0.04718017578125,
-0.031829833984375,
-0.0203094482421875,
-0.052978515625,
0.0068359375,
-0.033233642578125,
-0.044403076171875,
0.1348876953125,
-0.02349853515625,
0.0187530517578125,
0.037109375,
0.0552978515625,
-0.027984619140625,
0.0440673828125,
-0.02984619140625,
0.03533935546875,
-0.035186767578125,
0.01525115966796875,
-0.0177001953125,
0.023101806640625,
-0.007720947265625,
-0.00890350341796875,
0.088134765625,
0.0142974853515625,
-0.0377197265625,
0.0031070709228515625,
0.09942626953125,
0.040618896484375,
0.001476287841796875,
0.04998779296875,
-0.0161285400390625,
0.0248565673828125,
0.0594482421875,
-0.047821044921875,
0.0298004150390625,
0.0118865966796875,
-0.01412200927734375,
0.004787445068359375,
0.00933074951171875,
0.0016069412231445312,
-0.004802703857421875,
0.00872039794921875,
-0.0285491943359375,
0.00047516822814941406,
0.0216827392578125,
0.00136566162109375,
0.01415252685546875,
0.0489501953125,
0.044769287109375,
-0.002201080322265625,
-0.0214996337890625,
-0.0192413330078125,
0.03875732421875,
0.0099334716796875,
-0.007701873779296875,
0.05682373046875,
0.0000015497207641601562,
0.07904052734375,
0.00685882568359375,
-0.00896453857421875,
-0.01568603515625,
0.055694580078125,
0.036773681640625,
0.0279083251953125,
0.0286712646484375,
-0.0100555419921875,
0.018585205078125,
0.022430419921875,
0.03839111328125,
-0.03887939453125,
-0.02862548828125,
0.0225372314453125,
0.030242919921875,
-0.00931549072265625,
-0.0143585205078125,
-0.007251739501953125,
-0.0257110595703125,
0.034423828125,
-0.0030727386474609375,
-0.0215606689453125,
0.032257080078125,
0.01413726806640625,
0.0245208740234375,
0.024078369140625,
-0.016143798828125,
-0.016326904296875,
-0.0208740234375,
-0.0158843994140625,
-0.0008587837219238281,
0.009124755859375,
0.04400634765625,
-0.0035343170166015625,
0.04071044921875,
0.00147247314453125,
0.02691650390625,
0.025054931640625,
0.01142120361328125,
-0.042327880859375,
-0.0213623046875,
-0.07501220703125,
0.01259613037109375,
0.0295562744140625,
0.032623291015625,
-0.0182342529296875,
0.0816650390625,
0.058837890625,
-0.07635498046875,
-0.0226593017578125,
0.0150146484375,
-0.022247314453125,
0.0231781005859375,
-0.00896453857421875,
0.01055145263671875,
0.004169464111328125,
-0.0063018798828125,
-0.03240966796875,
0.03302001953125,
0.0310211181640625,
0.0163726806640625,
0.0176239013671875,
0.0205078125,
0.0003352165222167969,
-0.019744873046875,
0.00386810302734375,
-0.031494140625,
0.04217529296875,
-0.05633544921875,
-0.007534027099609375,
0.0026416778564453125,
-0.022613525390625,
0.0159454345703125,
0.016845703125,
-0.05902099609375,
0.06732177734375,
0.007068634033203125,
0.00438690185546875,
0.00617218017578125,
-0.01079559326171875,
0.01293182373046875,
-0.00965118408203125,
0.0162353515625,
-0.003864288330078125,
-0.08941650390625,
-0.05133056640625,
-0.057861328125,
0.031463623046875,
-0.003650665283203125,
0.0401611328125,
0.012847900390625,
0.01641845703125,
-0.0035610198974609375,
-0.0034084320068359375,
-0.006229400634765625,
0.015899658203125,
-0.013763427734375,
0.0012903213500976562,
-0.008941650390625,
-0.0037364959716796875,
-0.0299835205078125,
0.02203369140625,
0.031829833984375,
-0.01187896728515625,
0.038909912109375,
-0.03436279296875,
0.0136566162109375,
-0.037933349609375,
-0.026580810546875,
-0.03411865234375,
0.00533294677734375,
-0.0019626617431640625,
-0.01751708984375,
0.024658203125,
-0.0306854248046875,
-0.02685546875,
0.0009336471557617188,
0.019256591796875,
-0.052032470703125,
0.0163726806640625,
-0.0194244384765625,
0.0149078369140625,
0.0308685302734375,
0.032684326171875,
0.03765869140625,
0.0033702850341796875,
-0.021453857421875,
0.0231475830078125,
0.01505279541015625,
-0.0382080078125,
0.02264404296875,
-0.056549072265625,
-0.014373779296875,
0.0204925537109375,
0.0186004638671875,
-0.0224609375,
0.0009274482727050781,
-0.0011692047119140625,
-0.01320648193359375,
-0.0033283233642578125,
0.033599853515625,
-0.00952911376953125,
0.0003635883331298828,
-0.031219482421875,
-0.0079345703125,
-0.014801025390625,
-0.062744140625,
-0.0284271240234375,
0.007843017578125,
0.005100250244140625,
0.016693115234375,
-0.055694580078125,
0.06884765625,
-0.0119781494140625,
-0.007709503173828125,
-0.003326416015625,
-0.04278564453125,
-0.00634765625,
0.0193023681640625,
0.000637054443359375,
-0.038238525390625,
-0.05535888671875,
0.03973388671875,
-0.0399169921875,
0.00952911376953125,
0.0285797119140625,
-0.0276336669921875,
-0.0288848876953125,
0.0036163330078125,
0.01263427734375,
0.040313720703125,
0.0152435302734375,
0.0007004737854003906,
0.033782958984375,
-0.0037517547607421875,
-0.02935791015625,
-0.09765625,
-0.01119232177734375,
-0.06390380859375,
0.0181121826171875,
-0.032012939453125,
0.00794219970703125,
0.00986480712890625,
-0.03900146484375,
-0.0589599609375,
0.049346923828125,
-0.023590087890625,
-0.0222015380859375,
-0.02069091796875,
-0.01486968994140625,
-0.0206756591796875,
0.053466796875,
0.01424407958984375,
-0.012451171875,
-0.0239410400390625,
0.00994873046875,
0.006259918212890625,
0.0262603759765625,
0.0069732666015625,
0.005199432373046875,
-0.0160064697265625,
0.01428985595703125,
0.001110076904296875,
-0.022369384765625,
0.014312744140625,
0.017242431640625,
0.015899658203125,
0.045654296875,
-0.0213470458984375,
0.002193450927734375,
-0.0132293701171875,
-0.03277587890625,
0.01514434814453125,
0.01529693603515625,
-0.059814453125,
-0.04278564453125,
0.036773681640625,
0.056396484375,
0.02215576171875,
-0.0018510818481445312,
0.043426513671875,
0.026885986328125,
-0.0220184326171875,
0.0176544189453125,
0.01509857177734375,
-0.032012939453125,
-0.0215911865234375,
0.0253448486328125,
-0.0009164810180664062,
-0.0253448486328125,
-0.027984619140625,
-0.0189056396484375,
-0.0226593017578125,
-0.03289794921875,
0.008636474609375,
-0.017913818359375,
0.0631103515625,
-0.042022705078125,
-0.00637054443359375,
-0.0174560546875,
-0.003131866455078125,
-0.026153564453125,
-0.0357666015625,
0.0285797119140625,
0.023834228515625,
-0.007354736328125,
-0.018524169921875,
0.04559326171875,
0.001407623291015625,
0.0279541015625,
-0.0584716796875,
-0.037689208984375,
-0.0119781494140625,
-0.00543212890625,
0.007579803466796875,
-0.01232147216796875,
0.010650634765625,
-0.0147857666015625,
-0.01105499267578125,
0.03619384765625,
-0.0390625,
0.06842041015625,
-0.0016317367553710938,
0.006031036376953125,
-0.08184814453125,
0.039703369140625,
-0.01263427734375,
-0.0266876220703125,
0.0178680419921875,
0.0056610107421875,
0.061004638671875,
-0.034088134765625,
0.04833984375,
0.01678466796875,
0.0221099853515625,
0.0283660888671875
] |
c5e23a24299256a3008620fd83182eabe69b288a
|
Wordpress Stackexchange
Q: Extending xml rpc - best practice I need to add custom methods to the Xml-Rpc file and have found the following:
// Custom plugins
add_filter('xmlrpc_methods', 'custom_xmlrpc_methods');
function custom_xmlrpc_methods($methods)
{
$methods['myMethod'] = 'my_function';
return $methods;
}
Questions:
*
*
Is it possible to have the callback function in another file and if yes then how do you do that in the code?
*If I have lots of custom methods what is the best approach to handling this?
Thanks
Michael
A:
If I have lots of custom methods what
is the best approach to handling this?
Instead of filtering xmlrpc_methods, you could extend the wp_xmlrpc_server class and set your class as default with the filter wp_xmlrpc_server_class.
// Webeo_XMLRPC.php
include_once(ABSPATH . WPINC . '/class-IXR.php');
include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
class Webeo_XMLRPC extends wp_xmlrpc_server {
public function __construct() {
parent::__construct();
$methods = array(
'webeo.getPost' => 'this:webeo_getPost',
'webeo.getPosts' => 'this:webeo_getPosts'
);
$this->methods = array_merge($this->methods, $methods);
}
public static function webeo_getName() {
return __CLASS__;
}
public function sayHello($args) {
return 'Hello Commander!';
}
public function webeo_getPost($args) {
// do the magic
}
public function webeo_getPosts($args) {
// do the magic
}
}
add_filter('wp_xmlrpc_server_class', array('Webeo_XMLRPC', 'webeo_getName'));
|
Q: Extending xml rpc - best practice I need to add custom methods to the Xml-Rpc file and have found the following:
// Custom plugins
add_filter('xmlrpc_methods', 'custom_xmlrpc_methods');
function custom_xmlrpc_methods($methods)
{
$methods['myMethod'] = 'my_function';
return $methods;
}
Questions:
*
*
Is it possible to have the callback function in another file and if yes then how do you do that in the code?
*If I have lots of custom methods what is the best approach to handling this?
Thanks
Michael
A:
If I have lots of custom methods what
is the best approach to handling this?
Instead of filtering xmlrpc_methods, you could extend the wp_xmlrpc_server class and set your class as default with the filter wp_xmlrpc_server_class.
// Webeo_XMLRPC.php
include_once(ABSPATH . WPINC . '/class-IXR.php');
include_once(ABSPATH . WPINC . '/class-wp-xmlrpc-server.php');
class Webeo_XMLRPC extends wp_xmlrpc_server {
public function __construct() {
parent::__construct();
$methods = array(
'webeo.getPost' => 'this:webeo_getPost',
'webeo.getPosts' => 'this:webeo_getPosts'
);
$this->methods = array_merge($this->methods, $methods);
}
public static function webeo_getName() {
return __CLASS__;
}
public function sayHello($args) {
return 'Hello Commander!';
}
public function webeo_getPost($args) {
// do the magic
}
public function webeo_getPosts($args) {
// do the magic
}
}
add_filter('wp_xmlrpc_server_class', array('Webeo_XMLRPC', 'webeo_getName'));
A: This doesn't realyl have much to do with WordPress, just generic PHP and your personal preferences in coding.
Is it possible to have the callback function in another file and if yes then how do you do that in the code?
As with any PHP code you can split it between files and load them with include.
If I have lots of custom methods what is the best approach to handling this?
As for me (if you are not using classes) single file with all functions organized in some way (for example by purpose ot alphabet) will do.
A: If you are looking to use other existing WordPress functions that aren't included in their XML-RPC, try using the plugin Extend XML-RPC API.
This plugin was made to make WordPress easier to integrate with external platforms and external code. While the existing WordPress XML-RPC API provides a lot of functionality, it does not provide everything. This plugin allows nearly every standard WordPress function to be called via API.
Otherwise, download that plugin and use the code as an example...it should be plenty for you to understand how to add your own plugins to the XML-RPC.
|
wordpress
|
{
"language": "en",
"length": 385,
"provenance": "stackexchange_00019.jsonl.gz:408616",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14759"
}
|
[
0.0311279296875,
-0.0191497802734375,
0.014892578125,
-0.0152130126953125,
0.00664520263671875,
-0.0164031982421875,
0.046905517578125,
-0.0163421630859375,
-0.042755126953125,
0.01922607421875,
-0.0021953582763671875,
0.00010728836059570312,
-0.0159912109375,
-0.0267181396484375,
0.01267242431640625,
-0.04278564453125,
0.03106689453125,
0.016387939453125,
0.043792724609375,
-0.0270843505859375,
0.0226898193359375,
-0.01861572265625,
0.037445068359375,
0.033538818359375,
-0.0179443359375,
-0.01568603515625,
0.09564208984375,
0.0022068023681640625,
-0.00856781005859375,
-0.02276611328125,
0.004291534423828125,
-0.016571044921875,
0.0360107421875,
0.0285186767578125,
-0.0638427734375,
-0.01004791259765625,
-0.017669677734375,
0.0056304931640625,
-0.039093017578125,
0.04876708984375,
-0.01085662841796875,
-0.0007023811340332031,
-0.03350830078125,
0.0165557861328125,
-0.06402587890625,
0.00859832763671875,
-0.0299224853515625,
0.030181884765625,
0.0137481689453125,
0.05804443359375,
-0.0042877197265625,
-0.003879547119140625,
-0.005157470703125,
-0.0162506103515625,
0.004825592041015625,
-0.0239105224609375,
-0.039581298828125,
-0.0010995864868164062,
0.0350341796875,
0.01702880859375,
-0.01245880126953125,
-0.032684326171875,
0.0110321044921875,
-0.034820556640625,
-0.01837158203125,
-0.0010538101196289062,
0.043426513671875,
0.007965087890625,
-0.0229949951171875,
-0.043182373046875,
0.0160980224609375,
0.00949859619140625,
0.005474090576171875,
-0.0010623931884765625,
-0.0179595947265625,
-0.025390625,
0.026702880859375,
-0.023193359375,
0.0021038055419921875,
0.02801513671875,
0.026611328125,
0.00662994384765625,
-0.03326416015625,
0.0170135498046875,
-0.0158538818359375,
0.0142364501953125,
-0.00738525390625,
-0.024658203125,
0.00013697147369384766,
-0.0472412109375,
0.0004055500030517578,
-0.02081298828125,
-0.025146484375,
-0.0011930465698242188,
-0.00502777099609375,
-0.0494384765625,
-0.0016756057739257812,
0.041839599609375,
-0.0300445556640625,
0.0130767822265625,
0.0457763671875,
-0.05322265625,
0.05511474609375,
-0.0411376953125,
0.004596710205078125,
0.0731201171875,
0.023468017578125,
0.053497314453125,
0.04034423828125,
0.01235198974609375,
0.03167724609375,
0.01934814453125,
0.05242919921875,
-0.004924774169921875,
0.0015392303466796875,
-0.0085906982421875,
0.017822265625,
0.0159454345703125,
0.00492095947265625,
-0.00496673583984375,
0.02447509765625,
0.0287933349609375,
-0.02471923828125,
-0.03338623046875,
0.0037326812744140625,
-0.0203857421875,
-0.0249481201171875,
0.017333984375,
0.050689697265625,
0.03668212890625,
-0.0225067138671875,
-0.01453399658203125,
0.00334930419921875,
0.002788543701171875,
-0.0038890838623046875,
-0.0301971435546875,
0.0474853515625,
-0.0439453125,
-0.001735687255859375,
-0.0007376670837402344,
0.0537109375,
-0.0176544189453125,
-0.041046142578125,
0.0411376953125,
0.019989013671875,
-0.0216522216796875,
0.0178375244140625,
0.02276611328125,
0.01995849609375,
0.0253753662109375,
-0.0184478759765625,
0.018157958984375,
-0.006931304931640625,
0.017303466796875,
0.03619384765625,
-0.0205535888671875,
-0.00807952880859375,
-0.022247314453125,
0.045013427734375,
-0.007175445556640625,
-0.0125732421875,
-0.02337646484375,
-0.02508544921875,
-0.004364013671875,
-0.045745849609375,
0.03570556640625,
0.039398193359375,
-0.0015716552734375,
0.006961822509765625,
0.07598876953125,
-0.0097503662109375,
0.008880615234375,
-0.0224456787109375,
0.00360870361328125,
-0.0095672607421875,
-0.01441192626953125,
-0.01374053955078125,
0.007236480712890625,
0.033233642578125,
-0.014739990234375,
-0.028839111328125,
-0.03570556640625,
0.07366943359375,
-0.0224151611328125,
-0.08001708984375,
0.0289764404296875,
0.0270843505859375,
0.08782958984375,
0.0072784423828125,
0.01299285888671875,
0.06317138671875,
0.006443023681640625,
-0.031402587890625,
-0.0090179443359375,
-0.006198883056640625,
-0.013031005859375,
-0.00476837158203125,
0.0009217262268066406,
-0.0045318603515625,
0.0262451171875,
-0.024566650390625,
-0.0030059814453125,
0.00815582275390625,
0.05047607421875,
0.00701141357421875,
-0.0006756782531738281,
-0.0159454345703125,
0.011322021484375,
-0.0008230209350585938,
0.024383544921875,
0.021209716796875,
0.00824737548828125,
-0.02728271484375,
-0.004974365234375,
-0.016357421875,
-0.0182037353515625,
-0.0179901123046875,
0.038055419921875,
-0.003387451171875,
-0.01082611083984375,
0.0158233642578125,
-0.047698974609375,
0.00875091552734375,
0.0233001708984375,
0.00740814208984375,
0.004611968994140625,
-0.003875732421875,
0.00472259521484375,
0.0462646484375,
0.022064208984375,
0.0277252197265625,
-0.0112152099609375,
0.044952392578125,
0.06475830078125,
0.004970550537109375,
-0.025360107421875,
0.00907135009765625,
-0.08465576171875,
0.026947021484375,
0.04754638671875,
0.050506591796875,
0.0242767333984375,
0.031951904296875,
0.02093505859375,
0.0831298828125,
0.00525665283203125,
0.0273284912109375,
-0.0271453857421875,
-0.03045654296875,
0.02520751953125,
-0.0017404556274414062,
0.04791259765625,
0.0285797119140625,
0.0167083740234375,
-0.0146942138671875,
0.048736572265625,
-0.032073974609375,
-0.043243408203125,
-0.01258087158203125,
0.000048220157623291016,
0.031341552734375,
-0.0197601318359375,
-0.041168212890625,
0.0206756591796875,
0.022613525390625,
0.015594482421875,
0.048614501953125,
0.052093505859375,
-0.0474853515625,
-0.003086090087890625,
0.040130615234375,
0.0960693359375,
-0.01303863525390625,
0.005619049072265625,
0.0238189697265625,
0.0014333724975585938,
-0.0312347412109375,
0.0118408203125,
-0.0078887939453125,
0.00299072265625,
0.0284423828125,
0.07049560546875,
0.0029125213623046875,
-0.013916015625,
-0.01319122314453125,
-0.045013427734375,
-0.0193634033203125,
0.00004863739013671875,
0.022430419921875,
-0.0051422119140625,
0.018768310546875,
0.01087188720703125,
-0.0177459716796875,
0.0390625,
0.032470703125,
-0.031158447265625,
0.0151519775390625,
-0.03240966796875,
0.0185699462890625,
-0.031646728515625,
-0.005062103271484375,
0.03857421875,
0.0201263427734375,
-0.03668212890625,
-0.0005588531494140625,
-0.0131988525390625,
-0.0161895751953125,
0.0214996337890625,
-0.0118865966796875,
-0.032989501953125,
-0.0386962890625,
0.00038695335388183594,
0.01959228515625,
-0.00909423828125,
-0.0020465850830078125,
-0.0301055908203125,
-0.0202484130859375,
0.0017099380493164062,
-0.07012939453125,
-0.027008056640625,
0.07476806640625,
-0.056732177734375,
-0.0311737060546875,
-0.0234375,
-0.059600830078125,
-0.0076446533203125,
-0.03228759765625,
-0.0155487060546875,
0.006160736083984375,
0.00881195068359375,
-0.035247802734375,
-0.0193634033203125,
-0.07861328125,
-0.0245819091796875,
0.0017833709716796875,
0.020843505859375,
0.006011962890625,
0.0116729736328125,
-0.004222869873046875,
-0.0278472900390625,
-0.00829315185546875,
0.020477294921875,
-0.0128936767578125,
-0.00853729248046875,
-0.004467010498046875,
-0.00750732421875,
0.03619384765625,
-0.018463134765625,
0.0213775634765625,
0.04925537109375,
-0.0311126708984375,
-0.0031871795654296875,
0.0277557373046875,
0.043121337890625,
0.039794921875,
0.01050567626953125,
-0.031585693359375,
0.04931640625,
0.01181793212890625,
-0.025177001953125,
0.00470733642578125,
0.00223541259765625,
-0.013946533203125,
-0.000194549560546875,
-0.0232696533203125,
-0.01898193359375,
-0.0011348724365234375,
0.045806884765625,
0.0147857666015625,
0.014312744140625,
0.028045654296875,
0.0162506103515625,
-0.02423095703125,
-0.00327301025390625,
0.0023174285888671875,
0.006107330322265625,
0.036285400390625,
-0.0087738037109375,
-0.01322174072265625,
0.014129638671875,
0.0004119873046875,
0.0029735565185546875,
-0.014251708984375,
-0.016571044921875,
-0.0283660888671875,
0.05291748046875,
-0.0164947509765625,
-0.01042938232421875,
-0.027313232421875,
-0.021026611328125,
-0.01016998291015625,
0.06292724609375,
-0.0008411407470703125,
-0.023345947265625,
-0.0179595947265625,
0.02099609375,
-0.0562744140625,
-0.061492919921875,
0.005542755126953125,
0.01204681396484375,
-0.036102294921875,
-0.01226043701171875,
0.007648468017578125,
-0.0229949951171875,
-0.0154571533203125,
-0.043304443359375,
-0.0478515625,
-0.01502227783203125,
0.038421630859375,
-0.041107177734375,
0.04656982421875,
0.00827789306640625,
0.01303863525390625,
-0.0102386474609375,
-0.009185791015625,
-0.03765869140625,
-0.140869140625,
-0.0189208984375,
-0.0181732177734375,
0.08966064453125,
0.0203399658203125,
-0.052154541015625,
-0.028564453125,
0.0638427734375,
-0.0035152435302734375,
-0.01334381103515625,
0.005504608154296875,
0.01161956787109375,
0.006938934326171875,
0.015869140625,
-0.00817108154296875,
-0.004940032958984375,
0.03271484375,
0.046630859375,
-0.0364990234375,
0.05303955078125,
-0.0305328369140625,
-0.01361083984375,
0.0266571044921875,
-0.07281494140625,
-0.0020904541015625,
-0.054473876953125,
-0.04058837890625,
0.042572021484375,
-0.01482391357421875,
-0.004566192626953125,
-0.08526611328125,
-0.034210205078125,
-0.01947021484375,
-0.04931640625,
-0.0273895263671875,
0.04376220703125,
0.07440185546875,
0.0183868408203125,
0.02618408203125,
-0.0767822265625,
0.0018939971923828125,
0.004245758056640625,
0.0095977783203125,
0.043365478515625,
0.005767822265625,
-0.00223541259765625,
0.05865478515625,
-0.045013427734375,
0.041351318359375,
-0.0024261474609375,
0.01404571533203125,
0.003971099853515625,
-0.02093505859375,
0.0295562744140625,
0.0404052734375,
-0.059326171875,
-0.0023021697998046875,
-0.02587890625,
-0.0261077880859375,
0.00942230224609375,
0.053131103515625,
-0.041748046875,
0.05413818359375,
-0.032684326171875,
-0.040496826171875,
0.02020263671875,
-0.070068359375,
0.0008244514465332031,
0.0102081298828125,
0.00013947486877441406,
-0.01290130615234375,
-0.033905029296875,
0.049285888671875,
0.040252685546875,
0.04852294921875,
-0.04168701171875,
0.052154541015625,
0.050201416015625,
-0.00424957275390625,
0.035247802734375,
0.01328277587890625,
-0.005916595458984375,
0.0264739990234375,
0.00624847412109375,
-0.036285400390625,
0.0080413818359375,
-0.038055419921875,
-0.036346435546875,
-0.0289459228515625,
0.048675537109375,
0.03167724609375,
-0.01432037353515625,
-0.000316619873046875,
-0.05712890625,
0.01727294921875,
-0.043548583984375,
0.00771331787109375,
0.02325439453125,
-0.007221221923828125,
-0.034423828125,
0.0689697265625,
-0.004367828369140625,
0.0116119384765625,
-0.016204833984375,
0.03594970703125,
0.0164337158203125,
0.042755126953125,
0.0278778076171875,
-0.01499176025390625,
-0.0287017822265625,
0.033111572265625,
-0.047454833984375,
-0.027984619140625,
-0.034088134765625,
0.01201629638671875,
0.0198516845703125,
0.0015707015991210938,
0.0264434814453125,
0.009368896484375,
0.03826904296875,
-0.03216552734375,
0.004276275634765625,
0.063232421875,
0.01263427734375,
-0.00540924072265625,
-0.014892578125,
-0.01654052734375,
0.040802001953125,
-0.004150390625,
-0.0251617431640625,
0.03497314453125,
0.0298614501953125,
-0.05877685546875,
-0.029937744140625,
0.027862548828125,
0.03985595703125,
-0.01139068603515625,
-0.0306396484375,
0.0005068778991699219,
-0.0306243896484375,
-0.0017375946044921875,
-0.0247802734375,
-0.0080413818359375,
0.036651611328125,
-0.057952880859375,
0.034027099609375,
-0.013214111328125,
-0.01214599609375,
-0.037353515625,
0.0307159423828125,
0.037567138671875,
0.049896240234375,
-0.08099365234375,
0.00913238525390625,
-0.034637451171875,
-0.0220489501953125,
-0.042205810546875,
-0.036346435546875,
-0.049072265625,
-0.00933837890625,
-0.0316162109375,
-0.00007033348083496094,
0.006038665771484375,
0.040863037109375,
-0.007472991943359375,
0.02587890625,
-0.0306854248046875,
-0.0151824951171875,
-0.00798797607421875,
0.08038330078125,
-0.044158935546875,
0.07672119140625,
-0.003948211669921875,
0.0285797119140625,
-0.0305938720703125,
-0.01500701904296875,
0.020599365234375,
-0.048614501953125,
-0.042022705078125,
-0.01953125,
-0.03375244140625,
0.01126861572265625,
0.006221771240234375,
-0.025604248046875,
0.03533935546875,
-0.017059326171875,
-0.007617950439453125,
-0.0217437744140625,
0.0026950836181640625,
-0.0259552001953125,
0.02691650390625,
-0.0156707763671875,
-0.01103973388671875,
0.02032470703125,
-0.0341796875,
-0.01398468017578125,
0.027496337890625,
-0.011260986328125,
0.024444580078125,
0.0034351348876953125,
-0.007633209228515625,
0.014129638671875,
0.03179931640625,
0.0261688232421875,
0.038360595703125,
0.0232696533203125,
0.045257568359375,
-0.01220703125,
-0.01131439208984375,
0.0166473388671875,
-0.0028285980224609375,
0.0322265625,
-0.009613037109375,
0.0006318092346191406,
0.0306854248046875,
-0.01983642578125,
0.0107269287109375,
-0.0143280029296875,
0.035675048828125,
0.00942230224609375,
0.00884246826171875,
0.00890350341796875,
-0.037628173828125,
0.0239715576171875,
0.04443359375,
-0.033172607421875,
-0.0274505615234375,
-0.01494598388671875,
-0.05401611328125,
-0.008941650390625,
0.0120086669921875,
0.00189971923828125,
-0.003398895263671875,
-0.0190277099609375,
0.0171966552734375,
0.01139068603515625,
0.0199127197265625,
0.04730224609375,
-0.0257110595703125,
0.06903076171875,
-0.0204620361328125,
0.035369873046875,
-0.043304443359375,
0.001323699951171875,
-0.057220458984375,
-0.022216796875,
-0.00568389892578125,
-0.01441192626953125,
0.050048828125,
-0.032745361328125,
0.04052734375,
0.053070068359375,
-0.0255126953125,
0.0347900390625,
0.01605224609375,
-0.003864288330078125,
-0.010833740234375,
-0.048095703125,
0.00508880615234375,
0.02392578125,
-0.0021190643310546875,
0.031463623046875,
0.0267181396484375,
-0.051971435546875,
0.00901031494140625,
-0.00185394287109375,
0.0445556640625,
0.020965576171875,
-0.03466796875,
0.047027587890625,
-0.0016393661499023438,
-0.03424072265625,
0.00940704345703125,
0.0258941650390625,
-0.057159423828125,
-0.05908203125,
0.004245758056640625,
-0.07940673828125,
0.01151275634765625,
-0.01413726806640625,
-0.033935546875,
0.10009765625,
-0.01111602783203125,
0.0147705078125,
0.017059326171875,
0.0419921875,
-0.0259552001953125,
0.038177490234375,
-0.0380859375,
0.006320953369140625,
0.0028896331787109375,
-0.015869140625,
-0.047821044921875,
0.0040435791015625,
-0.06585693359375,
0.01001739501953125,
0.0316162109375,
0.01953125,
-0.061492919921875,
-0.02178955078125,
-0.00514984130859375,
0.02508544921875,
-0.0020694732666015625,
0.047332763671875,
0.0003180503845214844,
0.0172882080078125,
0.0185546875,
-0.050445556640625,
0.0291595458984375,
-0.06268310546875,
0.0167388916015625,
0.007114410400390625,
0.002262115478515625,
-0.0019044876098632812,
-0.0005478858947753906,
0.03167724609375,
-0.04876708984375,
0.0015001296997070312,
0.029266357421875,
0.0140228271484375,
-0.0035495758056640625,
0.00887298583984375,
-0.002483367919921875,
-0.04498291015625,
-0.045379638671875,
-0.01995849609375,
0.01279449462890625,
-0.0185394287109375,
0.019683837890625,
0.08721923828125,
0.02923583984375,
0.0180206298828125,
-0.01421356201171875,
0.00687408447265625,
-0.041717529296875,
0.02728271484375,
0.01131439208984375,
-0.0004019737243652344,
0.017913818359375,
-0.036102294921875,
0.0003173351287841797,
0.01476287841796875,
0.015411376953125,
-0.029815673828125,
0.01261138916015625,
0.01476287841796875,
-0.0006623268127441406,
-0.0015592575073242188,
-0.023834228515625,
0.019866943359375,
-0.010711669921875,
-0.02935791015625,
-0.0244903564453125,
-0.00157928466796875,
0.029541015625,
0.0091705322265625,
0.0047149658203125,
0.01495361328125,
-0.0105438232421875,
-0.0081024169921875,
0.0306396484375,
-0.057861328125,
-0.0029163360595703125,
0.04339599609375,
0.0111083984375,
0.0194244384765625,
-0.06591796875,
-0.0043487548828125,
0.0013017654418945312,
0.035797119140625,
0.0736083984375,
-0.0182647705078125,
-0.01328277587890625,
-0.0146942138671875,
0.0294342041015625,
0.0163421630859375,
0.04052734375,
0.0001913309097290039,
0.0029754638671875,
-0.0269012451171875,
-0.001399993896484375,
0.0205230712890625,
0.0236968994140625,
-0.0136871337890625,
0.006267547607421875,
-0.04705810546875,
-0.044586181640625,
-0.0252685546875,
-0.025726318359375,
0.00945281982421875,
-0.032989501953125,
0.02313232421875,
-0.007572174072265625,
0.0233154296875,
-0.0015192031860351562,
-0.022979736328125,
0.036376953125,
-0.01389312744140625,
0.06500244140625,
0.0009927749633789062,
-0.0853271484375,
0.01206207275390625,
-0.042999267578125,
-0.058074951171875,
0.0343017578125,
0.0418701171875,
-0.041290283203125,
0.022674560546875,
-0.0087890625,
0.01103973388671875,
0.0275115966796875,
-0.0207366943359375,
-0.0209503173828125,
0.03350830078125,
0.03204345703125,
0.00653076171875,
0.01044464111328125,
0.0020122528076171875,
0.01082611083984375,
0.03997802734375,
0.01038360595703125,
0.0760498046875,
-0.0299835205078125,
0.012847900390625,
-0.040985107421875,
-0.040069580078125,
0.001903533935546875,
-0.032684326171875,
-0.026153564453125,
0.019134521484375,
0.01172637939453125,
0.01143646240234375,
-0.036376953125,
-0.006343841552734375,
0.03387451171875,
-0.00571441650390625,
-0.0033893585205078125,
-0.013580322265625,
0.0185089111328125,
-0.0005192756652832031,
0.061676025390625,
-0.0193328857421875,
-0.03143310546875,
-0.07208251953125,
-0.042938232421875,
0.06744384765625,
0.050933837890625,
0.003742218017578125,
0.028594970703125,
0.040435791015625,
0.00469970703125,
0.02960205078125,
-0.005046844482421875,
0.0531005859375,
0.025665283203125,
0.00021004676818847656,
-0.038787841796875,
-0.0178375244140625,
-0.0225372314453125,
-0.01396942138671875,
-0.01300048828125,
0.03448486328125,
-0.01355743408203125,
-0.041290283203125,
-0.00260162353515625,
-0.00690460205078125,
0.004055023193359375,
-0.06256103515625,
-0.0115966796875,
0.038330078125,
0.00360107421875,
-0.01456451416015625,
0.013885498046875,
-0.022918701171875,
-0.042877197265625,
-0.005451202392578125,
-0.00994873046875,
-0.01502227783203125,
-0.040557861328125,
0.00664520263671875,
-0.030120849609375,
0.0545654296875,
0.022491455078125,
-0.0261383056640625,
-0.004825592041015625,
-0.00638580322265625,
-0.00608062744140625,
0.035888671875,
-0.0171966552734375,
0.015716552734375,
0.05401611328125,
-0.010833740234375,
-0.037078857421875,
0.000949859619140625,
0.0318603515625,
-0.0039825439453125,
-0.03387451171875,
-0.0179290771484375,
-0.00391387939453125,
-0.007965087890625,
-0.032989501953125,
-0.0242156982421875,
-0.0029544830322265625,
0.01253509521484375,
-0.0391845703125,
0.01953125,
-0.034942626953125,
-0.0196685791015625,
-0.030517578125,
0.033477783203125,
-0.10968017578125,
-0.0210113525390625,
-0.023162841796875,
0.013763427734375,
0.00791168212890625,
-0.019256591796875,
-0.017486572265625,
0.0931396484375,
-0.01019287109375,
0.002574920654296875,
-0.059234619140625,
0.017913818359375,
0.009124755859375,
0.013458251953125,
-0.0256805419921875,
-0.025604248046875,
-0.02392578125,
0.033355712890625,
0.00214385986328125,
0.0458984375,
0.04522705078125,
0.00713348388671875,
0.01241302490234375,
-0.002960205078125,
-0.014312744140625,
-0.0240478515625,
-0.0308074951171875,
-0.0040283203125,
0.0184478759765625,
0.01499176025390625,
-0.0241546630859375,
-0.0199737548828125,
0.03167724609375,
0.02239990234375,
-0.00962066650390625,
0.007266998291015625,
-0.04022216796875,
-0.004726409912109375,
0.0634765625,
0.06884765625,
0.0176849365234375,
-0.03558349609375,
0.03125,
-0.0179443359375,
-0.06988525390625,
-0.0192413330078125,
0.030181884765625,
-0.0673828125,
-0.0190582275390625,
0.0291748046875,
-0.0189666748046875,
0.025726318359375,
-0.021087646484375,
-0.0311737060546875,
-0.0050201416015625,
-0.050628662109375,
-0.020843505859375,
-0.052093505859375,
-0.00032806396484375,
0.0361328125,
-0.0133514404296875,
0.0279693603515625,
-0.0144195556640625,
0.00846099853515625,
0.04278564453125,
0.025299072265625,
-0.0382080078125,
0.035247802734375,
0.0059661865234375,
0.01258087158203125,
0.0259857177734375,
0.0181121826171875,
0.00807952880859375,
0.0272979736328125,
0.00439453125,
0.0022144317626953125,
0.01395416259765625,
0.0036602020263671875,
-0.01654052734375,
-0.00722503662109375,
-0.0240478515625,
0.052459716796875,
-0.043853759765625,
-0.005512237548828125,
-0.035369873046875,
-0.01418304443359375,
0.0238189697265625,
0.01464080810546875,
0.080810546875,
0.0185699462890625,
0.0007238388061523438,
-0.004180908203125,
-0.01224517822265625,
-0.046875,
0.0240020751953125,
0.000033855438232421875,
-0.0149993896484375,
0.00904083251953125
] |
2cc2b8b203916f51cab5562c07702815b6cc56de
|
Wordpress Stackexchange
Q: Determine if page is the Posts Page On the Reading Settings page you can set a "Front Page" and a "Posts Page". You can check whether the current page is_front_page();
Is there a similar function for the "Posts Page". I have noticed that is_page(); does not work for this special page.
Thanks
A: is_home() checks for the "Posts Page", despite the somewhat confusing function name.
|
Q: Determine if page is the Posts Page On the Reading Settings page you can set a "Front Page" and a "Posts Page". You can check whether the current page is_front_page();
Is there a similar function for the "Posts Page". I have noticed that is_page(); does not work for this special page.
Thanks
A: is_home() checks for the "Posts Page", despite the somewhat confusing function name.
A: "Posts page" is usually an archive of:
*
*posts of a category
*posts of a tag
*posts of a date ( year, month...)
*posts of main archive
Each one of these can be checked by a one of the many conditional tags like
is_category()
is_tag()
is_date()
is_archive()
And so many more. To get a better understanding head over to the codex http://codex.wordpress.org/Conditional_Tags
A: Wordpress comes with 7 primary template page types, which can be determined on this way
if ( is_main_query() ) {
// Error
if ( is_404() ) {
;
}
// Front page
if ( is_front_page() ) {
;
}
// Archive
if ( is_archive() ) {
;
}
// Comments popup
if ( is_comments_popup() ) {
;
}
// Search
if ( is_search() ) {
;
}
// Singular
if ( is_singular() ) {
;
}
// Home - the blog page
if ( is_home() ) {
;
}
}
is_home tells to you, that you have the blog page.
A: First check the blogs related things like author, tag, post type
function is_blog () {
global $post;
$posttype = get_post_type($post );
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ;
}
Now check and return something which you want to have
function check_post_type(){
$postType;
if (is_blog())
{
$postType = 'I am post';
} else
{
$postType = 'I am page';
};
return $postType;
}
Use it like Boss
<?php echo check_post_type();?>
Thanks to Wes Bos
A: https://codex.wordpress.org/Conditional_Tags in WordPress Codex sais that you can reference pages like so:
if ( is_front_page() && is_home() ) {
// Default homepage
} elseif ( is_front_page() ) {
// static homepage
} elseif ( is_home() ) {
// blog page
} else {
//everything else
}
A: TL;DR
Case A. There is no need to determine it inside the main template file (index.php) because it is the default template for it[1].
Case B. To determine it inside a page template (ex: page.php), simply check it like so:
get_option( 'page_for_posts' ) == get_the_ID()
Details
I literally went digging the source-code[2] of it just to be able to know how wordpress does the checking of the value. It turns out, it is using the statement get_option( 'page_for_posts' ) to know the post ID of the selected value of the Posts page.
So yeah, for this purpose, there is no such official checker function that is similar to is_front_page().
As long as you know the ID of the page that you've selected then you can use it for the checking process.
References
*
*WordPress Codex, Theme Development, codex.wordpress.org/Theme_Development
*Source-code of Settings › Reading Settings, github.com/WordPress/.../wp-admin/options-reading.php
|
wordpress
|
{
"language": "en",
"length": 514,
"provenance": "stackexchange_00019.jsonl.gz:408618",
"question_score": "28",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14768"
}
|
[
0.0162506103515625,
0.0095672607421875,
0.03143310546875,
0.0262603759765625,
-0.007633209228515625,
-0.0158843994140625,
0.036285400390625,
-0.06549072265625,
0.01372528076171875,
-0.01522064208984375,
-0.04254150390625,
0.0032978057861328125,
-0.0364990234375,
-0.0210723876953125,
0.01227569580078125,
-0.048095703125,
0.054931640625,
-0.0139007568359375,
0.040679931640625,
-0.0007567405700683594,
0.005741119384765625,
0.027099609375,
0.03179931640625,
0.08441162109375,
0.023101806640625,
-0.029815673828125,
0.04046630859375,
0.00867462158203125,
0.01032257080078125,
-0.00811767578125,
0.021514892578125,
-0.006893157958984375,
0.00962066650390625,
0.0022983551025390625,
0.00969696044921875,
-0.00421142578125,
0.002490997314453125,
0.01314544677734375,
0.0294036865234375,
0.00946807861328125,
0.00897216796875,
0.00525665283203125,
-0.0016260147094726562,
0.046173095703125,
-0.0135955810546875,
-0.04656982421875,
0.01390838623046875,
-0.040771484375,
0.00809478759765625,
-0.0055389404296875,
-0.0196990966796875,
-0.032012939453125,
-0.021697998046875,
-0.007457733154296875,
-0.00791168212890625,
0.0008029937744140625,
0.039947509765625,
-0.0223388671875,
0.054901123046875,
-0.057952880859375,
-0.05694580078125,
-0.0222625732421875,
0.051605224609375,
-0.004795074462890625,
-0.01117706298828125,
-0.007160186767578125,
-0.0159759521484375,
0.0195465087890625,
-0.0546875,
-0.031463623046875,
0.0305328369140625,
-0.031524658203125,
0.0255126953125,
-0.00499725341796875,
-0.0258331298828125,
-0.0214691162109375,
0.006549835205078125,
-0.01335906982421875,
0.0131988525390625,
-0.006084442138671875,
-0.05596923828125,
0.01209259033203125,
-0.072265625,
-0.025665283203125,
-0.0318603515625,
-0.023468017578125,
-0.02447509765625,
0.01202392578125,
-0.0421142578125,
-0.02197265625,
-0.019866943359375,
-0.023223876953125,
-0.01904296875,
-0.029144287109375,
-0.027313232421875,
-0.0160064697265625,
0.0211639404296875,
0.069091796875,
-0.045806884765625,
-0.01739501953125,
-0.034423828125,
-0.01751708984375,
-0.018707275390625,
-0.02740478515625,
0.0261077880859375,
0.039886474609375,
-0.006481170654296875,
-0.0238800048828125,
0.048675537109375,
0.017974853515625,
0.0019025802612304688,
0.0208892822265625,
-0.02117919921875,
-0.0169830322265625,
-0.023040771484375,
0.011627197265625,
-0.048431396484375,
-0.01194000244140625,
-0.0057220458984375,
-0.003086090087890625,
0.0323486328125,
0.047515869140625,
0.045013427734375,
-0.052154541015625,
0.034942626953125,
0.036041259765625,
-0.037841796875,
-0.06573486328125,
0.03936767578125,
0.060546875,
-0.027496337890625,
-0.01262664794921875,
0.0055694580078125,
-0.03265380859375,
-0.046630859375,
-0.0361328125,
0.0152435302734375,
-0.0293121337890625,
-0.0096435546875,
0.0330810546875,
0.0029315948486328125,
-0.063232421875,
-0.01214599609375,
-0.0038585662841796875,
-0.010162353515625,
0.020294189453125,
0.0211029052734375,
0.024169921875,
-0.007740020751953125,
-0.05877685546875,
0.03375244140625,
-0.032989501953125,
-0.0184478759765625,
0.0200958251953125,
0.043212890625,
-0.0169525146484375,
-0.021636962890625,
0.01222991943359375,
0.044708251953125,
0.01001739501953125,
0.04693603515625,
-0.007633209228515625,
0.0109710693359375,
-0.00194549560546875,
-0.032501220703125,
0.01043701171875,
-0.06304931640625,
-0.01479339599609375,
0.004962921142578125,
0.00004088878631591797,
0.0014667510986328125,
0.00128936767578125,
-0.0183868408203125,
-0.00860595703125,
-0.010467529296875,
-0.01248931884765625,
-0.0028095245361328125,
-0.046417236328125,
0.0298004150390625,
0.07568359375,
-0.01104736328125,
-0.00934600830078125,
-0.0164031982421875,
0.01258087158203125,
-0.0230712890625,
0.01739501953125,
0.0250396728515625,
0.042388916015625,
-0.0185699462890625,
0.0171356201171875,
0.0226593017578125,
0.01226806640625,
-0.0242462158203125,
0.012908935546875,
-0.0157470703125,
-0.0216217041015625,
-0.0024967193603515625,
0.002437591552734375,
-0.0117645263671875,
0.0001596212387084961,
0.022491455078125,
-0.00011157989501953125,
-0.005718231201171875,
0.01145172119140625,
-0.0311126708984375,
-0.01198577880859375,
-0.00829315185546875,
0.02215576171875,
0.053802490234375,
0.0272216796875,
-0.006404876708984375,
-0.01134490966796875,
0.008880615234375,
-0.047698974609375,
-0.071044921875,
0.027374267578125,
-0.0189361572265625,
-0.0246734619140625,
-0.020263671875,
-0.005218505859375,
-0.0404052734375,
0.0299072265625,
-0.054107666015625,
0.01331329345703125,
0.0267486572265625,
-0.007724761962890625,
-0.0133514404296875,
-0.0255584716796875,
0.0099945068359375,
0.01502227783203125,
-0.038177490234375,
0.0189361572265625,
0.004375457763671875,
0.0166778564453125,
-0.005733489990234375,
0.005035400390625,
0.035797119140625,
-0.0255584716796875,
0.017608642578125,
0.0247802734375,
0.037506103515625,
0.03179931640625,
-0.0025844573974609375,
-0.00601959228515625,
0.050018310546875,
-0.045684814453125,
0.002864837646484375,
-0.0034275054931640625,
0.032073974609375,
0.06658935546875,
-0.0479736328125,
0.0170745849609375,
0.0111541748046875,
-0.05596923828125,
0.01010894775390625,
0.040069580078125,
-0.0139007568359375,
0.037689208984375,
-0.01143646240234375,
-0.00695037841796875,
-0.007450103759765625,
0.05230712890625,
0.0176849365234375,
0.01267242431640625,
0.03656005859375,
0.0017786026000976562,
0.044921875,
0.032562255859375,
0.01438140869140625,
-0.0199127197265625,
-0.00958251953125,
-0.01151275634765625,
0.00930023193359375,
0.040374755859375,
0.0458984375,
-0.0284423828125,
-0.0330810546875,
-0.033966064453125,
0.00344085693359375,
0.010040283203125,
-0.012969970703125,
0.0163726806640625,
-0.037200927734375,
-0.008148193359375,
-0.00875091552734375,
-0.072021484375,
0.0012798309326171875,
0.03955078125,
0.058685302734375,
0.0173187255859375,
0.0231170654296875,
0.00995635986328125,
-0.049591064453125,
0.08538818359375,
-0.0019588470458984375,
-0.049285888671875,
-0.0211639404296875,
-0.058441162109375,
0.05340576171875,
-0.04083251953125,
0.01149749755859375,
0.07257080078125,
0.002880096435546875,
-0.0007758140563964844,
0.0038661956787109375,
0.0191192626953125,
0.0239410400390625,
-0.005023956298828125,
-0.01316070556640625,
0.01331329345703125,
-0.05145263671875,
-0.00934600830078125,
0.0147857666015625,
0.022979736328125,
0.01282501220703125,
-0.035858154296875,
0.015899658203125,
0.0035495758056640625,
-0.08685302734375,
-0.091552734375,
-0.031097412109375,
-0.03973388671875,
0.01849365234375,
-0.0219573974609375,
-0.00823974609375,
-0.004276275634765625,
-0.0113067626953125,
0.0126953125,
-0.0390625,
-0.01198577880859375,
-0.0236053466796875,
-0.051605224609375,
-0.05322265625,
0.0039520263671875,
0.004032135009765625,
0.0302734375,
-0.004467010498046875,
0.053314208984375,
-0.001003265380859375,
-0.059600830078125,
-0.018585205078125,
0.049468994140625,
-0.0109710693359375,
0.001560211181640625,
-0.023468017578125,
0.03887939453125,
-0.003246307373046875,
0.03448486328125,
-0.0159912109375,
-0.008575439453125,
-0.011749267578125,
-0.04296875,
-0.04571533203125,
-0.009979248046875,
-0.007335662841796875,
0.0157012939453125,
0.057647705078125,
-0.0018253326416015625,
0.006443023681640625,
-0.0251922607421875,
-0.0517578125,
0.005062103271484375,
-0.0772705078125,
0.0013256072998046875,
0.04083251953125,
-0.0012731552124023438,
0.02630615234375,
-0.01264190673828125,
0.01537322998046875,
-0.0049285888671875,
0.06268310546875,
-0.0103607177734375,
0.019195556640625,
-0.0157470703125,
-0.01715087890625,
-0.04827880859375,
-0.0340576171875,
-0.0231170654296875,
0.037872314453125,
-0.0233306884765625,
0.0090179443359375,
-0.0223541259765625,
0.025115966796875,
-0.044342041015625,
-0.06536865234375,
0.0269622802734375,
0.0010890960693359375,
0.0213623046875,
-0.0094451904296875,
-0.02392578125,
0.035064697265625,
0.10162353515625,
-0.06591796875,
-0.01348114013671875,
0.01971435546875,
0.01323699951171875,
-0.03887939453125,
-0.0223846435546875,
-0.060546875,
-0.0010356903076171875,
-0.020843505859375,
-0.004058837890625,
-0.0068511962890625,
-0.0138702392578125,
-0.0290069580078125,
0.057098388671875,
-0.01528167724609375,
-0.0063323974609375,
0.043182373046875,
-0.035186767578125,
-0.0107269287109375,
0.043365478515625,
-0.0204620361328125,
0.01800537109375,
-0.0293121337890625,
-0.0178375244140625,
-0.07696533203125,
-0.0084075927734375,
0.0068511962890625,
0.0278472900390625,
0.00455474853515625,
-0.049224853515625,
0.0010652542114257812,
0.056488037109375,
0.025848388671875,
-0.0059356689453125,
0.04254150390625,
-0.01514434814453125,
0.05841064453125,
-0.0057525634765625,
0.019134521484375,
-0.028411865234375,
-0.0011796951293945312,
0.01061248779296875,
-0.0289306640625,
0.02520751953125,
-0.0292510986328125,
-0.018951416015625,
0.0220489501953125,
-0.02490234375,
-0.057098388671875,
-0.0133514404296875,
0.004917144775390625,
0.016143798828125,
-0.01812744140625,
0.01178741455078125,
-0.00397491455078125,
-0.0438232421875,
0.042694091796875,
0.0164337158203125,
-0.05255126953125,
0.006618499755859375,
0.044342041015625,
0.022552490234375,
-0.0232696533203125,
-0.03704833984375,
0.0005402565002441406,
0.036651611328125,
0.0085601806640625,
0.045867919921875,
0.032745361328125,
-0.025238037109375,
0.034515380859375,
0.0251617431640625,
-0.05517578125,
0.00984954833984375,
0.050628662109375,
0.0052032470703125,
-0.0178375244140625,
-0.0225982666015625,
-0.03607177734375,
0.0672607421875,
0.043365478515625,
-0.0159912109375,
-0.0179595947265625,
-0.01275634765625,
0.03326416015625,
-0.04364013671875,
0.034332275390625,
-0.0196380615234375,
-0.018035888671875,
-0.0004172325134277344,
0.051666259765625,
0.0380859375,
0.0263214111328125,
0.0030670166015625,
0.0280914306640625,
0.0301666259765625,
0.0029811859130859375,
0.0294647216796875,
0.06512451171875,
0.0082550048828125,
0.03448486328125,
-0.0022563934326171875,
-0.01007843017578125,
-0.03607177734375,
0.001186370849609375,
0.0277099609375,
-0.05230712890625,
-0.080810546875,
-0.01256561279296875,
-0.037353515625,
-0.0031719207763671875,
0.05609130859375,
0.02471923828125,
0.025238037109375,
-0.01316070556640625,
-0.03802490234375,
-0.0240936279296875,
0.008453369140625,
-0.030670166015625,
-0.0465087890625,
-0.02294921875,
-0.01482391357421875,
-0.00876617431640625,
0.033233642578125,
0.04449462890625,
-0.004253387451171875,
0.045318603515625,
-0.03350830078125,
-0.00875091552734375,
0.019866943359375,
0.0012807846069335938,
0.0099639892578125,
0.034332275390625,
-0.00305938720703125,
-0.005126953125,
0.0592041015625,
-0.0121917724609375,
-0.03558349609375,
0.0310821533203125,
0.0135955810546875,
0.01145172119140625,
0.030609130859375,
-0.0104217529296875,
0.028106689453125,
-0.034088134765625,
0.0280609130859375,
0.01262664794921875,
-0.058624267578125,
-0.0261077880859375,
0.005298614501953125,
0.01053619384765625,
0.007427215576171875,
-0.020355224609375,
0.018402099609375,
-0.021209716796875,
0.03485107421875,
-0.024993896484375,
-0.021026611328125,
0.03179931640625,
0.028167724609375,
-0.0643310546875,
-0.024505615234375,
0.0269927978515625,
-0.054290771484375,
-0.01560211181640625,
-0.0231475830078125,
-0.019195556640625,
0.006961822509765625,
0.0155029296875,
0.041656494140625,
-0.0253143310546875,
-0.0343017578125,
0.01331329345703125,
-0.0016584396362304688,
0.060699462890625,
0.018646240234375,
-0.078857421875,
-0.00785064697265625,
-0.06341552734375,
-0.0219268798828125,
-0.03924560546875,
-0.041046142578125,
-0.0526123046875,
0.0140533447265625,
0.036102294921875,
0.03558349609375,
0.0005059242248535156,
-0.043975830078125,
-0.031341552734375,
0.005786895751953125,
0.037841796875,
0.061492919921875,
-0.0034809112548828125,
0.07708740234375,
-0.00559234619140625,
0.0653076171875,
0.00788116455078125,
0.035247802734375,
-0.0232696533203125,
-0.022186279296875,
0.00479888916015625,
-0.01503753662109375,
-0.0056915283203125,
-0.0060577392578125,
-0.014190673828125,
0.0000852346420288086,
0.0292510986328125,
0.004665374755859375,
-0.01351165771484375,
-0.01049041748046875,
0.005756378173828125,
-0.03289794921875,
-0.01334381103515625,
-0.018768310546875,
-0.0290069580078125,
-0.0013275146484375,
0.031646728515625,
0.0170440673828125,
-0.0227203369140625,
-0.0292816162109375,
0.0016069412231445312,
0.042205810546875,
-0.0021114349365234375,
-0.0138397216796875,
-0.07110595703125,
0.05078125,
0.09100341796875,
0.01580810546875,
0.058685302734375,
0.0172576904296875,
0.01216888427734375,
0.048370361328125,
0.034454345703125,
-0.042633056640625,
-0.029144287109375,
0.0418701171875,
0.006488800048828125,
-0.0191497802734375,
0.0318603515625,
-0.013580322265625,
0.016021728515625,
0.050933837890625,
0.061737060546875,
-0.07513427734375,
0.004009246826171875,
0.031005859375,
-0.0021533966064453125,
0.0233306884765625,
-0.006542205810546875,
0.02459716796875,
0.0237274169921875,
0.0633544921875,
-0.0193634033203125,
0.00003057718276977539,
0.042510986328125,
-0.0406494140625,
0.0080413818359375,
-0.041290283203125,
0.07781982421875,
0.01285552978515625,
-0.0308380126953125,
-0.00897216796875,
0.040679931640625,
-0.04022216796875,
-0.022705078125,
0.0251312255859375,
-0.0248565673828125,
-0.0196380615234375,
-0.04986572265625,
-0.0041656494140625,
0.001964569091796875,
-0.009765625,
0.04364013671875,
0.01009368896484375,
-0.01079559326171875,
0.03289794921875,
-0.02166748046875,
0.035369873046875,
-0.00894927978515625,
-0.02008056640625,
-0.061676025390625,
0.009002685546875,
0.0628662109375,
0.03192138671875,
-0.025970458984375,
0.037017822265625,
-0.041595458984375,
-0.036407470703125,
-0.01505279541015625,
-0.06036376953125,
0.0628662109375,
-0.0323486328125,
-0.006702423095703125,
-0.007442474365234375,
0.0078277587890625,
0.006435394287109375,
-0.016021728515625,
0.00421142578125,
-0.005504608154296875,
0.0187530517578125,
-0.020111083984375,
-0.01044464111328125,
-0.01045989990234375,
-0.034637451171875,
-0.06298828125,
0.06829833984375,
-0.03887939453125,
0.046173095703125,
-0.004718780517578125,
0.0273284912109375,
0.01049041748046875,
0.01947021484375,
-0.040985107421875,
0.047027587890625,
0.013336181640625,
0.08160400390625,
-0.0275115966796875,
0.0011682510375976562,
0.042877197265625,
0.0301971435546875,
0.015655517578125,
0.0025005340576171875,
0.012176513671875,
-0.003826141357421875,
0.0134429931640625,
0.0362548828125,
-0.0051422119140625,
0.0090179443359375,
-0.0377197265625,
0.01013946533203125,
0.029693603515625,
-0.084716796875,
0.035308837890625,
-0.051116943359375,
0.0014543533325195312,
-0.0296783447265625,
0.01194000244140625,
0.0038299560546875,
-0.0030002593994140625,
-0.006175994873046875,
-0.033843994140625,
-0.0031566619873046875,
0.020843505859375,
-0.036712646484375,
-0.015289306640625,
0.041351318359375,
0.023712158203125,
-0.034332275390625,
-0.0207366943359375,
-0.024688720703125,
0.031982421875,
0.00708770751953125,
0.01678466796875,
0.055572509765625,
0.029052734375,
-0.0002453327178955078,
0.0034656524658203125,
0.00641632080078125,
0.0017480850219726562,
0.0082855224609375,
0.0567626953125,
0.06024169921875,
0.03607177734375,
0.003978729248046875,
-0.0103607177734375,
-0.0161285400390625,
0.05499267578125,
-0.038818359375,
-0.03515625,
0.0021762847900390625,
-0.035675048828125,
-0.00809478759765625,
-0.01476287841796875,
-0.0276336669921875,
0.0081634521484375,
0.01343536376953125,
-0.034210205078125,
-0.02105712890625,
0.006771087646484375,
0.03570556640625,
-0.00811004638671875,
-0.01018524169921875,
-0.0234375,
-0.036956787109375,
-0.017120361328125,
-0.0087127685546875,
-0.011505126953125,
0.00969696044921875,
0.0166778564453125,
0.01230621337890625,
0.005794525146484375,
0.02099609375,
-0.01715087890625,
0.00794219970703125,
-0.0266876220703125,
0.03228759765625,
-0.0772705078125,
-0.04583740234375,
-0.00287628173828125,
0.06597900390625,
0.0401611328125,
0.0361328125,
-0.006740570068359375,
0.0121307373046875,
0.0440673828125,
0.0098419189453125,
0.053466796875,
-0.01031494140625,
0.01497650146484375,
-0.0060272216796875,
-0.0224761962890625,
-0.022491455078125,
-0.03564453125,
-0.00568389892578125,
0.048004150390625,
0.0012454986572265625,
0.0091094970703125,
0.0236053466796875,
0.01971435546875,
0.01474761962890625,
0.034515380859375,
0.041259765625,
0.0323486328125,
0.04278564453125,
-0.08477783203125,
-0.0059814453125,
-0.041259765625,
-0.02490234375,
0.024749755859375,
0.039154052734375,
-0.023406982421875,
0.00443267822265625,
0.01456451416015625,
-0.0090179443359375,
0.0264129638671875,
-0.02880859375,
0.01529693603515625,
0.03607177734375,
0.013031005859375,
0.0296173095703125,
0.004825592041015625,
-0.0025272369384765625,
0.02056884765625,
0.0217742919921875,
0.011627197265625,
0.0296173095703125,
-0.0059814453125,
0.0275115966796875,
0.0026397705078125,
0.04852294921875,
-0.0537109375,
-0.03643798828125,
0.0479736328125,
-0.005023956298828125,
0.01763916015625,
-0.011138916015625,
-0.033721923828125,
0.04376220703125,
0.02691650390625,
-0.0028076171875,
0.048614501953125,
-0.0237579345703125,
-0.0117340087890625,
-0.0191497802734375,
0.004535675048828125,
-0.032135009765625,
0.01371002197265625,
0.01419830322265625,
-0.01248931884765625,
0.01580810546875,
-0.0303192138671875,
-0.0074462890625,
0.055999755859375,
-0.004150390625,
-0.03778076171875,
0.02740478515625,
-0.0496826171875,
0.016998291015625,
0.0242767333984375,
0.01372528076171875,
-0.023956298828125,
-0.0123291015625,
0.0023212432861328125,
0.0014429092407226562,
0.0360107421875,
-0.0173797607421875,
0.0206451416015625,
0.0304718017578125,
-0.0185394287109375,
-0.0245819091796875,
0.0025844573974609375,
-0.044830322265625,
-0.00876617431640625,
0.00937652587890625,
0.0140533447265625,
-0.0254974365234375,
-0.0259246826171875,
-0.0012969970703125,
-0.015716552734375,
-0.027191162109375,
-0.00018775463104248047,
-0.0226593017578125,
-0.043487548828125,
-0.002315521240234375,
-0.0173492431640625,
-0.00311279296875,
-0.036346435546875,
0.0311126708984375,
-0.00472259521484375,
-0.04541015625,
-0.0059814453125,
-0.0206756591796875,
-0.004444122314453125,
-0.0012578964233398438,
0.018890380859375,
-0.0281829833984375,
0.0672607421875,
-0.040069580078125,
-0.0667724609375,
0.0160064697265625,
0.051544189453125,
0.072509765625,
-0.056243896484375,
-0.044219970703125,
0.028717041015625,
0.038848876953125,
0.08123779296875,
0.01031494140625,
-0.03289794921875,
0.0096435546875,
0.0018033981323242188,
0.0044708251953125,
-0.03729248046875,
0.00426483154296875,
-0.0460205078125,
-0.023895263671875,
-0.0257110595703125,
-0.003314971923828125,
-0.0059967041015625,
-0.0308380126953125,
-0.051513671875,
0.048004150390625,
-0.01218414306640625,
-0.0273895263671875,
-0.06103515625,
0.0205230712890625,
0.01103973388671875,
-0.0227508544921875,
-0.0193328857421875,
-0.009490966796875,
-0.0111541748046875,
0.0369873046875,
0.0335693359375,
0.051300048828125,
0.01885986328125,
0.0404052734375,
-0.03436279296875,
0.0133514404296875,
-0.041229248046875,
0.032135009765625,
0.0174560546875,
0.0004706382751464844,
-0.0217132568359375,
0.0109405517578125,
-0.06500244140625,
-0.055633544921875,
-0.044921875,
0.045318603515625,
0.01351165771484375,
0.012664794921875,
-0.007602691650390625,
-0.006591796875,
0.0102386474609375,
0.030487060546875,
-0.0015811920166015625,
-0.01027679443359375,
-0.016571044921875,
-0.03997802734375,
-0.0299835205078125,
0.0180816650390625,
0.0093994140625,
-0.0306243896484375,
0.0343017578125,
0.007076263427734375,
-0.032012939453125,
-0.03564453125,
0.00969696044921875,
-0.06634521484375,
-0.0017385482788085938,
-0.0197906494140625,
-0.01318359375,
0.0064544677734375,
-0.0163116455078125,
0.04058837890625,
-0.039581298828125,
-0.027557373046875,
0.0187530517578125,
0.014892578125,
0.0021648406982421875,
0.0302276611328125,
0.03155517578125,
0.045013427734375,
-0.029052734375,
-0.034332275390625,
0.048583984375,
0.01464080810546875,
0.0245208740234375,
-0.0191192626953125,
0.04046630859375,
0.0129852294921875,
-0.0241851806640625,
0.01059722900390625,
-0.01169586181640625,
0.0250091552734375,
-0.064697265625,
0.05645751953125,
0.0179595947265625,
0.042083740234375,
0.0148468017578125,
0.0306549072265625,
-0.015960693359375,
-0.0283050537109375,
-0.0003116130828857422,
-0.035888671875,
-0.0015239715576171875,
0.0096588134765625,
-0.0246429443359375,
-0.02117919921875,
-0.004058837890625,
-0.0189208984375,
0.0013132095336914062,
0.002681732177734375
] |
387c8496179bbab05704786b9e7c4d2734f710e7
|
Wordpress Stackexchange
Q: Import and replace existing page/post content Is there any way to import a basic, exported Wordpress content XML file and have it replace the existing content? What I'm trying to do is synch up two instances of a site (development and staging servers) and all I want to replace is the Page content. When I try to import the XML document it simply states that all the pages already exist and nothing is done. Is it possible to override that warning and replace the content of the pages with the content of the XML?
A: One option might be to export both XML files, merge them using a file merging tool like http://winmerge.org, delete all posts and replace with the merged version.
|
Q: Import and replace existing page/post content Is there any way to import a basic, exported Wordpress content XML file and have it replace the existing content? What I'm trying to do is synch up two instances of a site (development and staging servers) and all I want to replace is the Page content. When I try to import the XML document it simply states that all the pages already exist and nothing is done. Is it possible to override that warning and replace the content of the pages with the content of the XML?
A: One option might be to export both XML files, merge them using a file merging tool like http://winmerge.org, delete all posts and replace with the merged version.
A: Run A Query to Delete All Staging Posts before Importing From Dev
Because menus and pages are custom post types, this will update all posts, pages, and menus to match your dev site.
*
*Delete all posts in the staging server by running a database query. Note that the code requires setting a userid. modify it if there are more users or run it more than once.
SET @WPUSERID='1';
-- end config
-- Delete a,b,c
FROM wp_posts a
LEFT JOIN wp_term_relationships b
ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c
ON (a.ID = c.post_id)
WHERE a.post_author = @WPUSERID;
*Import the XML file that you exported from the Dev site.
Caution: Back up your databases for both dev and staging in case you accidently get them mixed up (you think you're connected to stage for example, and you are really connected to dev when you do the delete) .
Be safe: view posts before deleting
Select * FROM wp_posts a
LEFT JOIN wp_term_relationships b
ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c
ON (a.ID = c.post_id)
WHERE a.post_author = @WPUSERID;
A: In my case - I'm trying to overwrite the content two of the default pages created by sage with predefined content - the best way to overwrite the page/post content was by using the wp post update cli command.
wp post update 2 "./assets/page-content.html"
where 2 is the page ID and ./assets/page-content.html is the path to the file with the new content (you could extract the content from an exported xml if you need to).
https://developer.wordpress.org/cli/commands/post/update/
|
wordpress
|
{
"language": "en",
"length": 380,
"provenance": "stackexchange_00019.jsonl.gz:408622",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14779"
}
|
[
0.0290069580078125,
-0.0134124755859375,
0.01111602783203125,
0.017822265625,
-0.0155792236328125,
-0.03448486328125,
0.05743408203125,
-0.0477294921875,
-0.0068359375,
-0.02972412109375,
-0.033660888671875,
-0.015716552734375,
-0.0546875,
-0.037933349609375,
0.017303466796875,
-0.0673828125,
0.00281524658203125,
-0.001018524169921875,
0.0204315185546875,
-0.0274200439453125,
0.00644683837890625,
-0.03936767578125,
0.05535888671875,
-0.026763916015625,
0.024200439453125,
0.007663726806640625,
0.0081329345703125,
0.011016845703125,
-0.0024967193603515625,
-0.00574493408203125,
0.0212249755859375,
-0.005924224853515625,
0.0193634033203125,
0.025177001953125,
-0.05157470703125,
-0.041778564453125,
-0.02825927734375,
0.0163726806640625,
-0.0188140869140625,
0.01094818115234375,
0.00501251220703125,
0.0086822509765625,
0.083984375,
0.01335906982421875,
0.00799560546875,
-0.0245513916015625,
0.01210784912109375,
-0.05072021484375,
0.018310546875,
0.0026836395263671875,
-0.00206756591796875,
-0.005107879638671875,
-0.0029697418212890625,
0.00415802001953125,
-0.0143280029296875,
-0.0132598876953125,
-0.040618896484375,
0.047027587890625,
0.032012939453125,
0.007904052734375,
-0.0240478515625,
-0.0036182403564453125,
-0.005077362060546875,
-0.0227203369140625,
-0.00655364990234375,
0.00014328956604003906,
0.00560760498046875,
0.0032558441162109375,
-0.0892333984375,
-0.00482177734375,
0.059051513671875,
-0.037506103515625,
-0.00439453125,
0.0166168212890625,
0.00018203258514404297,
-0.0019426345825195312,
0.0280303955078125,
0.00962066650390625,
-0.0015420913696289062,
0.050567626953125,
0.00923919677734375,
0.031829833984375,
0.0211639404296875,
-0.105712890625,
0.054229736328125,
-0.052398681640625,
-0.0157318115234375,
0.00762939453125,
-0.0218048095703125,
0.004932403564453125,
-0.0233306884765625,
-0.0005965232849121094,
-0.045654296875,
0.016815185546875,
-0.00037097930908203125,
-0.004673004150390625,
-0.022247314453125,
0.0240478515625,
-0.006866455078125,
0.06463623046875,
-0.015838623046875,
-0.023773193359375,
0.08258056640625,
-0.057220458984375,
0.0182647705078125,
0.01094818115234375,
-0.004688262939453125,
-0.035980224609375,
0.057403564453125,
0.01436614990234375,
-0.019622802734375,
0.08245849609375,
0.00959014892578125,
-0.01070404052734375,
-0.0059967041015625,
0.036590576171875,
0.01486968994140625,
0.025848388671875,
-0.0036067962646484375,
0.0433349609375,
-0.0154571533203125,
0.0262298583984375,
-0.10955810546875,
-0.0020046234130859375,
0.0218505859375,
-0.014007568359375,
0.022613525390625,
0.06463623046875,
0.0146942138671875,
-0.0009036064147949219,
-0.0323486328125,
0.0143890380859375,
0.07562255859375,
0.026092529296875,
0.0116729736328125,
-0.0213470458984375,
0.043548583984375,
-0.0023365020751953125,
-0.0053558349609375,
0.00157928466796875,
0.00628662109375,
-0.024566650390625,
-0.02593994140625,
-0.0209197998046875,
0.044189453125,
-0.0031147003173828125,
0.01192474365234375,
0.044891357421875,
0.0096588134765625,
0.003986358642578125,
0.03985595703125,
0.0031871795654296875,
0.01033782958984375,
-0.00125885009765625,
0.010284423828125,
-0.0821533203125,
0.00803375244140625,
-0.05230712890625,
0.07415771484375,
-0.049713134765625,
0.00830078125,
-0.0004982948303222656,
0.0338134765625,
0.0194244384765625,
-0.016143798828125,
0.003719329833984375,
-0.023590087890625,
-0.01537322998046875,
0.016632080078125,
-0.00508880615234375,
-0.0311126708984375,
-0.021484375,
0.004322052001953125,
-0.010223388671875,
-0.01065826416015625,
0.04193115234375,
0.03021240234375,
-0.01255035400390625,
0.006626129150390625,
0.051666259765625,
0.013702392578125,
-0.0115814208984375,
0.04656982421875,
-0.0086669921875,
-0.031280517578125,
0.0255126953125,
0.00878143310546875,
0.0233917236328125,
0.005985260009765625,
0.016357421875,
0.034820556640625,
0.0094451904296875,
-0.035675048828125,
0.002841949462890625,
0.003482818603515625,
-0.00279998779296875,
-0.006862640380859375,
0.01369476318359375,
-0.00188446044921875,
-0.01183319091796875,
-0.03509521484375,
0.026123046875,
-0.0193939208984375,
0.032257080078125,
0.001064300537109375,
0.01044464111328125,
-0.0051116943359375,
0.0234375,
-0.01354217529296875,
0.01268768310546875,
0.0253753662109375,
0.0196685791015625,
-0.0186004638671875,
-0.032928466796875,
-0.022674560546875,
0.000032842159271240234,
-0.00460052490234375,
-0.0067138671875,
0.0107574462890625,
0.02435302734375,
-0.01381683349609375,
0.01045989990234375,
-0.042510986328125,
-0.043792724609375,
-0.0022869110107421875,
0.0009751319885253906,
-0.0182037353515625,
-0.00362396240234375,
-0.0202178955078125,
-0.00290679931640625,
0.028533935546875,
0.032470703125,
0.042877197265625,
0.06103515625,
-0.0047760009765625,
-0.004558563232421875,
-0.00591278076171875,
-0.05841064453125,
0.014892578125,
0.044586181640625,
0.0362548828125,
0.0237579345703125,
0.01346588134765625,
0.04095458984375,
0.07647705078125,
0.00913238525390625,
0.0191192626953125,
-0.0006380081176757812,
0.013885498046875,
0.051483154296875,
-0.0308837890625,
-0.00798797607421875,
0.0215606689453125,
-0.052093505859375,
0.0006952285766601562,
0.04302978515625,
0.01275634765625,
0.003108978271484375,
-0.0282745361328125,
0.0100555419921875,
-0.00923919677734375,
-0.01328277587890625,
-0.0259552001953125,
0.0015010833740234375,
0.0472412109375,
0.01406097412109375,
0.07122802734375,
0.049163818359375,
0.00717926025390625,
-0.0243988037109375,
0.0005412101745605469,
0.005062103271484375,
0.0172271728515625,
0.007659912109375,
-0.009857177734375,
0.080810546875,
-0.031463623046875,
-0.01409149169921875,
0.029998779296875,
0.031707763671875,
-0.003208160400390625,
0.0077667236328125,
-0.02276611328125,
-0.007476806640625,
0.0220794677734375,
-0.03106689453125,
-0.0021228790283203125,
-0.002605438232421875,
-0.00911712646484375,
-0.0211334228515625,
-0.00803375244140625,
0.0391845703125,
-0.018035888671875,
0.028717041015625,
0.0249176025390625,
-0.0152435302734375,
0.06939697265625,
-0.06134033203125,
0.05621337890625,
-0.018951416015625,
0.04852294921875,
0.060302734375,
0.01934814453125,
-0.00969696044921875,
0.0056304931640625,
0.025115966796875,
0.024444580078125,
-0.0012693405151367188,
-0.01155853271484375,
0.0023212432861328125,
-0.0626220703125,
-0.0304107666015625,
0.0197601318359375,
0.0257110595703125,
0.00171661376953125,
-0.03240966796875,
-0.0156707763671875,
0.01432037353515625,
-0.06494140625,
-0.056549072265625,
-0.00925445556640625,
-0.05462646484375,
-0.017486572265625,
-0.0023956298828125,
-0.0223236083984375,
0.00775909423828125,
0.00473785400390625,
0.0107421875,
0.020233154296875,
-0.04241943359375,
-0.06787109375,
-0.07843017578125,
-0.09893798828125,
-0.049530029296875,
-0.0035533905029296875,
0.00771331787109375,
0.01483917236328125,
0.02001953125,
0.01424407958984375,
-0.033233642578125,
0.031524658203125,
0.0836181640625,
-0.0250701904296875,
0.01331329345703125,
0.01318359375,
-0.04864501953125,
0.031982421875,
-0.01265716552734375,
0.06744384765625,
0.043060302734375,
-0.0241546630859375,
-0.0031528472900390625,
0.0021915435791015625,
0.009124755859375,
-0.02069091796875,
0.01062774658203125,
0.0255584716796875,
0.006862640380859375,
-0.0261993408203125,
-0.042449951171875,
-0.019805908203125,
0.007755279541015625,
-0.041351318359375,
0.0005412101745605469,
0.0155487060546875,
-0.034576416015625,
0.009735107421875,
-0.002838134765625,
-0.0286407470703125,
0.00240325927734375,
0.060943603515625,
0.01091766357421875,
-0.014801025390625,
-0.051849365234375,
-0.0843505859375,
-0.043670654296875,
0.045318603515625,
-0.01629638671875,
0.032501220703125,
0.031280517578125,
-0.00395965576171875,
-0.00838470458984375,
-0.0044403076171875,
-0.035308837890625,
-0.05670166015625,
0.0284576416015625,
-0.0323486328125,
0.012298583984375,
-0.038726806640625,
-0.013702392578125,
-0.01276397705078125,
0.0804443359375,
-0.041229248046875,
-0.0136566162109375,
0.0142364501953125,
0.019439697265625,
-0.025970458984375,
-0.026824951171875,
-0.059814453125,
-0.00760650634765625,
-0.00957489013671875,
-0.0024623870849609375,
0.00711822509765625,
-0.022430419921875,
0.0131378173828125,
-0.03997802734375,
0.01320648193359375,
-0.0224456787109375,
0.0211639404296875,
0.045501708984375,
0.0139312744140625,
0.0248565673828125,
0.0084075927734375,
0.0200958251953125,
-0.0132904052734375,
0.00885772705078125,
-0.07379150390625,
-0.002285003662109375,
-0.05169677734375,
0.07208251953125,
0.0210418701171875,
-0.01178741455078125,
-0.043914794921875,
0.0145263671875,
0.00170135498046875,
0.0293426513671875,
-0.0134735107421875,
0.004161834716796875,
0.00464630126953125,
-0.0178985595703125,
0.001186370849609375,
-0.02496337890625,
-0.024200439453125,
-0.03204345703125,
0.01079559326171875,
0.0027294158935546875,
-0.036834716796875,
-0.043304443359375,
-0.031036376953125,
-0.009552001953125,
-0.037750244140625,
-0.01486968994140625,
0.01206207275390625,
0.0275726318359375,
-0.0005421638488769531,
-0.004192352294921875,
-0.012359619140625,
-0.033203125,
0.03656005859375,
0.00937652587890625,
-0.035400390625,
0.01535797119140625,
0.056671142578125,
0.0147857666015625,
-0.0129852294921875,
-0.09161376953125,
-0.0296173095703125,
0.0007524490356445312,
0.0162353515625,
0.03314208984375,
0.01316070556640625,
0.0230712890625,
-0.00342559814453125,
-0.026214599609375,
0.00919342041015625,
-0.028656005859375,
0.039794921875,
-0.002105712890625,
-0.0168914794921875,
0.036590576171875,
-0.0014944076538085938,
0.0005240440368652344,
0.036102294921875,
-0.003444671630859375,
-0.01428985595703125,
0.005802154541015625,
0.0209503173828125,
-0.0173492431640625,
-0.00505828857421875,
-0.031707763671875,
-0.00466156005859375,
-0.01288604736328125,
0.0399169921875,
-0.0158233642578125,
-0.0097198486328125,
0.0130157470703125,
-0.0278778076171875,
0.007358551025390625,
0.0012464523315429688,
0.043670654296875,
0.0306396484375,
-0.00518798828125,
0.019073486328125,
0.055511474609375,
-0.0245208740234375,
0.004543304443359375,
0.00021457672119140625,
0.0250244140625,
0.0155181884765625,
-0.052764892578125,
-0.0287017822265625,
0.00492095947265625,
0.0175323486328125,
0.0026702880859375,
0.01010894775390625,
0.002635955810546875,
0.0191650390625,
-0.01279449462890625,
0.0035839080810546875,
0.025482177734375,
0.0016651153564453125,
-0.0271759033203125,
-0.0823974609375,
-0.0174102783203125,
-0.0259552001953125,
0.00083160400390625,
0.01556396484375,
-0.06060791015625,
0.0208892822265625,
0.00545501708984375,
0.05279541015625,
0.00832366943359375,
0.0379638671875,
-0.00571441650390625,
-0.00571441650390625,
0.0025348663330078125,
0.0180206298828125,
-0.0233612060546875,
-0.03125,
-0.00820159912109375,
0.020721435546875,
0.045989990234375,
-0.01313018798828125,
-0.0125274658203125,
0.0148773193359375,
-0.022125244140625,
0.0131683349609375,
0.039947509765625,
-0.0279541015625,
-0.06219482421875,
-0.01361846923828125,
0.018218994140625,
0.0250701904296875,
-0.046875,
-0.016082763671875,
0.01812744140625,
-0.02496337890625,
-0.0009703636169433594,
0.0236968994140625,
-0.040008544921875,
-0.0288543701171875,
-0.00007808208465576172,
0.0052490234375,
-0.054412841796875,
-0.01483917236328125,
0.0030193328857421875,
0.0193939208984375,
-0.0269317626953125,
0.0017070770263671875,
0.04144287109375,
0.0042266845703125,
-0.006572723388671875,
-0.0115814208984375,
-0.00743865966796875,
-0.0113067626953125,
-0.004993438720703125,
0.0265655517578125,
-0.0272216796875,
-0.00708770751953125,
-0.0160675048828125,
-0.057830810546875,
-0.032989501953125,
-0.004726409912109375,
-0.0111846923828125,
-0.045623779296875,
0.01129150390625,
0.0140228271484375,
0.0321044921875,
-0.0127716064453125,
-0.008758544921875,
0.0083160400390625,
0.0163726806640625,
-0.0030078887939453125,
0.04107666015625,
0.021942138671875,
0.04638671875,
-0.0321044921875,
0.07049560546875,
0.0211334228515625,
0.049072265625,
-0.00641632080078125,
-0.047119140625,
-0.0018968582153320312,
-0.027252197265625,
-0.0033206939697265625,
-0.022918701171875,
0.03790283203125,
0.04583740234375,
0.03955078125,
0.00713348388671875,
0.0290985107421875,
-0.052764892578125,
0.005191802978515625,
-0.02435302734375,
0.041107177734375,
-0.071044921875,
-0.045654296875,
0.043609619140625,
-0.010498046875,
0.01229095458984375,
0.0156707763671875,
-0.0162353515625,
0.0004944801330566406,
0.014068603515625,
-0.00788116455078125,
0.0053253173828125,
-0.0033016204833984375,
-0.01287841796875,
-0.0035877227783203125,
-0.0205078125,
0.0026950836181640625,
-0.008331298828125,
-0.0004944801330566406,
0.0316162109375,
0.0151214599609375,
-0.02587890625,
0.0034847259521484375,
0.0013856887817382812,
-0.01187896728515625,
-0.00611114501953125,
-0.01558685302734375,
-0.0139923095703125,
0.024078369140625,
0.052398681640625,
0.047760009765625,
-0.07122802734375,
0.00527191162109375,
0.0246124267578125,
-0.0364990234375,
-0.01522064208984375,
0.01025390625,
-0.01201629638671875,
-0.05853271484375,
-0.00965118408203125,
0.033447265625,
-0.0036411285400390625,
-0.010650634765625,
-0.0038604736328125,
-0.0183258056640625,
-0.035247802734375,
0.0027256011962890625,
0.033111572265625,
0.004726409912109375,
0.048858642578125,
0.0126495361328125,
0.0511474609375,
-0.02520751953125,
0.03472900390625,
-0.01165008544921875,
0.013519287109375,
-0.0269622802734375,
0.03533935546875,
-0.02734375,
0.014923095703125,
-0.040496826171875,
0.0482177734375,
0.037506103515625,
0.0367431640625,
0.01561737060546875,
-0.0423583984375,
0.02325439453125,
0.0166015625,
-0.01506805419921875,
-0.0258331298828125,
0.0203704833984375,
0.00630950927734375,
-0.0015974044799804688,
0.0194244384765625,
-0.00479888916015625,
-0.0416259765625,
-0.004375457763671875,
0.006092071533203125,
0.0745849609375,
-0.031463623046875,
-0.0187225341796875,
0.0284423828125,
-0.00295257568359375,
-0.01422882080078125,
-0.00244903564453125,
0.05914306640625,
-0.05548095703125,
-0.03790283203125,
0.01174163818359375,
-0.02008056640625,
-0.041351318359375,
-0.0200042724609375,
-0.104248046875,
0.142578125,
0.03558349609375,
0.0390625,
0.006988525390625,
0.0482177734375,
-0.07275390625,
0.004619598388671875,
-0.01071929931640625,
0.0758056640625,
0.042816162109375,
0.00328826904296875,
-0.04156494140625,
-0.018707275390625,
0.01265716552734375,
0.048492431640625,
-0.0134429931640625,
-0.00782012939453125,
-0.0203857421875,
-0.0029163360595703125,
0.03302001953125,
0.005550384521484375,
0.005916595458984375,
0.043792724609375,
-0.033233642578125,
0.0120697021484375,
0.0011758804321289062,
-0.10357666015625,
0.0011453628540039062,
-0.026763916015625,
-0.0010423660278320312,
-0.01323699951171875,
0.00396728515625,
0.0099029541015625,
0.01103973388671875,
-0.019134521484375,
-0.0041656494140625,
0.0020427703857421875,
-0.004077911376953125,
-0.0181884765625,
0.05426025390625,
-0.0460205078125,
-0.0242156982421875,
-0.0214385986328125,
-0.005535125732421875,
-0.005977630615234375,
0.0084075927734375,
-0.022735595703125,
0.05145263671875,
0.0318603515625,
0.0162353515625,
0.10394287109375,
-0.01995849609375,
0.0256500244140625,
-0.004940032958984375,
0.004291534423828125,
0.0278778076171875,
0.04931640625,
0.03424072265625,
0.01611328125,
0.0034465789794921875,
-0.0125579833984375,
0.0288848876953125,
-0.0193939208984375,
-0.0416259765625,
0.0158233642578125,
0.007663726806640625,
-0.01450347900390625,
-0.00623321533203125,
-0.00023877620697021484,
-0.0694580078125,
-0.008087158203125,
0.01009368896484375,
0.00037384033203125,
0.01146697998046875,
-0.01702880859375,
0.01329803466796875,
0.045989990234375,
-0.0041961669921875,
0.0013580322265625,
-0.01016998291015625,
0.01568603515625,
0.016326904296875,
0.0265350341796875,
-0.021026611328125,
0.05157470703125,
-0.0242156982421875,
0.0038585662841796875,
-0.0014934539794921875,
0.0015087127685546875,
0.003993988037109375,
-0.00017380714416503906,
-0.0269317626953125,
-0.038330078125,
0.0193328857421875,
0.041229248046875,
-0.0174560546875,
0.0252685546875,
0.040130615234375,
0.0447998046875,
-0.0400390625,
-0.0296173095703125,
0.005947113037109375,
-0.0328369140625,
-0.02703857421875,
-0.038330078125,
-0.01174163818359375,
0.00261688232421875,
0.0016527175903320312,
-0.0010995864868164062,
0.0024623870849609375,
0.0229644775390625,
-0.01544952392578125,
0.0313720703125,
-0.01129150390625,
-0.017791748046875,
0.055755615234375,
-0.003662109375,
0.06842041015625,
0.01259613037109375,
-0.061492919921875,
-0.033172607421875,
-0.033355712890625,
0.041717529296875,
-0.0043182373046875,
0.0272369384765625,
0.0224761962890625,
0.01111602783203125,
0.033233642578125,
0.0198211669921875,
-0.0227203369140625,
-0.01232147216796875,
0.01538848876953125,
0.039154052734375,
0.035491943359375,
0.050048828125,
-0.03302001953125,
-0.036285400390625,
-0.0268096923828125,
0.080810546875,
0.0181732177734375,
0.07366943359375,
-0.034393310546875,
0.040283203125,
0.01141357421875,
0.0237884521484375,
-0.02105712890625,
-0.00506591796875,
0.0013132095336914062,
-0.0121917724609375,
0.0304412841796875,
-0.008575439453125,
-0.038177490234375,
0.007328033447265625,
0.01381683349609375,
-0.0291290283203125,
-0.01444244384765625,
-0.034027099609375,
0.0220794677734375,
0.024322509765625,
0.01209259033203125,
-0.0239410400390625,
-0.0016918182373046875,
-0.01331329345703125,
-0.00951385498046875,
0.030059814453125,
0.0100555419921875,
0.006622314453125,
0.011749267578125,
0.042205810546875,
-0.027374267578125,
0.0235137939453125,
-0.007904052734375,
0.03106689453125,
0.033477783203125,
0.0447998046875,
-0.06524658203125,
0.058868408203125,
0.003673553466796875,
-0.005680084228515625,
0.0287017822265625,
0.06817626953125,
0.046783447265625,
-0.056549072265625,
0.007221221923828125,
0.0022144317626953125,
0.0238037109375,
-0.01104736328125,
0.0115814208984375,
0.0004849433898925781,
-0.00054168701171875,
0.0048828125,
-0.0154266357421875,
-0.029266357421875,
-0.028045654296875,
0.0014801025390625,
0.006931304931640625,
-0.0186614990234375,
-0.048309326171875,
-0.045135498046875,
-0.0160064697265625,
0.01523590087890625,
0.0076751708984375,
-0.032135009765625,
0.0241241455078125,
-0.00560760498046875,
-0.01129913330078125,
-0.005115509033203125,
-0.034820556640625,
-0.01076507568359375,
0.0022525787353515625,
-0.0438232421875,
-0.056365966796875,
-0.05340576171875,
0.02618408203125,
-0.0650634765625,
0.006191253662109375,
0.039154052734375,
-0.0166168212890625,
-0.02008056640625,
-0.032470703125,
-0.003509521484375,
0.0228424072265625,
-0.01451873779296875,
-0.05438232421875,
-0.0269622802734375,
-0.0068511962890625,
0.0288543701171875,
-0.0019483566284179688,
0.019317626953125,
-0.0640869140625,
-0.0184173583984375,
-0.019805908203125,
0.021636962890625,
0.0379638671875,
-0.0299224853515625,
-0.09130859375,
0.0286102294921875,
-0.022216796875,
-0.0297088623046875,
0.01751708984375,
-0.0166778564453125,
-0.02764892578125,
0.001312255859375,
0.006969451904296875,
-0.00675201416015625,
0.0014505386352539062,
0.037689208984375,
-0.04779052734375,
0.03155517578125,
0.00353240966796875,
-0.06219482421875,
-0.016632080078125,
-0.0288543701171875,
-0.0086822509765625,
-0.0281982421875,
-0.0052642822265625,
0.0031185150146484375,
0.024383544921875,
0.06097412109375,
-0.0038013458251953125,
-0.014556884765625,
-0.00917816162109375,
-0.06072998046875,
-0.02069091796875,
0.033294677734375,
-0.0560302734375,
-0.00839996337890625,
0.10906982421875,
0.0755615234375,
0.031829833984375,
-0.03070068359375,
0.0257568359375,
0.0052642822265625,
-0.017974853515625,
-0.019317626953125,
0.00820159912109375,
-0.041229248046875,
-0.03521728515625,
-0.0123443603515625,
-0.0286407470703125,
0.0075836181640625,
-0.0391845703125,
-0.0487060546875,
0.0058441162109375,
-0.036956787109375,
0.0057220458984375,
-0.04803466796875,
0.030670166015625,
0.09521484375,
-0.047607421875,
0.032196044921875,
0.0010004043579101562,
-0.014068603515625,
0.076904296875,
-0.0013713836669921875,
0.01161956787109375,
-0.00666046142578125,
-0.03076171875,
-0.0021877288818359375,
0.000980377197265625,
0.033935546875,
-0.00806427001953125,
-0.031280517578125,
0.014678955078125,
0.0147552490234375,
-0.0191650390625,
0.00864410400390625,
0.01053619384765625,
0.0091705322265625,
-0.035858154296875,
0.07373046875,
-0.03173828125,
-0.022308349609375,
-0.0308990478515625,
0.008270263671875,
-0.039031982421875,
0.020751953125,
0.007617950439453125,
-0.007335662841796875,
-0.0024261474609375,
-0.007358551025390625,
-0.0143890380859375,
-0.04437255859375,
0.0178070068359375,
-0.03204345703125,
-0.00844573974609375,
0.01287841796875
] |
405c1c9f15b57ca23dea77b8e9b2b108ba9d59fb
|
Wordpress Stackexchange
Q: Action hook on Edit custom post type? Is there an explicit action hook that will fire when (or just before) the admin Edit page renders for a custom post type? Something similar to {$new_status}_{$post->post_type}?
I'm trying to find the least obtrusive place to insert my add_meta_box() registration so that it's not calling that function on every page refresh, but only when it's needed (ie: the user wants to create a new custom post or edit an existing custom post).
Thanks for your thoughts / code snippets!
A: register_post_type() has a registration option called 'register_meta_box_cb'. Set that to a valid callback and it will call that function only when it is compiling the meta boxes for that post type's edit screen. Something like this:
register_post_type( 'foo', array(
'public' => true,
'label' => 'foo',
'register_meta_box_cb' => 'bar',
));
function bar(){
add_meta_box('blah', 'blah', /* etc */ );
}
|
Q: Action hook on Edit custom post type? Is there an explicit action hook that will fire when (or just before) the admin Edit page renders for a custom post type? Something similar to {$new_status}_{$post->post_type}?
I'm trying to find the least obtrusive place to insert my add_meta_box() registration so that it's not calling that function on every page refresh, but only when it's needed (ie: the user wants to create a new custom post or edit an existing custom post).
Thanks for your thoughts / code snippets!
A: register_post_type() has a registration option called 'register_meta_box_cb'. Set that to a valid callback and it will call that function only when it is compiling the meta boxes for that post type's edit screen. Something like this:
register_post_type( 'foo', array(
'public' => true,
'label' => 'foo',
'register_meta_box_cb' => 'bar',
));
function bar(){
add_meta_box('blah', 'blah', /* etc */ );
}
|
wordpress
|
{
"language": "en",
"length": 146,
"provenance": "stackexchange_00019.jsonl.gz:408623",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14782"
}
|
[
0.02947998046875,
0.0124359130859375,
-0.0173492431640625,
-0.0323486328125,
0.0206451416015625,
-0.0035076141357421875,
0.01015472412109375,
-0.01328277587890625,
-0.0095367431640625,
0.021636962890625,
-0.01229095458984375,
-0.0133209228515625,
0.01236724853515625,
-0.0257415771484375,
-0.00118255615234375,
-0.02911376953125,
0.01763916015625,
-0.0195770263671875,
0.019256591796875,
-0.0215911865234375,
0.0154876708984375,
-0.015655517578125,
0.04437255859375,
0.0140533447265625,
0.0269317626953125,
-0.047088623046875,
0.04510498046875,
-0.007144927978515625,
0.031219482421875,
0.0170135498046875,
0.0258636474609375,
-0.03851318359375,
0.004901885986328125,
0.0426025390625,
-0.0135650634765625,
0.06103515625,
0.005550384521484375,
0.0350341796875,
0.0313720703125,
0.0162811279296875,
0.022430419921875,
-0.00931549072265625,
0.01122283935546875,
0.004364013671875,
-0.022125244140625,
-0.04339599609375,
0.043365478515625,
0.0017118453979492188,
0.044281005859375,
-0.0187835693359375,
0.005176544189453125,
0.0032062530517578125,
0.0234832763671875,
-0.044097900390625,
-0.0257720947265625,
-0.0089263916015625,
-0.051177978515625,
0.0013456344604492188,
0.0399169921875,
0.05450439453125,
-0.00589752197265625,
-0.03875732421875,
-0.0007958412170410156,
-0.06292724609375,
-0.002498626708984375,
0.001857757568359375,
-0.0292510986328125,
0.003910064697265625,
-0.05511474609375,
-0.00240325927734375,
0.046600341796875,
-0.0615234375,
-0.004795074462890625,
0.011932373046875,
0.0041351318359375,
-0.025177001953125,
0.0108795166015625,
-0.006587982177734375,
0.003814697265625,
0.03338623046875,
0.019622802734375,
-0.0019588470458984375,
0.04132080078125,
-0.012176513671875,
-0.009979248046875,
0.0031871795654296875,
-0.0192718505859375,
0.0003638267517089844,
-0.038665771484375,
-0.04742431640625,
-0.03082275390625,
-0.05889892578125,
-0.024749755859375,
-0.0215606689453125,
-0.00467681884765625,
-0.044097900390625,
0.01067352294921875,
0.021759033203125,
0.008819580078125,
-0.017425537109375,
0.0141143798828125,
-0.040740966796875,
0.0021190643310546875,
-0.0215301513671875,
0.023223876953125,
0.046234130859375,
-0.0216064453125,
-0.040618896484375,
0.02581787109375,
0.025604248046875,
0.00450897216796875,
-0.031494140625,
-0.00580596923828125,
0.010650634765625,
-0.0269317626953125,
-0.015716552734375,
-0.02325439453125,
-0.0150146484375,
-0.0251922607421875,
-0.01434326171875,
0.01345062255859375,
0.005886077880859375,
0.08416748046875,
-0.035675048828125,
-0.00458526611328125,
-0.011993408203125,
-0.06182861328125,
-0.060333251953125,
0.0154876708984375,
-0.004184722900390625,
-0.020965576171875,
0.0042724609375,
0.07049560546875,
0.04168701171875,
0.00875091552734375,
-0.0224761962890625,
0.006961822509765625,
-0.0014181137084960938,
-0.0003323554992675781,
-0.002445220947265625,
-0.01531219482421875,
-0.02947998046875,
-0.012451171875,
-0.0115203857421875,
0.0272369384765625,
0.044403076171875,
0.001056671142578125,
-0.024627685546875,
0.02777099609375,
-0.0189208984375,
-0.0172576904296875,
-0.07159423828125,
0.05462646484375,
0.012939453125,
-0.005893707275390625,
0.0113067626953125,
0.0665283203125,
-0.0247650146484375,
-0.056793212890625,
-0.043609619140625,
0.019805908203125,
-0.0181427001953125,
-0.007007598876953125,
-0.01406097412109375,
-0.06195068359375,
0.038360595703125,
-0.0270233154296875,
-0.006374359130859375,
0.0225982666015625,
0.0040740966796875,
0.06524658203125,
0.0076141357421875,
0.0041046142578125,
-0.017547607421875,
-0.01503753662109375,
-0.036773681640625,
0.007808685302734375,
0.03515625,
0.015167236328125,
-0.00795745849609375,
-0.019866943359375,
-0.036590576171875,
0.04803466796875,
-0.022369384765625,
-0.044891357421875,
0.051422119140625,
0.02191162109375,
0.06597900390625,
-0.0138702392578125,
0.017120361328125,
0.0235443115234375,
0.03948974609375,
-0.033477783203125,
-0.0142974853515625,
0.0023670196533203125,
0.0126953125,
0.0019245147705078125,
-0.003345489501953125,
-0.00782012939453125,
0.0206146240234375,
-0.028472900390625,
-0.003971099853515625,
-0.0028705596923828125,
0.0105743408203125,
-0.046142578125,
0.0115966796875,
-0.033203125,
0.05810546875,
0.00815582275390625,
0.0017261505126953125,
0.0032958984375,
-0.020721435546875,
-0.004077911376953125,
-0.0164947509765625,
-0.023529052734375,
0.0165863037109375,
-0.0228271484375,
0.044647216796875,
0.004291534423828125,
0.0262451171875,
0.021484375,
-0.03717041015625,
0.007709503173828125,
-0.0010080337524414062,
0.057586669921875,
0.0229949951171875,
-0.030242919921875,
-0.013397216796875,
0.007843017578125,
0.036651611328125,
-0.08636474609375,
0.0452880859375,
-0.0289306640625,
-0.0272216796875,
-0.045928955078125,
-0.0304107666015625,
-0.0213775634765625,
-0.06549072265625,
0.0284423828125,
0.067138671875,
0.019683837890625,
-0.0007042884826660156,
0.00943756103515625,
0.04681396484375,
0.016998291015625,
0.00832366943359375,
0.0411376953125,
0.0042724609375,
-0.0250701904296875,
0.040771484375,
-0.041717529296875,
0.04437255859375,
0.0133056640625,
-0.035400390625,
-0.009490966796875,
0.034393310546875,
-0.01340484619140625,
-0.035308837890625,
0.0134124755859375,
-0.020355224609375,
0.0210418701171875,
-0.08026123046875,
-0.06243896484375,
-0.01506805419921875,
0.0379638671875,
-0.0229949951171875,
0.0560302734375,
0.0265960693359375,
-0.01163482666015625,
-0.0268707275390625,
0.0243377685546875,
0.033905029296875,
-0.005825042724609375,
-0.0020084381103515625,
0.02886962890625,
0.00164031982421875,
-0.04937744140625,
0.0247802734375,
0.01172637939453125,
-0.012451171875,
-0.03533935546875,
-0.0103759765625,
-0.045196533203125,
-0.0157470703125,
0.0159454345703125,
-0.058349609375,
-0.0017566680908203125,
-0.0275726318359375,
0.0115203857421875,
-0.042327880859375,
-0.0023212432861328125,
0.007274627685546875,
-0.0308990478515625,
0.03277587890625,
0.002044677734375,
-0.04730224609375,
0.01245880126953125,
-0.03948974609375,
0.050323486328125,
-0.051300048828125,
0.0477294921875,
0.06695556640625,
-0.060302734375,
0.051544189453125,
0.0001895427703857422,
-0.0013952255249023438,
-0.021697998046875,
0.037628173828125,
0.01042938232421875,
-0.057281494140625,
0.010589599609375,
0.0229644775390625,
0.0304107666015625,
0.04095458984375,
-0.00824737548828125,
-0.03131103515625,
0.0083160400390625,
0.0243377685546875,
-0.0197601318359375,
-0.0244293212890625,
-0.00740814208984375,
-0.0401611328125,
0.0257568359375,
-0.032379150390625,
-0.0034942626953125,
-0.01166534423828125,
-0.01910400390625,
0.0099029541015625,
-0.0133819580078125,
0.004665374755859375,
-0.004856109619140625,
-0.03851318359375,
-0.040924072265625,
-0.05853271484375,
0.009857177734375,
-0.00017821788787841797,
0.0032596588134765625,
0.0948486328125,
0.0103607177734375,
-0.0865478515625,
0.01322174072265625,
-0.0221710205078125,
-0.0257110595703125,
0.057952880859375,
0.021759033203125,
-0.047088623046875,
0.041046142578125,
-0.0015802383422851562,
-0.0036869049072265625,
0.0213775634765625,
-0.0083465576171875,
-0.028564453125,
-0.0240020751953125,
-0.045501708984375,
0.016845703125,
0.045013427734375,
0.0134429931640625,
-0.016448974609375,
0.059967041015625,
-0.0435791015625,
0.023468017578125,
0.0019426345825195312,
-0.0007815361022949219,
-0.033111572265625,
-0.01406097412109375,
-0.027099609375,
-0.0225677490234375,
0.0244598388671875,
0.01145172119140625,
0.015960693359375,
0.045440673828125,
0.008270263671875,
0.002246856689453125,
-0.0302886962890625,
-0.02490234375,
-0.046783447265625,
-0.0189666748046875,
-0.01019287109375,
0.05694580078125,
0.0010862350463867188,
0.04534912109375,
-0.01316070556640625,
0.049407958984375,
-0.062469482421875,
-0.0487060546875,
0.06024169921875,
-0.0161285400390625,
0.017303466796875,
-0.05657958984375,
-0.032684326171875,
-0.026885986328125,
0.09466552734375,
-0.035064697265625,
0.00635528564453125,
-0.00846099853515625,
0.01432037353515625,
-0.0223388671875,
-0.045654296875,
-0.045745849609375,
-0.001316070556640625,
-0.08831787109375,
0.01461029052734375,
0.004791259765625,
-0.042266845703125,
-0.0367431640625,
0.0276336669921875,
-0.094482421875,
-0.032135009765625,
0.053192138671875,
-0.06829833984375,
0.00679779052734375,
0.05340576171875,
0.0213623046875,
-0.038299560546875,
-0.04046630859375,
-0.00548553466796875,
-0.0931396484375,
-0.0027217864990234375,
-0.03985595703125,
0.0545654296875,
0.0234527587890625,
-0.03302001953125,
-0.0248565673828125,
0.015350341796875,
0.045654296875,
-0.0096282958984375,
0.036956787109375,
-0.00160980224609375,
0.01470184326171875,
-0.040557861328125,
0.0183563232421875,
-0.049896240234375,
-0.0074462890625,
0.0102691650390625,
-0.02301025390625,
0.0291748046875,
-0.0153045654296875,
-0.04119873046875,
0.032196044921875,
-0.05218505859375,
-0.039276123046875,
-0.03662109375,
-0.022857666015625,
0.0207061767578125,
-0.0010080337524414062,
-0.0009016990661621094,
-0.0640869140625,
-0.0631103515625,
-0.036529541015625,
-0.053863525390625,
-0.01873779296875,
0.033966064453125,
0.05242919921875,
0.043212890625,
0.028289794921875,
-0.0004074573516845703,
0.016021728515625,
0.038482666015625,
0.0173797607421875,
0.0258636474609375,
0.016357421875,
-0.010040283203125,
0.0193023681640625,
0.0258026123046875,
0.002410888671875,
-0.045989990234375,
0.05419921875,
0.00433349609375,
0.0164642333984375,
-0.010467529296875,
-0.02801513671875,
0.052825927734375,
0.01151275634765625,
-0.016143798828125,
-0.0236358642578125,
-0.008514404296875,
0.05096435546875,
-0.04248046875,
0.0599365234375,
-0.036468505859375,
0.043975830078125,
-0.0052490234375,
0.057037353515625,
0.0206756591796875,
0.028045654296875,
0.006252288818359375,
-0.052825927734375,
-0.040069580078125,
-0.0267791748046875,
0.003925323486328125,
-0.0199737548828125,
-0.0089569091796875,
-0.005695343017578125,
0.021514892578125,
-0.02734375,
0.005016326904296875,
0.005474090576171875,
-0.01873779296875,
-0.0222320556640625,
-0.05523681640625,
-0.031402587890625,
0.010986328125,
0.057708740234375,
0.0296783447265625,
0.0007333755493164062,
0.034637451171875,
0.049835205078125,
0.0203857421875,
-0.0212860107421875,
0.042999267578125,
0.0168609619140625,
-0.0325927734375,
0.002605438232421875,
0.03338623046875,
-0.0299835205078125,
0.00972747802734375,
0.007709503173828125,
0.0198516845703125,
-0.0202484130859375,
-0.01279449462890625,
0.0736083984375,
0.034332275390625,
0.027252197265625,
0.0325927734375,
-0.023406982421875,
-0.00882720947265625,
-0.0013151168823242188,
-0.0631103515625,
-0.01824951171875,
0.01108551025390625,
0.0310821533203125,
0.023040771484375,
0.00551605224609375,
-0.01110076904296875,
0.014404296875,
-0.01157379150390625,
-0.034759521484375,
0.046478271484375,
0.04132080078125,
-0.056182861328125,
-0.004665374755859375,
-0.01061248779296875,
-0.00763702392578125,
-0.01218414306640625,
-0.01548004150390625,
0.0361328125,
0.0182952880859375,
0.06585693359375,
-0.04638671875,
0.0106658935546875,
0.019256591796875,
0.0229034423828125,
-0.038818359375,
-0.0154571533203125,
0.02978515625,
0.00989532470703125,
-0.0009298324584960938,
-0.007404327392578125,
-0.0271453857421875,
0.01322174072265625,
-0.0191497802734375,
0.00616455078125,
-0.0300750732421875,
0.0174407958984375,
-0.01445770263671875,
0.0005598068237304688,
0.07049560546875,
0.020904541015625,
-0.0212249755859375,
0.007076263427734375,
-0.0516357421875,
-0.0250091552734375,
-0.028900146484375,
-0.06475830078125,
-0.01180267333984375,
-0.02044677734375,
0.00928497314453125,
0.0265045166015625,
-0.0161590576171875,
-0.02294921875,
-0.008148193359375,
-0.001628875732421875,
0.0100555419921875,
0.046966552734375,
-0.0300750732421875,
0.04364013671875,
-0.00000667572021484375,
0.05242919921875,
-0.01087188720703125,
-0.0096435546875,
-0.0006971359252929688,
0.00420379638671875,
-0.01043701171875,
-0.025787353515625,
0.019683837890625,
-0.011505126953125,
0.029266357421875,
0.03857421875,
0.057373046875,
0.007648468017578125,
-0.0251007080078125,
0.00603485107421875,
0.005603790283203125,
-0.0288238525390625,
0.048095703125,
0.0226593017578125,
0.0158538818359375,
-0.021087646484375,
-0.044586181640625,
-0.024017333984375,
0.0221405029296875,
0.0149078369140625,
0.0294342041015625,
-0.035614013671875,
0.00922393798828125,
0.00562286376953125,
-0.06719970703125,
0.03326416015625,
0.0391845703125,
0.0262451171875,
0.052978515625,
-0.03271484375,
0.0267333984375,
0.035888671875,
-0.012176513671875,
-0.027435302734375,
-0.02447509765625,
0.032989501953125,
0.00896453857421875,
-0.005275726318359375,
0.05694580078125,
-0.002330780029296875,
0.027374267578125,
0.0672607421875,
0.082763671875,
-0.0902099609375,
0.01056671142578125,
0.026641845703125,
-0.00844573974609375,
0.0472412109375,
-0.01531982421875,
-0.01200103759765625,
-0.02362060546875,
0.034912109375,
-0.005817413330078125,
-0.03375244140625,
0.01244354248046875,
0.0035457611083984375,
-0.012298583984375,
-0.0197601318359375,
0.001247406005859375,
-0.005733489990234375,
0.04583740234375,
0.0043182373046875,
-0.03948974609375,
0.0274200439453125,
-0.0165863037109375,
0.006351470947265625,
-0.009796142578125,
-0.01540374755859375,
-0.04461669921875,
-0.0031604766845703125,
-0.0178680419921875,
-0.00591278076171875,
0.0110015869140625,
0.0166168212890625,
0.0260009765625,
0.04583740234375,
-0.0003101825714111328,
-0.01007080078125,
0.0034465789794921875,
-0.0039520263671875,
-0.08306884765625,
-0.041168212890625,
-0.004817962646484375,
0.0474853515625,
-0.0115966796875,
0.043243408203125,
-0.0015897750854492188,
-0.036102294921875,
0.006587982177734375,
-0.01230621337890625,
0.060455322265625,
-0.01971435546875,
-0.0231781005859375,
0.032318115234375,
-0.035125732421875,
-0.023193359375,
0.011627197265625,
-0.01441192626953125,
-0.0221710205078125,
-0.0238494873046875,
-0.02813720703125,
-0.072021484375,
-0.007610321044921875,
-0.0237579345703125,
-0.035980224609375,
0.073974609375,
-0.00787353515625,
0.0028667449951171875,
0.007442474365234375,
0.0273284912109375,
-0.01537322998046875,
0.0240936279296875,
-0.030120849609375,
0.064697265625,
0.023681640625,
0.015167236328125,
-0.0474853515625,
-0.007411956787109375,
-0.0062408447265625,
0.0199127197265625,
0.037811279296875,
0.01081085205078125,
-0.02569580078125,
-0.00838470458984375,
0.01239013671875,
0.0226287841796875,
-0.00926971435546875,
0.035186767578125,
-0.00444793701171875,
0.038299560546875,
0.049560546875,
-0.01030731201171875,
0.045989990234375,
-0.0185699462890625,
-0.040252685546875,
0.0084228515625,
0.01036834716796875,
0.00765228271484375,
0.00921630859375,
0.0047454833984375,
-0.0193939208984375,
0.00467681884765625,
0.015625,
-0.015838623046875,
-0.01340484619140625,
0.01092529296875,
0.0120086669921875,
0.0005922317504882812,
0.0027332305908203125,
-0.0323486328125,
0.041839599609375,
0.0097198486328125,
0.01161956787109375,
-0.000446319580078125,
0.00482940673828125,
0.00859832763671875,
-0.007732391357421875,
-0.005695343017578125,
0.04425048828125,
-0.002971649169921875,
0.0687255859375,
-0.0012884140014648438,
0.0105743408203125,
-0.0751953125,
0.007472991943359375,
0.045196533203125,
0.084716796875,
-0.061492919921875,
-0.06427001953125,
0.0003139972686767578,
0.00635528564453125,
0.0135955810546875,
0.0345458984375,
0.0333251953125,
-0.03582763671875,
0.0087738037109375,
-0.03466796875,
-0.016937255859375,
-0.005779266357421875,
0.022674560546875,
-0.015350341796875,
-0.0016832351684570312,
0.0001983642578125,
-0.0162811279296875,
-0.05615234375,
-0.0014314651489257812,
0.030242919921875,
0.06158447265625,
0.0252227783203125,
0.05633544921875,
0.014862060546875,
-0.0252532958984375,
-0.0141754150390625,
-0.0035610198974609375,
-0.0211334228515625,
0.02545166015625,
-0.05621337890625,
-0.038909912109375,
0.0174407958984375,
0.047607421875,
0.0318603515625,
0.045928955078125,
0.047119140625,
0.02239990234375,
0.002254486083984375,
0.011871337890625,
0.02734375,
-0.012298583984375,
-0.0083770751953125,
-0.03680419921875,
0.0266876220703125,
0.01165771484375,
0.0080108642578125,
-0.01171112060546875,
0.0228729248046875,
0.0208892822265625,
-0.009490966796875,
0.0296478271484375,
0.005580902099609375,
-0.035003662109375,
0.0390625,
0.0006952285766601562,
0.08245849609375,
0.0170745849609375,
-0.0799560546875,
-0.01248931884765625,
-0.0179595947265625,
-0.080810546875,
0.0328369140625,
0.04669189453125,
-0.035552978515625,
0.0168914794921875,
-0.00720977783203125,
0.00914764404296875,
0.0097198486328125,
-0.0013704299926757812,
-0.0175933837890625,
-0.0039825439453125,
0.04229736328125,
-0.00583648681640625,
-0.005947113037109375,
0.01473236083984375,
0.021636962890625,
0.0048980712890625,
-0.01419830322265625,
0.06573486328125,
-0.0163421630859375,
-0.0018444061279296875,
0.01494598388671875,
0.0159454345703125,
-0.02825927734375,
-0.0160675048828125,
0.02587890625,
-0.031280517578125,
0.0110321044921875,
0.004199981689453125,
-0.0177154541015625,
0.045867919921875,
0.02130126953125,
-0.00930023193359375,
0.015838623046875,
0.0127105712890625,
0.01444244384765625,
-0.00420379638671875,
-0.01215362548828125,
-0.02557373046875,
-0.023101806640625,
-0.0185699462890625,
-0.002838134765625,
0.01593017578125,
0.034149169921875,
0.0215606689453125,
0.0102386474609375,
-0.02679443359375,
-0.0281829833984375,
0.00653839111328125,
-0.01143646240234375,
0.004779815673828125,
0.0216522216796875,
-0.04852294921875,
0.020965576171875,
0.007335662841796875,
-0.014892578125,
0.0272369384765625,
0.012908935546875,
0.0128326416015625,
0.007843017578125,
-0.0279083251953125,
-0.0185394287109375,
0.0179901123046875,
0.043121337890625,
-0.014892578125,
0.0138397216796875,
0.00923919677734375,
-0.00344085693359375,
-0.0186004638671875,
0.00698089599609375,
-0.03863525390625,
-0.038665771484375,
0.004154205322265625,
0.0121612548828125,
-0.0105133056640625,
-0.03961181640625,
-0.0447998046875,
0.00701904296875,
0.0281524658203125,
-0.001537322998046875,
-0.05322265625,
0.0298614501953125,
-0.0335693359375,
0.04998779296875,
-0.0016851425170898438,
-0.02142333984375,
0.022308349609375,
0.0687255859375,
-0.006465911865234375,
-0.00872039794921875,
-0.00252532958984375,
0.00839996337890625,
-0.002857208251953125,
0.006328582763671875,
0.0225982666015625,
-0.0227508544921875,
-0.05157470703125,
-0.0083160400390625,
-0.007572174072265625,
0.0270843505859375,
0.034027099609375,
-0.029388427734375,
-0.01348114013671875,
0.033050537109375,
0.001659393310546875,
-0.042449951171875,
-0.006694793701171875,
-0.004055023193359375,
0.00823211669921875,
-0.016082763671875,
0.0249786376953125,
0.045440673828125,
-0.005756378173828125,
-0.058197021484375,
0.038848876953125,
-0.01296234130859375,
-0.0258026123046875,
-0.05560302734375,
0.03070068359375,
0.01412200927734375,
0.00946044921875,
-0.0235748291015625,
-0.005474090576171875,
-0.0236663818359375,
0.008697509765625,
0.015655517578125,
-0.0205841064453125,
0.07373046875,
-0.0273895263671875,
-0.030487060546875,
-0.0190277099609375,
-0.003631591796875,
-0.007656097412109375,
-0.004642486572265625,
-0.0207366943359375,
0.0357666015625,
0.01355743408203125,
-0.046966552734375,
0.004306793212890625,
0.0292816162109375,
0.0303955078125,
-0.004840850830078125,
-0.07623291015625,
-0.0167388916015625,
-0.032989501953125,
0.08319091796875,
0.003917694091796875,
0.01288604736328125,
-0.025299072265625,
0.027801513671875,
-0.0280609130859375,
-0.063232421875,
-0.0274810791015625,
0.01641845703125,
-0.0408935546875,
-0.004459381103515625,
0.004978179931640625,
-0.00824737548828125,
-0.0411376953125,
0.0174407958984375,
-0.035430908203125,
-0.0024700164794921875,
0.028717041015625,
0.002918243408203125,
-0.037322998046875,
-0.004241943359375,
0.049713134765625,
-0.01788330078125,
0.0199737548828125,
0.0239410400390625,
0.00501251220703125,
0.03533935546875,
0.045867919921875,
0.01239013671875,
0.0099945068359375,
-0.0511474609375,
0.01491546630859375,
-0.01313018798828125,
0.053070068359375,
-0.05364990234375,
-0.027618408203125,
-0.00835418701171875,
0.03778076171875,
-0.017547607421875,
0.046966552734375,
0.012420654296875,
0.059906005859375,
0.0192108154296875,
0.053436279296875,
-0.0243682861328125,
0.062042236328125,
-0.01425933837890625,
0.018524169921875,
0.007534027099609375,
0.0155487060546875,
0.05047607421875,
-0.0014772415161132812,
0.00724029541015625,
0.0012569427490234375,
0.006320953369140625,
-0.0285797119140625,
0.0094451904296875,
-0.00023734569549560547,
-0.00827789306640625,
0.015869140625
] |
0bc72234d3da544acdc4e1650681c17ff1e9f8a0
|
Wordpress Stackexchange
Q: Difference between after_setup_theme and init action hooks? What is the difference between the after_setup_theme and init action hooks? It seems they are both called right before any page in WordPress is loaded (even admin pages).
A: after_setup_theme action hook is fired before the actual $wp->init(); which Set up the current user and only then init action hook is fired which means that they are pretty much the same with one major difference and that is at after_setup_theme the user is not authenticated, and at init he is (assuming that we are talking about an actual user).
|
Q: Difference between after_setup_theme and init action hooks? What is the difference between the after_setup_theme and init action hooks? It seems they are both called right before any page in WordPress is loaded (even admin pages).
A: after_setup_theme action hook is fired before the actual $wp->init(); which Set up the current user and only then init action hook is fired which means that they are pretty much the same with one major difference and that is at after_setup_theme the user is not authenticated, and at init he is (assuming that we are talking about an actual user).
|
wordpress
|
{
"language": "en",
"length": 97,
"provenance": "stackexchange_00019.jsonl.gz:408628",
"question_score": "13",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14797"
}
|
[
0.049041748046875,
-0.015869140625,
0.0193023681640625,
-0.058013916015625,
-0.00894927978515625,
-0.0002465248107910156,
0.009185791015625,
-0.02105712890625,
-0.037750244140625,
0.032623291015625,
-0.007152557373046875,
0.0740966796875,
0.0031585693359375,
-0.01485443115234375,
0.048370361328125,
0.004642486572265625,
0.0325927734375,
-0.03753662109375,
0.0164031982421875,
-0.03564453125,
0.0264892578125,
-0.020355224609375,
0.022247314453125,
0.05963134765625,
0.046966552734375,
-0.06402587890625,
0.020111083984375,
0.0018739700317382812,
0.00969696044921875,
-0.014801025390625,
0.027252197265625,
-0.00798797607421875,
0.033721923828125,
0.017669677734375,
-0.023040771484375,
0.022003173828125,
-0.0251617431640625,
0.020172119140625,
0.005809783935546875,
0.00628662109375,
0.0212554931640625,
-0.0172119140625,
0.02734375,
0.01267242431640625,
-0.0013952255249023438,
-0.0244293212890625,
0.024383544921875,
-0.042877197265625,
0.014678955078125,
-0.074951171875,
0.00658416748046875,
-0.0004191398620605469,
0.0247955322265625,
-0.018951416015625,
-0.015716552734375,
0.0240325927734375,
-0.03753662109375,
0.01499176025390625,
0.04412841796875,
0.058074951171875,
-0.01464080810546875,
-0.0217742919921875,
-0.01544952392578125,
-0.08624267578125,
0.0236053466796875,
0.009552001953125,
-0.0128326416015625,
0.0288238525390625,
-0.046844482421875,
0.0191497802734375,
0.0203857421875,
-0.051513671875,
-0.059661865234375,
-0.004695892333984375,
-0.0181427001953125,
0.0200653076171875,
0.028472900390625,
-0.0159912109375,
-0.02642822265625,
0.057159423828125,
0.01220703125,
-0.00545501708984375,
-0.01424407958984375,
-0.033447265625,
0.0211639404296875,
-0.0182647705078125,
0.0020046234130859375,
-0.0054779052734375,
0.004077911376953125,
-0.0293731689453125,
-0.019805908203125,
-0.0031948089599609375,
-0.0083160400390625,
-0.0021514892578125,
-0.021728515625,
-0.0257415771484375,
0.00042891502380371094,
0.036407470703125,
-0.0215606689453125,
-0.00015544891357421875,
-0.0195465087890625,
-0.01015472412109375,
0.0037326812744140625,
-0.040252685546875,
0.004123687744140625,
0.006134033203125,
0.0017518997192382812,
-0.0021648406982421875,
0.0192108154296875,
0.020843505859375,
-0.0266265869140625,
0.01192474365234375,
0.0035037994384765625,
-0.0141143798828125,
-0.0003380775451660156,
-0.01230621337890625,
-0.04351806640625,
0.0548095703125,
0.01503753662109375,
0.018768310546875,
-0.01094818115234375,
0.001064300537109375,
0.0088043212890625,
0.00994110107421875,
-0.0005207061767578125,
0.0200042724609375,
-0.006443023681640625,
-0.034454345703125,
-0.03729248046875,
0.047149658203125,
-0.01406097412109375,
-0.004886627197265625,
0.0261077880859375,
0.015411376953125,
-0.01163482666015625,
-0.03265380859375,
0.00926971435546875,
0.02911376953125,
-0.0179443359375,
0.02691650390625,
-0.018402099609375,
-0.07135009765625,
-0.04559326171875,
-0.0028705596923828125,
-0.0068206787109375,
-0.0037555694580078125,
-0.008026123046875,
0.0196990966796875,
0.02459716796875,
-0.039947509765625,
0.036285400390625,
-0.060577392578125,
-0.0114898681640625,
0.024505615234375,
0.0218658447265625,
0.031494140625,
0.0010480880737304688,
0.01788330078125,
0.01407623291015625,
0.02545166015625,
0.005550384521484375,
-0.01557159423828125,
-0.035858154296875,
-0.023040771484375,
-0.0765380859375,
0.01068878173828125,
0.0308380126953125,
-0.00008815526962280273,
0.029510498046875,
0.0298919677734375,
0.0517578125,
0.016021728515625,
0.04962158203125,
0.0236358642578125,
-0.0032711029052734375,
-0.005077362060546875,
-0.021697998046875,
0.028106689453125,
0.0340576171875,
-0.03912353515625,
-0.0264129638671875,
-0.02923583984375,
0.05462646484375,
-0.007305145263671875,
-0.051910400390625,
0.0161285400390625,
0.00557708740234375,
0.0330810546875,
0.032379150390625,
0.00391387939453125,
0.01337432861328125,
0.0022563934326171875,
-0.0091094970703125,
0.04852294921875,
0.01102447509765625,
-0.039215087890625,
-0.0018062591552734375,
-0.0012264251708984375,
-0.014251708984375,
-0.037139892578125,
0.001239776611328125,
0.032684326171875,
0.00249481201171875,
0.00467681884765625,
-0.041290283203125,
0.041412353515625,
-0.02679443359375,
0.04498291015625,
-0.01078033447265625,
0.011962890625,
0.01004791259765625,
-0.01316070556640625,
0.01165008544921875,
-0.030029296875,
0.0005450248718261719,
0.006908416748046875,
-0.018798828125,
0.04022216796875,
0.015869140625,
0.0307464599609375,
0.0302886962890625,
-0.0158843994140625,
0.0243072509765625,
-0.0245208740234375,
0.072021484375,
-0.00730133056640625,
0.011566162109375,
-0.0374755859375,
0.05743408203125,
0.0007510185241699219,
-0.0212554931640625,
0.026885986328125,
-0.003406524658203125,
0.006633758544921875,
-0.051727294921875,
-0.00623321533203125,
-0.017669677734375,
-0.031646728515625,
0.00464630126953125,
0.052459716796875,
0.0185546875,
0.043365478515625,
-0.035003662109375,
-0.02874755859375,
0.04339599609375,
-0.0195770263671875,
0.01261138916015625,
-0.0164947509765625,
0.0132293701171875,
0.05487060546875,
0.0171051025390625,
0.023193359375,
-0.00521087646484375,
0.0084075927734375,
0.007030487060546875,
0.0269775390625,
-0.023101806640625,
-0.053619384765625,
0.01210784912109375,
-0.00601959228515625,
0.03338623046875,
-0.057281494140625,
-0.051361083984375,
-0.0166015625,
0.03814697265625,
-0.032928466796875,
0.0004820823669433594,
-0.0121917724609375,
-0.034454345703125,
-0.0011568069458007812,
0.045684814453125,
0.0039215087890625,
-0.01007080078125,
0.044158935546875,
0.0196990966796875,
-0.01282501220703125,
-0.0229644775390625,
-0.0050048828125,
-0.016693115234375,
0.01468658447265625,
-0.046722412109375,
-0.0419921875,
-0.0238800048828125,
-0.0042724609375,
0.005096435546875,
-0.0310516357421875,
0.029022216796875,
0.01194000244140625,
0.0258026123046875,
-0.007648468017578125,
0.0237884521484375,
-0.0292816162109375,
-0.057769775390625,
0.047210693359375,
-0.04473876953125,
-0.04571533203125,
-0.0714111328125,
-0.005645751953125,
-0.00347137451171875,
-0.0294647216796875,
0.038238525390625,
0.048980712890625,
-0.0205230712890625,
0.0148773193359375,
0.00030112266540527344,
-0.018096923828125,
0.0242767333984375,
-0.0136260986328125,
-0.0149993896484375,
-0.02838134765625,
-0.0285797119140625,
0.015899658203125,
0.0272369384765625,
0.041229248046875,
-0.0011529922485351562,
-0.026397705078125,
-0.0009794235229492188,
0.0196533203125,
-0.0179901123046875,
-0.030914306640625,
-0.03314208984375,
-0.083740234375,
0.08294677734375,
-0.056915283203125,
-0.01068115234375,
-0.03436279296875,
-0.0333251953125,
0.035369873046875,
-0.0153961181640625,
-0.0234832763671875,
0.05084228515625,
-0.01256561279296875,
-0.0028362274169921875,
-0.00453948974609375,
0.0240020751953125,
-0.0017414093017578125,
0.0153350830078125,
0.041717529296875,
0.00499725341796875,
-0.026763916015625,
0.0133056640625,
-0.00666046142578125,
-0.006870269775390625,
0.02105712890625,
-0.004131317138671875,
0.0156402587890625,
0.0153961181640625,
0.01953125,
-0.0009093284606933594,
-0.000005424022674560547,
-0.007068634033203125,
-0.044189453125,
-0.0096893310546875,
-0.030670166015625,
-0.00852203369140625,
0.06671142578125,
0.0189208984375,
-0.041961669921875,
0.00504302978515625,
-0.07635498046875,
-0.0089263916015625,
0.007778167724609375,
-0.049530029296875,
0.02032470703125,
0.054473876953125,
-0.037750244140625,
0.0204620361328125,
-0.034393310546875,
-0.0297088623046875,
-0.0128173828125,
-0.010467529296875,
-0.0194854736328125,
0.05621337890625,
-0.0215301513671875,
-0.0288543701171875,
0.0035724639892578125,
-0.01303863525390625,
-0.042633056640625,
0.004985809326171875,
-0.0169830322265625,
-0.02117919921875,
-0.029815673828125,
0.0178680419921875,
-0.0206756591796875,
-0.034759521484375,
0.0069122314453125,
-0.042327880859375,
0.00991058349609375,
-0.0120849609375,
0.0078887939453125,
-0.0008344650268554688,
0.058624267578125,
-0.061767578125,
0.01371002197265625,
0.036834716796875,
0.0188446044921875,
-0.05975341796875,
0.007724761962890625,
-0.11822509765625,
0.00940704345703125,
-0.10186767578125,
0.036712646484375,
0.00848388671875,
-0.0002644062042236328,
-0.035003662109375,
0.04241943359375,
-0.06610107421875,
-0.040130615234375,
0.025115966796875,
0.0035495758056640625,
0.0103302001953125,
-0.0196685791015625,
-0.0003840923309326172,
-0.01036834716796875,
0.002574920654296875,
-0.01137542724609375,
-0.038848876953125,
0.0086517333984375,
-0.06689453125,
0.02001953125,
0.0526123046875,
-0.0303497314453125,
-0.0186309814453125,
-0.005306243896484375,
0.0285186767578125,
0.02764892578125,
0.017974853515625,
-0.0112457275390625,
0.0197296142578125,
-0.036529541015625,
-0.00667572021484375,
-0.02532958984375,
0.0108184814453125,
-0.038787841796875,
-0.069580078125,
-0.04925537109375,
-0.03643798828125,
0.0196533203125,
-0.01336669921875,
-0.0226593017578125,
-0.0230255126953125,
0.022216796875,
-0.0024261474609375,
0.0264892578125,
0.0021648406982421875,
0.00423431396484375,
-0.01910400390625,
-0.03363037109375,
-0.00438690185546875,
-0.05133056640625,
-0.0169219970703125,
-0.00011843442916870117,
0.045623779296875,
0.03631591796875,
0.004337310791015625,
0.09918212890625,
-0.0221710205078125,
0.0193634033203125,
0.01947021484375,
0.033782958984375,
0.01824951171875,
-0.00830078125,
0.012237548828125,
0.023406982421875,
-0.00385284423828125,
-0.009033203125,
0.045379638671875,
0.0208587646484375,
0.010986328125,
-0.01323699951171875,
0.0201873779296875,
0.021575927734375,
-0.04351806640625,
-0.033843994140625,
0.051727294921875,
0.04486083984375,
-0.03240966796875,
-0.0301055908203125,
0.01447296142578125,
0.0016994476318359375,
0.016326904296875,
-0.0115509033203125,
0.0216064453125,
0.0443115234375,
0.014801025390625,
0.0189208984375,
-0.025299072265625,
-0.00250244140625,
-0.01485443115234375,
0.0250244140625,
-0.01126861572265625,
-0.0120391845703125,
-0.0004429817199707031,
0.0305328369140625,
-0.0253143310546875,
0.0164947509765625,
-0.01186370849609375,
0.046417236328125,
0.011383056640625,
-0.0095977783203125,
-0.058197021484375,
-0.0036563873291015625,
0.058258056640625,
-0.00882720947265625,
-0.00350189208984375,
0.049468994140625,
-0.01085662841796875,
-0.0186004638671875,
-0.003871917724609375,
-0.003875732421875,
-0.0257568359375,
-0.031982421875,
-0.0254974365234375,
0.00665283203125,
-0.02276611328125,
0.056671142578125,
-0.01343536376953125,
0.0155181884765625,
0.01161956787109375,
-0.0240478515625,
0.0018434524536132812,
0.0157318115234375,
0.0008931159973144531,
0.0251922607421875,
0.014129638671875,
-0.004940032958984375,
-0.01416778564453125,
0.0284423828125,
-0.01537322998046875,
0.0157318115234375,
0.044586181640625,
0.018890380859375,
-0.0291900634765625,
-0.033203125,
0.0245513916015625,
-0.00007069110870361328,
-0.0179290771484375,
0.0869140625,
0.04193115234375,
-0.09417724609375,
-0.0125579833984375,
0.016265869140625,
0.01232147216796875,
-0.045257568359375,
-0.0094146728515625,
0.06695556640625,
0.0018892288208007812,
0.032684326171875,
0.00978851318359375,
-0.01465606689453125,
-0.001079559326171875,
0.009979248046875,
-0.0264129638671875,
-0.0076446533203125,
0.00954437255859375,
-0.006046295166015625,
-0.028900146484375,
0.0019159317016601562,
-0.01496124267578125,
0.040313720703125,
-0.0148773193359375,
0.00962066650390625,
-0.051788330078125,
0.022796630859375,
-0.125244140625,
0.011749267578125,
0.035614013671875,
0.01221466064453125,
-0.10748291015625,
0.0255126953125,
-0.0631103515625,
0.008544921875,
-0.057464599609375,
-0.0662841796875,
-0.05035400390625,
-0.0042877197265625,
-0.0022335052490234375,
0.005950927734375,
-0.0145111083984375,
0.012420654296875,
0.0123443603515625,
0.025115966796875,
0.002201080322265625,
0.0281219482421875,
-0.018585205078125,
0.04510498046875,
0.007843017578125,
0.017120361328125,
0.0135650634765625,
0.040863037109375,
0.01439666748046875,
-0.0164031982421875,
0.006084442138671875,
-0.02777099609375,
-0.0083160400390625,
0.007579803466796875,
0.0164947509765625,
-0.01873779296875,
-0.00676727294921875,
-0.01265716552734375,
-0.01136016845703125,
0.023712158203125,
0.017669677734375,
-0.017852783203125,
0.0005145072937011719,
0.051910400390625,
-0.0033416748046875,
0.0146636962890625,
-0.015899658203125,
-0.00992584228515625,
-0.0190582275390625,
0.0019989013671875,
0.0211029052734375,
-0.0210418701171875,
-0.0006318092346191406,
0.01377105712890625,
-0.037506103515625,
0.044708251953125,
0.04339599609375,
-0.01187896728515625,
0.0323486328125,
0.01424407958984375,
0.0210723876953125,
0.0151214599609375,
0.04571533203125,
-0.03656005859375,
-0.060028076171875,
0.07220458984375,
0.057098388671875,
-0.0165557861328125,
0.09466552734375,
-0.032745361328125,
0.0118560791015625,
0.06121826171875,
0.0758056640625,
-0.0960693359375,
0.0027256011962890625,
0.0233917236328125,
-0.003154754638671875,
-0.0245819091796875,
-0.001354217529296875,
-0.0066680908203125,
-0.035980224609375,
0.06427001953125,
-0.0006818771362304688,
0.006778717041015625,
0.0305023193359375,
-0.0217437744140625,
-0.02972412109375,
-0.01806640625,
-0.0035839080810546875,
0.032745361328125,
-0.0024166107177734375,
0.060455322265625,
-0.016021728515625,
0.050994873046875,
-0.0023326873779296875,
-0.006938934326171875,
-0.005054473876953125,
-0.021575927734375,
-0.019622802734375,
-0.0023212432861328125,
-0.0419921875,
0.0025196075439453125,
0.0213165283203125,
-0.020538330078125,
0.044281005859375,
0.007808685302734375,
-0.002140045166015625,
0.006366729736328125,
-0.024993896484375,
0.02197265625,
-0.07012939453125,
0.0010900497436523438,
0.01001739501953125,
0.061553955078125,
-0.03704833984375,
0.0213470458984375,
-0.04534912109375,
0.01436614990234375,
-0.00009071826934814453,
0.00820159912109375,
0.039886474609375,
-0.058746337890625,
-0.0019130706787109375,
0.049102783203125,
0.01611328125,
-0.00890350341796875,
0.03076171875,
0.03961181640625,
-0.0017099380493164062,
-0.0018053054809570312,
0.026885986328125,
-0.0308074951171875,
-0.03485107421875,
0.0220489501953125,
-0.04656982421875,
0.0816650390625,
-0.028594970703125,
0.006298065185546875,
-0.0015439987182617188,
0.0276641845703125,
-0.007160186767578125,
-0.0036830902099609375,
-0.04150390625,
0.034912109375,
-0.017181396484375,
0.0232696533203125,
-0.0257568359375,
0.0158233642578125,
-0.0178985595703125,
-0.0192413330078125,
0.0318603515625,
0.0032100677490234375,
0.0216522216796875,
0.00035262107849121094,
0.024505615234375,
-0.015869140625,
-0.0477294921875,
0.0131683349609375,
-0.0012607574462890625,
-0.0199432373046875,
-0.01145172119140625,
-0.00514984130859375,
0.046844482421875,
-0.07171630859375,
-0.020294189453125,
-0.0079803466796875,
0.00885009765625,
0.0039825439453125,
0.004978179931640625,
0.0430908203125,
-0.061920166015625,
0.006580352783203125,
0.034820556640625,
0.0157470703125,
-0.0043487548828125,
0.005786895751953125,
-0.0109710693359375,
0.034759521484375,
-0.005359649658203125,
-0.018798828125,
0.016845703125,
0.01141357421875,
0.0220184326171875,
0.0070343017578125,
0.0240478515625,
-0.01212310791015625,
0.006671905517578125,
0.0245513916015625,
0.0670166015625,
-0.06561279296875,
0.04107666015625,
0.0104522705078125,
0.02325439453125,
-0.0224456787109375,
0.0191650390625,
-0.01187896728515625,
0.0399169921875,
-0.038299560546875,
-0.03497314453125,
0.0011949539184570312,
-0.007183074951171875,
-0.0021572113037109375,
0.0010051727294921875,
-0.005901336669921875,
-0.0177764892578125,
0.017852783203125,
-0.00424957275390625,
-0.02142333984375,
-0.0013484954833984375,
0.02374267578125,
0.01514434814453125,
0.04364013671875,
-0.0166015625,
-0.0274810791015625,
-0.0260009765625,
0.01366424560546875,
0.0008111000061035156,
0.011505126953125,
-0.0246429443359375,
0.034423828125,
-0.0028858184814453125,
0.0078582763671875,
-0.02239990234375,
0.0108642578125,
-0.0169677734375,
0.049530029296875,
-0.06134033203125,
-0.0255889892578125,
0.00609588623046875,
0.053741455078125,
0.056549072265625,
0.007335662841796875,
0.031280517578125,
0.025299072265625,
0.0175018310546875,
0.0290985107421875,
0.03076171875,
0.01082611083984375,
-0.015625,
-0.011260986328125,
0.001068115234375,
0.01025390625,
-0.0012922286987304688,
-0.01433563232421875,
0.0226593017578125,
0.020538330078125,
-0.00527191162109375,
0.03436279296875,
0.004344940185546875,
-0.0283966064453125,
0.022003173828125,
0.004241943359375,
0.085693359375,
0.03631591796875,
0.00433349609375,
0.001178741455078125,
-0.03497314453125,
-0.0243072509765625,
0.0287322998046875,
0.040740966796875,
0.0162811279296875,
-0.00010693073272705078,
0.061004638671875,
0.00007349252700805664,
-0.03778076171875,
0.0386962890625,
0.00977325439453125,
-0.052398681640625,
0.037689208984375,
0.0092926025390625,
0.005771636962890625,
0.00628662109375,
0.0196990966796875,
0.02166748046875,
-0.0100860595703125,
0.044830322265625,
-0.0195770263671875,
-0.01146697998046875,
0.0001697540283203125,
0.041656494140625,
-0.039581298828125,
-0.037811279296875,
0.07476806640625,
-0.0170440673828125,
-0.0079193115234375,
-0.004131317138671875,
-0.040985107421875,
0.00930023193359375,
0.0092315673828125,
-0.01358795166015625,
-0.01375579833984375,
-0.00492095947265625,
0.03643798828125,
0.020751953125,
0.013580322265625,
-0.0238800048828125,
-0.03472900390625,
-0.0302581787109375,
0.0104827880859375,
0.01468658447265625,
0.00438690185546875,
-0.02935791015625,
0.00064849853515625,
-0.017608642578125,
-0.006175994873046875,
-0.0043182373046875,
0.040313720703125,
-0.05084228515625,
-0.006290435791015625,
-0.0146484375,
-0.0015058517456054688,
0.052642822265625,
-0.010772705078125,
0.033721923828125,
0.007457733154296875,
0.03826904296875,
0.038055419921875,
-0.060089111328125,
0.013427734375,
0.032196044921875,
0.05572509765625,
-0.024017333984375,
0.027313232421875,
0.022857666015625,
0.004913330078125,
0.000537872314453125,
-0.0193328857421875,
-0.0209503173828125,
-0.0277862548828125,
-0.0035648345947265625,
0.034393310546875,
-0.0257415771484375,
-0.010345458984375,
-0.0540771484375,
0.0040740966796875,
0.07244873046875,
0.017181396484375,
-0.062286376953125,
0.0301513671875,
-0.03125,
0.0214996337890625,
0.02911376953125,
-0.0229644775390625,
-0.005496978759765625,
0.005123138427734375,
-0.01971435546875,
-0.0309906005859375,
-0.034271240234375,
0.0272369384765625,
-0.0261383056640625,
-0.0011606216430664062,
0.02569580078125,
-0.01158905029296875,
-0.0621337890625,
0.0001685619354248047,
-0.01233673095703125,
0.0457763671875,
-0.0034770965576171875,
-0.0177764892578125,
-0.0023441314697265625,
0.0247344970703125,
0.0055999755859375,
-0.058441162109375,
-0.0113525390625,
-0.016632080078125,
0.0028076171875,
-0.0198516845703125,
-0.037109375,
-0.0123138427734375,
-0.05242919921875,
-0.04998779296875,
0.06109619140625,
-0.0060882568359375,
-0.0281219482421875,
-0.0848388671875,
0.0302734375,
0.013702392578125,
-0.0008893013000488281,
-0.033203125,
0.018096923828125,
-0.0289154052734375,
0.0247802734375,
0.0105133056640625,
0.002567291259765625,
0.044403076171875,
-0.0124969482421875,
-0.0164337158203125,
0.0118560791015625,
0.01605224609375,
-0.00002586841583251953,
0.045257568359375,
-0.03680419921875,
0.042266845703125,
0.05621337890625,
-0.045745849609375,
-0.004459381103515625,
-0.033843994140625,
-0.00787353515625,
-0.052154541015625,
-0.042022705078125,
0.03399658203125,
0.0243377685546875,
0.0330810546875,
0.042999267578125,
-0.016998291015625,
-0.04656982421875,
-0.0299530029296875,
-0.01397705078125,
0.00016415119171142578,
-0.0197601318359375,
0.0273590087890625,
-0.07562255859375,
-0.01123046875,
0.018402099609375,
-0.0222320556640625,
-0.0333251953125,
-0.0148773193359375,
-0.06829833984375,
0.007465362548828125,
-0.022186279296875,
0.0233001708984375,
-0.04754638671875,
-0.07159423828125,
0.054229736328125,
-0.023681640625,
-0.00914764404296875,
0.028076171875,
0.04412841796875,
0.0160980224609375,
0.0723876953125,
0.054229736328125,
0.038543701171875,
-0.061248779296875,
0.0088043212890625,
0.023223876953125,
0.0027446746826171875,
-0.037353515625,
-0.048309326171875,
0.038482666015625,
0.01983642578125,
-0.032257080078125,
0.006244659423828125,
0.0133514404296875,
0.053314208984375,
-0.040802001953125,
0.091796875,
0.0037555694580078125,
0.08270263671875,
-0.007808685302734375,
0.044952392578125,
-0.032257080078125,
-0.00679779052734375,
0.0033054351806640625,
-0.033050537109375,
-0.01181793212890625,
-0.01262664794921875,
-0.0028285980224609375,
-0.074951171875,
0.052825927734375,
0.01551055908203125,
-0.005474090576171875,
0.039764404296875
] |
f48bd523af205627d269e5c3644435b9f933b75e
|
Wordpress Stackexchange
Q: How can I remove fields in the attachment editor? Is it possible to remove a default attachment field from the attachment editor, for example the "Caption" field ?
To give you some context, I'm trying to build a custom attachment editor page. I found how to add custom fields, now I'd like to remove some of the default ones I don't need.
A: Use the attachment_fields_to_edit filter to remove the fields you don't want displaying from the array.
function remove_caption($fields) {
unset($fields['post_excerpt']); // See wp-admin\includes\media.php line 1071
return $fields;
}
add_filter('attachment_fields_to_edit','remove_caption');
|
Q: How can I remove fields in the attachment editor? Is it possible to remove a default attachment field from the attachment editor, for example the "Caption" field ?
To give you some context, I'm trying to build a custom attachment editor page. I found how to add custom fields, now I'd like to remove some of the default ones I don't need.
A: Use the attachment_fields_to_edit filter to remove the fields you don't want displaying from the array.
function remove_caption($fields) {
unset($fields['post_excerpt']); // See wp-admin\includes\media.php line 1071
return $fields;
}
add_filter('attachment_fields_to_edit','remove_caption');
|
wordpress
|
{
"language": "en",
"length": 92,
"provenance": "stackexchange_00019.jsonl.gz:408638",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14817"
}
|
[
0.00774383544921875,
0.000644683837890625,
0.00946807861328125,
-0.00012540817260742188,
-0.028167724609375,
-0.0130767822265625,
0.0096435546875,
-0.040863037109375,
0.0013990402221679688,
0.024749755859375,
0.0270233154296875,
-0.01898193359375,
-0.0256500244140625,
-0.0438232421875,
-0.037353515625,
-0.0230712890625,
-0.0107269287109375,
0.031524658203125,
0.03582763671875,
-0.0035247802734375,
0.021087646484375,
-0.01169586181640625,
0.01071929931640625,
-0.020050048828125,
0.00423431396484375,
0.0596923828125,
0.0367431640625,
-0.0077667236328125,
-0.01404571533203125,
-0.015625,
0.01412200927734375,
-0.005950927734375,
0.0177459716796875,
0.043365478515625,
-0.07666015625,
0.017181396484375,
-0.01309967041015625,
0.0215911865234375,
-0.0138397216796875,
0.03656005859375,
0.021209716796875,
-0.01485443115234375,
-0.029632568359375,
-0.02142333984375,
-0.039031982421875,
-0.0096435546875,
0.0293121337890625,
0.0106658935546875,
0.032257080078125,
-0.019378662109375,
-0.0026760101318359375,
0.032745361328125,
0.0145416259765625,
-0.043548583984375,
-0.0156707763671875,
-0.02081298828125,
-0.033233642578125,
0.028106689453125,
0.035919189453125,
0.0195465087890625,
-0.00571441650390625,
0.003299713134765625,
-0.00782012939453125,
-0.0362548828125,
0.003231048583984375,
-0.0016841888427734375,
0.0011377334594726562,
0.0179595947265625,
-0.03729248046875,
0.0186004638671875,
0.0261688232421875,
-0.048675537109375,
0.017730712890625,
-0.068359375,
-0.0164642333984375,
0.046173095703125,
-0.0163726806640625,
-0.00930023193359375,
0.0096435546875,
-0.047271728515625,
0.0243377685546875,
-0.0258331298828125,
-0.017547607421875,
0.01849365234375,
0.011993408203125,
0.052032470703125,
-0.0034618377685546875,
-0.0260467529296875,
0.00507354736328125,
-0.0221405029296875,
0.00589752197265625,
-0.0467529296875,
-0.027130126953125,
0.0225982666015625,
0.00522613525390625,
-0.0307769775390625,
0.0236358642578125,
-0.003406524658203125,
0.0247039794921875,
-0.011444091796875,
0.021759033203125,
-0.0570068359375,
0.005992889404296875,
-0.011016845703125,
0.0240478515625,
0.01186370849609375,
-0.0303192138671875,
-0.057769775390625,
0.0294647216796875,
0.03704833984375,
-0.0037841796875,
0.00821685791015625,
0.00798797607421875,
0.031494140625,
-0.0277557373046875,
-0.0161285400390625,
-0.03228759765625,
0.0203399658203125,
-0.0372314453125,
0.023834228515625,
-0.00585174560546875,
-0.0220794677734375,
-0.0162353515625,
-0.006954193115234375,
0.0014810562133789062,
-0.0467529296875,
-0.052001953125,
0.0540771484375,
0.06597900390625,
-0.0236663818359375,
-0.058258056640625,
0.002483367919921875,
0.082275390625,
0.05267333984375,
0.060638427734375,
-0.005146026611328125,
-0.0010623931884765625,
-0.029510498046875,
0.016998291015625,
-0.007904052734375,
0.0126495361328125,
-0.0186614990234375,
0.023345947265625,
0.03631591796875,
0.0027790069580078125,
0.0223541259765625,
0.0190277099609375,
0.0026092529296875,
-0.0176849365234375,
-0.035430908203125,
0.0023193359375,
-0.0445556640625,
0.036651611328125,
0.0196533203125,
0.014251708984375,
-0.035736083984375,
0.08929443359375,
-0.05291748046875,
-0.01291656494140625,
-0.0679931640625,
0.038726806640625,
-0.0207061767578125,
-0.028564453125,
-0.0191802978515625,
-0.06427001953125,
0.0298309326171875,
-0.03826904296875,
-0.00962066650390625,
0.0347900390625,
-0.0308685302734375,
0.0044403076171875,
-0.043212890625,
0.028839111328125,
0.023162841796875,
0.009246826171875,
0.06024169921875,
-0.0128173828125,
-0.023681640625,
0.01183319091796875,
0.06170654296875,
0.00934600830078125,
-0.0307464599609375,
-0.017242431640625,
-0.0030975341796875,
-0.061859130859375,
0.02032470703125,
-0.010040283203125,
0.035552978515625,
0.0509033203125,
0.0144805908203125,
0.0258636474609375,
-0.0126953125,
0.005462646484375,
-0.0389404296875,
0.01543426513671875,
-0.017242431640625,
0.0138397216796875,
-0.011077880859375,
0.01690673828125,
0.01313018798828125,
-0.030670166015625,
-0.007602691650390625,
0.019287109375,
0.022979736328125,
0.005283355712890625,
0.0019989013671875,
-0.01226806640625,
0.020233154296875,
-0.0693359375,
0.001041412353515625,
0.052154541015625,
-0.01739501953125,
-0.043212890625,
0.0272674560546875,
0.0059051513671875,
-0.036865234375,
0.0181427001953125,
0.0164947509765625,
0.0088043212890625,
-0.0028095245361328125,
0.0183868408203125,
-0.045806884765625,
0.005523681640625,
0.01910400390625,
0.042236328125,
-0.033538818359375,
-0.004795074462890625,
-0.037109375,
0.077392578125,
-0.03143310546875,
0.03656005859375,
0.0484619140625,
-0.02044677734375,
-0.0249786376953125,
-0.046630859375,
-0.004810333251953125,
-0.043487548828125,
-0.06463623046875,
-0.0014591217041015625,
0.066162109375,
0.0550537109375,
0.04046630859375,
-0.0212554931640625,
-0.03826904296875,
0.08221435546875,
0.01262664794921875,
0.0295562744140625,
-0.048095703125,
0.00732421875,
0.035919189453125,
-0.0361328125,
-0.009307861328125,
0.0124969482421875,
-0.055328369140625,
0.040863037109375,
0.0245819091796875,
-0.025604248046875,
-0.045745849609375,
0.034637451171875,
-0.0144195556640625,
0.0031223297119140625,
-0.045257568359375,
-0.01496124267578125,
-0.0095977783203125,
0.024383544921875,
0.01374053955078125,
0.04010009765625,
0.03936767578125,
-0.046966552734375,
0.02056884765625,
0.01459503173828125,
0.02825927734375,
-0.0101470947265625,
0.0203857421875,
0.003917694091796875,
0.0116119384765625,
-0.0174102783203125,
-0.01201629638671875,
-0.0198974609375,
0.00016939640045166016,
-0.0156097412109375,
0.04327392578125,
0.0017557144165039062,
-0.0206298828125,
-0.005115509033203125,
-0.0304718017578125,
-0.0007901191711425781,
-0.02520751953125,
-0.02044677734375,
-0.0384521484375,
-0.0179595947265625,
0.0176239013671875,
-0.0173187255859375,
0.0080718994140625,
0.029022216796875,
-0.028717041015625,
-0.03271484375,
-0.06109619140625,
0.061614990234375,
-0.056671142578125,
0.0066986083984375,
0.074951171875,
-0.0175628662109375,
0.0295257568359375,
0.00403594970703125,
-0.0002903938293457031,
0.0200958251953125,
-0.0116424560546875,
-0.0101470947265625,
0.006107330322265625,
-0.03546142578125,
0.02752685546875,
0.01032257080078125,
0.06488037109375,
-0.0609130859375,
-0.068603515625,
-0.0328369140625,
0.01148223876953125,
-0.08251953125,
-0.038482666015625,
0.044952392578125,
-0.07171630859375,
-0.042510986328125,
0.004665374755859375,
-0.061065673828125,
-0.0009336471557617188,
0.044281005859375,
-0.0106658935546875,
0.058837890625,
-0.0302276611328125,
-0.028961181640625,
0.011444091796875,
-0.045196533203125,
-0.0162353515625,
-0.005489349365234375,
-0.004611968994140625,
0.007007598876953125,
0.1007080078125,
0.0098724365234375,
-0.03948974609375,
0.0225830078125,
-0.06341552734375,
-0.005771636962890625,
0.048858642578125,
0.033111572265625,
-0.01490020751953125,
-0.006351470947265625,
0.0161895751953125,
0.033447265625,
0.023345947265625,
-0.0292205810546875,
-0.044891357421875,
-0.0140380859375,
0.01419830322265625,
0.0005674362182617188,
0.0017805099487304688,
0.00798797607421875,
-0.0126800537109375,
-0.0154876708984375,
-0.055267333984375,
-0.00536346435546875,
-0.0008373260498046875,
0.004154205322265625,
0.017578125,
-0.0145721435546875,
-0.005603790283203125,
-0.023468017578125,
0.0587158203125,
0.0203704833984375,
0.0012874603271484375,
0.02593994140625,
-0.007537841796875,
0.019989013671875,
-0.008544921875,
0.0010023117065429688,
-0.028533935546875,
0.024871826171875,
-0.0219879150390625,
0.025115966796875,
0.01544189453125,
0.004810333251953125,
0.0038852691650390625,
0.004131317138671875,
-0.01788330078125,
-0.0714111328125,
0.036895751953125,
-0.044036865234375,
-0.00670623779296875,
-0.035125732421875,
-0.00665283203125,
-0.005680084228515625,
0.08251953125,
-0.0718994140625,
-0.041656494140625,
0.002544403076171875,
0.023406982421875,
0.004276275634765625,
-0.01041412353515625,
0.01039886474609375,
-0.034149169921875,
-0.06402587890625,
0.0159759521484375,
-0.00669097900390625,
-0.0269927978515625,
-0.042388916015625,
0.040283203125,
-0.050262451171875,
-0.03021240234375,
0.03668212890625,
-0.002132415771484375,
-0.0152130126953125,
0.0316162109375,
-0.02960205078125,
0.0322265625,
-0.029937744140625,
-0.0171661376953125,
-0.07098388671875,
-0.01800537109375,
0.002498626708984375,
0.039276123046875,
-0.042694091796875,
0.056854248046875,
-0.02117919921875,
0.046661376953125,
0.007274627685546875,
0.0012044906616210938,
0.007030487060546875,
-0.0084075927734375,
-0.0304718017578125,
0.0157318115234375,
0.01158905029296875,
-0.0222015380859375,
0.0112152099609375,
-0.030517578125,
-0.051177978515625,
-0.0166015625,
-0.03277587890625,
0.01320648193359375,
-0.0006666183471679688,
-0.0307464599609375,
-0.0102691650390625,
-0.02783203125,
-0.03265380859375,
0.00878143310546875,
-0.0272979736328125,
0.00994110107421875,
-0.019317626953125,
-0.0245361328125,
0.02325439453125,
0.0005521774291992188,
-0.0287628173828125,
0.014495849609375,
0.0745849609375,
0.0186614990234375,
-0.01306915283203125,
-0.06744384765625,
-0.0036411285400390625,
0.02337646484375,
-0.01276397705078125,
0.03369140625,
0.013031005859375,
-0.005100250244140625,
0.030853271484375,
-0.022308349609375,
0.005970001220703125,
-0.088134765625,
0.06689453125,
-0.006626129150390625,
0.01088714599609375,
-0.00975799560546875,
-0.03411865234375,
0.09033203125,
-0.02947998046875,
0.00543212890625,
-0.00664520263671875,
0.04876708984375,
0.0184783935546875,
-0.0150146484375,
0.0261993408203125,
0.00876617431640625,
-0.045684814453125,
0.00794219970703125,
0.0056610107421875,
-0.006744384765625,
0.033721923828125,
-0.0182037353515625,
0.02105712890625,
0.01366424560546875,
0.021759033203125,
-0.034149169921875,
-0.022125244140625,
-0.0355224609375,
0.037353515625,
-0.0101776123046875,
0.0071868896484375,
-0.01186370849609375,
-0.0016603469848632812,
-0.0038604736328125,
-0.0212860107421875,
-0.06671142578125,
-0.017242431640625,
-0.006443023681640625,
0.0251312255859375,
0.0194854736328125,
0.018463134765625,
0.028411865234375,
0.01384735107421875,
0.01270294189453125,
-0.00487518310546875,
-0.0282440185546875,
0.039703369140625,
-0.040985107421875,
-0.01141357421875,
-0.0235443115234375,
-0.0027751922607421875,
0.045806884765625,
0.00989532470703125,
-0.0275421142578125,
0.0263824462890625,
-0.025054931640625,
0.00548553466796875,
0.0021114349365234375,
0.0175628662109375,
0.01082611083984375,
0.020721435546875,
-0.0069427490234375,
-0.0020599365234375,
0.024383544921875,
-0.055084228515625,
-0.0115203857421875,
0.0200653076171875,
0.055755615234375,
-0.04644775390625,
-0.057861328125,
0.03466796875,
-0.04595947265625,
-0.0131378173828125,
0.03948974609375,
-0.01641845703125,
-0.0654296875,
-0.010467529296875,
0.0179290771484375,
0.01065826416015625,
-0.02947998046875,
-0.019073486328125,
-0.005840301513671875,
-0.051666259765625,
-0.02685546875,
0.00754547119140625,
-0.059814453125,
-0.01297760009765625,
0.00039386749267578125,
0.0247955322265625,
-0.0172576904296875,
-0.023345947265625,
-0.0555419921875,
-0.0227508544921875,
-0.015472412109375,
0.029937744140625,
0.0576171875,
-0.0382080078125,
-0.004650115966796875,
-0.0083465576171875,
0.0201263427734375,
-0.05059814453125,
0.0208282470703125,
0.01010894775390625,
0.002166748046875,
-0.012603759765625,
-0.020416259765625,
-0.056549072265625,
-0.03009033203125,
-0.0333251953125,
-0.0289306640625,
-0.034027099609375,
0.0121917724609375,
0.0101165771484375,
0.01395416259765625,
0.0243072509765625,
0.012603759765625,
0.011474609375,
0.0164947509765625,
0.005985260009765625,
0.041229248046875,
0.001338958740234375,
0.0294952392578125,
0.0078887939453125,
0.0224151611328125,
0.013519287109375,
0.0034961700439453125,
-0.038970947265625,
-0.0248260498046875,
0.0090179443359375,
-0.05517578125,
-0.00522613525390625,
0.0059814453125,
-0.026275634765625,
-0.01555633544921875,
-0.018524169921875,
0.00047278404235839844,
-0.0165863037109375,
-0.03778076171875,
-0.01009368896484375,
-0.040313720703125,
0.07177734375,
-0.034912109375,
0.0104522705078125,
-0.060577392578125,
-0.0232696533203125,
0.0628662109375,
0.0138092041015625,
0.014739990234375,
0.0112152099609375,
-0.048858642578125,
0.0323486328125,
0.031707763671875,
0.00647735595703125,
-0.008697509765625,
0.00957489013671875,
-0.01666259765625,
0.0146331787109375,
0.029205322265625,
0.01336669921875,
0.021759033203125,
0.043701171875,
-0.048553466796875,
-0.028778076171875,
0.059600830078125,
0.028045654296875,
-0.0303955078125,
0.03759765625,
-0.032562255859375,
0.037933349609375,
0.003971099853515625,
0.0657958984375,
-0.048492431640625,
0.0223388671875,
0.004795074462890625,
-0.00890350341796875,
0.0712890625,
-0.01177978515625,
0.019989013671875,
-0.006229400634765625,
0.013397216796875,
-0.01416778564453125,
-0.045440673828125,
-0.01248931884765625,
-0.01214599609375,
0.0109710693359375,
-0.016693115234375,
0.01323699951171875,
0.0008745193481445312,
-0.035736083984375,
0.004947662353515625,
0.0202178955078125,
0.006099700927734375,
-0.0171051025390625,
-0.006320953369140625,
0.01375579833984375,
-0.03350830078125,
-0.06396484375,
-0.0171661376953125,
-0.03289794921875,
-0.0033550262451171875,
-0.001129150390625,
0.0101776123046875,
0.014801025390625,
0.05059814453125,
-0.0262298583984375,
0.015167236328125,
0.03619384765625,
-0.055419921875,
-0.0115814208984375,
-0.04730224609375,
0.010772705078125,
0.047607421875,
-0.0731201171875,
0.03363037109375,
0.007701873779296875,
-0.03509521484375,
-0.0099334716796875,
0.0066680908203125,
0.0572509765625,
-0.049163818359375,
-0.02484130859375,
0.019561767578125,
0.041839599609375,
0.0008368492126464844,
-0.0167388916015625,
0.0099945068359375,
-0.037139892578125,
-0.0074615478515625,
-0.02508544921875,
-0.03887939453125,
0.0227508544921875,
-0.0227508544921875,
-0.088134765625,
0.07403564453125,
0.0255584716796875,
0.03387451171875,
-0.0244598388671875,
0.0257110595703125,
-0.00662994384765625,
0.01568603515625,
-0.0099334716796875,
0.0311431884765625,
0.0567626953125,
-0.002742767333984375,
-0.0006184577941894531,
-0.0172271728515625,
0.010101318359375,
0.05487060546875,
0.0732421875,
-0.0015115737915039062,
0.053558349609375,
-0.00795745849609375,
0.07733154296875,
0.04632568359375,
-0.0362548828125,
-0.0201263427734375,
0.021392822265625,
0.0032196044921875,
0.0190582275390625,
-0.0207366943359375,
0.01445770263671875,
-0.03131103515625,
0.0147857666015625,
0.044097900390625,
0.0287017822265625,
0.05224609375,
0.0240936279296875,
0.050262451171875,
-0.0101470947265625,
-0.00005501508712768555,
0.0389404296875,
-0.049072265625,
-0.02325439453125,
0.067626953125,
0.044342041015625,
-0.0360107421875,
0.01497650146484375,
-0.050384521484375,
0.06622314453125,
0.01849365234375,
0.040771484375,
0.036041259765625,
0.0218505859375,
0.040985107421875,
-0.0096282958984375,
0.028778076171875,
0.0203399658203125,
-0.04296875,
-0.0224456787109375,
-0.039642333984375,
-0.011871337890625,
-0.040771484375,
0.037261962890625,
0.0200042724609375,
-0.031890869140625,
-0.010772705078125,
-0.0087127685546875,
0.0210113525390625,
-0.00994110107421875,
-0.01477813720703125,
-0.049346923828125,
-0.040924072265625,
-0.05328369140625,
-0.028045654296875,
-0.04656982421875,
0.0273895263671875,
0.035308837890625,
0.0107421875,
-0.00919342041015625,
0.0005855560302734375,
-0.064697265625,
0.027069091796875,
-0.04022216796875,
-0.0243682861328125,
0.00020110607147216797,
0.0214080810546875,
0.046722412109375,
0.0195159912109375,
0.05609130859375,
-0.0196075439453125,
-0.0280609130859375,
0.02880859375,
-0.0099334716796875,
0.032318115234375,
-0.01195526123046875,
0.006679534912109375,
-0.041717529296875,
0.02032470703125,
0.019805908203125,
-0.01509857177734375,
0.0256500244140625,
0.014801025390625,
-0.0219573974609375,
-0.0157928466796875,
-0.0273284912109375,
-0.0251312255859375,
-0.015045166015625,
-0.036865234375,
0.0310516357421875,
0.04718017578125,
0.016387939453125,
-0.00548553466796875,
-0.02227783203125,
0.08258056640625,
-0.037506103515625,
0.0054473876953125,
0.0060577392578125,
-0.01390838623046875,
0.051177978515625,
0.00843048095703125,
0.0171661376953125,
0.0004353523254394531,
-0.0740966796875,
-0.0085601806640625,
-0.03985595703125,
-0.040740966796875,
0.024871826171875,
0.042694091796875,
-0.03680419921875,
0.031097412109375,
0.001247406005859375,
-0.01207733154296875,
-0.007686614990234375,
-0.004779815673828125,
-0.006404876708984375,
-0.032806396484375,
-0.000024199485778808594,
-0.0201263427734375,
0.0010051727294921875,
-0.00745391845703125,
0.0129547119140625,
0.0093994140625,
0.0076751708984375,
0.03143310546875,
-0.01202392578125,
0.01078033447265625,
-0.0087890625,
0.0282745361328125,
0.005298614501953125,
0.01317596435546875,
-0.00701141357421875,
0.033599853515625,
0.01331329345703125,
-0.03558349609375,
-0.007625579833984375,
0.04388427734375,
0.017852783203125,
-0.0222930908203125,
0.0264129638671875,
0.0035495758056640625,
0.0011224746704101562,
-0.032073974609375,
0.0008268356323242188,
-0.02471923828125,
-0.0215606689453125,
-0.0212860107421875,
-0.00385284423828125,
0.01016998291015625,
-0.0028705596923828125,
0.004180908203125,
0.01267242431640625,
0.037017822265625,
-0.018463134765625,
0.0333251953125,
-0.008636474609375,
0.06304931640625,
0.04266357421875,
-0.004062652587890625,
-0.0310821533203125,
0.04278564453125,
-0.0086669921875,
0.03497314453125,
0.0239105224609375,
0.055206298828125,
0.04119873046875,
-0.0072479248046875,
-0.01161956787109375,
-0.01105499267578125,
0.045166015625,
-0.00894927978515625,
0.009490966796875,
-0.03070068359375,
0.00502777099609375,
-0.00737762451171875,
-0.03515625,
-0.036895751953125,
-0.079833984375,
-0.0014095306396484375,
0.032470703125,
-0.06256103515625,
-0.056365966796875,
-0.0667724609375,
-0.00630950927734375,
0.01351165771484375,
-0.0019235610961914062,
-0.033905029296875,
0.015869140625,
0.0005626678466796875,
0.00749969482421875,
-0.00457763671875,
-0.0193939208984375,
0.0007658004760742188,
0.0237579345703125,
-0.0273590087890625,
-0.041534423828125,
-0.05059814453125,
0.0228729248046875,
-0.045196533203125,
0.0185089111328125,
0.0394287109375,
-0.00809478759765625,
-0.009857177734375,
0.0004849433898925781,
0.0146484375,
0.05352783203125,
-0.0396728515625,
-0.03179931640625,
-0.011871337890625,
0.015594482421875,
0.01409149169921875,
-0.01407623291015625,
-0.0117034912109375,
0.01007843017578125,
-0.0210723876953125,
-0.0281982421875,
0.01446533203125,
0.027740478515625,
-0.0328369140625,
-0.089111328125,
0.02960205078125,
-0.032867431640625,
-0.039794921875,
-0.038665771484375,
0.017486572265625,
-0.0119171142578125,
0.029449462890625,
-0.0024738311767578125,
-0.010284423828125,
0.0006275177001953125,
0.01141357421875,
0.0006008148193359375,
0.0018205642700195312,
0.046234130859375,
-0.0138397216796875,
-0.004756927490234375,
-0.0038623809814453125,
0.0010480880737304688,
0.0009279251098632812,
0.05072021484375,
-0.002788543701171875,
0.042633056640625,
0.064208984375,
-0.032501220703125,
0.00029277801513671875,
-0.049530029296875,
-0.06298828125,
-0.0209503173828125,
-0.02508544921875,
-0.03009033203125,
0.01910400390625,
0.05926513671875,
0.09423828125,
0.0067901611328125,
-0.044525146484375,
0.00832366943359375,
0.0118408203125,
-0.0184326171875,
-0.028411865234375,
0.006336212158203125,
-0.037139892578125,
-0.036407470703125,
-0.01110076904296875,
-0.01357269287109375,
0.0204010009765625,
-0.00946807861328125,
-0.0292205810546875,
-0.0007157325744628906,
0.0227203369140625,
0.0184326171875,
-0.057525634765625,
0.0177459716796875,
0.0275421142578125,
-0.02532958984375,
0.00972747802734375,
-0.003284454345703125,
-0.00270843505859375,
0.0125885009765625,
0.0238494873046875,
-0.0220184326171875,
-0.057220458984375,
-0.001186370849609375,
0.03411865234375,
-0.01551055908203125,
0.03485107421875,
-0.0191192626953125,
-0.0263214111328125,
-0.05029296875,
0.0240936279296875,
0.0187835693359375,
0.032806396484375,
-0.032012939453125,
0.0230255126953125,
0.0382080078125,
0.0184326171875,
-0.005779266357421875,
-0.011688232421875,
-0.00630950927734375,
0.005157470703125,
-0.005580902099609375,
0.00566864013671875,
0.02972412109375,
-0.025726318359375,
0.0022296905517578125,
0.00846099853515625,
-0.0207366943359375,
-0.0254058837890625,
0.00762176513671875,
-0.019378662109375,
-0.018402099609375,
0.0230255126953125
] |
c68c3ba4b01fcad810e3556fd7d0fd4c725ee63e
|
Wordpress Stackexchange
Q: What is better for wordpress performace? I'm developing a website using the WPML plugin. And I would like to know which is the better option, or even the correct way to change classes or IDs between the languages.
Sample code:
<ul id="<?php _e('menu-topo'); ?>">
<ul id="<?php if ($lang = 'en') { echo "menu-topo-en"; } else { echo "menu-topo"; } ?>
I'm not sure that the _e function is supposed to be used this way so if someone could clarify this for me it would help me a lot, thanks.
A: _e() will translate the text passed as a argument to the language your site is currently set up to use (if the translation exists).
Anyway, don't do that. Use it for text visible on the website, not for IDs/classes etc. To create context based css rules, simply add the WPML language ID as a body class:
add_filter('body_class', 'wpml_body_class');
function wpml_body_class($classes){
return array_push($classes, ICL_LANGUAGE_CODE);
}
then style the elements you need to using something like:
.en .menu-top{
...
}
It's faster, and you keep your code easy to maintain.
|
Q: What is better for wordpress performace? I'm developing a website using the WPML plugin. And I would like to know which is the better option, or even the correct way to change classes or IDs between the languages.
Sample code:
<ul id="<?php _e('menu-topo'); ?>">
<ul id="<?php if ($lang = 'en') { echo "menu-topo-en"; } else { echo "menu-topo"; } ?>
I'm not sure that the _e function is supposed to be used this way so if someone could clarify this for me it would help me a lot, thanks.
A: _e() will translate the text passed as a argument to the language your site is currently set up to use (if the translation exists).
Anyway, don't do that. Use it for text visible on the website, not for IDs/classes etc. To create context based css rules, simply add the WPML language ID as a body class:
add_filter('body_class', 'wpml_body_class');
function wpml_body_class($classes){
return array_push($classes, ICL_LANGUAGE_CODE);
}
then style the elements you need to using something like:
.en .menu-top{
...
}
It's faster, and you keep your code easy to maintain.
|
wordpress
|
{
"language": "en",
"length": 179,
"provenance": "stackexchange_00019.jsonl.gz:408650",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14861"
}
|
[
0.017913818359375,
-0.0217437744140625,
0.021697998046875,
0.0212554931640625,
-0.01244354248046875,
-0.01617431640625,
0.0360107421875,
-0.035003662109375,
-0.00337982177734375,
0.019775390625,
0.0018873214721679688,
0.0167999267578125,
-0.013580322265625,
-0.0296630859375,
0.01442718505859375,
-0.0242767333984375,
0.0264434814453125,
0.00047588348388671875,
0.015838623046875,
-0.01482391357421875,
-0.002086639404296875,
-0.004772186279296875,
0.02569580078125,
0.01355743408203125,
0.05120849609375,
-0.1058349609375,
0.0269012451171875,
0.01617431640625,
-0.007381439208984375,
-0.0296783447265625,
0.0150909423828125,
0.058746337890625,
0.016357421875,
0.0222015380859375,
-0.01702880859375,
-0.0084686279296875,
0.0018815994262695312,
-0.0023174285888671875,
-0.0135498046875,
0.0318603515625,
0.01953125,
-0.00669097900390625,
-0.038299560546875,
0.058929443359375,
-0.030029296875,
-0.046051025390625,
0.004741668701171875,
-0.043212890625,
-0.01168060302734375,
-0.0123443603515625,
0.0411376953125,
0.0198211669921875,
0.049224853515625,
-0.0001804828643798828,
-0.013641357421875,
0.03070068359375,
-0.0396728515625,
0.00994110107421875,
0.01396942138671875,
0.06439208984375,
-0.00531768798828125,
-0.01354217529296875,
0.005168914794921875,
-0.041900634765625,
-0.01149749755859375,
0.028839111328125,
0.0305328369140625,
0.0149078369140625,
-0.0160980224609375,
-0.03131103515625,
-0.022918701171875,
-0.01140594482421875,
0.00762939453125,
-0.041961669921875,
-0.0235748291015625,
0.0144805908203125,
-0.0006036758422851562,
-0.0389404296875,
0.01224517822265625,
-0.0243988037109375,
-0.0238800048828125,
0.033843994140625,
-0.03778076171875,
-0.041015625,
-0.004039764404296875,
-0.0290679931640625,
-0.030792236328125,
-0.0158843994140625,
-0.04248046875,
-0.0185699462890625,
-0.0271453857421875,
-0.00827789306640625,
-0.06011962890625,
0.025299072265625,
0.003414154052734375,
-0.02581787109375,
-0.00231170654296875,
0.05975341796875,
-0.039031982421875,
0.027862548828125,
0.00495147705078125,
-0.0244140625,
0.043975830078125,
-0.06427001953125,
0.031402587890625,
0.06939697265625,
0.01399993896484375,
0.03912353515625,
0.055572509765625,
-0.0184478759765625,
0.01007843017578125,
0.074462890625,
0.00853729248046875,
-0.015106201171875,
0.00814056396484375,
-0.037689208984375,
-0.050811767578125,
0.042144775390625,
0.004611968994140625,
-0.02166748046875,
0.000598907470703125,
0.01016998291015625,
0.0259246826171875,
0.007602691650390625,
-0.005443572998046875,
-0.0032672882080078125,
-0.018524169921875,
-0.028228759765625,
-0.0222930908203125,
-0.0126953125,
-0.020111083984375,
0.02593994140625,
0.06292724609375,
0.0246734619140625,
0.0007915496826171875,
-0.0091400146484375,
0.0316162109375,
-0.0122528076171875,
-0.00821685791015625,
0.007114410400390625,
0.00879669189453125,
0.0002968311309814453,
0.00753021240234375,
0.008941650390625,
-0.023162841796875,
0.034454345703125,
0.005962371826171875,
0.0029449462890625,
-0.009552001953125,
-0.102783203125,
0.047943115234375,
-0.0679931640625,
0.06695556640625,
-0.02154541015625,
-0.05572509765625,
-0.041107177734375,
-0.00373077392578125,
-0.0340576171875,
-0.0188140869140625,
-0.054107666015625,
-0.061370849609375,
-0.01141357421875,
0.0148468017578125,
-0.0693359375,
-0.026611328125,
-0.00548553466796875,
0.0030364990234375,
0.0219879150390625,
0.031280517578125,
-0.0272216796875,
0.0440673828125,
-0.00833892822265625,
0.03912353515625,
0.010986328125,
0.018157958984375,
0.0291748046875,
-0.01457977294921875,
0.00914764404296875,
0.047882080078125,
-0.0169830322265625,
-0.01511383056640625,
-0.0240325927734375,
0.0823974609375,
-0.01149749755859375,
-0.05218505859375,
0.0118408203125,
0.02001953125,
0.08807373046875,
0.0205841064453125,
0.0323486328125,
0.0228118896484375,
-0.0270233154296875,
-0.04144287109375,
0.02227783203125,
0.00205230712890625,
0.021148681640625,
-0.0341796875,
0.04522705078125,
-0.01409912109375,
-0.04937744140625,
0.01421356201171875,
0.01849365234375,
-0.01389312744140625,
0.017669677734375,
-0.045806884765625,
0.0203704833984375,
-0.0231475830078125,
0.040618896484375,
0.0139312744140625,
0.01334381103515625,
-0.0011997222900390625,
0.0438232421875,
-0.0150604248046875,
-0.07379150390625,
-0.038848876953125,
0.033111572265625,
0.002956390380859375,
0.01471710205078125,
0.0039005279541015625,
-0.000789642333984375,
0.00960540771484375,
-0.0244903564453125,
-0.0009293556213378906,
0.036590576171875,
-0.0281829833984375,
0.01458740234375,
-0.0150299072265625,
0.017303466796875,
-0.0013914108276367188,
0.02166748046875,
0.038177490234375,
-0.00992584228515625,
0.033660888671875,
0.0175628662109375,
-0.01116180419921875,
0.00772857666015625,
0.04345703125,
-0.060577392578125,
-0.0006575584411621094,
0.0308685302734375,
0.03387451171875,
0.051605224609375,
-0.01383209228515625,
-0.0185546875,
0.0345458984375,
-0.01537322998046875,
0.023345947265625,
-0.02337646484375,
-0.048583984375,
-0.032623291015625,
0.034881591796875,
-0.0135345458984375,
0.0311737060546875,
-0.02044677734375,
-0.0088653564453125,
0.03076171875,
-0.041595458984375,
-0.0237884521484375,
0.004657745361328125,
-0.005367279052734375,
0.0093231201171875,
-0.0004744529724121094,
-0.0095367431640625,
0.0020771026611328125,
0.0511474609375,
-0.02777099609375,
0.0259246826171875,
-0.0137176513671875,
-0.036834716796875,
0.0020923614501953125,
0.01947021484375,
0.003993988037109375,
-0.006587982177734375,
-0.0247650146484375,
-0.025390625,
0.01001739501953125,
0.010101318359375,
0.0018062591552734375,
-0.00024390220642089844,
-0.0220794677734375,
-0.00800323486328125,
0.060791015625,
-0.018829345703125,
-0.03497314453125,
-0.003047943115234375,
-0.05523681640625,
-0.040771484375,
-0.0377197265625,
0.024810791015625,
-0.0192413330078125,
0.031890869140625,
-0.03173828125,
-0.027557373046875,
0.006946563720703125,
0.01093292236328125,
-0.06475830078125,
0.08538818359375,
0.03411865234375,
-0.004421234130859375,
0.00011175870895385742,
0.023223876953125,
0.017730712890625,
-0.01166534423828125,
-0.0286712646484375,
-0.017791748046875,
-0.01334381103515625,
0.003513336181640625,
-0.0249176025390625,
-0.027862548828125,
-0.0206451416015625,
-0.0196990966796875,
0.031005859375,
0.0240478515625,
0.0164794921875,
-0.01116943359375,
-0.046783447265625,
-0.009185791015625,
-0.0136566162109375,
-0.09478759765625,
-0.07568359375,
0.0194549560546875,
-0.051666259765625,
0.04974365234375,
0.0086212158203125,
-0.012786865234375,
-0.039794921875,
0.047760009765625,
0.0011301040649414062,
0.03497314453125,
-0.018951416015625,
-0.0226898193359375,
-0.015716552734375,
-0.060150146484375,
-0.0222930908203125,
0.00567626953125,
-0.01654052734375,
0.0007534027099609375,
-0.01137542724609375,
-0.01129150390625,
-0.024993896484375,
0.00395965576171875,
0.0574951171875,
-0.0013132095336914062,
-0.0017614364624023438,
0.00010561943054199219,
-0.04388427734375,
-0.0201568603515625,
-0.00473785400390625,
-0.0301055908203125,
0.00921630859375,
0.01678466796875,
0.00656890869140625,
-0.00984954833984375,
0.00978851318359375,
0.0208740234375,
-0.031982421875,
0.01029205322265625,
0.0643310546875,
0.0291900634765625,
-0.0031299591064453125,
-0.06048583984375,
0.0214080810546875,
-0.036590576171875,
0.06317138671875,
0.00885772705078125,
0.0118255615234375,
0.00946044921875,
0.0628662109375,
-0.0007390975952148438,
-0.017730712890625,
0.0343017578125,
-0.03350830078125,
0.03564453125,
-0.017730712890625,
-0.00690460205078125,
-0.0221099853515625,
0.048065185546875,
0.010833740234375,
-0.03070068359375,
0.01013946533203125,
-0.006519317626953125,
-0.01195526123046875,
0.00711822509765625,
-0.021484375,
-0.0252685546875,
0.043731689453125,
-0.006427764892578125,
0.018768310546875,
0.0030059814453125,
-0.0214385986328125,
0.00970458984375,
0.06304931640625,
-0.010284423828125,
-0.01910400390625,
0.0192718505859375,
0.0288238525390625,
-0.047210693359375,
-0.0178680419921875,
-0.051055908203125,
0.0003337860107421875,
-0.057098388671875,
0.043670654296875,
0.0212249755859375,
-0.00653076171875,
-0.0677490234375,
0.056060791015625,
-0.07208251953125,
-0.019866943359375,
0.054229736328125,
-0.0005617141723632812,
0.01108551025390625,
0.0280914306640625,
-0.0106201171875,
0.007720947265625,
-0.04522705078125,
0.0145111083984375,
-0.087890625,
-0.02691650390625,
-0.0224761962890625,
0.0860595703125,
0.02142333984375,
-0.0247802734375,
-0.004894256591796875,
0.056671142578125,
-0.022857666015625,
0.057159423828125,
-0.00791168212890625,
0.0302581787109375,
0.0281982421875,
-0.02227783203125,
-0.01092529296875,
-0.016143798828125,
0.010406494140625,
0.020904541015625,
-0.08642578125,
0.00687408447265625,
0.0163421630859375,
0.0225677490234375,
0.08209228515625,
-0.06878662109375,
-0.036834716796875,
-0.047637939453125,
-0.06085205078125,
0.003093719482421875,
-0.0073394775390625,
-0.01788330078125,
-0.049591064453125,
-0.055450439453125,
0.049896240234375,
-0.037750244140625,
-0.006114959716796875,
-0.003475189208984375,
0.052490234375,
0.0047454833984375,
-0.01467132568359375,
-0.028839111328125,
-0.0076446533203125,
0.039947509765625,
-0.007457733154296875,
0.0192718505859375,
0.0185546875,
-0.04852294921875,
0.07110595703125,
0.0196075439453125,
-0.01050567626953125,
0.04168701171875,
0.0634765625,
0.0188446044921875,
-0.0236663818359375,
0.01629638671875,
0.00705718994140625,
-0.08251953125,
0.0034503936767578125,
-0.006435394287109375,
-0.00582122802734375,
0.0189971923828125,
0.0181732177734375,
-0.006011962890625,
0.005706787109375,
-0.0249176025390625,
-0.0173797607421875,
0.0127105712890625,
-0.0015115737915039062,
0.006183624267578125,
0.0171661376953125,
-0.01389312744140625,
-0.0165557861328125,
-0.0019092559814453125,
-0.00003832578659057617,
0.06768798828125,
0.002155303955078125,
0.032470703125,
0.02081298828125,
0.045074462890625,
-0.005588531494140625,
0.019073486328125,
-0.0160980224609375,
0.09124755859375,
0.033355712890625,
-0.0276641845703125,
-0.021514892578125,
-0.00673675537109375,
-0.0033473968505859375,
-0.016998291015625,
0.0006036758422851562,
0.04052734375,
-0.0241241455078125,
-0.0122528076171875,
-0.0018320083618164062,
-0.04339599609375,
-0.0310211181640625,
-0.03961181640625,
-0.0038356781005859375,
0.02655029296875,
-0.0254974365234375,
-0.004512786865234375,
0.003215789794921875,
-0.00299072265625,
-0.0181121826171875,
-0.0037326812744140625,
0.00884246826171875,
-0.01531219482421875,
0.039306640625,
0.012847900390625,
-0.0189971923828125,
0.033905029296875,
-0.00603485107421875,
0.035491943359375,
-0.0192108154296875,
0.0004265308380126953,
0.0241851806640625,
0.045928955078125,
-0.0012311935424804688,
-0.004100799560546875,
-0.02459716796875,
-0.03204345703125,
-0.02081298828125,
0.031951904296875,
0.0181732177734375,
-0.0211639404296875,
-0.024932861328125,
-0.0174407958984375,
0.0128173828125,
-0.0008416175842285156,
-0.0183563232421875,
0.0164642333984375,
-0.0135345458984375,
0.01141357421875,
0.01245880126953125,
-0.035064697265625,
0.0223236083984375,
0.0220184326171875,
-0.03375244140625,
0.01360321044921875,
0.0286102294921875,
-0.06640625,
-0.037841796875,
-0.0106658935546875,
-0.00533294677734375,
0.0251007080078125,
-0.02685546875,
0.0311737060546875,
0.0021209716796875,
-0.02178955078125,
0.004581451416015625,
0.0246734619140625,
-0.0148468017578125,
-0.0235595703125,
-0.00589752197265625,
-0.0115509033203125,
-0.057769775390625,
-0.03607177734375,
-0.07293701171875,
-0.0384521484375,
-0.01448822021484375,
0.0179290771484375,
-0.00157928466796875,
0.01038360595703125,
-0.008270263671875,
0.00453948974609375,
-0.0382080078125,
0.038818359375,
0.0222320556640625,
0.054229736328125,
-0.0299072265625,
0.060577392578125,
0.0007076263427734375,
-0.006847381591796875,
0.0074615478515625,
0.03302001953125,
0.0127105712890625,
0.00988006591796875,
0.00865936279296875,
0.0167388916015625,
-0.0269317626953125,
-0.037261962890625,
-0.0013599395751953125,
0.020599365234375,
0.07757568359375,
-0.00917816162109375,
0.07568359375,
-0.001537322998046875,
0.01459503173828125,
-0.031829833984375,
-0.044708251953125,
-0.08538818359375,
0.0361328125,
0.025299072265625,
-0.014312744140625,
0.03643798828125,
-0.00962066650390625,
0.01454925537109375,
0.0020294189453125,
-0.0360107421875,
0.0311431884765625,
0.01541900634765625,
0.0034542083740234375,
-0.006763458251953125,
0.003170013427734375,
0.005260467529296875,
0.035125732421875,
0.007770538330078125,
0.035614013671875,
0.0221099853515625,
-0.0277862548828125,
0.038482666015625,
0.046478271484375,
0.022979736328125,
-0.040557861328125,
0.022491455078125,
-0.01514434814453125,
0.0025196075439453125,
0.037811279296875,
0.088623046875,
0.08831787109375,
-0.09869384765625,
0.01006317138671875,
0.01062774658203125,
-0.07025146484375,
0.0019931793212890625,
0.007633209228515625,
-0.03955078125,
-0.07574462890625,
0.07720947265625,
-0.052734375,
-0.01451873779296875,
0.026641845703125,
-0.0175933837890625,
0.00209808349609375,
-0.020233154296875,
0.025115966796875,
0.0146636962890625,
0.04248046875,
-0.026611328125,
0.00014925003051757812,
0.0225372314453125,
-0.04803466796875,
-0.0240020751953125,
0.02166748046875,
-0.0345458984375,
-0.0599365234375,
0.01049041748046875,
-0.01922607421875,
0.00795745849609375,
0.034881591796875,
0.034820556640625,
-0.0290069580078125,
0.039215087890625,
-0.028961181640625,
0.0208892822265625,
-0.024932861328125,
0.050506591796875,
-0.0170440673828125,
-0.0205841064453125,
0.0184326171875,
-0.01494598388671875,
-0.0282745361328125,
0.0156402587890625,
-0.0175933837890625,
-0.048797607421875,
-0.0027294158935546875,
-0.028076171875,
0.057586669921875,
-0.037078857421875,
-0.0038280487060546875,
0.01251220703125,
0.004039764404296875,
0.00582122802734375,
-0.005329132080078125,
0.036834716796875,
-0.06060791015625,
-0.035186767578125,
0.0082550048828125,
-0.052703857421875,
0.01058197021484375,
-0.004322052001953125,
-0.041839599609375,
0.024566650390625,
-0.0236968994140625,
0.022491455078125,
0.00939178466796875,
0.0079498291015625,
0.02471923828125,
-0.005344390869140625,
-0.0181884765625,
0.006984710693359375,
-0.0301513671875,
-0.049102783203125,
0.0104827880859375,
0.046783447265625,
-0.032470703125,
-0.04266357421875,
0.0083770751953125,
0.004444122314453125,
-0.0032806396484375,
0.01357269287109375,
0.051025390625,
0.025421142578125,
-0.0012483596801757812,
0.0023975372314453125,
-0.0226593017578125,
0.01540374755859375,
0.006000518798828125,
-0.06842041015625,
0.003376007080078125,
-0.007160186767578125,
-0.018646240234375,
0.0084228515625,
0.01560211181640625,
0.01355743408203125,
0.03582763671875,
0.015045166015625,
-0.0528564453125,
0.02789306640625,
0.04095458984375,
0.003688812255859375,
0.023223876953125,
0.02374267578125,
0.036895751953125,
-0.054962158203125,
-0.06109619140625,
-0.0191802978515625,
0.042449951171875,
-0.0010576248168945312,
0.03564453125,
0.040618896484375,
0.0176544189453125,
0.03472900390625,
-0.0171356201171875,
0.0175628662109375,
-0.00737762451171875,
-0.0079345703125,
0.0283203125,
0.01097869873046875,
0.0177001953125,
-0.0201263427734375,
0.0220184326171875,
0.018463134765625,
0.0303497314453125,
-0.0261383056640625,
-0.00482940673828125,
0.0113677978515625,
0.020477294921875,
0.0004794597625732422,
-0.016357421875,
0.0399169921875,
-0.035980224609375,
-0.018585205078125,
0.0016193389892578125,
0.002971649169921875,
0.01461029052734375,
-0.0214996337890625,
0.003765106201171875,
0.00930023193359375,
0.005489349365234375,
0.062225341796875,
-0.051605224609375,
0.0158843994140625,
0.02423095703125,
0.04339599609375,
0.0233154296875,
0.058807373046875,
0.014068603515625,
-0.020721435546875,
-0.0118560791015625,
0.01149749755859375,
0.0244140625,
0.0009584426879882812,
-0.00726318359375,
0.01447296142578125,
-0.006702423095703125,
0.03497314453125,
-0.01132965087890625,
-0.035369873046875,
0.038299560546875,
0.041534423828125,
-0.0296478271484375,
-0.0235137939453125,
0.01169586181640625,
-0.025543212890625,
0.0214996337890625,
-0.01242828369140625,
0.0220489501953125,
0.017120361328125,
-0.0018768310546875,
-0.0251922607421875,
0.04046630859375,
0.0258331298828125,
0.0012617111206054688,
0.0254669189453125,
0.00432586669921875,
-0.007030487060546875,
-0.007904052734375,
0.0220489501953125,
0.034912109375,
0.04290771484375,
-0.0828857421875,
-0.010467529296875,
-0.02996826171875,
-0.04754638671875,
0.0589599609375,
0.05718994140625,
0.0003750324249267578,
-0.00765228271484375,
0.0239715576171875,
-0.01084136962890625,
0.0118408203125,
-0.01953125,
0.02630615234375,
-0.0013427734375,
0.01204681396484375,
0.01751708984375,
-0.04400634765625,
-0.034088134765625,
-0.0245208740234375,
0.044677734375,
0.0291748046875,
0.038818359375,
0.0052642822265625,
0.04443359375,
-0.0733642578125,
-0.0158538818359375,
-0.007122039794921875,
-0.036041259765625,
0.0226287841796875,
0.0245819091796875,
-0.030029296875,
0.00004404783248901367,
-0.057586669921875,
0.004688262939453125,
0.038482666015625,
-0.0183258056640625,
0.01031494140625,
0.003749847412109375,
0.0153045654296875,
-0.0281982421875,
0.002681732177734375,
-0.0284881591796875,
-0.0096588134765625,
-0.023773193359375,
0.00812530517578125,
0.036041259765625,
0.01447296142578125,
-0.0281219482421875,
0.0020599365234375,
-0.040374755859375,
-0.032623291015625,
0.02618408203125,
-0.0123138427734375,
0.007770538330078125,
0.0301513671875,
-0.021942138671875,
-0.01087188720703125,
0.0219879150390625,
-0.01541900634765625,
-0.012298583984375,
0.0218048095703125,
-0.006458282470703125,
0.01346588134765625,
-0.043487548828125,
0.040985107421875,
0.0106048583984375,
0.0531005859375,
-0.01316070556640625,
0.01001739501953125,
0.024932861328125,
0.00399017333984375,
-0.007053375244140625,
-0.0232696533203125,
-0.0251617431640625,
-0.01336669921875,
0.01517486572265625,
0.021331787109375,
0.0290374755859375,
-0.01369476318359375,
-0.037261962890625,
-0.03369140625,
0.005573272705078125,
-0.0008258819580078125,
-0.0304412841796875,
0.0007047653198242188,
0.00812530517578125,
-0.0040283203125,
-0.043365478515625,
0.046905517578125,
-0.01424407958984375,
0.0296173095703125,
-0.06512451171875,
-0.031341552734375,
-0.044677734375,
0.00630950927734375,
-0.070068359375,
-0.0017604827880859375,
0.0216217041015625,
0.0024776458740234375,
-0.0205078125,
0.00788116455078125,
-0.0175933837890625,
0.03955078125,
-0.0111846923828125,
-0.003078460693359375,
0.02191162109375,
-0.01212310791015625,
-0.042022705078125,
-0.0733642578125,
0.028411865234375,
-0.08935546875,
-0.035797119140625,
0.01177978515625,
-0.0183868408203125,
0.0027866363525390625,
-0.0360107421875,
-0.07037353515625,
0.11785888671875,
-0.0115203857421875,
-0.020172119140625,
0.005512237548828125,
0.004871368408203125,
-0.0281524658203125,
0.015350341796875,
0.00012922286987304688,
-0.04559326171875,
0.00899505615234375,
0.012542724609375,
0.0182037353515625,
0.033782958984375,
0.037078857421875,
-0.00830078125,
-0.03643798828125,
-0.0258636474609375,
-0.01384735107421875,
0.033935546875,
-0.020172119140625,
0.0224151611328125,
-0.0234527587890625,
-0.006443023681640625,
-0.048431396484375,
-0.033111572265625,
0.001720428466796875,
0.067626953125,
-0.004726409912109375,
-0.037017822265625,
0.0125579833984375,
0.005611419677734375,
0.03607177734375,
0.0038604736328125,
-0.0068817138671875,
-0.03814697265625,
0.007534027099609375,
0.025115966796875,
-0.036895751953125,
-0.01076507568359375,
0.0177154541015625,
-0.042694091796875,
-0.022369384765625,
-0.0222625732421875,
-0.0007948875427246094,
0.0123443603515625,
0.016357421875,
-0.0026912689208984375,
-0.0119476318359375,
0.00007516145706176758,
-0.022552490234375,
-0.036285400390625,
-0.0294189453125,
0.0421142578125,
-0.0234832763671875,
0.00887298583984375,
0.013275146484375,
0.0283966064453125,
0.0188140869140625,
0.0224609375,
-0.034149169921875,
-0.043701171875,
0.0193023681640625,
0.0117340087890625,
-0.00356292724609375,
0.0229644775390625,
0.026123046875,
-0.0192108154296875,
-0.0218353271484375,
0.0296478271484375,
0.016632080078125,
0.037139892578125,
-0.042388916015625,
0.0127410888671875,
0.0292510986328125,
-0.0248260498046875,
-0.011474609375,
0.03814697265625,
0.0072021484375,
0.0256805419921875,
-0.00604248046875,
-0.007633209228515625,
0.0281829833984375,
-0.051025390625,
-0.01020050048828125,
-0.0056304931640625,
0.00311279296875,
-0.0760498046875,
0.055694580078125,
-0.0418701171875,
0.0159759521484375,
0.040496826171875
] |
bd1c8a33c68a4feb3408871c0a1436095e1b9d18
|
Wordpress Stackexchange
Q: something like is_childtheme() in the functions.php of a parent theme, I would like to check for wheter the theme is being run directly, or it is run via a child theme.
Is there a conventional way of doing this?
I cant find the is_childtheme() function I would have liked to have found.. so whats the best way? Check for theme name and compare it to parent theme's maybe? how can this be done?
A: As One Trick Pony said, there's a dedicated function (since WP 3.0):
is_child_theme()
|
Q: something like is_childtheme() in the functions.php of a parent theme, I would like to check for wheter the theme is being run directly, or it is run via a child theme.
Is there a conventional way of doing this?
I cant find the is_childtheme() function I would have liked to have found.. so whats the best way? Check for theme name and compare it to parent theme's maybe? how can this be done?
A: As One Trick Pony said, there's a dedicated function (since WP 3.0):
is_child_theme()
A: WordPress Core does it like this (at least, at one point):
if( TEMPLATEPATH !== STYLESHEETPATH )
// We have a child theme active
|
wordpress
|
{
"language": "en",
"length": 112,
"provenance": "stackexchange_00019.jsonl.gz:408655",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14874"
}
|
[
0.003971099853515625,
-0.01297760009765625,
-0.008575439453125,
-0.0074615478515625,
-0.0193023681640625,
-0.0207061767578125,
0.00815582275390625,
-0.01885986328125,
-0.01385498046875,
0.01505279541015625,
0.00909423828125,
0.00689697265625,
-0.039093017578125,
-0.024688720703125,
-0.01477813720703125,
-0.04547119140625,
0.0258026123046875,
-0.022705078125,
0.01274871826171875,
-0.006320953369140625,
-0.007808685302734375,
0.00594329833984375,
0.013885498046875,
0.033477783203125,
0.0335693359375,
-0.02789306640625,
0.084228515625,
-0.02984619140625,
0.054229736328125,
-0.0243682861328125,
0.03729248046875,
-0.0257720947265625,
-0.0065155029296875,
0.011627197265625,
0.0382080078125,
-0.0127410888671875,
-0.004276275634765625,
0.0190277099609375,
0.041351318359375,
-0.0051422119140625,
0.0162353515625,
-0.014923095703125,
1.1920928955078125e-7,
0.006591796875,
-0.0162353515625,
-0.02783203125,
0.02130126953125,
-0.0174102783203125,
0.009613037109375,
0.005390167236328125,
0.033782958984375,
0.0017757415771484375,
0.035186767578125,
0.0118865966796875,
-0.01338958740234375,
0.01666259765625,
0.01250457763671875,
-0.02880859375,
0.03533935546875,
-0.04827880859375,
-0.053253173828125,
-0.0225830078125,
0.035980224609375,
0.0089874267578125,
0.0081634521484375,
0.0012483596801757812,
-0.0235137939453125,
0.035858154296875,
-0.0236358642578125,
-0.0026988983154296875,
0.0201568603515625,
-0.019439697265625,
0.020904541015625,
-0.005382537841796875,
0.0252532958984375,
-0.04302978515625,
-0.00640106201171875,
-0.0175323486328125,
0.021881103515625,
0.0296783447265625,
-0.04736328125,
-0.03985595703125,
-0.08441162109375,
0.0107879638671875,
-0.0034847259521484375,
0.0173797607421875,
-0.01203155517578125,
0.0076904296875,
-0.039703369140625,
-0.007720947265625,
-0.033477783203125,
-0.01180267333984375,
-0.00640106201171875,
-0.01334381103515625,
-0.0229644775390625,
0.00962066650390625,
0.0601806640625,
0.07208251953125,
-0.047637939453125,
-0.024810791015625,
0.00457763671875,
-0.034149169921875,
-0.01265716552734375,
-0.0277252197265625,
0.0190582275390625,
0.061981201171875,
0.0014247894287109375,
-0.03082275390625,
0.006206512451171875,
0.00716400146484375,
0.0035610198974609375,
0.0027027130126953125,
-0.01214599609375,
-0.052154541015625,
-0.034515380859375,
0.05255126953125,
-0.0091400146484375,
-0.00681304931640625,
0.016632080078125,
0.026947021484375,
0.00321197509765625,
0.00983428955078125,
0.04583740234375,
0.0113677978515625,
-0.00658416748046875,
0.014801025390625,
-0.02032470703125,
-0.06439208984375,
0.034332275390625,
0.02374267578125,
-0.039794921875,
-0.0006260871887207031,
0.0293426513671875,
-0.00978851318359375,
-0.01177215576171875,
-0.0224609375,
0.02764892578125,
0.00991058349609375,
0.0229949951171875,
-0.0240478515625,
0.04229736328125,
-0.045440673828125,
-0.0239410400390625,
0.04669189453125,
-0.0027923583984375,
0.024810791015625,
0.008697509765625,
-0.0017452239990234375,
-0.0027828216552734375,
-0.04345703125,
0.028350830078125,
-0.040771484375,
0.0132904052734375,
0.0111236572265625,
0.0175933837890625,
-0.01044464111328125,
-0.00756072998046875,
0.00460052490234375,
-0.003215789794921875,
-0.002193450927734375,
-0.028045654296875,
-0.0157470703125,
0.0308837890625,
-0.0037288665771484375,
-0.0188446044921875,
0.036834716796875,
-0.0255889892578125,
-0.0037860870361328125,
0.0158538818359375,
-0.025726318359375,
0.0290985107421875,
-0.03973388671875,
0.004917144775390625,
-0.004001617431640625,
-0.0025196075439453125,
0.027740478515625,
-0.00927734375,
-0.023345947265625,
0.0364990234375,
0.005184173583984375,
-0.0209808349609375,
-0.0216827392578125,
0.01201629638671875,
-0.0103759765625,
-0.040771484375,
0.009368896484375,
0.0071868896484375,
0.03143310546875,
0.017608642578125,
0.004177093505859375,
-0.006153106689453125,
0.0189666748046875,
-0.038848876953125,
0.025543212890625,
-0.00025773048400878906,
-0.02886962890625,
-0.0087127685546875,
-0.007518768310546875,
-0.0185699462890625,
0.00902557373046875,
0.00604248046875,
-0.018646240234375,
0.01226043701171875,
-0.03668212890625,
-0.031524658203125,
-0.045379638671875,
-0.001544952392578125,
0.0236663818359375,
0.02166748046875,
0.03997802734375,
-0.0033092498779296875,
-0.0037899017333984375,
-0.007476806640625,
-0.036712646484375,
-0.0274505615234375,
0.006542205810546875,
-0.01102447509765625,
-0.0246734619140625,
-0.00037550926208496094,
-0.0086669921875,
-0.005565643310546875,
0.034881591796875,
-0.024017333984375,
-0.0094451904296875,
0.032257080078125,
0.02374267578125,
-0.02105712890625,
0.0106658935546875,
0.0382080078125,
0.0298309326171875,
-0.0019407272338867188,
-0.0012331008911132812,
0.023406982421875,
0.025726318359375,
-0.01216888427734375,
-0.01073455810546875,
0.00040841102600097656,
-0.042510986328125,
0.0035648345947265625,
0.0374755859375,
0.03692626953125,
0.038604736328125,
-0.0096893310546875,
-0.01203155517578125,
0.07440185546875,
-0.0506591796875,
-0.0155181884765625,
-0.0011014938354492188,
0.0245819091796875,
0.06573486328125,
-0.064208984375,
0.0109710693359375,
0.0198822021484375,
-0.06121826171875,
0.0170135498046875,
0.0460205078125,
0.012054443359375,
-0.0151519775390625,
-0.0084686279296875,
0.021697998046875,
0.01080322265625,
0.01190185546875,
-0.038604736328125,
0.021697998046875,
0.0458984375,
-0.012786865234375,
0.023284912109375,
0.0008683204650878906,
0.000007450580596923828,
-0.00783538818359375,
-0.0017194747924804688,
-0.045440673828125,
0.00072479248046875,
0.0692138671875,
0.05389404296875,
0.0023746490478515625,
-0.0260467529296875,
-0.042022705078125,
-0.016021728515625,
0.044097900390625,
-0.0219573974609375,
0.0197906494140625,
-0.0296783447265625,
-0.0117645263671875,
-0.020751953125,
-0.030120849609375,
0.017364501953125,
0.01453399658203125,
0.0218353271484375,
0.01068115234375,
0.035247802734375,
0.03570556640625,
-0.01313018798828125,
0.04217529296875,
-0.020538330078125,
-0.002597808837890625,
0.004810333251953125,
-0.034332275390625,
0.04144287109375,
-0.0241241455078125,
-0.03277587890625,
0.0396728515625,
0.0034465789794921875,
-0.0220947265625,
0.00533294677734375,
-0.0186309814453125,
0.00846099853515625,
0.00411224365234375,
-0.01549530029296875,
0.01238250732421875,
-0.0819091796875,
-0.0251617431640625,
0.00829315185546875,
0.05047607421875,
0.002414703369140625,
-0.0496826171875,
0.023712158203125,
0.00946807861328125,
-0.043792724609375,
-0.06732177734375,
-0.054046630859375,
-0.033172607421875,
-0.012725830078125,
-0.034332275390625,
-0.0139923095703125,
0.0277557373046875,
-0.042449951171875,
0.008758544921875,
0.013336181640625,
-0.061859130859375,
-0.035247802734375,
-0.07830810546875,
-0.0855712890625,
-0.0237579345703125,
0.0129852294921875,
0.007747650146484375,
-0.0098724365234375,
0.04949951171875,
0.01334381103515625,
-0.032073974609375,
-0.0024166107177734375,
0.0516357421875,
0.01922607421875,
0.002582550048828125,
0.0006723403930664062,
0.010528564453125,
-0.0035457611083984375,
0.0297698974609375,
-0.05950927734375,
-0.0033664703369140625,
-0.0146331787109375,
-0.040313720703125,
-0.02386474609375,
-0.01116180419921875,
0.005046844482421875,
0.047119140625,
0.021392822265625,
-0.01192474365234375,
0.04046630859375,
-0.05047607421875,
-0.0712890625,
-0.01654052734375,
-0.076416015625,
0.08905029296875,
0.054840087890625,
0.001628875732421875,
0.022308349609375,
0.010162353515625,
0.0293731689453125,
0.003143310546875,
0.01427459716796875,
-0.01641845703125,
0.06829833984375,
0.00989532470703125,
0.03521728515625,
-0.0321044921875,
-0.01512908935546875,
-0.036651611328125,
0.00316619873046875,
-0.02581787109375,
-0.005924224853515625,
-0.010894775390625,
0.01812744140625,
-0.01641845703125,
-0.016082763671875,
0.027069091796875,
0.005710601806640625,
0.041839599609375,
-0.035369873046875,
-0.0164794921875,
-0.0182952880859375,
0.057373046875,
-0.054840087890625,
-0.0163726806640625,
-0.0087890625,
0.00457763671875,
-0.036590576171875,
0.008453369140625,
-0.055328369140625,
0.00180816650390625,
-0.076171875,
0.013641357421875,
-0.01122283935546875,
-0.0156402587890625,
-0.020843505859375,
0.036529541015625,
-0.04754638671875,
-0.03271484375,
0.030914306640625,
-0.05010986328125,
-0.0252838134765625,
0.011383056640625,
-0.033660888671875,
-0.034881591796875,
-0.007045745849609375,
-0.024383544921875,
-0.079833984375,
-0.0092620849609375,
-0.058624267578125,
0.06890869140625,
0.042327880859375,
-0.04229736328125,
-0.004566192626953125,
0.048675537109375,
0.043609619140625,
0.055755615234375,
0.0125274658203125,
-0.039947509765625,
0.041046142578125,
0.025604248046875,
0.03521728515625,
-0.0026302337646484375,
-0.034210205078125,
-0.01329803466796875,
-0.0204315185546875,
0.005382537841796875,
0.00572967529296875,
-0.025390625,
0.041595458984375,
-0.021514892578125,
0.0012845993041992188,
0.0005655288696289062,
-0.01007080078125,
0.0157318115234375,
-0.019256591796875,
0.00881195068359375,
-0.003093719482421875,
-0.028839111328125,
0.07501220703125,
0.01654052734375,
-0.021820068359375,
0.00335693359375,
0.0582275390625,
0.01290130615234375,
-0.055084228515625,
-0.052581787109375,
0.00762939453125,
0.02947998046875,
-0.005352020263671875,
0.009490966796875,
-0.0199737548828125,
-0.03277587890625,
0.051910400390625,
0.0019550323486328125,
-0.01035308837890625,
0.039947509765625,
0.0225067138671875,
0.025482177734375,
-0.0050048828125,
0.0008797645568847656,
0.0261688232421875,
0.00689697265625,
0.0102691650390625,
-0.029205322265625,
-0.02813720703125,
-0.0238494873046875,
0.043792724609375,
-0.036041259765625,
0.064208984375,
-0.029205322265625,
-0.021270751953125,
0.0022068023681640625,
0.00789642333984375,
-0.018280029296875,
0.01316070556640625,
-0.003063201904296875,
-0.0190582275390625,
-0.012420654296875,
0.03729248046875,
-0.00467681884765625,
0.06939697265625,
-0.01270294189453125,
0.07012939453125,
-0.0023975372314453125,
0.033111572265625,
-0.04931640625,
-0.0054779052734375,
0.07196044921875,
-0.004123687744140625,
-0.02178955078125,
-0.022125244140625,
-0.01264190673828125,
0.01143646240234375,
-0.0006871223449707031,
0.01006317138671875,
0.0263519287109375,
0.00516510009765625,
-0.018463134765625,
-0.0131072998046875,
-0.0201568603515625,
0.007602691650390625,
-0.04864501953125,
-0.034576416015625,
-0.03167724609375,
-0.026519775390625,
0.03704833984375,
-0.022186279296875,
-0.051605224609375,
0.0219573974609375,
0.0022487640380859375,
-0.0261383056640625,
-0.00334930419921875,
0.026641845703125,
0.0489501953125,
-0.053131103515625,
0.04034423828125,
-0.032440185546875,
0.04742431640625,
-0.0252838134765625,
-0.047119140625,
0.043731689453125,
0.0369873046875,
-0.0022735595703125,
0.036834716796875,
-0.0188751220703125,
0.0166168212890625,
-0.0213623046875,
0.0008192062377929688,
-0.008758544921875,
-0.0206756591796875,
-0.0252227783203125,
-0.0122222900390625,
0.0156097412109375,
0.03851318359375,
-0.029571533203125,
-0.0014200210571289062,
-0.052001953125,
-0.032470703125,
0.031768798828125,
-0.07611083984375,
0.0222930908203125,
0.019256591796875,
-0.07568359375,
-0.0164642333984375,
-0.0001989603042602539,
-0.04998779296875,
-0.040435791015625,
0.0012140274047851562,
-0.0299072265625,
0.0005002021789550781,
-0.00861358642578125,
0.009185791015625,
-0.022796630859375,
-0.005741119384765625,
-0.015380859375,
-0.004299163818359375,
0.06976318359375,
0.0233001708984375,
-0.08465576171875,
0.006626129150390625,
-0.07269287109375,
-0.01316070556640625,
-0.08062744140625,
-0.07470703125,
-0.05670166015625,
0.0116424560546875,
-0.01203155517578125,
-0.01342010498046875,
0.01345062255859375,
0.0091552734375,
-0.0299072265625,
0.052825927734375,
0.0307464599609375,
-0.009857177734375,
0.0195465087890625,
0.04779052734375,
-0.012603759765625,
0.01413726806640625,
0.0352783203125,
0.0180511474609375,
-0.041046142578125,
-0.01312255859375,
0.00910186767578125,
0.02374267578125,
0.015899658203125,
-0.017547607421875,
0.03887939453125,
-0.06500244140625,
0.0006928443908691406,
-0.0085296630859375,
0.036285400390625,
-0.0400390625,
-0.0012311935424804688,
-0.0185699462890625,
0.0071258544921875,
-0.0675048828125,
-0.0066986083984375,
-0.0019407272338867188,
-0.0230712890625,
-0.05401611328125,
-0.0197906494140625,
-0.0085906982421875,
0.028594970703125,
0.0235137939453125,
-0.013641357421875,
0.017608642578125,
-0.0872802734375,
0.0732421875,
0.051910400390625,
0.006389617919921875,
0.04278564453125,
-0.038177490234375,
0.01439666748046875,
0.010711669921875,
0.03778076171875,
-0.007251739501953125,
-0.037109375,
0.046417236328125,
0.0239105224609375,
0.004894256591796875,
0.0267791748046875,
-0.0196685791015625,
-0.0158538818359375,
0.01062774658203125,
0.03472900390625,
-0.03057861328125,
0.0008521080017089844,
0.0174102783203125,
-0.016143798828125,
-0.0150604248046875,
-0.01873779296875,
-0.0027027130126953125,
0.0031280517578125,
0.043060302734375,
-0.02984619140625,
-0.0214691162109375,
0.024169921875,
-0.02264404296875,
0.0084381103515625,
-0.0184478759765625,
0.054595947265625,
0.0179901123046875,
0.03253173828125,
-0.01226043701171875,
-0.019073486328125,
0.026397705078125,
-0.0350341796875,
0.0179290771484375,
-0.0211639404296875,
-0.006603240966796875,
-0.0222320556640625,
0.02777099609375,
-0.0213623046875,
0.03564453125,
-0.0272064208984375,
0.01885986328125,
-0.00952911376953125,
0.06292724609375,
-0.040130615234375,
0.0104522705078125,
0.04632568359375,
-0.0243072509765625,
-0.039215087890625,
-0.0005035400390625,
0.045928955078125,
-0.02288818359375,
-0.039337158203125,
0.0201263427734375,
-0.07501220703125,
-0.0318603515625,
0.00417327880859375,
-0.01390838623046875,
0.04437255859375,
-0.0084228515625,
-0.0117950439453125,
0.03326416015625,
-0.0012159347534179688,
-0.009918212890625,
0.01438140869140625,
0.038543701171875,
-0.024169921875,
-0.0306549072265625,
0.022979736328125,
-0.0235748291015625,
-0.0172119140625,
-0.0029125213623046875,
-0.054534912109375,
0.11749267578125,
0.01111602783203125,
0.03277587890625,
0.0232696533203125,
0.042724609375,
-0.04022216796875,
0.0177154541015625,
-0.040069580078125,
0.07452392578125,
0.061309814453125,
0.05499267578125,
-0.0178070068359375,
-0.0156707763671875,
0.0228729248046875,
0.0306243896484375,
0.0200958251953125,
-0.0035991668701171875,
0.0016736984252929688,
0.0008044242858886719,
0.048675537109375,
0.034393310546875,
-0.006252288818359375,
0.0335693359375,
-0.005504608154296875,
-0.0264739990234375,
0.021759033203125,
-0.001953125,
0.0257720947265625,
-0.01134490966796875,
-0.003253936767578125,
0.0188751220703125,
0.0163421630859375,
-0.0025806427001953125,
-0.0074462890625,
0.00215911865234375,
-0.03466796875,
-0.01270294189453125,
0.02001953125,
-0.052032470703125,
0.03216552734375,
0.0203704833984375,
0.021881103515625,
-0.026275634765625,
-0.01453399658203125,
-0.01351165771484375,
0.0343017578125,
-0.0212249755859375,
0.021575927734375,
0.0019216537475585938,
0.035186767578125,
-0.029144287109375,
-0.03582763671875,
0.0004227161407470703,
0.0294647216796875,
-0.058685302734375,
-0.0171356201171875,
0.027923583984375,
0.02410888671875,
-0.007843017578125,
0.01078033447265625,
0.0169219970703125,
-0.00868988037109375,
-0.0208587646484375,
-0.048675537109375,
0.005771636962890625,
0.0023975372314453125,
-0.00319671630859375,
0.0036640167236328125,
-0.006744384765625,
0.03759765625,
0.0506591796875,
-0.0186614990234375,
-0.03424072265625,
0.0177154541015625,
0.042572021484375,
0.0160064697265625,
0.020050048828125,
-0.0288543701171875,
-0.0562744140625,
-0.006317138671875,
-0.01031494140625,
0.02117919921875,
0.04156494140625,
-0.0072021484375,
0.07440185546875,
-0.0291595458984375,
-0.0029010772705078125,
-0.0078277587890625,
-0.01418304443359375,
-0.01154327392578125,
0.01526641845703125,
-0.00634765625,
0.016082763671875,
0.0167999267578125,
0.023681640625,
0.030426025390625,
0.017608642578125,
0.031524658203125,
0.0200347900390625,
-0.01538848876953125,
0.0067138671875,
0.03277587890625,
-0.0214996337890625,
-0.011444091796875,
-0.024688720703125,
-0.019012451171875,
0.00380706787109375,
-0.01308441162109375,
-0.0154571533203125,
0.013580322265625,
0.0262603759765625,
-0.014068603515625,
0.0321044921875,
-0.0007295608520507812,
0.002826690673828125,
0.01003265380859375,
0.01026153564453125,
0.004734039306640625,
0.016204833984375,
-0.11895751953125,
-0.036529541015625,
0.03131103515625,
-0.017913818359375,
0.0047607421875,
0.043975830078125,
-0.01079559326171875,
0.0014142990112304688,
0.005859375,
-0.0013751983642578125,
-0.00330352783203125,
0.0136566162109375,
-0.01525115966796875,
-0.005615234375,
0.0234375,
-0.0003654956817626953,
-0.0027370452880859375,
-0.00724029541015625,
-0.0020618438720703125,
0.0244293212890625,
0.02764892578125,
0.0308837890625,
-0.0091400146484375,
0.0217132568359375,
-0.003032684326171875,
0.037506103515625,
-0.04345703125,
-0.0302276611328125,
0.08837890625,
-0.0230560302734375,
-0.018707275390625,
-0.01134490966796875,
-0.09869384765625,
0.003932952880859375,
0.03143310546875,
0.0249786376953125,
0.024078369140625,
-0.018402099609375,
0.036346435546875,
-0.01441192626953125,
0.019439697265625,
-0.016204833984375,
-0.038604736328125,
-0.01268768310546875,
0.01457977294921875,
0.004688262939453125,
-0.0008063316345214844,
-0.02691650390625,
0.007038116455078125,
0.033172607421875,
-0.0345458984375,
0.0226898193359375,
0.002246856689453125,
0.00843048095703125,
0.0297698974609375,
0.007488250732421875,
-0.07958984375,
0.0179901123046875,
-0.005191802978515625,
0.01238250732421875,
0.006622314453125,
0.0916748046875,
0.02301025390625,
-0.040924072265625,
0.0347900390625,
0.0274810791015625,
0.038604736328125,
-0.048797607421875,
-0.00004690885543823242,
0.048095703125,
0.00339508056640625,
0.051544189453125,
-0.05084228515625,
-0.03668212890625,
-0.0723876953125,
0.032989501953125,
0.0238800048828125,
-0.00997161865234375,
-0.0185394287109375,
0.00801849365234375,
0.0064849853515625,
0.059173583984375,
0.00922393798828125,
-0.021759033203125,
0.00868988037109375,
-0.032318115234375,
0.0120391845703125,
0.032135009765625,
-0.0025844573974609375,
-0.00220489501953125,
-0.02099609375,
-0.0328369140625,
0.0156707763671875,
-0.035797119140625,
-0.0065765380859375,
0.00920867919921875,
0.035736083984375,
0.057464599609375,
-0.040771484375,
0.006565093994140625,
0.041839599609375,
0.037017822265625,
0.08636474609375,
-0.005329132080078125,
-0.036376953125,
0.0185394287109375,
-0.01186370849609375,
-0.011383056640625,
0.0220184326171875,
0.0369873046875,
-0.04364013671875,
-0.057464599609375,
-0.032623291015625,
0.0182952880859375,
0.0240478515625,
-0.037811279296875,
-0.08587646484375,
0.045074462890625,
-0.022308349609375,
-0.046844482421875,
-0.047149658203125,
0.015045166015625,
-0.00917816162109375,
-0.0025482177734375,
-0.017242431640625,
0.01042938232421875,
0.00634765625,
0.061676025390625,
0.01194000244140625,
0.00394439697265625,
0.0029506683349609375,
0.015533447265625,
-0.04779052734375,
0.017791748046875,
0.00859832763671875,
0.003604888916015625,
0.0177154541015625,
0.0035495758056640625,
0.020172119140625,
0.04736328125,
-0.029510498046875,
0.01287078857421875,
-0.02105712890625,
-0.009613037109375,
0.00798797607421875,
-0.0156097412109375,
-0.00592041015625,
-0.006946563720703125,
0.03594970703125,
0.00954437255859375,
0.0005364418029785156,
-0.0109405517578125,
-0.072998046875,
-0.0675048828125,
-0.06500244140625,
0.000014722347259521484,
0.03753662109375,
-0.087890625,
0.0382080078125,
0.041259765625,
-0.037994384765625,
-0.0219268798828125,
0.00655364990234375,
-0.066650390625,
0.01085662841796875,
-0.0197601318359375,
0.0013570785522460938,
-0.040435791015625,
-0.0458984375,
0.06829833984375,
-0.026458740234375,
0.0096435546875,
0.0030460357666015625,
0.0447998046875,
0.026702880859375,
0.01380157470703125,
0.056854248046875,
0.0560302734375,
-0.051544189453125,
-0.0107421875,
0.045989990234375,
0.00530242919921875,
-0.004364013671875,
-0.034881591796875,
-0.0108795166015625,
0.006313323974609375,
-0.0097198486328125,
-0.012481689453125,
-0.004070281982421875,
0.0506591796875,
-0.007114410400390625,
0.066650390625,
0.0016727447509765625,
0.058929443359375,
-0.01166534423828125,
0.03363037109375,
-0.00748443603515625,
-0.0207672119140625,
0.004314422607421875,
-0.012176513671875,
0.0015201568603515625,
-0.023895263671875,
-0.0150299072265625,
-0.06494140625,
0.0222015380859375,
-0.031219482421875,
-0.011932373046875,
0.026092529296875
] |
fbcdeb3791f15847e6ef8d1d2878e263f1f9f701
|
Wordpress Stackexchange
Q: How do I convert a mathematical Microsoft Word document to a WordPress blog post? I have a Microsoft Word document which I would like to convert to WordPress.
The document is in Hebrew. It contains mathematical equations generated with MathType. It also contains images.
Just copying and pasting the text of the document to the text area (in WordPress control pannel) wouldn't work because of the equations and images. What is the simplest way to do it?
A: You've got 2 separate issues here
*
*Word -> Wordpress: As @One Trick Pony said, the easiest way to sort this will be using the Paste from Word button on the post editing toolbar. Images will probably need to be inserted manually
*MathType -> WordPress: You'll need to install the Latex for WordPress plugin and use MathType to export the equations out in a standard Latex format - see this post for how to do it.
If you don't have MathType, I believe there are some tools you can find online and download that will convert MathType to Latex
|
Q: How do I convert a mathematical Microsoft Word document to a WordPress blog post? I have a Microsoft Word document which I would like to convert to WordPress.
The document is in Hebrew. It contains mathematical equations generated with MathType. It also contains images.
Just copying and pasting the text of the document to the text area (in WordPress control pannel) wouldn't work because of the equations and images. What is the simplest way to do it?
A: You've got 2 separate issues here
*
*Word -> Wordpress: As @One Trick Pony said, the easiest way to sort this will be using the Paste from Word button on the post editing toolbar. Images will probably need to be inserted manually
*MathType -> WordPress: You'll need to install the Latex for WordPress plugin and use MathType to export the equations out in a standard Latex format - see this post for how to do it.
If you don't have MathType, I believe there are some tools you can find online and download that will convert MathType to Latex
|
wordpress
|
{
"language": "en",
"length": 178,
"provenance": "stackexchange_00019.jsonl.gz:408656",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14876"
}
|
[
0.0204925537109375,
-0.01372528076171875,
0.01715087890625,
0.02447509765625,
-0.01090240478515625,
-0.031494140625,
0.06268310546875,
-0.044342041015625,
-0.005382537841796875,
0.00887298583984375,
-0.031219482421875,
0.0115203857421875,
-0.001834869384765625,
-0.0213165283203125,
0.01013946533203125,
-0.0283203125,
0.05255126953125,
-0.0139617919921875,
0.04986572265625,
-0.00388336181640625,
-0.02130126953125,
0.0347900390625,
0.11041259765625,
0.011199951171875,
0.006305694580078125,
0.00707244873046875,
0.10089111328125,
-0.043121337890625,
-0.0002884864807128906,
-0.0394287109375,
0.0180511474609375,
0.0007672309875488281,
0.037200927734375,
0.0196075439453125,
-0.031951904296875,
0.030914306640625,
-0.032440185546875,
0.01261138916015625,
-0.004039764404296875,
0.0260772705078125,
-0.0006399154663085938,
0.015228271484375,
0.002033233642578125,
-0.00044345855712890625,
-0.02703857421875,
-0.0225982666015625,
0.005035400390625,
-0.014984130859375,
-0.004772186279296875,
0.017669677734375,
0.0222625732421875,
-0.00873565673828125,
0.034454345703125,
-0.00577545166015625,
-0.004779815673828125,
-0.019012451171875,
-0.01494598388671875,
0.0118865966796875,
0.0030612945556640625,
0.0068206787109375,
-0.007305145263671875,
0.023529052734375,
0.01116943359375,
0.017303466796875,
0.0006756782531738281,
0.0224609375,
-0.08349609375,
0.01312255859375,
-0.0146636962890625,
0.00333404541015625,
-0.0137786865234375,
-0.07940673828125,
0.0103607177734375,
-0.03741455078125,
0.0225372314453125,
0.006683349609375,
-0.0303497314453125,
-0.0401611328125,
0.0159912109375,
0.005367279052734375,
0.0504150390625,
0.034393310546875,
-0.00925445556640625,
-0.018035888671875,
-0.00032448768615722656,
-0.0241546630859375,
0.0085296630859375,
-0.032073974609375,
-0.050140380859375,
-0.0601806640625,
-0.0309906005859375,
0.00896453857421875,
-0.11407470703125,
0.005847930908203125,
-0.01953125,
-0.01488494873046875,
-0.06414794921875,
-0.07464599609375,
0.010162353515625,
0.0509033203125,
0.0045166015625,
-0.0433349609375,
0.06903076171875,
-0.0247039794921875,
-0.0062713623046875,
0.044830322265625,
-0.010040283203125,
-0.046844482421875,
-0.00970458984375,
0.00048422813415527344,
-0.01904296875,
-0.0562744140625,
-0.006603240966796875,
-0.06805419921875,
0.020965576171875,
0.0626220703125,
0.005168914794921875,
0.03289794921875,
0.03387451171875,
0.007701873779296875,
-0.00418853759765625,
0.0130462646484375,
0.0000014901161193847656,
0.032684326171875,
-0.0008406639099121094,
0.0081787109375,
0.01163482666015625,
-0.00850677490234375,
0.059814453125,
0.005523681640625,
-0.036468505859375,
0.0130767822265625,
0.04962158203125,
0.01062774658203125,
-0.0086822509765625,
-0.004184722900390625,
0.040069580078125,
-0.009033203125,
-0.02606201171875,
0.0269622802734375,
-0.0053863525390625,
-0.047698974609375,
-0.0360107421875,
-0.014923095703125,
-0.043426513671875,
0.057373046875,
0.032379150390625,
-0.0245361328125,
-0.04522705078125,
-0.04931640625,
-0.0244293212890625,
-0.0302581787109375,
0.0374755859375,
-0.0028667449951171875,
-0.025848388671875,
-0.04254150390625,
-0.00601959228515625,
-0.0244598388671875,
0.0260162353515625,
-0.032257080078125,
0.0173797607421875,
0.00829315185546875,
0.0168609619140625,
0.02374267578125,
-0.0013704299926757812,
-0.0038242340087890625,
-0.0277557373046875,
0.007617950439453125,
0.03533935546875,
-0.0037479400634765625,
0.020355224609375,
-0.01137542724609375,
0.0416259765625,
-0.0026531219482421875,
-0.01045989990234375,
0.0031185150146484375,
-0.0024471282958984375,
-0.0272674560546875,
-0.0006351470947265625,
0.0697021484375,
0.047088623046875,
0.000012993812561035156,
-0.000171661376953125,
0.02789306640625,
0.04168701171875,
-0.062255859375,
0.0199737548828125,
-0.041229248046875,
0.0019216537475585938,
0.032073974609375,
-0.0306549072265625,
0.0222930908203125,
-0.0310211181640625,
0.0207366943359375,
-0.0221099853515625,
-0.03863525390625,
0.0089874267578125,
-0.01036834716796875,
-0.017730712890625,
0.030548095703125,
-0.004688262939453125,
0.036712646484375,
-0.039886474609375,
0.004024505615234375,
-0.01065826416015625,
-0.00516510009765625,
0.01412200927734375,
0.017120361328125,
0.01406097412109375,
0.04266357421875,
0.006572723388671875,
-0.0003275871276855469,
-0.033843994140625,
0.0236358642578125,
-0.01027679443359375,
-0.046783447265625,
-0.002376556396484375,
-0.00627899169921875,
-0.0063629150390625,
-0.027069091796875,
-0.0027332305908203125,
0.0013761520385742188,
-0.006191253662109375,
0.03045654296875,
-0.04058837890625,
-0.01427459716796875,
-0.0257110595703125,
-0.0023860931396484375,
-0.03033447265625,
-0.019134521484375,
0.0631103515625,
0.036651611328125,
-0.0142669677734375,
0.002841949462890625,
-0.04302978515625,
-0.0042877197265625,
-0.0023097991943359375,
0.01342010498046875,
0.01041412353515625,
0.03466796875,
0.0107421875,
0.00543975830078125,
-0.010772705078125,
0.01328277587890625,
0.0230865478515625,
0.0305633544921875,
0.02655029296875,
-0.0201263427734375,
0.005298614501953125,
0.0294342041015625,
-0.00850677490234375,
-0.0179901123046875,
0.01245880126953125,
-0.054718017578125,
0.01032257080078125,
0.040496826171875,
0.0341796875,
0.029144287109375,
-0.047027587890625,
0.044158935546875,
-0.0163421630859375,
0.0033893585205078125,
-0.0247650146484375,
-0.0182952880859375,
0.020904541015625,
0.0195159912109375,
0.03436279296875,
0.03369140625,
-0.02386474609375,
0.0032978057861328125,
0.006786346435546875,
0.01078033447265625,
0.0038166046142578125,
-0.00997161865234375,
-0.031005859375,
0.0160980224609375,
-0.006328582763671875,
0.01396942138671875,
0.008270263671875,
-0.01305389404296875,
0.00357818603515625,
0.010772705078125,
-0.003383636474609375,
-0.0098419189453125,
0.0259552001953125,
0.003704071044921875,
0.01097869873046875,
0.0139312744140625,
-0.025543212890625,
-0.00650787353515625,
0.0162506103515625,
0.041748046875,
0.00370025634765625,
0.0187225341796875,
0.0170135498046875,
0.0024738311767578125,
0.01288604736328125,
-0.052886962890625,
0.0517578125,
-0.0277862548828125,
0.056365966796875,
0.070068359375,
-0.0092620849609375,
0.005828857421875,
-0.00789642333984375,
0.06256103515625,
0.01226043701171875,
-0.00984954833984375,
-0.00994873046875,
-0.0225982666015625,
-0.02764892578125,
-0.046112060546875,
-0.02105712890625,
0.0031681060791015625,
-0.03973388671875,
-0.04754638671875,
-0.032501220703125,
-0.039276123046875,
-0.1124267578125,
-0.0570068359375,
-0.00728607177734375,
-0.09381103515625,
0.0031890869140625,
-0.0169525146484375,
-0.052947998046875,
0.007297515869140625,
0.0210113525390625,
-0.00395965576171875,
0.008544921875,
-0.0126800537109375,
-0.1046142578125,
-0.04510498046875,
-0.099609375,
0.018341064453125,
-0.0127410888671875,
0.028961181640625,
0.0240936279296875,
-0.0297698974609375,
0.004100799560546875,
0.0230712890625,
0.048309326171875,
0.058624267578125,
-0.011566162109375,
-0.0440673828125,
-0.009490966796875,
-0.03143310546875,
0.009674072265625,
-0.0175628662109375,
0.04498291015625,
0.027313232421875,
-0.0182342529296875,
0.022003173828125,
-0.02191162109375,
0.03485107421875,
-0.01267242431640625,
-0.004222869873046875,
0.032196044921875,
-0.00536346435546875,
-0.034881591796875,
-0.05474853515625,
-0.0216217041015625,
0.0457763671875,
0.0012502670288085938,
0.038116455078125,
-0.030181884765625,
-0.0401611328125,
-0.0174560546875,
0.0592041015625,
-0.009735107421875,
0.024566650390625,
0.0018224716186523438,
-0.01018524169921875,
0.0207977294921875,
-0.018707275390625,
-0.0177001953125,
0.0036067962646484375,
0.0261993408203125,
-0.032135009765625,
0.03875732421875,
0.0146942138671875,
-0.023651123046875,
0.0012540817260742188,
-0.005462646484375,
0.0290374755859375,
-0.03741455078125,
0.0229339599609375,
-0.046417236328125,
-0.01319122314453125,
0.006500244140625,
-0.00528717041015625,
0.0179443359375,
0.05108642578125,
0.033355712890625,
-0.0294342041015625,
-0.006740570068359375,
0.00785064697265625,
-0.01534271240234375,
-0.029266357421875,
-0.0058135986328125,
-0.011962890625,
-0.002658843994140625,
0.0277252197265625,
0.01323699951171875,
0.0201873779296875,
-0.069091796875,
0.08673095703125,
-0.03472900390625,
-0.0017032623291015625,
0.0143890380859375,
-0.04461669921875,
0.00621795654296875,
0.02349853515625,
-0.02099609375,
0.00725555419921875,
-0.005352020263671875,
-0.04449462890625,
-0.0648193359375,
-0.0027980804443359375,
-0.0236053466796875,
0.057373046875,
0.0108184814453125,
-0.02630615234375,
-0.0120086669921875,
0.036712646484375,
-0.0173187255859375,
-0.0305938720703125,
-0.0276336669921875,
0.02191162109375,
-0.05145263671875,
-0.0042877197265625,
-0.041412353515625,
-0.038848876953125,
-0.009857177734375,
0.006130218505859375,
-0.0007510185241699219,
0.02685546875,
-0.00925445556640625,
0.0002065896987915039,
0.00533294677734375,
-0.015899658203125,
0.0268707275390625,
-0.0181427001953125,
-0.0389404296875,
0.0252838134765625,
-0.0212249755859375,
-0.0209503173828125,
-0.0287933349609375,
-0.0112152099609375,
0.04388427734375,
0.024505615234375,
-0.0114288330078125,
-0.00027179718017578125,
0.0202789306640625,
0.016265869140625,
-0.03851318359375,
-0.0638427734375,
-0.0027942657470703125,
0.0237579345703125,
-0.005970001220703125,
0.04974365234375,
0.0201416015625,
-0.005298614501953125,
0.047027587890625,
0.00664520263671875,
0.00785064697265625,
-0.04449462890625,
0.0731201171875,
0.007488250732421875,
0.01534271240234375,
0.007110595703125,
-0.00675201416015625,
0.01690673828125,
0.0175933837890625,
-0.0065155029296875,
0.003082275390625,
0.04437255859375,
0.018341064453125,
-0.02227783203125,
-0.01180267333984375,
-0.0170745849609375,
-0.023101806640625,
0.00876617431640625,
0.0291748046875,
-0.005138397216796875,
-0.01088714599609375,
0.0101776123046875,
-0.0180816650390625,
0.007404327392578125,
-0.0183258056640625,
0.0272369384765625,
0.004764556884765625,
0.01806640625,
0.005352020263671875,
0.0307159423828125,
-0.0248565673828125,
0.00891876220703125,
-0.01482391357421875,
0.0285186767578125,
0.0176849365234375,
-0.050140380859375,
0.0228271484375,
-0.01157379150390625,
0.005725860595703125,
0.00072479248046875,
-0.013519287109375,
0.0205078125,
0.043792724609375,
-0.0203857421875,
0.00931549072265625,
-0.01480865478515625,
-0.003498077392578125,
-0.043548583984375,
-0.01519012451171875,
-0.035980224609375,
-0.0120849609375,
0.00965118408203125,
0.0016937255859375,
-0.0498046875,
0.0164337158203125,
0.004772186279296875,
-0.0020122528076171875,
0.007595062255859375,
0.01239776611328125,
0.0201263427734375,
0.004634857177734375,
-0.01318359375,
0.0018138885498046875,
0.018035888671875,
-0.03369140625,
-0.007568359375,
-0.006500244140625,
0.038360595703125,
-0.0245208740234375,
-0.040557861328125,
0.0390625,
-0.031219482421875,
0.003971099853515625,
-0.08502197265625,
0.00762939453125,
0.08636474609375,
0.025482177734375,
-0.0445556640625,
-0.043487548828125,
0.05267333984375,
0.00797271728515625,
-0.022979736328125,
0.0076904296875,
0.0230865478515625,
-0.033050537109375,
0.031036376953125,
-0.0243682861328125,
-0.03271484375,
0.031494140625,
-0.01800537109375,
-0.027618408203125,
-0.0216217041015625,
-0.01311492919921875,
-0.00209808349609375,
0.0088653564453125,
0.03900146484375,
-0.01342010498046875,
-0.03106689453125,
-0.039459228515625,
0.042327880859375,
-0.05609130859375,
-0.0016269683837890625,
0.02886962890625,
-0.01157379150390625,
0.040802001953125,
-0.0204620361328125,
-0.034423828125,
-0.039337158203125,
0.04833984375,
0.01715087890625,
0.0082855224609375,
-0.029388427734375,
0.0162200927734375,
0.0347900390625,
-0.014068603515625,
-0.040313720703125,
-0.008056640625,
0.0106048583984375,
0.01226806640625,
0.0567626953125,
0.01154327392578125,
0.0194854736328125,
0.019317626953125,
0.0447998046875,
0.01490020751953125,
0.0034618377685546875,
-0.051910400390625,
-0.0254669189453125,
0.01123809814453125,
-0.0736083984375,
-0.0022640228271484375,
0.00006097555160522461,
0.01288604736328125,
-0.0189208984375,
-0.046875,
0.0016870498657226562,
0.0021953582763671875,
0.005718231201171875,
0.0146942138671875,
-0.01195526123046875,
-0.01262664794921875,
-0.01349639892578125,
0.0030879974365234375,
-0.022125244140625,
-0.04327392578125,
0.0220489501953125,
-0.021392822265625,
0.0180816650390625,
0.03204345703125,
-0.060455322265625,
-0.001499176025390625,
0.07818603515625,
0.0546875,
-0.0299072265625,
-0.0137176513671875,
-0.0252532958984375,
0.0238037109375,
0.0279388427734375,
0.023651123046875,
0.01885986328125,
-0.0028324127197265625,
0.0053253173828125,
0.00894927978515625,
0.01213836669921875,
-0.019744873046875,
-0.0208740234375,
-0.02679443359375,
-0.0323486328125,
-0.0038013458251953125,
0.052947998046875,
0.05792236328125,
-0.072998046875,
0.0014209747314453125,
0.0021991729736328125,
-0.032867431640625,
0.0017824172973632812,
-0.0009169578552246094,
-0.002506256103515625,
-0.035797119140625,
0.0289154052734375,
0.036468505859375,
-0.006237030029296875,
0.01505279541015625,
0.0111541748046875,
-0.004894256591796875,
-0.017303466796875,
0.043121337890625,
0.0140533447265625,
-0.0172882080078125,
-0.0183563232421875,
0.015777587890625,
-0.0091552734375,
-0.03759765625,
0.0166778564453125,
-0.004154205322265625,
-0.0032558441162109375,
-0.0821533203125,
-0.005405426025390625,
-0.0252838134765625,
0.0007376670837402344,
-0.05511474609375,
0.0021114349365234375,
0.0290985107421875,
0.052581787109375,
-0.0288848876953125,
-0.0081024169921875,
0.0379638671875,
0.0215301513671875,
-0.0103607177734375,
0.0203704833984375,
0.007221221923828125,
0.04864501953125,
-0.0322265625,
0.00800323486328125,
-0.03424072265625,
0.04669189453125,
-0.0023250579833984375,
-0.0250244140625,
-0.006221771240234375,
0.021942138671875,
-0.0176239013671875,
0.06640625,
-0.004833221435546875,
-0.042327880859375,
-0.003986358642578125,
0.0143890380859375,
-0.0377197265625,
0.01180267333984375,
0.01343536376953125,
0.009796142578125,
0.0209503173828125,
0.0153350830078125,
-0.04302978515625,
0.0826416015625,
-0.013458251953125,
-0.0006623268127441406,
0.0016107559204101562,
0.041473388671875,
-0.0010595321655273438,
0.037841796875,
0.0013055801391601562,
0.031219482421875,
0.0260009765625,
0.01812744140625,
-0.031402587890625,
-0.0275421142578125,
0.00678253173828125,
0.0604248046875,
-0.0241851806640625,
-0.0249176025390625,
-0.0197906494140625,
-0.0159759521484375,
0.04962158203125,
0.10394287109375,
0.07489013671875,
-0.020416259765625,
-0.0020961761474609375,
0.006198883056640625,
0.023681640625,
-0.006671905517578125,
0.0251312255859375,
-0.0121612548828125,
-0.0190582275390625,
0.01654052734375,
0.0119476318359375,
-0.004150390625,
-0.016448974609375,
0.00902557373046875,
0.0006966590881347656,
-0.01033782958984375,
0.002044677734375,
-0.0256195068359375,
0.0234375,
0.03778076171875,
0.002838134765625,
-0.0101776123046875,
0.0330810546875,
-0.02294921875,
0.0380859375,
-0.03863525390625,
-0.006679534912109375,
-0.01261138916015625,
0.006053924560546875,
0.053680419921875,
-0.05291748046875,
-0.0251617431640625,
0.015655517578125,
-0.00948333740234375,
0.0275421142578125,
0.027984619140625,
0.0181121826171875,
0.020782470703125,
0.050506591796875,
0.0250396728515625,
0.0169525146484375,
-0.033355712890625,
-0.021240234375,
0.01434326171875,
0.0274200439453125,
0.0239105224609375,
-0.033538818359375,
0.018951416015625,
0.0065460205078125,
0.041778564453125,
-0.026885986328125,
-0.01064300537109375,
0.00004494190216064453,
0.0036144256591796875,
-0.0221710205078125,
-0.0279693603515625,
0.037689208984375,
0.0008420944213867188,
-0.0458984375,
0.02886962890625,
0.037353515625,
0.066162109375,
-0.01094818115234375,
0.0853271484375,
-0.0155181884765625,
-0.020965576171875,
-0.003025054931640625,
0.03936767578125,
-0.0086669921875,
0.00514984130859375,
-0.003971099853515625,
-0.0228271484375,
-0.0198516845703125,
0.0289764404296875,
-0.02447509765625,
0.00917816162109375,
0.03369140625,
0.03717041015625,
-0.05194091796875,
-0.0250396728515625,
0.060028076171875,
-0.0277557373046875,
0.005168914794921875,
0.00959014892578125,
-0.0526123046875,
-0.03765869140625,
-0.039093017578125,
-0.0135498046875,
0.04937744140625,
-0.021881103515625,
0.0087127685546875,
0.0869140625,
0.001743316650390625,
0.03302001953125,
0.034423828125,
-0.022125244140625,
0.04571533203125,
0.025665283203125,
-0.08575439453125,
-0.033782958984375,
-0.0102996826171875,
-0.0218658447265625,
0.02197265625,
0.045806884765625,
-0.004535675048828125,
-0.0013780593872070312,
0.0064849853515625,
-0.01122283935546875,
0.031219482421875,
0.00994110107421875,
-0.02252197265625,
0.035308837890625,
0.042877197265625,
-0.000988006591796875,
-0.05438232421875,
-0.0643310546875,
-0.059326171875,
0.0977783203125,
0.0316162109375,
0.07452392578125,
-0.03363037109375,
0.061614990234375,
-0.01806640625,
0.005863189697265625,
-0.042694091796875,
-0.046875,
0.0318603515625,
-0.005558013916015625,
-0.00432586669921875,
0.003818511962890625,
-0.05242919921875,
0.001331329345703125,
-0.01398468017578125,
-0.0014781951904296875,
-0.035308837890625,
-0.02081298828125,
0.03558349609375,
0.063720703125,
0.05218505859375,
-0.0108489990234375,
-0.0176849365234375,
-0.0184478759765625,
-0.018585205078125,
0.03875732421875,
0.032867431640625,
-0.00359344482421875,
0.062744140625,
0.0197601318359375,
0.00669097900390625,
0.033355712890625,
-0.07763671875,
0.052703857421875,
0.037017822265625,
0.0036468505859375,
-0.020294189453125,
0.060516357421875,
-0.004894256591796875,
0.0115509033203125,
0.02020263671875,
0.036102294921875,
0.0445556640625,
-0.0655517578125,
0.006565093994140625,
0.032562255859375,
0.058563232421875,
-0.006866455078125,
0.017547607421875,
0.00279998779296875,
-0.0039520263671875,
0.01059722900390625,
0.049530029296875,
-0.0256195068359375,
-0.005077362060546875,
-0.008056640625,
-0.001590728759765625,
0.00914764404296875,
-0.020599365234375,
-0.03759765625,
-0.0445556640625,
0.044189453125,
-0.0303955078125,
0.04498291015625,
-0.046783447265625,
-0.046173095703125,
-0.0075531005859375,
0.002834320068359375,
-0.062164306640625,
0.00563812255859375,
0.031768798828125,
-0.002635955810546875,
-0.05389404296875,
-0.057159423828125,
0.03271484375,
-0.0736083984375,
0.0606689453125,
0.0599365234375,
-0.056243896484375,
0.0173797607421875,
0.0271453857421875,
0.07391357421875,
0.058624267578125,
0.04803466796875,
-0.00959014892578125,
-0.0268096923828125,
0.0198822021484375,
-0.034454345703125,
-0.01422119140625,
0.040496826171875,
-0.0129547119140625,
-0.047760009765625,
-0.00994873046875,
0.004001617431640625,
0.00917816162109375,
-0.0450439453125,
-0.057708740234375,
-0.07696533203125,
0.0062408447265625,
-0.055084228515625,
-0.040802001953125,
-0.05072021484375,
-0.00016367435455322266,
0.04632568359375,
-0.0193023681640625,
0.006084442138671875,
-0.0460205078125,
0.051361083984375,
-0.0005412101745605469,
0.040802001953125,
0.0171966552734375,
0.01326751708984375,
-0.046051025390625,
0.0032596588134765625,
-0.02142333984375,
0.00635528564453125,
0.00696563720703125,
0.0037517547607421875,
0.0082244873046875,
0.046875,
-0.019317626953125,
0.0013713836669921875,
-0.00383758544921875,
-0.023406982421875,
-0.00809478759765625,
-0.009429931640625,
-0.0305938720703125,
-0.0076446533203125,
0.01248931884765625,
0.04339599609375,
0.004367828369140625,
-0.01290130615234375,
0.028839111328125,
0.02471923828125,
0.003787994384765625,
-0.0010442733764648438,
-0.02374267578125,
-0.00494384765625,
-0.011505126953125,
-0.01959228515625,
0.008941650390625,
0.041656494140625,
-0.044403076171875,
-0.018829345703125,
-0.017822265625,
-0.042816162109375,
-0.005908966064453125,
-0.039947509765625,
0.0084381103515625,
0.01160430908203125,
-0.0309295654296875,
-0.0226593017578125,
0.01377105712890625,
0.0018253326416015625,
-0.01503753662109375,
0.03643798828125,
-0.0209503173828125,
-0.021392822265625,
0.0135498046875,
0.044219970703125,
-0.01183319091796875,
0.0142364501953125,
-0.00838470458984375,
0.005458831787109375,
0.00817108154296875,
0.0104217529296875,
-0.0068511962890625,
0.01087188720703125,
-0.010223388671875,
-0.005069732666015625,
-0.02545166015625,
0.0208740234375,
0.02056884765625,
-0.0164794921875,
-0.035186767578125,
0.061126708984375,
-0.015777587890625,
-0.0379638671875,
-0.0231781005859375,
-0.0246124267578125,
0.01134490966796875,
0.00652313232421875,
-0.034942626953125,
-0.005069732666015625,
-0.0188140869140625,
-0.03350830078125,
-0.0247802734375,
-0.0018405914306640625
] |
91e9f5537277af96dd580a2314c89a94c7579653
|
Wordpress Stackexchange
Q: Stable tag of plugin in the readme file If I am pushing a new version (v0.2) of my plugin (v0.1) on the repo, what does I do with the stable tag in readme file? Change it to v0.2?
What should come here? Clarifications please :)
A: I'd recommend this order of operations:
*
*Update your plugin's .php file in trunk to reflect the new version, and commit
*svn cp trunk tags/0.2
*Edit tags/0.2/readme.txt and trunk/readme.txt to reflect new stable tag
*svn commit -m "Tagging ver 0.2"
|
Q: Stable tag of plugin in the readme file If I am pushing a new version (v0.2) of my plugin (v0.1) on the repo, what does I do with the stable tag in readme file? Change it to v0.2?
What should come here? Clarifications please :)
A: I'd recommend this order of operations:
*
*Update your plugin's .php file in trunk to reflect the new version, and commit
*svn cp trunk tags/0.2
*Edit tags/0.2/readme.txt and trunk/readme.txt to reflect new stable tag
*svn commit -m "Tagging ver 0.2"
A: The Stable tag indicates the current version in the svn repository which you want users to use/update. In most cases simply set it to 'trunk', as explained in this article on Smashing Magazine, How To Improve Your WordPress Plugin's Readme.txt
Stable tag. The stable tag tells WordPress which version of the plugin should appear in the directory. This should be in numeric
format, which is much easier for WordPress to deal with. Aim for
numbers like 1.5, 0.5 or whatever version you’re at. If your stable
version is in the trunk in Subversion, then you can specify “trunk,”
but that is the only time you should use words instead of numbers.
Furthermore, from the actual WordPress documentation,
WordPress.org’s Plugin Directory works based on the information found
in the field Stable Tag in the readme. When WordPress.org parses the
readme.txt, the very first thing it does is to look at the readme.txt
in the /trunk directory, where it reads the “Stable Tag” line. If the
Stable Tag is missing, or is set to “trunk”, then the version of the
plugin in /trunk is considered to be the stable version. If the Stable
Tag is set to anything else, then it will go and look in /tags/ for
the referenced version. So a Stable Tag of “1.2.3” will make it look
for /tags/1.2.3/.
If you use the svn as your development repository then it makes sense to use an actual version number in the Stable tag. for example 1.5.2 while you have v2.0.0 in the repository on which you are currently working but it still under development.
Other reason to use a version number
If your plugin has translations and makes use of translated strings with localised functions, then you may want to consider using a stable version for the tag, as language files are loaded for that version. So if you update your plugin and add many new localised strings, then it makes sense to set your stable tag to the previous version to give time for translators to complete the translation for the new version. Once the translations are ready, you can switch the stable tag.
A: Yes. You need to:
*
*Change stable tag to 0.2
*Commit (or copy/branch) new version to /tags/0.2
*Don't forget to update version to 0.2 in plugin's header
|
wordpress
|
{
"language": "en",
"length": 472,
"provenance": "stackexchange_00019.jsonl.gz:408667",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14918"
}
|
[
0.035614013671875,
-0.001312255859375,
-0.0137786865234375,
-0.0504150390625,
0.00887298583984375,
0.0011138916015625,
-0.0197601318359375,
-0.0299224853515625,
-0.00299072265625,
0.0325927734375,
-0.025482177734375,
0.0088653564453125,
-0.0285186767578125,
-0.0103759765625,
-0.0168609619140625,
-0.02972412109375,
0.035186767578125,
-0.01450347900390625,
0.0298919677734375,
-0.0142059326171875,
-0.010162353515625,
0.0032196044921875,
0.038726806640625,
0.0311431884765625,
0.01076507568359375,
-0.04827880859375,
0.1259765625,
-0.034332275390625,
0.0119476318359375,
-0.037139892578125,
0.01788330078125,
0.0217132568359375,
0.020263671875,
-0.01654052734375,
0.0238494873046875,
0.0107879638671875,
0.05499267578125,
-0.0195770263671875,
0.007534027099609375,
0.03314208984375,
0.056671142578125,
-0.03179931640625,
0.029144287109375,
0.010162353515625,
0.01454925537109375,
-0.01263427734375,
0.045623779296875,
-0.06304931640625,
0.0032253265380859375,
-0.0229949951171875,
0.0187530517578125,
-0.01552581787109375,
0.0308837890625,
-0.051910400390625,
-0.02587890625,
-0.0091400146484375,
-0.014556884765625,
-0.0007238388061523438,
-0.016265869140625,
0.06463623046875,
0.025848388671875,
0.052642822265625,
-0.01123046875,
-0.0090789794921875,
-0.01111602783203125,
-0.00983428955078125,
0.028656005859375,
0.01102447509765625,
0.0069122314453125,
-0.006946563720703125,
0.01177215576171875,
-0.01393890380859375,
0.0084686279296875,
-0.0367431640625,
0.0006151199340820312,
0.0228424072265625,
0.0159149169921875,
-0.0036144256591796875,
0.005001068115234375,
-0.01279449462890625,
0.039520263671875,
0.01087188720703125,
0.0189361572265625,
-0.00984954833984375,
0.0172882080078125,
0.012664794921875,
0.0012235641479492188,
-0.0299530029296875,
-0.0247650146484375,
-0.0008521080017089844,
-0.022979736328125,
0.006317138671875,
-0.019683837890625,
0.032073974609375,
-0.0257720947265625,
0.00600433349609375,
0.005107879638671875,
0.034820556640625,
-0.0188446044921875,
0.02215576171875,
-0.0250244140625,
-0.02728271484375,
0.033782958984375,
-0.038665771484375,
0.015777587890625,
0.0206756591796875,
-0.0305633544921875,
-0.025054931640625,
0.050537109375,
0.038330078125,
-0.0007243156433105469,
0.030426025390625,
-0.0139007568359375,
-0.051483154296875,
-0.01018524169921875,
0.017730712890625,
-0.033599853515625,
0.03570556640625,
0.01654052734375,
0.00368499755859375,
-0.005924224853515625,
0.03375244140625,
-0.008819580078125,
-0.00112152099609375,
0.00911712646484375,
0.003204345703125,
0.01338958740234375,
-0.039703369140625,
-0.0657958984375,
-0.0511474609375,
0.0005245208740234375,
0.037078857421875,
0.0584716796875,
0.061614990234375,
0.005859375,
0.0150909423828125,
-0.025970458984375,
0.014984130859375,
-0.02886962890625,
0.043121337890625,
-0.051177978515625,
-0.06439208984375,
0.03143310546875,
-0.03515625,
0.0245361328125,
0.033782958984375,
0.017425537109375,
-0.0000978708267211914,
-0.0116119384765625,
-0.0084381103515625,
0.0227203369140625,
-0.038482666015625,
0.03228759765625,
-0.0032329559326171875,
0.00970458984375,
-0.07659912109375,
0.016937255859375,
-0.059539794921875,
0.0428466796875,
-0.05670166015625,
0.01525115966796875,
-0.00748443603515625,
-0.00676727294921875,
-0.024444580078125,
-0.0238494873046875,
-0.0038089752197265625,
-0.016326904296875,
0.0050506591796875,
0.019287109375,
0.005184173583984375,
-0.0321044921875,
-0.0176544189453125,
0.031219482421875,
0.007709503173828125,
-0.006328582763671875,
0.038787841796875,
-0.031707763671875,
0.0197296142578125,
0.0273895263671875,
-0.0057220458984375,
0.006633758544921875,
-0.026702880859375,
0.047332763671875,
0.0116119384765625,
-0.01137542724609375,
-0.0206298828125,
0.0078277587890625,
0.0164642333984375,
0.00344085693359375,
0.024444580078125,
0.013641357421875,
0.0017223358154296875,
-0.035614013671875,
0.03143310546875,
0.03533935546875,
-0.014434814453125,
-0.008514404296875,
-0.01708984375,
0.022308349609375,
-0.056793212890625,
-0.0377197265625,
0.034759521484375,
-0.01361846923828125,
0.0011415481567382812,
0.01540374755859375,
-0.004413604736328125,
0.002849578857421875,
0.034088134765625,
-0.01425933837890625,
0.013153076171875,
0.0027942657470703125,
-0.045745849609375,
0.0114288330078125,
-0.022247314453125,
-0.0002906322479248047,
0.0017633438110351562,
-0.0377197265625,
-0.0292510986328125,
-0.0008440017700195312,
-0.0276031494140625,
0.003864288330078125,
0.021392822265625,
-0.0208587646484375,
0.0026397705078125,
-0.00038433074951171875,
0.02197265625,
-0.0210723876953125,
0.0058135986328125,
0.004611968994140625,
0.02862548828125,
-0.021484375,
-0.009033203125,
-0.045013427734375,
0.01129913330078125,
0.0012607574462890625,
0.0029754638671875,
0.006206512451171875,
-0.0494384765625,
0.0250244140625,
0.0167999267578125,
0.01508331298828125,
0.01062774658203125,
-0.01126861572265625,
0.004169464111328125,
0.033233642578125,
0.01316070556640625,
0.0312347412109375,
-0.01284027099609375,
-0.004024505615234375,
0.028594970703125,
0.0159454345703125,
0.005126953125,
0.0253143310546875,
-0.00005364418029785156,
0.003025054931640625,
0.02471923828125,
0.0234222412109375,
-0.0238037109375,
-0.036956787109375,
0.030029296875,
-0.0028553009033203125,
-0.049407958984375,
-0.06103515625,
-0.018768310546875,
0.048095703125,
0.001750946044921875,
0.0665283203125,
0.06524658203125,
-0.0164031982421875,
-0.0240325927734375,
0.00034689903259277344,
0.0556640625,
-0.006130218505859375,
0.052703857421875,
-0.017822265625,
0.023223876953125,
-0.0001970529556274414,
-0.0207672119140625,
-0.048431396484375,
0.01432037353515625,
-0.03216552734375,
-0.020965576171875,
-0.01024627685546875,
-0.005748748779296875,
0.00039124488830566406,
-0.0202178955078125,
0.044158935546875,
-0.0184326171875,
-0.0287933349609375,
0.0174713134765625,
0.05596923828125,
0.004863739013671875,
0.0027256011962890625,
-0.0230712890625,
-0.00835418701171875,
0.00579833984375,
0.0179443359375,
-0.04833984375,
0.0260467529296875,
-0.0197906494140625,
0.047027587890625,
0.07373046875,
0.0175323486328125,
-0.01108551025390625,
0.01519775390625,
-0.0167999267578125,
0.032928466796875,
-0.0128631591796875,
-0.00946807861328125,
0.0487060546875,
-0.09820556640625,
-0.021270751953125,
0.0266265869140625,
0.01654052734375,
-0.002285003662109375,
-0.02545166015625,
-0.028045654296875,
0.01287078857421875,
-0.043182373046875,
-0.0191497802734375,
-0.054229736328125,
-0.07763671875,
0.0196533203125,
-0.00162506103515625,
-0.0225982666015625,
-0.01593017578125,
0.03143310546875,
0.0296630859375,
-0.050811767578125,
-0.022674560546875,
-0.02581787109375,
-0.0660400390625,
-0.03704833984375,
0.02667236328125,
-0.003955841064453125,
0.0087432861328125,
0.023834228515625,
0.03985595703125,
0.010101318359375,
-0.050933837890625,
0.030609130859375,
0.0088348388671875,
-0.0010976791381835938,
0.039642333984375,
0.0048065185546875,
-0.006572723388671875,
-0.0237884521484375,
0.0079498291015625,
0.040374755859375,
0.013458251953125,
-0.0140380859375,
-0.01094818115234375,
-0.00431060791015625,
0.0025081634521484375,
0.0036163330078125,
0.01959228515625,
-0.0124969482421875,
0.003231048583984375,
-0.004474639892578125,
-0.03875732421875,
0.030029296875,
0.0077972412109375,
0.00653839111328125,
-0.043121337890625,
-0.004917144775390625,
-0.042144775390625,
-0.01259613037109375,
-0.0201416015625,
-0.01739501953125,
0.006443023681640625,
0.0738525390625,
-0.0289764404296875,
0.008453369140625,
-0.046722412109375,
-0.0902099609375,
-0.064453125,
0.0009775161743164062,
-0.039031982421875,
0.037750244140625,
-0.013458251953125,
-0.00438690185546875,
-0.01335906982421875,
-0.0179901123046875,
-0.0288543701171875,
-0.007328033447265625,
0.01459503173828125,
-0.02301025390625,
0.034271240234375,
-0.0184173583984375,
-0.010406494140625,
-0.026336669921875,
0.040771484375,
-0.02557373046875,
-0.010498046875,
-0.0286865234375,
-0.00406646728515625,
0.01464080810546875,
-0.00687408447265625,
-0.026336669921875,
-0.01517486572265625,
-0.031524658203125,
0.0022106170654296875,
-0.007732391357421875,
-0.0258636474609375,
0.00807952880859375,
-0.0511474609375,
0.0009546279907226562,
-0.0287628173828125,
0.0278472900390625,
-0.046966552734375,
-0.0074920654296875,
-0.00579833984375,
0.006641387939453125,
-0.04241943359375,
-0.0100250244140625,
-0.023834228515625,
-0.03448486328125,
0.00719451904296875,
-0.0633544921875,
0.0252838134765625,
0.03265380859375,
-0.0232391357421875,
0.0255584716796875,
0.050537109375,
-0.01415252685546875,
0.047332763671875,
-0.035858154296875,
0.0023193359375,
-0.041168212890625,
0.0181732177734375,
0.002410888671875,
-0.0037841796875,
-0.0031948089599609375,
-0.01934814453125,
-0.039276123046875,
0.01953125,
-0.00428009033203125,
0.037322998046875,
0.0065460205078125,
-0.0203857421875,
-0.03070068359375,
-0.047149658203125,
-0.0252227783203125,
-0.0013427734375,
-0.0114288330078125,
-0.00376129150390625,
-0.0277099609375,
-0.03375244140625,
0.046173095703125,
0.01044464111328125,
-0.01251983642578125,
0.01128387451171875,
0.048553466796875,
0.00252532958984375,
-0.0237579345703125,
-0.0904541015625,
0.0303802490234375,
0.0194091796875,
-0.00147247314453125,
0.06329345703125,
0.0111541748046875,
0.0011854171752929688,
0.05364990234375,
-0.0198822021484375,
0.0010194778442382812,
-0.04901123046875,
0.0270233154296875,
-0.001636505126953125,
-0.0009684562683105469,
-0.006000518798828125,
-0.0078582763671875,
0.0731201171875,
-0.0279388427734375,
-0.05889892578125,
0.039093017578125,
-0.04248046875,
0.0218505859375,
-0.0086517333984375,
0.035675048828125,
-0.0289764404296875,
-0.0736083984375,
0.025115966796875,
-0.0045013427734375,
0.00516510009765625,
0.0266571044921875,
-0.0069427490234375,
0.0181121826171875,
-0.0172882080078125,
-0.008270263671875,
0.0017147064208984375,
0.022369384765625,
-0.01025390625,
0.00656890869140625,
0.01593017578125,
-0.033294677734375,
-0.026123046875,
-0.0004601478576660156,
0.03350830078125,
0.02325439453125,
0.0107421875,
-0.036285400390625,
-0.001956939697265625,
-0.020843505859375,
-0.007320404052734375,
0.062255859375,
0.02606201171875,
-0.00559234619140625,
0.00757598876953125,
-0.009185791015625,
0.01142120361328125,
0.033843994140625,
-0.031890869140625,
-0.043426513671875,
0.0015058517456054688,
-0.040435791015625,
0.00606536865234375,
-0.0007090568542480469,
-0.0187225341796875,
-0.00601959228515625,
-0.0055999755859375,
0.05059814453125,
0.01103973388671875,
-0.040740966796875,
0.024505615234375,
0.029052734375,
0.051666259765625,
-0.11712646484375,
0.00495147705078125,
-0.0218658447265625,
0.0201873779296875,
-0.027587890625,
-0.001270294189453125,
-0.045867919921875,
-0.0528564453125,
0.08575439453125,
-0.023590087890625,
-0.0018358230590820312,
0.00616455078125,
-0.0029888153076171875,
-0.0302581787109375,
-0.0057373046875,
0.01209259033203125,
0.0147705078125,
-0.01023101806640625,
0.0196990966796875,
-0.043975830078125,
-0.035247802734375,
-0.00806427001953125,
-0.0281219482421875,
0.007282257080078125,
-0.0301055908203125,
-0.0264739990234375,
-0.0123138427734375,
-0.035308837890625,
-0.024566650390625,
-0.0831298828125,
0.006198883056640625,
-0.0181884765625,
-0.020904541015625,
0.005756378173828125,
-0.02752685546875,
0.03985595703125,
-0.051788330078125,
0.00695037841796875,
-0.062744140625,
0.0095367431640625,
0.044158935546875,
0.047515869140625,
-0.07757568359375,
-0.0377197265625,
-0.042877197265625,
-0.028778076171875,
-0.0340576171875,
-0.00988006591796875,
-0.048370361328125,
0.0311126708984375,
0.0119171142578125,
0.031524658203125,
-0.03570556640625,
-0.0550537109375,
-0.0218658447265625,
0.0141754150390625,
0.039031982421875,
0.05230712890625,
0.0229949951171875,
-0.04168701171875,
0.017181396484375,
0.0008130073547363281,
0.0119781494140625,
-0.031402587890625,
-0.04266357421875,
-0.027801513671875,
-0.002071380615234375,
0.022430419921875,
-0.01605224609375,
0.0179901123046875,
-0.002315521240234375,
-0.0404052734375,
0.046722412109375,
-0.0055084228515625,
0.0175933837890625,
-0.006595611572265625,
0.0160980224609375,
-0.00862884521484375,
0.00836944580078125,
0.0112152099609375,
0.0208740234375,
-0.006702423095703125,
-0.0310211181640625,
-0.0231781005859375,
0.013031005859375,
0.053863525390625,
-0.0767822265625,
-0.01372528076171875,
-0.06494140625,
0.025787353515625,
-0.004909515380859375,
-0.004180908203125,
0.02581787109375,
-0.005340576171875,
0.047149658203125,
0.002933502197265625,
0.038116455078125,
0.052703857421875,
-0.042022705078125,
0.0212249755859375,
0.00946044921875,
0.0518798828125,
0.00894927978515625,
0.0205078125,
0.077880859375,
-0.0196380615234375,
-0.005931854248046875,
-0.0198974609375,
0.0242767333984375,
0.023681640625,
0.00605010986328125,
0.00943756103515625,
-0.037322998046875,
0.00681304931640625,
0.0281524658203125,
-0.0140228271484375,
-0.04193115234375,
0.02777099609375,
-0.03900146484375,
-0.01021575927734375,
0.01025390625,
-0.00251007080078125,
-0.003204345703125,
-0.01345062255859375,
0.047821044921875,
0.0237884521484375,
0.035919189453125,
-0.00978851318359375,
-0.061370849609375,
0.03564453125,
0.01273345947265625,
0.027008056640625,
0.0189056396484375,
-0.0164031982421875,
-0.0273590087890625,
0.0179901123046875,
0.0112762451171875,
-0.04119873046875,
0.04119873046875,
0.00844573974609375,
0.026336669921875,
0.01541900634765625,
0.01187896728515625,
-0.0220489501953125,
-0.008331298828125,
0.0022487640380859375,
-0.05755615234375,
-0.0023517608642578125,
-0.00841522216796875,
-0.00971221923828125,
-0.0004973411560058594,
0.027984619140625,
-0.039520263671875,
-0.0175933837890625,
-0.004276275634765625,
-0.024871826171875,
0.04833984375,
0.00789642333984375,
-0.031646728515625,
0.003246307373046875,
-0.0088348388671875,
-0.002422332763671875,
-0.00011265277862548828,
-0.013641357421875,
-0.037322998046875,
0.008544921875,
-0.008392333984375,
-0.0144195556640625,
-0.00004082918167114258,
-0.01306915283203125,
-0.060394287109375,
0.063720703125,
0.0107574462890625,
0.007389068603515625,
0.006580352783203125,
0.031646728515625,
-0.039520263671875,
-0.016143798828125,
-0.028106689453125,
0.02850341796875,
-0.04669189453125,
0.06427001953125,
0.004547119140625,
0.0261993408203125,
0.044586181640625,
-0.00862884521484375,
0.048980712890625,
0.0147857666015625,
-0.0772705078125,
0.01297760009765625,
0.0718994140625,
0.03717041015625,
0.0121917724609375,
0.07330322265625,
0.006122589111328125,
-0.0012073516845703125,
-0.0450439453125,
-0.00557708740234375,
0.048675537109375,
-0.0887451171875,
-0.041900634765625,
0.0178680419921875,
0.01934814453125,
0.007144927978515625,
-0.01235198974609375,
0.01523590087890625,
-0.0190582275390625,
0.01099395751953125,
0.006011962890625,
0.04986572265625,
0.057952880859375,
-0.04022216796875,
0.0157318115234375,
0.039459228515625,
-0.00872802734375,
0.032745361328125,
0.031463623046875,
0.0174560546875,
0.0211944580078125,
0.056427001953125,
0.03546142578125,
0.040771484375,
-0.04083251953125,
0.0225677490234375,
-0.01551055908203125,
-0.0170135498046875,
0.00899505615234375,
0.01088714599609375,
0.013824462890625,
-0.03485107421875,
0.00594329833984375,
0.032806396484375,
0.035552978515625,
-0.033233642578125,
0.026458740234375,
0.006923675537109375,
-0.00801849365234375,
-0.0206451416015625,
-0.06201171875,
-0.018096923828125,
-0.01149749755859375,
0.007274627685546875,
-0.0294189453125,
-0.007781982421875,
0.0330810546875,
0.00511932373046875,
0.0227203369140625,
0.039947509765625,
-0.04278564453125,
-0.0227508544921875,
-0.054656982421875,
0.0474853515625,
0.03204345703125,
0.02154541015625,
-0.01995849609375,
0.06256103515625,
0.06256103515625,
0.0020465850830078125,
0.02685546875,
0.038421630859375,
0.0401611328125,
-0.051055908203125,
0.01806640625,
-0.049224853515625,
0.0460205078125,
0.00604248046875,
-0.0234222412109375,
0.0122222900390625,
-0.0033054351806640625,
0.026824951171875,
0.00582122802734375,
-0.01100921630859375,
0.07672119140625,
-0.004764556884765625,
-0.0009646415710449219,
-0.0628662109375,
0.054046630859375,
0.03521728515625,
0.0140228271484375,
0.0202484130859375,
-0.0093994140625,
0.07635498046875,
-0.018951416015625,
0.042327880859375,
-0.0038166046142578125,
-0.02630615234375,
0.0362548828125,
-0.040618896484375,
0.05706787109375,
-0.0034694671630859375,
-0.0206146240234375,
0.01026153564453125,
-0.042694091796875,
0.0258331298828125,
0.005092620849609375,
0.018402099609375,
0.005710601806640625,
0.05279541015625,
0.034454345703125,
0.0123443603515625,
-0.0079193115234375,
0.00041294097900390625,
0.01206207275390625,
0.0426025390625,
0.041656494140625,
0.04425048828125,
-0.025604248046875,
-0.0228729248046875,
-0.030853271484375,
0.04840087890625,
0.0208740234375,
0.03875732421875,
-0.0030384063720703125,
0.047149658203125,
-0.0155487060546875,
0.025360107421875,
-0.03997802734375,
-0.0178375244140625,
0.029022216796875,
0.01004791259765625,
-0.0064697265625,
-0.00347900390625,
-0.049713134765625,
0.055999755859375,
-0.0036563873291015625,
0.00894927978515625,
0.069580078125,
-0.052093505859375,
0.0004584789276123047,
-0.000705718994140625,
0.034149169921875,
-0.0194091796875,
-0.06072998046875,
-0.05487060546875,
-0.0024356842041015625,
-0.0006794929504394531,
0.036285400390625,
-0.0123443603515625,
0.01398468017578125,
0.0172576904296875,
-0.0070343017578125,
-0.005756378173828125,
0.01291656494140625,
-0.02252197265625,
0.0294952392578125,
0.0198516845703125,
0.0070037841796875,
-0.0213470458984375,
-0.038604736328125,
0.046539306640625,
-0.026153564453125,
0.0567626953125,
-0.0250091552734375,
0.0120391845703125,
0.025970458984375,
0.0128021240234375,
0.042510986328125,
-0.0150299072265625,
0.00019824504852294922,
0.0009746551513671875,
0.006305694580078125,
-0.00247955322265625,
-0.0423583984375,
-0.01690673828125,
-0.0182952880859375,
-0.0279541015625,
0.00881195068359375,
-0.02178955078125,
-0.09478759765625,
-0.04473876953125,
0.00788116455078125,
0.0219268798828125,
-0.0234527587890625,
0.0005030632019042969,
-0.0109710693359375,
-0.040496826171875,
0.0309295654296875,
-0.046966552734375,
-0.0299530029296875,
-0.0107269287109375,
-0.0014295578002929688,
-0.060821533203125,
-0.051849365234375,
-0.06781005859375,
0.0268707275390625,
-0.07342529296875,
0.02679443359375,
0.0301361083984375,
-0.03680419921875,
0.049896240234375,
0.0232696533203125,
0.03839111328125,
0.07293701171875,
-0.020263671875,
0.00946044921875,
0.02685546875,
0.00492095947265625,
-0.0498046875,
-0.06744384765625,
0.01410675048828125,
-0.01519012451171875,
-0.0021991729736328125,
-0.046295166015625,
0.0148773193359375,
0.01488494873046875,
-0.0265655517578125,
-0.0869140625,
0.044769287109375,
-0.039398193359375,
-0.032440185546875,
-0.0216064453125,
-0.037017822265625,
-0.01416015625,
0.0377197265625,
0.01020050048828125,
-0.04705810546875,
-0.035614013671875,
0.0318603515625,
-0.0012960433959960938,
0.07135009765625,
0.0189361572265625,
0.004108428955078125,
0.07318115234375,
0.0151214599609375,
0.024627685546875,
-0.015594482421875,
-0.0241851806640625,
0.0183258056640625,
-0.0151824951171875,
0.0193023681640625,
-0.0191650390625,
-0.04193115234375,
-0.0013170242309570312,
-0.0110626220703125,
0.0205078125,
0.00824737548828125,
-0.032928466796875,
-0.034881591796875,
0.043975830078125,
-0.0202789306640625,
0.003810882568359375,
0.032073974609375,
0.006969451904296875,
0.008636474609375,
-0.01885986328125,
0.00020062923431396484,
0.01076507568359375,
-0.041839599609375,
-0.011077880859375,
-0.01233673095703125,
0.0163726806640625,
-0.01136016845703125,
-0.012359619140625,
-0.017333984375,
-0.0149993896484375,
0.0227203369140625,
0.01302337646484375,
-0.022247314453125,
-0.0872802734375,
0.06890869140625,
-0.0174713134765625,
0.030670166015625,
0.0032558441162109375,
0.038818359375,
0.04681396484375,
0.055511474609375,
0.0689697265625,
0.04150390625,
-0.039215087890625,
0.0090484619140625,
0.060150146484375,
-0.01800537109375,
-0.00860595703125,
-0.035797119140625,
-0.014678955078125,
0.0032176971435546875,
0.0205078125,
-0.005252838134765625,
-0.0096282958984375,
0.0266571044921875,
0.0231781005859375,
0.0176239013671875,
0.01486968994140625,
-0.0555419921875,
-0.0223236083984375,
0.037139892578125,
-0.0509033203125,
0.0008311271667480469,
-0.056396484375,
-0.0093231201171875,
0.0277557373046875,
0.0135650634765625,
0.052093505859375,
0.01503753662109375,
0.006359100341796875,
-0.033721923828125,
-0.00655364990234375,
0.0088043212890625
] |
b264c0da2039bfdd8ce44b9af7808f9416e82a31
|
Wordpress Stackexchange
Q: Making a client area in WordPress - Any good tutorials or plugins? I'd like to make a client area in WordPress from my freelance design business. I'm capable of making it myself but I was wondering if there are any good tutorials and plugins that other people are already using. A Basecamp style project management system would be the ideal.
A: First, for invoicing/billing use the WP Invoice plugin: http://wordpress.org/extend/plugins/wp-invoice/
The "members" plugin may also be useful: http://wordpress.org/extend/plugins/members/
For a custom redirect, to send them to custom pages rather than just the admin panel use: http://wordpress.org/extend/plugins/peters-login-redirect/
If you had them register, greet them with a custom welcome message on the page they log-in to using this code, which should grab their name from their profile:
Welcome <?php echo $user_identity; ?>
|
Q: Making a client area in WordPress - Any good tutorials or plugins? I'd like to make a client area in WordPress from my freelance design business. I'm capable of making it myself but I was wondering if there are any good tutorials and plugins that other people are already using. A Basecamp style project management system would be the ideal.
A: First, for invoicing/billing use the WP Invoice plugin: http://wordpress.org/extend/plugins/wp-invoice/
The "members" plugin may also be useful: http://wordpress.org/extend/plugins/members/
For a custom redirect, to send them to custom pages rather than just the admin panel use: http://wordpress.org/extend/plugins/peters-login-redirect/
If you had them register, greet them with a custom welcome message on the page they log-in to using this code, which should grab their name from their profile:
Welcome <?php echo $user_identity; ?>
A: You can use custom page templates with is_user_logged_in, and custom logon forms, etc
But to build Basecamp it took years, if you could build that for your personal site, you'd b better off ditching your business and marketing the basecamp clone
Depending on what you want, the buddypress plugin may be of help
A: I looked into this a while back, the only half decent one I found was http://wordpress.org/extend/plugins/ndizi-project-management/. In the end I just went with something not related to WordPress. Doing it in WordPress would be pretty much the same as building a custom PHP app and there were better solutions out there.
A: http://blairwilliams.com/mingle-wordpress-plugin/ It's a plugin that turns wordpress into a social network. It has a front end user managing system: Activity, Profile, Settings, Friends, Friend Requests, Inbox, Directory, Logout. Maybe you can turn this into a simple client area.
Hope this helps.
A: Have a look at these plugins:
*
*http://wordpress.org/extend/plugins/projectmanager/
*http://wordpress.org/extend/plugins/wp-crm/
*http://wordpress.org/extend/plugins/collabpress/
*http://wordpress.org/extend/plugins/wp-invoice/
And maybe you can give a try to a RoloPress theme too.
Edit: I forgot about Genesis CRM for WordPress.
A: There is a free client area management plugin that you can use to create the client area and just customize it or add more on the features. See the plugin - https://wordpress.org/plugins/customer-area/
A: If you're building WordPress websites for your clients you could use have a Video Tutorials section.
If you don't mind paying, the WPMU Dev guys have one here, which has about 40 video tutorials showing people how to they can add/edit a post, stuff like that, embedded right within the admin area (or can also be embedded elsewhere on a post or page if you prefer) that way you could save your clients asking you a thousand obvious WP questions!
They host the videos too so you don't have to worry about that.
http://premium.wpmudev.org/project/unbranded-video-tutorials
I'll try and think of some more too
Cheers
Nick
|
wordpress
|
{
"language": "en",
"length": 449,
"provenance": "stackexchange_00019.jsonl.gz:408673",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14934"
}
|
[
0.0294036865234375,
0.00861358642578125,
-0.0002772808074951172,
-0.005329132080078125,
-0.01006317138671875,
-0.0181732177734375,
0.0124359130859375,
-0.03570556640625,
-0.001804351806640625,
0.0129852294921875,
0.0024700164794921875,
0.0026454925537109375,
-0.04205322265625,
-0.0294342041015625,
-0.0194244384765625,
-0.044830322265625,
0.01329803466796875,
0.02630615234375,
0.03228759765625,
-0.01261138916015625,
0.0170745849609375,
0.0096435546875,
-0.0124664306640625,
0.054412841796875,
0.01500701904296875,
-0.02606201171875,
0.111083984375,
-0.0478515625,
0.0287933349609375,
-0.01385498046875,
0.0258636474609375,
-0.034820556640625,
-0.020843505859375,
0.042755126953125,
0.0180511474609375,
0.025848388671875,
0.01323699951171875,
0.038116455078125,
0.040985107421875,
0.0341796875,
0.0733642578125,
-0.0538330078125,
-0.04443359375,
-0.030303955078125,
0.00659942626953125,
-0.039520263671875,
0.062255859375,
-0.0181427001953125,
0.01361846923828125,
0.0015859603881835938,
0.0147552490234375,
0.033203125,
0.0299530029296875,
-0.004856109619140625,
-0.0119476318359375,
-0.0216217041015625,
-0.032867431640625,
-0.0262451171875,
0.03289794921875,
0.012786865234375,
0.006885528564453125,
-0.0303497314453125,
0.0276947021484375,
-0.0006809234619140625,
-0.032379150390625,
-0.0089263916015625,
-0.08880615234375,
0.005702972412109375,
0.01214599609375,
-0.02996826171875,
-0.0088958740234375,
-0.019622802734375,
-0.01024627685546875,
-0.018646240234375,
-0.038818359375,
0.00440216064453125,
0.054962158203125,
-0.0005021095275878906,
-0.0165863037109375,
-0.0030002593994140625,
0.01091766357421875,
0.007656097412109375,
-0.005596160888671875,
-0.03912353515625,
0.0186004638671875,
0.0017213821411132812,
-0.010498046875,
-0.015777587890625,
-0.01096343994140625,
0.006023406982421875,
-0.0164947509765625,
-0.017242431640625,
-0.0258026123046875,
0.0501708984375,
0.0252838134765625,
-0.0194244384765625,
0.01555633544921875,
-0.0082244873046875,
0.021514892578125,
0.0161285400390625,
0.0261383056640625,
-0.04815673828125,
0.04901123046875,
-0.0159149169921875,
-0.020294189453125,
0.042633056640625,
0.0132293701171875,
0.02203369140625,
0.0159912109375,
0.0072021484375,
0.0028057098388671875,
-0.0139007568359375,
-0.00955963134765625,
-0.0106964111328125,
-0.024871826171875,
0.000316619873046875,
-0.028778076171875,
-0.0014209747314453125,
-0.0006594657897949219,
0.01378631591796875,
-0.017608642578125,
-0.006999969482421875,
0.0148162841796875,
0.021270751953125,
0.013641357421875,
0.0108642578125,
-0.0093994140625,
-0.01593017578125,
0.0037746429443359375,
-0.026611328125,
-0.051727294921875,
0.035675048828125,
0.07440185546875,
0.029052734375,
0.01224517822265625,
-0.000873565673828125,
0.0462646484375,
-0.0124359130859375,
0.003231048583984375,
0.01495361328125,
-0.030242919921875,
-0.01128387451171875,
0.0011014938354492188,
-0.0290069580078125,
0.055938720703125,
0.004108428955078125,
-0.0013151168823242188,
0.033660888671875,
0.01122283935546875,
0.0218048095703125,
0.0231475830078125,
-0.0048370361328125,
-0.0226287841796875,
0.00992584228515625,
0.046905517578125,
0.0093536376953125,
0.0023822784423828125,
-0.0018024444580078125,
0.00888824462890625,
0.038848876953125,
0.04290771484375,
-0.0019388198852539062,
0.02447509765625,
-0.00392913818359375,
-0.0201873779296875,
-0.006908416748046875,
-0.06646728515625,
-0.01280975341796875,
0.022125244140625,
-0.0158843994140625,
0.0594482421875,
-0.01418304443359375,
-0.0195465087890625,
0.0126800537109375,
0.0177001953125,
0.01396942138671875,
-0.0003631114959716797,
0.007648468017578125,
0.0355224609375,
0.06280517578125,
0.0114288330078125,
-0.0163421630859375,
0.07659912109375,
-0.033355712890625,
-0.033203125,
0.042327880859375,
-0.0197601318359375,
0.0008373260498046875,
-0.005008697509765625,
-0.0173187255859375,
0.0225982666015625,
0.048004150390625,
-0.021636962890625,
-0.0194549560546875,
-0.0011444091796875,
-0.0216522216796875,
-0.00711822509765625,
-0.0246124267578125,
0.0006203651428222656,
0.0219268798828125,
-0.04071044921875,
0.00968170166015625,
0.0038928985595703125,
-0.00629425048828125,
0.031524658203125,
-0.02337646484375,
0.0029125213623046875,
0.0261077880859375,
0.046295166015625,
0.0296478271484375,
-0.0052642822265625,
-0.0006532669067382812,
0.019256591796875,
-0.09100341796875,
-0.04644775390625,
0.0246124267578125,
-0.034881591796875,
0.062469482421875,
0.01146697998046875,
0.04534912109375,
0.0538330078125,
-0.043243408203125,
0.0635986328125,
-0.0302886962890625,
0.002758026123046875,
-0.0094757080078125,
-0.02496337890625,
-0.017181396484375,
-0.040679931640625,
0.0177154541015625,
-0.042877197265625,
0.038970947265625,
0.059844970703125,
0.0748291015625,
-0.03955078125,
-0.009368896484375,
-0.0343017578125,
-0.005950927734375,
-0.02899169921875,
0.04364013671875,
0.0301666259765625,
0.00237274169921875,
0.007282257080078125,
0.04534912109375,
-0.00969696044921875,
-0.059600830078125,
0.016387939453125,
0.02056884765625,
0.02197265625,
0.030487060546875,
-0.0092315673828125,
0.0014390945434570312,
0.0278167724609375,
-0.02166748046875,
0.02105712890625,
0.0230712890625,
-0.0355224609375,
-0.07843017578125,
-0.0023784637451171875,
-0.01361846923828125,
0.051055908203125,
-0.04437255859375,
-0.0616455078125,
-0.0086517333984375,
0.0004069805145263672,
0.01654052734375,
0.031524658203125,
0.0197906494140625,
-0.031646728515625,
0.0036716461181640625,
0.021331787109375,
0.0133209228515625,
-0.01116943359375,
0.0196380615234375,
0.01885986328125,
0.01641845703125,
-0.04302978515625,
-0.008453369140625,
0.04119873046875,
0.019012451171875,
-0.0119476318359375,
-0.00608062744140625,
-0.006420135498046875,
-0.00598907470703125,
-0.00531768798828125,
0.0002627372741699219,
0.037384033203125,
0.0213623046875,
-0.01009368896484375,
-0.0008182525634765625,
0.018798828125,
0.0255889892578125,
-0.038055419921875,
0.042816162109375,
-0.010498046875,
-0.018096923828125,
0.0257110595703125,
-0.0006527900695800781,
0.01432037353515625,
-0.00946807861328125,
0.0274658203125,
0.046844482421875,
-0.007579803466796875,
-0.010284423828125,
0.00791168212890625,
-0.008514404296875,
-0.0189666748046875,
0.03515625,
0.0162353515625,
-0.052520751953125,
0.005283355712890625,
0.01087188720703125,
0.022216796875,
0.0537109375,
0.005542755126953125,
-0.043426513671875,
0.004993438720703125,
0.035247802734375,
-0.031341552734375,
-0.03045654296875,
-0.00013494491577148438,
-0.078369140625,
0.003692626953125,
0.0002942085266113281,
-0.04473876953125,
-0.00597381591796875,
0.0286102294921875,
0.0081634521484375,
0.047119140625,
-0.0445556640625,
-0.047149658203125,
-0.042388916015625,
-0.07391357421875,
-0.05169677734375,
0.0007648468017578125,
-0.01251983642578125,
0.006641387939453125,
0.02435302734375,
0.0034122467041015625,
-0.02471923828125,
-0.0037479400634765625,
0.01450347900390625,
0.01030731201171875,
-0.0140380859375,
-0.058624267578125,
0.0406494140625,
-0.00835418701171875,
0.015869140625,
0.058074951171875,
-0.0009832382202148438,
-0.0160369873046875,
-0.002033233642578125,
-0.0277557373046875,
-0.038482666015625,
-0.047393798828125,
0.025848388671875,
0.039794921875,
-0.072998046875,
-0.03460693359375,
-0.08544921875,
0.0165863037109375,
0.01959228515625,
0.010986328125,
-0.030181884765625,
-0.021484375,
-0.03564453125,
-0.007415771484375,
0.002201080322265625,
0.009033203125,
-0.005828857421875,
-0.007045745849609375,
-0.01137542724609375,
0.045074462890625,
-0.0099029541015625,
0.01568603515625,
-0.01523590087890625,
0.058929443359375,
-0.01168060302734375,
-0.03668212890625,
0.0012989044189453125,
0.00211334228515625,
-0.0246124267578125,
-0.0018157958984375,
-0.049468994140625,
-0.059112548828125,
0.05975341796875,
-0.0127105712890625,
0.01053619384765625,
-0.0460205078125,
-0.024017333984375,
-0.0233306884765625,
0.09686279296875,
-0.0531005859375,
0.0007300376892089844,
0.041656494140625,
0.01140594482421875,
-0.0032825469970703125,
0.01261138916015625,
-0.0869140625,
-0.0212249755859375,
-0.0701904296875,
0.0238494873046875,
0.019012451171875,
-0.03759765625,
-0.0088348388671875,
-0.0296783447265625,
-0.0338134765625,
-0.023956298828125,
0.023040771484375,
-0.0174713134765625,
0.019500732421875,
-0.033660888671875,
0.0173492431640625,
-0.06317138671875,
0.01207733154296875,
-0.035614013671875,
-0.03875732421875,
-0.006771087646484375,
-0.0165557861328125,
0.0531005859375,
0.03582763671875,
-0.0316162109375,
0.004772186279296875,
0.0300140380859375,
-0.058563232421875,
0.03375244140625,
0.0062713623046875,
0.07550048828125,
-0.0242462158203125,
-0.0029315948486328125,
0.0085601806640625,
-0.037567138671875,
-0.027557373046875,
-0.043853759765625,
-0.0124053955078125,
-0.0289154052734375,
-0.020599365234375,
-0.0079345703125,
-0.00856781005859375,
0.00101470947265625,
-0.01427459716796875,
-0.04351806640625,
-0.032196044921875,
-0.007244110107421875,
-0.03179931640625,
0.0124053955078125,
-0.01690673828125,
-0.01800537109375,
-0.0211944580078125,
-0.01483917236328125,
-0.0116424560546875,
0.04095458984375,
0.040771484375,
0.01471710205078125,
0.0052642822265625,
-0.06988525390625,
0.001556396484375,
0.052276611328125,
-0.0338134765625,
0.0262451171875,
0.00975799560546875,
-0.058624267578125,
0.127197265625,
0.00919342041015625,
-0.02349853515625,
0.055999755859375,
0.038909912109375,
0.0096282958984375,
-0.039215087890625,
0.0147705078125,
-0.001796722412109375,
-0.03411865234375,
-0.013214111328125,
-0.024322509765625,
0.0250244140625,
0.0203704833984375,
0.005046844482421875,
-0.010040283203125,
0.00782012939453125,
-0.0107879638671875,
-0.023834228515625,
-0.0069580078125,
0.040252685546875,
0.019317626953125,
0.0283355712890625,
-0.01043701171875,
0.017578125,
0.0252838134765625,
0.018341064453125,
-0.0021076202392578125,
-0.039642333984375,
0.0172882080078125,
0.039764404296875,
-0.0032405853271484375,
0.0273284912109375,
-0.0024242401123046875,
-0.0135650634765625,
0.102783203125,
0.044891357421875,
-0.0207366943359375,
0.017425537109375,
-0.033172607421875,
-0.0193328857421875,
-0.00363922119140625,
0.0035114288330078125,
0.0517578125,
0.07525634765625,
-0.01085662841796875,
-0.018341064453125,
0.0160369873046875,
0.0273895263671875,
-0.06500244140625,
-0.0161590576171875,
-0.0218048095703125,
0.0017147064208984375,
-0.01375579833984375,
0.07098388671875,
-0.01019287109375,
0.032073974609375,
-0.003643035888671875,
0.0709228515625,
0.032745361328125,
0.0205535888671875,
0.013092041015625,
-0.0098114013671875,
0.0151824951171875,
-0.0285797119140625,
-0.01885986328125,
-0.0211944580078125,
0.0025157928466796875,
-0.0004322528839111328,
0.038360595703125,
-0.00133514404296875,
-0.0161590576171875,
0.036041259765625,
-0.045379638671875,
-0.00550079345703125,
-0.004024505615234375,
-0.040557861328125,
-0.0094146728515625,
-0.0253448486328125,
-0.0177764892578125,
0.040069580078125,
-0.0024967193603515625,
-0.0019512176513671875,
0.01428985595703125,
-0.0237884521484375,
-0.0017032623291015625,
0.0157470703125,
-0.036468505859375,
-0.00528717041015625,
0.012298583984375,
-0.0109710693359375,
-0.01751708984375,
-0.0010395050048828125,
-0.033966064453125,
-0.025238037109375,
-0.006748199462890625,
0.0097198486328125,
0.0231475830078125,
-0.01253509521484375,
-0.023956298828125,
-0.03887939453125,
0.037689208984375,
-0.0535888671875,
-0.004383087158203125,
0.05950927734375,
0.01207733154296875,
-0.01561737060546875,
-0.02197265625,
-0.0310211181640625,
-0.023590087890625,
-0.041656494140625,
-0.053436279296875,
-0.025482177734375,
0.0330810546875,
0.01611328125,
0.0045166015625,
-0.0175933837890625,
-0.0537109375,
-0.00481414794921875,
0.030609130859375,
0.027618408203125,
0.00653839111328125,
-0.01186370849609375,
0.0097503662109375,
0.0218963623046875,
0.0384521484375,
0.01508331298828125,
0.023895263671875,
0.002582550048828125,
-0.04150390625,
0.00345611572265625,
-0.048370361328125,
-0.033050537109375,
-0.018402099609375,
-0.00653839111328125,
0.0430908203125,
0.059356689453125,
-0.005657196044921875,
-0.005649566650390625,
-0.027099609375,
0.00537109375,
-0.0272979736328125,
0.045867919921875,
-0.00041365623474121094,
-0.0198822021484375,
0.00830078125,
-0.04638671875,
0.006256103515625,
0.0089874267578125,
-0.03228759765625,
0.05218505859375,
-0.01593017578125,
0.036590576171875,
0.0435791015625,
-0.032073974609375,
0.004608154296875,
0.0189208984375,
0.023345947265625,
0.050018310546875,
0.00962066650390625,
0.036651611328125,
0.06256103515625,
-0.005741119384765625,
-0.01702880859375,
0.0217132568359375,
0.0806884765625,
0.0259246826171875,
-0.0205078125,
0.061859130859375,
-0.033721923828125,
0.035797119140625,
0.0701904296875,
0.0855712890625,
-0.1357421875,
0.0280914306640625,
0.01190948486328125,
-0.0106964111328125,
0.032470703125,
-0.0180816650390625,
-0.00969696044921875,
-0.0207672119140625,
0.05780029296875,
0.0230255126953125,
-0.0020751953125,
0.0322265625,
0.01036834716796875,
-0.002529144287109375,
0.0020694732666015625,
0.050140380859375,
0.01146697998046875,
-0.034088134765625,
-0.0138397216796875,
0.00853729248046875,
0.00829315185546875,
-0.050750732421875,
0.0086822509765625,
0.029693603515625,
-0.006145477294921875,
-0.02801513671875,
0.082763671875,
-0.0182037353515625,
0.03936767578125,
0.0177459716796875,
-0.0203094482421875,
0.045623779296875,
0.02960205078125,
-0.001743316650390625,
-0.0164642333984375,
0.01355743408203125,
-0.03643798828125,
0.034027099609375,
-0.011993408203125,
-0.0256500244140625,
0.02264404296875,
-0.0179901123046875,
-0.0012636184692382812,
-0.0152130126953125,
0.0214385986328125,
-0.0000603795051574707,
-0.0109100341796875,
0.046722412109375,
-0.02691650390625,
-0.016143798828125,
0.052001953125,
-0.041259765625,
-0.019500732421875,
-0.0186920166015625,
-0.001987457275390625,
-0.09893798828125,
-0.046478271484375,
-0.00547027587890625,
-0.032623291015625,
0.0248260498046875,
0.007602691650390625,
-0.0419921875,
0.09637451171875,
0.03326416015625,
-0.0299530029296875,
-0.0203857421875,
0.058441162109375,
-0.041656494140625,
0.033935546875,
-0.0212249755859375,
0.0278472900390625,
0.0082244873046875,
0.0311737060546875,
-0.0231170654296875,
-0.0012006759643554688,
0.0036869049072265625,
0.022430419921875,
0.080078125,
0.0243988037109375,
-0.033477783203125,
0.0239410400390625,
0.041259765625,
-0.003963470458984375,
-0.045379638671875,
0.07220458984375,
0.0010528564453125,
-0.0213775634765625,
0.022003173828125,
-0.00905609130859375,
0.03338623046875,
-0.0213470458984375,
0.007076263427734375,
0.0197906494140625,
0.0020809173583984375,
-0.0182342529296875,
-0.03790283203125,
0.01715087890625,
-0.051422119140625,
-0.016571044921875,
0.028167724609375,
-0.0157318115234375,
-0.03497314453125,
0.0239105224609375,
-0.033416748046875,
-0.015899658203125,
0.0276947021484375,
-0.04193115234375,
0.0216064453125,
-0.0190887451171875,
0.0335693359375,
0.047698974609375,
0.0250396728515625,
-0.0016145706176757812,
0.01288604736328125,
0.040679931640625,
0.03399658203125,
-0.05474853515625,
0.032623291015625,
-0.006610870361328125,
0.01274871826171875,
-0.058746337890625,
-0.023223876953125,
0.0275421142578125,
0.053680419921875,
-0.028717041015625,
-0.0311737060546875,
-0.00775909423828125,
-0.01532745361328125,
0.03228759765625,
-0.0122528076171875,
0.020782470703125,
0.001239776611328125,
0.00962066650390625,
0.0024852752685546875,
0.0023136138916015625,
0.01776123046875,
0.0003037452697753906,
-0.0027904510498046875,
-0.006465911865234375,
-0.007175445556640625,
0.031219482421875,
-0.00305938720703125,
0.01062774658203125,
-0.0192108154296875,
-0.0225830078125,
-0.0168914794921875,
0.017303466796875,
0.00913238525390625,
0.0254669189453125,
0.007213592529296875,
0.0201568603515625,
0.0472412109375,
-0.0205535888671875,
0.00839996337890625,
0.004108428955078125,
0.013824462890625,
0.01495361328125,
0.0275726318359375,
-0.004116058349609375,
0.0085906982421875,
-0.0017156600952148438,
-0.015960693359375,
-0.0067596435546875,
0.0163421630859375,
-0.01386260986328125,
-0.01036834716796875,
-0.01971435546875,
-0.006633758544921875,
0.007068634033203125,
-0.00759124755859375,
-0.0009679794311523438,
-0.00801849365234375,
0.032806396484375,
-0.03955078125,
0.03619384765625,
-0.0162506103515625,
-0.035247802734375,
0.0227203369140625,
-0.038421630859375,
0.0665283203125,
-0.038330078125,
-0.0273895263671875,
0.004062652587890625,
-0.03857421875,
-0.00830078125,
0.01474761962890625,
0.023956298828125,
-0.01837158203125,
0.03887939453125,
0.01385498046875,
0.01275634765625,
-0.00899505615234375,
-0.02288818359375,
0.0166778564453125,
-0.0509033203125,
0.00606536865234375,
-0.004009246826171875,
-0.0491943359375,
-0.0206451416015625,
-0.031524658203125,
0.04736328125,
0.022003173828125,
0.096923828125,
-0.0458984375,
0.0281219482421875,
-0.0106201171875,
-0.01104736328125,
-0.0038928985595703125,
-0.01537322998046875,
-0.0103607177734375,
-0.00254058837890625,
-0.006069183349609375,
0.0026264190673828125,
-0.049530029296875,
-0.030364990234375,
0.035064697265625,
-0.039306640625,
-0.0751953125,
0.0310821533203125,
0.043182373046875,
0.036041259765625,
0.024169921875,
-0.031982421875,
-0.01953125,
-0.031951904296875,
-0.0180511474609375,
0.021331787109375,
-0.0199737548828125,
-0.029571533203125,
0.0190277099609375,
-0.04412841796875,
-0.01910400390625,
-0.002666473388671875,
-0.0180206298828125,
-0.018310546875,
0.0217742919921875,
-0.039398193359375,
-0.029541015625,
0.02313232421875,
-0.0178680419921875,
0.01186370849609375,
-0.006519317626953125,
0.07440185546875,
-0.006313323974609375,
-0.023651123046875,
0.046295166015625,
0.01739501953125,
0.033599853515625,
-0.056915283203125,
0.0092620849609375,
0.03192138671875,
0.009307861328125,
0.0285491943359375,
-0.0151214599609375,
-0.039337158203125,
-0.04901123046875,
0.0227203369140625,
0.0288848876953125,
0.006023406982421875,
-0.005344390869140625,
-0.050384521484375,
0.03924560546875,
0.0169830322265625,
-0.0243682861328125,
-0.0251312255859375,
0.02410888671875,
-0.0623779296875,
0.04595947265625,
0.0017633438110351562,
0.00984954833984375,
0.0000022649765014648438,
0.003101348876953125,
-0.0272064208984375,
-0.012786865234375,
-0.03369140625,
0.021392822265625,
-0.0147247314453125,
0.030914306640625,
0.0792236328125,
-0.0357666015625,
-0.0251312255859375,
0.00923919677734375,
0.0316162109375,
0.054412841796875,
-0.0234375,
-0.04241943359375,
-0.02001953125,
0.0023174285888671875,
0.01302337646484375,
0.01837158203125,
0.0015745162963867188,
-0.0015506744384765625,
-0.046051025390625,
-0.041534423828125,
0.007732391357421875,
-0.0024089813232421875,
-0.03131103515625,
-0.04791259765625,
0.08795166015625,
-0.0279083251953125,
-0.01020050048828125,
-0.053070068359375,
0.014312744140625,
0.03912353515625,
-0.035125732421875,
-0.022308349609375,
0.0005183219909667969,
-0.059356689453125,
-0.0247955322265625,
-0.004871368408203125,
0.03070068359375,
0.0114898681640625,
-0.0306243896484375,
-0.033660888671875,
-0.00501251220703125,
0.005832672119140625,
0.00757598876953125,
0.0203399658203125,
-0.0132904052734375,
0.0092926025390625,
0.056427001953125,
-0.02764892578125,
-0.038909912109375,
-0.0270538330078125,
-0.03131103515625,
0.001567840576171875,
-0.0210723876953125,
-0.00824737548828125,
-0.0242919921875,
0.006038665771484375,
0.004241943359375,
0.0034732818603515625,
0.019073486328125,
0.0235137939453125,
0.01050567626953125,
0.0205535888671875,
-0.01276397705078125,
-0.020233154296875,
-0.0087432861328125,
-0.0213470458984375,
-0.031982421875,
0.0103302001953125,
0.0048675537109375,
0.033721923828125,
0.0325927734375,
-0.0308990478515625,
0.049163818359375,
-0.048126220703125,
0.0159912109375,
0.0006918907165527344,
0.06060791015625,
-0.0413818359375,
-0.017181396484375,
-0.00917816162109375,
0.0242462158203125,
-0.0003008842468261719,
-0.03271484375,
0.007709503173828125,
0.00128173828125,
-0.036163330078125,
0.039794921875,
-0.0213623046875,
0.06573486328125,
-0.07122802734375,
-0.0266876220703125,
-0.0031871795654296875,
0.03570556640625,
-0.005390167236328125,
0.037078857421875,
-0.0033397674560546875,
0.00787353515625,
0.019805908203125,
0.01258087158203125,
-0.00966644287109375,
-0.017364501953125,
-0.039093017578125,
0.056396484375,
0.00004166364669799805,
-0.00829315185546875,
0.0283966064453125,
-0.0172576904296875,
-0.00469970703125,
0.0212860107421875,
0.0171051025390625,
-0.034423828125,
0.01247406005859375,
-0.0015964508056640625,
0.01317596435546875,
0.025421142578125
] |
373cc5063eb6c96fb7eefd4831617cc4aafd2c63
|
Wordpress Stackexchange
Q: Custom comments I'm trying to create a custom comments page with pagination.
I have non-hierarchical custom type "apartments".
It makes urls like:
/apartments/ - for acrhive
/apartments/%id%/ - for post page
/apartments/%id%/comments-page-X/ - for comments (X is some number)
How do I create page /apartments/%id%/questions/ for comments? And remove /apartments/%id%/comments-page-X/ if possible.
I would like to make this url structure for comments:
/apartments/%id%/questions/ - first page of the comments
/apartments/%id%/questions/page/X/ - pagination for comments (X is some number)
What is the solution?
A: $args = array('post_id'=>get_the_ID(), 'status'=> 'approve');
$all_comm = get_comments($args);
$per_page = get_option("comments_per_page");
if(!$per_page)
$per_page = 4;
$cpage = get_query_var("cpage");
if(!$cpage)
$cpage = 1;
if(round(count($all_comm)/$per_page) == 0)
$total = 1;
else
$total = round(count($all_comm)/$per_page);
$args_comments = array(
'base' => add_query_arg( 'cpage', '%#%' ),
'format' => "",
'total' => $total,
'current' => $cpage,
'echo' => false,
'add_fragment' => '#reviews'
);
$pagi_comments = paginate_comments_links($args_comments);
$args = array('post_id'=>get_the_ID(), 'status'=> 'approve', 'number' => $per_page, 'offset' => $per_page*($cpage-1));
$all_comm = get_comments($args);
if($all_comm)
foreach($all_comm as $as){ print_r($as); }
echo $pagi_comments;
I hope it helps lot to you.
|
Q: Custom comments I'm trying to create a custom comments page with pagination.
I have non-hierarchical custom type "apartments".
It makes urls like:
/apartments/ - for acrhive
/apartments/%id%/ - for post page
/apartments/%id%/comments-page-X/ - for comments (X is some number)
How do I create page /apartments/%id%/questions/ for comments? And remove /apartments/%id%/comments-page-X/ if possible.
I would like to make this url structure for comments:
/apartments/%id%/questions/ - first page of the comments
/apartments/%id%/questions/page/X/ - pagination for comments (X is some number)
What is the solution?
A: $args = array('post_id'=>get_the_ID(), 'status'=> 'approve');
$all_comm = get_comments($args);
$per_page = get_option("comments_per_page");
if(!$per_page)
$per_page = 4;
$cpage = get_query_var("cpage");
if(!$cpage)
$cpage = 1;
if(round(count($all_comm)/$per_page) == 0)
$total = 1;
else
$total = round(count($all_comm)/$per_page);
$args_comments = array(
'base' => add_query_arg( 'cpage', '%#%' ),
'format' => "",
'total' => $total,
'current' => $cpage,
'echo' => false,
'add_fragment' => '#reviews'
);
$pagi_comments = paginate_comments_links($args_comments);
$args = array('post_id'=>get_the_ID(), 'status'=> 'approve', 'number' => $per_page, 'offset' => $per_page*($cpage-1));
$all_comm = get_comments($args);
if($all_comm)
foreach($all_comm as $as){ print_r($as); }
echo $pagi_comments;
I hope it helps lot to you.
|
wordpress
|
{
"language": "en",
"length": 173,
"provenance": "stackexchange_00019.jsonl.gz:408682",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14963"
}
|
[
0.06976318359375,
-0.036041259765625,
0.0045928955078125,
-0.11260986328125,
-0.0128631591796875,
-0.0110015869140625,
-0.005985260009765625,
0.042816162109375,
-0.02178955078125,
0.030426025390625,
-0.004436492919921875,
0.001628875732421875,
-0.021942138671875,
-0.02239990234375,
-0.00968170166015625,
-0.043212890625,
0.0261077880859375,
-0.01186370849609375,
-0.004642486572265625,
-0.0154876708984375,
0.02789306640625,
-0.01904296875,
-0.00585174560546875,
0.07220458984375,
0.048919677734375,
-0.04266357421875,
0.030426025390625,
-0.029693603515625,
0.040802001953125,
-0.00896453857421875,
0.018707275390625,
-0.007808685302734375,
0.058319091796875,
-0.031707763671875,
0.004032135009765625,
0.0017147064208984375,
0.0233154296875,
-0.036865234375,
-0.00394439697265625,
0.0069732666015625,
0.039459228515625,
-0.0380859375,
-0.00836944580078125,
-0.002124786376953125,
-0.0029697418212890625,
0.0021648406982421875,
0.00632476806640625,
-0.0489501953125,
0.012969970703125,
-0.0171051025390625,
0.01629638671875,
0.00888824462890625,
0.02117919921875,
0.01302337646484375,
-0.0221405029296875,
0.01010894775390625,
0.0243377685546875,
-0.0355224609375,
0.021087646484375,
-0.05072021484375,
-0.0143280029296875,
-0.0194549560546875,
0.05377197265625,
0.032379150390625,
-0.0423583984375,
-0.0250396728515625,
-0.040740966796875,
0.01161956787109375,
0.043853759765625,
-0.044158935546875,
-0.0380859375,
0.04052734375,
0.0068359375,
-0.0156097412109375,
0.0208587646484375,
-0.0302276611328125,
-0.03369140625,
-0.032073974609375,
0.040069580078125,
0.006103515625,
0.013885498046875,
0.0150146484375,
-0.04425048828125,
0.046112060546875,
-0.0297393798828125,
0.0391845703125,
-0.0149993896484375,
-0.046173095703125,
-0.023040771484375,
-0.004863739013671875,
-0.0141448974609375,
-0.048919677734375,
-0.0191192626953125,
0.0095977783203125,
0.0124359130859375,
-0.03466796875,
0.02325439453125,
0.0191192626953125,
-0.0014410018920898438,
0.0035076141357421875,
-0.01751708984375,
-0.01529693603515625,
0.0117034912109375,
-0.018768310546875,
0.0215301513671875,
0.03106689453125,
-0.011962890625,
0.012542724609375,
0.0692138671875,
0.01739501953125,
0.0167694091796875,
0.059814453125,
-0.022674560546875,
0.0107269287109375,
-0.0236968994140625,
-0.01132965087890625,
-0.063232421875,
-0.0005359649658203125,
-0.031494140625,
-0.0004699230194091797,
-0.038360595703125,
-0.0174560546875,
0.007457733154296875,
-0.010223388671875,
0.0526123046875,
0.0251922607421875,
0.01092529296875,
-0.0224456787109375,
-0.0156097412109375,
0.031646728515625,
-0.0394287109375,
0.01146697998046875,
0.037689208984375,
0.003662109375,
-0.003833770751953125,
-0.0230865478515625,
0.01442718505859375,
-0.022491455078125,
-0.029144287109375,
0.036651611328125,
0.0301513671875,
-0.0284576416015625,
-0.0012969970703125,
0.00649261474609375,
-0.061248779296875,
0.0141448974609375,
0.0291290283203125,
0.012939453125,
-0.045440673828125,
-0.08673095703125,
0.0027790069580078125,
-0.0180511474609375,
0.050537109375,
-0.0220947265625,
-0.05084228515625,
-0.0240478515625,
-0.0272064208984375,
-0.01326751708984375,
-0.03143310546875,
-0.02691650390625,
0.018890380859375,
-0.0174560546875,
-0.0274505615234375,
-0.042816162109375,
-0.049407958984375,
0.002323150634765625,
0.0093841552734375,
-0.0012063980102539062,
0.0296630859375,
0.057769775390625,
-0.0256805419921875,
-0.0289306640625,
0.0223388671875,
0.0259857177734375,
-0.005035400390625,
0.030426025390625,
0.01076507568359375,
0.016754150390625,
0.001346588134765625,
0.0662841796875,
0.016387939453125,
-0.046600341796875,
0.0216064453125,
-0.01094818115234375,
-0.041656494140625,
0.0010156631469726562,
0.0389404296875,
0.055511474609375,
-0.0116729736328125,
0.038421630859375,
0.049652099609375,
0.00655364990234375,
-0.0269775390625,
0.003437042236328125,
0.002044677734375,
-0.021484375,
-0.0249176025390625,
-0.01322174072265625,
-0.01259613037109375,
0.00963592529296875,
-0.0275421142578125,
-0.00792694091796875,
0.0137176513671875,
0.0304107666015625,
0.033721923828125,
-0.0001049041748046875,
0.009033203125,
0.022003173828125,
-0.0455322265625,
0.0273284912109375,
0.02777099609375,
0.0027008056640625,
-0.032501220703125,
0.013214111328125,
0.01947021484375,
0.0146942138671875,
0.023223876953125,
0.032958984375,
-0.00992584228515625,
0.0127105712890625,
-0.01081085205078125,
-0.0293426513671875,
-0.0051727294921875,
0.0304718017578125,
0.061065673828125,
-0.03662109375,
-0.0087432861328125,
-0.04852294921875,
0.03363037109375,
-0.0256195068359375,
-0.04217529296875,
0.0631103515625,
0.057891845703125,
0.04534912109375,
-0.01377105712890625,
0.00936126708984375,
0.0162353515625,
-0.047088623046875,
-0.007335662841796875,
0.033355712890625,
0.036346435546875,
-0.009857177734375,
-0.010528564453125,
0.00014698505401611328,
0.04180908203125,
-0.05975341796875,
-0.00273895263671875,
-0.004184722900390625,
-0.029083251953125,
0.01065826416015625,
0.0078887939453125,
-0.004611968994140625,
0.0133209228515625,
0.01209259033203125,
-0.030548095703125,
0.04449462890625,
0.0033111572265625,
0.008056640625,
-0.025421142578125,
0.00359344482421875,
0.01325225830078125,
-0.004405975341796875,
-0.0262298583984375,
0.01128387451171875,
-0.0236053466796875,
0.006053924560546875,
0.01427459716796875,
0.0157928466796875,
-0.01873779296875,
-0.0231475830078125,
0.0241241455078125,
0.047943115234375,
-0.01535797119140625,
-0.01239776611328125,
-0.0197296142578125,
-0.01230621337890625,
-0.041229248046875,
0.0267333984375,
-0.0034160614013671875,
-0.0247039794921875,
-0.0135040283203125,
0.03753662109375,
-0.05572509765625,
-0.00994110107421875,
-0.01338958740234375,
-0.0146331787109375,
-0.028594970703125,
0.0195770263671875,
-0.047393798828125,
-0.048309326171875,
-0.0152130126953125,
0.0283966064453125,
-0.005565643310546875,
-0.01161956787109375,
0.04486083984375,
-0.0110321044921875,
0.0635986328125,
-0.03912353515625,
0.0477294921875,
-0.040496826171875,
0.0038051605224609375,
0.05181884765625,
-0.0033473968505859375,
-0.0110931396484375,
-0.01165771484375,
-0.0307769775390625,
-0.02239990234375,
0.0169525146484375,
-0.013336181640625,
-0.061920166015625,
0.01367950439453125,
0.050933837890625,
0.0169677734375,
0.02911376953125,
0.0168304443359375,
-0.0147705078125,
-0.003345489501953125,
0.0341796875,
-0.0428466796875,
-0.053070068359375,
0.07330322265625,
-0.004810333251953125,
-0.0169219970703125,
0.0024814605712890625,
-0.0128936767578125,
-0.0291748046875,
0.0128326416015625,
-0.020660400390625,
-0.0206451416015625,
-0.03759765625,
-0.05487060546875,
-0.055419921875,
-0.053680419921875,
0.06378173828125,
0.0184326171875,
0.027130126953125,
0.000022172927856445312,
0.04119873046875,
0.007015228271484375,
0.0218505859375,
0.0439453125,
-0.022705078125,
0.01343536376953125,
-0.01812744140625,
-0.028411865234375,
0.02520751953125,
0.0200347900390625,
-0.0169219970703125,
0.06658935546875,
0.04693603515625,
-0.0260772705078125,
0.01369476318359375,
0.01141357421875,
0.02667236328125,
0.005863189697265625,
0.050140380859375,
-0.003787994384765625,
0.060150146484375,
0.0230560302734375,
-0.01549530029296875,
-0.03045654296875,
0.003421783447265625,
-0.0546875,
-0.01497650146484375,
0.044921875,
-0.01092529296875,
-0.0157928466796875,
-0.00507354736328125,
-0.0104217529296875,
-0.002094268798828125,
0.06951904296875,
-0.038970947265625,
-0.01373291015625,
-0.0205230712890625,
-0.0257110595703125,
-0.045654296875,
0.050140380859375,
-0.0196990966796875,
-0.0169219970703125,
0.00897216796875,
-0.0181121826171875,
-0.023590087890625,
-0.037322998046875,
-0.049468994140625,
-0.08062744140625,
0.044464111328125,
0.03466796875,
0.01129913330078125,
-0.01442718505859375,
-0.034210205078125,
-0.00798797607421875,
0.06781005859375,
-0.050994873046875,
-0.0002789497375488281,
-0.01229095458984375,
-0.0249786376953125,
0.01403045654296875,
0.01346588134765625,
-0.048248291015625,
-0.00196075439453125,
-0.059967041015625,
0.035064697265625,
0.0011873245239257812,
-0.001842498779296875,
-0.02655029296875,
0.051239013671875,
-0.04034423828125,
-0.028411865234375,
0.04296875,
-0.014556884765625,
-0.01380157470703125,
0.0287628173828125,
-0.0207672119140625,
0.021270751953125,
-0.041595458984375,
-0.00789642333984375,
-0.044158935546875,
-0.0111083984375,
0.0181427001953125,
0.0247802734375,
-0.0294036865234375,
0.03948974609375,
-0.04010009765625,
0.0274505615234375,
-0.0019168853759765625,
-0.0015306472778320312,
-0.004070281982421875,
0.01059722900390625,
-0.0667724609375,
0.01198577880859375,
0.01422119140625,
-0.0279083251953125,
0.006000518798828125,
0.020233154296875,
0.00971221923828125,
0.05572509765625,
-0.043975830078125,
-0.0192108154296875,
-0.017364501953125,
-0.01959228515625,
-0.04193115234375,
-0.0024127960205078125,
-0.0009984970092773438,
0.007053375244140625,
-0.002105712890625,
-0.014801025390625,
-0.00745391845703125,
-0.0670166015625,
-0.041259765625,
-0.020172119140625,
-0.022674560546875,
0.02410888671875,
0.00534820556640625,
0.03167724609375,
0.010223388671875,
0.00421905517578125,
-0.0225372314453125,
0.028533935546875,
-0.0164337158203125,
0.055145263671875,
0.052215576171875,
-0.007038116455078125,
0.03680419921875,
0.007564544677734375,
0.00475311279296875,
0.027496337890625,
0.017333984375,
0.0012826919555664062,
-0.0169219970703125,
0.010833740234375,
-0.0251312255859375,
-0.0028400421142578125,
0.026458740234375,
-0.025634765625,
0.01404571533203125,
-0.049041748046875,
0.037994384765625,
-0.0104522705078125,
0.0089874267578125,
-0.04095458984375,
-0.00733184814453125,
0.004535675048828125,
-0.00017058849334716797,
0.04864501953125,
0.005733489990234375,
0.0012426376342773438,
0.021484375,
0.04815673828125,
0.03460693359375,
0.0496826171875,
0.0504150390625,
-0.01922607421875,
0.05401611328125,
0.046295166015625,
0.01021575927734375,
0.0183563232421875,
0.00606536865234375,
-0.0265350341796875,
0.0021152496337890625,
-0.0295867919921875,
-0.00492095947265625,
-0.004791259765625,
0.0019140243530273438,
-0.01232147216796875,
0.038848876953125,
0.0243988037109375,
-0.0021152496337890625,
0.02508544921875,
-0.0088348388671875,
-0.0250244140625,
0.0241241455078125,
-0.0184326171875,
0.0018110275268554688,
0.00489044189453125,
-0.0246734619140625,
-0.01873779296875,
0.050567626953125,
-0.00550079345703125,
0.00901031494140625,
-0.0126800537109375,
0.0010395050048828125,
0.00670623779296875,
0.01554107666015625,
-0.0013370513916015625,
0.050445556640625,
-0.0126953125,
0.012725830078125,
0.0259857177734375,
-0.01458740234375,
-0.006580352783203125,
0.033416748046875,
0.00553131103515625,
0.0199737548828125,
0.0172119140625,
-0.013702392578125,
-0.01428985595703125,
-0.018798828125,
0.026092529296875,
0.03839111328125,
-0.0269775390625,
0.00438690185546875,
0.0236358642578125,
0.004871368408203125,
0.00576019287109375,
-0.033843994140625,
0.019927978515625,
-0.064697265625,
-0.00201416015625,
0.002605438232421875,
-0.030975341796875,
0.0005974769592285156,
-0.003582000732421875,
0.007572174072265625,
-0.01251220703125,
-0.0119781494140625,
-0.01861572265625,
-0.012420654296875,
-0.005878448486328125,
0.00021314620971679688,
0.014129638671875,
0.0205841064453125,
0.03594970703125,
-0.032806396484375,
-0.037689208984375,
0.01678466796875,
-0.01296234130859375,
0.05718994140625,
0.0007944107055664062,
-0.0110626220703125,
0.00408172607421875,
-0.06976318359375,
-0.0242919921875,
-0.0276641845703125,
-0.032745361328125,
-0.03131103515625,
0.004974365234375,
0.01070404052734375,
0.034576416015625,
0.005916595458984375,
-0.005435943603515625,
-0.012908935546875,
-0.007518768310546875,
-0.01385498046875,
0.02972412109375,
0.0298614501953125,
0.029510498046875,
-0.036956787109375,
-0.0006313323974609375,
0.019744873046875,
0.041351318359375,
0.010894775390625,
-0.033355712890625,
0.028717041015625,
0.01084136962890625,
-0.031494140625,
-0.03814697265625,
-0.027496337890625,
-0.0078887939453125,
0.07171630859375,
-0.01568603515625,
0.036163330078125,
-0.01503753662109375,
-0.00435638427734375,
-0.0196075439453125,
-0.018463134765625,
-0.0258331298828125,
0.05535888671875,
-0.0117034912109375,
-0.023284912109375,
-0.0157470703125,
-0.0168304443359375,
0.033172607421875,
-0.006305694580078125,
-0.0205535888671875,
0.00531005859375,
-0.0186004638671875,
-0.047454833984375,
0.034393310546875,
0.0994873046875,
0.02532958984375,
0.04901123046875,
0.01476287841796875,
0.021820068359375,
0.06201171875,
0.0016279220581054688,
0.01334381103515625,
-0.03460693359375,
0.06561279296875,
0.0036563873291015625,
-0.0034332275390625,
0.07470703125,
-0.0230255126953125,
0.046661376953125,
0.0131683349609375,
0.047149658203125,
-0.07177734375,
0.039703369140625,
-0.00041866302490234375,
-0.006793975830078125,
0.0819091796875,
0.0220489501953125,
0.00438690185546875,
-0.04522705078125,
0.042327880859375,
-0.02264404296875,
0.004001617431640625,
0.005939483642578125,
-0.02569580078125,
0.006389617919921875,
-0.00782012939453125,
0.01088714599609375,
-0.0206146240234375,
-0.0401611328125,
-0.0245208740234375,
0.025909423828125,
-0.0176239013671875,
-0.040374755859375,
-0.036376953125,
0.0226898193359375,
-0.02008056640625,
-0.0767822265625,
0.0228729248046875,
-0.07122802734375,
0.0285186767578125,
0.04095458984375,
0.00782012939453125,
-0.024627685546875,
0.031005859375,
-0.0258331298828125,
0.0160980224609375,
0.00604248046875,
-0.089599609375,
-0.054473876953125,
-0.0256500244140625,
0.00698089599609375,
0.0016412734985351562,
-0.002918243408203125,
0.033172607421875,
-0.0237579345703125,
-0.0462646484375,
0.00836181640625,
0.052825927734375,
0.060211181640625,
-0.0718994140625,
-0.00730133056640625,
0.0287628173828125,
0.0192413330078125,
0.0201568603515625,
-0.0051727294921875,
0.0000035762786865234375,
-0.06146240234375,
-0.0430908203125,
0.00917816162109375,
-0.042388916015625,
0.0194854736328125,
0.00768280029296875,
-0.041015625,
0.08966064453125,
-0.04193115234375,
0.007404327392578125,
0.00859832763671875,
0.042572021484375,
-0.013427734375,
0.0265045166015625,
-0.0268707275390625,
0.03802490234375,
-0.031097412109375,
0.08575439453125,
-0.07958984375,
-0.0308074951171875,
0.042755126953125,
0.0860595703125,
0.033935546875,
0.027496337890625,
-0.048248291015625,
0.004978179931640625,
0.00548553466796875,
0.0161895751953125,
0.006114959716796875,
0.05047607421875,
0.00588226318359375,
0.043304443359375,
0.06005859375,
-0.0469970703125,
0.01922607421875,
0.016357421875,
-0.007770538330078125,
0.0180511474609375,
0.00957489013671875,
-0.0176544189453125,
-0.00872802734375,
0.00475311279296875,
-0.08233642578125,
0.014251708984375,
0.03778076171875,
0.0229644775390625,
-0.0016469955444335938,
0.05926513671875,
0.053924560546875,
-0.039398193359375,
-0.0208740234375,
-0.034423828125,
0.06103515625,
-0.0007791519165039062,
0.0176849365234375,
0.05059814453125,
0.033355712890625,
0.01212310791015625,
-0.003025054931640625,
0.0159912109375,
-0.0033721923828125,
-0.0117034912109375,
0.029205322265625,
0.032928466796875,
0.01422882080078125,
-0.03363037109375,
-0.0004820823669433594,
0.036163330078125,
0.049530029296875,
-0.04510498046875,
-0.0433349609375,
-0.00785064697265625,
0.0008068084716796875,
0.047393798828125,
0.004238128662109375,
0.0791015625,
-0.0047607421875,
0.0066070556640625,
-0.0343017578125,
-0.031524658203125,
-0.0158233642578125,
0.05133056640625,
-0.0157012939453125,
-0.039215087890625,
0.018280029296875,
-0.047943115234375,
-0.03314208984375,
-0.01174163818359375,
0.03314208984375,
0.0299530029296875,
-0.00449371337890625,
0.044921875,
-0.0006690025329589844,
0.0103759765625,
0.002841949462890625,
0.0212554931640625,
0.0295562744140625,
-0.0186309814453125,
-0.007312774658203125,
-0.01812744140625,
0.01369476318359375,
0.021209716796875,
0.0038661956787109375,
0.04791259765625,
-0.01181793212890625,
-0.0239410400390625,
0.039703369140625,
0.0175628662109375,
0.0165252685546875,
-0.0309906005859375,
-0.0116729736328125,
-0.043548583984375,
0.00908660888671875,
0.005031585693359375,
0.003932952880859375,
-0.0003323554992675781,
0.0245819091796875,
0.0260162353515625,
0.0355224609375,
-0.006687164306640625,
0.0205535888671875,
-0.002960205078125,
-0.01393890380859375,
-0.0047760009765625,
0.005329132080078125,
0.043548583984375,
-0.039947509765625,
-0.01372528076171875,
-0.01372528076171875,
-0.0247344970703125,
0.01262664794921875,
0.04608154296875,
0.0234222412109375,
-0.0181884765625,
-0.03668212890625,
0.025054931640625,
0.0275726318359375,
-0.0528564453125,
-0.00417327880859375,
0.01131439208984375,
0.03936767578125,
-0.006275177001953125,
-0.0413818359375,
-0.03240966796875,
-0.016815185546875,
0.0181732177734375,
-0.0070037841796875,
0.10626220703125,
-0.03875732421875,
-0.0008215904235839844,
0.00901031494140625,
0.0025081634521484375,
0.0136871337890625,
-0.01355743408203125,
0.05438232421875,
0.01255035400390625,
0.00579071044921875,
-0.01222991943359375,
0.0217437744140625,
0.0102691650390625,
0.0333251953125,
-0.048309326171875,
-0.029144287109375,
-0.0111846923828125,
0.0228424072265625,
-0.00670623779296875,
-0.031494140625,
-0.0240631103515625,
-0.01395416259765625,
-0.014984130859375,
-0.022369384765625,
0.0259857177734375,
0.02130126953125,
0.0170440673828125,
0.091064453125,
-0.0119171142578125,
0.0474853515625,
0.0126953125,
-0.04229736328125,
0.0193023681640625,
0.0219573974609375,
-0.050750732421875,
0.007080078125,
0.024566650390625,
-0.006702423095703125,
0.015411376953125,
0.0215606689453125,
0.01824951171875,
0.0217132568359375,
0.0298309326171875,
-0.000896453857421875,
0.01016998291015625,
0.059112548828125,
-0.01462554931640625,
0.023040771484375,
-0.047271728515625,
0.017578125,
0.06109619140625,
-0.058990478515625,
-0.0279388427734375,
-0.062347412109375,
0.001071929931640625,
0.017822265625,
-0.0389404296875,
-0.00957489013671875,
-0.01358795166015625,
-0.01071929931640625,
0.0101165771484375,
0.0174713134765625,
-0.06207275390625,
0.04498291015625,
-0.0103759765625,
-0.0041961669921875,
-0.02008056640625,
0.03643798828125,
-0.029571533203125,
-0.05670166015625,
-0.062347412109375,
0.01076507568359375,
-0.051788330078125,
0.0204925537109375,
0.003040313720703125,
0.043487548828125,
0.07012939453125,
-0.04364013671875,
-0.042388916015625,
0.0304107666015625,
0.057586669921875,
0.07965087890625,
0.00614166259765625,
-0.01015472412109375,
0.025390625,
-0.00273895263671875,
-0.038787841796875,
-0.07916259765625,
0.01322174072265625,
-0.0814208984375,
-0.00879669189453125,
0.0396728515625,
-0.007541656494140625,
0.0298004150390625,
-0.0159759521484375,
-0.048736572265625,
0.059295654296875,
0.0006937980651855469,
-0.03167724609375,
-0.020751953125,
-0.0109405517578125,
-0.00852203369140625,
-0.00649261474609375,
-0.0009002685546875,
-0.0188446044921875,
-0.01556396484375,
0.02032470703125,
0.00733184814453125,
0.0080413818359375,
0.023284912109375,
0.011077880859375,
-0.034820556640625,
0.0184783935546875,
0.014434814453125,
-0.022491455078125,
0.004669189453125,
-0.00913238525390625,
0.03790283203125,
0.042755126953125,
-0.0036449432373046875,
-0.043548583984375,
0.0031070709228515625,
-0.03668212890625,
-0.018402099609375,
-0.044036865234375,
-0.0277099609375,
-0.0072784423828125,
0.07196044921875,
0.06341552734375,
0.0011234283447265625,
-0.03302001953125,
-0.0020236968994140625,
-0.01336669921875,
-0.05621337890625,
-0.0225372314453125,
0.02703857421875,
-0.046661376953125,
-0.01358795166015625,
-0.0229339599609375,
-0.00385284423828125,
0.006221771240234375,
-0.01546478271484375,
-0.0211334228515625,
-0.0212554931640625,
-0.0163116455078125,
-0.033172607421875,
0.02008056640625,
-0.02911376953125,
0.01666259765625,
-0.018157958984375,
-0.0186309814453125,
-0.003932952880859375,
0.01361083984375,
-0.0169525146484375,
0.019927978515625,
-0.060302734375,
-0.006687164306640625,
-0.00557708740234375,
0.023773193359375,
-0.02252197265625,
0.007564544677734375,
-0.00888824462890625,
0.0196685791015625,
-0.0015964508056640625,
0.01558685302734375,
-0.005451202392578125,
0.027618408203125,
0.00803375244140625,
-0.00148773193359375,
-0.0014057159423828125,
0.0211639404296875,
0.00836181640625,
0.052734375,
-0.016815185546875,
0.0418701171875,
0.0311431884765625,
-0.03302001953125,
0.052032470703125,
-0.026458740234375,
0.0022830963134765625,
-0.01174163818359375,
0.005382537841796875,
-0.06439208984375,
0.027252197265625,
0.03912353515625,
0.0011577606201171875,
0.0295562744140625
] |
a6a3b22c006afd20426f0fbdc15c44a09314d38e
|
Wordpress Stackexchange
Q: Why will using __construct instead of widget_class_name when creating widget trigger out of memory error I find that if I use
class widget_name extends WP_Widget {
function __construct() { ... }
}
instead of
class widget_name extends WP_Widget {
function widget_name() { ... }
}
I get an error like
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /var/www/vhosts/klifmedia.net/httpdocs/jm/km/wp-content/themes/km/functions.php on line 77
A: Because widget_name::__construct() calls WP_Widget::WP_Widget(), which in turn calls widget_name::__construct() etc.
A simple solution would be to make widget_name::__construct() call WP_Widget::__construct() directly.
Also see http://core.trac.wordpress.org/ticket/16768#comment:9
|
Q: Why will using __construct instead of widget_class_name when creating widget trigger out of memory error I find that if I use
class widget_name extends WP_Widget {
function __construct() { ... }
}
instead of
class widget_name extends WP_Widget {
function widget_name() { ... }
}
I get an error like
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 523800 bytes) in /var/www/vhosts/klifmedia.net/httpdocs/jm/km/wp-content/themes/km/functions.php on line 77
A: Because widget_name::__construct() calls WP_Widget::WP_Widget(), which in turn calls widget_name::__construct() etc.
A simple solution would be to make widget_name::__construct() call WP_Widget::__construct() directly.
Also see http://core.trac.wordpress.org/ticket/16768#comment:9
|
wordpress
|
{
"language": "en",
"length": 95,
"provenance": "stackexchange_00019.jsonl.gz:408684",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14965"
}
|
[
0.010498046875,
-0.046661376953125,
0.0174407958984375,
-0.039459228515625,
-0.028472900390625,
-0.003429412841796875,
-0.007472991943359375,
0.00036406517028808594,
0.031280517578125,
0.01219940185546875,
-0.037872314453125,
-0.0224761962890625,
-0.0231475830078125,
-0.005413055419921875,
-0.043487548828125,
-0.042694091796875,
0.0259246826171875,
0.0004901885986328125,
0.0126190185546875,
-0.0181427001953125,
0.031890869140625,
0.0056915283203125,
-0.0199432373046875,
0.0618896484375,
0.01129150390625,
-0.053375244140625,
0.046875,
-0.00238800048828125,
-0.044769287109375,
-0.0491943359375,
0.01459503173828125,
0.049102783203125,
0.025787353515625,
0.01549530029296875,
-0.03167724609375,
-0.01360321044921875,
0.0005702972412109375,
0.0033721923828125,
-0.0150146484375,
0.02862548828125,
-0.0012664794921875,
0.01183319091796875,
-0.003261566162109375,
-0.0302276611328125,
-0.025115966796875,
-0.032562255859375,
-0.0117034912109375,
-0.02734375,
0.017547607421875,
-0.046783447265625,
0.03326416015625,
0.00536346435546875,
0.057952880859375,
-0.041961669921875,
-0.033905029296875,
0.00760650634765625,
-0.034942626953125,
0.0205841064453125,
0.010009765625,
0.0301513671875,
-0.006000518798828125,
0.0029087066650390625,
0.0032062530517578125,
-0.0297393798828125,
-0.0112457275390625,
-0.00959014892578125,
-0.0009813308715820312,
-0.003986358642578125,
0.0237579345703125,
0.01407623291015625,
0.032806396484375,
-0.00010949373245239258,
-0.028472900390625,
0.015777587890625,
-0.02105712890625,
-0.0210113525390625,
0.020721435546875,
-0.01459503173828125,
0.01305389404296875,
0.037933349609375,
0.02593994140625,
0.005908966064453125,
-0.055938720703125,
-0.0006422996520996094,
0.0153656005859375,
0.01174163818359375,
-0.0178680419921875,
-0.03155517578125,
0.0148162841796875,
0.010986328125,
-0.0011425018310546875,
-0.04351806640625,
0.046722412109375,
-0.005069732666015625,
0.00994110107421875,
-0.06695556640625,
-0.0169219970703125,
0.0240631103515625,
-0.0037937164306640625,
0.033966064453125,
-0.0020313262939453125,
-0.045379638671875,
0.0504150390625,
-0.048614501953125,
0.0188751220703125,
0.0286102294921875,
-0.0264434814453125,
-0.0081634521484375,
0.0226287841796875,
0.0177459716796875,
0.0012559890747070312,
-0.052764892578125,
0.0086669921875,
-0.068115234375,
0.018585205078125,
0.038543701171875,
-0.0006861686706542969,
0.0269012451171875,
0.04632568359375,
0.002803802490234375,
0.00232696533203125,
0.00013375282287597656,
0.007030487060546875,
0.0450439453125,
-0.0116119384765625,
0.024078369140625,
-0.0033855438232421875,
-0.02850341796875,
-0.0006074905395507812,
-0.05413818359375,
-0.022796630859375,
0.017547607421875,
0.056671142578125,
0.04095458984375,
0.020843505859375,
0.00411224365234375,
0.04345703125,
0.01274871826171875,
0.00511932373046875,
0.024566650390625,
0.01114654541015625,
-0.0305023193359375,
-0.029815673828125,
-0.0010366439819335938,
0.034332275390625,
0.03369140625,
0.025390625,
-0.0179595947265625,
-0.00829315185546875,
-0.040374755859375,
0.01995849609375,
-0.029937744140625,
0.020050048828125,
0.0302734375,
-0.00640106201171875,
-0.0012054443359375,
0.0391845703125,
-0.0309600830078125,
-0.026824951171875,
-0.02862548828125,
-0.038177490234375,
-0.0165252685546875,
-0.00545501708984375,
-0.051849365234375,
-0.037628173828125,
0.0180206298828125,
-0.018646240234375,
0.007129669189453125,
0.0301513671875,
-0.01097869873046875,
0.038116455078125,
-0.042633056640625,
0.002140045166015625,
0.010467529296875,
-0.0034999847412109375,
0.03826904296875,
0.00516510009765625,
-0.010345458984375,
0.0209808349609375,
-0.0265655517578125,
-0.05841064453125,
-0.039398193359375,
0.034088134765625,
-0.032928466796875,
-0.0267791748046875,
-0.0133514404296875,
0.034515380859375,
0.0240478515625,
-0.006000518798828125,
0.026336669921875,
0.033111572265625,
0.011199951171875,
-0.036224365234375,
0.0124969482421875,
-0.005687713623046875,
-0.0201263427734375,
-0.01263427734375,
-0.01434326171875,
0.00591278076171875,
0.018035888671875,
0.051025390625,
-0.005069732666015625,
-0.00045180320739746094,
-0.06353759765625,
-0.09588623046875,
-0.005283355712890625,
-0.0244293212890625,
0.05108642578125,
-0.0254364013671875,
0.039398193359375,
0.0316162109375,
0.01010894775390625,
-0.053985595703125,
0.034149169921875,
-0.005939483642578125,
-0.039581298828125,
-0.0095367431640625,
0.0966796875,
0.018524169921875,
0.040130615234375,
0.036041259765625,
-0.050506591796875,
0.037994384765625,
-0.0186309814453125,
0.05316162109375,
-0.0100250244140625,
-0.0190582275390625,
-0.037353515625,
0.03277587890625,
-0.0078125,
-0.027618408203125,
0.0694580078125,
-0.007190704345703125,
0.02447509765625,
-0.016937255859375,
-0.01549530029296875,
-0.040191650390625,
-0.0511474609375,
0.007495880126953125,
0.05291748046875,
0.045166015625,
0.0650634765625,
-0.015655517578125,
-0.0249786376953125,
0.07403564453125,
-0.0963134765625,
-0.0115203857421875,
-0.004322052001953125,
0.0014753341674804688,
0.06536865234375,
-0.004474639892578125,
0.0196075439453125,
-0.005649566650390625,
-0.00015676021575927734,
-0.0167694091796875,
0.0272674560546875,
-0.00643157958984375,
-0.03741455078125,
0.022216796875,
-0.0023899078369140625,
0.00296783447265625,
-0.041473388671875,
-0.037933349609375,
-0.01148223876953125,
-0.0192108154296875,
0.028778076171875,
-0.0010395050048828125,
0.006744384765625,
-0.024658203125,
0.0149078369140625,
0.029571533203125,
-0.0276031494140625,
0.0191802978515625,
-0.01419830322265625,
-0.00383758544921875,
0.009124755859375,
-0.027923583984375,
0.00583648681640625,
0.0313720703125,
-0.01129150390625,
-0.0125732421875,
0.055572509765625,
-0.029571533203125,
-0.0195159912109375,
-0.036102294921875,
-0.0726318359375,
-0.00893402099609375,
0.002223968505859375,
0.01413726806640625,
-0.00673675537109375,
-0.0061187744140625,
0.051727294921875,
0.006061553955078125,
0.036773681640625,
0.0634765625,
-0.018707275390625,
0.072021484375,
0.0506591796875,
-0.0257110595703125,
0.0214080810546875,
0.0660400390625,
0.0148468017578125,
-0.023193359375,
0.0112762451171875,
-0.006046295166015625,
0.033599853515625,
0.03143310546875,
-0.01824951171875,
-0.0174407958984375,
0.00016546249389648438,
-0.040802001953125,
-0.001407623291015625,
0.047088623046875,
0.11468505859375,
0.0189056396484375,
-0.0201568603515625,
0.031646728515625,
0.08514404296875,
0.014495849609375,
-0.034881591796875,
-0.04486083984375,
-0.02264404296875,
0.00238800048828125,
0.0139923095703125,
-0.0081329345703125,
-0.004779815673828125,
0.013397216796875,
0.0184783935546875,
0.0006022453308105469,
-0.019805908203125,
-0.0239105224609375,
-0.056549072265625,
-0.05419921875,
-0.025665283203125,
0.007808685302734375,
0.008819580078125,
0.0011968612670898438,
0.0006880760192871094,
-0.0227508544921875,
-0.028411865234375,
-0.016876220703125,
0.05810546875,
0.0162200927734375,
-0.01174163818359375,
0.001068115234375,
-0.017425537109375,
-0.0203094482421875,
-0.003643035888671875,
0.016754150390625,
0.0002162456512451172,
-0.00496673583984375,
-0.0121307373046875,
0.0236968994140625,
-0.0282745361328125,
0.036651611328125,
0.0726318359375,
-0.033172607421875,
-0.0200347900390625,
0.061370849609375,
-0.0484619140625,
-0.01131439208984375,
-0.001934051513671875,
-0.053741455078125,
-0.0205535888671875,
0.00925445556640625,
-0.0001575946807861328,
0.019775390625,
-0.041778564453125,
-0.01506805419921875,
0.0213623046875,
0.0009140968322753906,
-0.029205322265625,
0.0662841796875,
-0.0016412734985351562,
-0.004222869873046875,
-0.0032024383544921875,
0.048919677734375,
-0.0211639404296875,
-0.00386810302734375,
0.02703857421875,
-0.0214996337890625,
0.0009298324584960938,
-0.0252838134765625,
-0.01062774658203125,
-0.0093536376953125,
0.01216888427734375,
-0.0693359375,
0.0021209716796875,
-0.0313720703125,
-0.0066375732421875,
-0.00836944580078125,
0.051239013671875,
-0.001708984375,
-0.005283355712890625,
-0.0187225341796875,
0.00507354736328125,
-0.0684814453125,
-0.058197021484375,
-0.0438232421875,
0.011932373046875,
-0.0574951171875,
-0.004238128662109375,
-0.004589080810546875,
-0.026458740234375,
-0.01479339599609375,
0.0146942138671875,
-0.033599853515625,
-0.0220947265625,
0.0216217041015625,
-0.0179443359375,
0.0250701904296875,
-0.00786590576171875,
0.035858154296875,
-0.0222930908203125,
0.0269622802734375,
-0.038848876953125,
-0.10931396484375,
-0.0063018798828125,
-0.053497314453125,
0.08831787109375,
-0.0015974044799804688,
0.02642822265625,
-0.038421630859375,
0.04620361328125,
0.002620697021484375,
-0.0097198486328125,
0.00859832763671875,
-0.004749298095703125,
0.0271148681640625,
0.061126708984375,
0.01251983642578125,
0.0277099609375,
0.01422119140625,
-0.024566650390625,
-0.0838623046875,
-0.0153656005859375,
-0.032745361328125,
0.029571533203125,
0.01100921630859375,
-0.03192138671875,
0.0208587646484375,
-0.0246734619140625,
-0.006389617919921875,
0.03240966796875,
-0.031280517578125,
0.04718017578125,
-0.035797119140625,
0.005115509033203125,
0.043487548828125,
-0.0143585205078125,
-0.01023101806640625,
0.0017709732055664062,
0.10302734375,
0.0016155242919921875,
-0.0263214111328125,
-0.034149169921875,
-0.0166778564453125,
0.01534271240234375,
-0.0081329345703125,
-0.0031681060791015625,
-0.0350341796875,
-0.0178070068359375,
0.01177215576171875,
-0.0236968994140625,
-0.0035724639892578125,
0.037017822265625,
0.0285797119140625,
0.023681640625,
-0.01517486572265625,
-0.0175018310546875,
0.0170135498046875,
-0.04791259765625,
0.03375244140625,
0.005168914794921875,
-0.00757598876953125,
0.05096435546875,
0.0265350341796875,
-0.0121002197265625,
-0.025054931640625,
-0.0238494873046875,
-0.006664276123046875,
0.0219573974609375,
-0.03668212890625,
0.00012993812561035156,
-0.0189971923828125,
0.0220184326171875,
-0.07275390625,
-0.034271240234375,
0.015380859375,
0.033416748046875,
0.0496826171875,
-0.0267333984375,
0.032745361328125,
0.042572021484375,
-0.0094757080078125,
-0.006244659423828125,
-0.0032749176025390625,
0.034332275390625,
0.040802001953125,
-0.0019388198852539062,
-0.002094268798828125,
0.0245361328125,
-0.0302581787109375,
-0.0214385986328125,
0.0159454345703125,
0.01457977294921875,
-0.0084075927734375,
0.005062103271484375,
-0.01482391357421875,
-0.004730224609375,
0.01300048828125,
-0.0216522216796875,
0.01004791259765625,
0.00846099853515625,
-0.0219268798828125,
-0.0030040740966796875,
0.01052093505859375,
0.0173492431640625,
-0.01409149169921875,
-0.01328277587890625,
0.038177490234375,
-0.012420654296875,
0.077392578125,
0.031158447265625,
-0.05450439453125,
0.014923095703125,
0.036224365234375,
-0.04193115234375,
-0.012603759765625,
-0.0169830322265625,
-0.01081085205078125,
0.0100250244140625,
-0.05224609375,
-0.0087127685546875,
0.06396484375,
0.010162353515625,
-0.012420654296875,
0.043731689453125,
-0.0168609619140625,
-0.050811767578125,
-0.036224365234375,
-0.02520751953125,
0.055633544921875,
-0.016693115234375,
-0.014617919921875,
0.0034465789794921875,
-0.00797271728515625,
0.013671875,
-0.0328369140625,
-0.023406982421875,
0.0128631591796875,
0.014892578125,
-0.0167236328125,
-0.0234222412109375,
-0.0270538330078125,
-0.0216064453125,
-0.008575439453125,
0.000812530517578125,
-0.020599365234375,
0.02972412109375,
-0.0143280029296875,
0.0006961822509765625,
-0.01155853271484375,
0.0091094970703125,
-0.045196533203125,
0.035400390625,
-0.0274505615234375,
-0.039886474609375,
-0.044403076171875,
-0.0089569091796875,
-0.06121826171875,
-0.0021228790283203125,
-0.039825439453125,
-0.042633056640625,
-0.008819580078125,
0.006805419921875,
-0.00855255126953125,
0.01088714599609375,
-0.0014848709106445312,
0.0061798095703125,
-0.0167083740234375,
0.01313018798828125,
0.0017795562744140625,
-0.00423431396484375,
-0.037261962890625,
0.0367431640625,
0.034393310546875,
0.019805908203125,
-0.0165252685546875,
-0.0191497802734375,
0.00630950927734375,
0.004138946533203125,
0.0178985595703125,
-0.0124053955078125,
-0.030670166015625,
-0.01047515869140625,
-0.018890380859375,
-0.055450439453125,
-0.001605987548828125,
-0.027923583984375,
0.024261474609375,
-0.005321502685546875,
0.0095977783203125,
-0.0223541259765625,
-0.0010251998901367188,
-0.038970947265625,
0.036407470703125,
-0.0222015380859375,
-0.00046563148498535156,
0.0218048095703125,
-0.0297088623046875,
-0.0007648468017578125,
0.0232696533203125,
-0.0118560791015625,
0.020111083984375,
-0.0209503173828125,
-0.04583740234375,
0.0706787109375,
0.05059814453125,
-0.01947021484375,
0.0243072509765625,
0.0100555419921875,
-0.0005941390991210938,
0.0103759765625,
0.0760498046875,
-0.07586669921875,
-0.06494140625,
0.06378173828125,
0.04266357421875,
-0.0286712646484375,
0.0246734619140625,
-0.024383544921875,
0.041168212890625,
0.00974273681640625,
0.049530029296875,
-0.028228759765625,
0.0252838134765625,
0.018768310546875,
-0.048004150390625,
0.0172271728515625,
0.016204833984375,
0.00013756752014160156,
-0.029541015625,
0.054779052734375,
-0.01212310791015625,
0.0200653076171875,
0.041534423828125,
-0.0107269287109375,
0.00811767578125,
-0.038299560546875,
0.011383056640625,
0.01715087890625,
-0.0582275390625,
0.056732177734375,
0.040679931640625,
0.038238525390625,
0.00783538818359375,
-0.0030841827392578125,
-0.0018072128295898438,
-0.024993896484375,
-0.033782958984375,
-0.013946533203125,
-0.05169677734375,
-0.00809478759765625,
-0.039031982421875,
0.01174163818359375,
0.0606689453125,
0.0460205078125,
0.0063934326171875,
-0.0009765625,
0.0255584716796875,
0.047149658203125,
0.03759765625,
-0.002796173095703125,
0.01082611083984375,
0.05279541015625,
-0.02886962890625,
0.00583648681640625,
-0.0081787109375,
0.0025577545166015625,
0.0079345703125,
-0.0156707763671875,
0.035736083984375,
-0.00644683837890625,
-0.01513671875,
0.0360107421875,
-0.0248260498046875,
-0.018341064453125,
0.008148193359375,
0.0179901123046875,
-0.0157470703125,
0.0130615234375,
-0.005474090576171875,
0.00960540771484375,
0.02313232421875,
0.006565093994140625,
-0.038482666015625,
0.12060546875,
0.04083251953125,
0.02349853515625,
0.03729248046875,
0.034820556640625,
-0.0474853515625,
0.0167083740234375,
-0.036895751953125,
0.00626373291015625,
-0.01320648193359375,
0.016448974609375,
-0.00592041015625,
0.02899169921875,
-0.0117950439453125,
-0.037445068359375,
-0.02703857421875,
-0.00750732421875,
0.0008974075317382812,
-0.01493072509765625,
-0.01026153564453125,
0.051055908203125,
0.0206756591796875,
0.0040435791015625,
0.0274505615234375,
-0.0037384033203125,
0.019287109375,
0.0227813720703125,
0.042388916015625,
-0.036376953125,
-0.004337310791015625,
0.0457763671875,
0.004146575927734375,
-0.004276275634765625,
0.00911712646484375,
0.003910064697265625,
-0.011932373046875,
0.0003695487976074219,
0.0138702392578125,
0.0275726318359375,
0.005207061767578125,
0.057220458984375,
0.0692138671875,
-0.0396728515625,
-0.04632568359375,
-0.0258941650390625,
0.0552978515625,
0.0239410400390625,
0.0139617919921875,
0.016937255859375,
0.01120758056640625,
0.01413726806640625,
0.0103759765625,
-0.006290435791015625,
0.040008544921875,
-0.0118255615234375,
0.052337646484375,
0.047821044921875,
0.05047607421875,
0.0162353515625,
-0.0033512115478515625,
0.0246429443359375,
0.056976318359375,
-0.0290374755859375,
-0.03363037109375,
-0.00833892822265625,
0.011566162109375,
0.02642822265625,
0.005542755126953125,
0.04718017578125,
0.005702972412109375,
0.018280029296875,
-0.0264892578125,
-0.0006279945373535156,
0.012298583984375,
0.00909423828125,
-0.0206298828125,
-0.0302886962890625,
0.00037550926208496094,
0.010345458984375,
-0.01218414306640625,
-0.0247344970703125,
0.017486572265625,
0.05963134765625,
0.00884246826171875,
0.019622802734375,
-0.0236358642578125,
-0.021942138671875,
-0.012664794921875,
0.0237884521484375,
0.00864410400390625,
-0.0024852752685546875,
0.01093292236328125,
0.00031685829162597656,
0.04290771484375,
0.0125579833984375,
0.001373291015625,
0.05609130859375,
0.03973388671875,
0.01305389404296875,
-0.0000022649765014648438,
-0.001026153564453125,
0.00821685791015625,
-0.023834228515625,
0.032928466796875,
-0.0262298583984375,
-0.02191162109375,
-0.05474853515625,
-0.045928955078125,
-0.03326416015625,
0.00505828857421875,
-0.015594482421875,
0.0031642913818359375,
-0.0084075927734375,
0.0182647705078125,
-0.014739990234375,
0.05029296875,
0.0029811859130859375,
0.0225830078125,
0.02044677734375,
-0.09625244140625,
-0.0340576171875,
0.01470184326171875,
-0.0009074211120605469,
0.017974853515625,
0.047637939453125,
-0.0037899017333984375,
-0.00531768798828125,
0.0016260147094726562,
0.0146331787109375,
0.004276275634765625,
-0.00235748291015625,
-0.0157470703125,
-0.0228118896484375,
0.037750244140625,
-0.00876617431640625,
-0.0556640625,
-0.037445068359375,
-0.005462646484375,
0.035400390625,
0.00754547119140625,
0.07208251953125,
-0.006717681884765625,
0.01068115234375,
0.01104736328125,
-0.03143310546875,
0.039794921875,
-0.0138397216796875,
-0.002254486083984375,
-0.01131439208984375,
0.00942230224609375,
-0.0159912109375,
-0.0037937164306640625,
0.0012655258178710938,
0.0372314453125,
-0.04888916015625,
-0.009002685546875,
-0.00022709369659423828,
0.01959228515625,
-0.0141143798828125,
-0.0088348388671875,
-0.036651611328125,
0.00922393798828125,
0.042205810546875,
0.01171112060546875,
0.013763427734375,
-0.0266265869140625,
-0.01678466796875,
-0.0166168212890625,
0.008331298828125,
-0.03448486328125,
0.0256195068359375,
0.00328826904296875,
0.00115966796875,
0.002471923828125,
-0.00469970703125,
-0.0972900390625,
0.0011072158813476562,
-0.0152130126953125,
-0.036346435546875,
-0.005931854248046875,
0.0821533203125,
-0.02166748046875,
-0.042144775390625,
0.039764404296875,
0.009765625,
0.0064849853515625,
-0.07379150390625,
-0.01226806640625,
0.058502197265625,
0.00470733642578125,
0.01465606689453125,
-0.04833984375,
-0.018218994140625,
-0.053466796875,
-0.0220947265625,
0.0150299072265625,
-0.049468994140625,
-0.028839111328125,
-0.038482666015625,
0.0189971923828125,
0.044189453125,
0.04638671875,
-0.07586669921875,
0.0704345703125,
-0.0164794921875,
-0.02105712890625,
0.03790283203125,
-0.0303497314453125,
0.016632080078125,
0.04034423828125,
-0.0228118896484375,
-0.0426025390625,
-0.0294036865234375,
0.0269622802734375,
-0.0270843505859375,
0.059417724609375,
0.08026123046875,
-0.061553955078125,
0.00029277801513671875,
0.0447998046875,
0.04815673828125,
0.08172607421875,
-0.004413604736328125,
0.01319122314453125,
0.043426513671875,
0.004364013671875,
-0.0545654296875,
-0.10418701171875,
0.007297515869140625,
-0.059661865234375,
0.0113677978515625,
0.037261962890625,
-0.035614013671875,
-0.020294189453125,
-0.035064697265625,
-0.0322265625,
0.021270751953125,
0.03387451171875,
-0.026824951171875,
-0.0297088623046875,
-0.017852783203125,
-0.03253173828125,
0.06378173828125,
0.0172576904296875,
-0.036468505859375,
-0.003665924072265625,
0.07513427734375,
0.0262603759765625,
-0.0309295654296875,
0.0582275390625,
-0.009674072265625,
-0.0650634765625,
-0.00429534912109375,
-0.00495147705078125,
0.023895263671875,
-0.007007598876953125,
0.005931854248046875,
0.004322052001953125,
0.06658935546875,
-0.0069427490234375,
-0.02447509765625,
0.0027904510498046875,
-0.0272369384765625,
-0.018035888671875,
-0.0126953125,
-0.0011339187622070312,
0.00104522705078125,
0.04705810546875,
0.0263824462890625,
-0.0004134178161621094,
-0.02978515625,
-0.01361083984375,
-0.0085296630859375,
-0.0201873779296875,
-0.00026345252990722656,
0.0343017578125,
-0.079345703125,
-0.0160369873046875,
0.038055419921875,
0.007694244384765625,
0.0150299072265625,
0.002017974853515625,
-0.004688262939453125,
-0.0011014938354492188,
0.03668212890625,
0.006336212158203125,
-0.0484619140625,
0.0003101825714111328,
0.01007843017578125,
-0.0178070068359375,
0.0194244384765625,
-0.013427734375,
0.0194854736328125,
0.00038909912109375,
-0.00522613525390625,
0.0007386207580566406,
-0.0214080810546875,
-0.04522705078125,
0.01300811767578125,
-0.033203125,
0.01213836669921875,
-0.0267791748046875,
-0.02642822265625,
-0.005100250244140625,
0.025634765625,
-0.00579833984375,
0.0233612060546875,
0.004970550537109375,
0.07293701171875,
0.0207061767578125,
0.0144805908203125,
-0.007049560546875,
0.023712158203125,
-0.01201629638671875,
0.027679443359375,
0.00757598876953125,
-0.01485443115234375,
0.038909912109375,
-0.0253448486328125,
0.0036563873291015625,
0.0257720947265625,
-0.00708770751953125,
-0.01461029052734375,
-0.0026073455810546875,
0.0107879638671875,
0.0012350082397460938,
0.00537872314453125
] |
6ac7de4ecb6812148129761bf88553bf7769965c
|
Wordpress Stackexchange
Q: Row actions for custom post types? I'm working on a plugin, which converts a site into a feedback sort of portal. I made a new object page, 'Feedbacks', which displays all the feedbacks is a tabular format, and I'm using register_column_headers($array_of_column_headers) to make my table. I wanted to know if it is possible to add my own page row actions to this table, i mean under every feedback in the list, actions like 'approve', 'delete', 'blacklist' etc.
I read the code and a couple of tickets, and found out its done this way: for posts, its post_row_actions, for comments its comment_row_actions, for media its media_row_actions and so on. Is there a filter that allows me to do, my-page-slug_row_actions?
A: When using custom post type you use the post_row_actions filter hook and check the post type to modify it only:
add_filter('post_row_actions','my_action_row', 10, 2);
function my_action_row($actions, $post){
//check for your post type
if ($post->post_type =="feedbacks"){
/*do you stuff here
you can unset to remove actions
and to add actions ex:
$actions['in_google'] = '<a href="http://www.google.com/?q='.get_permalink($post->ID).'">check if indexed</a>';
*/
}
return $actions;
}
Quick update:
thanks to somatic
if you custom post type is "hierarchical" then you action hook is:
page_row_actions.
|
Q: Row actions for custom post types? I'm working on a plugin, which converts a site into a feedback sort of portal. I made a new object page, 'Feedbacks', which displays all the feedbacks is a tabular format, and I'm using register_column_headers($array_of_column_headers) to make my table. I wanted to know if it is possible to add my own page row actions to this table, i mean under every feedback in the list, actions like 'approve', 'delete', 'blacklist' etc.
I read the code and a couple of tickets, and found out its done this way: for posts, its post_row_actions, for comments its comment_row_actions, for media its media_row_actions and so on. Is there a filter that allows me to do, my-page-slug_row_actions?
A: When using custom post type you use the post_row_actions filter hook and check the post type to modify it only:
add_filter('post_row_actions','my_action_row', 10, 2);
function my_action_row($actions, $post){
//check for your post type
if ($post->post_type =="feedbacks"){
/*do you stuff here
you can unset to remove actions
and to add actions ex:
$actions['in_google'] = '<a href="http://www.google.com/?q='.get_permalink($post->ID).'">check if indexed</a>';
*/
}
return $actions;
}
Quick update:
thanks to somatic
if you custom post type is "hierarchical" then you action hook is:
page_row_actions.
|
wordpress
|
{
"language": "en",
"length": 198,
"provenance": "stackexchange_00019.jsonl.gz:408685",
"question_score": "20",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14973"
}
|
[
0.034271240234375,
0.0110015869140625,
-0.0269012451171875,
-0.0027294158935546875,
0.0225677490234375,
-0.03717041015625,
0.05694580078125,
-0.01317596435546875,
-0.0195770263671875,
0.0396728515625,
-0.005275726318359375,
0.0221710205078125,
-0.0155029296875,
-0.0247344970703125,
0.0029544830322265625,
-0.014007568359375,
0.05694580078125,
-0.037933349609375,
0.044342041015625,
-0.016357421875,
0.00974273681640625,
-0.0012502670288085938,
0.059417724609375,
0.050506591796875,
0.03173828125,
0.0173797607421875,
0.051422119140625,
-0.028167724609375,
0.0389404296875,
0.0002321004867553711,
0.01934814453125,
-0.052642822265625,
-0.0008835792541503906,
0.01136016845703125,
0.0294952392578125,
-0.01119232177734375,
-0.0050506591796875,
0.0198974609375,
0.01324462890625,
0.02178955078125,
0.041748046875,
-0.0167999267578125,
-0.009307861328125,
-0.0117645263671875,
-0.0189971923828125,
-0.024566650390625,
0.048248291015625,
-0.0124969482421875,
0.0172576904296875,
-0.02996826171875,
-0.0125732421875,
0.0130767822265625,
0.007129669189453125,
0.001094818115234375,
-0.01210784912109375,
-0.0004544258117675781,
-0.03826904296875,
0.00006574392318725586,
0.03570556640625,
0.0007829666137695312,
-0.0170745849609375,
-0.020538330078125,
0.006221771240234375,
-0.012725830078125,
-0.0159912109375,
0.0086822509765625,
0.00970458984375,
0.008941650390625,
0.006526947021484375,
-0.0225830078125,
-0.005702972412109375,
0.01407623291015625,
-0.0016012191772460938,
-0.03570556640625,
0.0027751922607421875,
-0.0068359375,
0.003864288330078125,
-0.042572021484375,
-0.0172271728515625,
0.03369140625,
-0.0021572113037109375,
-0.01079559326171875,
0.009735107421875,
-0.0291595458984375,
0.0120697021484375,
0.01152801513671875,
-0.0199432373046875,
-0.00913238525390625,
-0.034332275390625,
-0.035430908203125,
-0.0222930908203125,
-0.048431396484375,
-0.02154541015625,
-0.01233673095703125,
0.00017726421356201172,
-0.03289794921875,
0.037261962890625,
0.061431884765625,
0.0020885467529296875,
0.0270538330078125,
0.00634765625,
-0.0640869140625,
0.06085205078125,
-0.05340576171875,
0.017120361328125,
0.004283905029296875,
0.013519287109375,
-0.00939178466796875,
0.053375244140625,
0.015960693359375,
-0.00275421142578125,
0.0631103515625,
-0.01161956787109375,
0.0273895263671875,
-0.05126953125,
-0.05133056640625,
-0.080078125,
0.004665374755859375,
-0.03759765625,
0.01509857177734375,
0.004276275634765625,
0.022308349609375,
0.0225372314453125,
-0.029388427734375,
0.00780487060546875,
-0.006069183349609375,
-0.0141754150390625,
-0.04302978515625,
0.0016565322875976562,
0.0521240234375,
-0.051055908203125,
0.0171051025390625,
0.07086181640625,
-0.00972747802734375,
-0.0116729736328125,
-0.039825439453125,
0.032073974609375,
0.01004791259765625,
-0.0226287841796875,
0.01532745361328125,
0.018310546875,
-0.0277252197265625,
-0.02520751953125,
0.01024627685546875,
0.040802001953125,
0.0174102783203125,
0.0291290283203125,
-0.000014066696166992188,
-0.0020389556884765625,
-0.02386474609375,
0.0010900497436523438,
0.0028476715087890625,
0.0164947509765625,
0.0184783935546875,
-0.02130126953125,
-0.00940704345703125,
0.004604339599609375,
-0.015899658203125,
-0.0026092529296875,
-0.035491943359375,
0.033843994140625,
-0.01995849609375,
-0.00714111328125,
-0.033447265625,
-0.059417724609375,
0.0221099853515625,
-0.056488037109375,
-0.00962066650390625,
0.027984619140625,
0.01910400390625,
-0.00965118408203125,
0.0101318359375,
0.06524658203125,
0.0233001708984375,
-0.007511138916015625,
0.00872039794921875,
-0.04461669921875,
-0.007617950439453125,
0.0232391357421875,
0.010650634765625,
-0.001712799072265625,
-0.03424072265625,
-0.01145172119140625,
0.033172607421875,
-0.0261077880859375,
0.04913330078125,
0.034912109375,
0.0628662109375,
-0.051605224609375,
0.0273284912109375,
0.040557861328125,
0.047515869140625,
-0.049072265625,
-0.006557464599609375,
0.0105133056640625,
-0.00861358642578125,
0.0040130615234375,
-0.022979736328125,
0.00518798828125,
0.0174407958984375,
0.039276123046875,
0.0196533203125,
-0.00901031494140625,
-0.018829345703125,
-0.0953369140625,
0.033843994140625,
-0.0321044921875,
0.049346923828125,
-0.048980712890625,
-0.005275726318359375,
0.038177490234375,
-0.00478363037109375,
-0.04638671875,
0.010345458984375,
0.00640106201171875,
0.0119171142578125,
-0.0200958251953125,
0.01062774658203125,
-0.017852783203125,
0.01336669921875,
-0.018035888671875,
-0.028656005859375,
-0.006320953369140625,
0.02001953125,
0.0258636474609375,
-0.024444580078125,
-0.01267242431640625,
-0.02239990234375,
0.001068115234375,
-0.0025043487548828125,
-0.017364501953125,
0.0460205078125,
0.07183837890625,
0.050567626953125,
0.0147247314453125,
-0.001239776611328125,
0.0132904052734375,
-0.1212158203125,
-0.0103912353515625,
0.054443359375,
0.01502227783203125,
0.00347900390625,
0.0214080810546875,
0.09295654296875,
0.043060302734375,
0.0052642822265625,
0.0289306640625,
0.04095458984375,
-0.014434814453125,
0.0260772705078125,
-0.0433349609375,
0.030242919921875,
0.0274810791015625,
0.007843017578125,
0.007663726806640625,
0.038238525390625,
-0.016815185546875,
-0.06365966796875,
-0.0019683837890625,
0.026214599609375,
0.029632568359375,
-0.0034923553466796875,
-0.054931640625,
0.01776123046875,
0.028167724609375,
-0.007137298583984375,
0.04559326171875,
0.031341552734375,
-0.029937744140625,
-0.007564544677734375,
0.0174560546875,
0.037384033203125,
0.0037593841552734375,
0.04547119140625,
0.0146026611328125,
-0.0067901611328125,
0.006412506103515625,
-0.0172576904296875,
-0.0192413330078125,
0.00870513916015625,
-0.0251007080078125,
0.0005812644958496094,
-0.0295867919921875,
-0.01056671142578125,
0.002460479736328125,
-0.03277587890625,
0.0024547576904296875,
-0.004787445068359375,
-0.01036834716796875,
-0.016448974609375,
0.0157928466796875,
0.01043701171875,
-0.0229644775390625,
0.0263214111328125,
0.01837158203125,
-0.03448486328125,
0.047821044921875,
-0.047607421875,
0.049285888671875,
-0.036773681640625,
0.036224365234375,
0.06915283203125,
-0.032928466796875,
0.02178955078125,
-0.01036834716796875,
-0.035980224609375,
-0.0287628173828125,
0.04632568359375,
-0.0005626678466796875,
-0.07421875,
0.00860595703125,
0.0258331298828125,
0.0185089111328125,
0.047607421875,
-0.00738525390625,
-0.04205322265625,
-0.01137542724609375,
0.039886474609375,
-0.036956787109375,
-0.04559326171875,
0.10406494140625,
-0.078369140625,
0.0039825439453125,
-0.041748046875,
-0.0562744140625,
-0.0390625,
-0.0167083740234375,
-0.024810791015625,
-0.0207977294921875,
0.0104217529296875,
-0.01076507568359375,
0.00047898292541503906,
-0.02813720703125,
0.0287933349609375,
0.008270263671875,
0.0221099853515625,
0.01418304443359375,
0.031707763671875,
0.018341064453125,
-0.0316162109375,
0.03179931640625,
-0.0265655517578125,
-0.01470947265625,
0.0171356201171875,
0.0185546875,
-0.031463623046875,
0.0168609619140625,
0.017822265625,
-0.0002484321594238281,
0.0235443115234375,
-0.0236053466796875,
-0.0190887451171875,
-0.03192138671875,
0.004718780517578125,
0.002384185791015625,
0.026336669921875,
0.0252838134765625,
0.0214996337890625,
0.0215301513671875,
-0.035186767578125,
-0.0224456787109375,
0.017669677734375,
-0.0085601806640625,
-0.0198211669921875,
-0.012542724609375,
-0.018157958984375,
-0.027130126953125,
0.03839111328125,
0.0648193359375,
0.03759765625,
0.054229736328125,
0.0286407470703125,
-0.034637451171875,
-0.003185272216796875,
0.031463623046875,
-0.059417724609375,
-0.02044677734375,
-0.0311737060546875,
0.037261962890625,
-0.004550933837890625,
0.0149993896484375,
0.01189422607421875,
0.0184326171875,
-0.00722503662109375,
-0.034332275390625,
0.02728271484375,
-0.0355224609375,
0.0029201507568359375,
-0.0234832763671875,
-0.0066986083984375,
0.00640106201171875,
0.066650390625,
-0.033843994140625,
-0.016204833984375,
-0.01450347900390625,
0.0008301734924316406,
0.000499725341796875,
-0.0139312744140625,
-0.0182342529296875,
-0.0159454345703125,
-0.06842041015625,
0.01244354248046875,
-0.0021572113037109375,
-0.01812744140625,
-0.0217437744140625,
0.0171051025390625,
-0.0469970703125,
-0.038421630859375,
0.035675048828125,
0.0191497802734375,
0.0035419464111328125,
0.038299560546875,
-0.01312255859375,
0.02105712890625,
-0.043426513671875,
0.008514404296875,
-0.062255859375,
-0.002498626708984375,
-0.020050048828125,
0.01953125,
0.01220703125,
-0.0072174072265625,
-0.0076141357421875,
0.025482177734375,
-0.004764556884765625,
0.04473876953125,
0.0023040771484375,
0.032073974609375,
-0.0068359375,
-0.06396484375,
-0.003204345703125,
-0.0628662109375,
-0.023101806640625,
0.0150909423828125,
0.018310546875,
0.023223876953125,
-0.024993896484375,
-0.033782958984375,
-0.00849151611328125,
-0.02606201171875,
-0.043701171875,
-0.0230255126953125,
-0.0216217041015625,
0.0232391357421875,
-0.0003604888916015625,
-0.01142120361328125,
-0.037078857421875,
-0.05340576171875,
-0.01520538330078125,
-0.031280517578125,
0.0125885009765625,
0.02374267578125,
0.0635986328125,
0.0233154296875,
0.0133209228515625,
0.01308441162109375,
-0.00344085693359375,
0.0272369384765625,
-0.012908935546875,
0.0206146240234375,
0.01461029052734375,
-0.01435089111328125,
0.0072021484375,
-0.008026123046875,
-0.005584716796875,
-0.049957275390625,
0.07952880859375,
-0.0094146728515625,
0.03558349609375,
-0.0132904052734375,
-0.034698486328125,
0.0675048828125,
-0.0170745849609375,
-0.0171966552734375,
-0.0272064208984375,
-0.032073974609375,
0.07366943359375,
-0.011199951171875,
0.06805419921875,
-0.0328369140625,
-0.0310211181640625,
0.026702880859375,
-0.061981201171875,
0.02777099609375,
0.0156097412109375,
-0.01367950439453125,
-0.0038661956787109375,
-0.06658935546875,
0.0235595703125,
-0.0141143798828125,
-0.002628326416015625,
-0.039337158203125,
0.026214599609375,
0.0099334716796875,
0.000007212162017822266,
0.006816864013671875,
0.0034160614013671875,
-0.01491546630859375,
-0.024383544921875,
-0.03240966796875,
-0.057098388671875,
0.0020885467529296875,
0.0195770263671875,
0.0130767822265625,
0.027862548828125,
0.0225067138671875,
0.059600830078125,
0.001834869384765625,
0.004779815673828125,
0.036865234375,
0.051544189453125,
-0.0224761962890625,
-0.034088134765625,
-0.01019287109375,
-0.00586700439453125,
-0.00445556640625,
0.01511383056640625,
0.0121307373046875,
-0.0004105567932128906,
-0.0186920166015625,
0.041015625,
0.056304931640625,
0.006805419921875,
0.016998291015625,
-0.0016231536865234375,
-0.022552490234375,
0.0205841064453125,
-0.00667572021484375,
-0.0207061767578125,
-0.0021076202392578125,
0.007427215576171875,
0.03778076171875,
0.024871826171875,
0.002223968505859375,
0.0068206787109375,
-0.0163116455078125,
-0.025787353515625,
0.08404541015625,
0.04791259765625,
-0.0693359375,
-0.040130615234375,
0.0025787353515625,
0.03802490234375,
-0.027130126953125,
-0.00475311279296875,
0.0026416778564453125,
-0.022247314453125,
0.025726318359375,
-0.0290069580078125,
0.0002982616424560547,
0.01041412353515625,
0.00540924072265625,
-0.047607421875,
0.00757598876953125,
0.02337646484375,
-0.0689697265625,
-0.06878662109375,
0.031951904296875,
0.0005435943603515625,
0.007740020751953125,
-0.01026153564453125,
0.03338623046875,
-0.022003173828125,
-0.0181427001953125,
-0.0634765625,
-0.0082855224609375,
0.078125,
0.043975830078125,
-0.0251312255859375,
-0.01280975341796875,
-0.0261383056640625,
-0.004756927490234375,
-0.059478759765625,
-0.044036865234375,
-0.01690673828125,
0.0278167724609375,
-0.0175323486328125,
0.0024471282958984375,
-0.005950927734375,
-0.0023059844970703125,
-0.0233154296875,
0.01383209228515625,
0.00356292724609375,
-0.0081939697265625,
-0.037353515625,
0.06982421875,
0.0124664306640625,
0.0309600830078125,
0.0232696533203125,
0.07501220703125,
0.0164794921875,
-0.0133056640625,
-0.0073394775390625,
-0.04046630859375,
-0.004852294921875,
0.0203094482421875,
-0.03338623046875,
0.0274810791015625,
0.037872314453125,
0.0017108917236328125,
-0.00733184814453125,
-0.0006880760192871094,
0.00933837890625,
-0.0215301513671875,
0.00797271728515625,
-0.01241302490234375,
-0.036468505859375,
0.0266265869140625,
-0.002063751220703125,
0.0142822265625,
-0.0271759033203125,
0.029693603515625,
-0.005741119384765625,
-0.0241241455078125,
-0.004497528076171875,
-0.0105133056640625,
-0.01021575927734375,
0.01763916015625,
0.04681396484375,
0.00963592529296875,
0.051971435546875,
0.01085662841796875,
0.02532958984375,
0.03704833984375,
0.02093505859375,
0.0256805419921875,
-0.0258026123046875,
0.07568359375,
0.01067352294921875,
-0.03662109375,
0.051605224609375,
-0.045257568359375,
0.0127716064453125,
0.046234130859375,
0.049163818359375,
-0.1025390625,
0.01116943359375,
-0.000995635986328125,
0.02178955078125,
0.08673095703125,
-0.016387939453125,
0.01020050048828125,
0.0208587646484375,
-0.0165863037109375,
0.0162811279296875,
-0.05224609375,
-0.0242919921875,
0.007755279541015625,
0.00394439697265625,
-0.01947021484375,
0.0210113525390625,
-0.024383544921875,
0.0163726806640625,
-0.05810546875,
-0.01374053955078125,
-0.0168914794921875,
-0.0247039794921875,
0.01189422607421875,
-0.0209808349609375,
0.0029144287109375,
-0.032928466796875,
0.016937255859375,
-0.03924560546875,
0.01345062255859375,
0.0274505615234375,
-0.03472900390625,
0.01068115234375,
0.0256805419921875,
-0.0266265869140625,
-0.0125885009765625,
0.005176544189453125,
-0.07489013671875,
-0.04058837890625,
0.0015735626220703125,
0.0245361328125,
0.0179443359375,
-0.048583984375,
0.0217132568359375,
-0.048614501953125,
-0.00197601318359375,
0.0157928466796875,
0.012664794921875,
0.0230865478515625,
-0.051788330078125,
-0.01320648193359375,
0.0196990966796875,
-0.04620361328125,
0.00888824462890625,
0.0078582763671875,
-0.01226806640625,
-0.05108642578125,
-0.0322265625,
-0.0135345458984375,
-0.060882568359375,
0.0031185150146484375,
-0.01505279541015625,
-0.0518798828125,
0.0946044921875,
0.0152587890625,
-0.006046295166015625,
-0.01103973388671875,
0.052947998046875,
-0.026885986328125,
0.04095458984375,
-0.0166015625,
0.0018434524536132812,
-0.012664794921875,
0.03466796875,
0.0006399154663085938,
-0.006114959716796875,
0.01419830322265625,
0.0219879150390625,
0.0252227783203125,
0.01345062255859375,
-0.0288238525390625,
-0.002597808837890625,
0.0156402587890625,
0.00177001953125,
-0.00923919677734375,
0.0295257568359375,
-0.01367950439453125,
0.0264434814453125,
0.034912109375,
-0.016845703125,
0.046295166015625,
-0.0112457275390625,
-0.040863037109375,
0.004001617431640625,
0.0103302001953125,
-0.00811767578125,
-0.0196380615234375,
0.00951385498046875,
-0.0301513671875,
-0.002315521240234375,
0.0201873779296875,
-0.01355743408203125,
-0.01003265380859375,
0.02105712890625,
0.048431396484375,
-0.044830322265625,
-0.050445556640625,
-0.0189361572265625,
0.035125732421875,
0.021759033203125,
0.0210723876953125,
0.0304412841796875,
0.018402099609375,
0.00724029541015625,
-0.00658416748046875,
0.006870269775390625,
0.017913818359375,
-0.01557159423828125,
0.06304931640625,
0.0312347412109375,
0.007732391357421875,
-0.0120849609375,
0.0806884765625,
0.02117919921875,
0.065673828125,
-0.0821533203125,
-0.058135986328125,
0.0003535747528076172,
0.01009368896484375,
0.041778564453125,
0.0027561187744140625,
0.042022705078125,
-0.02630615234375,
0.031982421875,
-0.0310821533203125,
-0.007411956787109375,
0.00390625,
0.0225677490234375,
-0.01049041748046875,
-0.0060577392578125,
-0.0241241455078125,
0.0009341239929199219,
-0.0419921875,
0.004825592041015625,
0.01276397705078125,
0.055633544921875,
0.024871826171875,
0.042083740234375,
0.0025920867919921875,
-0.018157958984375,
-0.01421356201171875,
0.01230621337890625,
-0.036346435546875,
0.036102294921875,
-0.05572509765625,
-0.028778076171875,
-0.0151519775390625,
0.06719970703125,
0.0174102783203125,
0.009735107421875,
0.0007319450378417969,
-0.01371002197265625,
0.0111541748046875,
0.02069091796875,
0.045013427734375,
-0.0113677978515625,
-0.03216552734375,
-0.068115234375,
-0.00039124488830566406,
0.004779815673828125,
0.0034351348876953125,
0.05865478515625,
-0.039520263671875,
0.028289794921875,
-0.01294708251953125,
0.01032257080078125,
-0.0079803466796875,
-0.0275421142578125,
0.0784912109375,
0.01119232177734375,
0.054229736328125,
0.004810333251953125,
-0.02923583984375,
0.004375457763671875,
-0.0062713623046875,
-0.08203125,
0.00506591796875,
0.037200927734375,
-0.012908935546875,
0.0016231536865234375,
0.049102783203125,
-0.016845703125,
0.0009584426879882812,
-0.00652313232421875,
0.04168701171875,
0.06298828125,
0.0203399658203125,
0.051422119140625,
0.017303466796875,
-0.0007839202880859375,
0.0121002197265625,
0.0246429443359375,
0.0198974609375,
0.0869140625,
-0.049896240234375,
0.015625,
0.01386260986328125,
0.00902557373046875,
0.0195159912109375,
0.0004215240478515625,
0.063232421875,
0.0088958740234375,
-0.00321197509765625,
-0.03948974609375,
0.0036773681640625,
0.00390625,
0.04461669921875,
-0.033843994140625,
-0.03765869140625,
0.01068115234375,
0.02734375,
-0.0124969482421875,
0.0099639892578125,
-0.027801513671875,
-0.0186614990234375,
-0.007793426513671875,
-0.0112152099609375,
0.027496337890625,
0.0244903564453125,
0.00637054443359375,
0.07427978515625,
-0.04217529296875,
0.0343017578125,
0.00601959228515625,
-0.034423828125,
0.0016412734985351562,
0.0203094482421875,
-0.0672607421875,
0.05047607421875,
0.061676025390625,
-0.0032100677490234375,
0.0443115234375,
0.036346435546875,
-0.01270294189453125,
0.034088134765625,
-0.05255126953125,
0.006732940673828125,
-0.00963592529296875,
0.0251007080078125,
-0.0215911865234375,
-0.007061004638671875,
-0.0023822784423828125,
0.0016202926635742188,
0.01457977294921875,
0.054046630859375,
-0.00574493408203125,
0.0033779144287109375,
-0.03521728515625,
-0.01544952392578125,
-0.018218994140625,
-0.046173095703125,
-0.055938720703125,
0.00867462158203125,
0.0179595947265625,
0.01403045654296875,
-0.06341552734375,
0.05828857421875,
-0.019744873046875,
0.014312744140625,
-0.00730133056640625,
0.0227203369140625,
-0.00829315185546875,
0.0137481689453125,
-0.0206298828125,
-0.0252838134765625,
-0.0088653564453125,
0.04156494140625,
-0.0015707015991210938,
0.0121917724609375,
0.020050048828125,
-0.047637939453125,
-0.0156097412109375,
-0.01430511474609375,
0.0357666015625,
0.027557373046875,
0.052978515625,
-0.025177001953125,
0.004199981689453125,
0.0263519287109375,
-0.0100250244140625,
-0.0316162109375,
0.0012760162353515625,
-0.03289794921875,
-0.0006546974182128906,
0.00266265869140625,
-0.0026378631591796875,
0.0189971923828125,
-0.0166778564453125,
-0.057647705078125,
0.06683349609375,
-0.011199951171875,
-0.01343536376953125,
-0.05877685546875,
0.0130157470703125,
0.0179595947265625,
0.0263214111328125,
-0.0013885498046875,
-0.01274871826171875,
-0.056427001953125,
-0.020111083984375,
-0.01506805419921875,
0.053619384765625,
-0.026397705078125,
0.023284912109375,
-0.0027618408203125,
0.044586181640625,
0.037322998046875,
-0.0281219482421875,
0.0017843246459960938,
-0.029144287109375,
0.0280914306640625,
0.018310546875,
-0.041717529296875,
-0.034759521484375,
-0.0012035369873046875,
0.009429931640625,
-0.0035839080810546875,
-0.03411865234375,
-0.040252685546875,
-0.01212310791015625,
0.047393798828125,
0.050384521484375,
0.01074981689453125,
-0.027099609375,
-0.01348114013671875,
-0.04534912109375,
-0.0526123046875,
0.0012102127075195312,
0.0229034423828125,
-0.034149169921875,
0.0225372314453125,
-0.0003743171691894531,
0.0157012939453125,
-0.0562744140625,
0.00018203258514404297,
-0.00849151611328125,
-0.03271484375,
0.01113128662109375,
0.00487518310546875,
0.0160064697265625,
0.031280517578125,
0.0141143798828125,
-0.0194549560546875,
0.00003224611282348633,
-0.00916290283203125,
-0.01727294921875,
0.005741119384765625,
-0.008148193359375,
-0.037567138671875,
0.0231781005859375,
-0.02679443359375,
0.005031585693359375,
-0.005084991455078125,
0.0401611328125,
-0.017974853515625,
0.01108551025390625,
0.0056915283203125,
0.0211944580078125,
-0.02001953125,
0.0252227783203125,
-0.0160675048828125,
0.01557159423828125,
-0.0184783935546875,
0.06427001953125,
0.013671875,
0.076171875,
0.006565093994140625,
0.0401611328125,
0.05169677734375,
-0.04522705078125,
0.061248779296875,
-0.037567138671875,
0.0029144287109375,
-0.00872802734375,
-0.035491943359375,
-0.0755615234375,
0.052276611328125,
0.03533935546875,
-0.0189666748046875,
0.03961181640625
] |
37022b4de4ed20dfa65d0272f5ee815da7367aba
|
Wordpress Stackexchange
Q: Whats the difference between current_page_item and current-menu-item Whats the difference between current_page_item and current-menu-item when using Custom Menus
.current_page_item{} // Class for Current Page
.current-cat{} // Class for Current Category
.current-menu-item{} // Class for any other current Menu Item
.menu-item-type-taxonomy{} // Class for a Category
.menu-item-type-post_type{} // Class for Pages
.menu-item-type-custom{} // Class for any custom item that you added
.menu-item-home{} // Class for the Home Link
A: current_menu_item is the active element in the menu, independent from the type (page, archives, post, etc.) of the current menu element, while current_page_item only available, if the current item is a page and is current.
For more details: http://codex.wordpress.org/Dynamic_Menu_Highlighting
|
Q: Whats the difference between current_page_item and current-menu-item Whats the difference between current_page_item and current-menu-item when using Custom Menus
.current_page_item{} // Class for Current Page
.current-cat{} // Class for Current Category
.current-menu-item{} // Class for any other current Menu Item
.menu-item-type-taxonomy{} // Class for a Category
.menu-item-type-post_type{} // Class for Pages
.menu-item-type-custom{} // Class for any custom item that you added
.menu-item-home{} // Class for the Home Link
A: current_menu_item is the active element in the menu, independent from the type (page, archives, post, etc.) of the current menu element, while current_page_item only available, if the current item is a page and is current.
For more details: http://codex.wordpress.org/Dynamic_Menu_Highlighting
|
wordpress
|
{
"language": "en",
"length": 108,
"provenance": "stackexchange_00019.jsonl.gz:408689",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14978"
}
|
[
0.07171630859375,
-0.0142822265625,
0.030029296875,
-0.01448822021484375,
0.005390167236328125,
-0.03302001953125,
0.0672607421875,
-0.0369873046875,
-0.0099639892578125,
-0.0021457672119140625,
0.0007023811340332031,
-0.0015201568603515625,
-0.03704833984375,
-0.041412353515625,
0.02203369140625,
-0.0309295654296875,
0.057373046875,
-0.033355712890625,
0.041046142578125,
-0.004734039306640625,
0.005062103271484375,
0.03533935546875,
0.03790283203125,
0.047119140625,
0.03948974609375,
-0.10455322265625,
-0.0023403167724609375,
0.01158905029296875,
0.01450347900390625,
-0.0025043487548828125,
0.022735595703125,
0.01403045654296875,
0.0256805419921875,
0.035491943359375,
-0.037261962890625,
0.0195159912109375,
-0.00383758544921875,
0.021575927734375,
-0.0018663406372070312,
0.0308837890625,
0.03131103515625,
-0.0200653076171875,
-0.027923583984375,
-0.006580352783203125,
-0.0306854248046875,
-0.0176849365234375,
0.01806640625,
-0.0141754150390625,
0.00115966796875,
-0.04150390625,
0.041107177734375,
0.0038051605224609375,
0.043426513671875,
0.00975799560546875,
-0.01142120361328125,
0.01519012451171875,
-0.01326751708984375,
-0.03204345703125,
0.00951385498046875,
0.004734039306640625,
0.0207366943359375,
0.00887298583984375,
0.0200042724609375,
0.0225830078125,
-0.0081329345703125,
0.0103302001953125,
0.06304931640625,
0.00847625732421875,
-0.07568359375,
-0.0296630859375,
0.04156494140625,
-0.026519775390625,
0.0013856887817382812,
0.0200042724609375,
-0.042449951171875,
-0.0357666015625,
0.036529541015625,
-0.01096343994140625,
0.00232696533203125,
0.0178680419921875,
-0.010711669921875,
0.0290679931640625,
-0.039306640625,
-0.01284027099609375,
-0.00920867919921875,
0.0029277801513671875,
-0.0207672119140625,
-0.0096435546875,
0.01476287841796875,
-0.0160064697265625,
-0.006458282470703125,
-0.007080078125,
0.0165557861328125,
0.00696563720703125,
-0.0279541015625,
-0.0258636474609375,
0.04010009765625,
0.08245849609375,
-0.043914794921875,
-0.0011386871337890625,
-0.04180908203125,
-0.0178375244140625,
0.025543212890625,
-0.054412841796875,
0.0035228729248046875,
0.01715087890625,
0.005336761474609375,
0.00856781005859375,
0.048095703125,
0.0121612548828125,
-0.0071258544921875,
0.053863525390625,
0.0242919921875,
-0.034881591796875,
0.0010843276977539062,
-0.0227508544921875,
-0.01702880859375,
0.04144287109375,
0.0306549072265625,
-0.0168609619140625,
0.008544921875,
0.0196990966796875,
0.069091796875,
0.0166778564453125,
0.01041412353515625,
0.054840087890625,
-0.01251220703125,
-0.09234619140625,
-0.031890869140625,
0.048919677734375,
-0.04217529296875,
-0.03424072265625,
0.0751953125,
0.07659912109375,
0.031524658203125,
-0.040771484375,
0.0093841552734375,
-0.05255126953125,
0.0217742919921875,
0.004383087158203125,
-0.01015472412109375,
-0.03717041015625,
0.00047707557678222656,
-0.0202789306640625,
-0.001163482666015625,
0.03948974609375,
0.00830841064453125,
-0.0093231201171875,
-0.010498046875,
-0.03973388671875,
0.0193634033203125,
-0.0628662109375,
0.0280914306640625,
0.0159149169921875,
-0.032135009765625,
-0.0238189697265625,
-0.0038623809814453125,
-0.022857666015625,
0.00015401840209960938,
-0.040557861328125,
0.0035648345947265625,
-0.02056884765625,
0.0080718994140625,
-0.04803466796875,
-0.06365966796875,
0.0285186767578125,
-0.046356201171875,
-0.0045623779296875,
0.0249786376953125,
-0.0258026123046875,
0.026275634765625,
-0.01605224609375,
0.033416748046875,
0.01137542724609375,
-0.0093536376953125,
0.026458740234375,
-0.0185394287109375,
0.0107574462890625,
0.018951416015625,
0.0194244384765625,
-0.0146636962890625,
-0.043670654296875,
0.00836181640625,
-0.0045928955078125,
-0.05401611328125,
0.02703857421875,
-0.005695343017578125,
0.01678466796875,
0.047607421875,
0.004638671875,
0.04046630859375,
-0.001735687255859375,
-0.02984619140625,
0.0032405853271484375,
0.01305389404296875,
-0.0104827880859375,
-0.005519866943359375,
0.0059051513671875,
-0.00777435302734375,
-0.027191162109375,
-0.0229949951171875,
0.031036376953125,
-0.041015625,
0.0189361572265625,
-0.08026123046875,
0.006954193115234375,
-0.02203369140625,
0.06622314453125,
-0.0270233154296875,
-0.0249176025390625,
0.0034770965576171875,
-0.0287628173828125,
0.033905029296875,
-0.06787109375,
-0.030059814453125,
0.02545166015625,
-0.0214080810546875,
0.0089569091796875,
-0.0066375732421875,
-0.00748443603515625,
-0.00772857666015625,
0.00901031494140625,
-0.02008056640625,
0.005641937255859375,
0.040435791015625,
0.0246429443359375,
-0.039154052734375,
-0.000782012939453125,
0.039459228515625,
0.0310821533203125,
-0.037261962890625,
0.0067596435546875,
0.035736083984375,
0.0281524658203125,
-0.044769287109375,
-0.01448822021484375,
-0.0106353759765625,
-0.03765869140625,
-0.005184173583984375,
0.054290771484375,
0.038421630859375,
0.05303955078125,
-0.003025054931640625,
-0.0191650390625,
0.054473876953125,
-0.02703857421875,
0.0189971923828125,
-0.03466796875,
-0.009735107421875,
-0.00263214111328125,
0.03961181640625,
-0.007694244384765625,
0.03216552734375,
0.0310516357421875,
0.0005340576171875,
0.028533935546875,
0.01457977294921875,
0.03973388671875,
-0.04925537109375,
0.0007886886596679688,
-0.00510406494140625,
0.03369140625,
-0.01236724853515625,
0.015472412109375,
-0.016571044921875,
0.01061248779296875,
0.043975830078125,
0.042510986328125,
0.0070343017578125,
-0.043487548828125,
0.010772705078125,
0.05023193359375,
0.0206146240234375,
0.03564453125,
-0.006748199462890625,
0.0206298828125,
0.0005679130554199219,
-0.036407470703125,
0.0299530029296875,
0.018402099609375,
-0.02764892578125,
0.0013885498046875,
-0.04150390625,
-0.01064300537109375,
-0.004669189453125,
-0.07135009765625,
0.004207611083984375,
0.027984619140625,
-0.0219573974609375,
-0.005802154541015625,
0.028472900390625,
-0.015777587890625,
-0.03759765625,
0.01446533203125,
-0.00664520263671875,
-0.019622802734375,
0.046722412109375,
0.0118255615234375,
0.018310546875,
-0.0323486328125,
0.0494384765625,
0.0184173583984375,
-0.0682373046875,
0.02374267578125,
0.006290435791015625,
0.00007039308547973633,
-0.00403594970703125,
0.0033206939697265625,
-0.021270751953125,
0.0233154296875,
-0.06829833984375,
0.040069580078125,
0.0199127197265625,
-0.0148773193359375,
0.01235198974609375,
-0.0109710693359375,
-0.031097412109375,
-0.01430511474609375,
-0.06829833984375,
-0.06390380859375,
0.0628662109375,
-0.0703125,
0.04351806640625,
-0.0157623291015625,
-0.025848388671875,
-0.0638427734375,
0.04412841796875,
0.020538330078125,
0.005420684814453125,
-0.0570068359375,
-0.016937255859375,
-0.02490234375,
-0.0289306640625,
0.0166473388671875,
-0.0043487548828125,
-0.01557159423828125,
-0.00838470458984375,
0.0863037109375,
0.003093719482421875,
-0.03338623046875,
-0.0000890493392944336,
-0.011383056640625,
-0.0075225830078125,
0.01012420654296875,
0.0267181396484375,
0.0010786056518554688,
-0.0004029273986816406,
0.0272674560546875,
-0.004482269287109375,
0.016937255859375,
-0.027069091796875,
-0.0325927734375,
-0.0238037109375,
0.04730224609375,
0.024169921875,
0.0278472900390625,
0.033843994140625,
0.081787109375,
0.04925537109375,
0.00417327880859375,
-0.07269287109375,
-0.019287109375,
-0.0843505859375,
0.063720703125,
0.04833984375,
0.01251983642578125,
-0.006641387939453125,
0.040130615234375,
-0.0322265625,
-0.01074981689453125,
0.02178955078125,
-0.04241943359375,
0.04400634765625,
-0.0146484375,
-0.0303497314453125,
0.00051116943359375,
0.04754638671875,
-0.01258087158203125,
0.029815673828125,
0.018707275390625,
-0.01715087890625,
-0.0178985595703125,
0.009063720703125,
-0.0144500732421875,
-0.0770263671875,
0.0421142578125,
-0.0156402587890625,
-0.01442718505859375,
-0.0099945068359375,
-0.022674560546875,
0.0275115966796875,
0.09381103515625,
-0.0399169921875,
-0.032440185546875,
0.007701873779296875,
0.032501220703125,
0.007068634033203125,
-0.0181884765625,
-0.0114288330078125,
-0.047210693359375,
-0.07666015625,
0.0352783203125,
-0.01163482666015625,
0.002777099609375,
-0.056884765625,
0.0809326171875,
-0.06854248046875,
-0.025421142578125,
0.056549072265625,
-0.06719970703125,
-0.01468658447265625,
0.051605224609375,
-0.0229644775390625,
-0.006397247314453125,
-0.037872314453125,
-0.02838134765625,
-0.0281982421875,
0.0025691986083984375,
-0.057708740234375,
0.0269012451171875,
0.056304931640625,
-0.04302978515625,
0.0105438232421875,
0.0086669921875,
0.02423095703125,
0.019775390625,
0.020233154296875,
-0.0140228271484375,
0.0540771484375,
0.0205841064453125,
0.0350341796875,
-0.00991058349609375,
0.012298583984375,
-0.0309906005859375,
-0.062255859375,
-0.0609130859375,
-0.04107666015625,
-0.004657745361328125,
-0.00725555419921875,
-0.03656005859375,
-0.0496826171875,
0.0013608932495117188,
-0.0086212158203125,
0.015869140625,
0.007305145263671875,
-0.0212554931640625,
0.00136566162109375,
-0.05389404296875,
0.01538848876953125,
-0.0269927978515625,
-0.036102294921875,
0.0045166015625,
0.026458740234375,
0.0269317626953125,
-0.0120849609375,
0.0304412841796875,
-0.0050811767578125,
0.01515960693359375,
-0.0055389404296875,
0.060546875,
0.02191162109375,
0.0028076171875,
0.0241546630859375,
0.00441741943359375,
-0.01387786865234375,
0.034881591796875,
0.04656982421875,
0.03570556640625,
0.005626678466796875,
-0.0086212158203125,
0.0316162109375,
-0.0281219482421875,
0.01149749755859375,
-0.017181396484375,
-0.044464111328125,
-0.031341552734375,
0.059539794921875,
-0.006526947021484375,
0.0367431640625,
-0.04986572265625,
-0.0077362060546875,
-0.00171661376953125,
0.0293426513671875,
0.056121826171875,
0.05859375,
-0.00846099853515625,
0.0438232421875,
0.0264892578125,
-0.00313568115234375,
-0.01318359375,
-0.00994110107421875,
0.01265716552734375,
0.0008702278137207031,
0.00966644287109375,
0.01532745361328125,
-0.01483917236328125,
0.0028285980224609375,
0.056243896484375,
-0.005100250244140625,
-0.02825927734375,
-0.029693603515625,
0.0035648345947265625,
-0.007709503173828125,
0.02239990234375,
0.0174102783203125,
0.038360595703125,
0.00281524658203125,
-0.01258087158203125,
-0.0033245086669921875,
-0.0091705322265625,
-0.006862640380859375,
-0.032684326171875,
0.00384521484375,
-0.013153076171875,
0.0006051063537597656,
-0.0029430389404296875,
0.034393310546875,
0.01702880859375,
0.004596710205078125,
-0.0251312255859375,
0.00433349609375,
-0.028472900390625,
0.029815673828125,
0.019287109375,
-0.0108489990234375,
-0.000370025634765625,
0.0026988983154296875,
0.017059326171875,
-0.0048828125,
-0.014434814453125,
0.016204833984375,
0.0217742919921875,
-0.01430511474609375,
-0.001956939697265625,
0.00890350341796875,
-0.00276947021484375,
-0.0312347412109375,
0.04034423828125,
-0.004833221435546875,
-0.074951171875,
-0.0294647216796875,
0.01329803466796875,
0.02825927734375,
-0.0177001953125,
-0.053131103515625,
0.06805419921875,
-0.0159149169921875,
0.058837890625,
0.0171356201171875,
-0.028045654296875,
0.034912109375,
0.042327880859375,
-0.04803466796875,
0.0102691650390625,
0.040618896484375,
-0.08380126953125,
-0.01419830322265625,
-0.01343536376953125,
-0.046966552734375,
0.0164031982421875,
0.00907135009765625,
0.042144775390625,
-0.050079345703125,
-0.024993896484375,
-0.0305938720703125,
0.000011026859283447266,
0.0231475830078125,
0.000885009765625,
-0.0426025390625,
-0.01275634765625,
-0.053863525390625,
-0.02032470703125,
-0.040008544921875,
-0.056396484375,
-0.0240020751953125,
-0.005550384521484375,
0.01551055908203125,
-0.0082550048828125,
0.042694091796875,
0.042816162109375,
-0.054107666015625,
0.034271240234375,
0.035125732421875,
0.0133819580078125,
-0.03143310546875,
0.040191650390625,
0.0355224609375,
0.02301025390625,
-0.00098419189453125,
0.0157012939453125,
-0.007640838623046875,
-0.01556396484375,
0.0165252685546875,
-0.048126220703125,
-0.040313720703125,
-0.02008056640625,
-0.0360107421875,
0.02301025390625,
0.039947509765625,
-0.00795745849609375,
0.0264129638671875,
0.0032196044921875,
0.02545166015625,
-0.01132965087890625,
-0.04168701171875,
-0.007808685302734375,
-0.01275634765625,
0.0168304443359375,
-0.0042724609375,
0.00673675537109375,
0.0244903564453125,
-0.0278167724609375,
-0.005611419677734375,
0.00981903076171875,
-0.0110931396484375,
0.0293426513671875,
-0.0377197265625,
0.06793212890625,
0.0716552734375,
-0.026336669921875,
0.03515625,
0.0051116943359375,
0.00024819374084472656,
0.026702880859375,
0.00685882568359375,
0.001438140869140625,
0.02008056640625,
0.07110595703125,
0.01068115234375,
-0.0167999267578125,
0.03912353515625,
-0.033233642578125,
0.007678985595703125,
0.044891357421875,
0.0699462890625,
-0.07269287109375,
0.0020618438720703125,
0.016510009765625,
-0.0156707763671875,
0.0001251697540283203,
0.0390625,
0.0011873245239257812,
-0.01068115234375,
-0.0079345703125,
-0.032012939453125,
0.0014629364013671875,
0.01273345947265625,
-0.0040435791015625,
-0.011962890625,
-0.020111083984375,
0.010009765625,
0.006397247314453125,
0.0159912109375,
-0.04296875,
0.006336212158203125,
-0.0328369140625,
-0.0273590087890625,
-0.00315093994140625,
-0.01898193359375,
-0.00823974609375,
-0.033203125,
0.02117919921875,
-0.024688720703125,
0.0282440185546875,
0.034759521484375,
0.021270751953125,
-0.004573822021484375,
0.037567138671875,
-0.0166168212890625,
0.033233642578125,
0.00783538818359375,
-0.003238677978515625,
-0.02630615234375,
-0.02142333984375,
0.0067901611328125,
0.0161285400390625,
-0.03521728515625,
0.00716400146484375,
-0.025177001953125,
-0.007068634033203125,
0.0076904296875,
0.01349639892578125,
0.09503173828125,
-0.061981201171875,
-0.005748748779296875,
0.0230255126953125,
0.00966644287109375,
-0.007289886474609375,
-0.015716552734375,
-0.01318359375,
-0.03125,
0.0187835693359375,
-0.01456451416015625,
0.00798797607421875,
0.00868988037109375,
-0.018951416015625,
-0.023956298828125,
0.044464111328125,
-0.037933349609375,
0.0261993408203125,
0.052215576171875,
-0.00043392181396484375,
0.014984130859375,
0.0035076141357421875,
-0.0236663818359375,
0.0125579833984375,
-0.0286712646484375,
0.00018107891082763672,
-0.001819610595703125,
0.0170135498046875,
-0.0176544189453125,
-0.023162841796875,
-0.00856781005859375,
0.009063720703125,
0.005771636962890625,
0.020660400390625,
0.049774169921875,
0.01139068603515625,
0.006603240966796875,
0.0229034423828125,
-0.01898193359375,
0.0071563720703125,
-0.0088958740234375,
-0.0164947509765625,
0.016082763671875,
-0.021697998046875,
-0.063232421875,
0.00995635986328125,
0.03466796875,
0.046478271484375,
-0.00403594970703125,
0.014892578125,
0.0182952880859375,
-0.00881195068359375,
0.00005418062210083008,
-0.005908966064453125,
-0.0091552734375,
0.048492431640625,
0.005706787109375,
0.01131439208984375,
-0.00904083251953125,
-0.037445068359375,
0.023773193359375,
0.011627197265625,
0.0426025390625,
0.04083251953125,
0.0292205810546875,
0.042449951171875,
0.021728515625,
0.045501708984375,
0.0477294921875,
-0.040618896484375,
0.03216552734375,
0.0086212158203125,
0.00406646728515625,
-0.042694091796875,
-0.0025768280029296875,
0.03460693359375,
0.061126708984375,
-0.036590576171875,
-0.047393798828125,
0.016632080078125,
-0.0021038055419921875,
0.005504608154296875,
0.01361083984375,
0.02685546875,
0.0030460357666015625,
0.01551055908203125,
-0.0033016204833984375,
0.00556182861328125,
0.0218048095703125,
0.002655029296875,
0.01593017578125,
0.039520263671875,
-0.035186767578125,
0.007656097412109375,
-0.06146240234375,
0.039886474609375,
0.00942230224609375,
0.036834716796875,
0.00543975830078125,
0.0574951171875,
0.022674560546875,
-0.018585205078125,
-0.001163482666015625,
0.0579833984375,
-0.01131439208984375,
0.01495361328125,
-0.05517578125,
-0.079345703125,
0.01226806640625,
0.038909912109375,
0.0245513916015625,
0.010498046875,
0.0068359375,
-0.00341033935546875,
0.00307464599609375,
-0.002010345458984375,
0.006839752197265625,
-0.00850677490234375,
-0.051239013671875,
0.0006890296936035156,
0.002780914306640625,
0.045867919921875,
0.00919342041015625,
0.01441192626953125,
0.025665283203125,
0.04486083984375,
0.0095062255859375,
0.019500732421875,
0.0036106109619140625,
-0.0200653076171875,
-0.01045989990234375,
-0.014434814453125,
0.0224609375,
0.0189361572265625,
-0.10552978515625,
-0.05291748046875,
-0.0139617919921875,
0.0203704833984375,
0.03863525390625,
0.047882080078125,
0.01224517822265625,
0.0036773681640625,
0.0277862548828125,
-0.006683349609375,
-0.038848876953125,
-0.00605010986328125,
0.047515869140625,
0.025543212890625,
-0.0011377334594726562,
0.063232421875,
-0.024444580078125,
-0.01398468017578125,
0.0270233154296875,
0.0009441375732421875,
0.01189422607421875,
-0.016998291015625,
0.03912353515625,
0.00823211669921875,
-0.061737060546875,
0.06732177734375,
-0.10015869140625,
-0.06549072265625,
0.060546875,
-0.0199127197265625,
-0.004337310791015625,
0.0198211669921875,
-0.077880859375,
-0.00801849365234375,
0.046539306640625,
-0.0289306640625,
-0.0108184814453125,
0.01332855224609375,
0.0225982666015625,
-0.03515625,
0.005771636962890625,
-0.0268096923828125,
0.0222320556640625,
0.0238494873046875,
-0.01331329345703125,
0.019866943359375,
-0.0244598388671875,
-0.00728607177734375,
0.0214080810546875,
-0.006221771240234375,
-0.039825439453125,
0.005939483642578125,
-0.007122039794921875,
0.00612640380859375,
0.020660400390625,
0.0093841552734375,
-0.0088043212890625,
0.022705078125,
-0.00209808349609375,
0.01549530029296875,
0.00658416748046875,
0.00942230224609375,
0.026885986328125,
-0.059814453125,
0.033203125,
-0.0231475830078125,
0.0211639404296875,
-0.036041259765625,
-0.01117706298828125,
0.01824951171875,
0.0135955810546875,
0.0240631103515625,
-0.0625,
-0.01873779296875,
-0.03924560546875,
-0.0166015625,
0.033599853515625,
-0.0269317626953125,
-0.002552032470703125,
-0.0419921875,
-0.016693115234375,
0.001308441162109375,
0.0003705024719238281,
-0.02667236328125,
0.0516357421875,
-0.0130462646484375,
-0.036865234375,
-0.01690673828125,
-0.04888916015625,
-0.0139312744140625,
-0.0081939697265625,
0.00917816162109375,
0.00534820556640625,
-0.0633544921875,
-0.008697509765625,
-0.00421905517578125,
0.01172637939453125,
0.0233001708984375,
-0.02386474609375,
-0.053619384765625,
-0.003490447998046875,
0.01617431640625,
0.0338134765625,
0.0285186767578125,
-0.01409149169921875,
0.00469970703125,
-0.01216888427734375,
-0.020416259765625,
-0.00563812255859375,
0.026763916015625,
-0.0447998046875,
-0.042938232421875,
0.0325927734375,
-0.032684326171875,
0.01318359375,
-0.033111572265625,
-0.05499267578125,
-0.00620269775390625,
0.03271484375,
-0.055999755859375,
0.0081939697265625,
0.0009355545043945312,
-0.019622802734375,
-0.0044708251953125,
0.00980377197265625,
-0.043792724609375,
0.0013933181762695312,
0.020111083984375,
0.029937744140625,
0.0782470703125,
-0.0029430389404296875,
0.0164031982421875,
-0.0225830078125,
0.0269775390625,
-0.00101470947265625,
0.055755615234375,
0.0009002685546875,
0.00537109375,
-0.0203399658203125,
0.0170745849609375,
-0.0447998046875,
-0.0278472900390625,
-0.035980224609375,
0.034912109375,
-0.008026123046875,
0.028045654296875,
-0.01409912109375,
-0.00798797607421875,
0.0224151611328125,
0.030303955078125,
0.00669097900390625,
-0.003986358642578125,
0.0008635520935058594,
-0.023162841796875,
-0.0172882080078125,
-0.01175689697265625,
0.011474609375,
-0.07421875,
-0.009552001953125,
0.028411865234375,
-0.024078369140625,
-0.005107879638671875,
0.0011548995971679688,
-0.050811767578125,
0.0202789306640625,
0.01488494873046875,
0.0258331298828125,
-0.06787109375,
-0.00887298583984375,
0.027862548828125,
-0.03436279296875,
-0.005092620849609375,
0.0157012939453125,
0.000576019287109375,
0.01256561279296875,
0.028106689453125,
-0.01145172119140625,
0.0167236328125,
-0.048004150390625,
0.00024437904357910156,
-0.021270751953125,
0.0158538818359375,
-0.028228759765625,
-0.0010623931884765625,
0.005947113037109375,
0.02679443359375,
-0.01366424560546875,
0.038787841796875,
0.004848480224609375,
0.0323486328125,
-0.00736236572265625,
0.0347900390625,
0.0343017578125,
0.0281829833984375,
-0.0033664703369140625,
0.060882568359375,
-0.01763916015625,
-0.0516357421875,
-0.0147552490234375,
-0.058563232421875,
-0.02459716796875,
-0.005184173583984375,
-0.042510986328125,
-0.07562255859375,
0.0384521484375,
-0.022552490234375,
-0.0200347900390625,
0.0401611328125
] |
70f2f5ef791b21d920aef2c303a0e94a62f59532
|
Wordpress Stackexchange
Q: WordPress adds br in between my shortcode I am having a problem where my markup is rendered incorrectly (more space because of <br />) as WordPress adds <br /> everywhere theres a line break
eg.
[x]
[y]Hello world[/y]
[y]A test[/y]
[/x]
In the handler for x the $content looks like
<br />
[y]Hello world[/y]
<br />
[y]A test[/y]
<br />
Am I suppose to strip out all the line breaks?
UPDATE
I notice that no line breaks
[x][y]Photoshop[/y][y]Notepad++[/y][/x]
[y]Notepad++[/y] will not be rendered as a shortcode. I must have a space like
[x][y]Photoshop[/y] [y]Notepad++[/y][/x]
^
Isit?
A: before you register your shortcode, add the filter to the content for unautop:
add_filter( 'the_content', 'shortcode_unautop' );
Do this also for the areas, maybe excerpt or widget, when your shortcode add to this areas.
|
Q: WordPress adds br in between my shortcode I am having a problem where my markup is rendered incorrectly (more space because of <br />) as WordPress adds <br /> everywhere theres a line break
eg.
[x]
[y]Hello world[/y]
[y]A test[/y]
[/x]
In the handler for x the $content looks like
<br />
[y]Hello world[/y]
<br />
[y]A test[/y]
<br />
Am I suppose to strip out all the line breaks?
UPDATE
I notice that no line breaks
[x][y]Photoshop[/y][y]Notepad++[/y][/x]
[y]Notepad++[/y] will not be rendered as a shortcode. I must have a space like
[x][y]Photoshop[/y] [y]Notepad++[/y][/x]
^
Isit?
A: before you register your shortcode, add the filter to the content for unautop:
add_filter( 'the_content', 'shortcode_unautop' );
Do this also for the areas, maybe excerpt or widget, when your shortcode add to this areas.
A: When you are in the post editor, press CTRL + ENTER when you go to a new line. Doing that tells WordPress not to add a <br /> tag in your code.
A: There shouldn't be any br tags by default ! but if you are getting any in your content without even using them try adding esc_attr or esc_html before returning the variables that holds the values of your shortcode
A: The solution is given by this post.
You have to change the priority of the filter which adds line breaks:
remove_filter('the_content', 'wpautop');
add_filter('the_content', 'wpautop', 100);
A: I couldn't get the above solutions to work, so I did a CSS hack to hide the tags:
.my-custom-shortcode br {
display: none;
}
|
wordpress
|
{
"language": "en",
"length": 255,
"provenance": "stackexchange_00019.jsonl.gz:408691",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/14988"
}
|
[
0.03521728515625,
-0.0240325927734375,
0.00785064697265625,
-0.0277252197265625,
-0.0267486572265625,
-0.0154266357421875,
0.00954437255859375,
-0.0220184326171875,
-0.0156402587890625,
0.012908935546875,
-0.0263671875,
-0.01654052734375,
0.00020456314086914062,
-0.0189208984375,
0.012420654296875,
-0.0273284912109375,
0.0156402587890625,
0.0150604248046875,
0.0279388427734375,
0.005901336669921875,
-0.012420654296875,
0.0135955810546875,
-0.0222015380859375,
0.0118865966796875,
-0.0196075439453125,
0.02667236328125,
0.11090087890625,
-0.0117950439453125,
-0.0089569091796875,
-0.00710296630859375,
0.00893402099609375,
-0.031341552734375,
0.04052734375,
0.04571533203125,
-0.0931396484375,
0.03857421875,
-0.033843994140625,
0.0268402099609375,
-0.0031147003173828125,
0.02166748046875,
-0.00373077392578125,
0.0010328292846679688,
0.10064697265625,
-0.04766845703125,
0.03485107421875,
0.009735107421875,
-0.0013523101806640625,
-0.051666259765625,
-0.021820068359375,
0.0175323486328125,
0.03704833984375,
0.0101470947265625,
0.048583984375,
0.0038509368896484375,
-0.00450897216796875,
-0.00408172607421875,
-0.00804901123046875,
-0.07647705078125,
0.028900146484375,
0.0216522216796875,
0.0094757080078125,
-0.031982421875,
0.013763427734375,
-0.0400390625,
0.0017604827880859375,
-0.01153564453125,
0.00811004638671875,
0.01448822021484375,
-0.061614990234375,
-0.00948333740234375,
0.03424072265625,
-0.0243377685546875,
-0.010986328125,
-0.03314208984375,
-0.0157928466796875,
0.0438232421875,
-0.0148162841796875,
0.01186370849609375,
-0.0011386871337890625,
-0.0031528472900390625,
0.012115478515625,
0.01548004150390625,
-0.033447265625,
-0.037445068359375,
0.00908660888671875,
-0.018798828125,
0.0007476806640625,
0.0011844635009765625,
-0.025115966796875,
-0.0482177734375,
-0.02392578125,
-0.038177490234375,
-0.06964111328125,
0.0282135009765625,
-0.006900787353515625,
-0.016082763671875,
-0.0204620361328125,
-0.02105712890625,
0.00872802734375,
0.03948974609375,
0.00971221923828125,
-0.049591064453125,
0.055389404296875,
-0.033538818359375,
0.0217132568359375,
-0.036102294921875,
-0.016754150390625,
-0.0080108642578125,
0.074462890625,
0.05401611328125,
-0.015777587890625,
0.0673828125,
-0.0243988037109375,
-0.0201873779296875,
-0.00949859619140625,
0.0197296142578125,
-0.0406494140625,
0.021636962890625,
-0.012115478515625,
0.00862884521484375,
-0.0186309814453125,
-0.0158843994140625,
-0.0240631103515625,
0.0206451416015625,
0.0171966552734375,
0.005443572998046875,
0.00556182861328125,
0.00818634033203125,
-0.033447265625,
0.02044677734375,
0.018341064453125,
0.0186767578125,
-0.004199981689453125,
0.0499267578125,
-0.0199432373046875,
-0.0006184577941894531,
0.045867919921875,
-0.04638671875,
-0.020660400390625,
0.036773681640625,
-0.027496337890625,
-0.01322174072265625,
0.00395965576171875,
-0.050201416015625,
0.0191192626953125,
0.047332763671875,
0.0193328857421875,
0.006374359130859375,
-0.00038242340087890625,
-0.09222412109375,
0.06488037109375,
-0.053375244140625,
0.07470703125,
-0.00827789306640625,
-0.038726806640625,
-0.004878997802734375,
0.07220458984375,
-0.043609619140625,
-0.06646728515625,
-0.06915283203125,
-0.000705718994140625,
0.001758575439453125,
0.0322265625,
-0.09320068359375,
-0.0733642578125,
-0.02398681640625,
-0.07208251953125,
0.002716064453125,
0.0263671875,
-0.0030498504638671875,
0.0021572113037109375,
-0.01342010498046875,
0.033782958984375,
-0.01097869873046875,
-0.007549285888671875,
0.0124359130859375,
-0.0022983551025390625,
-0.0025806427001953125,
0.053985595703125,
-0.00029969215393066406,
-0.021514892578125,
-0.0227203369140625,
0.07977294921875,
-0.02154541015625,
-0.06573486328125,
0.0576171875,
0.036590576171875,
0.11810302734375,
-0.01192474365234375,
0.0290374755859375,
0.02899169921875,
0.0035991668701171875,
-0.0015506744384765625,
0.004451751708984375,
-0.000934600830078125,
-0.044952392578125,
-0.032562255859375,
-0.0229949951171875,
-0.0174102783203125,
0.038330078125,
-0.00676727294921875,
0.006046295166015625,
-0.0101470947265625,
0.039459228515625,
0.0012073516845703125,
-0.00977325439453125,
-0.0013818740844726562,
0.00945281982421875,
-0.0179443359375,
-0.0400390625,
0.0020904541015625,
-0.0289306640625,
0.00806427001953125,
-0.03778076171875,
-0.031829833984375,
0.058502197265625,
0.0048828125,
0.03558349609375,
0.01425933837890625,
-0.01275634765625,
0.06170654296875,
-0.01389312744140625,
0.03131103515625,
0.03106689453125,
0.00911712646484375,
-0.03741455078125,
-0.0253753662109375,
-0.047393798828125,
-0.060333251953125,
-0.01027679443359375,
-0.06781005859375,
0.08251953125,
0.0097808837890625,
0.032257080078125,
-0.040802001953125,
0.003513336181640625,
-0.008697509765625,
0.002094268798828125,
-0.004329681396484375,
0.0211639404296875,
0.0489501953125,
0.08001708984375,
0.0238189697265625,
-0.030548095703125,
0.04180908203125,
-0.031890869140625,
0.045684814453125,
-0.0655517578125,
-0.0186309814453125,
0.052276611328125,
0.0009360313415527344,
0.004276275634765625,
-0.00923919677734375,
-0.047119140625,
-0.036468505859375,
0.045257568359375,
-0.048492431640625,
-0.01904296875,
0.0160369873046875,
-0.0209808349609375,
0.0166015625,
-0.044891357421875,
-0.003726959228515625,
-0.0439453125,
-0.01049041748046875,
0.0263824462890625,
0.0191650390625,
0.0293426513671875,
-0.025482177734375,
0.0088958740234375,
0.018310546875,
0.00843048095703125,
-0.01338958740234375,
0.045867919921875,
0.005428314208984375,
0.018157958984375,
-0.017547607421875,
-0.006572723388671875,
-0.0194091796875,
0.02764892578125,
-0.0213470458984375,
0.040924072265625,
-0.0111083984375,
-0.0228271484375,
-0.00864410400390625,
-0.0304718017578125,
0.0027313232421875,
-0.0157318115234375,
0.01446533203125,
-0.022430419921875,
0.0033550262451171875,
0.042724609375,
-0.01261138916015625,
0.050445556640625,
0.0092315673828125,
-0.013671875,
0.064208984375,
-0.038848876953125,
0.04736328125,
-0.038726806640625,
0.05157470703125,
0.055511474609375,
-0.04345703125,
0.0227508544921875,
0.0016937255859375,
0.008209228515625,
-0.022796630859375,
0.004795074462890625,
-0.0018157958984375,
0.0008130073547363281,
-0.06427001953125,
0.006496429443359375,
0.031402587890625,
0.0131072998046875,
0.0168304443359375,
-0.023834228515625,
-0.0149688720703125,
0.03228759765625,
-0.0513916015625,
-0.0192718505859375,
-0.0011653900146484375,
-0.0810546875,
-0.0234527587890625,
0.0229034423828125,
-0.058868408203125,
0.0031280517578125,
0.07415771484375,
-0.0034198760986328125,
-0.00605010986328125,
-0.037353515625,
-0.0584716796875,
-0.0445556640625,
-0.061798095703125,
0.04144287109375,
-0.01261138916015625,
0.025390625,
0.004596710205078125,
0.051727294921875,
0.0141143798828125,
-0.042236328125,
0.0220489501953125,
0.0225677490234375,
-0.0248870849609375,
0.0203399658203125,
0.006793975830078125,
-0.048248291015625,
-0.02044677734375,
-0.0173187255859375,
-0.00940704345703125,
0.010498046875,
-0.003631591796875,
0.011749267578125,
-0.045928955078125,
-0.0280609130859375,
-0.005405426025390625,
0.0316162109375,
0.036712646484375,
-0.0201263427734375,
0.023590087890625,
-0.046539306640625,
0.01009368896484375,
0.0126190185546875,
-0.0017004013061523438,
-0.006389617919921875,
-0.001895904541015625,
-0.03857421875,
-0.027008056640625,
0.02667236328125,
0.0035800933837890625,
0.01163482666015625,
0.052886962890625,
-0.0104827880859375,
-0.0080108642578125,
-0.0179443359375,
-0.019012451171875,
-0.03692626953125,
-0.032745361328125,
-0.03485107421875,
0.0300140380859375,
-0.017303466796875,
0.022247314453125,
-0.015411376953125,
0.03497314453125,
-0.0002753734588623047,
0.034027099609375,
0.006702423095703125,
-0.01445770263671875,
0.06903076171875,
-0.0367431640625,
-0.03363037109375,
-0.0498046875,
0.05419921875,
-0.0546875,
-0.0099334716796875,
0.0172882080078125,
0.0272216796875,
-0.044677734375,
-0.041656494140625,
-0.05474853515625,
-0.0018968582153320312,
-0.016204833984375,
0.00537109375,
-0.04901123046875,
0.024993896484375,
-0.049591064453125,
0.047271728515625,
-0.01180267333984375,
-0.0271453857421875,
0.027191162109375,
-0.042633056640625,
0.0150299072265625,
0.003086090087890625,
-0.001544952392578125,
-0.0316162109375,
-0.005321502685546875,
-0.030914306640625,
-0.045318603515625,
-0.002689361572265625,
-0.0008649826049804688,
0.028961181640625,
0.0092926025390625,
-0.041961669921875,
-0.024566650390625,
0.035186767578125,
-0.0155487060546875,
-0.00033211708068847656,
0.029296875,
0.035614013671875,
0.01212310791015625,
0.0303802490234375,
0.034393310546875,
-0.0179443359375,
0.0088043212890625,
0.03155517578125,
-0.005725860595703125,
0.036376953125,
-0.046478271484375,
-0.054595947265625,
0.0058135986328125,
-0.042022705078125,
-0.037841796875,
-0.02532958984375,
0.02154541015625,
0.04583740234375,
-0.00954437255859375,
0.0274200439453125,
-0.047698974609375,
-0.0426025390625,
-0.00768280029296875,
-0.013702392578125,
-0.03204345703125,
0.0250091552734375,
0.020721435546875,
0.0186767578125,
0.005584716796875,
-0.043731689453125,
0.062225341796875,
0.053680419921875,
-0.0001188516616821289,
0.038360595703125,
0.01332855224609375,
-0.0293121337890625,
0.039764404296875,
0.0160369873046875,
0.0137939453125,
-0.0301971435546875,
0.08697509765625,
-0.00695037841796875,
0.00646209716796875,
0.018096923828125,
0.006374359130859375,
-0.035125732421875,
0.01436614990234375,
0.01454925537109375,
0.0088653564453125,
0.0263214111328125,
-0.0308990478515625,
-0.0029773712158203125,
-0.014495849609375,
0.027008056640625,
-0.007358551025390625,
0.0019168853759765625,
0.018402099609375,
0.039093017578125,
0.032470703125,
-0.0010833740234375,
0.015899658203125,
0.02716064453125,
-0.0225677490234375,
0.01403045654296875,
-0.005279541015625,
-0.00616455078125,
0.039703369140625,
-0.055572509765625,
-0.037506103515625,
0.00711822509765625,
-0.0049591064453125,
0.00030350685119628906,
-0.006473541259765625,
-0.03314208984375,
-0.0234222412109375,
0.004974365234375,
-0.00585174560546875,
0.00901031494140625,
0.05914306640625,
-0.00839996337890625,
-0.0147705078125,
0.0162811279296875,
0.025665283203125,
0.05615234375,
0.01187896728515625,
-0.007144927978515625,
0.00792694091796875,
-0.01776123046875,
-0.00667572021484375,
0.0276947021484375,
-0.0036716461181640625,
0.00725555419921875,
-0.015716552734375,
-0.003513336181640625,
0.01690673828125,
0.0335693359375,
0.0176544189453125,
0.03863525390625,
-0.032806396484375,
-0.03082275390625,
0.03363037109375,
-0.0159149169921875,
-0.0362548828125,
0.0123291015625,
0.01385498046875,
0.018218994140625,
0.00524139404296875,
-0.0240936279296875,
0.022735595703125,
-0.01425933837890625,
-0.02044677734375,
-0.013916015625,
0.004009246826171875,
0.0245819091796875,
-0.03302001953125,
0.0035839080810546875,
0.035858154296875,
0.04296875,
0.0033473968505859375,
-0.007171630859375,
0.01390838623046875,
0.015655517578125,
0.03936767578125,
-0.021453857421875,
0.0008835792541503906,
-0.0059814453125,
0.01271820068359375,
-0.00858306884765625,
-0.050140380859375,
0.00485992431640625,
-0.0032939910888671875,
-0.0039520263671875,
-0.00551605224609375,
0.0249176025390625,
-0.076416015625,
-0.0183258056640625,
-0.03265380859375,
0.076904296875,
-0.06500244140625,
0.01654052734375,
0.0465087890625,
0.04632568359375,
-0.031646728515625,
-0.03076171875,
-0.025177001953125,
-0.01175689697265625,
-0.00272369384765625,
-0.03240966796875,
-0.02288818359375,
-0.0096588134765625,
0.00521087646484375,
0.0191192626953125,
-0.020416259765625,
-0.0196075439453125,
-0.00945281982421875,
0.034912109375,
0.02276611328125,
0.07049560546875,
-0.01239013671875,
-0.0011072158813476562,
0.0249786376953125,
0.02911376953125,
-0.015777587890625,
-0.01268768310546875,
0.00421905517578125,
-0.0276947021484375,
0.055023193359375,
0.02099609375,
-0.047515869140625,
-0.034149169921875,
-0.006160736083984375,
-0.03564453125,
0.0221710205078125,
-0.0284881591796875,
0.0096588134765625,
0.0178680419921875,
0.0002636909484863281,
-0.008270263671875,
-0.00942230224609375,
0.02288818359375,
0.031951904296875,
-0.031585693359375,
-0.01177978515625,
0.01500701904296875,
-0.0216522216796875,
0.0148468017578125,
0.012847900390625,
-0.01549530029296875,
0.034912109375,
-0.0271453857421875,
0.0161895751953125,
0.002582550048828125,
0.027191162109375,
-0.023345947265625,
0.028533935546875,
0.04644775390625,
0.0011758804321289062,
0.014984130859375,
0.010345458984375,
0.036346435546875,
-0.011932373046875,
0.0237274169921875,
-0.016448974609375,
0.00896453857421875,
-0.0024700164794921875,
-0.0222015380859375,
0.073486328125,
0.06341552734375,
0.09197998046875,
-0.08489990234375,
0.040008544921875,
0.0303802490234375,
-0.0296630859375,
0.064453125,
-0.0159149169921875,
0.0092620849609375,
-0.0124969482421875,
0.0435791015625,
-0.0008273124694824219,
0.000232696533203125,
0.023040771484375,
-0.0218353271484375,
-0.0169525146484375,
-0.036834716796875,
0.0275726318359375,
0.00211334228515625,
-0.0426025390625,
0.02581787109375,
0.0029621124267578125,
0.019775390625,
-0.015899658203125,
-0.01436614990234375,
0.007045745849609375,
-0.027191162109375,
-0.05975341796875,
0.0117340087890625,
-0.0208892822265625,
0.0006279945373535156,
-0.0228729248046875,
-0.0141754150390625,
-0.00658416748046875,
0.0478515625,
-0.049072265625,
0.01422882080078125,
0.0306243896484375,
-0.044158935546875,
0.03564453125,
-0.0018596649169921875,
-0.0304107666015625,
0.0178375244140625,
-0.03448486328125,
-0.007526397705078125,
-0.0283966064453125,
0.036407470703125,
0.003238677978515625,
-0.0174407958984375,
0.033111572265625,
-0.05413818359375,
0.0082550048828125,
0.0237579345703125,
-0.0024013519287109375,
-0.0004820823669433594,
-0.01556396484375,
0.01708984375,
-0.0194244384765625,
-0.0035114288330078125,
-0.0209808349609375,
-0.0264129638671875,
-0.0033092498779296875,
-0.06292724609375,
-0.0709228515625,
0.0125579833984375,
-0.0089569091796875,
0.044952392578125,
0.0248870849609375,
-0.0213623046875,
-0.02325439453125,
-0.042510986328125,
-0.01380157470703125,
0.03594970703125,
0.01019287109375,
0.016510009765625,
-0.04193115234375,
-0.021026611328125,
0.01541900634765625,
0.0675048828125,
0.0153350830078125,
-0.00543975830078125,
0.039886474609375,
0.0017414093017578125,
0.058807373046875,
0.01922607421875,
-0.01385498046875,
-0.0100860595703125,
0.011566162109375,
-0.016143798828125,
0.03436279296875,
0.004688262939453125,
0.058502197265625,
-0.060516357421875,
-0.007282257080078125,
0.00689697265625,
0.01184844970703125,
0.01074981689453125,
-0.0166168212890625,
0.00658416748046875,
0.04107666015625,
-0.01837158203125,
-0.03228759765625,
-0.0022373199462890625,
-0.03857421875,
0.06817626953125,
0.02996826171875,
-0.059722900390625,
-0.035247802734375,
-0.044830322265625,
0.0450439453125,
-0.0010738372802734375,
0.0760498046875,
0.034149169921875,
0.0231170654296875,
0.104248046875,
-0.0284881591796875,
0.04010009765625,
0.01490020751953125,
-0.036895751953125,
-0.0211944580078125,
0.00992584228515625,
0.01203155517578125,
-0.0391845703125,
-0.021392822265625,
0.0712890625,
0.0055694580078125,
-0.003818511962890625,
-0.0036449432373046875,
0.00971221923828125,
-0.0007314682006835938,
-0.020172119140625,
-0.0245208740234375,
-0.0112762451171875,
-0.02130126953125,
-0.002498626708984375,
-0.0311737060546875,
-0.011444091796875,
0.00342559814453125,
0.022064208984375,
-0.0008287429809570312,
0.0277557373046875,
-0.02105712890625,
-0.0229949951171875,
-0.06097412109375,
0.039459228515625,
-0.0098876953125,
0.04766845703125,
0.0246734619140625,
0.03973388671875,
-0.0138397216796875,
-0.024871826171875,
-0.0022373199462890625,
0.0311431884765625,
0.019866943359375,
-0.02008056640625,
0.0169830322265625,
0.01276397705078125,
-0.00905609130859375,
0.006397247314453125,
-0.003131866455078125,
-0.0153656005859375,
0.027496337890625,
0.0210723876953125,
-0.0582275390625,
-0.0170135498046875,
0.0070037841796875,
-0.0212860107421875,
-0.05810546875,
-0.036407470703125,
-0.02557373046875,
0.0491943359375,
0.032257080078125,
0.0279541015625,
-0.0154876708984375,
0.05096435546875,
0.0005736351013183594,
0.01277923583984375,
0.01210784912109375,
-0.01448822021484375,
-0.006366729736328125,
0.0039215087890625,
-0.00801849365234375,
0.0233306884765625,
-0.031890869140625,
-0.00508880615234375,
-0.0262908935546875,
-0.0638427734375,
0.022369384765625,
0.04290771484375,
0.0033721923828125,
-0.00980377197265625,
0.0364990234375,
-0.04534912109375,
-0.00984954833984375,
0.0308990478515625,
0.016815185546875,
0.02032470703125,
0.01396942138671875,
-0.0029163360595703125,
-0.03594970703125,
-0.03656005859375,
-0.0152740478515625,
0.052154541015625,
0.03460693359375,
0.00803375244140625,
0.0218963623046875,
0.03466796875,
0.000469207763671875,
-0.005741119384765625,
0.0097503662109375,
0.0178985595703125,
-0.0190582275390625,
0.0267181396484375,
0.0184326171875,
-0.0343017578125,
0.0136871337890625,
0.025238037109375,
0.04888916015625,
-0.024566650390625,
0.01678466796875,
0.0024356842041015625,
0.0005688667297363281,
-0.0238189697265625,
0.020538330078125,
-0.0062103271484375,
-0.0179901123046875,
-0.0234222412109375,
0.0006842613220214844,
0.0382080078125,
0.01448822021484375,
-0.016204833984375,
0.057586669921875,
0.0244598388671875,
-0.0177459716796875,
0.039794921875,
-0.058868408203125,
0.031524658203125,
0.0252532958984375,
0.01436614990234375,
-0.00826263427734375,
-0.0185546875,
-0.0214385986328125,
0.0011396408081054688,
-0.0015392303466796875,
0.0103302001953125,
0.004062652587890625,
-0.0272979736328125,
0.028472900390625,
0.05938720703125,
0.064453125,
-0.004657745361328125,
0.0291290283203125,
0.047576904296875,
0.004665374755859375,
-0.025360107421875,
0.01340484619140625,
-0.0115814208984375,
-0.00847625732421875,
-0.0126800537109375,
0.00746917724609375,
-0.00969696044921875,
-0.00322723388671875,
-0.058929443359375,
-0.006458282470703125,
0.033294677734375,
0.0002574920654296875,
-0.04034423828125,
0.01459503173828125,
-0.0287628173828125,
0.02691650390625,
-0.01392364501953125,
0.0147552490234375,
-0.017730712890625,
-0.002399444580078125,
-0.0192413330078125,
-0.08984375,
-0.058746337890625,
0.09014892578125,
-0.0731201171875,
0.0120086669921875,
0.04510498046875,
-0.0047760009765625,
-0.0121917724609375,
-0.0178375244140625,
0.0027637481689453125,
0.038238525390625,
-0.02520751953125,
-0.0278167724609375,
0.0060577392578125,
-0.0116119384765625,
0.00995635986328125,
-0.007472991943359375,
0.00986480712890625,
-0.02923583984375,
-0.029998779296875,
0.0183258056640625,
-0.0214385986328125,
0.00016319751739501953,
-0.05255126953125,
-0.0802001953125,
-0.00977325439453125,
0.0153350830078125,
-0.040557861328125,
-0.006389617919921875,
-0.00927734375,
-0.003131866455078125,
0.0112762451171875,
-0.00830078125,
0.018829345703125,
-0.01403045654296875,
0.01947021484375,
0.01031494140625,
0.0506591796875,
0.017425537109375,
0.006237030029296875,
0.02423095703125,
0.0225067138671875,
0.01446533203125,
-0.005279541015625,
-0.007595062255859375,
0.0109405517578125,
0.00858306884765625,
0.044830322265625,
-0.017913818359375,
-0.023223876953125,
-0.00738525390625,
-0.039398193359375,
0.01114654541015625,
-0.041107177734375,
0.005218505859375,
-0.009033203125,
0.00504302978515625,
0.009918212890625,
-0.0156402587890625,
-0.0179901123046875,
0.0190582275390625,
0.0203094482421875,
0.01531982421875,
0.0172271728515625,
-0.017669677734375,
-0.019500732421875,
-0.023895263671875,
-0.0115966796875,
-0.022979736328125,
-0.0159454345703125,
-0.039947509765625,
-0.057220458984375,
-0.0051116943359375,
-0.033111572265625,
0.0299072265625,
-0.036163330078125,
-0.060302734375,
0.07293701171875,
-0.03436279296875,
-0.015960693359375,
0.0228271484375,
0.0330810546875,
0.025665283203125,
0.051971435546875,
-0.029205322265625,
-0.00453948974609375,
-0.039031982421875,
0.017486572265625,
-0.0177154541015625,
0.03656005859375,
-0.03375244140625,
0.0238494873046875,
0.00943756103515625,
0.002750396728515625,
-0.00946044921875,
-0.011260986328125,
0.00360870361328125,
0.00582122802734375,
-0.0277252197265625,
0.012481689453125,
-0.01544952392578125,
0.039337158203125,
-0.0134735107421875,
0.0185699462890625,
-0.002109527587890625,
0.01461029052734375,
-0.00006508827209472656,
-0.0239105224609375,
0.019195556640625,
0.0279693603515625,
0.0159912109375,
-0.0528564453125,
0.04266357421875,
0.039581298828125,
0.032623291015625,
0.02069091796875
] |
5153b7b5c15486f0221105912d21e7d95bd3b7bd
|
Wordpress Stackexchange
Q: Can I Download a Free Wordpress Theme, Edit it and Use it? I read that all themes on the wordpress.org site are GPL compatible. So can I download the theme, edit it and use it? Can I remove the links that point to the theme developer's website? Does the GPL license allow this?
A: Yes. Use it. Edit it however you like. Redistribute it, modified or unmodified. Sell it. The GPL explicitly allows all of these things, provided that any such distribution is done also under GPL.
While the GPL requires inline-documented author attribution and copyright/license information must remain intact, there is absolutely nothing wrong with removing public-facing "credit links". Anyone implying otherwise is acting contrary to the Free Software philosophy from which the GPL itself is derived.
If a developer wishes to compel users to retain a public-facing credit link, then the developer should release his work under a license other than GPL. But to release a work under GPL and then attempt, through appeals to moral propriety, to restrict the very rights granted by that license, is an act that is itself morally repugnant.
|
Q: Can I Download a Free Wordpress Theme, Edit it and Use it? I read that all themes on the wordpress.org site are GPL compatible. So can I download the theme, edit it and use it? Can I remove the links that point to the theme developer's website? Does the GPL license allow this?
A: Yes. Use it. Edit it however you like. Redistribute it, modified or unmodified. Sell it. The GPL explicitly allows all of these things, provided that any such distribution is done also under GPL.
While the GPL requires inline-documented author attribution and copyright/license information must remain intact, there is absolutely nothing wrong with removing public-facing "credit links". Anyone implying otherwise is acting contrary to the Free Software philosophy from which the GPL itself is derived.
If a developer wishes to compel users to retain a public-facing credit link, then the developer should release his work under a license other than GPL. But to release a work under GPL and then attempt, through appeals to moral propriety, to restrict the very rights granted by that license, is an act that is itself morally repugnant.
A: It is entirely legally possible to do so; check the wikipedia article on GPL, and if you are really boring read the GPL license in a few of the themes you want to use. But it is very morally questionable to take someone's work without giving them credit for it.
The usual solution that satisfies both moral and legal requirements is to give the theme developer a donation for their theme and then modify as you will.
Oh and if you like a theme, email the creator and tell them. Nobody minds a compliment!
A: GPL license Does allow to remove credit links, but that is just not cool, it a small appreciation to the hard word of the theme developer/designer and if you do remove then please consider a donation to that theme developer/designer.
A: You can remove credit links (although it's a fairly scummy thing to do), but you cannot remove the GPL licence text in the source code.
Also, unless specifically excepted, you cannot do the same for CSS files and any included images.
|
wordpress
|
{
"language": "en",
"length": 365,
"provenance": "stackexchange_00019.jsonl.gz:408702",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15018"
}
|
[
0.0235443115234375,
-0.0019588470458984375,
0.0159149169921875,
0.0012388229370117188,
0.005290985107421875,
-0.023040771484375,
0.0243988037109375,
-0.0478515625,
0.019989013671875,
0.0015516281127929688,
0.033416748046875,
-0.065673828125,
-0.0211944580078125,
-0.054534912109375,
-0.025054931640625,
-0.044036865234375,
0.00807952880859375,
0.0036830902099609375,
0.0230865478515625,
-0.0045928955078125,
-0.0022296905517578125,
-0.0101318359375,
-0.0007562637329101562,
0.0234222412109375,
0.058837890625,
-0.0092010498046875,
0.08038330078125,
-0.0170135498046875,
0.03564453125,
-0.003383636474609375,
0.052642822265625,
-0.0430908203125,
0.012664794921875,
0.020416259765625,
-0.025421142578125,
-0.028045654296875,
0.002338409423828125,
0.0043487548828125,
-0.00281524658203125,
0.0158233642578125,
0.02020263671875,
-0.0039215087890625,
-0.0703125,
0.0247039794921875,
-0.046295166015625,
-0.05694580078125,
0.041168212890625,
-0.0049591064453125,
-0.0184783935546875,
0.0217742919921875,
0.0501708984375,
0.016876220703125,
0.056243896484375,
-0.0024089813232421875,
-0.0101318359375,
0.00482940673828125,
0.0204620361328125,
-0.0093994140625,
0.031890869140625,
-0.031280517578125,
-0.025726318359375,
0.0016231536865234375,
0.0156402587890625,
0.0015497207641601562,
0.0250396728515625,
-0.0123138427734375,
-0.0161895751953125,
0.03369140625,
-0.037811279296875,
0.03619384765625,
0.0268096923828125,
-0.045196533203125,
-0.00041866302490234375,
-0.035064697265625,
0.019622802734375,
0.019775390625,
-0.01129150390625,
-0.01316070556640625,
0.003406524658203125,
0.018890380859375,
0.03106689453125,
-0.004512786865234375,
-0.058197021484375,
0.0194549560546875,
-0.0008654594421386719,
0.045623779296875,
-0.0035533905029296875,
-0.029998779296875,
-0.05279541015625,
-0.00836181640625,
-0.029327392578125,
0.00995635986328125,
-0.058807373046875,
0.002628326416015625,
-0.0008225440979003906,
0.013580322265625,
0.04254150390625,
0.0291290283203125,
0.0079345703125,
0.042266845703125,
-0.0098114013671875,
-0.05474853515625,
0.0679931640625,
-0.045501708984375,
-0.0046844482421875,
0.052642822265625,
-0.0003066062927246094,
0.006061553955078125,
0.01019287109375,
0.01317596435546875,
0.004909515380859375,
-0.05072021484375,
0.029876708984375,
-0.0074310302734375,
-0.004787445068359375,
0.00799560546875,
-0.00705718994140625,
0.0285186767578125,
-0.01129150390625,
0.05804443359375,
-0.0074005126953125,
0.029205322265625,
0.0074310302734375,
-0.032257080078125,
-0.019256591796875,
-0.01580810546875,
-0.01509857177734375,
-0.032501220703125,
0.0007538795471191406,
0.05084228515625,
0.0007648468017578125,
0.0005021095275878906,
-0.023468017578125,
0.00897979736328125,
-0.0263671875,
-0.0267486572265625,
-0.027618408203125,
0.006542205810546875,
-0.0131683349609375,
-0.0020465850830078125,
-0.003940582275390625,
-0.0095062255859375,
0.039764404296875,
-0.03631591796875,
0.033843994140625,
0.0121002197265625,
0.005275726318359375,
0.0269622802734375,
0.035980224609375,
0.004657745361328125,
0.0201263427734375,
-0.039093017578125,
-0.00836181640625,
0.01531219482421875,
0.061737060546875,
-0.07781982421875,
0.07720947265625,
-0.0748291015625,
0.07769775390625,
-0.06195068359375,
-0.010284423828125,
-0.006256103515625,
0.03668212890625,
0.004459381103515625,
-0.0291748046875,
0.0293731689453125,
0.0013170242309570312,
-0.00466156005859375,
0.014190673828125,
-0.0104217529296875,
-0.0055389404296875,
-0.03125,
0.03448486328125,
0.00720977783203125,
-0.0068817138671875,
0.04742431640625,
0.0284576416015625,
0.0310821533203125,
-0.0097808837890625,
0.05718994140625,
0.0235595703125,
-0.0180816650390625,
0.060455322265625,
-0.0216064453125,
-0.06451416015625,
-0.042999267578125,
0.01226043701171875,
0.03436279296875,
0.050689697265625,
0.01448822021484375,
0.058807373046875,
-0.05450439453125,
0.0289306640625,
-0.01239776611328125,
-0.004398345947265625,
-0.056182861328125,
0.0020198822021484375,
-0.0095367431640625,
-0.01605224609375,
0.0293121337890625,
0.02880859375,
0.0177459716796875,
-0.0088653564453125,
0.00434112548828125,
-0.0499267578125,
0.0092010498046875,
-0.0252532958984375,
0.0236053466796875,
-0.014984130859375,
0.046356201171875,
0.005435943603515625,
0.0005979537963867188,
-0.0272369384765625,
0.0081329345703125,
0.007022857666015625,
-0.0111083984375,
0.04052734375,
0.062042236328125,
0.0262603759765625,
-0.01282501220703125,
0.07135009765625,
-0.035247802734375,
0.058349609375,
0.059722900390625,
0.0211181640625,
-0.002414703369140625,
-0.011077880859375,
-0.0191192626953125,
0.0037364959716796875,
0.00467681884765625,
0.001392364501953125,
0.031463623046875,
-0.015289306640625,
-0.003124237060546875,
-0.0226593017578125,
-0.0239715576171875,
-0.037841796875,
-0.08013916015625,
0.023040771484375,
0.05303955078125,
0.033447265625,
0.01506805419921875,
-0.033447265625,
-0.044464111328125,
0.093994140625,
-0.000009894371032714844,
0.01161956787109375,
-0.032073974609375,
0.024658203125,
0.0364990234375,
0.0305633544921875,
-0.0214385986328125,
0.007419586181640625,
-0.01465606689453125,
0.019866943359375,
0.01001739501953125,
-0.030548095703125,
-0.01177978515625,
0.0123291015625,
-0.01477813720703125,
0.01465606689453125,
-0.0174560546875,
-0.027313232421875,
-0.0162353515625,
-0.025848388671875,
0.0352783203125,
0.0177764892578125,
0.0302886962890625,
-0.0190887451171875,
-0.01454925537109375,
0.027313232421875,
0.036407470703125,
-0.00897979736328125,
0.049346923828125,
0.023406982421875,
0.035186767578125,
-0.01519012451171875,
-0.006011962890625,
-0.0352783203125,
0.0271148681640625,
-0.046661376953125,
-0.0667724609375,
-0.040863037109375,
0.0003933906555175781,
0.0031757354736328125,
-0.06732177734375,
0.043426513671875,
0.0132598876953125,
-0.000014901161193847656,
0.00815582275390625,
0.0247039794921875,
0.00673675537109375,
-0.039581298828125,
0.04254150390625,
-0.0128326416015625,
-0.026641845703125,
0.0255889892578125,
-0.012939453125,
0.028900146484375,
-0.03778076171875,
0.037506103515625,
0.0322265625,
-0.035491943359375,
0.01422119140625,
0.009368896484375,
0.0139617919921875,
0.043426513671875,
-0.019805908203125,
-0.00856781005859375,
-0.009307861328125,
-0.040557861328125,
-0.006824493408203125,
-0.0021610260009765625,
-0.0220794677734375,
-0.014617919921875,
-0.039764404296875,
-0.0301361083984375,
-0.02642822265625,
-0.06964111328125,
-0.0306854248046875,
0.0183258056640625,
-0.0217742919921875,
-0.0038890838623046875,
-0.023681640625,
-0.0128021240234375,
-0.009979248046875,
-0.0066375732421875,
-0.003437042236328125,
0.05438232421875,
-0.05780029296875,
-0.05950927734375,
-0.0595703125,
-0.08294677734375,
-0.043914794921875,
0.008453369140625,
0.00479888916015625,
-0.003734588623046875,
0.020660400390625,
0.00041747093200683594,
-0.0258941650390625,
0.003101348876953125,
0.06927490234375,
0.00966644287109375,
-0.0170135498046875,
0.0086669921875,
0.005168914794921875,
0.01189422607421875,
0.007568359375,
0.0016546249389648438,
0.0033626556396484375,
-0.01904296875,
-0.032806396484375,
-0.01457977294921875,
-0.0140533447265625,
-0.007171630859375,
-0.04705810546875,
0.01149749755859375,
-0.0174560546875,
-0.031585693359375,
-0.06396484375,
-0.034027099609375,
0.0249786376953125,
-0.0178070068359375,
0.0156402587890625,
0.0190887451171875,
-0.031219482421875,
-0.0038547515869140625,
0.0180206298828125,
0.0260772705078125,
0.034423828125,
-0.0103607177734375,
0.006214141845703125,
0.045074462890625,
-0.00626373291015625,
0.0078887939453125,
-0.035491943359375,
0.01549530029296875,
-0.03399658203125,
0.0304107666015625,
0.007293701171875,
0.0256195068359375,
0.00846099853515625,
-0.021331787109375,
-0.0345458984375,
-0.027557373046875,
0.0570068359375,
-0.01515960693359375,
0.005359649658203125,
-0.025604248046875,
-0.030792236328125,
-0.0139007568359375,
0.07391357421875,
-0.033935546875,
-0.0165252685546875,
0.00659942626953125,
0.01849365234375,
-0.0238800048828125,
-0.01287078857421875,
-0.0244903564453125,
-0.0111236572265625,
-0.052825927734375,
0.0146331787109375,
0.01099395751953125,
-0.0276031494140625,
0.0103302001953125,
-0.01183319091796875,
-0.01270294189453125,
-0.03173828125,
0.01849365234375,
0.020751953125,
0.000324249267578125,
0.03558349609375,
-0.00948333740234375,
0.0141143798828125,
-0.0201416015625,
-0.0136260986328125,
-0.0472412109375,
0.003879547119140625,
-0.01641845703125,
0.038055419921875,
0.0092315673828125,
-0.018524169921875,
-0.00847625732421875,
0.017181396484375,
0.006195068359375,
0.059051513671875,
-0.033477783203125,
-0.01157379150390625,
-0.02001953125,
0.0027313232421875,
-0.005462646484375,
-0.006092071533203125,
-0.0122222900390625,
-0.0338134765625,
-0.04229736328125,
-0.001117706298828125,
0.004131317138671875,
0.042327880859375,
0.0222625732421875,
-0.005191802978515625,
-0.0144195556640625,
0.0032806396484375,
-0.025238037109375,
0.0096588134765625,
-0.0099334716796875,
-0.007762908935546875,
0.0003342628479003906,
-0.03973388671875,
0.03350830078125,
-0.0124969482421875,
0.0128173828125,
0.021820068359375,
0.0843505859375,
0.00186920166015625,
-0.016845703125,
-0.0989990234375,
0.0001163482666015625,
0.0384521484375,
0.0038394927978515625,
0.0787353515625,
0.059967041015625,
-0.00850677490234375,
0.034332275390625,
0.0283660888671875,
-0.03515625,
0.01473236083984375,
0.01428985595703125,
0.0276947021484375,
0.0019550323486328125,
-0.0185089111328125,
0.0148162841796875,
0.03607177734375,
0.005039215087890625,
-0.00983428955078125,
0.018890380859375,
0.01021575927734375,
-0.007694244384765625,
0.005611419677734375,
-0.0112152099609375,
0.003917694091796875,
0.0014591217041015625,
0.0086517333984375,
-0.040863037109375,
0.0479736328125,
0.01039886474609375,
0.007282257080078125,
-0.0001888275146484375,
0.006465911865234375,
-0.0151214599609375,
-0.0014934539794921875,
0.005664825439453125,
-0.0458984375,
0.0109405517578125,
-0.004558563232421875,
-0.06292724609375,
0.0090789794921875,
-0.01690673828125,
0.066162109375,
0.0306549072265625,
-0.0206298828125,
-0.007144927978515625,
0.004913330078125,
0.0148773193359375,
0.001102447509765625,
-0.00772857666015625,
0.037017822265625,
0.046142578125,
-0.0172576904296875,
-0.02734375,
-0.007717132568359375,
-0.0036144256591796875,
-0.05145263671875,
0.0197601318359375,
0.01904296875,
-0.004329681396484375,
0.07159423828125,
-0.00716400146484375,
0.056610107421875,
-0.00201416015625,
-0.04144287109375,
0.0633544921875,
0.060333251953125,
-0.01061248779296875,
-0.001316070556640625,
0.05126953125,
-0.01154327392578125,
-0.0293731689453125,
-0.02655029296875,
-0.0175628662109375,
0.007293701171875,
-0.003322601318359375,
0.0283050537109375,
-0.00955963134765625,
-0.0192108154296875,
0.02215576171875,
-0.047393798828125,
-0.006420135498046875,
-0.02178955078125,
-0.046783447265625,
-0.01107025146484375,
-0.0013599395751953125,
-0.002841949462890625,
-0.00690460205078125,
0.0105438232421875,
-0.0306549072265625,
-0.0143890380859375,
-0.0279693603515625,
0.0022640228271484375,
0.007781982421875,
-0.05767822265625,
0.030242919921875,
0.0362548828125,
0.0117034912109375,
-0.0195159912109375,
-0.0050811767578125,
-0.0255126953125,
0.01538848876953125,
-0.04534912109375,
-0.0030269622802734375,
0.064453125,
0.00914764404296875,
-0.0008554458618164062,
-0.005420684814453125,
-0.03717041015625,
-0.0195465087890625,
-0.022674560546875,
0.0987548828125,
0.040496826171875,
-0.03594970703125,
-0.0038299560546875,
-0.06109619140625,
-0.00598907470703125,
-0.0546875,
-0.059356689453125,
-0.036224365234375,
0.0062408447265625,
0.015960693359375,
0.026947021484375,
-0.039398193359375,
-0.052764892578125,
0.0287322998046875,
0.01690673828125,
0.01238250732421875,
0.0458984375,
-0.00807952880859375,
0.0214080810546875,
0.0179443359375,
0.02227783203125,
0.0165863037109375,
0.0003230571746826172,
-0.0082855224609375,
-0.0256805419921875,
-0.0233612060546875,
-0.038421630859375,
0.005107879638671875,
0.017547607421875,
-0.0113983154296875,
0.055145263671875,
0.055419921875,
0.0217742919921875,
0.0189971923828125,
-0.061065673828125,
-0.00542449951171875,
-0.029754638671875,
0.062408447265625,
-0.094482421875,
-0.03948974609375,
0.0244293212890625,
-0.0533447265625,
0.0215911865234375,
0.0027618408203125,
-0.0102691650390625,
0.046112060546875,
-0.038299560546875,
0.0210113525390625,
0.08038330078125,
-0.0241241455078125,
0.035736083984375,
0.05035400390625,
-0.0233001708984375,
0.03094482421875,
0.026153564453125,
0.00690460205078125,
0.0255279541015625,
0.0303802490234375,
-0.0511474609375,
-0.013824462890625,
-0.0200653076171875,
-0.00905609130859375,
0.004055023193359375,
-0.033111572265625,
0.0004417896270751953,
0.0272064208984375,
0.056854248046875,
0.06951904296875,
-0.0772705078125,
-0.00676727294921875,
0.01416015625,
-0.0250396728515625,
-0.00200653076171875,
-0.00978851318359375,
0.0204925537109375,
-0.0208587646484375,
0.0465087890625,
-0.02191162109375,
0.0005359649658203125,
0.00830078125,
-0.027496337890625,
0.00693511962890625,
-0.010986328125,
0.05084228515625,
-0.0009465217590332031,
-0.05950927734375,
-0.0243988037109375,
0.040313720703125,
-0.0232391357421875,
0.005481719970703125,
0.018280029296875,
-0.0194244384765625,
-0.0144195556640625,
-0.04595947265625,
-0.0270538330078125,
-0.034759521484375,
-0.0289306640625,
0.0020122528076171875,
0.031951904296875,
0.0122222900390625,
0.03851318359375,
-0.0206756591796875,
0.036834716796875,
0.0076446533203125,
0.03125,
0.00775146484375,
-0.005649566650390625,
0.0230560302734375,
0.005687713623046875,
0.035064697265625,
0.021881103515625,
0.016876220703125,
-0.0556640625,
-0.01335906982421875,
-0.00794219970703125,
0.092529296875,
-0.03533935546875,
-0.0188140869140625,
0.041107177734375,
0.01580810546875,
-0.04254150390625,
0.00701904296875,
0.028228759765625,
-0.0214385986328125,
0.01108551025390625,
0.01045989990234375,
0.0161895751953125,
0.0037555694580078125,
0.022003173828125,
-0.0239105224609375,
0.0577392578125,
0.00800323486328125,
-0.0161590576171875,
0.01219940185546875,
0.039764404296875,
-0.028289794921875,
0.02239990234375,
0.0171051025390625,
0.01015472412109375,
0.00032711029052734375,
-0.028778076171875,
0.0280914306640625,
-0.0024814605712890625,
0.0008211135864257812,
0.031890869140625,
0.06451416015625,
0.016204833984375,
-0.051513671875,
-0.023193359375,
0.0404052734375,
0.0209503173828125,
-0.0016126632690429688,
0.05670166015625,
-0.033447265625,
0.029510498046875,
-0.01482391357421875,
-0.051177978515625,
0.01416778564453125,
-0.028900146484375,
-0.060028076171875,
-0.0042572021484375,
0.0306396484375,
0.0198516845703125,
0.033416748046875,
-0.01480865478515625,
-0.055694580078125,
0.028411865234375,
0.0297393798828125,
0.0303802490234375,
-0.00812530517578125,
0.004367828369140625,
-0.004718780517578125,
0.0200347900390625,
0.00797271728515625,
-0.01517486572265625,
0.0157318115234375,
0.004306793212890625,
-0.00672149658203125,
-0.051666259765625,
-0.0028743743896484375,
0.0333251953125,
-0.0198822021484375,
-0.022003173828125,
0.066162109375,
-0.0266571044921875,
0.025634765625,
0.0244598388671875,
0.034332275390625,
-0.0169219970703125,
0.0301055908203125,
0.032806396484375,
0.0184326171875,
-0.0260162353515625,
-0.05645751953125,
0.0139923095703125,
0.0030689239501953125,
0.00931549072265625,
0.016204833984375,
0.0167083740234375,
-0.06170654296875,
-0.016448974609375,
-0.016387939453125,
0.00628662109375,
0.0499267578125,
-0.0064239501953125,
0.006946563720703125,
0.0229339599609375,
-0.016754150390625,
0.0200042724609375,
0.0222625732421875,
-0.0158843994140625,
-0.00731658935546875,
-0.027313232421875,
0.0092620849609375,
-0.0139312744140625,
0.0096282958984375,
0.017852783203125,
-0.0047454833984375,
0.07952880859375,
-0.04296875,
0.020751953125,
-0.056915283203125,
-0.1148681640625,
0.00305938720703125,
0.03973388671875,
0.01554107666015625,
-0.01513671875,
0.0121612548828125,
0.01806640625,
-0.01105499267578125,
-0.00635528564453125,
0.0187530517578125,
-0.00788116455078125,
0.010589599609375,
-0.01558685302734375,
0.0064544677734375,
0.0097808837890625,
-0.0232391357421875,
-0.01442718505859375,
0.01403045654296875,
0.02947998046875,
0.006282806396484375,
0.0178375244140625,
-0.0031585693359375,
-0.0013256072998046875,
0.025543212890625,
0.015716552734375,
0.0198211669921875,
0.0270538330078125,
-0.044891357421875,
-0.017425537109375,
-0.0164947509765625,
0.00272369384765625,
0.01540374755859375,
0.0384521484375,
-0.01221466064453125,
0.0138092041015625,
-0.01357269287109375,
0.01568603515625,
0.01035308837890625,
0.010101318359375,
-0.03515625,
-0.0098724365234375,
0.04290771484375,
-0.031646728515625,
-0.0245819091796875,
-0.0273590087890625,
-0.0185546875,
0.0556640625,
-0.00391387939453125,
0.09442138671875,
-0.038116455078125,
0.0188751220703125,
-0.0211639404296875,
0.006252288818359375,
-0.0290069580078125,
-0.0288543701171875,
0.01174163818359375,
0.0085906982421875,
-0.0002168416976928711,
-0.0037384033203125,
-0.01611328125,
0.020599365234375,
-0.00025963783264160156,
-0.062408447265625,
0.0126953125,
-0.0322265625,
0.004207611083984375,
-0.006694793701171875,
-0.0211029052734375,
-0.0124664306640625,
-0.033538818359375,
0.0066375732421875,
0.040740966796875,
-0.01305389404296875,
0.0252227783203125,
-0.0135345458984375,
-0.012451171875,
-0.034515380859375,
-0.035064697265625,
0.0185546875,
-0.01605224609375,
-0.00850677490234375,
0.013153076171875,
-0.01552581787109375,
-0.07171630859375,
0.041900634765625,
-0.0035037994384765625,
-0.0164947509765625,
0.018707275390625,
0.07769775390625,
0.0225677490234375,
-0.06536865234375,
0.02764892578125,
0.040252685546875,
0.028533935546875,
-0.0268402099609375,
0.0224456787109375,
0.034576416015625,
-0.004314422607421875,
0.0281524658203125,
0.032623291015625,
-0.00727081298828125,
0.01242828369140625,
-0.036956787109375,
-0.013458251953125,
0.002941131591796875,
-0.0860595703125,
-0.040802001953125,
-0.00786590576171875,
-0.0009908676147460938,
0.0010824203491210938,
-0.0469970703125,
0.019805908203125,
0.003208160400390625,
-0.01030731201171875,
-0.02569580078125,
0.046234130859375,
-0.0266571044921875,
-0.021636962890625,
-0.05194091796875,
-0.053863525390625,
-0.02349853515625,
0.08203125,
-0.0132904052734375,
0.050201416015625,
0.060943603515625,
-0.046295166015625,
-0.01116180419921875,
0.04034423828125,
0.05487060546875,
0.0894775390625,
-0.0030498504638671875,
-0.0216217041015625,
-0.00783538818359375,
-0.005970001220703125,
0.0080108642578125,
-0.0697021484375,
-0.00009000301361083984,
-0.0831298828125,
-0.003604888916015625,
-0.0161895751953125,
-0.01256561279296875,
-0.004093170166015625,
-0.05072021484375,
-0.06268310546875,
-0.0002237558364868164,
0.0039215087890625,
-0.042022705078125,
0.0168609619140625,
-0.0134124755859375,
-0.01380157470703125,
0.0200958251953125,
-0.005344390869140625,
-0.01806640625,
-0.0255279541015625,
0.00750732421875,
-0.0207672119140625,
0.07965087890625,
-0.0706787109375,
0.0238037109375,
-0.0010824203491210938,
0.0555419921875,
0.035675048828125,
-0.00434112548828125,
-0.0006108283996582031,
0.000020623207092285156,
0.0270843505859375,
0.01287841796875,
-0.02679443359375,
0.0312042236328125,
-0.02081298828125,
0.00856781005859375,
-0.0163116455078125,
-0.0533447265625,
-0.01324462890625,
-0.0347900390625,
0.052154541015625,
0.03472900390625,
0.0045928955078125,
-0.00675201416015625,
-0.033172607421875,
-0.0026702880859375,
-0.033905029296875,
0.0036869049072265625,
0.036865234375,
-0.07550048828125,
0.009063720703125,
0.01324462890625,
-0.019134521484375,
0.0230712890625,
-0.048614501953125,
-0.05633544921875,
0.010711669921875,
-0.06414794921875,
0.0010519027709960938,
-0.02593994140625,
-0.00750732421875,
0.041534423828125,
-0.02362060546875,
0.021759033203125,
-0.0031604766845703125,
0.00817108154296875,
0.046966552734375,
0.03460693359375,
0.0103607177734375,
-0.002574920654296875,
-0.026123046875,
0.004436492919921875,
0.00693511962890625,
0.046234130859375,
-0.01038360595703125,
-0.036865234375,
-0.02264404296875,
0.0283660888671875,
0.00804901123046875,
0.035736083984375,
-0.0180206298828125,
0.0081329345703125,
0.0022258758544921875,
0.0367431640625,
0.0009169578552246094,
0.0276031494140625,
-0.006103515625,
0.033843994140625,
-0.031036376953125,
-0.006481170654296875,
-0.0245513916015625,
-0.034576416015625,
0.0297698974609375,
-0.00418853759765625,
0.04107666015625,
0.020050048828125,
-0.01800537109375,
-0.063232421875,
-0.00440216064453125,
-0.00450897216796875
] |
e214d6107889bd268b1c070c1e0839369309860f
|
Wordpress Stackexchange
Q: wp_nav_menu sort order? Hey Guys,
I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu.
Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order?
I was hoping for something like this:
<?php wp_nav_menu( array('sort_order' => 'DESC' )); ?>
Thanks!
A: I just found this handy little function that ads the ability to reverse the menu output order. it might come in handy:
/**
* Enables a 'reverse' option for wp_nav_menu to reverse the order of menu
* items. Usage:
*
* wp_nav_menu(array('reverse' => TRUE, ...));
*/
function my_reverse_nav_menu($menu, $args) {
if (isset($args->reverse) && $args->reverse) {
return array_reverse($menu);
}
return $menu;
}
add_filter('wp_nav_menu_objects', 'my_reverse_nav_menu', 10, 2);
All you need to do is ad 'reverse' => true as one of the wp_nav_menu parameters. :)
this is the source: https://gist.github.com/1291914
|
Q: wp_nav_menu sort order? Hey Guys,
I'm trying to build a right aligned, wrapping capable wp_nav_menu powered menu.
Is there a way to have it rendered backwards, so that float: right; would work and not mess up the order?
I was hoping for something like this:
<?php wp_nav_menu( array('sort_order' => 'DESC' )); ?>
Thanks!
A: I just found this handy little function that ads the ability to reverse the menu output order. it might come in handy:
/**
* Enables a 'reverse' option for wp_nav_menu to reverse the order of menu
* items. Usage:
*
* wp_nav_menu(array('reverse' => TRUE, ...));
*/
function my_reverse_nav_menu($menu, $args) {
if (isset($args->reverse) && $args->reverse) {
return array_reverse($menu);
}
return $menu;
}
add_filter('wp_nav_menu_objects', 'my_reverse_nav_menu', 10, 2);
All you need to do is ad 'reverse' => true as one of the wp_nav_menu parameters. :)
this is the source: https://gist.github.com/1291914
A: You could write a custom walker for your wp_nav_menu() call. Short of that, I don't think there's anyway to do what you're trying to do.
You could pass such arguments to your fallback function (e.g. wp_list_pages() or wp_page_menu()), but the list-item order of wp_nav_menu() is entirely dependent upon the user-defined menu applied to the given menu location.
A: oops! or try like this
<?php $args = array( 'sort_column' => 'menu_order, post_title' ); ?>
for more parameters http://codex.wordpress.org/Function_Reference/wp_page_menu
|
wordpress
|
{
"language": "en",
"length": 220,
"provenance": "stackexchange_00019.jsonl.gz:408712",
"question_score": "5",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15044"
}
|
[
0.0312042236328125,
-0.0247650146484375,
0.00728607177734375,
0.028533935546875,
0.0049285888671875,
-0.043853759765625,
0.08990478515625,
-0.03265380859375,
0.02972412109375,
0.0136566162109375,
-0.035247802734375,
-0.016876220703125,
-0.0308837890625,
-0.00322723388671875,
-0.058685302734375,
-0.055999755859375,
0.03411865234375,
-0.031982421875,
0.0283966064453125,
0.0012006759643554688,
-0.0027256011962890625,
0.00681304931640625,
0.053314208984375,
0.03131103515625,
0.031158447265625,
-0.038970947265625,
0.059051513671875,
-0.017578125,
0.0211944580078125,
-0.0086669921875,
0.02191162109375,
-0.0172576904296875,
-0.015960693359375,
0.01500701904296875,
0.04132080078125,
-0.02935791015625,
0.004848480224609375,
0.007694244384765625,
0.0137176513671875,
0.015045166015625,
0.005626678466796875,
-0.0095672607421875,
-0.04266357421875,
-0.0300750732421875,
-0.05120849609375,
-0.02838134765625,
0.0152435302734375,
0.01715087890625,
0.02581787109375,
-0.01177215576171875,
0.03302001953125,
-0.03045654296875,
0.042327880859375,
0.0162506103515625,
-0.040924072265625,
-0.0251007080078125,
-0.047027587890625,
-0.0097808837890625,
-0.00652313232421875,
0.062744140625,
0.0389404296875,
0.01549530029296875,
-0.010040283203125,
-0.022003173828125,
-0.0261077880859375,
0.017578125,
0.045654296875,
0.003849029541015625,
-0.060302734375,
-0.03240966796875,
0.0303955078125,
-0.029266357421875,
-0.01299285888671875,
-0.0020751953125,
-0.0117340087890625,
-0.04022216796875,
-0.00524139404296875,
-0.05029296875,
0.029754638671875,
0.0147705078125,
0.0008182525634765625,
0.052886962890625,
-0.09228515625,
-0.01922607421875,
0.002593994140625,
-0.00885009765625,
-0.02294921875,
-0.022979736328125,
-0.018890380859375,
-0.0201416015625,
-0.0164794921875,
0.0173492431640625,
-0.01284027099609375,
-0.006744384765625,
-0.039459228515625,
-0.008636474609375,
0.034271240234375,
0.0340576171875,
-0.01067352294921875,
0.0247344970703125,
0.006618499755859375,
-0.045928955078125,
0.07696533203125,
-0.0399169921875,
-0.0080108642578125,
-0.0124664306640625,
0.014892578125,
0.02252197265625,
0.03350830078125,
0.03594970703125,
-0.0248565673828125,
0.05987548828125,
-0.00826263427734375,
-0.04779052734375,
-0.0095977783203125,
0.027191162109375,
-0.012054443359375,
0.0120086669921875,
0.01438140869140625,
-0.00351715087890625,
-0.023345947265625,
-0.00231170654296875,
0.029296875,
0.034088134765625,
0.006443023681640625,
0.042205810546875,
0.007602691650390625,
-0.049041748046875,
-0.0272979736328125,
0.045654296875,
-0.01177978515625,
-0.016571044921875,
0.04144287109375,
0.0638427734375,
0.026763916015625,
-0.0275115966796875,
0.006771087646484375,
-0.013031005859375,
-0.00951385498046875,
0.0201263427734375,
-0.00789642333984375,
-0.00687408447265625,
0.026397705078125,
-0.0272979736328125,
0.0251617431640625,
0.0016012191772460938,
0.0240325927734375,
0.01454925537109375,
0.0029926300048828125,
-0.01396942138671875,
0.034423828125,
-0.01270294189453125,
0.038909912109375,
-0.00914764404296875,
-0.01200103759765625,
-0.0058746337890625,
0.01523590087890625,
-0.017822265625,
-0.040985107421875,
-0.022216796875,
-0.0716552734375,
-0.0208892822265625,
0.038726806640625,
-0.122802734375,
-0.0784912109375,
0.019683837890625,
-0.059783935546875,
-0.00798797607421875,
0.02996826171875,
0.028900146484375,
-0.01158905029296875,
-0.023895263671875,
0.00662994384765625,
0.0015478134155273438,
-0.021240234375,
0.0293426513671875,
0.0182342529296875,
-0.034515380859375,
0.00313568115234375,
0.061798095703125,
-0.00732421875,
-0.03411865234375,
-0.0285797119140625,
-0.004573822021484375,
-0.033294677734375,
0.0227813720703125,
-0.01073455810546875,
0.033599853515625,
0.03961181640625,
0.00644683837890625,
-0.0084381103515625,
0.004848480224609375,
-0.039764404296875,
0.013427734375,
-0.012298583984375,
0.0021419525146484375,
-0.004947662353515625,
0.0194244384765625,
-0.01288604736328125,
-0.00720977783203125,
-0.0579833984375,
0.043975830078125,
-0.04608154296875,
0.01256561279296875,
-0.061920166015625,
0.0210113525390625,
-0.035675048828125,
0.0716552734375,
-0.00548553466796875,
0.031646728515625,
0.019073486328125,
0.014678955078125,
-0.0433349609375,
0.037261962890625,
-0.0055084228515625,
0.005443572998046875,
0.00011992454528808594,
0.04443359375,
-0.03460693359375,
0.0411376953125,
-0.04840087890625,
-0.033447265625,
-0.0259246826171875,
0.024169921875,
0.04608154296875,
-0.0296478271484375,
-0.031158447265625,
-0.0382080078125,
0.016082763671875,
-0.01291656494140625,
-0.026031494140625,
0.059967041015625,
0.0244293212890625,
0.032989501953125,
-0.037261962890625,
-0.00780487060546875,
-0.001789093017578125,
-0.041717529296875,
0.0007376670837402344,
0.041290283203125,
0.037872314453125,
0.00685882568359375,
-0.0010042190551757812,
-0.0006895065307617188,
0.031280517578125,
-0.051483154296875,
0.01006317138671875,
-0.01303863525390625,
-0.0268402099609375,
-0.0143280029296875,
0.0615234375,
0.00799560546875,
0.0253143310546875,
0.016387939453125,
0.0215911865234375,
0.00676727294921875,
-0.019378662109375,
0.010009765625,
-0.00363922119140625,
-0.00762176513671875,
0.01320648193359375,
-0.0030345916748046875,
-0.004547119140625,
-0.01108551025390625,
-0.021331787109375,
-0.0165557861328125,
-0.0143280029296875,
-0.0257110595703125,
-0.024139404296875,
-0.01453399658203125,
0.0513916015625,
0.0283660888671875,
0.00251007080078125,
0.0056304931640625,
-0.0276947021484375,
0.0061798095703125,
-0.015289306640625,
0.021453857421875,
-0.01422882080078125,
-0.0091094970703125,
-0.030303955078125,
0.03302001953125,
0.04425048828125,
-0.01447296142578125,
-0.0309600830078125,
-0.05810546875,
0.03851318359375,
-0.0224609375,
-0.03033447265625,
0.0279998779296875,
0.0265350341796875,
0.0281982421875,
0.003936767578125,
-0.0123748779296875,
-0.019256591796875,
0.0199127197265625,
0.01568603515625,
0.022552490234375,
-0.0042877197265625,
0.01274871826171875,
0.0171966552734375,
0.038970947265625,
0.006008148193359375,
-0.0163421630859375,
0.01006317138671875,
0.00023543834686279297,
0.0015811920166015625,
0.0195770263671875,
0.005420684814453125,
0.00528717041015625,
-0.0280303955078125,
0.0389404296875,
0.025390625,
-0.03497314453125,
0.02606201171875,
-0.022918701171875,
-0.0198211669921875,
-0.00611114501953125,
-0.07794189453125,
-0.053985595703125,
0.00519561767578125,
-0.0447998046875,
0.0190582275390625,
0.046630859375,
-0.01153564453125,
-0.0325927734375,
0.07940673828125,
0.006710052490234375,
0.03631591796875,
-0.05572509765625,
-0.049102783203125,
-0.047027587890625,
-0.078125,
0.0169525146484375,
0.017974853515625,
0.0192718505859375,
0.0120086669921875,
0.0298919677734375,
0.0183258056640625,
-0.0255584716796875,
0.0382080078125,
0.038360595703125,
-0.012725830078125,
0.00603485107421875,
0.0046539306640625,
-0.028045654296875,
0.0005154609680175781,
0.006069183349609375,
0.01479339599609375,
-0.0177459716796875,
0.019287109375,
-0.01287078857421875,
-0.05517578125,
-0.014617919921875,
-0.007518768310546875,
0.0293121337890625,
0.0537109375,
0.00751495361328125,
0.036529541015625,
-0.0168914794921875,
-0.044647216796875,
-0.017364501953125,
-0.046478271484375,
0.023162841796875,
0.022003173828125,
0.0099334716796875,
-0.0138092041015625,
0.0280303955078125,
0.0208282470703125,
0.0002295970916748047,
0.012451171875,
0.0084381103515625,
0.00249481201171875,
-0.0085906982421875,
0.003116607666015625,
-0.0364990234375,
0.07000732421875,
0.00199127197265625,
-0.041412353515625,
0.0221710205078125,
0.015960693359375,
-0.0087432861328125,
-0.0238800048828125,
-0.054046630859375,
-0.03558349609375,
0.041107177734375,
-0.015655517578125,
0.0188446044921875,
-0.011932373046875,
-0.0203857421875,
0.00530242919921875,
0.0760498046875,
-0.04583740234375,
-0.032318115234375,
0.012939453125,
0.02032470703125,
-0.0013942718505859375,
0.00661468505859375,
-0.02337646484375,
-0.023223876953125,
-0.12286376953125,
0.0308074951171875,
0.00023651123046875,
-0.045989990234375,
0.0035305023193359375,
-0.0287322998046875,
-0.0660400390625,
-0.06378173828125,
0.034576416015625,
0.004886627197265625,
-0.00400543212890625,
0.01224517822265625,
-0.0082550048828125,
-0.01397705078125,
-0.0177154541015625,
0.01186370849609375,
-0.10003662109375,
-0.0101776123046875,
-0.04736328125,
0.0792236328125,
0.003520965576171875,
0.029876708984375,
-0.0006794929504394531,
0.06427001953125,
0.034393310546875,
-0.00487518310546875,
0.068115234375,
0.00972747802734375,
0.03424072265625,
-0.015869140625,
0.040771484375,
-0.054901123046875,
0.0123748779296875,
-0.012847900390625,
-0.036712646484375,
0.02008056640625,
-0.007476806640625,
0.046173095703125,
0.01202392578125,
-0.0193023681640625,
-0.0350341796875,
-0.03759765625,
-0.03729248046875,
-0.0010004043579101562,
-0.014739990234375,
-0.0085296630859375,
-0.0312042236328125,
-0.044189453125,
-0.00710296630859375,
-0.0276641845703125,
-0.0019550323486328125,
0.01190185546875,
0.0302734375,
0.0260467529296875,
-0.00278472900390625,
0.0496826171875,
0.01433563232421875,
0.015380859375,
0.0006260871887207031,
0.014495849609375,
-0.0204925537109375,
-0.006099700927734375,
0.035125732421875,
-0.02374267578125,
0.0028896331787109375,
0.005523681640625,
0.05133056640625,
0.01486968994140625,
-0.00258636474609375,
0.00957489013671875,
0.0031223297119140625,
-0.04632568359375,
0.04022216796875,
0.01300811767578125,
-0.03643798828125,
-0.0066986083984375,
0.052520751953125,
0.0163421630859375,
-0.0184173583984375,
-0.035369873046875,
-0.015960693359375,
0.00315093994140625,
0.0008087158203125,
0.051300048828125,
0.060821533203125,
-0.0228729248046875,
0.028228759765625,
0.01239013671875,
0.007511138916015625,
-0.01320648193359375,
-0.00865936279296875,
-0.01200103759765625,
0.05401611328125,
-0.04150390625,
0.01367950439453125,
0.0041046142578125,
-0.001277923583984375,
0.0716552734375,
0.029388427734375,
0.01010894775390625,
-0.07720947265625,
-0.00543212890625,
0.0005559921264648438,
-0.049163818359375,
-0.038421630859375,
0.0185089111328125,
0.00125885009765625,
0.0084686279296875,
-0.008209228515625,
-0.0758056640625,
-0.00838470458984375,
-0.034912109375,
0.0002598762512207031,
0.034149169921875,
-0.0283966064453125,
0.0048980712890625,
0.036865234375,
0.019775390625,
0.0060272216796875,
-0.024017333984375,
-0.03240966796875,
-0.010894775390625,
0.00823974609375,
0.029571533203125,
-0.0026226043701171875,
0.00888824462890625,
-0.01520538330078125,
0.06146240234375,
-0.01222991943359375,
0.0020465850830078125,
-0.003345489501953125,
0.00746917724609375,
-0.01148223876953125,
-0.00403594970703125,
0.0157928466796875,
-0.0095367431640625,
-0.01070404052734375,
0.045257568359375,
-0.03765869140625,
-0.0531005859375,
-0.05224609375,
-0.018280029296875,
0.0430908203125,
-0.036590576171875,
0.0079345703125,
-0.0050048828125,
-0.0267181396484375,
-0.0205078125,
-0.048553466796875,
-0.0122528076171875,
-0.0184478759765625,
-0.0120697021484375,
-0.01377105712890625,
0.00267791748046875,
0.0008153915405273438,
-0.046661376953125,
-0.02984619140625,
-0.007007598876953125,
-0.024993896484375,
0.0190887451171875,
-0.036407470703125,
0.013885498046875,
-0.033660888671875,
0.0284271240234375,
-0.0562744140625,
0.01277923583984375,
0.0323486328125,
0.029815673828125,
0.00417327880859375,
-0.004093170166015625,
-0.0263671875,
-0.0203857421875,
-0.01030731201171875,
-0.0341796875,
-0.02215576171875,
-0.0220947265625,
0.0237274169921875,
0.0183258056640625,
0.024078369140625,
-0.027862548828125,
-0.0059356689453125,
-0.0085601806640625,
0.0111236572265625,
-0.0041046142578125,
-0.0088958740234375,
0.06500244140625,
-0.02252197265625,
0.0221710205078125,
0.00656890869140625,
0.032806396484375,
-0.02105712890625,
-0.004329681396484375,
0.0200042724609375,
-0.0198516845703125,
-0.047607421875,
-0.0210723876953125,
-0.0310821533203125,
0.024993896484375,
0.082275390625,
-0.0171356201171875,
0.054229736328125,
-0.0175628662109375,
0.0202789306640625,
-0.0121002197265625,
-0.037750244140625,
-0.04473876953125,
-0.0025997161865234375,
0.046142578125,
0.00574493408203125,
-0.0009660720825195312,
-0.0205230712890625,
0.0086517333984375,
-0.00437164306640625,
0.01428985595703125,
0.01088714599609375,
-0.033966064453125,
-0.050140380859375,
0.0357666015625,
0.036590576171875,
0.04583740234375,
0.07757568359375,
0.0005049705505371094,
0.06365966796875,
0.036468505859375,
-0.0023975372314453125,
0.0267486572265625,
0.042266845703125,
0.043182373046875,
-0.0177459716796875,
0.00447845458984375,
0.00872039794921875,
-0.028900146484375,
0.00812530517578125,
0.0240936279296875,
0.0310211181640625,
-0.042388916015625,
0.0208587646484375,
-0.00846099853515625,
-0.0270233154296875,
0.048553466796875,
0.01294708251953125,
-0.00600433349609375,
-0.0275421142578125,
0.013671875,
-0.05804443359375,
-0.01457977294921875,
-0.00196075439453125,
-0.0299224853515625,
0.00695037841796875,
-0.027099609375,
0.02294921875,
0.0017023086547851562,
-0.01519775390625,
-0.0178985595703125,
-0.0034961700439453125,
0.0009260177612304688,
-0.00783538818359375,
-0.0032901763916015625,
-0.00832366943359375,
-0.01094818115234375,
-0.040008544921875,
-0.00249481201171875,
-0.046234130859375,
0.0027294158935546875,
0.040618896484375,
-0.0460205078125,
-0.0022640228271484375,
0.056610107421875,
-0.056793212890625,
0.0450439453125,
0.0025501251220703125,
-0.01239013671875,
0.0191650390625,
-0.0244140625,
-0.0019664764404296875,
-0.038482666015625,
-0.01496124267578125,
-0.00383758544921875,
-0.003543853759765625,
-0.053436279296875,
-0.01102447509765625,
-0.0272064208984375,
0.05169677734375,
-0.0282745361328125,
0.0093231201171875,
0.01568603515625,
-0.0010242462158203125,
0.003963470458984375,
-0.0205535888671875,
0.0289154052734375,
-0.0654296875,
-0.02581787109375,
0.004932403564453125,
-0.0153350830078125,
-0.007198333740234375,
-0.017822265625,
-0.007080078125,
0.043426513671875,
-0.0066375732421875,
-0.02081298828125,
0.0003032684326171875,
0.025177001953125,
0.001445770263671875,
0.033233642578125,
-0.0098876953125,
0.0292510986328125,
-0.00022792816162109375,
0.01194000244140625,
-0.0017557144165039062,
-0.018463134765625,
0.00661468505859375,
0.05133056640625,
-0.06817626953125,
-0.0145111083984375,
-0.041534423828125,
0.02410888671875,
0.0594482421875,
0.0535888671875,
0.06964111328125,
0.031982421875,
-0.01116180419921875,
-0.0002627372741699219,
0.00556182861328125,
-0.0205078125,
0.0292816162109375,
-0.046234130859375,
-0.03289794921875,
-0.00949859619140625,
0.034820556640625,
0.047119140625,
-0.048583984375,
0.04168701171875,
-0.058563232421875,
-0.0255279541015625,
0.041748046875,
0.015350341796875,
0.024444580078125,
0.0091705322265625,
0.006984710693359375,
-0.0128173828125,
-0.047271728515625,
-0.00273895263671875,
0.0182342529296875,
-0.00457000732421875,
-0.01055145263671875,
0.0242919921875,
0.01702880859375,
-0.0195159912109375,
0.011016845703125,
0.0029449462890625,
0.0133209228515625,
-0.0215606689453125,
0.036529541015625,
0.01456451416015625,
0.040435791015625,
-0.045135498046875,
-0.08038330078125,
0.057159423828125,
0.0679931640625,
0.0019388198852539062,
-0.021759033203125,
0.01090240478515625,
-0.01195526123046875,
0.001979827880859375,
-0.0099945068359375,
0.004314422607421875,
-0.04852294921875,
-0.043731689453125,
-0.0214691162109375,
-0.015899658203125,
0.01544952392578125,
0.0484619140625,
0.0086212158203125,
0.014892578125,
-0.03863525390625,
-0.039093017578125,
-0.0704345703125,
0.05621337890625,
0.025909423828125,
0.062469482421875,
-0.00518798828125,
0.0682373046875,
-0.006908416748046875,
-0.0217742919921875,
0.003749847412109375,
0.045867919921875,
-0.038177490234375,
-0.0007596015930175781,
-0.0010833740234375,
-0.059295654296875,
-0.022003173828125,
0.00867462158203125,
-0.0067901611328125,
0.03204345703125,
0.033172607421875,
0.03143310546875,
-0.01373291015625,
-0.0108795166015625,
0.076171875,
-0.0221710205078125,
-0.07562255859375,
-0.040679931640625,
-0.00417327880859375,
0.05853271484375,
0.035003662109375,
0.048858642578125,
0.0011005401611328125,
0.0216217041015625,
-0.007354736328125,
0.025634765625,
0.004451751708984375,
0.01177978515625,
-0.007778167724609375,
0.0212860107421875,
-0.0272216796875,
0.03326416015625,
-0.11376953125,
-0.037384033203125,
-0.0243682861328125,
-0.0254669189453125,
0.056396484375,
0.0438232421875,
-0.001888275146484375,
0.0236663818359375,
0.036285400390625,
-0.05621337890625,
0.0062713623046875,
0.018798828125,
0.047393798828125,
0.0361328125,
-0.020263671875,
0.0228424072265625,
-0.0831298828125,
-0.05078125,
-0.053741455078125,
0.0325927734375,
0.052825927734375,
-0.00347900390625,
0.0460205078125,
0.0477294921875,
0.01071929931640625,
-0.021514892578125,
0.006252288818359375,
-0.028961181640625,
0.04083251953125,
-0.016693115234375,
-0.023468017578125,
-0.0018987655639648438,
-0.0096893310546875,
-0.034149169921875,
0.061614990234375,
-0.053558349609375,
-0.0157928466796875,
0.0014028549194335938,
0.0328369140625,
-0.03936767578125,
0.015106201171875,
-0.0271759033203125,
-0.0186767578125,
-0.007450103759765625,
0.0005125999450683594,
0.0031585693359375,
0.0015401840209960938,
-0.00032067298889160156,
0.037750244140625,
0.01739501953125,
-0.047882080078125,
0.0268707275390625,
-0.0595703125,
0.0567626953125,
0.02642822265625,
0.01617431640625,
0.025543212890625,
-0.00743865966796875,
-0.007442474365234375,
0.00714874267578125,
0.0213165283203125,
-0.047027587890625,
0.0172271728515625,
-0.01031494140625,
0.036376953125,
0.0509033203125,
0.07904052734375,
-0.0017299652099609375,
0.042205810546875,
0.016265869140625,
0.009033203125,
0.00440216064453125,
0.00925445556640625,
-0.0212554931640625,
-0.03753662109375,
-0.0023250579833984375,
0.0278167724609375,
-0.0121002197265625,
0.012847900390625,
-0.055511474609375,
-0.0086212158203125,
0.027313232421875,
-0.002353668212890625,
-0.00792694091796875,
0.0126953125,
-0.02099609375,
-0.013214111328125,
0.00852203369140625,
0.024078369140625,
-0.02716064453125,
-0.0181121826171875,
-0.0027370452880859375,
-0.00289154052734375,
-0.037017822265625,
0.060882568359375,
-0.014007568359375,
0.001972198486328125,
-0.00485992431640625,
-0.01378631591796875,
0.0088653564453125,
0.01123046875,
0.00994110107421875,
0.043121337890625,
0.046112060546875,
0.0005259513854980469,
0.0027980804443359375,
0.0193328857421875,
-0.0518798828125,
-0.0130462646484375,
0.016845703125,
0.0170135498046875,
-0.0233154296875,
0.0170440673828125,
0.004383087158203125,
0.02069091796875,
-0.034912109375,
-0.057403564453125,
-0.00733184814453125,
0.01322174072265625,
-0.03509521484375,
0.01039886474609375,
0.02032470703125,
-0.0175628662109375,
-0.0107269287109375,
0.003314971923828125,
-0.034088134765625,
0.040771484375,
0.0220794677734375,
0.0026302337646484375,
0.10089111328125,
-0.033843994140625,
-0.001308441162109375,
-0.0241851806640625,
0.01406097412109375,
-0.015380859375,
0.052093505859375,
-0.071044921875,
0.00815582275390625,
-0.00334930419921875,
0.0214080810546875,
-0.006900787353515625,
-0.03741455078125,
0.039398193359375,
0.01216888427734375,
0.0242462158203125,
-0.007175445556640625,
-0.004901885986328125,
-0.0074462890625,
-0.00811767578125,
0.015380859375,
-0.00450897216796875,
-0.0194854736328125,
-0.037567138671875,
-0.0433349609375,
0.01837158203125,
-0.0162811279296875,
-0.004550933837890625,
-0.05718994140625,
-0.00496673583984375,
0.0016965866088867188,
-0.019134521484375,
0.0242156982421875,
0.01349639892578125,
-0.0026950836181640625,
0.0185089111328125,
0.05804443359375,
-0.00689697265625,
-0.059814453125,
-0.02496337890625,
0.0621337890625,
-0.04998779296875,
-0.0302276611328125,
-0.005153656005859375,
0.02825927734375,
-0.0035266876220703125,
-0.04718017578125,
-0.049530029296875,
0.027496337890625,
-0.034027099609375,
-0.01425933837890625,
-0.02337646484375,
-0.0105133056640625,
-0.01139068603515625,
0.038665771484375,
-0.028717041015625,
-0.0032596588134765625,
0.0191497802734375,
0.00542449951171875,
-0.0283203125,
0.0007190704345703125,
0.0170440673828125,
0.0161895751953125,
-0.008453369140625,
0.04254150390625,
0.0114898681640625,
0.019927978515625,
-0.0047760009765625,
-0.009490966796875,
0.03948974609375,
-0.059814453125,
0.01250457763671875,
0.0183868408203125,
-0.0013904571533203125,
-0.00942230224609375,
0.01094818115234375,
0.01335906982421875,
0.0032901763916015625,
0.00449371337890625
] |
38cf323864bf114e903f064492f0620d166e7a52
|
Wordpress Stackexchange
Q: Utilize TinyMCE hyperlink chooser outside of TinyMCE Is it possible to use the "Insert/edit link" dialog box outside of TinyMCE? For example, if I wanted to add that dialog box to a generic button within a plugin settings form, is it possible to include just the portion of the TinyMCE that is required to make it work?
A: this was asked before, but sadly the "Insert/edit link" (with interlinking) was developed as a tinymce plugin so using it outside of tinymce is not really possible unless your write the whole thing from scratch.
|
Q: Utilize TinyMCE hyperlink chooser outside of TinyMCE Is it possible to use the "Insert/edit link" dialog box outside of TinyMCE? For example, if I wanted to add that dialog box to a generic button within a plugin settings form, is it possible to include just the portion of the TinyMCE that is required to make it work?
A: this was asked before, but sadly the "Insert/edit link" (with interlinking) was developed as a tinymce plugin so using it outside of tinymce is not really possible unless your write the whole thing from scratch.
|
wordpress
|
{
"language": "en",
"length": 94,
"provenance": "stackexchange_00019.jsonl.gz:408716",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15050"
}
|
[
0.05419921875,
-0.0037689208984375,
0.016571044921875,
-0.0138092041015625,
0.01558685302734375,
-0.01422119140625,
0.0635986328125,
-0.0164337158203125,
0.0251617431640625,
0.0287017822265625,
-0.020721435546875,
-0.003040313720703125,
0.01177978515625,
-0.019012451171875,
-0.02581787109375,
-0.0116119384765625,
0.003925323486328125,
-0.01438140869140625,
0.00948333740234375,
-0.022705078125,
0.022064208984375,
-0.039520263671875,
0.027496337890625,
-0.0389404296875,
0.0248260498046875,
0.0523681640625,
0.024871826171875,
0.00945281982421875,
0.0106048583984375,
0.019500732421875,
0.0281829833984375,
-0.06048583984375,
0.0225677490234375,
0.039215087890625,
-0.03955078125,
0.039306640625,
0.011688232421875,
0.01076507568359375,
0.005218505859375,
0.0289459228515625,
0.01409912109375,
-0.007068634033203125,
0.0038318634033203125,
0.0269775390625,
-0.032440185546875,
-0.05352783203125,
0.036529541015625,
-0.015625,
-0.016143798828125,
-0.034271240234375,
0.0039825439453125,
-0.033782958984375,
0.0301055908203125,
0.00257110595703125,
-0.019256591796875,
0.004940032958984375,
-0.027923583984375,
0.027984619140625,
0.0277099609375,
0.018157958984375,
-0.007476806640625,
-0.01398468017578125,
0.006561279296875,
-0.02313232421875,
0.02520751953125,
-0.0142059326171875,
-0.0517578125,
0.034942626953125,
0.025054931640625,
0.023681640625,
-0.00690460205078125,
-0.0259246826171875,
0.0157928466796875,
-0.04083251953125,
-0.0029735565185546875,
0.0394287109375,
-0.003986358642578125,
0.007656097412109375,
0.00785064697265625,
-0.01824951171875,
0.014404296875,
0.0229034423828125,
-0.0254058837890625,
-0.04998779296875,
0.0264434814453125,
-0.016571044921875,
-0.003017425537109375,
-0.01390838623046875,
-0.03106689453125,
-0.00047326087951660156,
-0.03173828125,
-0.03765869140625,
-0.0015497207641601562,
0.03497314453125,
-0.0202178955078125,
0.0175628662109375,
-0.0216064453125,
-0.01873779296875,
0.0024700164794921875,
0.00970458984375,
0.033966064453125,
-0.0426025390625,
0.047088623046875,
-0.0291290283203125,
0.013336181640625,
0.05010986328125,
0.0188751220703125,
-0.041015625,
-0.000904083251953125,
-0.004459381103515625,
-0.0230255126953125,
0.028228759765625,
-0.0065765380859375,
-0.006847381591796875,
0.004230499267578125,
-0.0121917724609375,
-0.05279541015625,
0.06549072265625,
-0.0017261505126953125,
0.05316162109375,
0.01508331298828125,
0.0305633544921875,
0.00791168212890625,
-0.0026149749755859375,
-0.036529541015625,
-0.029998779296875,
-0.0171661376953125,
-0.00577545166015625,
-0.00957489013671875,
-0.0033588409423828125,
-0.026336669921875,
0.01103973388671875,
0.06158447265625,
0.054595947265625,
0.015350341796875,
-0.02099609375,
-0.006938934326171875,
0.006206512451171875,
0.0212860107421875,
-0.03668212890625,
0.0222015380859375,
0.0004754066467285156,
0.038360595703125,
0.023590087890625,
-0.034881591796875,
0.036651611328125,
0.01486968994140625,
-0.00136566162109375,
-0.005527496337890625,
-0.062286376953125,
-0.0127105712890625,
-0.0066070556640625,
0.033905029296875,
-0.0058135986328125,
0.0134429931640625,
-0.079833984375,
0.047210693359375,
-0.0694580078125,
0.045257568359375,
-0.08282470703125,
-0.005992889404296875,
0.01084136962890625,
0.0718994140625,
-0.027923583984375,
-0.0182952880859375,
-0.02886962890625,
-0.066650390625,
-0.001399993896484375,
0.01934814453125,
0.0557861328125,
-0.038818359375,
-0.0201568603515625,
-0.008392333984375,
0.0216522216796875,
0.002925872802734375,
0.0224456787109375,
0.0271148681640625,
0.054534912109375,
0.009674072265625,
0.0301055908203125,
0.024261474609375,
-0.04296875,
0.11553955078125,
-0.0309600830078125,
-0.0216217041015625,
0.04119873046875,
0.006649017333984375,
0.08197021484375,
-0.005542755126953125,
0.01385498046875,
-0.01123046875,
0.0196685791015625,
0.0631103515625,
-0.00908660888671875,
0.006984710693359375,
-0.05096435546875,
-0.03662109375,
-0.0046234130859375,
-0.030792236328125,
-0.006916046142578125,
-0.00701141357421875,
-0.0113372802734375,
0.0113525390625,
0.0174407958984375,
-0.031585693359375,
0.00913238525390625,
-0.01885986328125,
0.0114898681640625,
0.023834228515625,
0.00856781005859375,
0.0006122589111328125,
-0.00457763671875,
0.0251617431640625,
-0.05670166015625,
-0.0222930908203125,
0.052001953125,
-0.0017719268798828125,
0.021942138671875,
0.01175689697265625,
0.017425537109375,
0.020660400390625,
0.004276275634765625,
0.026123046875,
0.01319122314453125,
-0.004642486572265625,
-0.052032470703125,
-0.01377105712890625,
-0.04144287109375,
-0.0657958984375,
-0.0087432861328125,
-0.01430511474609375,
0.0596923828125,
0.006824493408203125,
0.01560211181640625,
-0.021331787109375,
0.009246826171875,
-0.0166168212890625,
-0.028778076171875,
0.0017633438110351562,
0.03436279296875,
0.033447265625,
0.01522064208984375,
0.00927734375,
0.014678955078125,
0.0174407958984375,
-0.0229034423828125,
0.0272369384765625,
-0.01336669921875,
-0.0018491744995117188,
0.068359375,
0.00843048095703125,
0.0186920166015625,
-0.0069732666015625,
0.00914764404296875,
-0.007350921630859375,
0.0121612548828125,
0.004413604736328125,
0.035369873046875,
0.0049285888671875,
-0.00923919677734375,
-0.01453399658203125,
-0.035980224609375,
-0.017364501953125,
-0.0333251953125,
0.033935546875,
-0.00027871131896972656,
0.04888916015625,
0.03741455078125,
0.01654052734375,
-0.0219879150390625,
-0.005924224853515625,
-0.01546478271484375,
-0.0149383544921875,
0.002414703369140625,
0.043914794921875,
0.0182952880859375,
-0.0587158203125,
0.002429962158203125,
0.03802490234375,
0.021881103515625,
-0.040771484375,
-0.023773193359375,
0.0166473388671875,
-0.007350921630859375,
-0.01125335693359375,
-0.0645751953125,
0.052734375,
-0.0111236572265625,
0.076171875,
0.0155181884765625,
0.05517578125,
-0.0360107421875,
-0.034332275390625,
0.05914306640625,
-0.011199951171875,
-0.060455322265625,
0.0190887451171875,
-0.0162353515625,
0.0263214111328125,
-0.01041412353515625,
0.056488037109375,
0.061065673828125,
-0.021697998046875,
0.0245361328125,
0.0025177001953125,
0.009307861328125,
-0.013916015625,
0.0004525184631347656,
0.0176849365234375,
0.01302337646484375,
-0.0408935546875,
0.02386474609375,
-0.004917144775390625,
-0.037109375,
-0.0240631103515625,
-0.043853759765625,
-0.037841796875,
-0.0292816162109375,
-0.0616455078125,
0.0182952880859375,
0.0270843505859375,
-0.054107666015625,
0.0257110595703125,
0.0135955810546875,
-0.0369873046875,
-0.03271484375,
0.070068359375,
0.0095062255859375,
-0.0034275054931640625,
-0.039093017578125,
0.0080718994140625,
-0.035797119140625,
-0.033050537109375,
-0.042388916015625,
0.020263671875,
0.004901885986328125,
-0.0012359619140625,
-0.004283905029296875,
-0.00588226318359375,
0.00830841064453125,
0.0290374755859375,
-0.003002166748046875,
0.0104217529296875,
-0.023712158203125,
-0.0080108642578125,
-0.0372314453125,
0.01947021484375,
-0.01910400390625,
0.0413818359375,
0.02972412109375,
-0.0016965866088867188,
0.01250457763671875,
0.0252838134765625,
0.024566650390625,
0.040771484375,
0.0251922607421875,
-0.0258026123046875,
0.0611572265625,
0.050628662109375,
-0.00788116455078125,
0.020599365234375,
0.0214996337890625,
0.00708770751953125,
0.01715087890625,
-0.034332275390625,
-0.024749755859375,
0.027801513671875,
0.0119476318359375,
0.0156402587890625,
0.054168701171875,
0.016815185546875,
0.007640838623046875,
0.01461029052734375,
-0.015655517578125,
-0.0139923095703125,
-0.038909912109375,
0.036407470703125,
-0.0031986236572265625,
0.039825439453125,
0.017120361328125,
0.027923583984375,
0.020263671875,
0.03326416015625,
-0.0165252685546875,
0.00164031982421875,
0.0083160400390625,
-0.049652099609375,
0.038116455078125,
-0.03839111328125,
0.0017480850219726562,
-0.038909912109375,
0.045654296875,
-0.040863037109375,
-0.00942230224609375,
0.0006222724914550781,
0.0017004013061523438,
-0.00603485107421875,
-0.0096435546875,
-0.047149658203125,
-0.00254058837890625,
0.0189208984375,
-0.01425933837890625,
-0.00183868408203125,
-0.01092529296875,
-0.0274200439453125,
0.06341552734375,
0.001007080078125,
-0.0015649795532226562,
0.0306396484375,
0.0073394775390625,
-0.0079345703125,
0.055511474609375,
-0.019012451171875,
0.01904296875,
-0.038360595703125,
-0.010528564453125,
-0.0882568359375,
-0.00920867919921875,
-0.003326416015625,
0.04669189453125,
-0.0011701583862304688,
-0.0226287841796875,
0.00054168701171875,
0.055816650390625,
-0.04315185546875,
0.027801513671875,
-0.0005364418029785156,
0.060791015625,
-0.0249481201171875,
-0.034637451171875,
-0.0062103271484375,
-0.047760009765625,
0.01438140869140625,
0.01053619384765625,
-0.078369140625,
0.0103607177734375,
-0.0030231475830078125,
0.00785064697265625,
0.057525634765625,
-0.0509033203125,
-0.06787109375,
-0.04132080078125,
-0.016448974609375,
0.024200439453125,
0.00384521484375,
-0.018951416015625,
-0.040435791015625,
-0.080810546875,
0.00832366943359375,
-0.00487518310546875,
-0.014251708984375,
-0.004302978515625,
0.06317138671875,
0.0275115966796875,
-0.002803802490234375,
0.01416778564453125,
0.00395965576171875,
0.039642333984375,
0.01218414306640625,
-0.039031982421875,
-0.007617950439453125,
-0.026336669921875,
-0.02630615234375,
0.01175689697265625,
0.0154266357421875,
-0.05145263671875,
0.0550537109375,
0.0174102783203125,
0.00933837890625,
0.0128936767578125,
0.017120361328125,
0.00445556640625,
0.0086822509765625,
-0.01593017578125,
-0.00669097900390625,
-0.01483917236328125,
0.0215301513671875,
-0.0092010498046875,
0.01161956787109375,
-0.0245361328125,
0.00579833984375,
-0.00960540771484375,
0.037506103515625,
0.039306640625,
0.0291290283203125,
0.013031005859375,
-0.0249786376953125,
-0.0019969940185546875,
-0.014129638671875,
0.059539794921875,
0.0027141571044921875,
0.03961181640625,
0.05145263671875,
-0.004901885986328125,
-0.006107330322265625,
0.02935791015625,
-0.004878997802734375,
0.0181121826171875,
0.0338134765625,
0.0008111000061035156,
-0.050079345703125,
0.01050567626953125,
-0.0170745849609375,
-0.042755126953125,
0.01251983642578125,
-0.0292205810546875,
-0.014190673828125,
0.00997161865234375,
0.03192138671875,
0.08306884765625,
-0.032806396484375,
0.02386474609375,
-0.0294647216796875,
0.004497528076171875,
-0.0230712890625,
0.00789642333984375,
0.0728759765625,
0.0012683868408203125,
0.030609130859375,
-0.007328033447265625,
0.044891357421875,
0.0504150390625,
-0.014190673828125,
0.0149383544921875,
0.036865234375,
-0.00025582313537597656,
-0.0419921875,
-0.00321197509765625,
-0.0005121231079101562,
0.0005612373352050781,
0.0159759521484375,
-0.0228424072265625,
0.03167724609375,
0.020172119140625,
-0.0006198883056640625,
0.007038116455078125,
-0.0224761962890625,
0.033050537109375,
0.0157928466796875,
-0.025970458984375,
-0.010711669921875,
-0.002933502197265625,
-0.007709503173828125,
0.01123046875,
0.0155487060546875,
-0.032257080078125,
0.0160675048828125,
-0.037628173828125,
-0.025299072265625,
-0.0645751953125,
-0.00138092041015625,
0.028717041015625,
-0.004352569580078125,
-0.006938934326171875,
-0.007251739501953125,
-0.004993438720703125,
-0.0120391845703125,
-0.0260009765625,
-0.0177764892578125,
0.064697265625,
-0.0279388427734375,
0.01251983642578125,
-0.01629638671875,
0.01262664794921875,
-0.00856781005859375,
0.01123809814453125,
0.0227813720703125,
0.017364501953125,
0.015899658203125,
-0.032867431640625,
-0.04840087890625,
-0.048065185546875,
-0.0511474609375,
-0.0310211181640625,
-0.034515380859375,
0.0234375,
0.0281982421875,
0.031463623046875,
0.0027294158935546875,
-0.026885986328125,
0.0204010009765625,
-0.0169677734375,
-0.0160369873046875,
0.01273345947265625,
0.0157623291015625,
0.01861572265625,
-0.03594970703125,
0.055389404296875,
0.009735107421875,
-0.0127410888671875,
-0.01983642578125,
-0.02496337890625,
0.00847625732421875,
-0.06890869140625,
-0.010589599609375,
-0.047271728515625,
0.032501220703125,
0.06182861328125,
0.0196380615234375,
0.015625,
0.0191497802734375,
-0.0269622802734375,
-0.00202178955078125,
-0.0260772705078125,
0.0225982666015625,
-0.0438232421875,
-0.010162353515625,
0.0259552001953125,
-0.057708740234375,
-0.049957275390625,
0.024261474609375,
0.0350341796875,
0.0033588409423828125,
-0.02972412109375,
-0.00836944580078125,
-0.0027828216552734375,
-0.031585693359375,
0.034332275390625,
0.0380859375,
0.0026226043701171875,
0.037017822265625,
0.0297088623046875,
0.0157928466796875,
0.0228424072265625,
0.016937255859375,
-0.0185089111328125,
0.00453948974609375,
-0.011199951171875,
-0.01047515869140625,
0.01091766357421875,
-0.0169677734375,
0.0037708282470703125,
0.040008544921875,
0.04901123046875,
0.09014892578125,
-0.07904052734375,
0.0175018310546875,
0.0391845703125,
-0.0020999908447265625,
0.03643798828125,
-0.01081085205078125,
0.0162200927734375,
-0.016693115234375,
0.03375244140625,
0.0058746337890625,
-0.00669097900390625,
0.0036945343017578125,
-0.029876708984375,
-0.011749267578125,
0.0077667236328125,
-0.0081939697265625,
0.00852203369140625,
-0.0288543701171875,
0.007354736328125,
0.0180511474609375,
0.02117919921875,
0.0014591217041015625,
0.04559326171875,
-0.02197265625,
0.0007863044738769531,
-0.020904541015625,
0.0303955078125,
-0.0031223297119140625,
-0.01177215576171875,
0.00012505054473876953,
0.0025691986083984375,
0.044708251953125,
0.038055419921875,
-0.01522064208984375,
0.0016660690307617188,
0.0211639404296875,
0.01297760009765625,
0.0850830078125,
-0.00910186767578125,
-0.0271453857421875,
0.006778717041015625,
0.0189666748046875,
-0.027313232421875,
0.012847900390625,
0.0169525146484375,
0.00589752197265625,
0.057830810546875,
0.042144775390625,
0.0005269050598144531,
-0.03387451171875,
0.053802490234375,
-0.018402099609375,
-0.0311431884765625,
-0.0322265625,
-0.0150909423828125,
-0.0457763671875,
-0.02606201171875,
-0.043853759765625,
-0.052734375,
0.0010728836059570312,
-0.0758056640625,
-0.06842041015625,
0.1429443359375,
-0.01073455810546875,
0.0212860107421875,
-0.010528564453125,
0.0703125,
-0.0233306884765625,
0.04498291015625,
-0.0084991455078125,
0.031524658203125,
-0.0030879974365234375,
-0.00370025634765625,
-0.021270751953125,
-0.02197265625,
0.00296783447265625,
0.037567138671875,
-0.0083160400390625,
-0.00551605224609375,
-0.0097198486328125,
0.0007505416870117188,
0.0222015380859375,
0.01611328125,
-0.0045623779296875,
0.0179290771484375,
0.04144287109375,
-0.0258026123046875,
0.0401611328125,
0.0113067626953125,
0.020477294921875,
-0.00958251953125,
0.045867919921875,
0.0570068359375,
-0.011810302734375,
-0.0172576904296875,
0.0308380126953125,
-0.00006896257400512695,
0.00722503662109375,
0.002986907958984375,
-0.01861572265625,
-0.0389404296875,
-0.0322265625,
0.0628662109375,
-0.00411224365234375,
-0.01605224609375,
-0.04742431640625,
-0.037933349609375,
0.0189361572265625,
0.00437164306640625,
-0.00994110107421875,
-0.020294189453125,
0.0014972686767578125,
0.07855224609375,
-0.07122802734375,
-0.033050537109375,
-0.00330352783203125,
0.004596710205078125,
0.0027866363525390625,
-0.037872314453125,
0.010833740234375,
-0.06689453125,
0.0127410888671875,
0.043060302734375,
0.007720947265625,
-0.0241241455078125,
-0.05548095703125,
-0.0141754150390625,
-0.0235748291015625,
-0.0030460357666015625,
-0.003818511962890625,
0.00659942626953125,
-0.00283050537109375,
0.01538848876953125,
0.044097900390625,
-0.0258026123046875,
-0.007904052734375,
0.0186767578125,
0.021514892578125,
0.034393310546875,
0.007080078125,
-0.019439697265625,
-0.036285400390625,
0.014892578125,
0.031036376953125,
0.0301513671875,
-0.01071929931640625,
0.04949951171875,
-0.003108978271484375,
-0.0164337158203125,
-0.039794921875,
0.020294189453125,
0.0251922607421875,
0.043975830078125,
0.00023746490478515625,
0.0241241455078125,
0.01152801513671875,
0.01023101806640625,
0.034698486328125,
0.08837890625,
0.02838134765625,
-0.00009518861770629883,
0.04681396484375,
0.0196380615234375,
0.0228424072265625,
-0.0204925537109375,
0.0281524658203125,
-0.07452392578125,
0.045623779296875,
0.01526641845703125,
0.0009784698486328125,
-0.001201629638671875,
-0.0439453125,
0.07135009765625,
-0.025787353515625,
0.0300750732421875,
-0.0135345458984375,
-0.0153961181640625,
0.056182861328125,
-0.043243408203125,
0.046478271484375,
-0.0166015625,
-0.0079803466796875,
-0.0216827392578125,
0.01360321044921875,
0.0211029052734375,
0.0079193115234375,
0.0289154052734375,
0.001560211181640625,
0.026275634765625,
-0.03741455078125,
0.026641845703125,
0.005199432373046875,
-0.04315185546875,
0.0014467239379882812,
0.007503509521484375,
0.0058441162109375,
-0.01093292236328125,
-0.0105133056640625,
0.007381439208984375,
0.0153961181640625,
0.006458282470703125,
-0.0014486312866210938,
0.03106689453125,
-0.0168914794921875,
0.00437164306640625,
-0.0143280029296875,
0.028289794921875,
-0.005374908447265625,
-0.00860595703125,
-0.0185394287109375,
0.050018310546875,
0.02789306640625,
-0.01678466796875,
-0.03375244140625,
0.0474853515625,
0.0002665519714355469,
-0.0031890869140625,
0.032196044921875,
0.0007147789001464844,
0.00628662109375,
-0.010284423828125,
0.054595947265625,
-0.0025081634521484375,
-0.0177001953125,
-0.009063720703125,
-0.0102996826171875,
0.020477294921875,
0.051239013671875,
0.0155029296875,
0.040802001953125,
0.0158233642578125,
0.030792236328125,
0.01082611083984375,
-0.01531982421875,
0.0019397735595703125,
0.0063629150390625,
0.01012420654296875,
-0.01507568359375,
0.01202392578125,
-0.004833221435546875,
-0.022857666015625,
0.03009033203125,
-0.028778076171875,
0.028350830078125,
-0.08612060546875,
0.062164306640625,
0.0386962890625,
0.078125,
-0.020904541015625,
0.0187530517578125,
0.018798828125,
0.033447265625,
0.047088623046875,
-0.00720977783203125,
-0.021820068359375,
-0.029571533203125,
-0.01088714599609375,
0.0171356201171875,
-0.03131103515625,
-0.0189971923828125,
-0.079833984375,
-0.0413818359375,
0.06787109375,
0.01490020751953125,
-0.04315185546875,
-0.0029926300048828125,
-0.00005048513412475586,
0.034698486328125,
0.00960540771484375,
0.03448486328125,
-0.01320648193359375,
0.0287628173828125,
-0.04205322265625,
-0.022796630859375,
-0.01995849609375,
0.048828125,
-0.034423828125,
0.060455322265625,
0.0723876953125,
-0.048309326171875,
-0.0159149169921875,
0.05963134765625,
0.06549072265625,
0.1005859375,
-0.0162811279296875,
-0.01132965087890625,
0.01812744140625,
-0.007228851318359375,
-0.008636474609375,
-0.03619384765625,
0.003910064697265625,
-0.0494384765625,
-0.004146575927734375,
-0.0274658203125,
-0.0148468017578125,
-0.01544952392578125,
-0.0506591796875,
-0.06146240234375,
0.05517578125,
-0.004283905029296875,
-0.028900146484375,
-0.01352691650390625,
0.0190277099609375,
-0.00433349609375,
0.0081939697265625,
-0.016845703125,
-0.006103515625,
-0.0117034912109375,
0.006195068359375,
0.01995849609375,
0.03717041015625,
0.0036907196044921875,
-0.0015392303466796875,
-0.032501220703125,
0.018585205078125,
0.0043792724609375,
0.021270751953125,
0.037628173828125,
-0.0121002197265625,
0.033477783203125,
0.0286407470703125,
-0.0501708984375,
-0.040008544921875,
-0.036834716796875,
-0.023284912109375,
0.005733489990234375,
-0.0015993118286132812,
-0.035186767578125,
-0.027618408203125,
0.0489501953125,
0.04833984375,
0.0182037353515625,
-0.024749755859375,
0.042816162109375,
-0.01433563232421875,
-0.05059814453125,
-0.00006651878356933594,
0.006290435791015625,
-0.0322265625,
0.004611968994140625,
0.027679443359375,
0.01157379150390625,
0.0020236968994140625,
0.0244293212890625,
-0.00814056396484375,
-0.006866455078125,
0.032501220703125,
-0.0159759521484375,
-0.044677734375,
0.095703125,
0.067626953125,
-0.04840087890625,
0.007659912109375,
0.003299713134765625,
-0.054656982421875,
0.057159423828125,
-0.004673004150390625,
0.015869140625,
-0.0080413818359375,
-0.0350341796875,
-0.00023829936981201172,
-0.0016622543334960938,
0.05224609375,
-0.03607177734375,
-0.029266357421875,
-0.0141143798828125,
0.0083465576171875,
0.0014314651489257812,
-0.0245513916015625,
-0.031951904296875,
0.05914306640625,
-0.005840301513671875,
0.09326171875,
-0.039031982421875,
-0.0007638931274414062,
-0.042510986328125,
0.0207672119140625,
-0.03021240234375,
0.0423583984375,
-0.005672454833984375,
0.0280609130859375,
0.015533447265625,
0.026702880859375,
-0.0137176513671875,
0.00030040740966796875,
0.0005545616149902344,
0.0614013671875,
-0.0190887451171875,
0.0024967193603515625
] |
37f3c9030584a9d19ceaeaae19da594dec2b7aa0
|
Wordpress Stackexchange
Q: How does one delete orphan custom post type? I created some posts using a custom post type, then I decided to delete this custom post type but of course the old posts remained orphan inside the database.
How can I remove these orphan posts and all related attachment (post meta, etc.) safely from DB?
A: DELETE a,b,c FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID=c.post_id)
WHERE a.post_type='customposttype'
|
Q: How does one delete orphan custom post type? I created some posts using a custom post type, then I decided to delete this custom post type but of course the old posts remained orphan inside the database.
How can I remove these orphan posts and all related attachment (post meta, etc.) safely from DB?
A: DELETE a,b,c FROM wp_posts a
LEFT JOIN wp_term_relationships b ON (a.ID=b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID=c.post_id)
WHERE a.post_type='customposttype'
A: You need to use a few SQL queries, you can run them in something like PHPMyADMIN
DELETE FROM wp_posts WHERE `post_type` = 'customposttypename'
DELETE FROM wp_post_meta WHERE `meta_key` = 'metakeyname'
The above two will get you started. You may need to run other queries to clean up other entries but only you will know what other stuff you've inserted into your DB.
A word of warning! MAKE SURE YOU BACKUP YOUR DATABASE FIRST. And also before you run the DELETE query use a SELECT * FROM first to check whats returned and thats what you want to be deleted.
|
wordpress
|
{
"language": "en",
"length": 175,
"provenance": "stackexchange_00019.jsonl.gz:408731",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15108"
}
|
[
0.07958984375,
0.01114654541015625,
-0.006320953369140625,
-0.050628662109375,
0.036834716796875,
-0.02618408203125,
0.06298828125,
-0.00887298583984375,
-0.0284423828125,
0.0325927734375,
-0.002498626708984375,
-0.031494140625,
0.019622802734375,
-0.0249786376953125,
-0.00010305643081665039,
-0.052642822265625,
0.04278564453125,
0.0086517333984375,
0.0628662109375,
0.0036106109619140625,
-0.00452423095703125,
0.0167388916015625,
0.0655517578125,
-0.0185699462890625,
0.0247650146484375,
-0.0117034912109375,
0.045379638671875,
-0.01165008544921875,
0.004878997802734375,
-0.0190582275390625,
0.0265655517578125,
0.030670166015625,
0.0083160400390625,
-0.017242431640625,
0.0323486328125,
0.0047607421875,
-0.0037326812744140625,
0.0199432373046875,
0.0276947021484375,
-0.0063018798828125,
0.006084442138671875,
-0.0164337158203125,
0.03143310546875,
-0.062408447265625,
0.00196075439453125,
-0.0015993118286132812,
0.0118865966796875,
-0.037506103515625,
-0.000766754150390625,
-0.0318603515625,
0.0119171142578125,
-0.00897216796875,
0.05499267578125,
-0.07513427734375,
-0.0347900390625,
-0.0491943359375,
0.0088348388671875,
-0.01116180419921875,
0.032501220703125,
-0.003814697265625,
-0.01351165771484375,
-0.00603485107421875,
0.0287933349609375,
-0.007045745849609375,
0.007404327392578125,
0.01165008544921875,
0.02703857421875,
0.007633209228515625,
-0.036590576171875,
0.0114288330078125,
0.0343017578125,
-0.030242919921875,
0.035552978515625,
-0.039398193359375,
0.036346435546875,
-0.0147552490234375,
-0.005947113037109375,
-0.00368499755859375,
0.0033397674560546875,
0.01904296875,
0.009307861328125,
-0.0250244140625,
-0.0379638671875,
0.00766754150390625,
-0.020599365234375,
0.01265716552734375,
-0.009521484375,
-0.01267242431640625,
-0.01094818115234375,
-0.020111083984375,
-0.02069091796875,
-0.0931396484375,
-0.0030460357666015625,
0.038116455078125,
0.0053558349609375,
-0.0164642333984375,
0.028656005859375,
0.037261962890625,
-0.012359619140625,
-0.0247650146484375,
0.02764892578125,
-0.0467529296875,
0.0032558441162109375,
-0.0170135498046875,
0.0181427001953125,
-0.01154327392578125,
-0.04412841796875,
-0.054656982421875,
0.024444580078125,
0.04052734375,
-0.0189971923828125,
-0.0379638671875,
-0.0014543533325195312,
-0.01355743408203125,
-0.011444091796875,
0.017333984375,
-0.0294189453125,
0.0208740234375,
-0.00247955322265625,
0.01430511474609375,
-0.01210784912109375,
0.011383056640625,
-0.003963470458984375,
-0.041046142578125,
0.0133209228515625,
-0.01393890380859375,
-0.027618408203125,
0.002910614013671875,
0.038299560546875,
0.0209503173828125,
-0.07122802734375,
-0.004695892333984375,
0.0845947265625,
0.031524658203125,
0.035888671875,
-0.038726806640625,
-0.002269744873046875,
-0.004230499267578125,
-0.00899505615234375,
-0.002170562744140625,
0.063232421875,
-0.039825439453125,
-0.021270751953125,
0.051300048828125,
0.038360595703125,
0.0653076171875,
0.010894775390625,
-0.0295257568359375,
-0.004863739013671875,
-0.0364990234375,
0.005405426025390625,
-0.057891845703125,
0.059234619140625,
-0.00980377197265625,
-0.0193939208984375,
-0.048095703125,
0.04266357421875,
-0.054412841796875,
-0.0194244384765625,
-0.07275390625,
0.00366973876953125,
-0.01154327392578125,
0.032012939453125,
-0.020843505859375,
-0.04132080078125,
0.033782958984375,
-0.053955078125,
-0.0193634033203125,
0.0244293212890625,
-0.0140838623046875,
0.01001739501953125,
-0.06781005859375,
0.009368896484375,
-0.00736236572265625,
-0.010589599609375,
0.04644775390625,
0.0209808349609375,
-0.05706787109375,
0.01776123046875,
0.037384033203125,
-0.022491455078125,
-0.02734375,
-0.0205078125,
-0.0014925003051757812,
-0.06732177734375,
0.00826263427734375,
0.0128021240234375,
0.05743408203125,
0.0400390625,
0.0147247314453125,
0.0579833984375,
-0.02484130859375,
-0.02923583984375,
0.0250701904296875,
0.017547607421875,
-0.035858154296875,
-0.0239410400390625,
-0.034271240234375,
-0.002628326416015625,
0.016876220703125,
-0.0150146484375,
0.01377105712890625,
-0.00357818603515625,
-0.0158538818359375,
-0.059844970703125,
-0.00396728515625,
-0.015899658203125,
0.055633544921875,
-0.038482666015625,
0.00893402099609375,
0.03887939453125,
-0.020721435546875,
-0.026641845703125,
-0.001155853271484375,
-0.0111083984375,
-0.025726318359375,
0.007701873779296875,
0.01512908935546875,
-0.0143890380859375,
0.0133514404296875,
-0.0248260498046875,
-0.037261962890625,
-0.034423828125,
0.0238494873046875,
0.040435791015625,
-0.0301666259765625,
-0.00959014892578125,
-0.0225372314453125,
0.03436279296875,
0.0030689239501953125,
-0.036376953125,
0.0266876220703125,
-0.01065826416015625,
-0.050567626953125,
-0.045562744140625,
0.004276275634765625,
0.031280517578125,
-0.044708251953125,
0.007720947265625,
0.05133056640625,
0.00431060791015625,
0.017059326171875,
-0.0192718505859375,
0.033721923828125,
0.01094818115234375,
-0.021636962890625,
0.01120758056640625,
0.032989501953125,
0.03173828125,
0.052825927734375,
-0.015716552734375,
0.00312042236328125,
0.0205535888671875,
0.0111846923828125,
0.040374755859375,
0.02777099609375,
0.00588226318359375,
-0.0166015625,
0.00635528564453125,
0.004791259765625,
0.0008869171142578125,
-0.033660888671875,
-0.039764404296875,
-0.005504608154296875,
0.0994873046875,
-0.02923583984375,
0.05657958984375,
0.0269775390625,
-0.043670654296875,
0.00524139404296875,
0.0299072265625,
-0.0024242401123046875,
-0.00791168212890625,
0.000888824462890625,
0.03253173828125,
-0.00734710693359375,
-0.018310546875,
0.0032138824462890625,
0.0104522705078125,
-0.01409912109375,
-0.0322265625,
0.044158935546875,
0.00023663043975830078,
-0.025665283203125,
-0.047210693359375,
-0.027862548828125,
0.021453857421875,
-0.0104522705078125,
-0.01641845703125,
-0.0016508102416992188,
0.00856781005859375,
0.05694580078125,
0.0012969970703125,
0.01163482666015625,
0.025177001953125,
0.01197052001953125,
-0.043212890625,
-0.08984375,
0.047821044921875,
-0.0443115234375,
0.0236358642578125,
0.0810546875,
0.01885986328125,
0.0012845993041992188,
0.0018482208251953125,
0.048065185546875,
0.01763916015625,
-0.004497528076171875,
-0.0179290771484375,
-0.043701171875,
-0.004711151123046875,
0.00036454200744628906,
0.0318603515625,
0.0860595703125,
-0.0014333724975585938,
-0.0247344970703125,
0.0220184326171875,
0.0635986328125,
0.01038360595703125,
-0.01251220703125,
0.025238037109375,
0.007198333740234375,
-0.03253173828125,
-0.01215362548828125,
0.0087890625,
0.00124359130859375,
-0.02349853515625,
-0.015899658203125,
0.041351318359375,
-0.0020313262939453125,
-0.034088134765625,
-0.01166534423828125,
-0.05242919921875,
-0.06976318359375,
-0.0005159378051757812,
-0.0117340087890625,
0.015777587890625,
0.0347900390625,
0.0184478759765625,
-0.049896240234375,
0.026580810546875,
0.0269927978515625,
-0.03955078125,
0.0263671875,
0.03973388671875,
-0.0111236572265625,
0.01409149169921875,
0.005340576171875,
0.0186004638671875,
0.044647216796875,
-0.05316162109375,
-0.0221405029296875,
-0.006072998046875,
0.0218658447265625,
0.017425537109375,
-0.027099609375,
-0.0024509429931640625,
0.01512908935546875,
-0.0269622802734375,
-0.03546142578125,
-0.031280517578125,
-0.0229034423828125,
-0.038116455078125,
0.005825042724609375,
0.031494140625,
-0.0130615234375,
-0.04437255859375,
0.03497314453125,
0.028594970703125,
0.03857421875,
-0.00350189208984375,
0.00011414289474487305,
0.0333251953125,
0.01580810546875,
0.042877197265625,
-0.0306243896484375,
0.0175628662109375,
-0.0303192138671875,
0.03167724609375,
0.00377655029296875,
0.0014905929565429688,
0.005619049072265625,
-0.007678985595703125,
-0.01003265380859375,
-0.058502197265625,
0.054351806640625,
-0.029449462890625,
0.024169921875,
-0.043426513671875,
-0.036346435546875,
-0.011749267578125,
0.09674072265625,
-0.034423828125,
-0.00864410400390625,
-0.0286865234375,
0.00046133995056152344,
-0.01165008544921875,
-0.043121337890625,
-0.02032470703125,
-0.004955291748046875,
-0.02008056640625,
0.0256805419921875,
0.0241546630859375,
-0.0171661376953125,
-0.03460693359375,
0.060028076171875,
-0.04168701171875,
-0.002788543701171875,
0.047698974609375,
-0.08587646484375,
-0.0027904510498046875,
0.014923095703125,
-0.01525115966796875,
-0.034637451171875,
-0.050811767578125,
-0.0276947021484375,
-0.049530029296875,
-0.00809478759765625,
-0.0254974365234375,
0.0309295654296875,
-0.00545501708984375,
0.0182647705078125,
-0.00260162353515625,
0.026611328125,
0.0091552734375,
0.005023956298828125,
-0.030487060546875,
-0.005130767822265625,
-0.07354736328125,
0.0261688232421875,
-0.0166168212890625,
-0.0038814544677734375,
-0.017242431640625,
-0.0306396484375,
-0.042510986328125,
-0.0257568359375,
-0.00360870361328125,
0.037872314453125,
0.0222930908203125,
-0.0195770263671875,
-0.014190673828125,
-0.017974853515625,
-0.06658935546875,
0.0253753662109375,
-0.035614013671875,
-0.00476837158203125,
-0.049072265625,
-0.0635986328125,
0.0377197265625,
0.024871826171875,
-0.0245208740234375,
0.0055389404296875,
0.0198516845703125,
0.003223419189453125,
-0.031829833984375,
-0.0579833984375,
0.01102447509765625,
-0.00257110595703125,
-0.0110321044921875,
0.07806396484375,
0.03436279296875,
0.037567138671875,
-0.0002765655517578125,
-0.035858154296875,
-0.013031005859375,
-0.014434814453125,
0.07733154296875,
0.003978729248046875,
0.01508331298828125,
-0.00441741943359375,
-0.040618896484375,
0.0269775390625,
0.048492431640625,
0.015106201171875,
-0.043365478515625,
0.031005859375,
0.05023193359375,
-0.04736328125,
0.0184783935546875,
-0.030059814453125,
-0.02227783203125,
0.03338623046875,
-0.0219879150390625,
0.0190277099609375,
0.0206298828125,
-0.002529144287109375,
0.016510009765625,
-0.03369140625,
0.019287109375,
-0.07757568359375,
-0.004657745361328125,
-0.045440673828125,
0.032196044921875,
-0.06243896484375,
0.01178741455078125,
-0.041656494140625,
0.0037479400634765625,
0.02154541015625,
-0.0147247314453125,
-0.06683349609375,
-0.02789306640625,
0.0006623268127441406,
-0.0093994140625,
0.03460693359375,
0.0030517578125,
0.041748046875,
0.03192138671875,
0.00804901123046875,
0.000370025634765625,
-0.02532958984375,
0.0205230712890625,
-0.045623779296875,
-0.009246826171875,
0.00545501708984375,
-0.025665283203125,
-0.0165863037109375,
0.0186767578125,
0.0023441314697265625,
-0.004802703857421875,
-0.012603759765625,
0.03338623046875,
-0.0095367431640625,
0.039703369140625,
0.01039886474609375,
0.0169525146484375,
-0.0097808837890625,
0.01090240478515625,
-0.038330078125,
-0.04693603515625,
-0.06610107421875,
0.0260162353515625,
0.0601806640625,
-0.034942626953125,
0.0019588470458984375,
0.018310546875,
-0.00998687744140625,
-0.0133056640625,
0.0147705078125,
0.02386474609375,
-0.0016384124755859375,
-0.0010595321655273438,
-0.0077362060546875,
0.0085906982421875,
0.022247314453125,
-0.0312042236328125,
-0.00728607177734375,
-0.07220458984375,
0.00406646728515625,
0.01360321044921875,
-0.032012939453125,
-0.00118255615234375,
0.007457733154296875,
0.02276611328125,
-0.06524658203125,
-0.01788330078125,
-0.007274627685546875,
0.04229736328125,
-0.022674560546875,
-0.01189422607421875,
0.002227783203125,
0.00104522705078125,
-0.00009495019912719727,
-0.015380859375,
-0.01245880126953125,
0.0374755859375,
-0.0014390945434570312,
0.07098388671875,
0.01220703125,
0.0023937225341796875,
-0.01062774658203125,
-0.02301025390625,
-0.03631591796875,
-0.05950927734375,
-0.066650390625,
-0.028656005859375,
0.027557373046875,
-0.0205841064453125,
0.0180816650390625,
-0.00542449951171875,
0.024505615234375,
-0.015350341796875,
0.0189971923828125,
-0.017791748046875,
0.002048492431640625,
-0.00640869140625,
0.0660400390625,
-0.00952911376953125,
0.0697021484375,
0.01763916015625,
0.048065185546875,
-0.0018110275268554688,
-0.0205230712890625,
0.0188140869140625,
-0.06396484375,
-0.0230560302734375,
-0.0276031494140625,
0.015289306640625,
0.0108795166015625,
-0.0177764892578125,
-0.01332855224609375,
-0.00124359130859375,
-0.024566650390625,
-0.00547027587890625,
-0.028533935546875,
0.03912353515625,
-0.0139617919921875,
0.0290679931640625,
-0.03656005859375,
-0.040008544921875,
0.01312255859375,
0.022247314453125,
0.0124969482421875,
0.0007762908935546875,
-0.039306640625,
-0.00736236572265625,
0.040557861328125,
0.01251983642578125,
0.006626129150390625,
0.0261688232421875,
0.017578125,
0.0290985107421875,
0.018310546875,
0.018218994140625,
-0.01274871826171875,
0.0016641616821289062,
-0.0182037353515625,
-0.01047515869140625,
0.04327392578125,
-0.0058135986328125,
-0.045501708984375,
0.01023101806640625,
-0.031280517578125,
-0.028778076171875,
-0.01131439208984375,
0.0274200439453125,
-0.0099029541015625,
0.006927490234375,
0.0088348388671875,
0.018035888671875,
0.0263214111328125,
0.0090789794921875,
0.0208740234375,
0.0228729248046875,
-0.0280914306640625,
0.0211029052734375,
-0.0240936279296875,
-0.01270294189453125,
0.00968170166015625,
0.01416778564453125,
0.0113525390625,
0.0234222412109375,
0.008392333984375,
0.00760650634765625,
0.005741119384765625,
0.0019664764404296875,
0.045501708984375,
-0.03643798828125,
0.0166015625,
-0.010711669921875,
0.0052947998046875,
-0.047332763671875,
0.041015625,
-0.037872314453125,
0.01274871826171875,
0.0325927734375,
0.0180206298828125,
-0.0150909423828125,
0.015899658203125,
-0.007152557373046875,
0.0003266334533691406,
-0.0257110595703125,
-0.0252532958984375,
-0.08160400390625,
-0.054840087890625,
0.0082855224609375,
0.037139892578125,
-0.0821533203125,
0.051544189453125,
-0.04986572265625,
-0.0250091552734375,
-0.004058837890625,
0.00023281574249267578,
0.06866455078125,
-0.058563232421875,
0.0037670135498046875,
0.03564453125,
0.031951904296875,
-0.0200042724609375,
0.001323699951171875,
-0.044677734375,
-0.0142364501953125,
0.0129241943359375,
-0.040557861328125,
-0.035308837890625,
0.01508331298828125,
0.00011944770812988281,
-0.0863037109375,
0.10394287109375,
-0.00211334228515625,
0.034912109375,
-0.032440185546875,
0.04608154296875,
0.01239013671875,
0.03228759765625,
-0.015472412109375,
0.047882080078125,
-0.04156494140625,
0.0021305084228515625,
-0.03961181640625,
0.00997161865234375,
-0.009979248046875,
-0.00016117095947265625,
0.040771484375,
-0.0079193115234375,
0.004444122314453125,
-0.0136260986328125,
0.05535888671875,
0.044342041015625,
0.00473785400390625,
0.0033359527587890625,
-0.0176239013671875,
0.0006194114685058594,
0.029998779296875,
-0.01727294921875,
0.050079345703125,
-0.011627197265625,
-0.0264892578125,
-0.0002930164337158203,
0.0235595703125,
0.0240020751953125,
0.02044677734375,
-0.0081634521484375,
-0.0025177001953125,
0.013092041015625,
0.0183868408203125,
-0.0206756591796875,
0.0194244384765625,
0.00992584228515625,
0.037506103515625,
-0.051849365234375,
-0.0018291473388671875,
-0.01885986328125,
0.054473876953125,
0.0006966590881347656,
0.06732177734375,
0.0310516357421875,
0.0161590576171875,
0.03277587890625,
-0.018157958984375,
0.03759765625,
0.0020503997802734375,
-0.0408935546875,
0.036346435546875,
0.03717041015625,
0.0318603515625,
-0.0233306884765625,
0.0075531005859375,
0.026580810546875,
0.054107666015625,
-0.04937744140625,
-0.06683349609375,
0.003047943115234375,
0.01279449462890625,
0.02587890625,
0.0125885009765625,
0.016876220703125,
-0.03619384765625,
0.0304412841796875,
-0.0567626953125,
0.01479339599609375,
0.01055908203125,
0.02264404296875,
-0.0257720947265625,
-0.01751708984375,
-0.0233612060546875,
0.0009136199951171875,
-0.004917144775390625,
-0.05120849609375,
0.017425537109375,
0.01201629638671875,
0.054473876953125,
-0.01580810546875,
0.052215576171875,
0.006221771240234375,
0.019805908203125,
0.0087432861328125,
0.0028438568115234375,
-0.023040771484375,
-0.0031948089599609375,
-0.03741455078125,
0.0264892578125,
0.01898193359375,
0.0304107666015625,
0.0003097057342529297,
0.050994873046875,
0.0218963623046875,
-0.043060302734375,
-0.01068115234375,
0.01047515869140625,
-0.02142333984375,
-0.02734375,
-0.028350830078125,
-0.00244903564453125,
0.0012369155883789062,
-0.006015777587890625,
0.0158233642578125,
0.017608642578125,
-0.002925872802734375,
0.029541015625,
0.0355224609375,
0.01442718505859375,
-0.0032634735107421875,
0.0711669921875,
-0.005084991455078125,
0.06536865234375,
0.039337158203125,
-0.055633544921875,
-0.028045654296875,
-0.00933074951171875,
0.0040130615234375,
0.0220489501953125,
0.033782958984375,
-0.0135040283203125,
0.01580810546875,
0.007694244384765625,
-0.028228759765625,
0.006450653076171875,
0.036834716796875,
0.004024505615234375,
0.01031494140625,
0.027130126953125,
-0.004077911376953125,
-0.02740478515625,
-0.0225372314453125,
0.0007333755493164062,
0.03912353515625,
0.0175323486328125,
0.038665771484375,
-0.0275726318359375,
0.0291290283203125,
-0.0214996337890625,
0.0841064453125,
-0.07281494140625,
0.00799560546875,
-0.0288238525390625,
0.01617431640625,
0.046112060546875,
0.00039649009704589844,
-0.050018310546875,
0.02337646484375,
0.03045654296875,
-0.0271148681640625,
0.02264404296875,
-0.0096893310546875,
0.01763916015625,
-0.0181121826171875,
-0.0148162841796875,
-0.0308837890625,
0.0246734619140625,
0.002590179443359375,
-0.052978515625,
0.033905029296875,
-0.00897216796875,
0.031280517578125,
0.015838623046875,
0.011688232421875,
-0.049072265625,
0.04827880859375,
-0.056549072265625,
0.07098388671875,
0.034423828125,
0.0107574462890625,
-0.028900146484375,
0.036590576171875,
-0.00844573974609375,
0.0170440673828125,
0.025787353515625,
0.0246734619140625,
0.0439453125,
-0.053619384765625,
-0.0106658935546875,
-0.036590576171875,
-0.0029811859130859375,
-0.02099609375,
-0.0224609375,
-0.035552978515625,
-0.0006403923034667969,
0.019256591796875,
0.022369384765625,
-0.01148223876953125,
-0.0014820098876953125,
0.00449371337890625,
0.006916046142578125,
0.0166168212890625,
-0.0267486572265625,
-0.01898193359375,
-0.000263214111328125,
0.0426025390625,
0.023223876953125,
-0.07708740234375,
0.037139892578125,
-0.006320953369140625,
-0.0031032562255859375,
0.046478271484375,
-0.0284423828125,
-0.0218048095703125,
0.031402587890625,
-0.005218505859375,
-0.061981201171875,
-0.048736572265625,
0.05328369140625,
-0.046630859375,
0.01531219482421875,
0.029022216796875,
-0.02459716796875,
-0.00067901611328125,
0.007965087890625,
0.0248260498046875,
0.058868408203125,
0.0234832763671875,
-0.0289154052734375,
0.00237274169921875,
0.0018463134765625,
-0.0188140869140625,
-0.046112060546875,
0.01480865478515625,
-0.0706787109375,
-0.0181732177734375,
-0.032012939453125,
0.054656982421875,
0.055328369140625,
-0.0097808837890625,
-0.05548095703125,
0.0531005859375,
-0.030303955078125,
-0.027923583984375,
-0.033935546875,
0.038848876953125,
0.0133056640625,
-0.01125335693359375,
0.006134033203125,
-0.051300048828125,
-0.03271484375,
-0.01490020751953125,
0.00150299072265625,
0.01326751708984375,
0.017791748046875,
-0.012054443359375,
0.0113067626953125,
0.0246124267578125,
0.034698486328125,
-0.0083465576171875,
-0.0101776123046875,
0.00894927978515625,
0.02703857421875,
0.04705810546875,
-0.0180816650390625,
0.014251708984375,
0.01158905029296875,
-0.01470947265625,
-0.014495849609375,
-0.01561737060546875,
-0.023284912109375,
-0.00360107421875,
0.038787841796875,
0.08648681640625,
0.019073486328125,
-0.049835205078125,
-0.021514892578125,
-0.0238800048828125,
-0.03466796875,
-0.04534912109375,
0.0313720703125,
-0.0718994140625,
-0.0203094482421875,
-0.01200103759765625,
-0.00272369384765625,
-0.005207061767578125,
-0.0164794921875,
-0.01140594482421875,
-0.0200958251953125,
-0.00675201416015625,
-0.032073974609375,
-0.006626129150390625,
0.0733642578125,
-0.014190673828125,
-0.0022430419921875,
0.037261962890625,
-0.0489501953125,
-0.0138092041015625,
0.02008056640625,
-0.016632080078125,
-0.014373779296875,
-0.018218994140625,
-0.00800323486328125,
0.034637451171875,
-0.01474761962890625,
0.01255035400390625,
-0.0162353515625,
0.0023555755615234375,
-0.02874755859375,
0.00679779052734375,
0.01476287841796875,
0.0010366439819335938,
-0.0423583984375,
0.052825927734375,
0.041229248046875,
-0.00846099853515625,
0.008880615234375,
0.05462646484375,
-0.001766204833984375,
0.042083740234375,
-0.0148773193359375,
-0.03363037109375,
0.002353668212890625,
-0.0214996337890625,
0.00461578369140625,
-0.0260162353515625,
-0.0191802978515625,
-0.051055908203125,
-0.004291534423828125,
0.036956787109375,
0.0015287399291992188,
0.02642822265625
] |
959fc6305464df0fa400943b591d48128e071a02
|
Wordpress Stackexchange
Q: How to create an iPhone app base on the content from a Wordpress site? (Just like the one by Mashable) I have a WP site. Now wanna create an iPhone app base on the content from my site so that the visitors can read my site easier.
I wanna create one just like the iPhone app by Mashable (the Mashable should be based on WP)
http://itunes.apple.com/us/app/mashable/id356202138?mt=8
Anyone can advise me how should I start?
Or any template of such?
A: There are two main ways to do this: either you create a complete iPhone application, written in Objective-C, that gets data from your blog via an API. This can be regular RSS feeds, XML-RPC or a completely custom solution. Be prepared for a lot of development in both Objective-C and PHP (because your API should be secure of course).
The other option is to use or develop a mobile-optimized theme, with extra tricks to get more integration with the device, like GavinR hinted. This is much simpler, but won't offer everything that a custom application can (no offline access, for example).
|
Q: How to create an iPhone app base on the content from a Wordpress site? (Just like the one by Mashable) I have a WP site. Now wanna create an iPhone app base on the content from my site so that the visitors can read my site easier.
I wanna create one just like the iPhone app by Mashable (the Mashable should be based on WP)
http://itunes.apple.com/us/app/mashable/id356202138?mt=8
Anyone can advise me how should I start?
Or any template of such?
A: There are two main ways to do this: either you create a complete iPhone application, written in Objective-C, that gets data from your blog via an API. This can be regular RSS feeds, XML-RPC or a completely custom solution. Be prepared for a lot of development in both Objective-C and PHP (because your API should be secure of course).
The other option is to use or develop a mobile-optimized theme, with extra tricks to get more integration with the device, like GavinR hinted. This is much simpler, but won't offer everything that a custom application can (no offline access, for example).
A: I would suggest a slight workaround, by making your site mobile compatible with a plugin. This allows all platforms to see your site, and the iPhone version looks much like an app (page transitions, big buttons, etc).
To add some additional flare you can add an iPhone icon so that the user can place a shortcut to your site on his or her home screen:
<link rel="apple-touch-icon" href="/myicon.jpg"/>
More info at the Apple Dev Center.
A: I have created a list of points that you need to follow in order to develop an iOS app for your WordPress blog just like the example app of Mashable that you have given in your question. Check out my answer HERE
|
wordpress
|
{
"language": "en",
"length": 301,
"provenance": "stackexchange_00019.jsonl.gz:408738",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15128"
}
|
[
-0.02099609375,
0.0082550048828125,
-0.0106048583984375,
0.039337158203125,
-0.019012451171875,
-0.0244140625,
0.0126495361328125,
-0.04351806640625,
-0.0184173583984375,
-0.008453369140625,
-0.01416778564453125,
0.0294342041015625,
-0.037139892578125,
-0.037567138671875,
0.04632568359375,
-0.0232391357421875,
0.00945281982421875,
-0.0191802978515625,
0.0170135498046875,
-0.0191650390625,
0.00872039794921875,
-0.039276123046875,
0.050811767578125,
0.016632080078125,
-0.0090179443359375,
0.0211181640625,
0.03607177734375,
0.0250701904296875,
-0.042816162109375,
-0.02935791015625,
-0.0077362060546875,
0.014892578125,
0.053863525390625,
0.005283355712890625,
-0.049224853515625,
0.027801513671875,
0.021240234375,
-0.0229949951171875,
-0.01526641845703125,
0.041290283203125,
0.045166015625,
-0.038055419921875,
0.00025177001953125,
0.01403045654296875,
-0.003154754638671875,
-0.038482666015625,
0.057098388671875,
-0.01995849609375,
0.019561767578125,
-0.0229949951171875,
0.0242919921875,
0.04071044921875,
0.04144287109375,
-0.0667724609375,
0.01129913330078125,
0.038177490234375,
-0.01461029052734375,
-0.0061187744140625,
0.036773681640625,
-0.0298614501953125,
-0.0223236083984375,
-0.0239105224609375,
0.040313720703125,
0.030853271484375,
-0.00807952880859375,
0.00257110595703125,
-0.0002015829086303711,
0.0146636962890625,
-0.042816162109375,
-0.011566162109375,
0.01398468017578125,
-0.03125,
-0.00780487060546875,
-0.031005859375,
0.01226806640625,
0.006801605224609375,
0.0267791748046875,
0.01107025146484375,
-0.0309295654296875,
0.033416748046875,
-0.00734710693359375,
0.04888916015625,
0.01317596435546875,
-0.09002685546875,
0.00769805908203125,
-0.08270263671875,
-0.0148162841796875,
0.006572723388671875,
-0.0184326171875,
-0.01511383056640625,
-0.01134490966796875,
-0.0028705596923828125,
-0.046600341796875,
0.02484130859375,
0.008544921875,
-0.02783203125,
-0.0310516357421875,
0.0115203857421875,
-0.0110931396484375,
0.041107177734375,
-0.0007109642028808594,
-0.02423095703125,
0.057830810546875,
-0.034576416015625,
-0.0157012939453125,
0.08123779296875,
0.009246826171875,
0.03631591796875,
0.0240478515625,
0.006160736083984375,
0.0238800048828125,
-0.0244598388671875,
0.0001571178436279297,
-0.0038776397705078125,
-0.05389404296875,
0.039093017578125,
0.006031036376953125,
-0.032257080078125,
-0.0086517333984375,
0.007099151611328125,
-0.0266876220703125,
-0.010406494140625,
0.00756072998046875,
0.040252685546875,
0.011627197265625,
0.0253143310546875,
0.0118560791015625,
-0.01026153564453125,
0.038726806640625,
0.01338958740234375,
-0.0132598876953125,
0.0228424072265625,
0.0016126632690429688,
-0.0023822784423828125,
-0.030426025390625,
-0.0035552978515625,
0.041412353515625,
0.00290679931640625,
-0.0179901123046875,
0.01507568359375,
0.017120361328125,
-0.0155792236328125,
-0.015838623046875,
-0.01031494140625,
0.0204315185546875,
0.0028858184814453125,
0.0054931640625,
0.03533935546875,
0.0287933349609375,
-0.0155487060546875,
0.034576416015625,
-0.00870513916015625,
-0.0022983551025390625,
0.0273895263671875,
0.0833740234375,
-0.00917816162109375,
0.1158447265625,
-0.048797607421875,
0.004375457763671875,
-0.037933349609375,
0.007717132568359375,
-0.0241241455078125,
0.00839996337890625,
-0.0174560546875,
-0.0213470458984375,
0.0121002197265625,
-0.0284881591796875,
-0.0032958984375,
0.0160369873046875,
-0.03179931640625,
-0.0037784576416015625,
-0.005886077880859375,
0.0272674560546875,
0.01971435546875,
0.006641387939453125,
0.031494140625,
-0.021331787109375,
0.007221221923828125,
0.028961181640625,
0.00445556640625,
-0.00009334087371826172,
-0.031219482421875,
0.0172271728515625,
0.009613037109375,
-0.048065185546875,
0.051727294921875,
0.004146575927734375,
0.1044921875,
0.0073089599609375,
0.029571533203125,
0.0017442703247070312,
-0.0090484619140625,
-0.00131988525390625,
0.034698486328125,
-0.0157623291015625,
-0.036407470703125,
-0.023223876953125,
0.005977630615234375,
-0.0196075439453125,
-0.0233154296875,
-0.00514984130859375,
0.00429534912109375,
0.01389312744140625,
0.020721435546875,
0.004787445068359375,
0.0115203857421875,
-0.003948211669921875,
0.021575927734375,
0.0269317626953125,
0.01355743408203125,
0.0027484893798828125,
0.018585205078125,
-0.00746917724609375,
-0.053558349609375,
-0.04620361328125,
-0.0013780593872070312,
0.0171051025390625,
0.01056671142578125,
0.010040283203125,
-0.03021240234375,
0.015106201171875,
0.0030269622802734375,
-0.00942230224609375,
0.061676025390625,
0.0396728515625,
-0.0277252197265625,
-0.01082611083984375,
-0.0239105224609375,
0.007747650146484375,
0.016448974609375,
-0.07037353515625,
0.046234130859375,
-0.0173187255859375,
-0.0066680908203125,
-0.0180206298828125,
-0.02587890625,
0.0011539459228515625,
-0.041961669921875,
0.0217132568359375,
0.051483154296875,
0.041778564453125,
0.04779052734375,
0.0255584716796875,
0.01397705078125,
0.0533447265625,
-0.01560211181640625,
0.033782958984375,
-0.021636962890625,
0.008758544921875,
0.004116058349609375,
0.01548004150390625,
-0.0340576171875,
0.017059326171875,
-0.08184814453125,
0.0025272369384765625,
0.0136871337890625,
0.0065460205078125,
0.037872314453125,
-0.0197296142578125,
-0.026519775390625,
0.01078033447265625,
-0.029266357421875,
-0.031341552734375,
-0.0126190185546875,
0.0160675048828125,
0.0283050537109375,
0.035247802734375,
0.034912109375,
-0.0122833251953125,
0.004825592041015625,
0.00576019287109375,
-0.00472259521484375,
0.0123291015625,
0.0190887451171875,
-0.0158233642578125,
-0.014801025390625,
-0.027252197265625,
0.0123443603515625,
-0.0032196044921875,
-0.004566192626953125,
0.00389862060546875,
0.037933349609375,
-0.07354736328125,
-0.018829345703125,
-0.007427215576171875,
-0.052825927734375,
-0.032501220703125,
0.015472412109375,
-0.00566864013671875,
0.047027587890625,
0.0377197265625,
0.047760009765625,
-0.00408935546875,
0.0181427001953125,
0.007465362548828125,
0.024688720703125,
0.0269317626953125,
-0.042022705078125,
0.034515380859375,
-0.026275634765625,
0.03082275390625,
0.054595947265625,
-0.0157012939453125,
0.0101470947265625,
-0.001529693603515625,
0.0174560546875,
-0.0158843994140625,
0.0016374588012695312,
0.0022029876708984375,
-0.01313018798828125,
-0.0197296142578125,
0.028076171875,
0.02886962890625,
0.045440673828125,
0.0016469955444335938,
-0.034454345703125,
0.0010213851928710938,
0.031494140625,
-0.0577392578125,
-0.07818603515625,
0.059722900390625,
-0.0933837890625,
0.0543212890625,
-0.0386962890625,
-0.041473388671875,
-0.05078125,
0.03607177734375,
0.00707244873046875,
-0.037353515625,
-0.029266357421875,
-0.045501708984375,
-0.07769775390625,
-0.059295654296875,
0.014556884765625,
0.003082275390625,
0.01003265380859375,
0.0017137527465820312,
-0.04693603515625,
-0.0185546875,
-0.01849365234375,
0.0008649826049804688,
0.0195770263671875,
0.00952911376953125,
-0.032440185546875,
-0.012664794921875,
-0.02294921875,
-0.01503753662109375,
-0.0052337646484375,
-0.031890869140625,
-0.011810302734375,
0.0200653076171875,
-0.009002685546875,
-0.01629638671875,
-0.00760650634765625,
-0.0080718994140625,
0.014312744140625,
0.0182647705078125,
0.0180816650390625,
0.0250091552734375,
-0.0411376953125,
-0.004970550537109375,
0.018890380859375,
-0.0096893310546875,
0.0280609130859375,
0.003692626953125,
-0.03643798828125,
-0.005939483642578125,
0.0117950439453125,
-0.03167724609375,
-0.01161956787109375,
0.003711700439453125,
-0.041290283203125,
0.06280517578125,
-0.0201873779296875,
-0.017669677734375,
0.0067138671875,
0.04486083984375,
-0.006732940673828125,
-0.0287628173828125,
0.006534576416015625,
-0.01229095458984375,
-0.03985595703125,
0.00560760498046875,
-0.06317138671875,
0.0234375,
0.02252197265625,
-0.0176544189453125,
0.026763916015625,
-0.01105499267578125,
-0.0032863616943359375,
-0.007312774658203125,
0.037933349609375,
-0.0025920867919921875,
0.006168365478515625,
0.005001068115234375,
-0.01220703125,
-0.036712646484375,
0.01070404052734375,
-0.09423828125,
0.005008697509765625,
0.0031261444091796875,
0.00946807861328125,
-0.0013456344604492188,
-0.0200653076171875,
0.000568389892578125,
-0.0704345703125,
0.00904083251953125,
-0.0235748291015625,
-0.0015821456909179688,
-0.0008020401000976562,
-0.012847900390625,
-0.03826904296875,
-0.0021572113037109375,
-0.053619384765625,
0.0247650146484375,
-0.03363037109375,
-0.0133819580078125,
-0.0091400146484375,
0.01495361328125,
-0.01346588134765625,
-0.0178680419921875,
0.03009033203125,
-0.00982666015625,
0.016326904296875,
-0.051971435546875,
0.0123443603515625,
-0.0240020751953125,
0.049835205078125,
-0.040374755859375,
-0.0016050338745117188,
-0.02252197265625,
-0.0382080078125,
-0.0160675048828125,
-0.03997802734375,
0.007389068603515625,
0.036895751953125,
-0.02545166015625,
0.01462554931640625,
-0.033294677734375,
0.0032482147216796875,
0.024261474609375,
-0.01505279541015625,
-0.01071929931640625,
0.013519287109375,
-0.0221099853515625,
0.0183563232421875,
0.0020198822021484375,
0.0008783340454101562,
0.0283966064453125,
-0.006465911865234375,
0.005405426025390625,
0.009613037109375,
0.07366943359375,
0.019195556640625,
-0.0170135498046875,
-0.03173828125,
-0.02618408203125,
0.024200439453125,
-0.007476806640625,
0.041534423828125,
0.0302886962890625,
-0.01506805419921875,
0.03948974609375,
-0.00720977783203125,
0.00868988037109375,
0.046600341796875,
-0.0164947509765625,
0.0131988525390625,
-0.024383544921875,
0.007694244384765625,
0.019378662109375,
-0.031463623046875,
0.035491943359375,
-0.0135650634765625,
0.0234832763671875,
0.004547119140625,
-0.01727294921875,
-0.0166168212890625,
-0.0029888153076171875,
0.004871368408203125,
-0.0198822021484375,
0.01207733154296875,
-0.0419921875,
0.001346588134765625,
-0.03448486328125,
0.019317626953125,
-0.034332275390625,
0.0134124755859375,
0.0213623046875,
-0.004924774169921875,
0.004322052001953125,
-0.0130157470703125,
0.02740478515625,
0.018890380859375,
0.00897216796875,
-0.01508331298828125,
0.004093170166015625,
0.045623779296875,
0.0215301513671875,
-0.04278564453125,
-0.004108428955078125,
0.011810302734375,
-0.0016241073608398438,
-0.0149383544921875,
-0.0467529296875,
0.02264404296875,
0.02215576171875,
-0.0180511474609375,
0.0189361572265625,
-0.0535888671875,
-0.00406646728515625,
-0.044952392578125,
-0.01435089111328125,
0.0035228729248046875,
-0.0143890380859375,
0.035247802734375,
0.0091705322265625,
-0.00762176513671875,
0.023193359375,
-0.0177764892578125,
0.0748291015625,
0.08740234375,
-0.00609588623046875,
0.019134521484375,
0.0028858184814453125,
-0.01267242431640625,
-0.02734375,
-0.027862548828125,
-0.038116455078125,
0.0217132568359375,
0.005596160888671875,
0.038177490234375,
-0.03851318359375,
-0.06829833984375,
0.057952880859375,
-0.0494384765625,
0.009521484375,
-0.006969451904296875,
-0.038909912109375,
-0.0169525146484375,
0.01204681396484375,
-0.0186767578125,
-0.0017232894897460938,
-0.01273345947265625,
0.01465606689453125,
0.0080413818359375,
-0.009765625,
0.033294677734375,
-0.0023250579833984375,
0.0234832763671875,
-0.0251312255859375,
-0.02972412109375,
0.0263824462890625,
-0.033172607421875,
-0.0160675048828125,
-0.0386962890625,
0.0133056640625,
-0.02520751953125,
-0.0038318634033203125,
0.023284912109375,
-0.0148773193359375,
0.0247802734375,
-0.054046630859375,
0.005115509033203125,
-0.025665283203125,
-0.0018291473388671875,
0.0692138671875,
0.0247802734375,
-0.0252532958984375,
-0.0085906982421875,
-0.0321044921875,
-0.04608154296875,
-0.050048828125,
-0.00849151611328125,
-0.0576171875,
0.0102996826171875,
0.01123046875,
0.0168609619140625,
-0.020965576171875,
-0.0390625,
-0.0029544830322265625,
0.034271240234375,
0.007015228271484375,
0.0322265625,
0.02191162109375,
0.035888671875,
-0.0208740234375,
0.08343505859375,
0.041595458984375,
0.0189971923828125,
-0.021209716796875,
-0.059539794921875,
0.01010894775390625,
-0.07098388671875,
-0.0294189453125,
-0.0104522705078125,
-0.01305389404296875,
0.00506591796875,
-0.0193328857421875,
-0.00954437255859375,
0.0301666259765625,
-0.03594970703125,
0.003993988037109375,
-0.0121307373046875,
0.0246124267578125,
-0.0772705078125,
0.0174713134765625,
-0.0011758804321289062,
-0.04425048828125,
-0.054931640625,
0.0091094970703125,
0.044769287109375,
-0.0341796875,
-0.0240936279296875,
-0.059967041015625,
0.0311431884765625,
-0.06732177734375,
0.0712890625,
0.0841064453125,
0.0088348388671875,
0.0281524658203125,
0.01332855224609375,
-0.004871368408203125,
-0.016937255859375,
0.09625244140625,
-0.03082275390625,
-0.08172607421875,
0.055023193359375,
0.03399658203125,
-0.08831787109375,
-0.01715087890625,
-0.069091796875,
0.019439697265625,
0.057403564453125,
0.07110595703125,
-0.085205078125,
0.00771331787109375,
0.0009274482727050781,
-0.03863525390625,
-0.0269775390625,
0.005161285400390625,
-0.0076904296875,
-0.045440673828125,
-0.00882720947265625,
0.006893157958984375,
-0.01898193359375,
0.001373291015625,
-0.00548553466796875,
-0.006282806396484375,
-0.0176849365234375,
0.07281494140625,
0.0233154296875,
-0.007061004638671875,
-0.0037746429443359375,
0.0179595947265625,
0.00787353515625,
-0.0011053085327148438,
0.01218414306640625,
0.00931549072265625,
-0.0310516357421875,
-0.042724609375,
-0.0014925003051757812,
-0.0239410400390625,
-0.0250244140625,
0.0106048583984375,
0.0172576904296875,
0.0219573974609375,
0.032257080078125,
0.0038814544677734375,
0.015777587890625,
0.012054443359375,
-0.0038738250732421875,
0.0022029876708984375,
0.012176513671875,
0.02001953125,
-0.0333251953125,
-0.041900634765625,
0.0043792724609375,
-0.07244873046875,
0.005237579345703125,
-0.01122283935546875,
-0.0156707763671875,
0.06793212890625,
-0.057098388671875,
-0.003063201904296875,
0.026885986328125,
0.00994110107421875,
-0.0104217529296875,
-0.0206451416015625,
0.0197601318359375,
-0.05657958984375,
-0.017913818359375,
0.00969696044921875,
-0.01922607421875,
0.007686614990234375,
-0.00791168212890625,
-0.01247406005859375,
0.04638671875,
-0.0169219970703125,
-0.013885498046875,
0.01457977294921875,
0.033416748046875,
-0.0224761962890625,
0.00925445556640625,
-0.035430908203125,
0.043426513671875,
0.046417236328125,
0.031646728515625,
-0.041717529296875,
-0.020751953125,
0.01110076904296875,
0.041595458984375,
0.01090240478515625,
-0.01467132568359375,
-0.00079345703125,
0.00033402442932128906,
0.0528564453125,
0.01427459716796875,
0.00018465518951416016,
0.032928466796875,
0.01131439208984375,
-0.03338623046875,
0.07025146484375,
0.044677734375,
0.051116943359375,
0.03216552734375,
0.003330230712890625,
0.017852783203125,
0.01519775390625,
0.0130767822265625,
0.0266876220703125,
0.021942138671875,
0.02069091796875,
-0.0045166015625,
-0.00012767314910888672,
-0.0296630859375,
0.037841796875,
0.027740478515625,
0.057098388671875,
0.005199432373046875,
0.0196380615234375,
-0.026092529296875,
0.06689453125,
0.0078887939453125,
-0.0088348388671875,
0.0290985107421875,
0.034088134765625,
-0.0443115234375,
0.0045623779296875,
-0.007373809814453125,
0.037384033203125,
-0.047607421875,
0.0340576171875,
-0.009552001953125,
0.00315093994140625,
-0.07989501953125,
-0.050567626953125,
0.01464080810546875,
0.05963134765625,
-0.0174407958984375,
-0.0279541015625,
0.004795074462890625,
0.0189971923828125,
0.041412353515625,
0.0026645660400390625,
0.0762939453125,
-0.01351165771484375,
0.0008497238159179688,
0.0010519027709960938,
-0.00933074951171875,
0.006313323974609375,
0.018280029296875,
0.00860595703125,
0.0029468536376953125,
-0.01084136962890625,
0.004901885986328125,
0.0160980224609375,
-0.01050567626953125,
-0.0006518363952636719,
-0.0472412109375,
-0.00849151611328125,
0.0010251998901367188,
-0.004913330078125,
0.039306640625,
-0.006221771240234375,
0.05657958984375,
0.01439666748046875,
0.01157379150390625,
-0.045135498046875,
-0.047027587890625,
0.06195068359375,
0.036285400390625,
-0.0006909370422363281,
0.044342041015625,
0.0180511474609375,
0.0177764892578125,
0.01044464111328125,
-0.00443267822265625,
0.023193359375,
-0.02587890625,
-0.055694580078125,
-0.0195770263671875,
-0.05633544921875,
0.00432586669921875,
-0.00579071044921875,
0.0179290771484375,
0.00016736984252929688,
0.0165863037109375,
0.005657196044921875,
-0.0036373138427734375,
0.0078582763671875,
-0.01552581787109375,
0.00335693359375,
-0.00966644287109375,
-0.01407623291015625,
0.0307464599609375,
-0.031585693359375,
0.01253509521484375,
-0.03045654296875,
-0.087646484375,
0.0273895263671875,
0.041015625,
-0.0328369140625,
0.02197265625,
0.00830078125,
0.0259857177734375,
0.0272979736328125,
-0.0479736328125,
-0.0026226043701171875,
0.003997802734375,
0.0347900390625,
0.006832122802734375,
-0.03759765625,
-0.0194244384765625,
-0.00656890869140625,
0.04156494140625,
0.01244354248046875,
0.0423583984375,
-0.0091094970703125,
0.020477294921875,
-0.04339599609375,
0.0211944580078125,
-0.038970947265625,
-0.03338623046875,
-0.0006775856018066406,
0.02716064453125,
0.017730712890625,
0.00838470458984375,
-0.0116424560546875,
-0.044189453125,
0.031646728515625,
-0.0423583984375,
-0.04345703125,
-0.048095703125,
0.048736572265625,
0.005268096923828125,
-0.039642333984375,
-0.03729248046875,
-0.0215301513671875,
0.006946563720703125,
0.007335662841796875,
0.00911712646484375,
-0.0118408203125,
-0.0188140869140625,
0.038604736328125,
-0.03668212890625,
0.0004019737243652344,
0.01450347900390625,
-0.030609130859375,
0.0194091796875,
0.0302734375,
-0.056915283203125,
-0.0343017578125,
0.07598876953125,
0.01076507568359375,
0.01666259765625,
0.02325439453125,
0.062225341796875,
0.0673828125,
-0.059234619140625,
0.06341552734375,
0.05718994140625,
0.052978515625,
-0.01381683349609375,
0.0153350830078125,
0.06915283203125,
-0.002490997314453125,
0.01611328125,
0.0295257568359375,
-0.003917694091796875,
-0.0208282470703125,
-0.011505126953125,
0.005001068115234375,
-0.007076263427734375,
-0.032745361328125,
0.0174407958984375,
0.0138702392578125,
0.0201263427734375,
0.0217742919921875,
-0.0633544921875,
0.055755615234375,
-0.01018524169921875,
-0.007663726806640625,
0.01209259033203125,
0.0511474609375,
-0.028411865234375,
-0.055084228515625,
-0.06390380859375,
-0.01486968994140625,
-0.02801513671875,
0.051483154296875,
0.01500701904296875,
0.054046630859375,
0.0537109375,
-0.05169677734375,
-0.015655517578125,
0.060577392578125,
0.03631591796875,
0.1044921875,
0.0189208984375,
-0.0166168212890625,
0.01464080810546875,
0.00010246038436889648,
-0.0367431640625,
-0.03271484375,
0.0182037353515625,
-0.053131103515625,
-0.019378662109375,
-0.0119476318359375,
0.0182952880859375,
0.0243072509765625,
-0.0391845703125,
-0.0506591796875,
-0.0044403076171875,
-0.0011539459228515625,
-0.03509521484375,
-0.044403076171875,
0.0133209228515625,
0.01505279541015625,
-0.030487060546875,
-0.03118896484375,
0.01511383056640625,
-0.0236358642578125,
0.015838623046875,
-0.00482940673828125,
0.02093505859375,
0.0096435546875,
0.0028362274169921875,
-0.03900146484375,
0.00846099853515625,
-0.01181793212890625,
-0.02734375,
-0.0211029052734375,
0.0142364501953125,
-0.01319122314453125,
0.01371002197265625,
-0.048187255859375,
-0.02081298828125,
-0.00890350341796875,
0.057891845703125,
-0.01119232177734375,
-0.0252227783203125,
-0.048675537109375,
-0.011077880859375,
0.0869140625,
0.07257080078125,
0.027587890625,
-0.055084228515625,
-0.01239776611328125,
-0.035491943359375,
-0.0220947265625,
-0.004894256591796875,
0.0119476318359375,
-0.045166015625,
0.0089874267578125,
-0.004001617431640625,
-0.00630950927734375,
0.018218994140625,
0.00653076171875,
-0.01168060302734375,
-0.0034198760986328125,
0.0244140625,
-0.0079498291015625,
-0.025054931640625,
-0.0251617431640625,
0.07989501953125,
-0.032470703125,
0.04302978515625,
-0.00139617919921875,
0.021209716796875,
0.054168701171875,
0.025726318359375,
-0.03216552734375,
-0.0294036865234375,
0.035552978515625,
0.0297698974609375,
-0.006122589111328125,
0.0118560791015625,
0.0248260498046875,
-0.0009908676147460938,
-0.0187530517578125,
0.038116455078125,
0.0183868408203125,
0.0594482421875,
-0.01050567626953125,
0.043792724609375,
0.0311431884765625,
-0.01678466796875,
-0.0274658203125,
-0.049774169921875,
-0.0316162109375,
0.01132965087890625,
-0.03546142578125,
0.0206298828125,
0.018768310546875,
-0.01399993896484375,
-0.00543975830078125,
-0.015411376953125,
-0.007526397705078125,
-0.0382080078125,
0.004764556884765625,
-0.04541015625,
-0.00418853759765625,
0.00841522216796875
] |
5f65b50cb5801a3e39836ac3fc32aadbde96e931
|
Wordpress Stackexchange
Q: Upload gravatar in WP profile? I'm interested in the theory of a user being able to register/upload a gravatar directly in their user account within a hosted WP system.
Is this feasible?
A: Try the Simple Local Avatars Plugin. It works exactly as advertised!
|
Q: Upload gravatar in WP profile? I'm interested in the theory of a user being able to register/upload a gravatar directly in their user account within a hosted WP system.
Is this feasible?
A: Try the Simple Local Avatars Plugin. It works exactly as advertised!
A: If you are looking to connect your sites sign-up with Gravatar then you simply can't, since Gravatar don't have a sing-up api you can use.
But if you are just looking to let your users upload there own photos the either Simple Local Avatars Plugin that Chip suggested or one I've used a lot before is User Photo will do the job just fine.
But the better part of User Photo plugin is that it has an overwrite function get_avatar which will get the user photo if exists or the gravatar if not.
A: Mark Jaquith a WP core developer wrote a plugin called Gravatar Signup which checks if the user has a Gravatar when the leave comments (and maybe when the first signup) and if not shows a link to the gravatar site. They would still need to sign up at Gravatar.com but this may be a simple fix to your problem.
Personally I try to stay away from plugins that allow users to upload their own author pics but that's just personal preference.
A: There's also Gravatar Box which I wrote. It's handy for a comments form, to increase Gravatar awareness.
|
wordpress
|
{
"language": "en",
"length": 239,
"provenance": "stackexchange_00019.jsonl.gz:408749",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15153"
}
|
[
0.06976318359375,
0.0250396728515625,
0.030670166015625,
-0.03302001953125,
0.0267333984375,
-0.0175323486328125,
0.03692626953125,
-0.06756591796875,
0.042633056640625,
0.01421356201171875,
-0.017120361328125,
0.0070037841796875,
0.01319122314453125,
-0.0279693603515625,
0.00551605224609375,
0.005359649658203125,
0.035919189453125,
0.01123809814453125,
0.041046142578125,
-0.00836944580078125,
-0.0149078369140625,
0.02679443359375,
0.0232086181640625,
0.00424957275390625,
0.00942230224609375,
0.01297760009765625,
0.0340576171875,
0.043426513671875,
-0.04193115234375,
-0.00807952880859375,
0.0125885009765625,
0.02105712890625,
-0.0100250244140625,
-0.0117034912109375,
0.047760009765625,
-0.032806396484375,
0.0010309219360351562,
0.00933074951171875,
0.0203094482421875,
-0.00417327880859375,
0.039306640625,
-0.018218994140625,
0.004154205322265625,
0.039276123046875,
-0.03973388671875,
-0.0196685791015625,
0.040557861328125,
0.00931549072265625,
0.033782958984375,
0.033905029296875,
-0.00542449951171875,
0.043304443359375,
-0.0020275115966796875,
-0.019927978515625,
-0.00377655029296875,
-0.0162506103515625,
0.003154754638671875,
-0.005161285400390625,
0.037353515625,
-0.0031681060791015625,
-0.03289794921875,
-0.0215606689453125,
0.03399658203125,
-0.0226287841796875,
0.0236968994140625,
-0.005157470703125,
0.021270751953125,
0.028564453125,
-0.005840301513671875,
-0.0076141357421875,
0.005290985107421875,
0.0103302001953125,
-0.0148468017578125,
-0.02825927734375,
-0.024444580078125,
0.022979736328125,
-0.006011962890625,
-0.0177764892578125,
0.00537109375,
0.0114288330078125,
-0.0413818359375,
-0.0574951171875,
0.01336669921875,
-0.03851318359375,
0.0276336669921875,
0.031890869140625,
-0.005405426025390625,
-0.0017766952514648438,
0.01219940185546875,
0.0121307373046875,
0.0025310516357421875,
-0.003566741943359375,
0.01456451416015625,
0.036468505859375,
-0.021331787109375,
-0.016815185546875,
0.0163116455078125,
-0.0233306884765625,
0.0003917217254638672,
0.01187896728515625,
0.05279541015625,
-0.06634521484375,
0.08154296875,
-0.006534576416015625,
0.0153961181640625,
0.053619384765625,
-0.007099151611328125,
-0.004718780517578125,
0.0280303955078125,
0.0179290771484375,
0.0086517333984375,
0.02276611328125,
0.024139404296875,
-0.0123291015625,
-0.01149749755859375,
0.02392578125,
0.0167388916015625,
0.032318115234375,
0.00455474853515625,
0.040863037109375,
-0.023345947265625,
0.002956390380859375,
0.0159454345703125,
0.006748199462890625,
0.01751708984375,
0.007266998291015625,
0.00006347894668579102,
-0.0264434814453125,
-0.019989013671875,
0.051177978515625,
-0.0019550323486328125,
-0.0117340087890625,
0.0196685791015625,
0.01313018798828125,
-0.01971435546875,
-0.027862548828125,
0.045135498046875,
0.031951904296875,
0.0282440185546875,
-0.0004715919494628906,
-0.01227569580078125,
-0.01253509521484375,
0.007503509521484375,
0.008026123046875,
0.01493072509765625,
0.03082275390625,
0.01494598388671875,
0.01222991943359375,
-0.00504302978515625,
-0.0266876220703125,
0.00908660888671875,
-0.0108489990234375,
-0.032501220703125,
0.028411865234375,
0.10064697265625,
0.012908935546875,
0.0347900390625,
0.003742218017578125,
0.0297698974609375,
0.036590576171875,
0.0184478759765625,
-0.0206298828125,
-0.0081329345703125,
0.007602691650390625,
-0.01300048828125,
0.02618408203125,
0.01349639892578125,
0.0017824172973632812,
0.0200347900390625,
-0.0190887451171875,
0.0224151611328125,
-0.017547607421875,
0.0134429931640625,
0.007205963134765625,
0.00774383544921875,
0.03424072265625,
0.025115966796875,
-0.0022144317626953125,
0.0245513916015625,
0.0270538330078125,
-0.00812530517578125,
-0.0222930908203125,
0.07025146484375,
-0.0235748291015625,
-0.0208587646484375,
-0.019317626953125,
0.0009784698486328125,
0.02294921875,
0.036468505859375,
0.00948333740234375,
-0.003509521484375,
0.00562286376953125,
-0.0267486572265625,
-0.035858154296875,
0.00551605224609375,
0.0008440017700195312,
-0.00015544891357421875,
0.0007596015930175781,
0.02020263671875,
0.004947662353515625,
0.0008177757263183594,
-0.01476287841796875,
0.0070343017578125,
-0.0333251953125,
-0.075927734375,
-0.0024261474609375,
-0.032379150390625,
0.04327392578125,
0.01194000244140625,
-0.0018768310546875,
0.005367279052734375,
-0.0027141571044921875,
-0.007221221923828125,
-0.02642822265625,
-0.04913330078125,
0.0255889892578125,
-0.042388916015625,
0.0333251953125,
0.00997161865234375,
0.0111083984375,
-0.00957489013671875,
-0.0266876220703125,
-0.005588531494140625,
-0.011260986328125,
-0.0178985595703125,
0.00997161865234375,
-0.032684326171875,
0.00838470458984375,
-0.031341552734375,
0.0179901123046875,
-0.0185546875,
0.01708984375,
-0.0107879638671875,
-0.02569580078125,
-0.033782958984375,
-0.01020050048828125,
-0.029541015625,
-0.07489013671875,
0.018646240234375,
0.064453125,
0.011077880859375,
-0.0003764629364013672,
-0.005950927734375,
0.045013427734375,
-0.0051116943359375,
-0.04541015625,
0.0126800537109375,
0.017578125,
-0.016448974609375,
0.010223388671875,
-0.004169464111328125,
0.0173797607421875,
0.01129150390625,
-0.05633544921875,
-0.006195068359375,
0.051422119140625,
-0.017974853515625,
-0.02325439453125,
-0.0285491943359375,
0.0050811767578125,
0.01114654541015625,
0.01495361328125,
-0.00725555419921875,
0.0195465087890625,
0.0151519775390625,
-0.01806640625,
0.037261962890625,
0.0233306884765625,
0.0131988525390625,
-0.02960205078125,
0.0014734268188476562,
-0.02447509765625,
-0.0019989013671875,
0.0254669189453125,
0.07305908203125,
0.03936767578125,
-0.0628662109375,
-0.0175628662109375,
0.07135009765625,
0.03924560546875,
-0.0007910728454589844,
0.006290435791015625,
-0.0015172958374023438,
-0.01409149169921875,
0.0162811279296875,
-0.0112152099609375,
0.01335906982421875,
-0.016204833984375,
-0.0277862548828125,
-0.0130615234375,
0.034912109375,
0.01262664794921875,
-0.0021762847900390625,
-0.0009312629699707031,
-0.02081298828125,
-0.005115509033203125,
-0.015838623046875,
-0.0184478759765625,
-0.005283355712890625,
-0.04132080078125,
0.02630615234375,
0.0557861328125,
0.002033233642578125,
-0.021942138671875,
0.01190948486328125,
-0.018157958984375,
-0.00946044921875,
0.0308990478515625,
0.045806884765625,
-0.0209503173828125,
0.045928955078125,
0.1021728515625,
0.00968170166015625,
-0.0380859375,
0.0006031990051269531,
-0.0229034423828125,
-0.02789306640625,
-0.0140838623046875,
-0.07122802734375,
-0.00791168212890625,
-0.03472900390625,
-0.04156494140625,
0.021087646484375,
0.0095062255859375,
-0.01116943359375,
-0.00832366943359375,
0.05328369140625,
0.0196685791015625,
-0.019012451171875,
0.01209259033203125,
0.01788330078125,
-0.0166015625,
-0.022979736328125,
-0.035919189453125,
0.00913238525390625,
-0.0036106109619140625,
0.0142059326171875,
0.05596923828125,
0.03131103515625,
0.0025348663330078125,
0.04412841796875,
-0.0062713623046875,
-0.0262451171875,
0.0045166015625,
0.01477813720703125,
-0.00809478759765625,
-0.018035888671875,
-0.0047149658203125,
0.0052642822265625,
0.0377197265625,
-0.048370361328125,
0.00916290283203125,
0.0248565673828125,
-0.0184173583984375,
0.0113525390625,
-0.003337860107421875,
-0.027679443359375,
-0.02752685546875,
-0.01313018798828125,
-0.061309814453125,
0.018310546875,
0.01120758056640625,
-0.0005373954772949219,
-0.00206756591796875,
-0.043304443359375,
-0.037384033203125,
0.01259613037109375,
0.014434814453125,
-0.038909912109375,
0.0114288330078125,
0.0101470947265625,
-0.0343017578125,
-0.05145263671875,
-0.0222015380859375,
-0.039154052734375,
0.043670654296875,
-0.06610107421875,
-0.0626220703125,
0.06256103515625,
-0.0304107666015625,
-0.0166168212890625,
-0.026153564453125,
0.0693359375,
-0.0054931640625,
-0.043426513671875,
0.0382080078125,
-0.01345062255859375,
0.0278167724609375,
-0.054901123046875,
-0.0294036865234375,
-0.0292816162109375,
0.07623291015625,
-0.019805908203125,
0.007175445556640625,
0.007068634033203125,
0.01088714599609375,
-0.08892822265625,
-0.0033588409423828125,
-0.09088134765625,
0.0296478271484375,
-0.01258087158203125,
-0.04962158203125,
-0.01531219482421875,
-0.0548095703125,
0.020965576171875,
-0.0594482421875,
-0.0142059326171875,
-0.032257080078125,
0.039398193359375,
-0.0584716796875,
0.031280517578125,
0.041229248046875,
0.038726806640625,
-0.0289764404296875,
-0.034332275390625,
-0.02197265625,
-0.152587890625,
-0.0212554931640625,
-0.0195770263671875,
0.10205078125,
-0.00015747547149658203,
-0.010406494140625,
-0.050689697265625,
0.05340576171875,
0.00330352783203125,
0.03607177734375,
-0.01262664794921875,
-0.0181427001953125,
0.0087127685546875,
0.00997161865234375,
0.0141754150390625,
-0.011871337890625,
-0.01309967041015625,
-0.055145263671875,
-0.0220184326171875,
-0.036407470703125,
-0.031982421875,
0.0025997161865234375,
-0.03546142578125,
-0.0016908645629882812,
-0.01953125,
-0.02215576171875,
-0.01611328125,
0.012451171875,
-0.051025390625,
0.014556884765625,
-0.0296630859375,
-0.022369384765625,
0.036407470703125,
-0.0132904052734375,
0.01256561279296875,
0.03533935546875,
0.09100341796875,
0.007114410400390625,
0.00394439697265625,
-0.12042236328125,
0.0306243896484375,
0.062408447265625,
0.0035457611083984375,
0.04925537109375,
0.0714111328125,
-0.0269012451171875,
0.023040771484375,
0.05084228515625,
-0.00064849853515625,
-0.019134521484375,
0.031982421875,
0.018157958984375,
-0.00817108154296875,
0.01134490966796875,
0.02899169921875,
0.0123748779296875,
0.0019092559814453125,
0.006687164306640625,
0.00759124755859375,
-0.0372314453125,
-0.01947021484375,
0.033721923828125,
-0.0189056396484375,
-0.00371551513671875,
-0.038330078125,
0.029388427734375,
-0.0831298828125,
0.037322998046875,
-0.032440185546875,
0.0102996826171875,
-0.00919342041015625,
0.004291534423828125,
-0.00783538818359375,
-0.0284881591796875,
-0.032073974609375,
0.0236663818359375,
0.026458740234375,
-0.0017766952514648438,
0.044464111328125,
-0.031280517578125,
0.005523681640625,
-0.032623291015625,
-0.0157470703125,
-0.03143310546875,
-0.020843505859375,
0.0077362060546875,
-0.01611328125,
0.00572967529296875,
-0.01105499267578125,
0.0232696533203125,
0.02520751953125,
0.0211029052734375,
0.012176513671875,
0.01305389404296875,
0.0024871826171875,
-0.0180206298828125,
0.016845703125,
0.006031036376953125,
-0.01409149169921875,
0.0178070068359375,
0.043243408203125,
-0.0278167724609375,
0.0318603515625,
0.0030498504638671875,
0.0194854736328125,
0.056060791015625,
-0.0198974609375,
0.03924560546875,
0.0143585205078125,
-0.020751953125,
-0.038482666015625,
0.0031528472900390625,
-0.0031261444091796875,
-0.00556182861328125,
0.019500732421875,
-0.006557464599609375,
0.0101776123046875,
0.0090179443359375,
0.0288543701171875,
0.00980377197265625,
0.00910186767578125,
-0.01288604736328125,
-0.049591064453125,
-0.0225372314453125,
-0.00864410400390625,
0.0338134765625,
0.0521240234375,
-0.0004968643188476562,
0.004055023193359375,
-0.0272064208984375,
-0.0160064697265625,
-0.0341796875,
0.0226287841796875,
-0.044952392578125,
-0.01226806640625,
0.0050506591796875,
-0.00650787353515625,
-0.01412200927734375,
-0.010162353515625,
-0.00629425048828125,
-0.0010204315185546875,
-0.0241241455078125,
-0.01274871826171875,
0.050506591796875,
-0.006313323974609375,
-0.04656982421875,
-0.042266845703125,
0.054443359375,
-0.06243896484375,
-0.008056640625,
0.06329345703125,
0.006961822509765625,
0.0156402587890625,
-0.040496826171875,
-0.034149169921875,
-0.0299072265625,
0.02764892578125,
-0.01385498046875,
0.0049896240234375,
-0.0068511962890625,
0.0269317626953125,
0.0164794921875,
0.03973388671875,
0.0032825469970703125,
-0.02960205078125,
0.0290374755859375,
0.031829833984375,
0.026824951171875,
-0.01226043701171875,
0.0085296630859375,
-0.0296173095703125,
0.01149749755859375,
-0.0404052734375,
-0.0019197463989257812,
0.035430908203125,
-0.0157928466796875,
-0.017120361328125,
-0.0787353515625,
-0.018280029296875,
-0.0204620361328125,
0.0153656005859375,
0.097412109375,
0.053985595703125,
0.0153656005859375,
0.031494140625,
-0.01288604736328125,
0.0167388916015625,
-0.0233917236328125,
0.02532958984375,
-0.07037353515625,
-0.044158935546875,
0.0268707275390625,
0.00843048095703125,
0.00518798828125,
0.0171966552734375,
-0.041351318359375,
-0.0086517333984375,
0.03564453125,
-0.0301666259765625,
0.0025768280029296875,
0.010009765625,
0.0269622802734375,
0.0160980224609375,
0.03759765625,
0.0224151611328125,
0.027099609375,
0.0347900390625,
-0.051177978515625,
0.039520263671875,
-0.045135498046875,
-0.026702880859375,
0.0184173583984375,
0.007411956787109375,
-0.0347900390625,
-0.0232696533203125,
-0.01271820068359375,
0.00591278076171875,
0.01186370849609375,
0.06536865234375,
-0.033538818359375,
0.01806640625,
0.0181427001953125,
-0.0006475448608398438,
0.0226898193359375,
-0.02593994140625,
-0.006862640380859375,
-0.0113983154296875,
0.05169677734375,
-0.045928955078125,
-0.0374755859375,
-0.004306793212890625,
-0.0298919677734375,
0.0174407958984375,
0.01432037353515625,
0.06768798828125,
0.01016998291015625,
-0.047637939453125,
-0.0199127197265625,
0.041046142578125,
-0.0249786376953125,
-0.043365478515625,
0.0182037353515625,
0.01155853271484375,
-0.00980377197265625,
-0.0256805419921875,
0.06988525390625,
0.016937255859375,
0.030853271484375,
0.04608154296875,
0.0231781005859375,
0.085205078125,
0.044677734375,
0.037872314453125,
-0.031524658203125,
0.0294647216796875,
0.01467132568359375,
0.034393310546875,
-0.06103515625,
-0.0291900634765625,
0.022369384765625,
-0.035430908203125,
0.01122283935546875,
0.031585693359375,
-0.02044677734375,
-0.00720977783203125,
-0.0161285400390625,
0.0545654296875,
-0.01177215576171875,
-0.03118896484375,
0.0053558349609375,
-0.004833221435546875,
-0.0007729530334472656,
0.0223541259765625,
0.01523590087890625,
-0.06951904296875,
-0.056610107421875,
0.0140533447265625,
-0.08392333984375,
-0.0150299072265625,
0.011962890625,
-0.05438232421875,
0.081298828125,
0.00799560546875,
0.0313720703125,
0.01153564453125,
0.0250396728515625,
-0.0104217529296875,
0.009002685546875,
-0.022674560546875,
0.033111572265625,
-0.017852783203125,
0.00510406494140625,
-0.013153076171875,
0.00954437255859375,
0.006237030029296875,
0.00023818016052246094,
0.08868408203125,
0.0167999267578125,
-0.055145263671875,
0.0016698837280273438,
0.06182861328125,
0.032379150390625,
-0.0028438568115234375,
0.062744140625,
0.00977325439453125,
0.005992889404296875,
0.01279449462890625,
-0.006134033203125,
0.0256195068359375,
-0.0266265869140625,
-0.0139312744140625,
0.01033782958984375,
0.0016393661499023438,
0.014495849609375,
-0.00371551513671875,
0.0258941650390625,
-0.01319122314453125,
-0.01580810546875,
0.00449371337890625,
-0.000667572021484375,
0.006618499755859375,
0.0129852294921875,
-0.0207672119140625,
-0.01288604736328125,
-0.007747650146484375,
-0.0126953125,
0.0182647705078125,
-0.0203094482421875,
-0.0362548828125,
0.01305389404296875,
0.018157958984375,
-0.04425048828125,
-0.03265380859375,
-0.0176544189453125,
0.01165008544921875,
-0.018951416015625,
0.0187225341796875,
-0.0197906494140625,
0.014739990234375,
-0.05364990234375,
-0.0039825439453125,
0.024078369140625,
0.03936767578125,
-0.0270233154296875,
-0.04541015625,
0.0206146240234375,
0.034332275390625,
0.0248260498046875,
0.0253448486328125,
0.05670166015625,
-0.09295654296875,
-0.00637054443359375,
-0.048675537109375,
0.0164794921875,
0.027008056640625,
0.00739288330078125,
-0.0141448974609375,
0.043853759765625,
-0.032257080078125,
-0.0005025863647460938,
-0.01806640625,
0.0266265869140625,
-0.01248931884765625,
0.009857177734375,
-0.005542755126953125,
0.043182373046875,
-0.007640838623046875,
0.0202178955078125,
-0.0182342529296875,
0.023712158203125,
0.0198974609375,
0.00817108154296875,
-0.0225677490234375,
-0.028350830078125,
0.06524658203125,
0.031219482421875,
0.0301666259765625,
-0.033477783203125,
0.03289794921875,
0.027496337890625,
-0.055206298828125,
-0.0186614990234375,
0.05267333984375,
-0.006725311279296875,
-0.003734588623046875,
-0.03314208984375,
0.051727294921875,
0.0275726318359375,
0.02056884765625,
-0.02447509765625,
0.0220184326171875,
0.05645751953125,
-0.039337158203125,
0.0192718505859375,
-0.007305145263671875,
-0.0635986328125,
0.049285888671875,
-0.00968170166015625,
0.0997314453125,
-0.01531982421875,
-0.07635498046875,
-0.00847625732421875,
0.007259368896484375,
-0.037750244140625,
0.00662994384765625,
0.037933349609375,
-0.037689208984375,
0.0330810546875,
-0.0245361328125,
-0.02703857421875,
0.0217742919921875,
-0.020538330078125,
0.0272216796875,
0.0106658935546875,
-0.023101806640625,
-0.016571044921875,
-0.03240966796875,
-0.0135955810546875,
-0.0245208740234375,
0.042144775390625,
-0.0047607421875,
0.12176513671875,
-0.05462646484375,
0.0250396728515625,
0.0007419586181640625,
0.0166015625,
-0.00727081298828125,
0.0211029052734375,
0.0093994140625,
0.0256195068359375,
-0.0100860595703125,
-0.0304718017578125,
-0.03472900390625,
0.01983642578125,
0.019683837890625,
-0.01227569580078125,
0.0090789794921875,
-0.01114654541015625,
0.0180511474609375,
0.01248931884765625,
0.0288238525390625,
-0.049285888671875,
-0.08721923828125,
-0.11187744140625,
-0.015655517578125,
-0.00341033935546875,
0.0167388916015625,
-0.0025730133056640625,
0.0159454345703125,
0.019073486328125,
-0.0828857421875,
0.00916290283203125,
-0.052154541015625,
0.028045654296875,
0.03131103515625,
0.07049560546875,
-0.0228424072265625,
0.01361083984375,
0.0017728805541992188,
0.0047760009765625,
0.0212860107421875,
0.0146636962890625,
0.034912109375,
-0.001811981201171875,
0.0307769775390625,
0.01297760009765625,
0.0228118896484375,
-0.007354736328125,
-0.01436614990234375,
0.022674560546875,
-0.01276397705078125,
0.00873565673828125,
0.01003265380859375,
-0.026275634765625,
-0.048828125,
-0.0028209686279296875,
0.0275115966796875,
-0.0260009765625,
-0.00823211669921875,
-0.0726318359375,
0.017242431640625,
0.056396484375,
0.01049041748046875,
-0.0268707275390625,
-0.010009765625,
-0.01087188720703125,
0.044647216796875,
0.034088134765625,
-0.028900146484375,
0.017120361328125,
0.026153564453125,
-0.03350830078125,
0.0091094970703125,
-0.0006098747253417969,
-0.0224761962890625,
0.0165252685546875,
0.007572174072265625,
0.01238250732421875,
-0.001712799072265625,
0.03912353515625,
0.017364501953125,
-0.0017366409301757812,
0.0677490234375,
-0.0465087890625,
-0.034942626953125,
-0.0157318115234375,
-0.0150299072265625,
0.015869140625,
-0.004482269287109375,
0.0015916824340820312,
-0.0199432373046875,
-0.024566650390625,
-0.037322998046875,
0.0196685791015625,
0.0208587646484375,
-0.048828125,
-0.10186767578125,
0.0259246826171875,
-0.0253143310546875,
-0.04730224609375,
0.01334381103515625,
0.019805908203125,
0.0096282958984375,
-0.050445556640625,
-0.0111846923828125,
0.0201873779296875,
-0.0095367431640625,
-0.01084136962890625,
-0.008880615234375,
0.032745361328125,
-0.0218963623046875,
0.0078277587890625,
-0.01244354248046875,
0.023101806640625,
0.0189971923828125,
-0.03057861328125,
0.0257720947265625,
0.0037021636962890625,
0.03277587890625,
0.048187255859375,
-0.031219482421875,
0.040771484375,
-0.0169525146484375,
-0.024749755859375,
-0.038238525390625,
-0.05316162109375,
0.01111602783203125,
-0.016998291015625,
0.050537109375,
0.0006265640258789062,
-0.0109405517578125,
0.005886077880859375,
-0.036376953125,
-0.0001246929168701172,
0.0235595703125,
-0.0003509521484375,
0.0031871795654296875,
-0.0506591796875,
-0.0024814605712890625,
-0.01270294189453125,
-0.00908660888671875,
-0.00826263427734375,
-0.010833740234375,
-0.000054836273193359375,
-0.0121612548828125,
0.0239715576171875,
-0.039764404296875,
0.0540771484375,
0.019317626953125,
0.0016632080078125,
-0.003143310546875,
0.01517486572265625,
0.01360321044921875,
-0.01357269287109375,
0.002979278564453125,
0.0288848876953125,
0.02239990234375,
-0.0244903564453125,
-0.016845703125,
0.01288604736328125,
0.0006494522094726562,
0.033355712890625,
-0.032806396484375,
-0.04998779296875,
0.0002994537353515625,
0.046966552734375,
0.00838470458984375,
0.07379150390625,
-0.04656982421875,
0.047698974609375,
0.0038967132568359375,
0.01947021484375,
-0.01477813720703125,
-0.036346435546875,
-0.0236968994140625,
0.0231170654296875,
-0.043182373046875,
0.00795745849609375,
-0.006927490234375,
-0.021759033203125,
0.01305389404296875,
-0.00360107421875,
0.019500732421875,
-0.00896453857421875,
0.0100860595703125,
0.039520263671875,
-0.00818634033203125,
0.0224609375
] |
2048fd0b5570f1db9d0a84f6fcbb90034f1a9c29
|
Wordpress Stackexchange
Q: function to remove 'comments and trackbacks are closed' Does anyone have a function I can place in my functions.php that will remove this? I want to avoid altering the core files. It currently says "Both comments and trackbacks are currently closed."
A: Look in your theme comments.php file for those words to delete. If not in there, check your functions.php file.
|
Q: function to remove 'comments and trackbacks are closed' Does anyone have a function I can place in my functions.php that will remove this? I want to avoid altering the core files. It currently says "Both comments and trackbacks are currently closed."
A: Look in your theme comments.php file for those words to delete. If not in there, check your functions.php file.
A: for thematic, it's inside the 'content-extensions.php' just do a search with ctrl-f and just leave the field empty
|
wordpress
|
{
"language": "en",
"length": 81,
"provenance": "stackexchange_00019.jsonl.gz:408752",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15162"
}
|
[
0.037200927734375,
0.004878997802734375,
0.00563812255859375,
-0.012115478515625,
0.0008931159973144531,
-0.033233642578125,
0.038848876953125,
-0.01971435546875,
0.03564453125,
0.0205230712890625,
-0.046295166015625,
-0.041046142578125,
-0.006511688232421875,
-0.0223846435546875,
-0.05694580078125,
-0.047576904296875,
0.03338623046875,
-0.01154327392578125,
0.027587890625,
0.00044035911560058594,
0.01352691650390625,
0.0245819091796875,
-0.009185791015625,
0.09368896484375,
-0.0063018798828125,
-0.0294647216796875,
0.08319091796875,
-0.01383209228515625,
0.004207611083984375,
-0.028533935546875,
0.01025390625,
0.0134124755859375,
-0.018890380859375,
0.05780029296875,
-0.03125,
-0.0229339599609375,
0.004608154296875,
0.029022216796875,
0.01947021484375,
0.0268707275390625,
0.0060882568359375,
0.005649566650390625,
-0.034423828125,
0.0152587890625,
-0.031524658203125,
-0.06365966796875,
0.040679931640625,
-0.0142364501953125,
0.004581451416015625,
0.0017442703247070312,
0.008453369140625,
0.0545654296875,
0.0241546630859375,
-0.055633544921875,
-0.0015306472778320312,
-0.01357269287109375,
0.0147247314453125,
-0.0012712478637695312,
0.02337646484375,
0.003574371337890625,
-0.0282440185546875,
0.01812744140625,
0.000640869140625,
-0.02178955078125,
-0.0008091926574707031,
-0.0009570121765136719,
0.00901031494140625,
0.0094146728515625,
-0.01416778564453125,
0.01190185546875,
0.0199432373046875,
-0.0181884765625,
0.00817108154296875,
-0.0084381103515625,
0.037750244140625,
0.00304412841796875,
-0.016571044921875,
0.0112457275390625,
0.0176239013671875,
0.0270233154296875,
0.005512237548828125,
-0.025299072265625,
-0.02789306640625,
0.037933349609375,
-0.0296630859375,
0.032196044921875,
0.006748199462890625,
-0.017242431640625,
-0.047454833984375,
0.00286865234375,
-0.029388427734375,
-0.06072998046875,
-0.013214111328125,
0.0030078887939453125,
-0.007221221923828125,
-0.00527191162109375,
0.00952911376953125,
0.06427001953125,
-0.017974853515625,
-0.035186767578125,
0.0053558349609375,
-0.005035400390625,
-0.06817626953125,
-0.0088958740234375,
-0.006977081298828125,
0.05499267578125,
-0.04278564453125,
-0.05023193359375,
0.0226287841796875,
0.04693603515625,
0.042877197265625,
-0.0255279541015625,
-0.05072021484375,
-0.056121826171875,
0.036102294921875,
0.0198211669921875,
-0.07452392578125,
0.06268310546875,
0.006927490234375,
0.024078369140625,
0.005523681640625,
0.0009379386901855469,
-0.032196044921875,
0.040863037109375,
0.0013980865478515625,
-0.01434326171875,
-0.032196044921875,
0.0298004150390625,
0.007762908935546875,
0.0472412109375,
-0.04632568359375,
0.0220794677734375,
0.022430419921875,
-0.0472412109375,
-0.0396728515625,
-0.044158935546875,
0.0112457275390625,
-0.002704620361328125,
-0.01384735107421875,
0.0220489501953125,
0.0307464599609375,
-0.047210693359375,
-0.0184326171875,
0.012481689453125,
-0.01218414306640625,
0.005397796630859375,
0.03997802734375,
0.03515625,
-0.03289794921875,
-0.0701904296875,
0.029693603515625,
0.0036869049072265625,
0.0238189697265625,
0.0028133392333984375,
0.0194854736328125,
-0.027923583984375,
0.036529541015625,
-0.043609619140625,
0.009521484375,
-0.0251922607421875,
0.0190277099609375,
-0.01506805419921875,
-0.005451202392578125,
-0.02191162109375,
-0.042327880859375,
0.0160980224609375,
-0.031707763671875,
0.00384521484375,
0.0206298828125,
0.02227783203125,
-0.008148193359375,
-0.040435791015625,
0.00439453125,
0.021331787109375,
0.00862884521484375,
0.04644775390625,
0.007419586181640625,
0.01465606689453125,
0.0015888214111328125,
0.0269927978515625,
0.009429931640625,
-0.036956787109375,
-0.020599365234375,
0.01178741455078125,
-0.08526611328125,
0.028717041015625,
0.025390625,
0.0653076171875,
0.00933837890625,
0.0109100341796875,
0.08074951171875,
0.0051422119140625,
0.03466796875,
-0.05029296875,
0.000888824462890625,
-0.0205841064453125,
-0.0239410400390625,
-0.0112152099609375,
-0.019134521484375,
0.0355224609375,
0.0238494873046875,
0.007537841796875,
-0.0178985595703125,
-0.00695037841796875,
-0.12103271484375,
0.013885498046875,
-0.054718017578125,
0.053436279296875,
-0.051177978515625,
0.03424072265625,
0.047119140625,
-0.027435302734375,
-0.032318115234375,
0.041900634765625,
0.00974273681640625,
-0.05462646484375,
-0.016815185546875,
0.03515625,
0.01251220703125,
0.0106201171875,
-0.0118865966796875,
0.007381439208984375,
-0.01401519775390625,
-0.02386474609375,
0.00010651350021362305,
0.00823211669921875,
-0.031707763671875,
-0.01422119140625,
0.00447845458984375,
-0.0152130126953125,
0.0206451416015625,
0.05096435546875,
0.04107666015625,
0.039703369140625,
0.0164947509765625,
0.01453399658203125,
0.03778076171875,
-0.055938720703125,
-0.0109100341796875,
0.016815185546875,
0.052215576171875,
0.045806884765625,
0.026885986328125,
0.015289306640625,
0.08782958984375,
-0.00568389892578125,
0.0340576171875,
-0.02325439453125,
0.0183258056640625,
-0.0011510848999023438,
0.034454345703125,
-0.01904296875,
0.026458740234375,
-0.032928466796875,
0.06304931640625,
0.0146484375,
-0.047882080078125,
-0.05059814453125,
0.013031005859375,
-0.0016946792602539062,
0.0137786865234375,
-0.08782958984375,
-0.04351806640625,
-0.0243377685546875,
0.013916015625,
-0.0240478515625,
0.025604248046875,
0.0193939208984375,
-0.0027713775634765625,
-0.036895751953125,
0.0240936279296875,
0.017791748046875,
-0.019805908203125,
0.07269287109375,
0.01910400390625,
0.046234130859375,
-0.00848388671875,
-0.02374267578125,
-0.04052734375,
0.0601806640625,
-0.01355743408203125,
0.031982421875,
-0.02679443359375,
-0.0184326171875,
-0.0024662017822265625,
-0.007450103759765625,
-0.0020160675048828125,
-0.008880615234375,
-0.01593017578125,
-0.0302276611328125,
-0.01104736328125,
0.058013916015625,
-0.03900146484375,
0.0550537109375,
0.01342010498046875,
0.0012941360473632812,
0.036834716796875,
-0.0125579833984375,
0.0108642578125,
0.00931549072265625,
0.012664794921875,
0.05499267578125,
0.028778076171875,
-0.0300140380859375,
0.030120849609375,
0.03851318359375,
0.08538818359375,
-0.01904296875,
0.0117034912109375,
0.05767822265625,
-0.0214691162109375,
0.00630950927734375,
0.004024505615234375,
0.040618896484375,
-0.041778564453125,
-0.05609130859375,
-0.036956787109375,
0.002777099609375,
-0.052520751953125,
-0.0215606689453125,
-0.0300750732421875,
-0.02099609375,
-0.0022430419921875,
0.0152587890625,
-0.0190582275390625,
0.0009756088256835938,
0.0347900390625,
0.0101776123046875,
0.01560211181640625,
-0.0030384063720703125,
-0.09405517578125,
-0.0158538818359375,
-0.07391357421875,
0.024017333984375,
-0.028594970703125,
0.00820159912109375,
-0.003688812255859375,
0.091796875,
0.008636474609375,
-0.03900146484375,
-0.0008902549743652344,
-0.058929443359375,
-0.019439697265625,
0.0229034423828125,
0.0148773193359375,
0.013031005859375,
0.0114288330078125,
0.00859832763671875,
-0.032257080078125,
0.0283966064453125,
-0.01824951171875,
-0.026123046875,
0.0002162456512451172,
0.07366943359375,
0.01482391357421875,
0.024932861328125,
0.0203399658203125,
0.033599853515625,
0.003696441650390625,
-0.0183868408203125,
-0.0301971435546875,
0.0166473388671875,
-0.0328369140625,
-0.02764892578125,
0.03704833984375,
-0.036773681640625,
-0.035369873046875,
0.0182037353515625,
0.077392578125,
0.046356201171875,
0.0228729248046875,
0.0176544189453125,
0.04791259765625,
0.013916015625,
0.042327880859375,
-0.08258056640625,
0.0285491943359375,
-0.007465362548828125,
0.0137176513671875,
0.01171875,
0.042633056640625,
0.0018110275268554688,
-0.00783538818359375,
-0.06280517578125,
-0.003124237060546875,
0.0338134765625,
-0.03369140625,
-0.007965087890625,
-0.00710296630859375,
-0.0036296844482421875,
0.00624847412109375,
0.05133056640625,
-0.05078125,
0.0010633468627929688,
0.00616455078125,
0.01129150390625,
-0.0204315185546875,
-0.01343536376953125,
-0.0601806640625,
-0.00547027587890625,
-0.05352783203125,
0.05487060546875,
0.0233154296875,
-0.00844573974609375,
-0.039093017578125,
0.0175933837890625,
-0.058258056640625,
-0.01218414306640625,
0.0175628662109375,
-0.01158905029296875,
0.0011148452758789062,
-0.0090179443359375,
-0.005504608154296875,
-0.037353515625,
0.00878143310546875,
-0.041534423828125,
-0.037811279296875,
0.003509521484375,
-0.043365478515625,
0.0430908203125,
0.024566650390625,
-0.00726318359375,
-0.00508880615234375,
0.04388427734375,
0.0253143310546875,
-0.014404296875,
0.0018291473388671875,
-0.016143798828125,
0.018951416015625,
-0.00281524658203125,
-0.0111083984375,
-0.00848388671875,
-0.015594482421875,
0.0143890380859375,
0.02752685546875,
0.07647705078125,
-0.0132598876953125,
-0.009765625,
0.01049041748046875,
-0.019439697265625,
0.0128631591796875,
-0.01495361328125,
-0.04730224609375,
0.0104217529296875,
-0.0236358642578125,
0.003887176513671875,
-0.01456451416015625,
-0.0193328857421875,
0.004787445068359375,
-0.0198822021484375,
-0.0307464599609375,
0.03033447265625,
0.013214111328125,
0.025848388671875,
-0.00528717041015625,
-0.0283660888671875,
0.01204681396484375,
0.03765869140625,
-0.013824462890625,
0.035308837890625,
0.0081787109375,
-0.025543212890625,
0.061187744140625,
-0.01264190673828125,
0.0081939697265625,
-0.04681396484375,
0.038177490234375,
-0.00860595703125,
-0.0130767822265625,
0.00720977783203125,
-0.0301361083984375,
0.06982421875,
-0.01090240478515625,
-0.0262451171875,
-0.006717681884765625,
-0.0236663818359375,
0.03045654296875,
0.01544189453125,
0.027008056640625,
-0.0423583984375,
-0.05584716796875,
0.021026611328125,
-0.055206298828125,
0.07232666015625,
0.0210418701171875,
-0.0041656494140625,
0.060546875,
0.045379638671875,
0.0263214111328125,
-0.037322998046875,
-0.046356201171875,
-0.06683349609375,
0.035369873046875,
-0.0237884521484375,
-0.004489898681640625,
0.0226593017578125,
-0.00609588623046875,
0.07421875,
-0.00005644559860229492,
-0.04315185546875,
-0.0130462646484375,
0.0008273124694824219,
0.044342041015625,
0.02215576171875,
0.040252685546875,
-0.00037407875061035156,
-0.0112152099609375,
0.0097198486328125,
-0.00972747802734375,
0.004962921142578125,
0.0018224716186523438,
-0.01410675048828125,
0.019317626953125,
0.0031585693359375,
-0.01165771484375,
0.00881195068359375,
0.0404052734375,
0.01123046875,
0.0248260498046875,
-0.02197265625,
0.016265869140625,
0.0033855438232421875,
-0.005382537841796875,
0.00751495361328125,
0.0166473388671875,
0.0224609375,
-0.0211639404296875,
0.039520263671875,
-0.004364013671875,
-0.01346588134765625,
0.035400390625,
-0.01708984375,
0.005710601806640625,
0.027496337890625,
-0.00007021427154541016,
0.031829833984375,
-0.00385284423828125,
0.039031982421875,
0.06048583984375,
-0.0330810546875,
0.039642333984375,
0.0302734375,
-0.03936767578125,
-0.00986480712890625,
0.00879669189453125,
-0.050018310546875,
-0.0307159423828125,
-0.04583740234375,
0.012786865234375,
-0.055816650390625,
-0.01364898681640625,
-0.000005602836608886719,
-0.0071868896484375,
-0.040557861328125,
0.0001995563507080078,
-0.08953857421875,
-0.00861358642578125,
-0.01331329345703125,
0.018463134765625,
0.02142333984375,
0.00870513916015625,
-0.00665283203125,
-0.0029315948486328125,
-0.0200347900390625,
-0.0247039794921875,
-0.0087890625,
0.06610107421875,
0.01415252685546875,
-0.049774169921875,
-0.0035076141357421875,
-0.05255126953125,
-0.0121612548828125,
-0.071533203125,
-0.057891845703125,
-0.041473388671875,
0.00975799560546875,
0.0148162841796875,
0.01346588134765625,
-0.0101318359375,
-0.0132904052734375,
0.0005693435668945312,
0.02716064453125,
0.0269012451171875,
0.0487060546875,
-0.004291534423828125,
0.01160430908203125,
0.036834716796875,
0.039337158203125,
0.035675048828125,
0.03070068359375,
0.033599853515625,
-0.06951904296875,
0.038330078125,
-0.03814697265625,
-0.038818359375,
-0.066650390625,
-0.039764404296875,
0.006595611572265625,
0.056976318359375,
-0.01690673828125,
-0.018829345703125,
-0.0113677978515625,
0.0030670166015625,
-0.038116455078125,
0.061248779296875,
-0.006923675537109375,
0.0038623809814453125,
-0.051300048828125,
-0.009918212890625,
0.036346435546875,
-0.0148468017578125,
0.0190887451171875,
0.0004780292510986328,
-0.024871826171875,
0.01433563232421875,
0.033172607421875,
-0.02337646484375,
0.01287078857421875,
0.035003662109375,
-0.041412353515625,
0.0205535888671875,
0.0005602836608886719,
-0.011993408203125,
0.05535888671875,
0.0296478271484375,
-0.038238525390625,
-0.015777587890625,
0.058837890625,
0.0301055908203125,
-0.00640869140625,
0.056427001953125,
-0.019805908203125,
0.012481689453125,
0.0225372314453125,
0.06719970703125,
-0.041595458984375,
0.0272216796875,
0.022857666015625,
-0.0089569091796875,
0.051239013671875,
0.00316619873046875,
0.0098419189453125,
-0.00530242919921875,
-0.042572021484375,
0.03021240234375,
-0.032257080078125,
-0.0249786376953125,
0.029144287109375,
0.0145263671875,
0.007221221923828125,
-0.0006189346313476562,
-0.0154876708984375,
-0.06903076171875,
-0.004726409912109375,
0.04791259765625,
0.01470184326171875,
-0.06231689453125,
-0.0122222900390625,
0.044281005859375,
-0.02362060546875,
-0.0845947265625,
0.016143798828125,
0.0072784423828125,
0.02374267578125,
-0.005817413330078125,
-0.01236724853515625,
0.00701904296875,
0.02178955078125,
-0.041717529296875,
0.022003173828125,
-0.0009317398071289062,
0.001880645751953125,
-0.045684814453125,
-0.005901336669921875,
0.08062744140625,
-0.0219879150390625,
-0.02825927734375,
0.0360107421875,
-0.051727294921875,
-0.04681396484375,
0.0017223358154296875,
0.002834320068359375,
0.0478515625,
-0.0249481201171875,
-0.021881103515625,
0.028778076171875,
-0.00545501708984375,
-0.005580902099609375,
-0.010772705078125,
0.01568603515625,
-0.01007843017578125,
0.02435302734375,
-0.0193634033203125,
0.0076904296875,
0.0214385986328125,
-0.0163421630859375,
-0.0809326171875,
0.0655517578125,
0.0009312629699707031,
0.0345458984375,
0.004093170166015625,
0.00756072998046875,
-0.01120758056640625,
-0.011688232421875,
-0.0128021240234375,
0.0704345703125,
0.04180908203125,
0.037384033203125,
0.004367828369140625,
0.0045928955078125,
0.028533935546875,
0.010345458984375,
0.06585693359375,
0.009124755859375,
0.03619384765625,
-0.0264739990234375,
0.0416259765625,
0.0428466796875,
-0.030792236328125,
-0.0151519775390625,
-0.017852783203125,
0.0115814208984375,
0.01058197021484375,
-0.0305023193359375,
0.03131103515625,
-0.0367431640625,
-0.037933349609375,
0.0136260986328125,
0.01190185546875,
0.01435089111328125,
0.0263671875,
0.036041259765625,
0.0169677734375,
0.00818634033203125,
0.00234222412109375,
-0.01346588134765625,
-0.030975341796875,
0.06829833984375,
0.04864501953125,
-0.0386962890625,
-0.0032253265380859375,
-0.039947509765625,
0.05267333984375,
0.026947021484375,
0.024566650390625,
0.041046142578125,
0.038665771484375,
-0.007251739501953125,
-0.0262603759765625,
0.0171356201171875,
0.01200103759765625,
-0.03485107421875,
-0.0026950836181640625,
0.0175628662109375,
0.03814697265625,
-0.00832366943359375,
-0.03118896484375,
0.0016956329345703125,
0.0245819091796875,
-0.002147674560546875,
-0.0239410400390625,
0.01128387451171875,
-0.0002586841583251953,
-0.002452850341796875,
0.0022830963134765625,
0.03094482421875,
0.0210113525390625,
0.025421142578125,
0.00888824462890625,
-0.0225830078125,
-0.00029754638671875,
0.007297515869140625,
0.0173797607421875,
0.02728271484375,
0.00800323486328125,
-0.005260467529296875,
-0.01203155517578125,
-0.0170440673828125,
0.02264404296875,
-0.0042877197265625,
0.0021762847900390625,
0.024688720703125,
0.041351318359375,
0.0167694091796875,
0.034454345703125,
0.022613525390625,
0.00322723388671875,
-0.04547119140625,
0.00342559814453125,
-0.066162109375,
0.00446319580078125,
0.01337432861328125,
0.0284423828125,
0.00333404541015625,
0.02337646484375,
0.01715087890625,
-0.004405975341796875,
0.0020542144775390625,
0.01291656494140625,
-0.0181732177734375,
-0.0192718505859375,
-0.0096282958984375,
0.005889892578125,
0.03948974609375,
0.0181121826171875,
-0.0074310302734375,
0.029998779296875,
0.04962158203125,
0.0004165172576904297,
-0.00766754150390625,
0.0131378173828125,
-0.003734588623046875,
0.032135009765625,
-0.0117340087890625,
-0.0245208740234375,
0.004970550537109375,
-0.021453857421875,
0.0279541015625,
-0.0022144317626953125,
-0.040802001953125,
-0.01393890380859375,
0.01953125,
-0.052215576171875,
0.054840087890625,
-0.00849151611328125,
-0.022308349609375,
0.00299072265625,
-0.0013799667358398438,
0.005828857421875,
-0.016754150390625,
-0.0017337799072265625,
-0.01050567626953125,
-0.045257568359375,
-0.02545166015625,
-0.003971099853515625,
0.0299072265625,
-0.012847900390625,
0.0684814453125,
-0.0171661376953125,
0.0159912109375,
0.004116058349609375,
0.020416259765625,
-0.01824951171875,
0.004451751708984375,
0.018798828125,
0.03045654296875,
0.01435089111328125,
-0.01788330078125,
-0.05511474609375,
0.04888916015625,
0.02117919921875,
0.00662994384765625,
0.07281494140625,
-0.01418304443359375,
-0.0182952880859375,
-0.03460693359375,
-0.03448486328125,
-0.01265716552734375,
0.0033931732177734375,
0.05133056640625,
0.00618743896484375,
-0.0020351409912109375,
0.0012989044189453125,
0.00513458251953125,
0.01422119140625,
0.0143585205078125,
-0.01158905029296875,
0.021820068359375,
-0.0088958740234375,
0.06646728515625,
0.04248046875,
-0.034423828125,
0.052215576171875,
-0.00695037841796875,
-0.037841796875,
0.0174407958984375,
-0.00860595703125,
-0.006740570068359375,
-0.0162353515625,
-0.00396728515625,
-0.0244293212890625,
0.0029582977294921875,
0.0220794677734375,
-0.018218994140625,
0.01399993896484375,
-0.023834228515625,
0.003875732421875,
0.0229949951171875,
0.01433563232421875,
-0.004238128662109375,
-0.0107421875,
-0.035369873046875,
-0.01270294189453125,
-0.0236358642578125,
-0.06201171875,
-0.00292205810546875,
-0.00392913818359375,
0.0225982666015625,
0.013275146484375,
-0.032684326171875,
0.01094818115234375,
-0.00952911376953125,
0.0172576904296875,
0.013519287109375,
0.0152740478515625,
-0.0203399658203125,
0.01224517822265625,
-0.0347900390625,
-0.056488037109375,
-0.040130615234375,
0.0635986328125,
-0.030731201171875,
0.0247802734375,
0.0199737548828125,
-0.0239715576171875,
0.0269317626953125,
0.0498046875,
0.050384521484375,
0.10479736328125,
0.0003948211669921875,
-0.0181884765625,
0.036163330078125,
-0.0140228271484375,
-0.0360107421875,
-0.01480865478515625,
0.010009765625,
-0.009552001953125,
-0.0200347900390625,
0.0127105712890625,
0.004268646240234375,
0.0091400146484375,
-0.042205810546875,
-0.09893798828125,
0.0218963623046875,
-0.0095672607421875,
-0.05322265625,
-0.0367431640625,
-0.003696441650390625,
-0.0108795166015625,
0.04290771484375,
-0.01013946533203125,
0.00612640380859375,
-0.02642822265625,
0.0343017578125,
0.0175018310546875,
0.051788330078125,
0.036956787109375,
0.0196685791015625,
0.0278472900390625,
0.03411865234375,
0.008056640625,
0.022918701171875,
0.0184173583984375,
0.004695892333984375,
0.030609130859375,
0.04547119140625,
-0.02520751953125,
-0.0204620361328125,
-0.0321044921875,
-0.0291290283203125,
-0.01105499267578125,
-0.00771331787109375,
0.007106781005859375,
0.0081634521484375,
0.005741119384765625,
0.0227203369140625,
-0.015869140625,
-0.0194549560546875,
-0.024200439453125,
-0.023956298828125,
-0.034454345703125,
-0.00835418701171875,
0.01457977294921875,
-0.053131103515625,
0.000995635986328125,
0.0034503936767578125,
-0.002780914306640625,
-0.0016145706176757812,
-0.04913330078125,
-0.0204010009765625,
-0.0178985595703125,
-0.040863037109375,
-0.01300811767578125,
0.02850341796875,
-0.0223388671875,
0.01837158203125,
-0.0086669921875,
0.01177215576171875,
-0.0233306884765625,
0.023223876953125,
0.018218994140625,
-0.006134033203125,
0.02001953125,
-0.046600341796875,
-0.003711700439453125,
0.0184478759765625,
0.0213775634765625,
0.03472900390625,
0.004730224609375,
-0.07403564453125,
-0.007152557373046875,
0.01776123046875,
0.0108642578125,
0.0112762451171875,
-0.004779815673828125,
0.0179443359375,
-0.0005350112915039062,
0.047271728515625,
-0.0153045654296875,
0.04278564453125,
-0.0008058547973632812,
0.03582763671875,
-0.018402099609375,
-0.031036376953125,
0.00904083251953125,
-0.0248870849609375,
-0.0218505859375,
-0.0063018798828125,
-0.01324462890625,
-0.08892822265625,
0.04083251953125,
0.046234130859375,
0.017486572265625,
0.050689697265625
] |
bd477c60c6cde59121691c09960390b41fda2b68
|
Wordpress Stackexchange
Q: How do you check if a WordPress template file exist? Is there a native function to check if a theme a template file. For instance, if a theme is not using the 'home.php' file, then execute some code...
A: Any reason locate_template() (Codex ref) wouldn't work?
if ( '' != locate_template( 'home.php' ) ) {
// 'home.php' found in Theme, do something
}
Note that locate_template() will check both TEMPLATEPATH and STYLESHEETPATH, so it works for both a stand-alone Theme and a Child Theme.
|
Q: How do you check if a WordPress template file exist? Is there a native function to check if a theme a template file. For instance, if a theme is not using the 'home.php' file, then execute some code...
A: Any reason locate_template() (Codex ref) wouldn't work?
if ( '' != locate_template( 'home.php' ) ) {
// 'home.php' found in Theme, do something
}
Note that locate_template() will check both TEMPLATEPATH and STYLESHEETPATH, so it works for both a stand-alone Theme and a Child Theme.
A: So I would add to the Answer the following:
function foo_function() {
$located = locate_template( 'home.php' );
if ( !empty( $located ) ) {
// 'home.php' found in Theme, do something
}
}
add_action('init', 'foo_function');
// remember to change both of the parameters above, first one for where you want the
// action to happen and the second one the name of the function declared
As @Chip Bennett, said it will check both TEMPLATEPATH and STYLESHEETPATH, but I would append the code to a hook instead of just putting it in the functions.php file.
But's up to you.
|
wordpress
|
{
"language": "en",
"length": 184,
"provenance": "stackexchange_00019.jsonl.gz:408754",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15172"
}
|
[
-0.0124053955078125,
0.00533294677734375,
0.0096282958984375,
0.01335906982421875,
-0.0064849853515625,
-0.007366180419921875,
0.020355224609375,
-0.05206298828125,
0.01016998291015625,
0.0225372314453125,
-0.0638427734375,
-0.0017938613891601562,
-0.00019741058349609375,
0.0109405517578125,
-0.010894775390625,
-0.0499267578125,
0.029815673828125,
-0.039825439453125,
0.0067596435546875,
-0.01116943359375,
0.0165252685546875,
0.005146026611328125,
0.00701904296875,
0.0170440673828125,
0.0012407302856445312,
-0.0150909423828125,
0.08026123046875,
-0.01271820068359375,
-0.016876220703125,
-0.032867431640625,
0.01806640625,
0.0282745361328125,
0.0158538818359375,
0.004512786865234375,
-0.0009889602661132812,
-0.0127716064453125,
-0.00992584228515625,
0.0204925537109375,
0.007274627685546875,
0.010528564453125,
0.0007414817810058594,
0.00968170166015625,
0.0176849365234375,
0.04718017578125,
-0.0173797607421875,
-0.043182373046875,
0.0006780624389648438,
-0.041656494140625,
0.0031452178955078125,
0.051605224609375,
0.0070648193359375,
-0.018402099609375,
0.0032806396484375,
-0.0245513916015625,
0.007686614990234375,
-0.0085296630859375,
-0.0015668869018554688,
0.007061004638671875,
0.0255279541015625,
-0.05413818359375,
-0.04156494140625,
-0.0016260147094726562,
0.038604736328125,
0.022186279296875,
-0.0191192626953125,
-0.00354766845703125,
-0.032562255859375,
0.027496337890625,
-0.0286865234375,
-0.03875732421875,
0.0085906982421875,
-0.0165252685546875,
0.0088653564453125,
0.005352020263671875,
0.032379150390625,
-0.032012939453125,
-0.014007568359375,
-0.0173797607421875,
0.0167388916015625,
0.043365478515625,
-0.0242156982421875,
-0.0247802734375,
-0.035736083984375,
-0.046600341796875,
0.0131683349609375,
-0.0017919540405273438,
-0.00753021240234375,
-0.0015649795532226562,
-0.05609130859375,
-0.0236053466796875,
-0.037353515625,
-0.035614013671875,
-0.0240020751953125,
-0.0278778076171875,
-0.0233612060546875,
-0.002838134765625,
0.0174713134765625,
0.07733154296875,
-0.046905517578125,
0.0227813720703125,
-0.03338623046875,
-0.0099029541015625,
0.00708770751953125,
-0.035980224609375,
0.0213165283203125,
0.060516357421875,
0.0033473968505859375,
-0.023193359375,
0.00495147705078125,
0.0117645263671875,
0.0080108642578125,
-0.002628326416015625,
-0.047698974609375,
-0.0294952392578125,
-0.03363037109375,
0.046630859375,
-0.0447998046875,
-0.036163330078125,
-0.0026836395263671875,
-0.01081085205078125,
-0.00669097900390625,
0.0216522216796875,
0.038177490234375,
-0.03643798828125,
-0.0011148452758789062,
-0.0235748291015625,
-0.03125,
-0.0343017578125,
-0.005603790283203125,
0.049163818359375,
-0.01450347900390625,
0.01403045654296875,
-0.04052734375,
-0.0665283203125,
-0.07666015625,
-0.0207672119140625,
0.01439666748046875,
0.0151824951171875,
-0.01041412353515625,
-0.020416259765625,
0.058807373046875,
-0.00592041015625,
-0.0301513671875,
0.018157958984375,
-0.029083251953125,
-0.0056915283203125,
0.021881103515625,
0.0360107421875,
-0.0296630859375,
-0.0292510986328125,
0.01611328125,
-0.0300750732421875,
0.0186767578125,
0.007709503173828125,
0.0201873779296875,
-0.0275421142578125,
-0.011627197265625,
-0.015533447265625,
0.01271820068359375,
-0.020599365234375,
-0.01617431640625,
-0.026519775390625,
0.0231475830078125,
-0.051971435546875,
-0.05889892578125,
0.040374755859375,
-0.03961181640625,
-0.01079559326171875,
0.0161895751953125,
0.0230255126953125,
-0.0120391845703125,
-0.040496826171875,
0.0302734375,
-0.0044708251953125,
-0.026702880859375,
0.029296875,
0.02398681640625,
0.0150604248046875,
0.00013840198516845703,
0.05609130859375,
0.0291748046875,
-0.0028858184814453125,
0.050018310546875,
-0.00803375244140625,
-0.06878662109375,
0.0177459716796875,
0.0034961700439453125,
0.034820556640625,
0.02093505859375,
-0.002231597900390625,
0.0567626953125,
0.0057220458984375,
-0.0182647705078125,
0.021087646484375,
-0.034912109375,
-0.016510009765625,
-0.00965118408203125,
0.0190887451171875,
-0.02862548828125,
-0.0005006790161132812,
0.0168914794921875,
-0.00011622905731201172,
0.022979736328125,
-0.016693115234375,
-0.056610107421875,
0.0078582763671875,
-0.025146484375,
0.04022216796875,
0.007480621337890625,
0.0262908935546875,
0.0159149169921875,
0.01276397705078125,
-0.02093505859375,
-0.042449951171875,
-0.02960205078125,
0.00662994384765625,
-0.007266998291015625,
-0.0014514923095703125,
0.00846099853515625,
0.00679779052734375,
-0.0026226043701171875,
0.01485443115234375,
-0.01812744140625,
0.00888824462890625,
-0.0247344970703125,
0.0291290283203125,
-0.042266845703125,
0.031280517578125,
-0.043243408203125,
0.062255859375,
-0.05316162109375,
0.0077972412109375,
-0.0098724365234375,
0.001247406005859375,
-0.0198974609375,
-0.00022649765014648438,
-0.00946807861328125,
-0.055694580078125,
0.00981903076171875,
0.0382080078125,
0.041595458984375,
0.08447265625,
-0.0122528076171875,
-0.019683837890625,
0.0931396484375,
-0.04217529296875,
-0.00826263427734375,
-0.01332855224609375,
0.027008056640625,
0.03778076171875,
-0.041900634765625,
-0.00183868408203125,
0.0162200927734375,
-0.054656982421875,
-0.007663726806640625,
0.03515625,
-0.0208282470703125,
0.03741455078125,
-0.0343017578125,
0.027008056640625,
-0.0216064453125,
0.015106201171875,
0.040802001953125,
-0.00682830810546875,
0.051239013671875,
0.00039267539978027344,
0.028717041015625,
0.0031147003173828125,
-0.0209197998046875,
0.01739501953125,
0.004421234130859375,
-0.038177490234375,
0.0198822021484375,
0.08404541015625,
-0.020050048828125,
0.08099365234375,
-0.0321044921875,
-0.0256195068359375,
0.01340484619140625,
0.06591796875,
-0.031402587890625,
0.03204345703125,
-0.0517578125,
-0.017913818359375,
-0.036834716796875,
-0.050628662109375,
-0.0008177757263183594,
-0.00237274169921875,
0.059844970703125,
0.04644775390625,
0.045074462890625,
0.03619384765625,
-0.0023345947265625,
0.056640625,
0.00595855712890625,
-0.0174713134765625,
0.005840301513671875,
-0.004917144775390625,
0.00580596923828125,
-0.01065826416015625,
0.011932373046875,
0.038787841796875,
-0.01739501953125,
0.0153350830078125,
0.00464630126953125,
0.0163421630859375,
0.026519775390625,
-0.0186920166015625,
-0.0272979736328125,
-0.002552032470703125,
-0.04266357421875,
0.0078887939453125,
0.0175323486328125,
0.04498291015625,
-0.011566162109375,
-0.047515869140625,
-0.0014190673828125,
0.0086212158203125,
-0.08782958984375,
-0.09515380859375,
-0.0229949951171875,
0.01629638671875,
0.0121002197265625,
-0.01197052001953125,
0.02386474609375,
-0.02532958984375,
-0.02117919921875,
0.0174713134765625,
0.010223388671875,
-0.04296875,
-0.0491943359375,
-0.07501220703125,
-0.07183837890625,
-0.03082275390625,
0.005901336669921875,
-0.006763458251953125,
-0.0077362060546875,
0.07373046875,
0.006374359130859375,
-0.058624267578125,
-0.010955810546875,
0.032867431640625,
-0.005168914794921875,
0.020172119140625,
0.0198516845703125,
-0.0108489990234375,
-0.0173492431640625,
0.0229949951171875,
-0.03289794921875,
-0.00591278076171875,
0.000812530517578125,
-0.04241943359375,
-0.018402099609375,
-0.0670166015625,
-0.017425537109375,
0.044830322265625,
0.0151214599609375,
-0.0748291015625,
0.0158538818359375,
-0.07464599609375,
-0.0828857421875,
0.0270538330078125,
-0.05877685546875,
0.10003662109375,
0.059295654296875,
-0.0261688232421875,
0.041168212890625,
0.0137939453125,
0.022613525390625,
0.00894927978515625,
-0.0003490447998046875,
-0.022979736328125,
0.0740966796875,
0.01265716552734375,
0.0173797607421875,
-0.031829833984375,
0.021881103515625,
-0.0211029052734375,
0.011688232421875,
0.004131317138671875,
-0.0174102783203125,
-0.0237274169921875,
0.0187835693359375,
-0.0321044921875,
-0.0249786376953125,
0.035400390625,
0.0084075927734375,
0.0259857177734375,
-0.03839111328125,
-0.0196990966796875,
-0.0225830078125,
0.060760498046875,
-0.0283355712890625,
-0.0205078125,
0.00017535686492919922,
0.005096435546875,
-0.04296875,
0.005153656005859375,
-0.04571533203125,
0.007659912109375,
-0.061767578125,
0.02191162109375,
0.00524139404296875,
-0.0252532958984375,
-0.0212249755859375,
-0.01380157470703125,
-0.052581787109375,
-0.0301666259765625,
0.0082550048828125,
0.019775390625,
0.030303955078125,
0.0173187255859375,
0.026031494140625,
0.016693115234375,
0.0160369873046875,
-0.053375244140625,
-0.0307769775390625,
-0.003467559814453125,
-0.0582275390625,
0.03302001953125,
0.040374755859375,
-0.0126953125,
0.00913238525390625,
0.020782470703125,
0.0194854736328125,
0.00020706653594970703,
0.01534271240234375,
-0.01303863525390625,
0.04254150390625,
-0.019378662109375,
-0.0011806488037109375,
-0.014862060546875,
0.0019397735595703125,
-0.0023670196533203125,
-0.053680419921875,
0.0364990234375,
-0.0014925003051757812,
0.024749755859375,
0.03924560546875,
-0.03131103515625,
0.0241241455078125,
0.0011854171752929688,
0.0205230712890625,
0.0012521743774414062,
0.017333984375,
-0.008056640625,
0.00800323486328125,
0.0238494873046875,
0.04736328125,
0.0207977294921875,
-0.032745361328125,
0.01041412353515625,
0.08734130859375,
0.027801513671875,
-0.032562255859375,
-0.04852294921875,
0.057769775390625,
0.040191650390625,
0.07867431640625,
0.00785064697265625,
-0.01140594482421875,
-0.02813720703125,
0.01422882080078125,
0.0428466796875,
-0.031982421875,
0.0005393028259277344,
0.0472412109375,
0.00081634521484375,
-0.03900146484375,
0.0144195556640625,
-0.01800537109375,
0.028472900390625,
0.0447998046875,
0.0184173583984375,
-0.04278564453125,
0.0211029052734375,
0.0281524658203125,
-0.00470733642578125,
-0.00524139404296875,
-0.028839111328125,
-0.0184478759765625,
0.0013189315795898438,
-0.01175689697265625,
0.028167724609375,
0.01873779296875,
-0.0008096694946289062,
0.003978729248046875,
0.034576416015625,
-0.00885772705078125,
0.02783203125,
0.045684814453125,
-0.0286407470703125,
0.0295867919921875,
0.005680084228515625,
-0.036224365234375,
-0.01381683349609375,
0.002887725830078125,
0.0061798095703125,
-0.0199127197265625,
-0.048828125,
-0.037933349609375,
0.01151275634765625,
-0.0007638931274414062,
0.02587890625,
-0.0002899169921875,
0.031463623046875,
-0.007007598876953125,
-0.033660888671875,
-0.007778167724609375,
-0.00473785400390625,
-0.034881591796875,
-0.035797119140625,
-0.0203704833984375,
-0.0111083984375,
-0.0222625732421875,
0.0253143310546875,
-0.01363372802734375,
-0.01457977294921875,
-0.005718231201171875,
-0.00493621826171875,
0.007781982421875,
0.007232666015625,
0.0150146484375,
0.0266265869140625,
-0.021148681640625,
0.01558685302734375,
-0.0225982666015625,
0.0245819091796875,
-0.0290985107421875,
-0.0240325927734375,
0.011810302734375,
0.044921875,
-0.027099609375,
-0.00559234619140625,
0.0273590087890625,
-0.01297760009765625,
0.0234375,
-0.00669097900390625,
-0.0423583984375,
-0.03619384765625,
-0.004978179931640625,
0.0152587890625,
0.0202484130859375,
-0.031463623046875,
-0.017913818359375,
0.0014810562133789062,
-0.029022216796875,
0.0023193359375,
0.054290771484375,
-0.06884765625,
0.024322509765625,
0.032684326171875,
-0.06671142578125,
-0.0010614395141601562,
0.023651123046875,
-0.03387451171875,
-0.044281005859375,
-0.013641357421875,
-0.033538818359375,
0.033203125,
-0.02191162109375,
0.00013339519500732422,
-0.0229949951171875,
0.006134033203125,
0.007083892822265625,
0.0107574462890625,
0.060699462890625,
0.0189971923828125,
-0.066650390625,
-0.005168914794921875,
-0.068115234375,
-0.005794525146484375,
-0.040771484375,
-0.052398681640625,
-0.049285888671875,
0.00537872314453125,
-0.0316162109375,
0.0011816024780273438,
0.001308441162109375,
0.045257568359375,
0.00836944580078125,
0.03814697265625,
-0.020965576171875,
0.017333984375,
-0.007755279541015625,
0.060211181640625,
0.007801055908203125,
0.0240631103515625,
0.013458251953125,
0.0299530029296875,
-0.00571441650390625,
-0.031402587890625,
0.0125579833984375,
0.0157012939453125,
-0.0021190643310546875,
-0.02386474609375,
0.0256500244140625,
-0.0213623046875,
0.03985595703125,
0.00026226043701171875,
-0.006282806396484375,
-0.0161590576171875,
-0.00783538818359375,
-0.022979736328125,
0.031524658203125,
-0.01088714599609375,
-0.0277862548828125,
0.01276397705078125,
-0.00949859619140625,
-0.005847930908203125,
-0.0036106109619140625,
-0.0285186767578125,
0.035675048828125,
0.01335906982421875,
-0.007663726806640625,
0.01316070556640625,
-0.06170654296875,
0.0955810546875,
0.05511474609375,
-0.013336181640625,
0.024017333984375,
-0.01116180419921875,
-0.0177459716796875,
-0.0242767333984375,
0.0257415771484375,
-0.05584716796875,
-0.014923095703125,
0.04766845703125,
0.012298583984375,
-0.0211944580078125,
0.026092529296875,
-0.016937255859375,
-0.017486572265625,
0.040618896484375,
0.01824951171875,
-0.041534423828125,
-0.03082275390625,
-0.0171356201171875,
-0.004547119140625,
-0.004848480224609375,
-0.027496337890625,
0.01155853271484375,
-0.057342529296875,
0.09576416015625,
0.046417236328125,
0.021331787109375,
0.031036376953125,
-0.0177764892578125,
-0.0161895751953125,
-0.0305328369140625,
0.034088134765625,
0.0097808837890625,
-0.01690673828125,
0.022979736328125,
0.0195159912109375,
0.01214599609375,
-0.02392578125,
0.03790283203125,
-0.045166015625,
0.0224609375,
-0.0031223297119140625,
0.02410888671875,
-0.0059661865234375,
0.0203704833984375,
-0.0016298294067382812,
0.0156707763671875,
0.032135009765625,
0.040191650390625,
-0.00923919677734375,
0.00580596923828125,
0.0164794921875,
0.004749298095703125,
-0.0168609619140625,
-0.00421142578125,
0.0257110595703125,
0.024200439453125,
-0.03643798828125,
0.02197265625,
-0.036529541015625,
0.0015554428100585938,
-0.0037689208984375,
-0.01096343994140625,
0.06463623046875,
-0.0159454345703125,
-0.02349853515625,
0.01204681396484375,
0.00775909423828125,
0.0016717910766601562,
0.01074981689453125,
0.057403564453125,
-0.0328369140625,
-0.011383056640625,
0.028717041015625,
-0.0182952880859375,
-0.041015625,
0.0170745849609375,
-0.03173828125,
0.05059814453125,
-0.004119873046875,
0.02349853515625,
0.0237274169921875,
0.027313232421875,
-0.02410888671875,
0.0225372314453125,
-0.0211944580078125,
0.06561279296875,
0.0180511474609375,
0.02752685546875,
-0.0258026123046875,
0.0064239501953125,
0.011077880859375,
0.0247650146484375,
0.018402099609375,
-0.0056915283203125,
0.0276031494140625,
0.002716064453125,
0.035675048828125,
0.004665374755859375,
-0.0222015380859375,
0.010986328125,
-0.0255126953125,
-0.028564453125,
-0.0133209228515625,
-0.012359619140625,
0.021209716796875,
-0.0462646484375,
-0.036865234375,
-0.007801055908203125,
0.012908935546875,
0.004848480224609375,
0.01280975341796875,
-0.010589599609375,
-0.05596923828125,
0.008758544921875,
0.03570556640625,
-0.0227508544921875,
-0.0011539459228515625,
-0.0059051513671875,
-0.004627227783203125,
-0.046051025390625,
-0.015777587890625,
-0.0236968994140625,
0.0263519287109375,
-0.0028133392333984375,
0.000949859619140625,
-0.020050048828125,
0.0042877197265625,
0.01763916015625,
-0.034149169921875,
-0.0215301513671875,
0.0308380126953125,
-0.02691650390625,
0.0280303955078125,
0.0528564453125,
0.040618896484375,
0.02459716796875,
0.0147247314453125,
0.005962371826171875,
0.031707763671875,
-0.0221710205078125,
-0.031494140625,
0.0107269287109375,
0.0054168701171875,
-0.0166168212890625,
-0.0066375732421875,
-0.01373291015625,
0.031890869140625,
0.06439208984375,
-0.041412353515625,
-0.0189666748046875,
0.0238189697265625,
-0.0120697021484375,
-0.0143280029296875,
-0.0181427001953125,
0.05718994140625,
-0.00009739398956298828,
-0.0460205078125,
0.052337646484375,
0.0222320556640625,
0.03875732421875,
-0.0172576904296875,
0.0546875,
-0.02032470703125,
-0.01049041748046875,
-0.034332275390625,
0.048248291015625,
-0.0208587646484375,
0.035980224609375,
-0.0487060546875,
-0.0333251953125,
0.0013332366943359375,
0.038543701171875,
0.024658203125,
0.046417236328125,
0.01453399658203125,
0.00012171268463134766,
0.0265045166015625,
0.0123138427734375,
0.01031494140625,
-0.035552978515625,
0.0275115966796875,
-0.0236663818359375,
0.0196990966796875,
-0.009765625,
-0.0255126953125,
-0.0037136077880859375,
0.025909423828125,
0.021392822265625,
-0.0166473388671875,
0.0455322265625,
-0.00609588623046875,
0.0164642333984375,
0.0321044921875,
0.01151275634765625,
0.0283660888671875,
0.019561767578125,
-0.0258026123046875,
-0.01165008544921875,
0.0016717910766601562,
-0.03369140625,
0.0276947021484375,
0.058990478515625,
0.0025920867919921875,
-0.01404571533203125,
0.0361328125,
-0.00849151611328125,
0.0009765625,
0.0025997161865234375,
0.0193634033203125,
-0.0191802978515625,
0.0193634033203125,
0.01007843017578125,
-0.0369873046875,
-0.017059326171875,
-0.0130157470703125,
0.032623291015625,
-0.004314422607421875,
0.10113525390625,
-0.042236328125,
0.01174163818359375,
-0.00859832763671875,
0.0400390625,
-0.04620361328125,
-0.01690673828125,
0.05712890625,
0.005767822265625,
0.004119873046875,
-0.0124359130859375,
-0.0997314453125,
0.0015764236450195312,
0.0309295654296875,
0.0009708404541015625,
0.0230255126953125,
0.00531768798828125,
0.0105133056640625,
-0.01068115234375,
-0.00737762451171875,
-0.029296875,
-0.0626220703125,
-0.041839599609375,
0.0268707275390625,
0.007442474365234375,
0.03387451171875,
0.0029048919677734375,
0.044921875,
-0.025177001953125,
-0.052001953125,
0.033416748046875,
-0.0694580078125,
0.0186920166015625,
0.0242767333984375,
0.01311492919921875,
-0.0255126953125,
-0.01116180419921875,
-0.0154876708984375,
0.042816162109375,
-0.0178680419921875,
0.0513916015625,
0.0015010833740234375,
0.018768310546875,
0.01226806640625,
-0.00983428955078125,
0.0121002197265625,
-0.0513916015625,
-0.00614166259765625,
0.021759033203125,
0.01280975341796875,
0.04119873046875,
-0.0308685302734375,
0.002490997314453125,
-0.01666259765625,
-0.0120849609375,
0.0154571533203125,
-0.0023899078369140625,
-0.00324249267578125,
0.036956787109375,
0.00778961181640625,
0.014434814453125,
-0.0281219482421875,
0.020965576171875,
-0.0258026123046875,
-0.0504150390625,
0.042144775390625,
-0.0234832763671875,
0.030792236328125,
0.0012655258178710938,
0.0168304443359375,
-0.0283203125,
0.045318603515625,
-0.004749298095703125,
-0.0254974365234375,
0.055328369140625,
0.0146636962890625,
0.050140380859375,
-0.0296630859375,
-0.0176239013671875,
0.0125732421875,
0.02777099609375,
0.058441162109375,
-0.0204925537109375,
-0.0228271484375,
0.04473876953125,
-0.04766845703125,
-0.0031585693359375,
-0.01010894775390625,
0.0008893013000488281,
-0.050750732421875,
-0.0253448486328125,
-0.057647705078125,
0.03173828125,
0.035888671875,
-0.04815673828125,
-0.12841796875,
0.039337158203125,
-0.0498046875,
-0.042938232421875,
-0.06048583984375,
0.01511383056640625,
-0.0189971923828125,
-0.0089874267578125,
-0.03302001953125,
0.007198333740234375,
0.0120086669921875,
0.056365966796875,
0.01324462890625,
0.00711822509765625,
0.0477294921875,
-0.024383544921875,
-0.044647216796875,
-0.0038928985595703125,
-0.01120758056640625,
0.002071380615234375,
-0.01145172119140625,
0.005649566650390625,
0.0008325576782226562,
0.03619384765625,
-0.00902557373046875,
-0.07379150390625,
-0.00164031982421875,
-0.036468505859375,
-0.0103302001953125,
-0.00921630859375,
0.0016345977783203125,
0.0163116455078125,
0.043060302734375,
0.0538330078125,
0.01190185546875,
-0.04083251953125,
-0.03204345703125,
-0.0238037109375,
-0.07177734375,
-0.006591796875,
0.046142578125,
-0.05157470703125,
0.047882080078125,
-0.0257415771484375,
-0.025146484375,
-0.03240966796875,
-0.002498626708984375,
-0.072998046875,
0.005527496337890625,
-0.03643798828125,
0.012847900390625,
-0.036224365234375,
-0.0307159423828125,
0.05694580078125,
-0.0187225341796875,
0.042144775390625,
-0.021270751953125,
0.038726806640625,
0.05206298828125,
-0.0037403106689453125,
0.040802001953125,
0.06292724609375,
-0.04461669921875,
-0.0227203369140625,
0.043487548828125,
-0.01053619384765625,
0.01020050048828125,
-0.0276336669921875,
0.0233612060546875,
0.005519866943359375,
-0.0067901611328125,
-0.01015472412109375,
-0.03192138671875,
0.0531005859375,
-0.05572509765625,
0.09307861328125,
0.01221466064453125,
0.052276611328125,
-0.000029146671295166016,
0.03558349609375,
-0.0052337646484375,
-0.022003173828125,
-0.00531005859375,
-0.0230712890625,
-0.0009937286376953125,
0.0211334228515625,
-0.036163330078125,
-0.051727294921875,
0.0311126708984375,
-0.033599853515625,
0.0031147003173828125,
0.0201568603515625
] |
78ab11a636f59f00677c0559eb46197f6f904606
|
Wordpress Stackexchange
Q: Add filter 'wpautop' to meta box textarea I'm using -this tutorial- to add simple meta boxes to a custom post type. But the textarea meta boxes are spitting out content all as one big paragraph, with no <p> formatting applied.
What code would add the -wpautop filter- to the meta box textarea? Thanks for any help.
A: Add a function that grabs your meta data, applies wpautop and echoes it out, or otherwise run it through when you output it in your template.
$my_meta = get_post_meta($post->ID,'_my_meta',TRUE);
echo $my_meta['name'];
echo wpautop( $my_meta['description'], 1 );
|
Q: Add filter 'wpautop' to meta box textarea I'm using -this tutorial- to add simple meta boxes to a custom post type. But the textarea meta boxes are spitting out content all as one big paragraph, with no <p> formatting applied.
What code would add the -wpautop filter- to the meta box textarea? Thanks for any help.
A: Add a function that grabs your meta data, applies wpautop and echoes it out, or otherwise run it through when you output it in your template.
$my_meta = get_post_meta($post->ID,'_my_meta',TRUE);
echo $my_meta['name'];
echo wpautop( $my_meta['description'], 1 );
A: There is also a good Plugin for this Problem: http://www.bake-the-web.de/2012/03/22/no-wpautop/
It disables wpautop for Excerpt, Content or both.
|
wordpress
|
{
"language": "en",
"length": 113,
"provenance": "stackexchange_00019.jsonl.gz:408787",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15277"
}
|
[
0.019866943359375,
-0.005626678466796875,
-0.0260772705078125,
-0.0160675048828125,
-0.0027008056640625,
-0.022491455078125,
0.0193939208984375,
-0.0068817138671875,
0.026214599609375,
0.03497314453125,
-0.0278778076171875,
-0.0094146728515625,
0.032958984375,
-0.011688232421875,
-0.0263214111328125,
-0.023345947265625,
-0.00153350830078125,
0.008819580078125,
-0.01134490966796875,
-0.0159454345703125,
-0.02178955078125,
-0.032135009765625,
0.0056610107421875,
-0.025238037109375,
-0.0062713623046875,
-0.0222015380859375,
0.13330078125,
-0.0234832763671875,
0.0206298828125,
-0.01934814453125,
0.0131378173828125,
-0.01131439208984375,
0.020111083984375,
0.00974273681640625,
-0.023590087890625,
0.03875732421875,
0.0224456787109375,
-0.00020885467529296875,
0.003589630126953125,
0.0201568603515625,
0.0083160400390625,
-0.0002149343490600586,
-0.01142120361328125,
0.034942626953125,
-0.0225677490234375,
-0.056549072265625,
0.02142333984375,
-0.0189666748046875,
-0.0017490386962890625,
0.01270294189453125,
0.0002818107604980469,
-0.0011262893676757812,
0.0225677490234375,
-0.05865478515625,
0.004405975341796875,
-0.01324462890625,
-0.0280609130859375,
-0.00403594970703125,
0.0138702392578125,
0.0200347900390625,
0.000255584716796875,
-0.004222869873046875,
0.00571441650390625,
0.0011167526245117188,
0.016510009765625,
-0.0028476715087890625,
-0.061492919921875,
0.0303192138671875,
-0.0239410400390625,
0.0006594657897949219,
0.004726409912109375,
-0.0733642578125,
0.004730224609375,
-0.043548583984375,
0.033905029296875,
-0.0090484619140625,
-0.0107269287109375,
-0.038299560546875,
0.007358551025390625,
0.019866943359375,
0.0035228729248046875,
-0.001155853271484375,
-0.007465362548828125,
-0.039825439453125,
0.0295257568359375,
-0.0001920461654663086,
-0.01751708984375,
-0.0022869110107421875,
-0.0301055908203125,
-0.035003662109375,
-0.0010576248168945312,
-0.0987548828125,
-0.0902099609375,
0.05181884765625,
0.05084228515625,
-0.05242919921875,
-0.0214996337890625,
-0.00963592529296875,
-0.036773681640625,
0.01035308837890625,
0.046142578125,
-0.06390380859375,
0.1016845703125,
-0.046234130859375,
0.020263671875,
0.0113983154296875,
-0.072998046875,
0.0313720703125,
0.078857421875,
0.0682373046875,
0.01617431640625,
-0.049835205078125,
0.0176544189453125,
0.0025482177734375,
-0.028717041015625,
-0.0013074874877929688,
0.01438140869140625,
-0.0027790069580078125,
0.006542205810546875,
-0.01444244384765625,
-0.00817108154296875,
0.004238128662109375,
0.0177154541015625,
-0.0197601318359375,
0.017608642578125,
0.006824493408203125,
-0.01544189453125,
-0.034912109375,
-0.0090789794921875,
-0.01348876953125,
-0.004184722900390625,
0.01088714599609375,
-0.003978729248046875,
0.045166015625,
0.01183319091796875,
-0.0016355514526367188,
0.059295654296875,
-0.020233154296875,
-0.0236663818359375,
0.022003173828125,
-0.0252532958984375,
0.0016641616821289062,
-0.0033626556396484375,
-0.0271759033203125,
-0.009735107421875,
0.0499267578125,
0.024658203125,
-0.01233673095703125,
-0.0177459716796875,
-0.066650390625,
0.002361297607421875,
-0.038970947265625,
0.02520751953125,
0.01258087158203125,
-0.021820068359375,
-0.00928497314453125,
0.049285888671875,
-0.042938232421875,
-0.031585693359375,
-0.0513916015625,
0.01178741455078125,
-0.003173828125,
-0.0008845329284667969,
0.002960205078125,
0.004352569580078125,
-0.0201263427734375,
-0.005298614501953125,
0.00970458984375,
0.0250396728515625,
0.0099639892578125,
0.01090240478515625,
0.00899505615234375,
0.027984619140625,
0.0055999755859375,
-0.0199127197265625,
0.00033164024353027344,
-0.00200653076171875,
0.045074462890625,
0.0059661865234375,
0.02392578125,
0.019134521484375,
-0.0295257568359375,
0.06939697265625,
-0.00441741943359375,
-0.0635986328125,
0.0423583984375,
-0.0117034912109375,
0.05352783203125,
0.031768798828125,
0.00299072265625,
0.0179901123046875,
0.003376007080078125,
-0.0413818359375,
-0.025909423828125,
-0.01415252685546875,
-0.00547027587890625,
0.01305389404296875,
-0.00021755695343017578,
-0.006946563720703125,
0.0458984375,
0.0037021636962890625,
0.01336669921875,
0.007129669189453125,
-0.0032749176025390625,
-0.050567626953125,
0.0279693603515625,
-0.0325927734375,
0.04669189453125,
-0.00799560546875,
-0.0185089111328125,
0.0240478515625,
-0.03497314453125,
0.004817962646484375,
-0.0220947265625,
-0.039276123046875,
0.0167236328125,
-0.0186309814453125,
0.005001068115234375,
0.00341796875,
-0.01328277587890625,
0.017486572265625,
-0.00013375282287597656,
0.0142822265625,
0.03070068359375,
0.016204833984375,
-0.00299835205078125,
-0.043487548828125,
-0.01284027099609375,
-0.00930023193359375,
-0.0023040771484375,
-0.0215301513671875,
0.0555419921875,
0.036285400390625,
0.017333984375,
-0.0362548828125,
-0.00420379638671875,
-0.042144775390625,
-0.071044921875,
-0.0165252685546875,
0.06475830078125,
0.02496337890625,
0.06396484375,
0.0234527587890625,
0.038909912109375,
0.049407958984375,
-0.038055419921875,
0.006381988525390625,
0.007457733154296875,
0.0287628173828125,
0.002841949462890625,
-0.0197601318359375,
-0.051971435546875,
0.040191650390625,
-0.0804443359375,
0.02569580078125,
0.0182952880859375,
-0.0191497802734375,
0.00016820430755615234,
0.006122589111328125,
-0.01296234130859375,
0.02044677734375,
0.010528564453125,
-0.019378662109375,
0.007625579833984375,
0.0526123046875,
0.0159912109375,
0.06463623046875,
0.053375244140625,
-0.033294677734375,
0.003875732421875,
0.01398468017578125,
0.024566650390625,
-0.00750732421875,
-0.003971099853515625,
0.019195556640625,
0.0193328857421875,
-0.060760498046875,
0.017364501953125,
0.031768798828125,
0.0166473388671875,
0.0089263916015625,
0.034149169921875,
0.005039215087890625,
-0.01702880859375,
0.0249176025390625,
-0.0294189453125,
-0.00896453857421875,
-0.03289794921875,
0.0087432861328125,
-0.01523590087890625,
0.004589080810546875,
0.024139404296875,
-0.0085906982421875,
0.01374053955078125,
0.0215606689453125,
-0.0226593017578125,
0.0394287109375,
-0.0416259765625,
0.052490234375,
-0.04620361328125,
0.0200653076171875,
0.044769287109375,
-0.04534912109375,
0.013336181640625,
-0.00983428955078125,
-0.004673004150390625,
-0.0638427734375,
0.027679443359375,
0.0081329345703125,
-0.0428466796875,
-0.031707763671875,
0.030609130859375,
-0.0018835067749023438,
0.003570556640625,
0.01322174072265625,
-0.0197906494140625,
0.0095367431640625,
-0.00151824951171875,
-0.0190277099609375,
-0.0104522705078125,
0.0389404296875,
-0.032073974609375,
-0.0269775390625,
-0.0123138427734375,
-0.045166015625,
0.00945281982421875,
0.01194000244140625,
-0.0228271484375,
-0.0307159423828125,
-0.018463134765625,
-0.049713134765625,
-0.04217529296875,
-0.051025390625,
0.003795623779296875,
-0.0029201507568359375,
0.005992889404296875,
0.007106781005859375,
0.11676025390625,
0.041259765625,
-0.0546875,
0.028839111328125,
0.0264434814453125,
-0.0306396484375,
0.0423583984375,
0.0328369140625,
-0.0190582275390625,
0.017059326171875,
-0.005161285400390625,
-0.01258087158203125,
0.04669189453125,
-0.053985595703125,
-0.0167694091796875,
0.0001684427261352539,
-0.012420654296875,
0.0204620361328125,
-0.0177001953125,
-0.00556182861328125,
0.010345458984375,
0.031402587890625,
-0.037933349609375,
0.02874755859375,
0.00403594970703125,
0.01074981689453125,
-0.0277252197265625,
-0.06268310546875,
-0.01100921630859375,
-0.007354736328125,
0.036956787109375,
-0.01016998291015625,
0.00015854835510253906,
0.07440185546875,
-0.0019130706787109375,
-0.007762908935546875,
-0.0233154296875,
-0.04107666015625,
-0.040618896484375,
-0.034698486328125,
-0.049652099609375,
0.04364013671875,
-0.0161895751953125,
-0.0004870891571044922,
-0.0083770751953125,
0.0278472900390625,
0.00704193115234375,
-0.06365966796875,
0.06903076171875,
-0.0194091796875,
0.0162506103515625,
-0.058502197265625,
-0.047943115234375,
-0.01702880859375,
0.1129150390625,
-0.005809783935546875,
-0.028472900390625,
0.015594482421875,
0.01263427734375,
0.0157012939453125,
-0.0200958251953125,
0.0016880035400390625,
-0.04156494140625,
-0.07379150390625,
0.01629638671875,
0.01517486572265625,
-0.029144287109375,
0.01300811767578125,
-0.0396728515625,
-0.033477783203125,
-0.038055419921875,
0.03228759765625,
-0.0310516357421875,
0.0178070068359375,
0.026214599609375,
0.0163421630859375,
-0.006229400634765625,
-0.0134429931640625,
-0.03594970703125,
-0.05072021484375,
-0.01165008544921875,
-0.0243988037109375,
0.046630859375,
0.01206207275390625,
-0.0241546630859375,
0.0013837814331054688,
0.0253143310546875,
0.0252532958984375,
0.0285797119140625,
0.00507354736328125,
0.0096435546875,
-0.0214080810546875,
-0.0303192138671875,
0.03472900390625,
-0.0535888671875,
-0.0167694091796875,
-0.01488494873046875,
-0.0067291259765625,
0.03167724609375,
-0.0187530517578125,
0.00920867919921875,
-0.00461578369140625,
-0.006702423095703125,
0.0007343292236328125,
-0.07098388671875,
-0.066650390625,
-0.0033016204833984375,
-0.0628662109375,
0.0186614990234375,
-0.052093505859375,
-0.00659942626953125,
0.0025081634521484375,
-0.0140228271484375,
-0.033538818359375,
0.0278778076171875,
0.036590576171875,
0.0306854248046875,
-0.00543212890625,
-0.05792236328125,
-0.04833984375,
0.03436279296875,
0.00829315185546875,
0.01198577880859375,
0.0196075439453125,
-0.0300445556640625,
0.03594970703125,
0.005523681640625,
0.042236328125,
-0.041748046875,
0.08697509765625,
-0.0052490234375,
-0.0067596435546875,
0.04083251953125,
-0.0029735565185546875,
-0.037322998046875,
0.007045745849609375,
-0.0303192138671875,
-0.01103973388671875,
-0.0107421875,
0.054779052734375,
-0.0096893310546875,
0.015899658203125,
-0.05291748046875,
-0.0445556640625,
0.005939483642578125,
-0.0341796875,
0.07098388671875,
-0.0010042190551757812,
0.0176544189453125,
0.02215576171875,
0.008819580078125,
0.0079193115234375,
0.00449371337890625,
0.01184844970703125,
-0.00859832763671875,
0.03662109375,
-0.002704620361328125,
-0.006195068359375,
0.00301361083984375,
-0.0043792724609375,
0.035675048828125,
0.004642486572265625,
-0.03369140625,
-0.0030879974365234375,
-0.00933074951171875,
0.061004638671875,
0.0303497314453125,
0.020843505859375,
0.018646240234375,
0.005924224853515625,
-0.0251007080078125,
0.0023899078369140625,
0.0183868408203125,
-0.002750396728515625,
-0.048980712890625,
-0.0195770263671875,
-0.027496337890625,
0.01500701904296875,
0.0128631591796875,
0.0369873046875,
-0.067138671875,
0.036102294921875,
0.00960540771484375,
-0.0014057159423828125,
-0.0164794921875,
0.05230712890625,
0.033233642578125,
-0.029754638671875,
0.0095062255859375,
0.0296478271484375,
0.0026950836181640625,
-0.0250701904296875,
-0.01055145263671875,
0.01557159423828125,
0.041839599609375,
0.005634307861328125,
-0.0057373046875,
-0.003337860107421875,
-0.03631591796875,
-0.0254058837890625,
-0.0247802734375,
0.0132904052734375,
-0.0105438232421875,
0.00218963623046875,
0.0200042724609375,
0.0029125213623046875,
0.021514892578125,
-0.0037479400634765625,
0.0005373954772949219,
0.016632080078125,
0.056793212890625,
-0.0181121826171875,
0.01605224609375,
0.0005621910095214844,
-0.0007815361022949219,
0.000040411949157714844,
-0.0298614501953125,
-0.0259552001953125,
-0.077880859375,
-0.01136016845703125,
-0.01447296142578125,
-0.0018339157104492188,
0.041748046875,
-0.03814697265625,
0.0179901123046875,
-0.0177459716796875,
0.032501220703125,
-0.035003662109375,
0.0263824462890625,
0.00211334228515625,
0.00017023086547851562,
0.0181884765625,
-0.0216522216796875,
-0.03680419921875,
-0.042144775390625,
-0.0280914306640625,
-0.00860595703125,
-0.0121002197265625,
0.00414276123046875,
-0.01166534423828125,
0.024688720703125,
-0.020294189453125,
-0.0013675689697265625,
0.00634765625,
0.01202392578125,
-0.01346588134765625,
0.0222015380859375,
-0.046783447265625,
0.0880126953125,
0.007843017578125,
0.07470703125,
-0.00665283203125,
0.042938232421875,
0.028533935546875,
-0.01171112060546875,
0.0278778076171875,
-0.0667724609375,
-0.048309326171875,
-0.02606201171875,
-0.042266845703125,
0.0430908203125,
0.007129669189453125,
-0.017333984375,
0.007541656494140625,
0.0009102821350097656,
-0.0005259513854980469,
-0.020782470703125,
0.001453399658203125,
0.0152130126953125,
0.00841522216796875,
0.01220703125,
-0.042327880859375,
0.00994873046875,
-0.024566650390625,
-0.01116180419921875,
0.057861328125,
-0.035400390625,
0.037811279296875,
0.038360595703125,
-0.061553955078125,
0.084716796875,
0.06353759765625,
0.0101776123046875,
0.052764892578125,
0.01551055908203125,
0.02618408203125,
0.001708984375,
-0.00855255126953125,
0.017059326171875,
0.030242919921875,
0.054931640625,
-0.0026950836181640625,
-0.006603240966796875,
0.03753662109375,
-0.02459716796875,
0.0281829833984375,
0.0187530517578125,
0.0855712890625,
-0.06719970703125,
0.0274810791015625,
0.032501220703125,
-0.00038743019104003906,
0.04193115234375,
-0.00909423828125,
-0.00580596923828125,
-0.027069091796875,
0.06866455078125,
-0.0021190643310546875,
0.008209228515625,
0.053558349609375,
0.01216888427734375,
-0.01910400390625,
-0.039459228515625,
0.0108795166015625,
-0.0023097991943359375,
-0.0074920654296875,
-0.0031414031982421875,
0.00295257568359375,
-0.02886962890625,
-0.002292633056640625,
0.003055572509765625,
0.0166473388671875,
-0.037078857421875,
-0.060302734375,
-0.0013647079467773438,
-0.0119476318359375,
-0.027374267578125,
0.053619384765625,
0.005702972412109375,
0.03533935546875,
0.0654296875,
-0.0193939208984375,
0.04656982421875,
0.0077972412109375,
0.0355224609375,
0.0104217529296875,
-0.04962158203125,
-0.027557373046875,
0.053192138671875,
-0.01514434814453125,
0.03118896484375,
0.0262298583984375,
-0.0174560546875,
-0.0033969879150390625,
-0.0081787109375,
0.028411865234375,
0.05218505859375,
-0.044708251953125,
0.04571533203125,
-0.00823974609375,
-0.043670654296875,
0.006946563720703125,
-0.024200439453125,
-0.02301025390625,
0.01050567626953125,
-0.00887298583984375,
-0.04632568359375,
0.03173828125,
0.006214141845703125,
-0.07867431640625,
0.0872802734375,
0.02587890625,
0.0091094970703125,
-0.0083160400390625,
0.0347900390625,
-0.05963134765625,
-0.00984954833984375,
-0.0215606689453125,
0.03125,
0.02099609375,
0.0211334228515625,
-0.042938232421875,
-0.0162506103515625,
-0.0027141571044921875,
0.047637939453125,
0.01232147216796875,
0.003017425537109375,
-0.02081298828125,
-0.020263671875,
0.0034847259521484375,
0.043914794921875,
-0.00042176246643066406,
0.018890380859375,
0.018524169921875,
0.02587890625,
0.000942230224609375,
-0.0183258056640625,
0.047607421875,
-0.0771484375,
-0.03216552734375,
0.00922393798828125,
0.01221466064453125,
0.02166748046875,
0.0038547515869140625,
0.03326416015625,
0.0243988037109375,
-0.0225372314453125,
-0.006649017333984375,
-0.045440673828125,
-0.0194854736328125,
0.032867431640625,
-0.004322052001953125,
-0.0153656005859375,
-0.0039043426513671875,
-0.02655029296875,
0.025604248046875,
-0.0013141632080078125,
0.056854248046875,
0.040252685546875,
0.0256195068359375,
0.01383209228515625,
0.02093505859375,
0.03558349609375,
0.0302581787109375,
-0.0237274169921875,
0.018585205078125,
0.00293731689453125,
-0.006378173828125,
-0.0423583984375,
0.03955078125,
0.054718017578125,
0.02716064453125,
-0.0306243896484375,
-0.045562744140625,
0.0009160041809082031,
-0.0042572021484375,
0.01320648193359375,
0.007495880126953125,
0.018035888671875,
-0.041412353515625,
-0.002315521240234375,
-0.0218048095703125,
0.00379180908203125,
0.0109100341796875,
0.0179290771484375,
-0.0199432373046875,
0.01322174072265625,
-0.0136566162109375,
0.0064697265625,
-0.0626220703125,
-0.0011196136474609375,
-0.0012950897216796875,
0.07513427734375,
0.049835205078125,
0.058563232421875,
0.0185394287109375,
-0.032135009765625,
-0.0150146484375,
0.0235595703125,
0.039306640625,
0.01102447509765625,
-0.00881195068359375,
0.012664794921875,
0.0269775390625,
0.011993408203125,
0.066650390625,
0.0167999267578125,
0.061248779296875,
0.0230560302734375,
-0.0308990478515625,
0.0161590576171875,
0.041229248046875,
-0.0236968994140625,
-0.036834716796875,
-0.036376953125,
0.0010576248168945312,
0.034393310546875,
0.0179290771484375,
0.00479888916015625,
0.018646240234375,
0.018951416015625,
-0.0092010498046875,
0.00411224365234375,
0.003429412841796875,
-0.044525146484375,
0.037445068359375,
0.0112152099609375,
0.04522705078125,
0.01520538330078125,
-0.10211181640625,
-0.0032482147216796875,
-0.034820556640625,
-0.0831298828125,
0.053009033203125,
0.05731201171875,
-0.050323486328125,
0.0124664306640625,
-0.00881195068359375,
-0.00843048095703125,
0.033355712890625,
-0.0214691162109375,
-0.00882720947265625,
0.002651214599609375,
0.0159759521484375,
-0.0244140625,
-0.03143310546875,
-0.0160980224609375,
-0.00083160400390625,
0.03472900390625,
0.013824462890625,
0.057464599609375,
-0.01006317138671875,
0.0250396728515625,
-0.0333251953125,
-0.0023136138916015625,
0.004974365234375,
-0.031402587890625,
0.01113128662109375,
0.053802490234375,
0.01055908203125,
-0.032684326171875,
-0.0570068359375,
0.00750732421875,
0.03759765625,
-0.01410675048828125,
0.0099639892578125,
0.014495849609375,
0.00783538818359375,
-0.04742431640625,
0.050933837890625,
-0.0185699462890625,
-0.01532745361328125,
-0.0633544921875,
-0.04705810546875,
0.06634521484375,
0.055908203125,
0.0257110595703125,
0.0137786865234375,
0.045196533203125,
0.01194000244140625,
0.01055908203125,
0.0117950439453125,
0.0236968994140625,
0.045867919921875,
-0.0175628662109375,
-0.0167236328125,
0.00501251220703125,
-0.0221710205078125,
-0.00269317626953125,
-0.012664794921875,
0.021026611328125,
0.01200103759765625,
-0.08203125,
-0.0245819091796875,
-0.01319122314453125,
0.036285400390625,
0.0014171600341796875,
0.0127410888671875,
-0.0098876953125,
-0.003711700439453125,
-0.0194244384765625,
0.0297088623046875,
-0.0259246826171875,
-0.017974853515625,
-0.00945281982421875,
0.02264404296875,
-0.0022068023681640625,
-0.0078887939453125,
-0.07958984375,
-0.00383758544921875,
0.0369873046875,
-0.00890350341796875,
-0.034942626953125,
0.008331298828125,
-0.020751953125,
0.0285797119140625,
0.00489044189453125,
-0.029754638671875,
0.005706787109375,
0.058868408203125,
-0.00406646728515625,
-0.051300048828125,
-0.04095458984375,
0.04132080078125,
-0.051513671875,
-0.00960540771484375,
0.0014286041259765625,
0.0016956329345703125,
0.0118865966796875,
-0.00695037841796875,
-0.005641937255859375,
0.031829833984375,
0.0101318359375,
-0.028564453125,
0.0283203125,
0.003452301025390625,
0.0101776123046875,
-0.04541015625,
-0.0260162353515625,
-0.00873565673828125,
0.0474853515625,
0.004253387451171875,
0.0012607574462890625,
0.0030498504638671875,
-0.03753662109375,
-0.0733642578125,
0.0145721435546875,
0.006359100341796875,
-0.032073974609375,
-0.044677734375,
-0.0157623291015625,
0.01067352294921875,
-0.000030279159545898438,
-0.014495849609375,
-0.0185546875,
-0.04949951171875,
0.0178375244140625,
-0.001888275146484375,
0.031219482421875,
0.0163116455078125,
-0.0232391357421875,
-0.01325225830078125,
0.00560760498046875,
0.0165252685546875,
-0.00730133056640625,
-0.0181427001953125,
-0.0125579833984375,
0.0225982666015625,
0.029388427734375,
-0.022857666015625,
0.0014314651489257812,
0.025543212890625,
-0.0296478271484375,
-0.01160430908203125,
-0.028472900390625,
-0.02105712890625,
-0.004810333251953125,
0.038665771484375,
0.054473876953125,
0.01325225830078125,
-0.046630859375,
0.01180267333984375,
-0.002285003662109375,
0.001194000244140625,
-0.002887725830078125,
-0.01080322265625,
-0.026458740234375,
-0.01202392578125,
-0.007740020751953125,
-0.006717681884765625,
0.0252227783203125,
-0.01340484619140625,
-0.005802154541015625,
0.0036602020263671875,
0.0212249755859375,
-0.0032176971435546875,
-0.0297088623046875,
-0.07275390625,
0.10491943359375,
-0.05859375,
-0.04388427734375,
0.025726318359375,
0.044677734375,
0.009979248046875,
-0.0197296142578125,
-0.041229248046875,
-0.00872802734375,
-0.0212249755859375,
-0.005367279052734375,
-0.0198211669921875,
0.040802001953125,
-0.005462646484375,
0.006633758544921875,
-0.034027099609375,
-0.006824493408203125,
0.01959228515625,
0.0084075927734375,
-0.0211639404296875,
-0.00516510009765625,
-0.0041656494140625,
0.0050048828125,
-0.048187255859375,
-0.01253509521484375,
-0.042144775390625,
0.01305389404296875,
0.01361083984375,
0.0242767333984375,
0.06390380859375,
0.020721435546875,
0.0216064453125,
-0.0170745849609375,
0.00406646728515625,
-0.01556396484375,
0.00762176513671875,
-0.006557464599609375,
-0.016845703125,
0.02020263671875
] |
7b4dc4571b9df42d4f875804cc785d5e6f6c09cd
|
Wordpress Stackexchange
Q: How to get blog name, when using Wordpress Multisite I have a wordpress multisite installtion with 5 sites within, the multisite is called Lifestyle
*
*Homes
*Cars
*Architecture
*Holidays
*Communities
I am trying to get the blog name, for each blog when viewing in my theme, every function I use returns 'Lifestyle'.
I have tried;
get_bloginfo('name');
get_bloginfo();
global $current_site; var_dump(get_current_site_name($current_site));
get_current_blog();
none of the strings or objects returned contain the blog name, they all contain the site name "Lifestyle" can anyone offer any advice...
A: This is what you need:
global $blog_id;
$current_blog_details = get_blog_details( array( 'blog_id' => $blog_id ) );
echo $current_blog_details->blogname;
Have a nice multisite! :)
|
Q: How to get blog name, when using Wordpress Multisite I have a wordpress multisite installtion with 5 sites within, the multisite is called Lifestyle
*
*Homes
*Cars
*Architecture
*Holidays
*Communities
I am trying to get the blog name, for each blog when viewing in my theme, every function I use returns 'Lifestyle'.
I have tried;
get_bloginfo('name');
get_bloginfo();
global $current_site; var_dump(get_current_site_name($current_site));
get_current_blog();
none of the strings or objects returned contain the blog name, they all contain the site name "Lifestyle" can anyone offer any advice...
A: This is what you need:
global $blog_id;
$current_blog_details = get_blog_details( array( 'blog_id' => $blog_id ) );
echo $current_blog_details->blogname;
Have a nice multisite! :)
|
wordpress
|
{
"language": "en",
"length": 109,
"provenance": "stackexchange_00019.jsonl.gz:408798",
"question_score": "10",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15309"
}
|
[
-0.0196075439453125,
-0.0242156982421875,
-0.0202789306640625,
0.051422119140625,
-0.0310516357421875,
-0.03033447265625,
0.038299560546875,
-0.01617431640625,
0.007404327392578125,
0.03277587890625,
-0.035400390625,
0.05621337890625,
-0.0102691650390625,
0.005229949951171875,
0.0005397796630859375,
-0.0021953582763671875,
0.0697021484375,
-0.035064697265625,
0.06243896484375,
0.020751953125,
-0.000812530517578125,
0.0653076171875,
0.04461669921875,
0.0193328857421875,
0.02728271484375,
-0.0262603759765625,
0.065673828125,
0.00646209716796875,
0.0328369140625,
-0.018096923828125,
0.037200927734375,
-0.0227203369140625,
0.0211181640625,
0.002681732177734375,
0.005924224853515625,
-0.0120391845703125,
0.0008816719055175781,
-0.0025615692138671875,
0.01480865478515625,
0.02362060546875,
0.007472991943359375,
-0.017364501953125,
-0.00972747802734375,
0.019439697265625,
-0.00923919677734375,
-0.05029296875,
-0.012847900390625,
-0.07073974609375,
0.0018949508666992188,
-0.0240631103515625,
0.043243408203125,
0.010040283203125,
0.053741455078125,
-0.0005369186401367188,
-0.048858642578125,
-0.0193939208984375,
0.0281524658203125,
0.01177215576171875,
0.0279998779296875,
-0.0780029296875,
-0.05322265625,
0.014434814453125,
0.042327880859375,
0.0244598388671875,
-0.027801513671875,
0.0221710205078125,
0.0242919921875,
0.0187835693359375,
-0.029693603515625,
-0.0325927734375,
0.005435943603515625,
-0.0233917236328125,
0.0179901123046875,
-0.00496673583984375,
-0.02008056640625,
-0.0382080078125,
-0.00412750244140625,
-0.040985107421875,
0.01517486572265625,
-0.019012451171875,
0.005542755126953125,
-0.03875732421875,
-0.071044921875,
0.0009312629699707031,
0.00949859619140625,
0.042572021484375,
0.00847625732421875,
-0.01552581787109375,
-0.0145721435546875,
-0.015350341796875,
-0.0185089111328125,
-0.03582763671875,
-0.04095458984375,
0.03826904296875,
0.0032138824462890625,
-0.01174163818359375,
0.048126220703125,
0.0992431640625,
-0.041748046875,
-0.04278564453125,
-0.021636962890625,
-0.026336669921875,
-0.03765869140625,
-0.033447265625,
-0.0034770965576171875,
-0.00420379638671875,
0.0311279296875,
0.065185546875,
0.038177490234375,
0.03021240234375,
-0.0202789306640625,
0.008880615234375,
-0.0213775634765625,
-0.050537109375,
-0.01428985595703125,
0.0173797607421875,
-0.029022216796875,
0.01800537109375,
0.023681640625,
-0.032379150390625,
0.0087890625,
0.04248046875,
-0.04742431640625,
-0.0008721351623535156,
-0.01241302490234375,
-0.006198883056640625,
0.013153076171875,
-0.01329803466796875,
-0.04302978515625,
0.0267486572265625,
-0.027862548828125,
0.0224609375,
0.016876220703125,
-0.01061248779296875,
-0.03411865234375,
-0.0275115966796875,
0.0401611328125,
0.01751708984375,
-0.0035228729248046875,
0.00379180908203125,
0.0229644775390625,
-0.014373779296875,
-0.00882720947265625,
-0.02392578125,
-0.00997161865234375,
-0.003589630126953125,
0.0309600830078125,
0.029052734375,
-0.01496124267578125,
0.004909515380859375,
-0.022064208984375,
0.04449462890625,
0.029998779296875,
0.0025043487548828125,
-0.00036263465881347656,
-0.05047607421875,
0.01198577880859375,
-0.040771484375,
0.015869140625,
-0.039031982421875,
0.0284271240234375,
0.0059814453125,
0.0138092041015625,
0.0115966796875,
-0.020721435546875,
-0.006183624267578125,
-0.0276336669921875,
-0.0164031982421875,
0.027313232421875,
-0.01409912109375,
0.01364898681640625,
-0.034820556640625,
0.0261993408203125,
0.017425537109375,
-0.0002472400665283203,
0.0175628662109375,
-0.01806640625,
-0.006702423095703125,
0.0158538818359375,
0.043548583984375,
-0.0004284381866455078,
-0.0191497802734375,
-0.004070281982421875,
0.01617431640625,
-0.051300048828125,
0.0190582275390625,
-0.0009098052978515625,
0.049163818359375,
0.02362060546875,
0.01241302490234375,
0.0233612060546875,
-0.006610870361328125,
-0.023468017578125,
-0.000031828880310058594,
0.01453399658203125,
0.011016845703125,
-0.028839111328125,
0.0162506103515625,
-0.0082244873046875,
-0.0413818359375,
0.030029296875,
0.0111083984375,
0.0189208984375,
-0.001720428466796875,
-0.032806396484375,
-0.0018482208251953125,
-0.0024013519287109375,
0.024658203125,
0.017791748046875,
0.01149749755859375,
0.01328277587890625,
0.0247802734375,
-0.01177978515625,
-0.046783447265625,
-0.030517578125,
0.050384521484375,
-0.031097412109375,
0.0014562606811523438,
-0.004150390625,
0.0003898143768310547,
-0.0224151611328125,
0.0037937164306640625,
-0.040985107421875,
-0.018280029296875,
0.05047607421875,
-0.036163330078125,
-0.0237274169921875,
-0.04205322265625,
0.00649261474609375,
-0.0053863525390625,
-0.0572509765625,
0.044891357421875,
-0.0268096923828125,
0.0084075927734375,
0.002841949462890625,
0.001750946044921875,
0.040802001953125,
-0.030975341796875,
0.031097412109375,
0.0142669677734375,
0.03436279296875,
0.036895751953125,
-0.01116180419921875,
-0.0187530517578125,
0.0219268798828125,
-0.04681396484375,
0.0085601806640625,
-0.005443572998046875,
0.046722412109375,
0.11724853515625,
-0.0232086181640625,
0.013885498046875,
-0.01470947265625,
-0.0179901123046875,
0.0007834434509277344,
0.0301666259765625,
-0.0112457275390625,
-0.033416748046875,
-0.005008697509765625,
0.03704833984375,
0.01031494140625,
0.0257720947265625,
-0.00327301025390625,
0.01776123046875,
-0.0020008087158203125,
0.07122802734375,
0.00510406494140625,
0.016510009765625,
-0.0589599609375,
0.054962158203125,
0.0278472900390625,
0.008819580078125,
-0.007556915283203125,
0.05810546875,
0.0587158203125,
-0.01544952392578125,
-0.0210418701171875,
-0.0242462158203125,
-0.0263214111328125,
0.0091094970703125,
-0.0200958251953125,
0.04443359375,
-0.0228729248046875,
-0.020538330078125,
-0.01287841796875,
-0.05279541015625,
-0.0226287841796875,
-0.03228759765625,
-0.0239105224609375,
-0.0299530029296875,
-0.0198974609375,
0.049774169921875,
-0.0144805908203125,
0.0293731689453125,
-0.00356292724609375,
-0.00861358642578125,
0.023162841796875,
-0.022552490234375,
0.029205322265625,
0.002056121826171875,
0.0484619140625,
0.07281494140625,
0.0029087066650390625,
0.031402587890625,
-0.01800537109375,
0.00885772705078125,
-0.019256591796875,
-0.034393310546875,
-0.0277099609375,
-0.0100860595703125,
-0.05126953125,
0.059844970703125,
0.011871337890625,
0.0220947265625,
-0.00899505615234375,
-0.01039886474609375,
0.00955963134765625,
0.004352569580078125,
-0.037139892578125,
-0.04205322265625,
-0.03271484375,
-0.0161590576171875,
0.0036334991455078125,
-0.01519012451171875,
0.005107879638671875,
-0.00617218017578125,
-0.0027828216552734375,
-0.0017986297607421875,
0.0277099609375,
-0.037109375,
-0.092041015625,
-0.0498046875,
-0.0859375,
-0.0032520294189453125,
-0.00846099853515625,
0.006664276123046875,
0.01184844970703125,
0.0218505859375,
0.008819580078125,
-0.0286865234375,
0.019439697265625,
0.002716064453125,
-0.016632080078125,
-0.00827789306640625,
-0.0149078369140625,
-0.007411956787109375,
-0.0190277099609375,
0.002857208251953125,
-0.002643585205078125,
0.0055389404296875,
-0.003376007080078125,
0.0038471221923828125,
-0.00021827220916748047,
-0.035919189453125,
0.03753662109375,
-0.050140380859375,
-0.0271759033203125,
0.029022216796875,
0.03643798828125,
-0.03875732421875,
-0.01557159423828125,
-0.05621337890625,
-0.0460205078125,
0.057037353515625,
0.038604736328125,
0.00748443603515625,
-0.0152435302734375,
0.020050048828125,
-0.011444091796875,
-0.0080718994140625,
-0.017242431640625,
-0.0374755859375,
0.04736328125,
0.01207733154296875,
0.0197296142578125,
0.01953125,
0.01468658447265625,
-0.0223846435546875,
-0.00470733642578125,
-0.0167388916015625,
-0.0051727294921875,
-0.053955078125,
0.03289794921875,
-0.060638427734375,
-0.0109100341796875,
0.0254058837890625,
-0.0323486328125,
0.0190277099609375,
-0.017486572265625,
-0.00835418701171875,
0.003124237060546875,
0.0772705078125,
-0.03729248046875,
-0.01293182373046875,
-0.003910064697265625,
0.00627899169921875,
-0.0268402099609375,
-0.0243377685546875,
-0.0572509765625,
-0.01152801513671875,
-0.10577392578125,
0.01200103759765625,
-0.01329803466796875,
-0.036346435546875,
-0.004375457763671875,
0.018951416015625,
-0.04217529296875,
-0.047393798828125,
0.00046515464782714844,
-0.007022857666015625,
-0.004726409912109375,
-0.0191497802734375,
-0.0210418701171875,
-0.02960205078125,
0.018646240234375,
-0.03533935546875,
-0.0200653076171875,
-0.0069732666015625,
0.025360107421875,
0.01019287109375,
-0.01043701171875,
-0.013275146484375,
0.0237274169921875,
0.04315185546875,
-0.0035266876220703125,
0.032073974609375,
-0.03546142578125,
-0.00017452239990234375,
0.00868988037109375,
-0.0103607177734375,
-0.029815673828125,
-0.00983428955078125,
-0.0239105224609375,
-0.0276947021484375,
-0.01427459716796875,
0.0191192626953125,
-0.011749267578125,
-0.0147857666015625,
0.006847381591796875,
-0.00585174560546875,
-0.031585693359375,
-0.016204833984375,
0.035247802734375,
-0.01446533203125,
-0.0242156982421875,
0.02825927734375,
0.004802703857421875,
-0.0008497238159179688,
0.0248870849609375,
0.0211181640625,
-0.0247039794921875,
0.007282257080078125,
0.09326171875,
0.022918701171875,
-0.014678955078125,
-0.06207275390625,
0.033203125,
0.0498046875,
-0.0013275146484375,
0.058624267578125,
0.0296630859375,
-0.0309295654296875,
0.045501708984375,
0.021240234375,
0.007678985595703125,
0.0187225341796875,
-0.00984954833984375,
0.0200347900390625,
-0.025787353515625,
0.0157928466796875,
0.0204925537109375,
-0.01953125,
-0.00189208984375,
-0.024078369140625,
-0.00893402099609375,
-0.0131988525390625,
0.06243896484375,
-0.0274810791015625,
0.03424072265625,
-0.05035400390625,
-0.0206146240234375,
0.00347137451171875,
-0.02362060546875,
0.008392333984375,
0.03131103515625,
-0.01186370849609375,
-0.0201416015625,
-0.005290985107421875,
0.0002529621124267578,
-0.00568389892578125,
-0.0149383544921875,
-0.01480865478515625,
-0.007015228271484375,
0.01378631591796875,
-0.034698486328125,
0.01450347900390625,
-0.01751708984375,
0.05450439453125,
-0.01139068603515625,
-0.04132080078125,
0.007732391357421875,
-0.02752685546875,
0.031341552734375,
0.02752685546875,
-0.01448822021484375,
0.031524658203125,
0.0589599609375,
-0.04046630859375,
-0.0149078369140625,
-0.042877197265625,
0.01430511474609375,
-0.0634765625,
0.01226806640625,
-0.028533935546875,
0.00650787353515625,
0.0307159423828125,
0.0517578125,
-0.050872802734375,
0.07293701171875,
-0.003139495849609375,
-0.0029449462890625,
0.01629638671875,
0.0316162109375,
0.048309326171875,
-0.041351318359375,
-0.010650634765625,
-0.006999969482421875,
-0.0151824951171875,
-0.0309906005859375,
-0.004917144775390625,
0.003856658935546875,
0.0662841796875,
-0.0148773193359375,
-0.031585693359375,
0.01056671142578125,
-0.06341552734375,
-0.0130157470703125,
0.0115203857421875,
-0.0155487060546875,
-0.028289794921875,
-0.004199981689453125,
0.0217437744140625,
0.0166473388671875,
-0.0035724639892578125,
-0.004730224609375,
-0.040191650390625,
-0.01708984375,
-0.0271453857421875,
-0.01082611083984375,
-0.0380859375,
0.00980377197265625,
0.0244598388671875,
-0.07269287109375,
-0.0175628662109375,
-0.0037822723388671875,
-0.051025390625,
-0.05621337890625,
0.0245208740234375,
-0.0172576904296875,
0.0161895751953125,
-0.0104217529296875,
0.04864501953125,
-0.043121337890625,
-0.0181884765625,
0.0004074573516845703,
0.00357818603515625,
0.061859130859375,
0.04254150390625,
-0.00414276123046875,
0.00897216796875,
-0.0145111083984375,
-0.01308441162109375,
0.0308685302734375,
-0.0173797607421875,
-0.0153350830078125,
-0.02960205078125,
-0.01715087890625,
0.002994537353515625,
0.00634002685546875,
0.02996826171875,
0.0015516281127929688,
0.00809478759765625,
-0.039825439453125,
-0.0168304443359375,
-0.017303466796875,
-0.0014963150024414062,
0.0313720703125,
0.0195770263671875,
0.0207672119140625,
0.0163116455078125,
-0.0029277801513671875,
-0.0430908203125,
0.0231170654296875,
-0.0218963623046875,
-0.0343017578125,
-0.00765228271484375,
-0.02923583984375,
-0.0217742919921875,
0.029296875,
-0.005580902099609375,
0.01983642578125,
0.007549285888671875,
0.017242431640625,
-0.01031494140625,
-0.09649658203125,
0.0104522705078125,
-0.0074615478515625,
0.009490966796875,
-0.0352783203125,
-0.01416778564453125,
-0.01580810546875,
-0.0091552734375,
-0.0004897117614746094,
-0.00638580322265625,
-0.0169677734375,
0.025390625,
-0.040985107421875,
0.059844970703125,
0.076904296875,
0.01654052734375,
0.044708251953125,
0.0224151611328125,
0.00495147705078125,
0.00704193115234375,
0.018798828125,
-0.025909423828125,
-0.03717041015625,
0.04547119140625,
0.02392578125,
-0.00931549072265625,
0.038787841796875,
-0.0282135009765625,
-0.0019044876098632812,
0.01824951171875,
0.047698974609375,
-0.05224609375,
0.0177001953125,
0.031951904296875,
0.00623321533203125,
0.01508331298828125,
0.0108795166015625,
-0.0369873046875,
-0.026031494140625,
0.0257568359375,
-0.035186767578125,
-0.0248565673828125,
0.005786895751953125,
0.002197265625,
-0.0081329345703125,
-0.0194244384765625,
0.054473876953125,
0.01534271240234375,
-0.020355224609375,
-0.00035691261291503906,
0.0080108642578125,
0.017974853515625,
-0.015167236328125,
-0.0258331298828125,
0.017822265625,
-0.04022216796875,
-0.06683349609375,
-0.00992584228515625,
-0.03509521484375,
0.00153350830078125,
-0.019683837890625,
-0.004116058349609375,
-0.021514892578125,
0.061981201171875,
-0.0416259765625,
0.00710296630859375,
0.044403076171875,
-0.0614013671875,
-0.013702392578125,
0.0038394927978515625,
0.0272216796875,
0.0005464553833007812,
-0.031982421875,
0.016845703125,
-0.0430908203125,
0.0009579658508300781,
-0.0123748779296875,
-0.0304107666015625,
0.03302001953125,
0.00766754150390625,
-0.01386260986328125,
0.048065185546875,
0.01528167724609375,
-0.0219879150390625,
0.0123291015625,
0.05120849609375,
-0.07421875,
-0.074951171875,
0.044891357421875,
-0.053131103515625,
-0.03424072265625,
0.00832366943359375,
-0.06689453125,
0.031158447265625,
-0.0224761962890625,
0.041107177734375,
0.022491455078125,
-0.007904052734375,
-0.01203155517578125,
-0.031280517578125,
-0.0377197265625,
0.00839996337890625,
-0.01702880859375,
0.032196044921875,
-0.07159423828125,
-0.007183074951171875,
-0.0153350830078125,
0.058837890625,
0.0131683349609375,
0.00576019287109375,
-0.023468017578125,
-0.048065185546875,
-0.0211029052734375,
0.047332763671875,
0.0169830322265625,
0.006473541259765625,
0.01076507568359375,
0.04132080078125,
0.03265380859375,
-0.0338134765625,
0.0235748291015625,
0.006366729736328125,
-0.0283050537109375,
0.037628173828125,
0.007251739501953125,
-0.0035076141357421875,
-0.00548553466796875,
-0.052947998046875,
-0.00978851318359375,
0.0025577545166015625,
-0.0047454833984375,
-0.0150909423828125,
0.0003516674041748047,
0.0379638671875,
0.05621337890625,
-0.047760009765625,
0.039306640625,
-0.04498291015625,
0.07080078125,
0.017791748046875,
-0.0350341796875,
0.036407470703125,
0.0035381317138671875,
0.0004940032958984375,
0.01385498046875,
-0.024810791015625,
0.01141357421875,
0.043426513671875,
0.0345458984375,
0.01511383056640625,
0.01328277587890625,
-0.05828857421875,
-0.031341552734375,
0.060028076171875,
0.060577392578125,
-0.0229339599609375,
-0.01019287109375,
0.008941650390625,
0.007472991943359375,
-0.00873565673828125,
-0.00457000732421875,
0.01259613037109375,
0.0164947509765625,
0.01212310791015625,
-0.007904052734375,
-0.005031585693359375,
0.030670166015625,
0.04510498046875,
0.01424407958984375,
-0.0037384033203125,
-0.037872314453125,
-0.04205322265625,
-0.035430908203125,
0.003154754638671875,
-0.0027637481689453125,
0.0521240234375,
0.00952911376953125,
0.07196044921875,
-0.054931640625,
-0.01739501953125,
-0.01483917236328125,
0.05157470703125,
0.01025390625,
-0.0013179779052734375,
-0.0267486572265625,
-0.041290283203125,
0.03594970703125,
0.03424072265625,
0.0498046875,
0.06500244140625,
0.05059814453125,
0.0206146240234375,
-0.0031261444091796875,
0.024444580078125,
0.047515869140625,
-0.01255035400390625,
0.0244903564453125,
-0.059234619140625,
-0.0031185150146484375,
-0.012054443359375,
-0.033294677734375,
-0.0210418701171875,
-0.00667572021484375,
0.024566650390625,
-0.017578125,
0.0195159912109375,
0.0019397735595703125,
-0.0010786056518554688,
-0.0135345458984375,
-0.02105712890625,
-0.0261077880859375,
-0.019866943359375,
-0.0972900390625,
-0.0225372314453125,
-0.0697021484375,
0.01001739501953125,
0.0224609375,
0.040863037109375,
0.0217132568359375,
-0.014373779296875,
-0.03375244140625,
0.0015783309936523438,
0.00865936279296875,
0.00783538818359375,
-0.0066680908203125,
0.061279296875,
0.031036376953125,
0.0097503662109375,
-0.08392333984375,
-0.04302978515625,
-0.0063629150390625,
0.018768310546875,
-0.0124664306640625,
0.066162109375,
-0.0025920867919921875,
0.0004944801330566406,
-0.0211334228515625,
0.0031604766845703125,
-0.004680633544921875,
-0.03375244140625,
0.0088348388671875,
0.0197906494140625,
-0.00824737548828125,
-0.00732421875,
-0.05621337890625,
0.036376953125,
0.03143310546875,
-0.0277862548828125,
0.026885986328125,
-0.002536773681640625,
0.004375457763671875,
-0.03643798828125,
0.009735107421875,
-0.0289306640625,
-0.055877685546875,
-0.06488037109375,
-0.00286102294921875,
0.024688720703125,
0.030181884765625,
-0.029205322265625,
0.041351318359375,
0.03289794921875,
-0.024871826171875,
0.0180511474609375,
-0.034027099609375,
0.041717529296875,
0.0282135009765625,
0.044158935546875,
-0.07293701171875,
0.00196075439453125,
-0.0040283203125,
-0.018798828125,
-0.0006918907165527344,
0.07086181640625,
-0.017059326171875,
0.0008502006530761719,
0.048828125,
0.0274505615234375,
0.0557861328125,
-0.0141448974609375,
0.0208282470703125,
0.043243408203125,
0.0027561187744140625,
0.0115509033203125,
-0.08953857421875,
-0.032440185546875,
-0.06439208984375,
-0.0044097900390625,
0.03033447265625,
-0.0498046875,
-0.0021820068359375,
-0.013763427734375,
-0.04595947265625,
0.031646728515625,
-0.033111572265625,
0.03466796875,
-0.037200927734375,
-0.05572509765625,
-0.0228271484375,
-0.0169219970703125,
-0.043304443359375,
0.0163726806640625,
0.041778564453125,
0.0106201171875,
0.006595611572265625,
-0.01433563232421875,
-0.0030193328857421875,
0.002094268798828125,
-0.0011205673217773438,
0.004241943359375,
-0.0071868896484375,
0.01418304443359375,
0.00719451904296875,
-0.0016155242919921875,
0.053497314453125,
-0.00870513916015625,
-0.01053619384765625,
0.0211944580078125,
-0.019561767578125,
-0.0172271728515625,
-0.0665283203125,
0.01666259765625,
-0.08941650390625,
-0.0246124267578125,
0.0234375,
-0.043548583984375,
-0.0247650146484375,
-0.04327392578125,
-0.00905609130859375,
0.065185546875,
0.0355224609375,
-0.034393310546875,
-0.0684814453125,
-0.030364990234375,
0.0184326171875,
0.004241943359375,
-0.027069091796875,
-0.01556396484375,
-0.06744384765625,
0.0430908203125,
0.0168609619140625,
-0.005626678466796875,
0.00002187490463256836,
0.00934600830078125,
-0.05694580078125,
0.031768798828125,
0.0172576904296875,
-0.00997161865234375,
0.0106048583984375,
-0.031951904296875,
0.01922607421875,
0.04046630859375,
-0.042266845703125,
-0.046539306640625,
0.013031005859375,
0.007198333740234375,
-0.00588226318359375,
-0.03765869140625,
-0.045654296875,
-0.02667236328125,
0.06658935546875,
0.061798095703125,
0.0249481201171875,
-0.0322265625,
0.0137176513671875,
0.01412200927734375,
-0.08221435546875,
0.01263427734375,
0.056671142578125,
-0.056732177734375,
0.0128173828125,
0.0265350341796875,
-0.0156097412109375,
-0.0120391845703125,
-0.0301971435546875,
-0.058746337890625,
0.0015039443969726562,
-0.024505615234375,
0.0206756591796875,
0.0027008056640625,
-0.045379638671875,
0.052825927734375,
-0.0233154296875,
-0.0127105712890625,
-0.014678955078125,
0.03515625,
-0.00400543212890625,
0.0007996559143066406,
-0.0037899017333984375,
0.01401519775390625,
-0.02642822265625,
0.00396728515625,
0.00322723388671875,
-0.0198211669921875,
0.003116607666015625,
-0.0035400390625,
-0.01262664794921875,
0.01319122314453125,
-0.025970458984375,
0.0325927734375,
0.058013916015625,
0.01166534423828125,
0.0104827880859375,
0.0265350341796875,
-0.0043182373046875,
0.07806396484375,
0.0018281936645507812,
0.057525634765625,
-0.004016876220703125,
-0.0172576904296875,
0.0372314453125,
-0.050567626953125,
-0.0009074211120605469,
0.0013017654418945312,
-0.0227813720703125,
-0.04437255859375,
-0.00601959228515625,
0.019012451171875,
0.0162200927734375,
0.01068115234375
] |
2c5133b982624eb41f3bc2177b8c525e65e9d40d
|
Wordpress Stackexchange
Q: if plugin is active? check if plugin is enabled or not? I'm using the mingle plugin and the mingle-forum plugin.
I want to show a certain part on my site only if those two plugins are active. How can I solve this?
<?php if ( is_plugin_active('mingle-forum') ) { ?>
<div id="login"><?php include (TEMPLATEPATH . '/inc/userlogin.php' ); ?></div>
<?php } ?>
This throws a php error. Call to undefined function is_plugin_active
Any idea what I'm doing wrong?
update:
<?php if ( plugin_active('plugin-directory/mingle-forum/wpf-main.php') ) { ?>
<div id="login"><?php include (TEMPLATEPATH . '/inc/userlogin.php' ); ?></div>
<?php } ?>
A: This function exists in wp-admin/includes/plugin.php so I'm assuming it doesn't get included by the theme.
You can either require it, or just create your own version of it - see here: http://wordpress.org/support/topic/is_plugin_active
UPDATED:
Please check is_plugin_active
|
Q: if plugin is active? check if plugin is enabled or not? I'm using the mingle plugin and the mingle-forum plugin.
I want to show a certain part on my site only if those two plugins are active. How can I solve this?
<?php if ( is_plugin_active('mingle-forum') ) { ?>
<div id="login"><?php include (TEMPLATEPATH . '/inc/userlogin.php' ); ?></div>
<?php } ?>
This throws a php error. Call to undefined function is_plugin_active
Any idea what I'm doing wrong?
update:
<?php if ( plugin_active('plugin-directory/mingle-forum/wpf-main.php') ) { ?>
<div id="login"><?php include (TEMPLATEPATH . '/inc/userlogin.php' ); ?></div>
<?php } ?>
A: This function exists in wp-admin/includes/plugin.php so I'm assuming it doesn't get included by the theme.
You can either require it, or just create your own version of it - see here: http://wordpress.org/support/topic/is_plugin_active
UPDATED:
Please check is_plugin_active
A: There are two way by which you can check plugin is active or not.
*
*You can use is_plugin_active function to check plugin active or
not.
*If plugin have class then you can check like below-
if (class_exists('YITH_Woocompare_Frontend'))
{
echo 'your code';
}
The above class related to YITH WooCommerce Compare plugin . The above code check if class exist then only you code inside the bracket will execute.
A: You can also try to check plugin is Active or Not
$pluginList = get_option( 'active_plugins' );
$plugin = 'PLUGIN_DIR/FILE_NAME.php';
if ( in_array( $plugin , $pluginList ) ) {
// Plugin 'mg-post-contributors' is Active
}
Also try below code for simplicity
if ( is_plugin_active( 'PLUGIN_DIR/FILE_NAME.php' ) ) {
//plugin is activated
}
A: You can simply use the WordPress default function. This function exists in wp-admin/includes/plugin.php.
Simply pass the Path to the plugin file relative to the plugins directory.
$pluginPath = 'akismet/akismet.php';
if ( is_plugin_active( $pluginPath ) ) {
echo 'Plugin is activated';
} else {
echo 'Plugin is not activated';
}
For more details on is_plugin_active please see the below link:
https://developer.wordpress.org/reference/functions/is_plugin_active/
A: the correct and actual way to check if a plugin is active or not is to set a
function_exists ()
function for your code
|
wordpress
|
{
"language": "en",
"length": 341,
"provenance": "stackexchange_00019.jsonl.gz:408799",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15310"
}
|
[
0.0565185546875,
0.0538330078125,
-0.01476287841796875,
-0.0257720947265625,
0.05645751953125,
-0.02880859375,
0.03509521484375,
-0.042999267578125,
0.04144287109375,
0.0182037353515625,
0.0004687309265136719,
0.0027179718017578125,
-0.0200653076171875,
-0.0303192138671875,
-0.0244140625,
-0.0166168212890625,
0.00565338134765625,
0.0304107666015625,
0.00823974609375,
-0.009368896484375,
0.005107879638671875,
0.004497528076171875,
-0.0246124267578125,
0.00846099853515625,
0.03125,
-0.054534912109375,
0.110107421875,
-0.0256195068359375,
0.05450439453125,
-0.00124359130859375,
0.038238525390625,
-0.06488037109375,
-0.017425537109375,
0.0484619140625,
0.0016202926635742188,
-0.022796630859375,
0.022796630859375,
0.004638671875,
0.020294189453125,
0.0341796875,
0.047515869140625,
-0.01303863525390625,
-0.036041259765625,
0.00569915771484375,
-0.02239990234375,
-0.034454345703125,
0.042755126953125,
-0.007526397705078125,
0.0273590087890625,
-0.00766754150390625,
-0.006313323974609375,
-0.0189666748046875,
0.016021728515625,
-0.04119873046875,
-0.0220947265625,
-0.027252197265625,
-0.06146240234375,
-0.004871368408203125,
0.0204620361328125,
0.038970947265625,
0.0257568359375,
-0.027618408203125,
0.003665924072265625,
-0.0142364501953125,
0.043304443359375,
-0.024810791015625,
-0.002071380615234375,
0.05303955078125,
-0.060577392578125,
0.0118255615234375,
0.0450439453125,
-0.051666259765625,
0.0158233642578125,
0.0239410400390625,
-0.031768798828125,
-0.0394287109375,
0.02020263671875,
-0.005634307861328125,
0.038360595703125,
-0.00240325927734375,
-0.021697998046875,
0.0458984375,
-0.04205322265625,
0.007640838623046875,
-0.0299072265625,
0.00896453857421875,
-0.0246734619140625,
-0.0189971923828125,
-0.007137298583984375,
-0.0176239013671875,
-0.015777587890625,
-0.0033130645751953125,
-0.0078582763671875,
0.006786346435546875,
-0.0244903564453125,
-0.00814056396484375,
0.058319091796875,
0.07830810546875,
-0.030487060546875,
-0.0174713134765625,
-0.0018453598022460938,
-0.0374755859375,
0.01163482666015625,
-0.032257080078125,
-0.00690460205078125,
0.075439453125,
0.016632080078125,
-0.00916290283203125,
-0.00881195068359375,
-0.00115966796875,
0.0226287841796875,
-0.0311431884765625,
-0.026702880859375,
-0.03729248046875,
-0.0086822509765625,
-0.00421905517578125,
-0.068359375,
0.0299530029296875,
0.0227508544921875,
0.008026123046875,
0.026580810546875,
0.038543701171875,
0.02252197265625,
-0.044464111328125,
-0.006145477294921875,
-0.026275634765625,
-0.051971435546875,
-0.0283050537109375,
-0.0168304443359375,
0.028594970703125,
-0.0286102294921875,
-0.0011768341064453125,
0.029144287109375,
0.0265350341796875,
-0.00786590576171875,
-0.0214385986328125,
0.01000213623046875,
0.0274200439453125,
0.020660400390625,
-0.01505279541015625,
-0.0021457672119140625,
-0.0237884521484375,
0.005138397216796875,
0.0069732666015625,
-0.01195526123046875,
0.00661468505859375,
0.0228424072265625,
0.00775146484375,
-0.025482177734375,
-0.060333251953125,
0.0394287109375,
-0.037445068359375,
-0.01751708984375,
0.027008056640625,
0.04156494140625,
0.01641845703125,
0.0413818359375,
-0.00939178466796875,
0.005405426025390625,
-0.0026836395263671875,
0.0251617431640625,
0.005764007568359375,
0.00910186767578125,
-0.029144287109375,
-0.01824951171875,
-0.027801513671875,
-0.041778564453125,
0.013458251953125,
0.025543212890625,
-0.00859832763671875,
0.0150299072265625,
0.00634002685546875,
0.05279541015625,
0.0217132568359375,
0.00823974609375,
0.0282135009765625,
0.0096282958984375,
0.062347412109375,
0.00437164306640625,
0.01430511474609375,
0.004253387451171875,
-0.025604248046875,
0.07598876953125,
-0.0245513916015625,
-0.035003662109375,
0.01064300537109375,
-0.01210784912109375,
-0.025604248046875,
0.04473876953125,
-0.01511383056640625,
0.053375244140625,
0.0199737548828125,
0.0247802734375,
-0.0116729736328125,
-0.018585205078125,
-0.0211029052734375,
-0.0027980804443359375,
0.013214111328125,
-0.021820068359375,
-0.01151275634765625,
0.06573486328125,
0.003509521484375,
-0.024322509765625,
-0.036041259765625,
-0.10784912109375,
-0.0107574462890625,
-0.0234375,
0.0328369140625,
-0.01346588134765625,
0.0237884521484375,
0.00714874267578125,
0.02099609375,
0.000017940998077392578,
-0.0670166015625,
-0.00033545494079589844,
0.0303497314453125,
0.01311492919921875,
0.05706787109375,
0.00519561767578125,
0.027191162109375,
0.0037555694580078125,
-0.01450347900390625,
0.000030517578125,
0.00795745849609375,
0.004077911376953125,
0.033905029296875,
-0.03338623046875,
0.0129852294921875,
-0.020294189453125,
0.0251312255859375,
-0.005664825439453125,
0.031890869140625,
0.0011043548583984375,
0.01351165771484375,
-0.056121826171875,
-0.0250091552734375,
-0.0159149169921875,
-0.04022216796875,
0.033050537109375,
0.0584716796875,
0.0396728515625,
-0.007843017578125,
0.0032291412353515625,
0.0168304443359375,
0.0178375244140625,
-0.045257568359375,
0.01580810546875,
0.00182342529296875,
-0.0029811859130859375,
0.0218658447265625,
-0.059326171875,
0.0294189453125,
0.043914794921875,
0.06622314453125,
0.007965087890625,
0.0440673828125,
-0.0203399658203125,
-0.0262603759765625,
-0.0117950439453125,
-0.0006585121154785156,
0.00946044921875,
-0.0292510986328125,
-0.009796142578125,
-0.0220947265625,
0.036865234375,
-0.0140228271484375,
0.0074920654296875,
0.0004897117614746094,
-0.01702880859375,
0.004009246826171875,
0.018096923828125,
-0.033599853515625,
0.0036449432373046875,
0.026947021484375,
0.01348876953125,
0.012542724609375,
-0.01161956787109375,
-0.0263519287109375,
-0.0165557861328125,
0.01360321044921875,
-0.044769287109375,
-0.0301361083984375,
-0.0555419921875,
-0.02337646484375,
0.00905609130859375,
-0.028961181640625,
0.01122283935546875,
-0.01454925537109375,
0.004489898681640625,
-0.012603759765625,
0.036834716796875,
-0.01763916015625,
-0.036285400390625,
0.027069091796875,
-0.01177978515625,
-0.043487548828125,
-0.0225372314453125,
-0.047943115234375,
0.05352783203125,
-0.050994873046875,
0.031585693359375,
0.06982421875,
-0.022857666015625,
0.031982421875,
-0.0166015625,
-0.0092010498046875,
-0.040924072265625,
-0.0011234283447265625,
-0.017547607421875,
-0.0080108642578125,
-0.040374755859375,
0.04833984375,
0.0214996337890625,
0.053070068359375,
-0.0185089111328125,
-0.056884765625,
-0.0218048095703125,
0.016357421875,
-0.0821533203125,
-0.061431884765625,
-0.0718994140625,
-0.0838623046875,
0.045623779296875,
-0.0095977783203125,
-0.0247039794921875,
0.0157470703125,
0.01045989990234375,
0.036895751953125,
-0.07037353515625,
-0.0014448165893554688,
-0.058624267578125,
-0.0626220703125,
-0.040924072265625,
0.034423828125,
-0.0230865478515625,
0.0112152099609375,
0.0014982223510742188,
0.102783203125,
0.00170135498046875,
-0.0277252197265625,
-0.007289886474609375,
-0.00432586669921875,
-0.0240478515625,
0.0012521743774414062,
-0.0244293212890625,
-0.0020923614501953125,
0.00960540771484375,
0.01091766357421875,
-0.0157318115234375,
-0.003139495849609375,
0.00971221923828125,
-0.0157012939453125,
0.0411376953125,
0.004863739013671875,
0.038604736328125,
0.016693115234375,
-0.028045654296875,
-0.0087738037109375,
-0.007537841796875,
-0.06390380859375,
0.03253173828125,
-0.043701171875,
-0.0352783203125,
0.03778076171875,
0.0458984375,
-0.0268707275390625,
-0.0083465576171875,
-0.0259246826171875,
-0.0066375732421875,
0.00189971923828125,
-0.0087890625,
-0.037139892578125,
0.058868408203125,
0.00954437255859375,
0.014495849609375,
-0.0002868175506591797,
-0.00048089027404785156,
-0.01873779296875,
0.0038433074951171875,
-0.0176544189453125,
0.0186309814453125,
-0.0195770263671875,
0.0274200439453125,
-0.0625,
0.048370361328125,
0.013427734375,
0.0149688720703125,
-0.0139923095703125,
0.0225067138671875,
0.0040740966796875,
-0.036651611328125,
-0.026336669921875,
-0.054718017578125,
-0.0166015625,
-0.00795745849609375,
-0.004390716552734375,
0.0087738037109375,
0.0068817138671875,
-0.039154052734375,
-0.0026912689208984375,
-0.069580078125,
-0.0335693359375,
-0.03875732421875,
-0.0289306640625,
0.007465362548828125,
-0.01342010498046875,
-0.026397705078125,
-0.04736328125,
0.0211029052734375,
-0.006526947021484375,
-0.003719329833984375,
0.040069580078125,
-0.0202484130859375,
0.02001953125,
0.004055023193359375,
-0.04364013671875,
-0.0810546875,
0.00897216796875,
-0.057037353515625,
0.024688720703125,
0.020111083984375,
0.00844573974609375,
-0.01580810546875,
0.01016998291015625,
0.0102386474609375,
-0.0307769775390625,
0.026123046875,
-0.016082763671875,
-0.0199127197265625,
0.04638671875,
0.011627197265625,
-0.0028839111328125,
0.004791259765625,
-0.00463104248046875,
-0.06298828125,
-0.0384521484375,
-0.0230712890625,
-0.04443359375,
0.033447265625,
-0.0628662109375,
-0.01081085205078125,
-0.023193359375,
-0.013702392578125,
-0.021881103515625,
-0.0169677734375,
-0.00882720947265625,
-0.0045013427734375,
-0.0019092559814453125,
0.058319091796875,
-0.05389404296875,
0.0010080337524414062,
0.00753021240234375,
0.07763671875,
-0.003631591796875,
-0.0177459716796875,
-0.039459228515625,
0.031341552734375,
0.045166015625,
0.022735595703125,
0.01197052001953125,
0.041290283203125,
-0.034332275390625,
-0.0098876953125,
0.044097900390625,
0.006999969482421875,
-0.02349853515625,
0.0236358642578125,
-0.0016431808471679688,
-0.017852783203125,
0.003932952880859375,
-0.00844573974609375,
0.0220794677734375,
0.0299072265625,
-0.0216064453125,
-0.01316070556640625,
-0.00493621826171875,
0.02972412109375,
-0.034942626953125,
0.0123748779296875,
-0.0267333984375,
-0.032470703125,
0.0103302001953125,
-0.002536773681640625,
0.0128173828125,
0.035064697265625,
-0.0142059326171875,
0.028961181640625,
0.0169677734375,
0.0028171539306640625,
0.045867919921875,
0.032135009765625,
0.0099945068359375,
0.034210205078125,
0.035797119140625,
0.00024509429931640625,
0.0198974609375,
-0.005901336669921875,
0.06640625,
-0.036773681640625,
-0.06781005859375,
-0.044769287109375,
-0.01480865478515625,
0.06317138671875,
0.039825439453125,
0.0233154296875,
0.04833984375,
0.0285797119140625,
-0.024169921875,
-0.005126953125,
0.0006856918334960938,
0.051055908203125,
-0.04302978515625,
-0.048583984375,
-0.0235595703125,
-0.003742218017578125,
-0.0014772415161132812,
0.0572509765625,
0.0186309814453125,
0.0296630859375,
-0.03076171875,
-0.006732940673828125,
-0.0003027915954589844,
0.06378173828125,
0.041259765625,
-0.083740234375,
-0.0243988037109375,
0.047576904296875,
0.002307891845703125,
-0.046875,
0.00304412841796875,
-0.006107330322265625,
0.0120697021484375,
0.01407623291015625,
-0.0254364013671875,
0.053619384765625,
0.0472412109375,
-0.03570556640625,
0.06475830078125,
0.0288238525390625,
-0.038848876953125,
-0.0421142578125,
-0.0010385513305664062,
0.040771484375,
-0.00872802734375,
-0.022308349609375,
0.01482391357421875,
-0.0306243896484375,
-0.0171356201171875,
0.05572509765625,
-0.08062744140625,
0.01447296142578125,
0.04547119140625,
-0.01490020751953125,
-0.0235137939453125,
-0.01094818115234375,
-0.039093017578125,
-0.003826141357421875,
-0.0214385986328125,
-0.0036907196044921875,
0.0460205078125,
-0.0098114013671875,
0.04351806640625,
-0.044891357421875,
-0.0114593505859375,
-0.01023101806640625,
0.01262664794921875,
-0.00676727294921875,
-0.021575927734375,
-0.04888916015625,
0.0169219970703125,
-0.04071044921875,
-0.0030841827392578125,
-0.0433349609375,
-0.04205322265625,
-0.027435302734375,
-0.0220489501953125,
0.0244598388671875,
0.0150146484375,
0.01323699951171875,
-0.00946807861328125,
0.021759033203125,
0.0177154541015625,
0.011871337890625,
0.0280303955078125,
0.017852783203125,
0.034515380859375,
0.034027099609375,
0.03863525390625,
0.03997802734375,
0.0186614990234375,
-0.05718994140625,
-0.0225830078125,
0.00785064697265625,
0.025146484375,
0.003986358642578125,
-0.01525115966796875,
0.041839599609375,
-0.05902099609375,
0.0203704833984375,
-0.014373779296875,
0.0019435882568359375,
0.01013946533203125,
0.00875091552734375,
-0.0037937164306640625,
0.0184478759765625,
0.02862548828125,
0.023345947265625,
0.01348876953125,
-0.053619384765625,
-0.036407470703125,
0.005283355712890625,
0.0102996826171875,
0.01291656494140625,
-0.0167694091796875,
-0.0031280517578125,
0.0170135498046875,
-0.056640625,
0.0391845703125,
0.009796142578125,
0.003864288330078125,
0.036773681640625,
-0.02947998046875,
0.0290985107421875,
0.0228271484375,
-0.0159759521484375,
-0.005443572998046875,
0.0233306884765625,
0.050750732421875,
0.0019426345825195312,
-0.022857666015625,
0.046051025390625,
-0.031646728515625,
0.029693603515625,
0.034027099609375,
0.039398193359375,
-0.059112548828125,
0.01351165771484375,
-0.007266998291015625,
-0.0210418701171875,
0.040374755859375,
-0.03546142578125,
0.0160980224609375,
-0.025390625,
0.099609375,
0.0027923583984375,
0.00466156005859375,
0.037841796875,
-0.04168701171875,
-0.01531982421875,
-0.02490234375,
0.041900634765625,
0.024871826171875,
-0.01438140869140625,
0.0158538818359375,
-0.0022335052490234375,
-0.0022907257080078125,
-0.0070343017578125,
0.004932403564453125,
-0.009918212890625,
-0.007640838623046875,
-0.039825439453125,
0.002529144287109375,
-0.037811279296875,
-0.019073486328125,
0.043212890625,
-0.025665283203125,
0.033477783203125,
0.049102783203125,
-0.0258026123046875,
0.0121307373046875,
0.0234222412109375,
-0.032012939453125,
-0.03533935546875,
-0.01491546630859375,
0.033935546875,
0.025421142578125,
-0.052093505859375,
0.0234375,
-0.0203857421875,
-0.0230255126953125,
-0.01476287841796875,
0.013885498046875,
0.06182861328125,
0.000995635986328125,
-0.0231781005859375,
0.0258026123046875,
0.034820556640625,
-0.00989532470703125,
-0.033172607421875,
0.038970947265625,
-0.055938720703125,
-0.03472900390625,
-0.003993988037109375,
-0.0227203369140625,
-0.00524139404296875,
-0.0145721435546875,
-0.05291748046875,
0.08502197265625,
-0.0117034912109375,
0.042694091796875,
0.01436614990234375,
0.0287322998046875,
-0.00608062744140625,
0.0212860107421875,
-0.0225677490234375,
0.0303955078125,
-0.033843994140625,
0.04840087890625,
-0.004817962646484375,
0.02886962890625,
0.0312042236328125,
-0.0094451904296875,
-0.01276397705078125,
0.01259613037109375,
-0.0151824951171875,
-0.0053558349609375,
-0.00791168212890625,
0.001010894775390625,
-0.0115509033203125,
0.036895751953125,
-0.015838623046875,
-0.0047149658203125,
-0.001007080078125,
-0.05865478515625,
0.011810302734375,
-0.044281005859375,
-0.0177154541015625,
0.004291534423828125,
0.0014019012451171875,
0.0164031982421875,
-0.048736572265625,
0.0145721435546875,
0.019439697265625,
-0.03973388671875,
-0.0126190185546875,
-0.018035888671875,
0.01372528076171875,
0.0093841552734375,
0.00574493408203125,
0.02899169921875,
0.0241546630859375,
-0.0133514404296875,
0.030303955078125,
0.0091094970703125,
0.052093505859375,
0.00878143310546875,
0.0119781494140625,
0.0153350830078125,
-0.01953125,
0.0244598388671875,
0.0021991729736328125,
-0.032501220703125,
0.01004791259765625,
0.047149658203125,
0.0249481201171875,
0.00616455078125,
-0.021209716796875,
0.0243682861328125,
0.0131378173828125,
-0.0175323486328125,
-0.1171875,
0.004665374755859375,
-0.003932952880859375,
0.00322723388671875,
0.072021484375,
-0.018951416015625,
0.0014963150024414062,
0.09674072265625,
0.007843017578125,
-0.01168060302734375,
0.00623321533203125,
0.00601959228515625,
0.014801025390625,
0.018157958984375,
-0.0229949951171875,
0.01012420654296875,
-0.02508544921875,
0.03631591796875,
-0.0032196044921875,
0.0137481689453125,
-0.008087158203125,
0.0197601318359375,
0.005840301513671875,
0.01331329345703125,
-0.022705078125,
0.035614013671875,
-0.0399169921875,
0.041412353515625,
-0.08660888671875,
-0.0758056640625,
-0.0191802978515625,
0.07110595703125,
0.0110015869140625,
-0.0091552734375,
-0.01141357421875,
-0.001522064208984375,
0.004657745361328125,
0.00940704345703125,
0.0615234375,
-0.01047515869140625,
0.005977630615234375,
-0.0112152099609375,
0.019775390625,
0.041717529296875,
0.005161285400390625,
-0.0186309814453125,
-0.005523681640625,
0.0728759765625,
-0.0174407958984375,
0.0220947265625,
0.00936126708984375,
0.0039825439453125,
0.01898193359375,
0.0164642333984375,
0.0203704833984375,
0.01558685302734375,
-0.05145263671875,
-0.0166778564453125,
-0.04241943359375,
0.012420654296875,
0.01209259033203125,
0.028839111328125,
0.00786590576171875,
0.0282440185546875,
0.0146026611328125,
0.006134033203125,
0.006900787353515625,
-0.017486572265625,
-0.011627197265625,
0.0106353759765625,
0.0269317626953125,
0.006549835205078125,
-0.0286712646484375,
-0.0299224853515625,
-0.0264739990234375,
0.0498046875,
0.0390625,
0.046112060546875,
-0.01255035400390625,
0.034515380859375,
0.017669677734375,
-0.0225372314453125,
0.020233154296875,
0.00107574462890625,
0.0257415771484375,
-0.0263519287109375,
-0.02325439453125,
-0.006927490234375,
-0.05291748046875,
0.034027099609375,
0.01139068603515625,
0.0484619140625,
0.04205322265625,
-0.0343017578125,
0.02569580078125,
0.0207366943359375,
0.050445556640625,
-0.0175933837890625,
-0.0626220703125,
-0.007965087890625,
0.024169921875,
-0.0019283294677734375,
0.062469482421875,
0.028167724609375,
0.00768280029296875,
-0.034881591796875,
-0.01470184326171875,
-0.004894256591796875,
0.010040283203125,
-0.058349609375,
0.01068878173828125,
-0.01331329345703125,
-0.0202178955078125,
0.0183563232421875,
-0.00887298583984375,
0.010986328125,
0.01534271240234375,
0.0260772705078125,
0.032684326171875,
-0.027252197265625,
0.0484619140625,
0.0251007080078125,
0.0290679931640625,
-0.036712646484375,
-0.0193939208984375,
0.060882568359375,
-0.0026874542236328125,
0.00887298583984375,
-0.057708740234375,
-0.0155792236328125,
-0.03717041015625,
-0.02764892578125,
0.01369476318359375,
-0.0322265625,
-0.040985107421875,
-0.01074981689453125,
-0.016754150390625,
0.00177001953125,
-0.006999969482421875,
-0.0262908935546875,
0.004913330078125,
-0.01226043701171875,
0.0091705322265625,
-0.031219482421875,
-0.047393798828125,
0.01326751708984375,
0.0263214111328125,
-0.002796173095703125,
0.0282745361328125,
-0.032745361328125,
-0.017120361328125,
0.024200439453125,
0.0154571533203125,
0.044830322265625,
-0.0096282958984375,
-0.02911376953125,
-0.0003914833068847656,
0.0006299018859863281,
0.0284881591796875,
-0.0190582275390625,
0.0003452301025390625,
0.02496337890625,
-0.01105499267578125,
-0.017730712890625,
-0.019134521484375,
0.0157623291015625,
-0.006084442138671875,
-0.034820556640625,
-0.04296875,
0.00878143310546875,
0.0019702911376953125,
-0.04864501953125,
-0.0794677734375,
0.03204345703125,
-0.014251708984375,
-0.0287933349609375,
-0.08489990234375,
0.00728607177734375,
0.0276336669921875,
-0.040252685546875,
-0.042938232421875,
-0.030609130859375,
-0.06634521484375,
0.044708251953125,
0.0021114349365234375,
0.0181884765625,
0.0219879150390625,
0.032806396484375,
-0.0428466796875,
0.009918212890625,
-0.0206298828125,
-0.0121612548828125,
-0.0004761219024658203,
0.00943756103515625,
0.021087646484375,
0.0352783203125,
-0.0164642333984375,
0.038848876953125,
-0.0012636184692382812,
-0.01122283935546875,
0.00789642333984375,
-0.06744384765625,
0.00292205810546875,
-0.0155029296875,
0.038421630859375,
-0.007678985595703125,
-0.0025539398193359375,
-0.0218505859375,
0.0146942138671875,
-0.0574951171875,
-0.053436279296875,
0.01262664794921875,
0.0239410400390625,
-0.034271240234375,
0.0214691162109375,
0.033599853515625,
-0.005100250244140625,
-0.060638427734375,
0.040252685546875,
-0.04150390625,
-0.017333984375,
0.016998291015625,
-0.00337982177734375,
0.0102081298828125,
-0.00568389892578125,
0.049896240234375,
-0.03704833984375,
-0.00656890869140625,
-0.005550384521484375,
0.01197052001953125,
0.019195556640625,
0.01248931884765625,
0.0360107421875,
-0.00382232666015625,
-0.031005859375,
-0.0193939208984375,
0.0183563232421875,
0.053192138671875,
0.017822265625,
-0.053680419921875,
-0.0164794921875,
0.00260162353515625,
-0.0023746490478515625,
-0.01393890380859375,
-0.0181732177734375,
0.01454925537109375,
0.011688232421875,
0.0350341796875,
0.0312347412109375,
0.02801513671875,
0.01038360595703125,
0.04620361328125,
0.0159149169921875,
-0.056884765625,
0.0239105224609375,
-0.05010986328125,
-0.028289794921875,
0.053924560546875,
0.00421905517578125,
-0.06884765625,
0.038482666015625,
-0.031463623046875,
0.050628662109375,
0.0177459716796875
] |
a866dc86423cc8597e57ce396217a0b09513bc12
|
Wordpress Stackexchange
Q: Remove the "View" Link in Post Admin I have a custom post type that I'm just using just to keep data in but I sometimes share it with others, and I don't want any confusion when the "view" link appears in the admin column.
Is there a way of removing that?
http://img.skitch.com/20110421-des28mtj4br3aeyfxnypnkghsy.jpg http://img.skitch.com/20110421-des28mtj4br3aeyfxnypnkghsy.jpg
A: add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );
function remove_row_actions( $actions )
{
if( get_post_type() === 'my_cpt' )
unset( $actions['view'] );
return $actions;
}
Should see you through :)
The $actions array consists of the following:
$actions['edit']
$actions['inline hide-if-no-js']
$actions['trash']
$actions['view']
To modify users grid view 'user_row_actions' filter can be used.
For future reference.
|
Q: Remove the "View" Link in Post Admin I have a custom post type that I'm just using just to keep data in but I sometimes share it with others, and I don't want any confusion when the "view" link appears in the admin column.
Is there a way of removing that?
http://img.skitch.com/20110421-des28mtj4br3aeyfxnypnkghsy.jpg http://img.skitch.com/20110421-des28mtj4br3aeyfxnypnkghsy.jpg
A: add_filter( 'post_row_actions', 'remove_row_actions', 10, 1 );
function remove_row_actions( $actions )
{
if( get_post_type() === 'my_cpt' )
unset( $actions['view'] );
return $actions;
}
Should see you through :)
The $actions array consists of the following:
$actions['edit']
$actions['inline hide-if-no-js']
$actions['trash']
$actions['view']
To modify users grid view 'user_row_actions' filter can be used.
For future reference.
A: Is there a way to remove the "View" link under the users in the backend User panel? All users are listed with an Edit, Delete, View link. I'm looking to remove that View link. Much appreciated.
|
wordpress
|
{
"language": "en",
"length": 144,
"provenance": "stackexchange_00019.jsonl.gz:408802",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15321"
}
|
[
0.07757568359375,
0.0019168853759765625,
-0.006801605224609375,
-0.01495361328125,
0.017181396484375,
-0.07208251953125,
0.05706787109375,
-0.0264434814453125,
0.030181884765625,
0.0389404296875,
0.01332855224609375,
-0.041412353515625,
-0.00862884521484375,
-0.041107177734375,
-0.039031982421875,
-0.024261474609375,
0.023956298828125,
0.0013475418090820312,
0.05328369140625,
-0.01519012451171875,
0.004749298095703125,
0.00125885009765625,
0.0587158203125,
0.002838134765625,
-0.00376129150390625,
0.04364013671875,
0.058990478515625,
-0.007175445556640625,
-0.00022935867309570312,
-0.0247955322265625,
0.012786865234375,
-0.01015472412109375,
-0.0009641647338867188,
-0.0097198486328125,
0.026458740234375,
-0.0623779296875,
-0.01279449462890625,
0.00855255126953125,
0.0010690689086914062,
-0.01495361328125,
-0.0027256011962890625,
0.01055908203125,
-0.0184478759765625,
-0.002010345458984375,
-0.05499267578125,
0.00732421875,
-0.005767822265625,
0.0145263671875,
0.01189422607421875,
-0.005496978759765625,
0.0112762451171875,
0.009979248046875,
0.0294342041015625,
-0.01244354248046875,
-0.017913818359375,
-0.00582122802734375,
-0.04180908203125,
-0.00787353515625,
0.027923583984375,
0.05078125,
-0.0013971328735351562,
-0.01506805419921875,
-0.0022220611572265625,
-0.06591796875,
-0.016082763671875,
-0.020233154296875,
0.0118408203125,
0.0166473388671875,
-0.038848876953125,
-0.02294921875,
0.0288238525390625,
0.01267242431640625,
-0.004001617431640625,
-0.0191192626953125,
-0.00428009033203125,
0.0208740234375,
0.0041961669921875,
0.00334930419921875,
-0.005771636962890625,
0.01395416259765625,
-0.0157012939453125,
-0.009002685546875,
-0.006099700927734375,
0.0143890380859375,
-0.01279449462890625,
0.04302978515625,
-0.0304412841796875,
-0.0186920166015625,
-0.00376129150390625,
-0.05462646484375,
-0.016815185546875,
-0.033721923828125,
0.00030994415283203125,
-0.01491546630859375,
-0.054412841796875,
-0.01153564453125,
0.06072998046875,
0.03424072265625,
0.007709503173828125,
-0.009521484375,
0.00745391845703125,
-0.0518798828125,
0.0036144256591796875,
-0.01557159423828125,
-0.007549285888671875,
0.00894927978515625,
0.036651611328125,
0.058380126953125,
0.0241241455078125,
0.005458831787109375,
-0.00949859619140625,
-0.01068115234375,
-0.05108642578125,
0.041351318359375,
-0.03997802734375,
0.0149383544921875,
-0.06549072265625,
-0.02581787109375,
-0.0692138671875,
0.0389404296875,
-0.020538330078125,
-0.01209259033203125,
-0.02886962890625,
0.031585693359375,
0.0230255126953125,
-0.0013637542724609375,
-0.02734375,
0.03216552734375,
0.0083465576171875,
0.0197906494140625,
-0.0643310546875,
0.01094818115234375,
0.08880615234375,
0.02203369140625,
0.0197601318359375,
-0.0301513671875,
0.006488800048828125,
-0.0180816650390625,
-0.0267486572265625,
0.02587890625,
0.0125885009765625,
-0.04351806640625,
-0.018310546875,
-0.0204925537109375,
-0.0007729530334472656,
0.021820068359375,
0.005680084228515625,
0.006748199462890625,
0.0160675048828125,
-0.03399658203125,
-0.019927978515625,
-0.051177978515625,
0.04193115234375,
0.0301055908203125,
-0.00821685791015625,
-0.0016803741455078125,
0.04833984375,
-0.0219268798828125,
-0.020233154296875,
-0.046539306640625,
0.02337646484375,
-0.004810333251953125,
-0.01110076904296875,
-0.02215576171875,
-0.044769287109375,
0.0208282470703125,
-0.0291748046875,
-0.007083892822265625,
0.030975341796875,
0.0185089111328125,
0.01197052001953125,
-0.038360595703125,
0.028533935546875,
0.0193634033203125,
-0.01274871826171875,
0.0438232421875,
-0.0025310516357421875,
0.0219573974609375,
0.0026702880859375,
0.01922607421875,
-0.00878143310546875,
-0.044342041015625,
0.0061798095703125,
-0.0036640167236328125,
-0.038330078125,
0.06036376953125,
0.005069732666015625,
0.03057861328125,
-0.00920867919921875,
0.0012111663818359375,
0.0301971435546875,
0.06365966796875,
-0.005329132080078125,
-0.004364013671875,
0.019287109375,
-0.03955078125,
-0.006008148193359375,
-0.0325927734375,
-0.00786590576171875,
0.00696563720703125,
0.0183258056640625,
0.035430908203125,
-0.014892578125,
0.01348876953125,
-0.059814453125,
0.028106689453125,
-0.016998291015625,
0.046600341796875,
-0.03948974609375,
0.01267242431640625,
0.0251617431640625,
0.00702667236328125,
-0.034515380859375,
-0.0002694129943847656,
0.027984619140625,
0.0224609375,
-0.00861358642578125,
-0.0081787109375,
-0.0104827880859375,
0.0167083740234375,
-0.0117950439453125,
-0.019622802734375,
-0.01029205322265625,
0.01515960693359375,
-0.0006132125854492188,
-0.02587890625,
-0.0261383056640625,
-0.0161285400390625,
-0.04058837890625,
-0.01080322265625,
-0.0174560546875,
0.073974609375,
0.021820068359375,
0.0019817352294921875,
-0.040557861328125,
-0.01953125,
-0.0474853515625,
-0.09930419921875,
-0.00960540771484375,
0.07159423828125,
0.01200103759765625,
0.004985809326171875,
-0.0213623046875,
0.0306243896484375,
0.01910400390625,
0.0156707763671875,
0.0254974365234375,
0.0139617919921875,
-0.0176239013671875,
0.038665771484375,
-0.01349639892578125,
0.031646728515625,
0.005641937255859375,
-0.0254669189453125,
0.013946533203125,
0.029296875,
0.0011138916015625,
0.007099151611328125,
0.021942138671875,
-0.01214599609375,
0.00843048095703125,
0.00275421142578125,
-0.0297698974609375,
0.0011234283447265625,
0.035125732421875,
0.014251708984375,
0.040374755859375,
0.039794921875,
-0.050079345703125,
0.00988006591796875,
0.033355712890625,
0.0631103515625,
-0.0268707275390625,
0.048736572265625,
0.05413818359375,
-0.043975830078125,
-0.044189453125,
0.007778167724609375,
-0.042449951171875,
0.0020236968994140625,
-0.031890869140625,
-0.01348876953125,
0.0130615234375,
-0.006717681884765625,
0.020050048828125,
-0.03338623046875,
0.0343017578125,
-0.01031494140625,
0.0283966064453125,
0.01654052734375,
0.0335693359375,
0.0134735107421875,
-0.002620697021484375,
0.0212249755859375,
0.0093231201171875,
-0.029052734375,
0.0022640228271484375,
-0.047332763671875,
0.035125732421875,
-0.039337158203125,
0.0697021484375,
0.079345703125,
-0.0174713134765625,
0.02032470703125,
0.0152587890625,
-0.01483154296875,
0.00042510032653808594,
0.02252197265625,
0.005542755126953125,
0.000029861927032470703,
-0.040069580078125,
0.0191802978515625,
0.01039886474609375,
0.0178375244140625,
-0.030487060546875,
-0.04046630859375,
-0.0253753662109375,
0.01181793212890625,
-0.06573486328125,
-0.016448974609375,
-0.00492095947265625,
-0.033416748046875,
-0.012908935546875,
0.0160369873046875,
-0.0230560302734375,
-0.009063720703125,
0.054168701171875,
0.0100860595703125,
0.01256561279296875,
0.01110076904296875,
-0.04364013671875,
0.0110321044921875,
-0.032806396484375,
0.0292816162109375,
-0.00806427001953125,
0.0074462890625,
0.007232666015625,
0.041290283203125,
0.0170135498046875,
-0.03277587890625,
0.028106689453125,
-0.0693359375,
-0.02435302734375,
0.0222320556640625,
0.027557373046875,
-0.0295562744140625,
-0.00548553466796875,
0.01506805419921875,
0.020416259765625,
0.006053924560546875,
-0.017852783203125,
-0.034210205078125,
0.0152435302734375,
0.0027484893798828125,
0.04058837890625,
-0.00995635986328125,
-0.0340576171875,
0.020721435546875,
0.0176849365234375,
-0.04888916015625,
-0.03997802734375,
0.01837158203125,
-0.0179443359375,
0.0158233642578125,
-0.004535675048828125,
-0.0142059326171875,
-0.0226898193359375,
0.067138671875,
0.056243896484375,
0.0115814208984375,
0.0019245147705078125,
0.03607177734375,
-0.029083251953125,
0.009674072265625,
0.06060791015625,
-0.0270233154296875,
-0.00331878662109375,
-0.01898193359375,
0.017120361328125,
-0.01235198974609375,
0.00661468505859375,
0.00785064697265625,
0.006420135498046875,
-0.0063323974609375,
-0.00955963134765625,
0.043914794921875,
0.0066375732421875,
0.04339599609375,
-0.01995849609375,
-0.0242919921875,
-0.014312744140625,
0.072509765625,
-0.019744873046875,
-0.01812744140625,
-0.025115966796875,
-0.0036602020263671875,
-0.002532958984375,
-0.0309906005859375,
-0.0192413330078125,
0.00846099853515625,
-0.10968017578125,
-0.0005321502685546875,
-0.00498199462890625,
-0.04052734375,
-0.032196044921875,
0.05218505859375,
-0.07373046875,
-0.033355712890625,
0.044189453125,
0.0010862350463867188,
-0.00980377197265625,
0.052886962890625,
-0.03607177734375,
0.03143310546875,
-0.0528564453125,
0.00417327880859375,
-0.02423095703125,
-0.007659912109375,
-0.01122283935546875,
0.02716064453125,
0.020263671875,
0.005641937255859375,
-0.008148193359375,
0.01953125,
0.03338623046875,
-0.0150299072265625,
-0.01397705078125,
-0.038360595703125,
-0.0256805419921875,
0.0120697021484375,
-0.01435089111328125,
-0.020965576171875,
0.006969451904296875,
-0.0223236083984375,
-0.042572021484375,
-0.00386810302734375,
-0.040618896484375,
0.017822265625,
-0.0214385986328125,
-0.023284912109375,
-0.036956787109375,
-0.038116455078125,
-0.0175323486328125,
0.05657958984375,
0.0198516845703125,
-0.01105499267578125,
-0.08050537109375,
-0.077392578125,
0.0256195068359375,
-0.009857177734375,
-0.0229949951171875,
0.0100860595703125,
0.035736083984375,
0.01247406005859375,
-0.01331329345703125,
0.00201416015625,
0.0260162353515625,
0.04766845703125,
-0.01349639892578125,
0.0390625,
0.04473876953125,
-0.0094757080078125,
0.00937652587890625,
0.00173187255859375,
-0.0007610321044921875,
-0.05029296875,
0.0760498046875,
-0.00860595703125,
0.0078277587890625,
0.0159454345703125,
-0.03656005859375,
0.04461669921875,
-0.01335906982421875,
0.00873565673828125,
-0.0276031494140625,
0.04217529296875,
0.037017822265625,
-0.0176544189453125,
0.0272369384765625,
-0.01276397705078125,
0.0026683807373046875,
0.0010232925415039062,
-0.051239013671875,
0.06353759765625,
0.01495361328125,
0.005817413330078125,
-0.006526947021484375,
-0.00804901123046875,
0.0092620849609375,
-0.0352783203125,
-0.01287078857421875,
-0.0401611328125,
0.01432037353515625,
-0.00281524658203125,
-0.0226898193359375,
-0.007808685302734375,
0.00970458984375,
-0.01094818115234375,
-0.02587890625,
-0.048095703125,
-0.045318603515625,
0.0163421630859375,
0.032623291015625,
0.026214599609375,
0.0443115234375,
0.035369873046875,
0.01059722900390625,
0.007328033447265625,
-0.00977325439453125,
0.03631591796875,
-0.0015239715576171875,
-0.03753662109375,
0.0161895751953125,
-0.01062774658203125,
-0.0013513565063476562,
0.03045654296875,
0.022247314453125,
-0.0197906494140625,
0.037322998046875,
-0.0202178955078125,
0.03814697265625,
0.040130615234375,
0.0131378173828125,
-0.0022335052490234375,
0.0189056396484375,
-0.0289154052734375,
0.0248870849609375,
-0.004131317138671875,
-0.03411865234375,
0.00986480712890625,
0.043853759765625,
0.037139892578125,
0.0308380126953125,
-0.02459716796875,
-0.0120086669921875,
-0.037841796875,
-0.0196685791015625,
0.061309814453125,
0.025115966796875,
-0.053009033203125,
-0.036956787109375,
0.0084075927734375,
0.015716552734375,
-0.020355224609375,
-0.0010290145874023438,
0.00650787353515625,
-0.047271728515625,
-0.0110626220703125,
-0.005893707275390625,
-0.01702880859375,
-0.052978515625,
-0.0321044921875,
0.006618499755859375,
-0.0098114013671875,
-0.0031909942626953125,
-0.02239990234375,
-0.0198211669921875,
-0.0147857666015625,
0.00882720947265625,
0.04046630859375,
-0.0233154296875,
0.044525146484375,
-0.0280609130859375,
-0.017730712890625,
-0.0114898681640625,
0.006809234619140625,
0.060821533203125,
0.0364990234375,
-0.087158203125,
0.0118408203125,
-0.036224365234375,
0.02001953125,
-0.07965087890625,
-0.08221435546875,
-0.0364990234375,
0.0164642333984375,
0.0000019073486328125,
-0.0035572052001953125,
0.0210113525390625,
0.01442718505859375,
-0.00884246826171875,
0.0299530029296875,
0.0175018310546875,
0.0168914794921875,
-0.021484375,
0.076416015625,
-0.016204833984375,
0.07415771484375,
0.005748748779296875,
0.046295166015625,
0.0023097991943359375,
-0.0229339599609375,
0.0158843994140625,
0.005306243896484375,
-0.01419830322265625,
0.0008854866027832031,
-0.0262603759765625,
-0.03070068359375,
0.04632568359375,
-0.022003173828125,
-0.01342010498046875,
-0.0035648345947265625,
0.004245758056640625,
-0.045654296875,
0.05609130859375,
-0.0190277099609375,
0.0248260498046875,
-0.042083740234375,
-0.005374908447265625,
0.041473388671875,
-0.0029449462890625,
0.016510009765625,
-0.01934814453125,
-0.008392333984375,
-0.01224517822265625,
-0.0012102127075195312,
0.0159454345703125,
0.007114410400390625,
0.078369140625,
0.01105499267578125,
0.07830810546875,
0.039794921875,
0.043426513671875,
0.06463623046875,
-0.01325225830078125,
0.0004048347473144531,
0.0010204315185546875,
0.047821044921875,
0.008209228515625,
0.007755279541015625,
0.0606689453125,
-0.0145416259765625,
0.0241241455078125,
0.094970703125,
0.05029296875,
-0.126953125,
0.0013437271118164062,
-0.00511932373046875,
-0.0003445148468017578,
0.057403564453125,
-0.0083160400390625,
0.019073486328125,
-0.00555419921875,
-0.0172882080078125,
0.0165557861328125,
-0.041961669921875,
-0.0289764404296875,
-0.0005064010620117188,
0.005977630615234375,
0.0039825439453125,
0.012359619140625,
-0.0239105224609375,
0.00954437255859375,
-0.06414794921875,
-0.01262664794921875,
-0.0179290771484375,
-0.043731689453125,
-0.00803375244140625,
0.0125885009765625,
-0.007358551025390625,
-0.073486328125,
0.0093536376953125,
-0.0191192626953125,
0.0020084381103515625,
0.0018968582153320312,
0.0025634765625,
-0.0124664306640625,
0.04168701171875,
-0.0369873046875,
0.006992340087890625,
0.01593017578125,
-0.063720703125,
-0.0224456787109375,
-0.037322998046875,
-0.0264129638671875,
0.023712158203125,
-0.0272064208984375,
0.0222625732421875,
-0.0081329345703125,
-0.0236663818359375,
0.006946563720703125,
0.0051116943359375,
0.06866455078125,
-0.03466796875,
-0.03204345703125,
0.031982421875,
-0.036346435546875,
-0.0236053466796875,
0.016326904296875,
-0.0254364013671875,
-0.03424072265625,
-0.0408935546875,
-0.01027679443359375,
-0.08758544921875,
0.01580810546875,
0.0201568603515625,
-0.03668212890625,
0.04339599609375,
0.0269012451171875,
0.006221771240234375,
0.00687408447265625,
0.0183868408203125,
-0.02178955078125,
0.0184783935546875,
-0.02252197265625,
0.04132080078125,
0.0016536712646484375,
0.01454925537109375,
-0.00702667236328125,
-0.0009937286376953125,
0.007049560546875,
0.0097198486328125,
0.025421142578125,
0.01358795166015625,
-0.02032470703125,
-0.0129852294921875,
0.011932373046875,
0.0211334228515625,
-0.00701904296875,
0.0167083740234375,
-0.00820159912109375,
0.018707275390625,
0.0294189453125,
-0.02349853515625,
0.03692626953125,
-0.01739501953125,
-0.031707763671875,
0.0105133056640625,
0.0222015380859375,
0.0159454345703125,
0.0191802978515625,
0.00396728515625,
-0.034149169921875,
0.007450103759765625,
0.0265045166015625,
-0.059844970703125,
0.0251617431640625,
0.008209228515625,
0.04718017578125,
-0.043548583984375,
-0.04046630859375,
-0.01300811767578125,
0.04412841796875,
0.04779052734375,
-0.002471923828125,
0.0262451171875,
0.0133056640625,
0.026641845703125,
-0.027679443359375,
-0.005641937255859375,
0.0018415451049804688,
-0.01160430908203125,
0.033782958984375,
0.004741668701171875,
0.018890380859375,
-0.043975830078125,
0.020050048828125,
0.0114288330078125,
0.05242919921875,
-0.048858642578125,
-0.03076171875,
0.0219573974609375,
0.0106201171875,
-0.010894775390625,
-0.021697998046875,
-0.0227508544921875,
-0.03253173828125,
0.0280609130859375,
-0.035400390625,
0.01386260986328125,
0.0215911865234375,
0.0287933349609375,
-0.0017366409301757812,
-0.006496429443359375,
-0.03704833984375,
-0.0007681846618652344,
-0.0401611328125,
-0.00467681884765625,
0.017120361328125,
0.046722412109375,
0.0372314453125,
0.0080108642578125,
0.02117919921875,
-0.0193634033203125,
-0.0289306640625,
0.03338623046875,
-0.06329345703125,
0.043792724609375,
-0.08367919921875,
-0.0679931640625,
-0.031463623046875,
0.06298828125,
0.0144500732421875,
-0.01007080078125,
0.01549530029296875,
0.032318115234375,
0.0178070068359375,
0.005313873291015625,
0.019073486328125,
-0.00870513916015625,
-0.00096893310546875,
-0.051666259765625,
0.023193359375,
0.010467529296875,
0.005588531494140625,
0.021636962890625,
-0.0282135009765625,
0.047332763671875,
-0.0149383544921875,
0.01336669921875,
-0.002979278564453125,
-0.036285400390625,
0.06085205078125,
-0.00534820556640625,
0.06317138671875,
0.0047149658203125,
-0.03387451171875,
-0.00135040283203125,
-0.023468017578125,
-0.06591796875,
-0.006511688232421875,
0.0210418701171875,
-0.039306640625,
0.0408935546875,
0.018707275390625,
0.01503753662109375,
-0.014251708984375,
-0.00844573974609375,
-0.01103973388671875,
-0.01206207275390625,
0.04144287109375,
0.001129150390625,
-0.023468017578125,
-0.006481170654296875,
-0.01221466064453125,
0.029022216796875,
-0.0076141357421875,
0.08856201171875,
-0.0308990478515625,
0.0130462646484375,
-0.00836944580078125,
0.0206756591796875,
-0.00982666015625,
-0.00914764404296875,
0.0323486328125,
0.013763427734375,
0.006801605224609375,
-0.0209808349609375,
0.0016222000122070312,
0.017547607421875,
0.049560546875,
-0.03302001953125,
-0.01806640625,
0.0233917236328125,
0.0115509033203125,
-0.012054443359375,
0.023040771484375,
-0.01409149169921875,
-0.02850341796875,
-0.0018100738525390625,
-0.00362396240234375,
0.02667236328125,
0.048004150390625,
0.0080108642578125,
0.0372314453125,
-0.0017957687377929688,
-0.0197601318359375,
0.031585693359375,
-0.0258941650390625,
0.039886474609375,
0.03277587890625,
-0.020355224609375,
0.0224151611328125,
0.05712890625,
0.00196075439453125,
0.058197021484375,
0.024566650390625,
0.01346588134765625,
0.06280517578125,
-0.01500701904296875,
-0.0190887451171875,
-0.026763916015625,
0.016998291015625,
-0.006519317626953125,
-0.01251983642578125,
-0.0210418701171875,
-0.001220703125,
-0.021697998046875,
0.0182952880859375,
-0.0091400146484375,
0.0106201171875,
-0.030548095703125,
0.01172637939453125,
-0.0168304443359375,
-0.0438232421875,
-0.0782470703125,
-0.0008525848388671875,
0.040252685546875,
0.035003662109375,
-0.080078125,
0.06951904296875,
-0.0135040283203125,
-0.032684326171875,
0.03533935546875,
0.036102294921875,
-0.0215911865234375,
0.035247802734375,
-0.025787353515625,
-0.0201263427734375,
-0.0275726318359375,
0.036529541015625,
-0.0270233154296875,
0.00914764404296875,
0.0115966796875,
-0.0189361572265625,
-0.0295257568359375,
0.0016069412231445312,
-0.0026149749755859375,
0.0577392578125,
0.054229736328125,
-0.0364990234375,
-0.0232696533203125,
0.029754638671875,
0.0178985595703125,
-0.057891845703125,
-0.024993896484375,
-0.0479736328125,
0.0157470703125,
0.007171630859375,
-0.015228271484375,
-0.0007719993591308594,
-0.0400390625,
-0.11163330078125,
0.09259033203125,
-0.0278472900390625,
-0.03704833984375,
0.018341064453125,
-0.018768310546875,
-0.0019931793212890625,
0.005596160888671875,
0.005481719970703125,
-0.0174560546875,
-0.0323486328125,
-0.005481719970703125,
0.0009236335754394531,
0.045440673828125,
-0.0057830810546875,
0.003604888916015625,
0.0027179718017578125,
0.0288238525390625,
0.02838134765625,
-0.01380157470703125,
0.01380157470703125,
-0.006832122802734375,
0.038482666015625,
0.0262908935546875,
-0.0322265625,
0.0171966552734375,
-0.017852783203125,
-0.0094451904296875,
-0.0028553009033203125,
-0.035125732421875,
0.00537872314453125,
-0.01678466796875,
0.03668212890625,
0.0220794677734375,
0.002788543701171875,
-0.0197906494140625,
-0.044158935546875,
-0.041046142578125,
-0.01983642578125,
-0.0219879150390625,
0.022247314453125,
-0.09478759765625,
-0.0063018798828125,
0.0305023193359375,
-0.033477783203125,
-0.0209808349609375,
0.009735107421875,
-0.0621337890625,
-0.006999969482421875,
0.0001842975616455078,
0.00679779052734375,
-0.03662109375,
0.0909423828125,
-0.006084442138671875,
-0.03179931640625,
-0.0083465576171875,
-0.0150604248046875,
-0.038970947265625,
-0.00911712646484375,
-0.0294647216796875,
-0.034759521484375,
-0.04522705078125,
-0.0185394287109375,
0.04888916015625,
-0.0281524658203125,
0.039520263671875,
-0.058074951171875,
-0.0228424072265625,
-0.0221710205078125,
0.003139495849609375,
-0.0156097412109375,
0.003925323486328125,
0.026580810546875,
-0.004009246826171875,
-0.00519561767578125,
0.061676025390625,
-0.0236968994140625,
0.10211181640625,
-0.0078277587890625,
0.025604248046875,
0.00777435302734375,
-0.006298065185546875,
0.051605224609375,
-0.016265869140625,
-0.009796142578125,
0.0239715576171875,
-0.054595947265625,
-0.06427001953125,
0.0220794677734375,
0.04351806640625,
-0.00389862060546875,
0.022491455078125
] |
973cc7582872bd6593bdf9f11ac5c6c12b926999
|
Wordpress Stackexchange
Q: Custom Nav Menu items default to 'menu-item-type' => 'custom'. How to make a "page" menu item? I'm using the code below to create custom menu items on the fly. Its working great, except all menus are created as "Custom". In the code below, setting the menu-item-type to 'page' appears to have no effect.
foreach($thePages as $page){
wp_update_nav_menu_item($menu->term_id, 0, array(
'menu-item-title' => $page->post_title,
'menu-item-type' => 'page',
'menu-item-status' => 'publish')
);
}
wp-includes/nav-menu.php shows that the value is hard coded to "Custom". However, if I manually add a page to the menu, using the WP Menus manager, it lists it as "Page", not "Custom". What can I do to set the menu type to "Page"?
A: Strange it maybe, `post_type' is the keyword to use:
'menu-item-object' => 'page',
'menu-item-type' => 'post_type',
'menu-item-object-id' => $post_id
This will make a menu item just like you manually created one.
|
Q: Custom Nav Menu items default to 'menu-item-type' => 'custom'. How to make a "page" menu item? I'm using the code below to create custom menu items on the fly. Its working great, except all menus are created as "Custom". In the code below, setting the menu-item-type to 'page' appears to have no effect.
foreach($thePages as $page){
wp_update_nav_menu_item($menu->term_id, 0, array(
'menu-item-title' => $page->post_title,
'menu-item-type' => 'page',
'menu-item-status' => 'publish')
);
}
wp-includes/nav-menu.php shows that the value is hard coded to "Custom". However, if I manually add a page to the menu, using the WP Menus manager, it lists it as "Page", not "Custom". What can I do to set the menu type to "Page"?
A: Strange it maybe, `post_type' is the keyword to use:
'menu-item-object' => 'page',
'menu-item-type' => 'post_type',
'menu-item-object-id' => $post_id
This will make a menu item just like you manually created one.
A: There's a filter:
function wpse15368_update_menu_item_type( $args )
{
return $args['menu-item-type'] = 'page';
}
add_action( 'wp_update_nav_menu_item', 'wpse15368_update_menu_item_type' );
|
wordpress
|
{
"language": "en",
"length": 163,
"provenance": "stackexchange_00019.jsonl.gz:408810",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15351"
}
|
[
0.046905517578125,
-0.008636474609375,
0.055633544921875,
0.0187225341796875,
-0.00311279296875,
-0.0161590576171875,
0.07666015625,
-0.060455322265625,
-0.033172607421875,
-0.025909423828125,
-0.01349639892578125,
0.00272369384765625,
-0.058624267578125,
-0.0435791015625,
0.0273284912109375,
-0.07208251953125,
0.0189056396484375,
0.01076507568359375,
0.041839599609375,
-0.0262451171875,
0.027374267578125,
-0.0100860595703125,
0.044525146484375,
0.035125732421875,
0.0279388427734375,
-0.033355712890625,
-0.0203094482421875,
0.00464630126953125,
0.019317626953125,
0.00479888916015625,
0.0224609375,
0.0021724700927734375,
0.01081085205078125,
0.0081024169921875,
0.00366973876953125,
-0.000606536865234375,
0.004199981689453125,
0.00421142578125,
0.0181427001953125,
-0.0038776397705078125,
0.040435791015625,
-0.02630615234375,
0.01140594482421875,
-0.0270843505859375,
-0.005733489990234375,
-0.017181396484375,
0.0282745361328125,
-0.0278167724609375,
0.01343536376953125,
-0.041046142578125,
0.005039215087890625,
0.0161895751953125,
0.021728515625,
-0.016876220703125,
-0.0248260498046875,
-0.01605224609375,
0.025299072265625,
-0.0711669921875,
0.02001953125,
0.01145172119140625,
0.0029697418212890625,
-0.005176544189453125,
0.0227813720703125,
-0.01494598388671875,
0.0120086669921875,
-0.0003635883331298828,
0.03179931640625,
0.00907135009765625,
-0.06591796875,
-0.0011415481567382812,
0.040863037109375,
-0.0273895263671875,
-0.007343292236328125,
-0.00923919677734375,
-0.0149688720703125,
-0.0294342041015625,
0.0205841064453125,
-0.028594970703125,
-0.005191802978515625,
0.0255126953125,
0.023468017578125,
0.002300262451171875,
0.0015726089477539062,
-0.0158538818359375,
0.001556396484375,
0.006336212158203125,
-0.017059326171875,
-0.014373779296875,
-0.0032787322998046875,
-0.0191192626953125,
-0.009979248046875,
0.0083465576171875,
0.0049896240234375,
-0.0019292831420898438,
-0.0258026123046875,
-0.0100250244140625,
-0.0013017654418945312,
0.0704345703125,
-0.004543304443359375,
0.0771484375,
-0.029388427734375,
-0.02764892578125,
0.1024169921875,
-0.1002197265625,
0.007350921630859375,
0.01910400390625,
0.0034542083740234375,
0.003093719482421875,
0.052978515625,
0.0268707275390625,
-0.0014257431030273438,
0.0382080078125,
-0.0224761962890625,
-0.00838470458984375,
-0.020416259765625,
0.005397796630859375,
-0.04412841796875,
-0.00469970703125,
-0.0015134811401367188,
-0.0192413330078125,
0.00397491455078125,
0.01342010498046875,
0.0301055908203125,
0.0233612060546875,
0.0011339187622070312,
0.03656005859375,
-0.00255584716796875,
-0.0732421875,
-0.039764404296875,
0.0258331298828125,
-0.04376220703125,
-0.006549835205078125,
0.10626220703125,
0.10028076171875,
0.0528564453125,
-0.031707763671875,
0.0037860870361328125,
-0.0540771484375,
-0.0038299560546875,
0.02716064453125,
-0.01422882080078125,
-0.0255279541015625,
0.0248870849609375,
-0.0246734619140625,
-0.01282501220703125,
0.017852783203125,
0.00286102294921875,
0.01190185546875,
-0.0129241943359375,
-0.032135009765625,
0.006626129150390625,
-0.023529052734375,
0.032623291015625,
0.00031757354736328125,
-0.026702880859375,
-0.027191162109375,
-0.0020904541015625,
-0.0194549560546875,
0.008392333984375,
-0.0307769775390625,
-0.0216827392578125,
-0.0328369140625,
-0.0135040283203125,
-0.057647705078125,
-0.051788330078125,
0.046630859375,
-0.0170440673828125,
0.0024051666259765625,
0.0204315185546875,
0.00791168212890625,
0.01221466064453125,
-0.0031909942626953125,
-0.00641632080078125,
0.024169921875,
0.007843017578125,
0.014434814453125,
0.026519775390625,
-0.017425537109375,
0.0187225341796875,
0.023468017578125,
-0.03076171875,
-0.038238525390625,
0.01305389404296875,
-0.02880859375,
-0.0706787109375,
0.0509033203125,
0.0003910064697265625,
0.0704345703125,
0.03961181640625,
0.01485443115234375,
0.02557373046875,
-0.006061553955078125,
-0.046966552734375,
-0.0126190185546875,
0.00907135009765625,
-0.009185791015625,
-0.0032978057861328125,
-0.011962890625,
-0.00243377685546875,
0.00817108154296875,
-0.034881591796875,
-0.019012451171875,
-0.0003237724304199219,
0.02471923828125,
-0.03106689453125,
-0.015655517578125,
-0.01629638671875,
0.032806396484375,
0.0301666259765625,
-0.0171356201171875,
0.003810882568359375,
-0.018096923828125,
0.020111083984375,
-0.06903076171875,
-0.0667724609375,
0.0216217041015625,
-0.000576019287109375,
-0.006511688232421875,
-0.0286102294921875,
-0.0135650634765625,
-0.0150909423828125,
-0.0153656005859375,
-0.023834228515625,
0.0467529296875,
0.050384521484375,
-0.02056884765625,
-0.0137939453125,
-0.0193939208984375,
0.030517578125,
-0.0024013519287109375,
-0.004024505615234375,
0.035125732421875,
0.051177978515625,
0.00547027587890625,
-0.037750244140625,
-0.00469207763671875,
0.005157470703125,
-0.0870361328125,
-0.0015287399291992188,
0.06329345703125,
0.0252227783203125,
0.0177459716796875,
-0.013336181640625,
0.002197265625,
0.0092620849609375,
-0.0176544189453125,
0.0149993896484375,
-0.0087432861328125,
-0.007354736328125,
0.01050567626953125,
0.037506103515625,
0.009368896484375,
0.0201568603515625,
0.002777099609375,
0.0280609130859375,
0.0158233642578125,
0.0036334991455078125,
-0.01251983642578125,
0.01244354248046875,
-0.01183319091796875,
-0.001995086669921875,
0.023895263671875,
0.00012671947479248047,
0.0181121826171875,
0.03472900390625,
0.0202484130859375,
0.037567138671875,
0.0252227783203125,
-0.03515625,
-0.0017690658569335938,
0.017425537109375,
0.00832366943359375,
-0.0020160675048828125,
-0.0087127685546875,
0.0164794921875,
-0.022552490234375,
-0.0250396728515625,
0.007251739501953125,
0.0172119140625,
-0.0184326171875,
-0.015899658203125,
0.0316162109375,
0.00036907196044921875,
-0.01512908935546875,
-0.00836944580078125,
-0.05279541015625,
-0.00004100799560546875,
0.0041046142578125,
-0.016998291015625,
-0.011016845703125,
0.0189361572265625,
-0.00988006591796875,
-0.039459228515625,
0.0281219482421875,
-0.00792694091796875,
-0.0233306884765625,
0.0806884765625,
-0.0157470703125,
0.0275115966796875,
-0.0251007080078125,
0.047607421875,
0.04559326171875,
-0.03668212890625,
0.0268096923828125,
0.00621795654296875,
0.00989532470703125,
0.0033512115478515625,
0.040985107421875,
0.0301361083984375,
-0.02520751953125,
0.006465911865234375,
0.030548095703125,
0.01515960693359375,
0.01641845703125,
-0.00618743896484375,
-0.02459716796875,
-0.02752685546875,
0.005889892578125,
-0.0682373046875,
-0.03515625,
0.0888671875,
-0.0301055908203125,
0.0241546630859375,
-0.01520538330078125,
-0.01360321044921875,
-0.044830322265625,
0.0166778564453125,
-0.006000518798828125,
-0.010833740234375,
-0.0221710205078125,
-0.0250244140625,
-0.0287628173828125,
-0.0474853515625,
-0.01158905029296875,
-0.011871337890625,
-0.0015087127685546875,
0.0018587112426757812,
0.054351806640625,
0.005828857421875,
-0.0452880859375,
0.0167388916015625,
0.0177001953125,
-0.01181793212890625,
0.01202392578125,
0.035858154296875,
-0.0343017578125,
0.026153564453125,
0.002826690673828125,
0.037384033203125,
0.0377197265625,
-0.02789306640625,
-0.0241546630859375,
-0.0401611328125,
0.032135009765625,
0.00897216796875,
0.0117645263671875,
0.044830322265625,
0.0518798828125,
0.040252685546875,
-0.01050567626953125,
-0.0626220703125,
-0.00417327880859375,
-0.052764892578125,
0.03546142578125,
0.01296234130859375,
0.01357269287109375,
-0.01401519775390625,
0.06298828125,
-0.0244140625,
0.0018157958984375,
0.0330810546875,
-0.018218994140625,
-0.0161895751953125,
-0.0179290771484375,
-0.041595458984375,
-0.0072784423828125,
0.08404541015625,
0.0033721923828125,
0.00934600830078125,
0.0478515625,
0.0010929107666015625,
0.0180816650390625,
-0.0310821533203125,
-0.0176544189453125,
-0.0836181640625,
0.041656494140625,
-0.03228759765625,
0.021270751953125,
-0.038848876953125,
-0.019256591796875,
0.018035888671875,
0.09674072265625,
-0.03558349609375,
-0.02154541015625,
-0.0227813720703125,
0.012786865234375,
0.01137542724609375,
-0.0400390625,
0.011016845703125,
-0.0399169921875,
-0.08416748046875,
0.052734375,
0.01535797119140625,
-0.0041961669921875,
-0.0343017578125,
0.040191650390625,
-0.061981201171875,
-0.0321044921875,
0.051788330078125,
-0.04443359375,
0.005527496337890625,
0.061676025390625,
-0.00800323486328125,
-0.010986328125,
-0.035736083984375,
-0.00702667236328125,
-0.077392578125,
-0.0113983154296875,
-0.0294952392578125,
0.0491943359375,
0.02294921875,
-0.0224609375,
0.01270294189453125,
0.05450439453125,
0.05682373046875,
0.00545501708984375,
0.0260772705078125,
-0.0188751220703125,
-0.00311279296875,
0.002277374267578125,
0.0301513671875,
-0.042083740234375,
0.010528564453125,
0.00978851318359375,
-0.04168701171875,
0.0265350341796875,
-0.018035888671875,
0.00981903076171875,
0.02325439453125,
-0.04736328125,
-0.05853271484375,
-0.043426513671875,
-0.0299835205078125,
-0.0018224716186523438,
0.0034618377685546875,
-0.0233154296875,
-0.028167724609375,
-0.070068359375,
0.0211334228515625,
-0.0382080078125,
-0.00873565673828125,
0.021026611328125,
0.0606689453125,
0.0164947509765625,
-0.010467529296875,
-0.01053619384765625,
0.0038089752197265625,
0.0268402099609375,
-0.00809478759765625,
0.042449951171875,
0.0114288330078125,
-0.0018129348754882812,
0.02008056640625,
-0.001041412353515625,
-0.01222991943359375,
0.00655364990234375,
0.055389404296875,
0.01535797119140625,
-0.01552581787109375,
0.01264190673828125,
-0.00762939453125,
-0.014556884765625,
0.0287017822265625,
-0.0092926025390625,
-0.038665771484375,
-0.0169677734375,
0.0509033203125,
-0.00261688232421875,
0.0234222412109375,
-0.04058837890625,
0.00536346435546875,
-0.0019464492797851562,
0.041717529296875,
0.026641845703125,
0.0220947265625,
-0.0002002716064453125,
0.00782012939453125,
0.000020742416381835938,
0.017852783203125,
-0.0032100677490234375,
0.00691986083984375,
-0.0006031990051269531,
0.0340576171875,
0.000008225440979003906,
0.0263824462890625,
-0.005062103271484375,
0.013092041015625,
0.0095977783203125,
0.0194549560546875,
0.0153045654296875,
-0.056396484375,
0.01325225830078125,
-0.001422882080078125,
-0.0211639404296875,
0.01102447509765625,
0.031097412109375,
0.037384033203125,
0.0012645721435546875,
0.0012454986572265625,
-0.01010894775390625,
0.0153656005859375,
-0.0265960693359375,
0.0175933837890625,
0.027069091796875,
-0.01898193359375,
-0.006320953369140625,
0.045989990234375,
0.02911376953125,
-0.00635528564453125,
-0.0240020751953125,
0.0236663818359375,
0.0183258056640625,
0.0384521484375,
0.0027103424072265625,
0.0175018310546875,
-0.02593994140625,
0.036041259765625,
0.00162506103515625,
-0.00891876220703125,
-0.01422882080078125,
0.0186004638671875,
0.021240234375,
-0.0242767333984375,
-0.009765625,
0.01001739501953125,
-0.014892578125,
-0.01201629638671875,
0.01169586181640625,
-0.07080078125,
-0.0780029296875,
-0.032501220703125,
0.00290679931640625,
0.039703369140625,
-0.041595458984375,
-0.024322509765625,
0.042694091796875,
-0.00963592529296875,
0.0310516357421875,
-0.022308349609375,
-0.026397705078125,
0.0237884521484375,
0.03228759765625,
-0.022003173828125,
-0.01116943359375,
0.0369873046875,
-0.10186767578125,
-0.015045166015625,
-0.0158843994140625,
-0.0077362060546875,
0.015655517578125,
-0.05047607421875,
0.017791748046875,
-0.00269317626953125,
0.00746917724609375,
-0.0341796875,
0.0269317626953125,
0.01369476318359375,
0.0195159912109375,
-0.002445220947265625,
0.0009174346923828125,
-0.01849365234375,
-0.00701904296875,
-0.0009331703186035156,
-0.0421142578125,
-0.03167724609375,
-0.0242462158203125,
0.00882720947265625,
-0.0021209716796875,
0.00991058349609375,
0.0029850006103515625,
-0.03289794921875,
0.0235748291015625,
0.0196533203125,
0.0003120899200439453,
-0.0233306884765625,
0.06243896484375,
0.00013554096221923828,
0.032562255859375,
-0.01007843017578125,
0.009124755859375,
-0.01168060302734375,
-0.0008592605590820312,
-0.0038509368896484375,
-0.042327880859375,
-0.0021820068359375,
-0.009979248046875,
-0.0386962890625,
0.0275421142578125,
0.057830810546875,
0.0125579833984375,
0.0543212890625,
-0.0312042236328125,
0.0016069412231445312,
-0.0171051025390625,
-0.004459381103515625,
-0.053955078125,
0.0136260986328125,
0.03662109375,
-0.03411865234375,
0.002674102783203125,
0.038848876953125,
0.01049041748046875,
-0.003948211669921875,
-0.0200347900390625,
0.010101318359375,
0.0109405517578125,
-0.09033203125,
0.07525634765625,
0.06524658203125,
0.003875732421875,
0.0270843505859375,
-0.0181121826171875,
-0.016693115234375,
0.014984130859375,
-0.01068878173828125,
-0.00872039794921875,
0.037933349609375,
0.04644775390625,
-0.01496124267578125,
-0.00864410400390625,
0.017547607421875,
-0.0210723876953125,
0.018463134765625,
0.09161376953125,
0.07427978515625,
-0.12176513671875,
0.01068115234375,
0.01318359375,
0.0115509033203125,
0.048828125,
0.006984710693359375,
-0.00896453857421875,
-0.007747650146484375,
-0.0091705322265625,
-0.06695556640625,
-0.039276123046875,
-0.0209197998046875,
-0.01345062255859375,
-0.01131439208984375,
-0.0004730224609375,
0.044342041015625,
0.011810302734375,
0.0302276611328125,
-0.035369873046875,
-0.039764404296875,
-0.000965118408203125,
-0.0234375,
0.01409912109375,
-0.0135498046875,
-0.0032138824462890625,
-0.0238037109375,
0.041961669921875,
-0.034698486328125,
0.031829833984375,
0.060211181640625,
0.0122528076171875,
-0.00574493408203125,
0.0311126708984375,
-0.024627685546875,
0.035491943359375,
-0.0044403076171875,
-0.033966064453125,
-0.0455322265625,
-0.0022983551025390625,
0.018707275390625,
-0.01012420654296875,
-0.00838470458984375,
0.010894775390625,
-0.036102294921875,
-0.031707763671875,
-0.0164947509765625,
-0.00684356689453125,
0.11956787109375,
-0.058563232421875,
-0.022064208984375,
0.0024261474609375,
-0.00331878662109375,
-0.009765625,
-0.011474609375,
0.01505279541015625,
-0.044219970703125,
0.0004436969757080078,
-0.003932952880859375,
-0.00576019287109375,
-0.00926971435546875,
-0.00754547119140625,
-0.0121002197265625,
0.07525634765625,
-0.03863525390625,
-0.0224151611328125,
0.02264404296875,
0.036041259765625,
-0.00330352783203125,
0.043121337890625,
-0.031951904296875,
0.0308837890625,
-0.006916046142578125,
0.0721435546875,
-0.01800537109375,
-0.0101776123046875,
0.0305633544921875,
0.0400390625,
0.0012540817260742188,
0.00959014892578125,
-0.03692626953125,
0.034149169921875,
0.07672119140625,
0.03668212890625,
0.036712646484375,
0.0350341796875,
-0.0338134765625,
-0.03179931640625,
0.018310546875,
-0.0137786865234375,
0.0205230712890625,
-0.0084075927734375,
-0.032501220703125,
-0.0262603759765625,
0.0208587646484375,
0.0273895263671875,
-0.005462646484375,
-0.002132415771484375,
-0.024566650390625,
-0.0016222000122070312,
0.004886627197265625,
0.0302734375,
0.0036983489990234375,
0.0242767333984375,
0.0274505615234375,
-0.0279083251953125,
-0.034271240234375,
-0.0300140380859375,
0.0267486572265625,
0.0146484375,
-0.01335906982421875,
0.0010576248168945312,
0.01134490966796875,
-0.017669677734375,
-0.000033915042877197266,
0.002864837646484375,
0.042816162109375,
-0.0226287841796875,
0.040191650390625,
0.01090240478515625,
0.00826263427734375,
-0.070556640625,
-0.055816650390625,
0.049652099609375,
0.07244873046875,
-0.027557373046875,
-0.0374755859375,
0.007762908935546875,
0.0140838623046875,
0.0277099609375,
0.00994110107421875,
0.06024169921875,
0.0125885009765625,
0.0229034423828125,
-0.016632080078125,
0.0194549560546875,
0.0273590087890625,
0.0161285400390625,
-0.00399017333984375,
0.033172607421875,
-0.05303955078125,
0.021759033203125,
-0.06134033203125,
0.03314208984375,
0.0408935546875,
0.04998779296875,
0.01493072509765625,
0.049285888671875,
0.01824951171875,
-0.01837158203125,
0.01297760009765625,
0.039581298828125,
-0.00567626953125,
0.0007519721984863281,
-0.0223236083984375,
-0.056610107421875,
0.0038356781005859375,
0.028656005859375,
0.00662994384765625,
0.0133514404296875,
0.047119140625,
0.0158233642578125,
-0.0355224609375,
-0.01055908203125,
0.02398681640625,
-0.0289306640625,
-0.07708740234375,
-0.0001971721649169922,
-0.01265716552734375,
0.03497314453125,
0.00858306884765625,
0.030792236328125,
0.046722412109375,
0.0221099853515625,
0.00447845458984375,
0.031402587890625,
-0.0013933181762695312,
-0.0240936279296875,
0.042388916015625,
-0.012603759765625,
0.09417724609375,
0.02288818359375,
-0.1153564453125,
-0.046112060546875,
-0.0237274169921875,
-0.03326416015625,
0.061614990234375,
0.05908203125,
-0.0109405517578125,
0.00064849853515625,
0.00304412841796875,
0.02874755859375,
0.0006885528564453125,
-0.0213165283203125,
0.01361846923828125,
0.038726806640625,
0.0433349609375,
0.04730224609375,
-0.060516357421875,
-0.0175628662109375,
-0.01122283935546875,
0.002643585205078125,
0.032623291015625,
-0.010101318359375,
0.0335693359375,
0.0277557373046875,
-0.0443115234375,
0.04376220703125,
-0.0802001953125,
-0.0426025390625,
0.00955963134765625,
-0.0046539306640625,
0.0015163421630859375,
0.0223388671875,
-0.048095703125,
-0.005950927734375,
0.054107666015625,
-0.0455322265625,
-0.025726318359375,
0.009033203125,
0.0303192138671875,
-0.016845703125,
0.015350341796875,
-0.0184173583984375,
0.0199127197265625,
-0.01177978515625,
-0.0328369140625,
0.035614013671875,
0.002704620361328125,
-0.01410675048828125,
0.04766845703125,
-0.0220489501953125,
-0.0178070068359375,
0.0214691162109375,
-0.0562744140625,
0.03045654296875,
0.036834716796875,
-0.0216217041015625,
-0.0167083740234375,
-0.0019969940185546875,
0.00018465518951416016,
-0.01107025146484375,
0.0271759033203125,
-0.0140533447265625,
0.015228271484375,
-0.0202789306640625,
0.0509033203125,
-0.015594482421875,
0.0264892578125,
-0.034149169921875,
-0.005710601806640625,
0.0127410888671875,
0.025299072265625,
0.01413726806640625,
-0.027587890625,
-0.034881591796875,
-0.037445068359375,
0.005462646484375,
0.02984619140625,
-0.007266998291015625,
-0.00545501708984375,
-0.072509765625,
0.01355743408203125,
0.0316162109375,
0.0186309814453125,
-0.059234619140625,
0.061004638671875,
-0.0257415771484375,
0.002368927001953125,
-0.0036563873291015625,
-0.0188751220703125,
0.0014553070068359375,
-0.00437164306640625,
-0.004238128662109375,
0.009552001953125,
-0.040557861328125,
0.00916290283203125,
0.01141357421875,
-0.0017690658569335938,
0.0305023193359375,
-0.02142333984375,
-0.0697021484375,
-0.010986328125,
0.008544921875,
0.037261962890625,
0.040557861328125,
-0.0283966064453125,
-0.0145721435546875,
-0.0076751708984375,
0.00689697265625,
-0.033050537109375,
0.01277923583984375,
-0.08148193359375,
-0.0245208740234375,
0.0311737060546875,
-0.00687408447265625,
0.0233001708984375,
-0.0239715576171875,
-0.04266357421875,
0.003421783447265625,
0.0305938720703125,
-0.041656494140625,
0.00032019615173339844,
0.0028839111328125,
-0.0211944580078125,
0.01025390625,
0.004119873046875,
-0.01390838623046875,
0.01337432861328125,
0.027740478515625,
-0.002506256103515625,
0.0718994140625,
-0.0164031982421875,
0.0086822509765625,
-0.040740966796875,
0.0048065185546875,
-0.0274810791015625,
0.016845703125,
0.01177978515625,
-0.0169525146484375,
0.0179443359375,
0.0252227783203125,
-0.04901123046875,
-0.048553466796875,
-0.0305023193359375,
0.0017232894897460938,
-0.002063751220703125,
0.031341552734375,
-0.034423828125,
-0.01140594482421875,
0.040313720703125,
0.037841796875,
0.0167999267578125,
-0.014984130859375,
0.01556396484375,
-0.04034423828125,
-0.033477783203125,
-0.0001779794692993164,
0.01230621337890625,
-0.05780029296875,
-0.012847900390625,
0.0282440185546875,
-0.03411865234375,
-0.0166168212890625,
0.0162353515625,
-0.03564453125,
0.024322509765625,
0.01898193359375,
-0.01023101806640625,
-0.0262908935546875,
-0.032806396484375,
0.03436279296875,
-0.0210418701171875,
-0.01404571533203125,
-0.0079803466796875,
0.02801513671875,
-0.00015032291412353516,
-0.0000795125961303711,
-0.0241241455078125,
0.0120391845703125,
-0.0579833984375,
0.0145721435546875,
-0.03863525390625,
0.009918212890625,
-0.057220458984375,
0.01163482666015625,
-0.007480621337890625,
0.0280914306640625,
-0.00907135009765625,
0.043426513671875,
0.00492095947265625,
0.029327392578125,
0.021697998046875,
0.0196075439453125,
-0.00817108154296875,
0.00022077560424804688,
-0.00646209716796875,
0.04083251953125,
-0.0082244873046875,
-0.0304718017578125,
0.009033203125,
-0.04547119140625,
0.0029010772705078125,
-0.029327392578125,
-0.0213623046875,
-0.058441162109375,
0.02716064453125,
-0.02154541015625,
-0.031524658203125,
0.04193115234375
] |
13b0309175e08405d9ce7e9f3905946f572ebad7
|
Wordpress Stackexchange
Q: Allow html tags in WordPress Custom Menus Description Field I added descriptions to my menus using this post, Menu items description? Custom Walker for wp_nav_menu(). However I need to be able to use html tags and WordPress is stripping them out. Can anyone help?
A: You can remove the filter by adding this to your functions.php file:
remove_filter('nav_menu_description', 'strip_tags');
|
Q: Allow html tags in WordPress Custom Menus Description Field I added descriptions to my menus using this post, Menu items description? Custom Walker for wp_nav_menu(). However I need to be able to use html tags and WordPress is stripping them out. Can anyone help?
A: You can remove the filter by adding this to your functions.php file:
remove_filter('nav_menu_description', 'strip_tags');
A: In new wordpress we need add some mojo:
remove_filter('nav_menu_description', 'strip_tags');
add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );
function cus_wp_setup_nav_menu_item($menu_item) {
$menu_item->description = apply_filters('nav_menu_description', $menu_item->post_content );
return $menu_item;
}
|
wordpress
|
{
"language": "en",
"length": 86,
"provenance": "stackexchange_00019.jsonl.gz:408817",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15364"
}
|
[
0.062164306640625,
0.00970458984375,
0.004772186279296875,
0.026275634765625,
0.04766845703125,
-0.04638671875,
0.09149169921875,
-0.048187255859375,
-0.0596923828125,
0.03466796875,
-0.0153961181640625,
0.005481719970703125,
-0.0276336669921875,
-0.01424407958984375,
-0.005340576171875,
-0.049163818359375,
0.003993988037109375,
0.043609619140625,
0.0428466796875,
-0.006099700927734375,
0.0050201416015625,
0.0086517333984375,
0.0207977294921875,
-0.0494384765625,
0.02972412109375,
-0.033966064453125,
0.0258331298828125,
-0.0151519775390625,
0.026824951171875,
0.0005750656127929688,
0.0205535888671875,
-0.018951416015625,
-0.002025604248046875,
0.035858154296875,
-0.0271148681640625,
-0.0109100341796875,
-0.0016870498657226562,
0.018310546875,
0.006378173828125,
0.0165557861328125,
0.040252685546875,
-0.037841796875,
0.027740478515625,
-0.030029296875,
0.00554656982421875,
-0.0080108642578125,
0.0294036865234375,
-0.046844482421875,
0.0167694091796875,
-0.06585693359375,
0.0223846435546875,
-0.0115966796875,
0.055419921875,
-0.05706787109375,
-0.0452880859375,
-0.017547607421875,
0.005847930908203125,
-0.021636962890625,
0.030731201171875,
0.033660888671875,
-0.015380859375,
-0.006580352783203125,
0.006011962890625,
-0.037353515625,
0.003948211669921875,
-0.007396697998046875,
0.0179901123046875,
0.0283355712890625,
-0.0555419921875,
-0.01528167724609375,
0.036376953125,
-0.0250701904296875,
0.0142059326171875,
-0.0133056640625,
-0.0014362335205078125,
-0.022552490234375,
0.01041412353515625,
-0.03143310546875,
0.026580810546875,
0.005222320556640625,
0.021026611328125,
-0.002246856689453125,
-0.006626129150390625,
-0.00920867919921875,
0.0010528564453125,
0.01073455810546875,
-0.0009813308715820312,
-0.0177764892578125,
-0.0020599365234375,
0.0038852691650390625,
-0.00933837890625,
0.03033447265625,
-0.023345947265625,
0.00911712646484375,
-0.005817413330078125,
-0.0146942138671875,
0.0062103271484375,
0.047515869140625,
-0.01006317138671875,
0.050628662109375,
0.028106689453125,
-0.048675537109375,
0.10009765625,
-0.06536865234375,
0.0169830322265625,
0.032623291015625,
-0.0109100341796875,
0.041229248046875,
0.0831298828125,
0.0290374755859375,
0.023345947265625,
0.050567626953125,
-0.00414276123046875,
-0.00818634033203125,
-0.017059326171875,
0.00983428955078125,
-0.0023097991943359375,
-0.008697509765625,
-0.01220703125,
-0.034820556640625,
-0.00042939186096191406,
0.0067596435546875,
-0.01041412353515625,
0.02593994140625,
-0.0036869049072265625,
0.00037384033203125,
0.0025844573974609375,
0.002227783203125,
-0.026153564453125,
0.0260772705078125,
0.003963470458984375,
0.0037136077880859375,
-0.0117950439453125,
0.03253173828125,
-0.0183868408203125,
-0.01557159423828125,
0.027008056640625,
-0.0306396484375,
-0.0198516845703125,
0.0293731689453125,
-0.007965087890625,
-0.01812744140625,
-0.01038360595703125,
-0.05377197265625,
0.00054931640625,
0.00496673583984375,
0.002094268798828125,
0.0216522216796875,
0.0159759521484375,
-0.04522705078125,
0.0284576416015625,
-0.03179931640625,
0.04705810546875,
-0.004680633544921875,
-0.01224517822265625,
-0.05364990234375,
0.017333984375,
-0.03887939453125,
-0.0075531005859375,
-0.043182373046875,
-0.0239105224609375,
-0.006923675537109375,
0.03125,
-0.063232421875,
-0.07080078125,
0.00437164306640625,
-0.0223388671875,
-0.00876617431640625,
0.0197906494140625,
0.040130615234375,
-0.0171661376953125,
-0.03192138671875,
-0.0278167724609375,
0.033477783203125,
0.01287841796875,
0.052276611328125,
0.004337310791015625,
0.01203155517578125,
0.01084136962890625,
0.030059814453125,
-0.0163726806640625,
-0.054046630859375,
0.0248565673828125,
-0.0258941650390625,
-0.087890625,
0.023651123046875,
0.017303466796875,
0.1146240234375,
0.055908203125,
0.0244598388671875,
0.04437255859375,
-0.0626220703125,
-0.0089874267578125,
-0.0101165771484375,
0.023162841796875,
-0.0224609375,
-0.031463623046875,
-0.027099609375,
-0.006622314453125,
0.01012420654296875,
0.006374359130859375,
-0.0203399658203125,
0.011505126953125,
-0.0157470703125,
-0.040679931640625,
-0.016143798828125,
-0.01568603515625,
0.034515380859375,
-0.0006461143493652344,
0.0193634033203125,
0.005702972412109375,
-0.010894775390625,
-0.009979248046875,
-0.01195526123046875,
-0.020538330078125,
-0.017791748046875,
-0.01250457763671875,
0.040283203125,
-0.000020205974578857422,
-0.002742767333984375,
0.0323486328125,
-0.0562744140625,
0.0372314453125,
0.056915283203125,
0.0167236328125,
-0.0164642333984375,
-0.01154327392578125,
-0.006900787353515625,
0.0089263916015625,
0.01165008544921875,
-0.0038547515869140625,
0.022979736328125,
0.060333251953125,
0.04595947265625,
-0.0036640167236328125,
0.00446319580078125,
0.040924072265625,
-0.0802001953125,
-0.004657745361328125,
0.0361328125,
0.046630859375,
0.035552978515625,
-0.01024627685546875,
-0.038177490234375,
0.05218505859375,
-0.0226898193359375,
0.02679443359375,
-0.0364990234375,
-0.04119873046875,
-0.038116455078125,
0.06707763671875,
-0.013397216796875,
0.045745849609375,
0.01434326171875,
-0.004688262939453125,
0.0254364013671875,
-0.00951385498046875,
-0.036376953125,
0.022796630859375,
0.001861572265625,
0.0186614990234375,
0.03094482421875,
-0.030975341796875,
0.0154876708984375,
0.021270751953125,
0.033416748046875,
0.04266357421875,
0.044189453125,
-0.0361328125,
0.006641387939453125,
0.0162811279296875,
0.043212890625,
0.0055389404296875,
0.0313720703125,
0.00112152099609375,
0.0236968994140625,
-0.005191802978515625,
-0.0167083740234375,
0.00370025634765625,
0.0185699462890625,
0.01068115234375,
0.052825927734375,
0.053619384765625,
-0.0098114013671875,
-0.0189666748046875,
-0.0634765625,
0.03143310546875,
0.01116180419921875,
-0.0123291015625,
-0.0002741813659667969,
0.0185546875,
0.022796630859375,
-0.031646728515625,
0.031463623046875,
0.006122589111328125,
-0.00908660888671875,
0.0092010498046875,
-0.003749847412109375,
0.021331787109375,
0.005908966064453125,
0.0302276611328125,
0.06024169921875,
0.00899505615234375,
-0.0076446533203125,
0.00879669189453125,
-0.024932861328125,
0.03131103515625,
0.010986328125,
0.00119781494140625,
0.00897216796875,
-0.042449951171875,
0.0286407470703125,
0.01629638671875,
-0.0171356201171875,
-0.0014524459838867188,
-0.0133209228515625,
-0.03875732421875,
-0.01340484619140625,
-0.067138671875,
-0.026458740234375,
0.061981201171875,
-0.009765625,
0.00347137451171875,
0.045928955078125,
0.0008053779602050781,
-0.04156494140625,
0.074462890625,
-0.0131378173828125,
-0.015106201171875,
-0.037872314453125,
-0.051513671875,
-0.04119873046875,
-0.06732177734375,
0.0673828125,
0.00501251220703125,
0.026092529296875,
0.0018157958984375,
0.053741455078125,
0.00959014892578125,
-0.0416259765625,
0.030548095703125,
-0.0296478271484375,
-0.00994110107421875,
0.041656494140625,
0.020904541015625,
-0.03851318359375,
0.040313720703125,
0.018890380859375,
-0.007568359375,
0.0201568603515625,
-0.00640869140625,
-0.04144287109375,
-0.0196685791015625,
0.0482177734375,
0.0222015380859375,
-0.03411865234375,
0.0181121826171875,
0.054046630859375,
0.00524139404296875,
-0.01451873779296875,
-0.0295562744140625,
-0.00399017333984375,
-0.032867431640625,
0.00011479854583740234,
0.0129547119140625,
0.0007681846618652344,
-0.037628173828125,
0.05029296875,
0.003818511962890625,
0.004199981689453125,
0.04486083984375,
-0.01513671875,
0.00080108642578125,
-0.00679779052734375,
-0.0005207061767578125,
-0.035125732421875,
0.04315185546875,
-0.01513671875,
0.0134429931640625,
0.011077880859375,
0.0079345703125,
0.0008440017700195312,
-0.011993408203125,
-0.0535888671875,
-0.020599365234375,
0.040008544921875,
-0.0157012939453125,
0.00986480712890625,
-0.004364013671875,
-0.0207977294921875,
0.0044097900390625,
0.06536865234375,
-0.005329132080078125,
-0.033538818359375,
-0.007038116455078125,
-0.0021209716796875,
0.03570556640625,
0.01207733154296875,
-0.0140838623046875,
-0.033050537109375,
-0.06988525390625,
0.029052734375,
-0.01033782958984375,
-0.022308349609375,
-0.01238250732421875,
0.005336761474609375,
-0.0312347412109375,
-0.033966064453125,
0.041412353515625,
-0.0029888153076171875,
0.003528594970703125,
-0.0073699951171875,
-0.01702880859375,
-0.033843994140625,
-0.04071044921875,
0.0096435546875,
-0.05621337890625,
-0.0075225830078125,
-0.0386962890625,
0.0611572265625,
0.020233154296875,
0.0102691650390625,
-0.0025920867919921875,
0.05718994140625,
0.059356689453125,
-0.01117706298828125,
0.0191192626953125,
-0.04254150390625,
0.020233154296875,
0.0129241943359375,
0.00768280029296875,
-0.0139312744140625,
-0.0173797607421875,
-0.006816864013671875,
-0.004364013671875,
0.03973388671875,
-0.004486083984375,
-0.0185089111328125,
0.0234527587890625,
-0.0188446044921875,
-0.051483154296875,
-0.037628173828125,
-0.05291748046875,
-0.004047393798828125,
0.0128936767578125,
-0.03826904296875,
-0.0229644775390625,
-0.04937744140625,
0.039337158203125,
-0.004856109619140625,
-0.0101776123046875,
-0.00447845458984375,
0.035736083984375,
0.01467132568359375,
-0.029449462890625,
0.003604888916015625,
0.00769805908203125,
0.03961181640625,
-0.0092620849609375,
0.04193115234375,
0.0082244873046875,
-0.03125,
0.07513427734375,
-0.00013387203216552734,
0.01183319091796875,
-0.03448486328125,
0.0292205810546875,
0.012939453125,
0.03094482421875,
-0.035888671875,
0.015960693359375,
0.038055419921875,
0.0377197265625,
0.031585693359375,
-0.0195770263671875,
0.044189453125,
0.0206451416015625,
-0.0037670135498046875,
-0.0550537109375,
-0.0109100341796875,
0.0028285980224609375,
0.005523681640625,
0.020599365234375,
0.0701904296875,
0.04693603515625,
-0.006885528564453125,
0.01806640625,
0.01457977294921875,
0.00859832763671875,
-0.051177978515625,
-0.043792724609375,
-0.0528564453125,
0.0255889892578125,
-0.04931640625,
-0.0118408203125,
0.008026123046875,
-0.0091705322265625,
0.05010986328125,
-0.00975799560546875,
-0.032440185546875,
-0.016815185546875,
0.0088958740234375,
0.04010009765625,
0.0230255126953125,
0.023773193359375,
0.004207611083984375,
-0.0158843994140625,
0.0050201416015625,
0.0207366943359375,
0.0034389495849609375,
-0.0174102783203125,
-0.006099700927734375,
0.0011768341064453125,
-0.00348663330078125,
-0.01271820068359375,
0.01326751708984375,
0.01763916015625,
0.005573272705078125,
0.01198577880859375,
-0.01367950439453125,
0.0012569427490234375,
-0.036590576171875,
0.03204345703125,
-0.00010019540786743164,
0.006122589111328125,
-0.0034809112548828125,
0.0157318115234375,
0.02685546875,
-0.03533935546875,
-0.055267333984375,
0.01245880126953125,
0.02069091796875,
-0.0066375732421875,
0.013214111328125,
0.020904541015625,
0.01776123046875,
0.00726318359375,
0.01500701904296875,
-0.0693359375,
-0.07318115234375,
-0.01259613037109375,
0.0128173828125,
0.0211944580078125,
-0.045745849609375,
-0.01274871826171875,
0.0130462646484375,
0.0005507469177246094,
0.0165252685546875,
0.013702392578125,
-0.01078033447265625,
-0.010284423828125,
-0.0003178119659423828,
-0.0010690689086914062,
-0.0123138427734375,
-0.006565093994140625,
-0.08416748046875,
-0.0256805419921875,
-0.01194000244140625,
0.01122283935546875,
0.054931640625,
-0.041259765625,
-0.0037937164306640625,
-0.029327392578125,
0.036346435546875,
-0.01357269287109375,
0.00691986083984375,
0.056793212890625,
0.040313720703125,
-0.0101470947265625,
-0.024444580078125,
-0.021514892578125,
-0.02227783203125,
-0.00720977783203125,
-0.03387451171875,
-0.0162353515625,
0.00010132789611816406,
-0.025634765625,
0.0092620849609375,
0.007534027099609375,
0.039154052734375,
-0.0179290771484375,
0.033538818359375,
-0.012786865234375,
0.0250091552734375,
-0.05816650390625,
0.0206451416015625,
0.0455322265625,
-0.000012159347534179688,
-0.0235137939453125,
-0.0091705322265625,
0.023040771484375,
-0.001384735107421875,
0.024566650390625,
-0.024627685546875,
-0.06744384765625,
-0.0202178955078125,
-0.05706787109375,
0.02618408203125,
0.048126220703125,
-0.0174407958984375,
0.037567138671875,
-0.045318603515625,
-0.002788543701171875,
-0.033203125,
0.02984619140625,
-0.0728759765625,
0.0117645263671875,
0.005619049072265625,
-0.009490966796875,
0.0179901123046875,
0.0131072998046875,
0.0270843505859375,
-0.007617950439453125,
-0.0047607421875,
0.01342010498046875,
-0.0296478271484375,
-0.0162811279296875,
0.0239105224609375,
0.0184478759765625,
0.00018918514251708984,
0.035400390625,
0.013397216796875,
0.0266265869140625,
0.0174407958984375,
0.0147705078125,
-0.0191192626953125,
-0.0029315948486328125,
0.043365478515625,
0.004596710205078125,
0.0072021484375,
0.039154052734375,
-0.004547119140625,
0.00860595703125,
0.0792236328125,
0.06280517578125,
-0.1029052734375,
0.006988525390625,
0.01708984375,
-0.0027332305908203125,
0.042449951171875,
-0.01812744140625,
-0.0005826950073242188,
-0.019989013671875,
-0.017669677734375,
-0.0016384124755859375,
-0.044281005859375,
-0.03515625,
0.01401519775390625,
0.00475311279296875,
-0.008270263671875,
0.04766845703125,
0.006134033203125,
-0.0289764404296875,
-0.04443359375,
0.0214691162109375,
-0.0274658203125,
-0.014892578125,
-0.00038552284240722656,
0.04736328125,
-0.0276031494140625,
-0.034576416015625,
0.0662841796875,
-0.01477813720703125,
0.0017185211181640625,
0.034759521484375,
0.032989501953125,
0.005329132080078125,
0.0251617431640625,
-0.0023555755615234375,
0.0256195068359375,
-0.0169525146484375,
-0.01885986328125,
-0.0255279541015625,
-0.046295166015625,
0.0069580078125,
0.0290374755859375,
-0.02349853515625,
0.0231781005859375,
0.01247406005859375,
-0.045928955078125,
-0.0287628173828125,
-0.0258941650390625,
0.0750732421875,
-0.005008697509765625,
-0.0282745361328125,
0.00292205810546875,
0.0171661376953125,
0.00917816162109375,
-0.027435302734375,
0.0229949951171875,
-0.06610107421875,
0.006622314453125,
-0.007457733154296875,
0.005886077880859375,
0.003177642822265625,
-0.00795745849609375,
-0.08154296875,
0.07855224609375,
0.035064697265625,
0.018951416015625,
-0.01491546630859375,
0.03350830078125,
-0.03216552734375,
0.003246307373046875,
-0.028228759765625,
0.041015625,
0.0167694091796875,
0.0202178955078125,
-0.03533935546875,
-0.0138702392578125,
0.0012903213500976562,
0.03265380859375,
-0.066162109375,
-0.01287841796875,
0.036224365234375,
0.0167694091796875,
0.0188140869140625,
0.0190277099609375,
-0.00940704345703125,
-0.01453399658203125,
-0.01468658447265625,
-0.00389862060546875,
0.01568603515625,
-0.035369873046875,
0.028961181640625,
-0.05975341796875,
-0.009857177734375,
-0.019500732421875,
0.00859832763671875,
0.018890380859375,
-0.03289794921875,
0.008392333984375,
-0.007259368896484375,
-0.0175323486328125,
-0.01038360595703125,
0.028564453125,
-0.007694244384765625,
0.0186920166015625,
0.0198974609375,
-0.0762939453125,
-0.058990478515625,
-0.020477294921875,
0.0249481201171875,
0.0183868408203125,
0.0543212890625,
0.044921875,
0.023956298828125,
0.0291290283203125,
0.006053924560546875,
0.033355712890625,
0.00945281982421875,
-0.00942230224609375,
0.029022216796875,
-0.036468505859375,
0.01534271240234375,
-0.07672119140625,
-0.046051025390625,
0.0195770263671875,
0.048736572265625,
-0.0183868408203125,
-0.0016603469848632812,
-0.00353240966796875,
0.01605224609375,
0.0235748291015625,
-0.0167083740234375,
0.0526123046875,
0.04644775390625,
0.019805908203125,
-0.01067352294921875,
0.0088958740234375,
0.042510986328125,
0.0296783447265625,
0.028076171875,
0.05670166015625,
-0.064208984375,
-0.01708984375,
-0.07122802734375,
0.0283966064453125,
0.024139404296875,
0.050750732421875,
0.031829833984375,
0.059051513671875,
0.039306640625,
-0.036590576171875,
0.0104217529296875,
0.059600830078125,
-0.02606201171875,
-0.01154327392578125,
-0.0191802978515625,
-0.06689453125,
-0.01383209228515625,
0.0213470458984375,
-0.0100860595703125,
-0.0007815361022949219,
0.0228424072265625,
0.012451171875,
-0.0294189453125,
-0.02032470703125,
0.04010009765625,
-0.023834228515625,
-0.04693603515625,
-0.0281982421875,
-0.0161895751953125,
0.031097412109375,
0.00738525390625,
0.0289459228515625,
-0.01477813720703125,
0.039031982421875,
0.0025691986083984375,
0.038909912109375,
-0.0023593902587890625,
-0.0093841552734375,
0.017120361328125,
-0.01007080078125,
0.0246124267578125,
0.0147247314453125,
-0.09820556640625,
-0.0170440673828125,
-0.0198974609375,
-0.0212860107421875,
0.040740966796875,
0.035491943359375,
-0.0308990478515625,
0.033660888671875,
0.043853759765625,
-0.028900146484375,
-0.0077362060546875,
0.01522064208984375,
0.00836181640625,
0.01171112060546875,
0.00853729248046875,
0.0158843994140625,
-0.0855712890625,
-0.0183258056640625,
-0.036590576171875,
0.005382537841796875,
0.0262298583984375,
0.060028076171875,
0.0157470703125,
0.01995849609375,
-0.046234130859375,
0.0216522216796875,
-0.044677734375,
-0.05059814453125,
0.037933349609375,
0.0209503173828125,
0.0099334716796875,
-0.0017175674438476562,
-0.05035400390625,
0.056884765625,
0.03582763671875,
0.01448822021484375,
0.05999755859375,
0.0046539306640625,
-0.00514984130859375,
-0.059356689453125,
-0.0081634521484375,
-0.0265960693359375,
-0.0254974365234375,
-0.026580810546875,
-0.0242767333984375,
0.027435302734375,
0.02606201171875,
0.0098114013671875,
0.025970458984375,
0.0189208984375,
-0.0240325927734375,
0.023773193359375,
-0.0255126953125,
0.035003662109375,
0.049346923828125,
0.01123809814453125,
-0.0132598876953125,
0.0166015625,
-0.00806427001953125,
0.0018682479858398438,
0.0185546875,
-0.004642486572265625,
0.01898193359375,
-0.0750732421875,
-0.01078033447265625,
0.01139068603515625,
0.0313720703125,
-0.00739288330078125,
0.017730712890625,
-0.01031494140625,
-0.010162353515625,
0.0087432861328125,
-0.01146697998046875,
-0.02520751953125,
-0.030426025390625,
-0.0104827880859375,
0.028900146484375,
-0.03692626953125,
-0.0494384765625,
-0.0926513671875,
-0.00360107421875,
0.0271148681640625,
-0.00247955322265625,
-0.0272674560546875,
0.003292083740234375,
-0.027740478515625,
0.050445556640625,
-0.0171356201171875,
-0.00922393798828125,
-0.015960693359375,
-0.016937255859375,
-0.0069732666015625,
-0.01233673095703125,
-0.03509521484375,
0.057769775390625,
0.00910186767578125,
0.0303955078125,
0.039276123046875,
-0.034210205078125,
-0.036865234375,
0.033721923828125,
0.028594970703125,
0.0787353515625,
0.03729248046875,
-0.01422119140625,
-0.02703857421875,
0.0201416015625,
-0.018646240234375,
-0.023193359375,
0.00977325439453125,
-0.035888671875,
-0.0307464599609375,
0.017303466796875,
-0.022735595703125,
-0.0003707408905029297,
-0.04425048828125,
-0.1302490234375,
0.041290283203125,
-0.0142974853515625,
-0.05108642578125,
0.054779052734375,
-0.01280975341796875,
-0.0174102783203125,
0.0017452239990234375,
0.02386474609375,
-0.053192138671875,
-0.0055389404296875,
-0.0166473388671875,
0.018341064453125,
0.07220458984375,
-0.0120391845703125,
0.01461029052734375,
-0.015380859375,
0.036651611328125,
0.002605438232421875,
0.027099609375,
-0.01531219482421875,
-0.0037326812744140625,
-0.0178680419921875,
-0.0009493827819824219,
-0.0570068359375,
-0.04931640625,
-0.01319122314453125,
0.056243896484375,
-0.000637054443359375,
-0.03009033203125,
-0.00543212890625,
-0.0234222412109375,
-0.0182952880859375,
0.031829833984375,
-0.0167694091796875,
-0.005126953125,
-0.00800323486328125,
-0.0287933349609375,
-0.0027904510498046875,
-0.0103607177734375,
0.0009665489196777344,
-0.04559326171875,
0.0012378692626953125,
0.00830841064453125,
-0.0265960693359375,
0.0027904510498046875,
0.01218414306640625,
-0.041656494140625,
0.0164794921875,
0.015594482421875,
0.002582550048828125,
-0.0750732421875,
0.00804901123046875,
0.057098388671875,
-0.05255126953125,
-0.0196990966796875,
0.0006031990051269531,
0.005207061767578125,
0.00911712646484375,
-0.04498291015625,
-0.0438232421875,
-0.01348876953125,
-0.007282257080078125,
0.01230621337890625,
-0.0248870849609375,
0.055267333984375,
-0.0187835693359375,
0.013824462890625,
-0.005077362060546875,
0.018524169921875,
0.0221099853515625,
0.038818359375,
-0.0673828125,
0.0096435546875,
0.0112762451171875,
-0.0172576904296875,
-0.0013742446899414062,
0.015380859375,
-0.003261566162109375,
0.038330078125,
0.0016307830810546875,
-0.033416748046875,
0.024993896484375,
-0.04718017578125,
0.00913238525390625,
0.0019855499267578125,
0.0186767578125,
-0.06390380859375,
0.05242919921875,
-0.0294952392578125,
0.0168304443359375,
0.041259765625
] |
545b0e8eb9d9fe142668f8f48b9f3bff3c584e5f
|
Wordpress Stackexchange
Q: Create custom permissions for user type I'm currently wanting to have it so that writers on my site have to have an admin approve their content before it's published, but still be allowed to do other tasks such as uploading images, adding tags, etc, and the wordpress static permission levels are either too restrictive, or let writers publish themselves.
I know on drupal there is an easy way to edit permissions for account types, but I was wondering if there is a way to do the same level of functionality with wordpress at all.
A: Plugins that would do this are:
*
*WPFront User Role Editor -- free & paid both do what you're asking
*User Role
*User Role and Capabilities
Or you can write it into your theme's functions.php
*
*consult Roles & Capabilities in the WP Codex for the details
*and read this easy-to-understand guide on how to add those capabilities yourself
Personally, I prefer to write it into functions.php rather than install a plugin. It's more secure and typically keeps your site running faster.
|
Q: Create custom permissions for user type I'm currently wanting to have it so that writers on my site have to have an admin approve their content before it's published, but still be allowed to do other tasks such as uploading images, adding tags, etc, and the wordpress static permission levels are either too restrictive, or let writers publish themselves.
I know on drupal there is an easy way to edit permissions for account types, but I was wondering if there is a way to do the same level of functionality with wordpress at all.
A: Plugins that would do this are:
*
*WPFront User Role Editor -- free & paid both do what you're asking
*User Role
*User Role and Capabilities
Or you can write it into your theme's functions.php
*
*consult Roles & Capabilities in the WP Codex for the details
*and read this easy-to-understand guide on how to add those capabilities yourself
Personally, I prefer to write it into functions.php rather than install a plugin. It's more secure and typically keeps your site running faster.
A: First, choose one wordpress role your writer'll have : author, contributor, editor... or a custom role.
then customize your chosen role with capacities in your functions.php theme file :
if ( ! function_exists( 'writer_set_roles' ) ):
function writer_set_roles()
{
global $wp_roles;
// post / page editing
$wp_roles->add_cap('author','edit_others_pages');
$wp_roles->add_cap('author','edit_published_pages');
$wp_roles->add_cap('author','edit_private_pages');
$wp_roles->add_cap('author','publish_pages');
$wp_roles->add_cap('author','delete_pages');
$wp_roles->add_cap('author','delete_others_pages');
$wp_roles->add_cap('author','delete_others_posts');
$wp_roles->add_cap('author','delete_published_pages');
$wp_roles->add_cap('author','manage_categories');
// appearance
$wp_roles->add_cap('author','edit_themes');
$wp_roles->add_cap('author','edit_theme_options');
$wp_roles->add_cap('author','manage_widgets');
$wp_roles->add_cap('author','edit_widgets');
// sample for plugin caps
$wp_roles->add_cap('author','NextGEN Gallery overview');
$wp_roles->add_cap('author','NextGEN Use TinyMCE');
$wp_roles->add_cap('author','NextGEN Upload images');
$wp_roles->add_cap('author','NextGEN Manage gallery');
$wp_roles->add_cap('author','NextGEN Manage others gallery');
}
endif;
add_action( 'after_setup_theme', 'writer_set_roles' );
you should find all capacities in this file :
https://github.com/WordPress/WordPress/blob/master/wp-admin/includes/schema.php
or in documentation.
https://codex.wordpress.org/Roles_and_Capabilities
|
wordpress
|
{
"language": "en",
"length": 281,
"provenance": "stackexchange_00019.jsonl.gz:408819",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15369"
}
|
[
0.053314208984375,
-0.00677490234375,
-0.01398468017578125,
-0.038970947265625,
0.00746917724609375,
-0.03192138671875,
0.0289764404296875,
-0.006195068359375,
-0.037628173828125,
0.016632080078125,
0.03546142578125,
0.002391815185546875,
-0.0206298828125,
-0.051422119140625,
0.006153106689453125,
-0.0230255126953125,
-0.001552581787109375,
0.0146026611328125,
0.0253753662109375,
-0.042205810546875,
0.02276611328125,
-0.04461669921875,
0.0308837890625,
0.04107666015625,
0.010955810546875,
-0.00003719329833984375,
0.01531219482421875,
-0.029205322265625,
0.01047515869140625,
-0.0125274658203125,
0.01284027099609375,
0.00492095947265625,
-0.029510498046875,
0.0251007080078125,
0.034271240234375,
0.0213775634765625,
0.005680084228515625,
0.01451873779296875,
0.03863525390625,
0.004535675048828125,
0.0284576416015625,
-0.01007080078125,
0.01727294921875,
0.06500244140625,
-0.006740570068359375,
-0.09600830078125,
0.07965087890625,
-0.03094482421875,
0.024658203125,
0.0269927978515625,
0.008453369140625,
-0.0138397216796875,
0.018829345703125,
-0.017242431640625,
-0.0183868408203125,
-0.0291900634765625,
0.019500732421875,
-0.022918701171875,
0.040771484375,
-0.042510986328125,
-0.03564453125,
-0.0308837890625,
0.034698486328125,
0.0199737548828125,
0.02276611328125,
-0.0232391357421875,
0.010833740234375,
0.0299835205078125,
-0.033111572265625,
0.01029205322265625,
0.0168609619140625,
-0.0113983154296875,
0.0115814208984375,
-0.008148193359375,
-0.0084686279296875,
0.0022602081298828125,
-0.016693115234375,
-0.0104217529296875,
0.042388916015625,
0.01403045654296875,
0.00281524658203125,
0.00844573974609375,
0.00849151611328125,
-0.00316619873046875,
-0.026123046875,
-0.0138397216796875,
-0.0157318115234375,
-0.00330352783203125,
0.0224456787109375,
0.01004791259765625,
0.0039825439453125,
-0.0123291015625,
0.021026611328125,
0.05169677734375,
-0.006801605224609375,
-0.0159454345703125,
0.036285400390625,
0.01241302490234375,
0.0180511474609375,
-0.0187835693359375,
0.061309814453125,
-0.07470703125,
0.0256500244140625,
-0.023345947265625,
0.006061553955078125,
0.045013427734375,
-0.00959014892578125,
0.0094146728515625,
0.0249481201171875,
0.024505615234375,
0.01131439208984375,
-0.0295867919921875,
0.0018911361694335938,
-0.031707763671875,
-0.0010318756103515625,
0.00981903076171875,
-0.007053375244140625,
0.017791748046875,
0.0090484619140625,
0.0253753662109375,
0.01479339599609375,
0.032867431640625,
0.043121337890625,
-0.0132598876953125,
-0.022247314453125,
-0.0203399658203125,
-0.01020050048828125,
-0.057586669921875,
-0.004871368408203125,
0.047698974609375,
-0.0201568603515625,
0.0052947998046875,
0.0469970703125,
0.016326904296875,
-0.0192718505859375,
-0.029937744140625,
0.005298614501953125,
-0.044525146484375,
0.0021648406982421875,
0.01751708984375,
0.00873565673828125,
-0.018829345703125,
0.020050048828125,
0.003925323486328125,
0.031341552734375,
0.034515380859375,
0.01678466796875,
0.0025157928466796875,
0.0161590576171875,
-0.0291290283203125,
0.0018301010131835938,
-0.0272216796875,
0.013092041015625,
-0.0118408203125,
0.017181396484375,
-0.036651611328125,
-0.0022754669189453125,
-0.00725555419921875,
0.02899169921875,
-0.01055908203125,
0.0306396484375,
-0.0016622543334960938,
-0.0081329345703125,
0.00691986083984375,
-0.0024814605712890625,
-0.020050048828125,
-0.01812744140625,
0.00665283203125,
0.020965576171875,
-0.03564453125,
0.061126708984375,
-0.0264434814453125,
0.0030727386474609375,
0.0172882080078125,
0.0276641845703125,
0.03009033203125,
0.00685882568359375,
0.01168060302734375,
0.02227783203125,
-0.00981903076171875,
0.01396942138671875,
-0.002079010009765625,
0.0682373046875,
-0.00754547119140625,
-0.0350341796875,
0.004962921142578125,
0.0225677490234375,
0.029449462890625,
0.01502227783203125,
0.0164337158203125,
-0.001781463623046875,
0.02886962890625,
-0.012298583984375,
0.0296173095703125,
-0.0115814208984375,
-0.043060302734375,
0.008148193359375,
-0.0078125,
-0.021331787109375,
0.00675201416015625,
0.041900634765625,
-0.018402099609375,
0.03302001953125,
-0.0306854248046875,
-0.025604248046875,
0.004749298095703125,
-0.015594482421875,
0.0312347412109375,
0.0231170654296875,
0.011474609375,
-0.0022373199462890625,
0.009033203125,
0.006702423095703125,
-0.08233642578125,
-0.0361328125,
0.0169219970703125,
0.0038166046142578125,
0.059356689453125,
0.0185546875,
0.028717041015625,
0.0216827392578125,
-0.034149169921875,
0.032470703125,
0.0241546630859375,
0.0156097412109375,
0.0017385482788085938,
-0.012786865234375,
-0.0007524490356445312,
0.022125244140625,
0.028472900390625,
-0.003765106201171875,
-0.0027751922607421875,
0.048736572265625,
0.00646209716796875,
-0.0235595703125,
-0.0018815994262695312,
0.00925445556640625,
-0.06805419921875,
-0.00824737548828125,
0.059844970703125,
0.041412353515625,
0.01320648193359375,
0.010650634765625,
0.01885986328125,
0.0208587646484375,
-0.0266571044921875,
0.027008056640625,
-0.01056671142578125,
-0.02032470703125,
0.0313720703125,
-0.020294189453125,
0.01270294189453125,
0.0081939697265625,
-0.052886962890625,
-0.0015716552734375,
0.056365966796875,
-0.031890869140625,
-0.0196685791015625,
0.0118865966796875,
-0.0109405517578125,
-0.004344940185546875,
-0.05084228515625,
0.0052642822265625,
-0.0242156982421875,
0.029541015625,
0.0012063980102539062,
0.01824951171875,
0.014892578125,
-0.04742431640625,
0.01123046875,
0.02294921875,
0.002353668212890625,
0.00592803955078125,
0.00323486328125,
0.0186767578125,
-0.0117034912109375,
-0.04400634765625,
0.0116119384765625,
0.02410888671875,
0.005859375,
-0.00885009765625,
0.037811279296875,
-0.038299560546875,
-0.01451873779296875,
-0.00865936279296875,
-0.0374755859375,
-0.0176239013671875,
-0.00885009765625,
0.026214599609375,
-0.006694793701171875,
0.0195465087890625,
-0.0216217041015625,
-0.03289794921875,
0.0207061767578125,
0.03192138671875,
-0.037811279296875,
-0.00353240966796875,
-0.09649658203125,
0.068115234375,
-0.04205322265625,
0.061279296875,
0.10833740234375,
0.01093292236328125,
0.02484130859375,
0.01554107666015625,
-0.019195556640625,
0.0008921623229980469,
0.058013916015625,
0.03277587890625,
-0.029571533203125,
0.015655517578125,
0.034881591796875,
0.0090179443359375,
0.005435943603515625,
0.0218505859375,
-0.0036163330078125,
0.0071563720703125,
-0.005649566650390625,
0.0173797607421875,
0.01055145263671875,
0.04913330078125,
-0.07568359375,
0.016021728515625,
-0.0256500244140625,
-0.044219970703125,
-0.0248870849609375,
0.032867431640625,
-0.00382232666015625,
-0.0369873046875,
-0.00937652587890625,
-0.0033550262451171875,
-0.020721435546875,
-0.033355712890625,
0.0276641845703125,
-0.0004527568817138672,
0.01187896728515625,
-0.012664794921875,
0.057464599609375,
-0.021820068359375,
-0.06976318359375,
-0.0623779296875,
-0.00963592529296875,
-0.004878997802734375,
-0.0143585205078125,
-0.004711151123046875,
-0.019622802734375,
0.058319091796875,
0.00173187255859375,
-0.019287109375,
0.025665283203125,
0.004840850830078125,
-0.041595458984375,
-0.0255279541015625,
-0.0255126953125,
0.00618743896484375,
0.043121337890625,
0.005870819091796875,
-0.00036787986755371094,
0.03656005859375,
-0.031951904296875,
0.00010734796524047852,
0.037200927734375,
0.00823974609375,
-0.0010709762573242188,
-0.036865234375,
-0.046478271484375,
-0.0201416015625,
0.053741455078125,
0.0292205810546875,
0.035186767578125,
-0.00778961181640625,
0.0157623291015625,
-0.01114654541015625,
0.003383636474609375,
0.00319671630859375,
0.00827789306640625,
-0.006572723388671875,
-0.03302001953125,
0.0227813720703125,
-0.0116424560546875,
0.00998687744140625,
-0.01342010498046875,
0.0252838134765625,
-0.032958984375,
-0.0855712890625,
0.07080078125,
-0.0384521484375,
-0.007785797119140625,
-0.053131103515625,
-0.0225677490234375,
0.0060577392578125,
0.12054443359375,
-0.01467132568359375,
0.0142974853515625,
0.00901031494140625,
0.00335693359375,
-0.0404052734375,
-0.037078857421875,
-0.06787109375,
0.00304412841796875,
-0.0211181640625,
-0.004230499267578125,
-0.01499176025390625,
0.00530242919921875,
-0.05206298828125,
-0.00890350341796875,
-0.033355712890625,
-0.0204620361328125,
0.03594970703125,
-0.054840087890625,
0.030029296875,
0.020538330078125,
0.008514404296875,
-0.015167236328125,
-0.025726318359375,
-0.0455322265625,
-0.1142578125,
-0.0176544189453125,
-0.0186767578125,
0.073486328125,
-0.007083892822265625,
0.01280975341796875,
-0.0271148681640625,
0.05072021484375,
0.005329132080078125,
-0.003650665283203125,
-0.0079345703125,
-0.00011414289474487305,
0.00302886962890625,
-0.002727508544921875,
-0.0290679931640625,
-0.018035888671875,
-0.0206146240234375,
-0.01468658447265625,
-0.006866455078125,
0.0212554931640625,
-0.01316070556640625,
-0.01383209228515625,
0.0009417533874511719,
-0.01525115966796875,
-0.033416748046875,
-0.041168212890625,
-0.0156097412109375,
0.023284912109375,
0.00044846534729003906,
0.0002987384796142578,
-0.0406494140625,
-0.041046142578125,
0.045928955078125,
-0.04638671875,
0.0167083740234375,
0.016387939453125,
0.10540771484375,
0.0072784423828125,
0.0021572113037109375,
-0.01898193359375,
-0.0181884765625,
0.052947998046875,
-0.01140594482421875,
0.034423828125,
0.047393798828125,
-0.03076171875,
0.0239410400390625,
0.021636962890625,
0.012542724609375,
-0.039764404296875,
0.03863525390625,
-0.0110931396484375,
-0.008697509765625,
0.0103759765625,
-0.0096893310546875,
0.033477783203125,
-0.0034770965576171875,
-0.0136871337890625,
0.0086822509765625,
0.0246124267578125,
0.040740966796875,
-0.0216827392578125,
0.012115478515625,
-0.019134521484375,
-0.007656097412109375,
-0.0000010728836059570312,
-0.049835205078125,
0.0106201171875,
0.0113372802734375,
-0.0018148422241210938,
-0.03369140625,
-0.040191650390625,
-0.000033020973205566406,
-0.031341552734375,
-0.0152435302734375,
-0.01271820068359375,
0.0228729248046875,
-0.0112152099609375,
0.003620147705078125,
-0.01334381103515625,
-0.002681732177734375,
0.048553466796875,
0.015869140625,
-0.04449462890625,
0.006683349609375,
-0.01305389404296875,
-0.008392333984375,
-0.01342010498046875,
-0.0017852783203125,
0.046295166015625,
0.0179290771484375,
-0.0017366409301757812,
-0.0003116130828857422,
-0.0307464599609375,
0.0021114349365234375,
-0.04248046875,
-0.025726318359375,
-0.0010290145874023438,
-0.01468658447265625,
0.0479736328125,
0.018768310546875,
0.0000020265579223632812,
0.022308349609375,
-0.0159912109375,
0.0758056640625,
0.08294677734375,
-0.04876708984375,
-0.00788116455078125,
0.08502197265625,
-0.02630615234375,
-0.057037353515625,
-0.0123748779296875,
-0.020477294921875,
-0.00940704345703125,
-0.00872039794921875,
0.0272674560546875,
-0.018096923828125,
-0.0068359375,
0.0221099853515625,
-0.028961181640625,
0.0032978057861328125,
-0.016387939453125,
-0.0252227783203125,
-0.01995849609375,
-0.01082611083984375,
-0.006366729736328125,
0.01102447509765625,
-0.017669677734375,
-0.03466796875,
0.0214385986328125,
-0.05859375,
0.018768310546875,
0.01172637939453125,
-0.017059326171875,
-0.009490966796875,
-0.0064239501953125,
-0.0775146484375,
-0.0251007080078125,
0.0199432373046875,
-0.04791259765625,
-0.038818359375,
0.019134521484375,
-0.00865936279296875,
-0.0249786376953125,
-0.01141357421875,
0.0197601318359375,
-0.038330078125,
-0.004795074462890625,
-0.034942626953125,
-0.0032215118408203125,
0.040496826171875,
0.00909423828125,
-0.0537109375,
0.002277374267578125,
-0.053741455078125,
-0.01155853271484375,
-0.034423828125,
-0.028656005859375,
-0.034088134765625,
0.006290435791015625,
0.0228729248046875,
0.006595611572265625,
-0.0036258697509765625,
-0.039306640625,
-0.02081298828125,
0.0516357421875,
0.048980712890625,
0.046173095703125,
-0.0225372314453125,
0.047332763671875,
0.0121307373046875,
0.0604248046875,
0.002529144287109375,
-0.004177093505859375,
-0.0179443359375,
-0.0188140869140625,
0.011444091796875,
-0.00664520263671875,
-0.02130126953125,
-0.0384521484375,
0.0266571044921875,
0.0294342041015625,
0.0595703125,
-0.0012063980102539062,
0.02154541015625,
-0.0250701904296875,
0.004070281982421875,
-0.01953125,
0.0208892822265625,
-0.049713134765625,
-0.01421356201171875,
0.02301025390625,
-0.0265045166015625,
0.03131103515625,
-0.01294708251953125,
-0.0168609619140625,
0.03570556640625,
-0.0254974365234375,
0.0266876220703125,
0.037841796875,
-0.028564453125,
0.0242767333984375,
0.035675048828125,
-0.0008120536804199219,
0.027984619140625,
0.00434112548828125,
0.0190887451171875,
0.0138702392578125,
0.00563812255859375,
-0.0260467529296875,
-0.01270294189453125,
0.0423583984375,
0.005157470703125,
-0.03802490234375,
0.0296173095703125,
-0.03155517578125,
0.0288543701171875,
0.09185791015625,
0.07977294921875,
-0.12890625,
0.00881195068359375,
-0.0129852294921875,
-0.02508544921875,
0.04669189453125,
-0.0364990234375,
-0.0234222412109375,
-0.0753173828125,
0.0823974609375,
-0.047210693359375,
-0.027618408203125,
0.01131439208984375,
-0.032806396484375,
-0.017242431640625,
0.0118408203125,
-0.005584716796875,
0.0013399124145507812,
0.03839111328125,
0.00672149658203125,
-0.02581787109375,
0.045013427734375,
0.005584716796875,
0.03472900390625,
-0.036376953125,
0.0010709762573242188,
-0.0078125,
0.0192413330078125,
-0.0183563232421875,
-0.027557373046875,
0.0171051025390625,
-0.0192108154296875,
0.04803466796875,
0.041473388671875,
-0.0135498046875,
-0.002544403076171875,
0.03021240234375,
-0.0292816162109375,
-0.06329345703125,
-0.053314208984375,
-0.0023174285888671875,
0.048248291015625,
-0.00995635986328125,
0.035247802734375,
0.0007185935974121094,
-0.040283203125,
-0.0228424072265625,
-0.063232421875,
0.046905517578125,
-0.0218048095703125,
-0.00527191162109375,
0.03729248046875,
0.004177093505859375,
-0.022003173828125,
0.0105438232421875,
0.006725311279296875,
-0.06597900390625,
-0.049346923828125,
0.00926971435546875,
-0.038238525390625,
0.0252227783203125,
0.045196533203125,
-0.054290771484375,
0.06573486328125,
-0.0111541748046875,
0.019805908203125,
0.0244598388671875,
0.016693115234375,
-0.028961181640625,
0.0038967132568359375,
-0.0318603515625,
0.027984619140625,
-0.0141754150390625,
0.031768798828125,
-0.053436279296875,
-0.01403045654296875,
-0.0077667236328125,
0.036712646484375,
0.08758544921875,
0.034332275390625,
-0.0428466796875,
-0.022186279296875,
0.01422119140625,
0.01354217529296875,
-0.0306549072265625,
0.0615234375,
-0.004596710205078125,
0.010498046875,
-0.01242828369140625,
-0.0164031982421875,
0.0419921875,
-0.059844970703125,
-0.044525146484375,
0.0169525146484375,
0.0025634765625,
-0.008544921875,
-0.035888671875,
0.0189361572265625,
-0.0643310546875,
-0.0133056640625,
0.0249176025390625,
0.0192413330078125,
0.04376220703125,
0.0088043212890625,
0.054656982421875,
-0.0197296142578125,
0.00884246826171875,
-0.0185394287109375,
0.058074951171875,
0.01235198974609375,
0.027557373046875,
0.0162811279296875,
0.0219879150390625,
-0.012115478515625,
-0.0114593505859375,
0.0244903564453125,
0.039306640625,
-0.0517578125,
-0.0035266876220703125,
-0.006206512451171875,
0.0005431175231933594,
-0.0523681640625,
0.033782958984375,
0.05609130859375,
0.00901031494140625,
-0.02716064453125,
-0.04473876953125,
-0.00849151611328125,
0.003795623779296875,
0.041778564453125,
-0.0022144317626953125,
0.041107177734375,
0.0004930496215820312,
0.04290771484375,
-0.034271240234375,
0.01049041748046875,
0.007537841796875,
0.0142822265625,
-0.0098724365234375,
0.0181732177734375,
-0.0251007080078125,
0.005939483642578125,
-0.0323486328125,
-0.032135009765625,
0.0024471282958984375,
0.005443572998046875,
0.0389404296875,
0.0178070068359375,
0.08807373046875,
0.0094757080078125,
0.0242919921875,
0.0213775634765625,
-0.027313232421875,
-0.0252227783203125,
-0.0270843505859375,
-0.08319091796875,
0.0011844635009765625,
0.04248046875,
-0.043731689453125,
0.0012769699096679688,
-0.0008702278137207031,
0.028106689453125,
0.00004798173904418945,
-0.031707763671875,
0.0116424560546875,
-0.0200042724609375,
-0.0222930908203125,
-0.03936767578125,
0.022308349609375,
0.01251983642578125,
0.01519012451171875,
0.01186370849609375,
0.027587890625,
0.017364501953125,
-0.010833740234375,
0.0208892822265625,
-0.0020542144775390625,
-0.0291900634765625,
0.0255126953125,
-0.053802490234375,
0.0341796875,
-0.01409149169921875,
-0.07916259765625,
0.008087158203125,
-0.066162109375,
-0.088623046875,
0.057373046875,
0.04803466796875,
-0.0305938720703125,
0.01219940185546875,
0.00777435302734375,
-0.0221099853515625,
0.04351806640625,
-0.0162506103515625,
-0.01062774658203125,
0.004848480224609375,
0.0143585205078125,
-0.014892578125,
-0.061614990234375,
-0.0340576171875,
-0.0316162109375,
0.021728515625,
0.0265655517578125,
0.05975341796875,
-0.00449371337890625,
0.022430419921875,
-0.01337432861328125,
0.050201416015625,
-0.05450439453125,
-0.027130126953125,
0.050933837890625,
-0.0008897781372070312,
-0.0103759765625,
-0.001728057861328125,
-0.04168701171875,
0.04388427734375,
0.0007190704345703125,
0.0030574798583984375,
-0.0032787322998046875,
-0.013153076171875,
0.0166015625,
0.02618408203125,
0.0160369873046875,
-0.0280303955078125,
-0.005695343017578125,
-0.0229949951171875,
-0.02142333984375,
0.017913818359375,
-0.019256591796875,
-0.0109100341796875,
0.05084228515625,
-0.00254058837890625,
-0.02581787109375,
-0.0108795166015625,
-0.03656005859375,
-0.03057861328125,
0.0218658447265625,
0.0496826171875,
-0.005157470703125,
0.019317626953125,
-0.01084136962890625,
0.01244354248046875,
0.01280975341796875,
0.026275634765625,
0.01194000244140625,
-0.02069091796875,
-0.00098419189453125,
-0.0012159347534179688,
0.044677734375,
-0.01544189453125,
0.01025390625,
-0.0148468017578125,
0.009307861328125,
-0.03167724609375,
-0.04705810546875,
-0.043731689453125,
-0.00743865966796875,
0.022003173828125,
0.039154052734375,
0.025421142578125,
-0.035308837890625,
-0.076904296875,
0.00588226318359375,
0.040557861328125,
0.0182037353515625,
-0.09075927734375,
0.053436279296875,
-0.007228851318359375,
0.061920166015625,
-0.01253509521484375,
-0.011260986328125,
0.01342010498046875,
0.033782958984375,
0.007038116455078125,
-0.0087432861328125,
-0.00630950927734375,
0.031402587890625,
0.0086669921875,
0.05352783203125,
0.06304931640625,
-0.04998779296875,
-0.016387939453125,
0.0826416015625,
0.040435791015625,
0.1131591796875,
-0.00658416748046875,
-0.00384521484375,
-0.006374359130859375,
0.00516510009765625,
-0.027008056640625,
-0.02978515625,
0.0218048095703125,
-0.0257720947265625,
-0.06964111328125,
0.0031871795654296875,
0.0077056884765625,
0.0278167724609375,
-0.012603759765625,
-0.0133209228515625,
0.0300445556640625,
0.00568389892578125,
-0.0219573974609375,
0.007904052734375,
0.017822265625,
-0.0009145736694335938,
-0.0164794921875,
-0.0035343170166015625,
0.004352569580078125,
-0.0222320556640625,
-0.022064208984375,
0.0100555419921875,
-0.043426513671875,
0.0338134765625,
0.0158233642578125,
-0.06292724609375,
0.010833740234375,
0.004474639892578125,
-0.033599853515625,
-0.00479888916015625,
0.00421905517578125,
0.00855255126953125,
0.038604736328125,
-0.0146942138671875,
-0.0185546875,
-0.00039696693420410156,
-0.00916290283203125,
-0.051483154296875,
-0.038299560546875,
0.0116424560546875,
-0.0279998779296875,
0.079345703125,
0.047821044921875,
-0.0031757354736328125,
-0.0298614501953125,
-0.0158843994140625,
-0.05548095703125,
-0.0718994140625,
-0.0264739990234375,
0.0254364013671875,
-0.06585693359375,
0.0179290771484375,
0.0229034423828125,
-0.0198516845703125,
0.003108978271484375,
0.0081634521484375,
-0.0228118896484375,
0.012542724609375,
0.021453857421875,
-0.00980377197265625,
-0.02252197265625,
0.030120849609375,
0.027435302734375,
-0.0230255126953125,
-0.0005931854248046875,
-0.00542449951171875,
-0.0004982948303222656,
0.0041046142578125,
-0.0234527587890625,
-0.0175933837890625,
-0.0183258056640625,
-0.01250457763671875,
0.04296875,
-0.01544952392578125,
0.033233642578125,
-0.040863037109375,
0.00913238525390625,
-0.0034275054931640625,
0.0171356201171875,
0.0009179115295410156,
0.024566650390625,
-0.0137176513671875,
0.049224853515625,
-0.0049285888671875,
0.042236328125,
-0.0357666015625,
-0.0245361328125,
-0.052093505859375,
0.033477783203125,
-0.00769805908203125,
0.0128021240234375,
0.040374755859375,
-0.0222015380859375,
0.0231781005859375,
-0.0308074951171875,
0.0229339599609375,
-0.023681640625,
-0.0137176513671875,
0.040374755859375,
-0.035888671875,
0.01233673095703125
] |
c5257768809768d7a99ed478d1146f082d6debc4
|
Wordpress Stackexchange
Q: what is __return_false in filters I was thinking of removing/hiding admin-bar from my wordpress (3.1.1) installation.
I visited following link:
http://codex.wordpress.org/Plugin_API/Filter_Reference/show_admin_bar
I was surprised to see only a single line to remove/hide admin-bar
add_filter( 'show_admin_bar', '__return_false' );
My question is what is __return_false means? why __ and _?
A: WordPress contains built in functions for quickly returning values.
They are intended to be used as a quick built in function that returns a common value to a filter hook such as true, false, or an empty array.
*
*__return_false — Returns the Boolean value of false.
*__return_true — Returns the Boolean value of true.
*__return_empty_array — Returns an empty PHP array.
*__return_zero — Returns the integer 0.
*__return_null — Returns NULL.
*__return_empty_string — Returns ''.
|
Q: what is __return_false in filters I was thinking of removing/hiding admin-bar from my wordpress (3.1.1) installation.
I visited following link:
http://codex.wordpress.org/Plugin_API/Filter_Reference/show_admin_bar
I was surprised to see only a single line to remove/hide admin-bar
add_filter( 'show_admin_bar', '__return_false' );
My question is what is __return_false means? why __ and _?
A: WordPress contains built in functions for quickly returning values.
They are intended to be used as a quick built in function that returns a common value to a filter hook such as true, false, or an empty array.
*
*__return_false — Returns the Boolean value of false.
*__return_true — Returns the Boolean value of true.
*__return_empty_array — Returns an empty PHP array.
*__return_zero — Returns the integer 0.
*__return_null — Returns NULL.
*__return_empty_string — Returns ''.
|
wordpress
|
{
"language": "en",
"length": 126,
"provenance": "stackexchange_00019.jsonl.gz:408823",
"question_score": "20",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15382"
}
|
[
0.058258056640625,
0.00022995471954345703,
0.0142669677734375,
-0.0007624626159667969,
0.007045745849609375,
-0.040802001953125,
0.03948974609375,
-0.039306640625,
0.0239715576171875,
0.022613525390625,
-0.0215301513671875,
-0.043487548828125,
0.026885986328125,
-0.021148681640625,
-0.040802001953125,
-0.0321044921875,
0.0099029541015625,
0.025543212890625,
0.01157379150390625,
-0.005420684814453125,
-0.0256195068359375,
0.00644683837890625,
-0.02056884765625,
0.0049896240234375,
0.037017822265625,
-0.072021484375,
0.0653076171875,
-0.027679443359375,
0.035400390625,
-0.0191802978515625,
0.0203399658203125,
0.0031528472900390625,
-0.005046844482421875,
0.0645751953125,
-0.029449462890625,
0.021484375,
-0.027252197265625,
0.0509033203125,
0.03045654296875,
-0.01739501953125,
0.02545166015625,
0.0010175704956054688,
-0.03582763671875,
-0.0243682861328125,
-0.029022216796875,
-0.03125,
0.035430908203125,
0.015594482421875,
-0.0033092498779296875,
-0.0104522705078125,
0.0078277587890625,
0.0049591064453125,
0.01535797119140625,
-0.019073486328125,
-0.0018281936645507812,
0.00145721435546875,
-0.00927734375,
-0.0272064208984375,
0.04083251953125,
0.054107666015625,
-0.0128631591796875,
-0.0190582275390625,
-0.001605987548828125,
-0.0894775390625,
0.007640838623046875,
0.0252838134765625,
-0.03009033203125,
0.019561767578125,
-0.026947021484375,
-0.0018157958984375,
-0.013458251953125,
-0.051788330078125,
0.0173492431640625,
-0.0007801055908203125,
-0.03900146484375,
-0.02630615234375,
0.00218963623046875,
-0.005908966064453125,
0.039215087890625,
-0.017974853515625,
0.031402587890625,
0.0469970703125,
-0.059722900390625,
0.023193359375,
-0.0247039794921875,
0.0203399658203125,
0.0005369186401367188,
-0.032073974609375,
-0.0031490325927734375,
-0.026947021484375,
-0.00954437255859375,
-0.0019025802612304688,
-0.02911376953125,
0.002841949462890625,
-0.00849151611328125,
-0.0467529296875,
0.0330810546875,
0.026031494140625,
0.0015916824340820312,
-0.036285400390625,
-0.0122833251953125,
-0.01303863525390625,
-0.06341552734375,
0.0064544677734375,
0.005756378173828125,
0.0297393798828125,
-0.026519775390625,
-0.031768798828125,
0.0188140869140625,
0.036834716796875,
-0.0038127899169921875,
-0.02740478515625,
-0.0282135009765625,
-0.054229736328125,
-0.00487518310546875,
0.046051025390625,
-0.0277862548828125,
0.0087432861328125,
0.0184173583984375,
0.015960693359375,
0.00738525390625,
0.005970001220703125,
0.0089874267578125,
0.005680084228515625,
0.031494140625,
0.031341552734375,
-0.0250396728515625,
-0.01434326171875,
0.0072479248046875,
0.061614990234375,
-0.0178680419921875,
0.0052947998046875,
-0.015899658203125,
-0.017486572265625,
-0.0248870849609375,
-0.02935791015625,
0.0005655288696289062,
-0.00650787353515625,
0.0038318634033203125,
-0.01537322998046875,
0.03143310546875,
-0.025482177734375,
-0.00858306884765625,
0.0251922607421875,
-0.0255279541015625,
0.0050506591796875,
0.0027980804443359375,
0.02099609375,
-0.00954437255859375,
-0.021636962890625,
-0.005847930908203125,
-0.01568603515625,
0.0264892578125,
0.01776123046875,
-0.032196044921875,
0.057830810546875,
0.00794219970703125,
0.02276611328125,
-0.068603515625,
-0.0001327991485595703,
0.0229644775390625,
0.0031719207763671875,
0.00013387203216552734,
-0.03253173828125,
-0.0240631103515625,
-0.0165863037109375,
-0.039581298828125,
0.0119476318359375,
0.0160980224609375,
0.027984619140625,
0.01377105712890625,
-0.009124755859375,
-0.03387451171875,
-0.01364898681640625,
-0.01067352294921875,
-0.0014781951904296875,
0.0411376953125,
0.031890869140625,
0.017364501953125,
0.03692626953125,
-0.018310546875,
-0.048858642578125,
0.04974365234375,
-0.041778564453125,
-0.043975830078125,
-0.00018799304962158203,
0.00867462158203125,
0.013519287109375,
0.015869140625,
-0.0008792877197265625,
0.04150390625,
0.02960205078125,
0.0019512176513671875,
-0.03533935546875,
0.01491546630859375,
-0.0012989044189453125,
-0.03656005859375,
-0.00437164306640625,
-0.01285552978515625,
0.01026153564453125,
0.0250396728515625,
0.01120758056640625,
0.005817413330078125,
-0.0157318115234375,
-0.06878662109375,
0.0121917724609375,
-0.0379638671875,
0.040771484375,
-0.00811767578125,
0.057830810546875,
0.0028076171875,
0.01416015625,
-0.06817626953125,
0.10784912109375,
0.03594970703125,
-0.01184844970703125,
-0.0305633544921875,
0.03515625,
-0.0262298583984375,
0.04901123046875,
-0.044677734375,
-0.01076507568359375,
-0.03961181640625,
-0.00919342041015625,
0.0684814453125,
-0.0267791748046875,
-0.00804901123046875,
-0.03729248046875,
0.054595947265625,
-0.02471923828125,
-0.030029296875,
0.0546875,
0.06634521484375,
0.052520751953125,
-0.01288604736328125,
-0.01187896728515625,
-0.015777587890625,
-0.092041015625,
-0.0052337646484375,
0.07183837890625,
0.0239410400390625,
0.040557861328125,
-0.04229736328125,
-0.0211944580078125,
0.087646484375,
-0.0171356201171875,
-0.00994873046875,
-0.001201629638671875,
0.0248260498046875,
-0.02178955078125,
-0.019317626953125,
-0.05670166015625,
0.0677490234375,
-0.041839599609375,
0.0218048095703125,
0.03790283203125,
-0.055023193359375,
-0.005992889404296875,
-0.023773193359375,
0.0016546249389648438,
-0.003055572509765625,
-0.00835418701171875,
0.03839111328125,
-0.0160369873046875,
-0.027374267578125,
0.0167236328125,
0.002010345458984375,
0.0214080810546875,
-0.0194549560546875,
-0.005809783935546875,
0.0328369140625,
0.01186370849609375,
-0.0149688720703125,
0.017578125,
0.042755126953125,
-0.010284423828125,
-0.0438232421875,
0.0035457611083984375,
0.01300048828125,
-0.009307861328125,
-0.0279541015625,
0.01099395751953125,
-0.0014467239379882812,
-0.01242828369140625,
0.0047149658203125,
0.01126861572265625,
0.0017499923706054688,
-0.04522705078125,
0.021514892578125,
0.0033664703369140625,
0.005855560302734375,
0.058837890625,
-0.0080413818359375,
0.06268310546875,
-0.0070648193359375,
0.0086669921875,
0.0162506103515625,
-0.0112762451171875,
0.0069580078125,
-0.01971435546875,
0.0521240234375,
0.0458984375,
0.007450103759765625,
-0.005863189697265625,
-0.0014467239379882812,
0.02880859375,
0.012451171875,
-0.0084075927734375,
-0.0229034423828125,
0.002605438232421875,
-0.02606201171875,
0.005523681640625,
0.0311126708984375,
-0.01155853271484375,
0.031707763671875,
-0.00682830810546875,
-0.01497650146484375,
0.02545166015625,
-0.02001953125,
-0.0090789794921875,
-0.023193359375,
-0.0305328369140625,
-0.033477783203125,
0.042236328125,
-0.01019287109375,
0.0104522705078125,
0.04583740234375,
0.0031719207763671875,
0.05914306640625,
-0.035858154296875,
-0.036468505859375,
-0.01526641845703125,
-0.042022705078125,
-0.0145263671875,
-0.01448822021484375,
-0.043975830078125,
0.005218505859375,
0.09759521484375,
0.01922607421875,
-0.056427001953125,
0.0152435302734375,
-0.021270751953125,
-0.0233306884765625,
0.053436279296875,
-0.006683349609375,
-0.01187896728515625,
-0.005100250244140625,
0.015777587890625,
-0.033935546875,
-0.01532745361328125,
0.0121002197265625,
-0.0462646484375,
-0.0260467529296875,
-0.0029735565185546875,
0.0000947117805480957,
-0.0251922607421875,
0.01361083984375,
0.00414276123046875,
0.0017385482788085938,
-0.0297088623046875,
-0.0254974365234375,
0.01136016845703125,
-0.0372314453125,
0.0191497802734375,
0.0182952880859375,
-0.0258026123046875,
0.0239715576171875,
0.0065460205078125,
0.0233001708984375,
0.0240478515625,
-0.0099029541015625,
-0.0240020751953125,
0.02386474609375,
0.005367279052734375,
0.0286407470703125,
-0.01548004150390625,
0.035552978515625,
-0.048919677734375,
-0.00952911376953125,
0.011871337890625,
-0.027587890625,
0.0241546630859375,
-0.041290283203125,
0.05206298828125,
0.00768280029296875,
0.034149169921875,
0.0164947509765625,
0.0372314453125,
-0.03692626953125,
-0.02691650390625,
-0.04278564453125,
0.05755615234375,
-0.01666259765625,
-0.00006437301635742188,
-0.0118865966796875,
-0.00334930419921875,
-0.01165008544921875,
-0.02752685546875,
-0.04205322265625,
-0.0140228271484375,
-0.0966796875,
0.02081298828125,
-0.033782958984375,
-0.0200653076171875,
-0.00848388671875,
-0.0160064697265625,
-0.043609619140625,
-0.06243896484375,
0.02471923828125,
-0.034942626953125,
0.0287933349609375,
-0.01544952392578125,
0.0521240234375,
-0.07073974609375,
0.017669677734375,
-0.0280914306640625,
-0.04022216796875,
-0.0261993408203125,
0.0092620849609375,
0.04736328125,
-0.0147247314453125,
0.0418701171875,
-0.017059326171875,
0.03387451171875,
0.0224456787109375,
0.00269317626953125,
0.0004475116729736328,
-0.019500732421875,
0.00910186767578125,
0.0016756057739257812,
0.0031986236572265625,
-0.01007080078125,
-0.0211029052734375,
-0.03143310546875,
-0.0200958251953125,
-0.052001953125,
-0.0345458984375,
-0.044677734375,
0.006862640380859375,
-0.019287109375,
0.0094757080078125,
-0.0216522216796875,
-0.038299560546875,
-0.0013685226440429688,
-0.032562255859375,
-0.002689361572265625,
0.003826141357421875,
-0.0024509429931640625,
0.0177154541015625,
-0.0229644775390625,
-0.028472900390625,
0.018768310546875,
0.027435302734375,
0.017303466796875,
-0.0048828125,
-0.045501708984375,
-0.006259918212890625,
0.02587890625,
-0.0172882080078125,
0.07525634765625,
0.0167236328125,
-0.021881103515625,
0.0821533203125,
-0.0007772445678710938,
0.040191650390625,
-0.051483154296875,
0.057342529296875,
-0.024810791015625,
-0.002269744873046875,
0.0294342041015625,
-0.00019311904907226562,
-0.015106201171875,
0.01558685302734375,
-0.0125579833984375,
0.00275421142578125,
-0.0195159912109375,
0.026763916015625,
0.00031828880310058594,
-0.01515960693359375,
-0.0380859375,
-0.01708984375,
0.01157379150390625,
-0.0160675048828125,
0.020477294921875,
0.005603790283203125,
0.002727508544921875,
-0.0174560546875,
0.017181396484375,
-0.00736236572265625,
0.007419586181640625,
0.0245361328125,
-0.045013427734375,
0.03643798828125,
-0.022857666015625,
-0.0401611328125,
0.01245880126953125,
0.0021724700927734375,
0.0300140380859375,
-0.00560760498046875,
-0.055328369140625,
0.0124359130859375,
0.0162353515625,
0.010589599609375,
0.041259765625,
-0.00363922119140625,
0.05267333984375,
0.034088134765625,
-0.0172119140625,
-0.01284027099609375,
-0.00592041015625,
0.0030078887939453125,
-0.062103271484375,
0.044219970703125,
0.001880645751953125,
0.01293182373046875,
-0.03082275390625,
0.09149169921875,
0.01654052734375,
0.0169219970703125,
-0.0182037353515625,
0.0074615478515625,
-0.005588531494140625,
0.038330078125,
0.0205841064453125,
-0.0215301513671875,
0.01485443115234375,
0.0239105224609375,
0.01336669921875,
-0.031524658203125,
-0.0250396728515625,
0.0408935546875,
-0.01904296875,
0.00586700439453125,
0.0074615478515625,
0.00936126708984375,
0.0576171875,
-0.0120086669921875,
0.0997314453125,
0.07720947265625,
-0.0472412109375,
-0.040008544921875,
-0.016632080078125,
0.04632568359375,
-0.0211334228515625,
-0.0260772705078125,
0.004467010498046875,
-0.04779052734375,
-0.00913238525390625,
0.02618408203125,
-0.07196044921875,
0.02557373046875,
0.0246429443359375,
-0.020111083984375,
-0.005764007568359375,
0.0005273818969726562,
-0.02215576171875,
-0.0267791748046875,
-0.0159149169921875,
-0.0259552001953125,
0.0447998046875,
-0.01617431640625,
0.03302001953125,
-0.0280914306640625,
-0.004581451416015625,
0.003170013427734375,
0.00838470458984375,
0.062408447265625,
0.042266845703125,
-0.07568359375,
0.01270294189453125,
-0.055877685546875,
0.00787353515625,
-0.048858642578125,
-0.037506103515625,
-0.0278778076171875,
0.00882720947265625,
-0.0035305023193359375,
0.01432037353515625,
0.0091400146484375,
0.005641937255859375,
-0.0053863525390625,
0.01271820068359375,
0.0061492919921875,
0.0205841064453125,
-0.02764892578125,
0.0538330078125,
0.0172271728515625,
0.0204315185546875,
0.0014944076538085938,
0.002704620361328125,
-0.015838623046875,
-0.0018100738525390625,
0.01299285888671875,
0.00949859619140625,
-0.033721923828125,
0.0049285888671875,
-0.03704833984375,
-0.049835205078125,
0.023773193359375,
-0.01934814453125,
0.0246429443359375,
0.018646240234375,
0.0045318603515625,
0.0004892349243164062,
0.004650115966796875,
0.01425933837890625,
0.0271453857421875,
0.005584716796875,
-0.01361846923828125,
-0.005863189697265625,
-0.01369476318359375,
-0.0220184326171875,
0.01215362548828125,
0.006908416748046875,
0.0036373138427734375,
0.0084075927734375,
-0.051849365234375,
0.07391357421875,
0.06414794921875,
-0.00701141357421875,
0.0308990478515625,
0.00788116455078125,
0.0157318115234375,
0.0091705322265625,
-0.01068115234375,
-0.0015201568603515625,
-0.003124237060546875,
0.0606689453125,
0.020965576171875,
0.002445220947265625,
0.072021484375,
-0.0240478515625,
0.0310821533203125,
0.0462646484375,
0.04742431640625,
-0.095703125,
0.024627685546875,
0.014434814453125,
0.0013885498046875,
0.042938232421875,
-0.01169586181640625,
-0.029388427734375,
-0.09637451171875,
0.046539306640625,
0.00502777099609375,
-0.01157379150390625,
-0.00461578369140625,
-0.01531219482421875,
-0.006313323974609375,
0.0181884765625,
0.03851318359375,
0.0137786865234375,
-0.018768310546875,
-0.0071868896484375,
-0.005664825439453125,
0.00362396240234375,
0.048553466796875,
0.03533935546875,
-0.01934814453125,
-0.060455322265625,
-0.0643310546875,
-0.0733642578125,
-0.006618499755859375,
-0.08795166015625,
0.040313720703125,
-0.00247955322265625,
0.0299224853515625,
0.03253173828125,
-0.01387786865234375,
0.0208892822265625,
-0.01300048828125,
0.01131439208984375,
-0.03857421875,
-0.03680419921875,
0.016082763671875,
0.036651611328125,
-0.054351806640625,
0.04949951171875,
-0.013763427734375,
-0.03717041015625,
-0.020538330078125,
-0.014129638671875,
0.0723876953125,
0.0114593505859375,
-0.040313720703125,
0.00027298927307128906,
-0.0149993896484375,
-0.004123687744140625,
-0.0197906494140625,
0.039215087890625,
-0.058319091796875,
-0.005443572998046875,
-0.00278472900390625,
-0.018310546875,
-0.01131439208984375,
-0.03082275390625,
-0.032501220703125,
0.08935546875,
-0.010284423828125,
0.01447296142578125,
0.0164642333984375,
0.03668212890625,
-0.0255889892578125,
0.0188140869140625,
-0.007511138916015625,
0.01031494140625,
0.0252227783203125,
-0.01036834716796875,
-0.040740966796875,
-0.015899658203125,
-0.03387451171875,
0.04559326171875,
-0.0435791015625,
-0.01195526123046875,
-0.031402587890625,
-0.0012559890747070312,
0.0184478759765625,
0.0219268798828125,
0.030364990234375,
0.0404052734375,
0.00457763671875,
0.0205230712890625,
0.07574462890625,
-0.04541015625,
0.0303497314453125,
0.0030651092529296875,
0.0212249755859375,
0.022613525390625,
0.0037746429443359375,
0.012969970703125,
0.0261993408203125,
-0.01546478271484375,
-0.0045623779296875,
0.0016422271728515625,
0.0107421875,
-0.05511474609375,
0.0214080810546875,
-0.007503509521484375,
0.0020236968994140625,
0.015838623046875,
0.0333251953125,
-0.010040283203125,
0.0357666015625,
0.0034923553466796875,
-0.007404327392578125,
0.03521728515625,
0.004238128662109375,
0.00495147705078125,
-0.01194000244140625,
-0.00179290771484375,
0.005252838134765625,
-0.00814056396484375,
-0.015655517578125,
0.034515380859375,
0.0007214546203613281,
-0.00017940998077392578,
0.03118896484375,
0.0618896484375,
-0.00711822509765625,
-0.0222930908203125,
-0.059967041015625,
0.00852203369140625,
-0.0019369125366210938,
0.0205078125,
0.025909423828125,
0.009674072265625,
0.004364013671875,
0.056365966796875,
-0.037841796875,
-0.00246429443359375,
0.0310516357421875,
0.002025604248046875,
0.0081787109375,
0.024078369140625,
-0.0208282470703125,
-0.0006966590881347656,
-0.055511474609375,
0.0233917236328125,
0.023468017578125,
0.062225341796875,
0.0193328857421875,
0.0200958251953125,
-0.0278472900390625,
-0.03216552734375,
-0.0191802978515625,
0.0250396728515625,
-0.048492431640625,
0.041900634765625,
-0.073974609375,
-0.055267333984375,
0.00757598876953125,
0.0584716796875,
0.0014047622680664062,
0.00714874267578125,
0.05279541015625,
0.049041748046875,
-0.043365478515625,
-0.01514434814453125,
0.03656005859375,
-0.0226593017578125,
-0.061492919921875,
-0.04559326171875,
0.00601959228515625,
0.031890869140625,
0.0217437744140625,
0.0482177734375,
-0.004878997802734375,
0.031829833984375,
-0.004390716552734375,
0.007175445556640625,
0.0018205642700195312,
-0.0147857666015625,
0.04364013671875,
-0.035797119140625,
0.01904296875,
0.005855560302734375,
-0.042694091796875,
-0.0140380859375,
0.0276031494140625,
-0.05059814453125,
-0.002979278564453125,
0.0205078125,
-0.03277587890625,
0.0439453125,
0.02874755859375,
-0.0238037109375,
-0.02880859375,
0.014129638671875,
0.03131103515625,
-0.040130615234375,
0.0026683807373046875,
-0.006832122802734375,
-0.0034694671630859375,
0.01337432861328125,
0.001964569091796875,
-0.0005240440368652344,
0.03326416015625,
0.035552978515625,
0.0132598876953125,
0.009429931640625,
-0.03228759765625,
0.0188446044921875,
-0.050872802734375,
-0.025054931640625,
0.0019779205322265625,
-0.0167694091796875,
-0.0079803466796875,
0.02703857421875,
-0.04107666015625,
-0.034423828125,
0.044342041015625,
-0.036773681640625,
-0.0029354095458984375,
-0.0179901123046875,
0.032501220703125,
-0.032318115234375,
0.003261566162109375,
-0.01016998291015625,
-0.04071044921875,
-0.017578125,
0.0010585784912109375,
0.03271484375,
0.043914794921875,
0.0098114013671875,
0.01345062255859375,
0.0018749237060546875,
-0.049224853515625,
0.0205078125,
-0.054840087890625,
0.034271240234375,
0.040863037109375,
-0.01169586181640625,
0.0291900634765625,
-0.03265380859375,
-0.032379150390625,
0.04205322265625,
-0.01154327392578125,
0.01175689697265625,
-0.0293426513671875,
0.034149169921875,
-0.009521484375,
0.00704193115234375,
0.005889892578125,
-0.0452880859375,
0.0009741783142089844,
0.0333251953125,
0.002712249755859375,
-0.0106658935546875,
0.01763916015625,
-0.02099609375,
-0.0271453857421875,
-0.03741455078125,
-0.00949859619140625,
-0.04241943359375,
-0.06488037109375,
-0.08673095703125,
0.061981201171875,
0.0308990478515625,
-0.0216827392578125,
-0.0361328125,
0.0249786376953125,
-0.05206298828125,
0.09100341796875,
-0.0111083984375,
0.0731201171875,
0.004528045654296875,
0.024749755859375,
-0.04632568359375,
0.00339508056640625,
-0.00342559814453125,
0.0031604766845703125,
0.0110931396484375,
-0.0203094482421875,
-0.00298309326171875,
-0.0086669921875,
-0.002300262451171875,
-0.033782958984375,
-0.0009694099426269531,
0.00345611572265625,
0.01032257080078125,
-0.007457733154296875,
0.006313323974609375,
0.0198211669921875,
-0.037200927734375,
-0.04248046875,
0.0229034423828125,
-0.02490234375,
-0.035919189453125,
-0.01348876953125,
-0.00809478759765625,
0.014892578125,
-0.05010986328125,
-0.07904052734375,
0.0192718505859375,
-0.00910186767578125,
-0.0272674560546875,
-0.0157318115234375,
-0.01276397705078125,
-0.01337432861328125,
0.0164642333984375,
0.009124755859375,
-0.036041259765625,
-0.0312347412109375,
0.014404296875,
0.016265869140625,
0.01849365234375,
0.047088623046875,
-0.0013303756713867188,
-0.044586181640625,
-0.025177001953125,
-0.04168701171875,
0.01059722900390625,
-0.0496826171875,
0.0264892578125,
-0.0002677440643310547,
0.0498046875,
0.008575439453125,
-0.01641845703125,
0.016815185546875,
-0.0269012451171875,
0.008148193359375,
-0.05718994140625,
-0.005748748779296875,
-0.022918701171875,
0.049530029296875,
-0.0059967041015625,
0.00882720947265625,
-0.0205078125,
-0.0638427734375,
-0.058837890625,
-0.01178741455078125,
-0.0232696533203125,
0.029693603515625,
-0.10382080078125,
0.0026798248291015625,
0.0239715576171875,
-0.008636474609375,
0.0212249755859375,
-0.010955810546875,
-0.02020263671875,
0.0005087852478027344,
0.009857177734375,
-0.006099700927734375,
-0.049957275390625,
-0.0660400390625,
0.045379638671875,
-0.02972412109375,
-0.049591064453125,
0.0129852294921875,
0.032745361328125,
-0.0201416015625,
0.01444244384765625,
-0.0131988525390625,
-0.025054931640625,
0.0271148681640625,
0.0147857666015625,
0.0248565673828125,
-0.024017333984375,
0.03759765625,
-0.00189971923828125,
0.01312255859375,
0.018096923828125,
-0.01904296875,
0.0141754150390625,
0.004207611083984375,
0.0300140380859375,
-0.006374359130859375,
0.05499267578125,
0.019744873046875,
0.09063720703125,
-0.005573272705078125,
0.057403564453125,
0.015411376953125,
-0.029571533203125,
0.0099639892578125,
-0.0114898681640625,
0.0032215118408203125,
0.0131988525390625,
0.0550537109375,
-0.034698486328125,
0.044677734375,
0.001857757568359375,
0.0458984375,
0.0219879150390625
] |
0e9ed00470e5df4442c90833d81b10425178066e
|
Wordpress Stackexchange
Q: Extra TinyMCE editor strips and tags? Hey guys, I've added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> tags. It doesn't preserve the line breaks.
The TinyMCE is setup like this:
wp_tiny_mce(true, array('editor_selector' => $field['class'] ) );
'<textarea name="', $field['id'], '" class="', $field['class'], '" id="', $field['id'], '" cols="60" rows="8" style="width:97%">', $meta ? esc_html($meta) : $field['std'], '</textarea>';
And that all works perfectly fine. All the formatting buttons work fine, except for the <P> and <BR> tags.
I'm not sure if the editor is stripping them out before or after the post meta is saved.
Ideas?
A: This seems to have changed a little in subsequent versions of Wordpress. You can now disable this functionality thusly:
add_filter('tiny_mce_before_init', function($init) {
$init['wpautop'] = false;
return $init;
}
|
Q: Extra TinyMCE editor strips and tags? Hey guys, I've added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> tags. It doesn't preserve the line breaks.
The TinyMCE is setup like this:
wp_tiny_mce(true, array('editor_selector' => $field['class'] ) );
'<textarea name="', $field['id'], '" class="', $field['class'], '" id="', $field['id'], '" cols="60" rows="8" style="width:97%">', $meta ? esc_html($meta) : $field['std'], '</textarea>';
And that all works perfectly fine. All the formatting buttons work fine, except for the <P> and <BR> tags.
I'm not sure if the editor is stripping them out before or after the post meta is saved.
Ideas?
A: This seems to have changed a little in subsequent versions of Wordpress. You can now disable this functionality thusly:
add_filter('tiny_mce_before_init', function($init) {
$init['wpautop'] = false;
return $init;
}
A: Here's (a pared-down version of) what I use to custom-configure TinyMCE:
// http://tinymce.moxiecode.com/wiki.php/Configuration
function cbnet_tinymce_config( $init ) {
// Don't remove line breaks
$init['remove_linebreaks'] = false;
// Pass $init back to WordPress
return $init;
}
add_filter('tiny_mce_before_init', 'cbnet_tinymce_config');
I assume this is what you tried already?
EDIT:
You may need to include some other config changes, such as:
// Convert newline characters to BR tags
$init['convert_newlines_to_brs'] = true;
// Do not remove redundant BR tags
$init['remove_redundant_brs'] = false;
Play around with the TinyMCE configuration parameters, and find the one that you need to change.
A: Found perhaps a simpler workaround for this:
on the actual template, change this:
<?php echo get_the_content());?>
to this:
<?php echo wpautop(get_the_content());?>
This way wpautop() adds the tags stripped out by TinyMCE on a template by template basis.
A: why not you use wordpress new function wp_editor to render the tinymce. That way everything will get handled. And when you show the content to the user apply the filter the_content.
Like this:
$meta = "content of the metabox";
echo apply_filters('the_content', $meta);
The filter the_content will autmatically convert the link brakes to <br> and <p>.
A: I recently got this working. You should search and replace metaname with your meta box name.
The key to maintaining formatting was using wpautop(); when saving the data.
add_action( 'add_meta_boxes', 'add_metaname_box');
add_action( 'save_post', 'metaname_save');
function add_metaname_box() {
add_meta_box(
'metaname_id',
__( 'metaname text', 'metaname_textdomain'),
'metaname_custom_box',
'page'
);
}
function metaname_custom_box() {
global $post;
wp_nonce_field( plugin_basename( __FILE__ ), 'metaname_noncename' );
$data = get_post_meta($post->ID, 'metaname_custom_box', true);
echo <<<EOT
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#metaname_custom_box").addClass("mceEditor");
if ( typeof( tinyMCE ) == "object" &&
typeof( tinyMCE.execCommand ) == "function" ) {
tinyMCE.execCommand("mceAddControl", false, "metaname_custom_box");
}
});
</script>
<textarea id="metaname_custom_box" name="metaname_custom_box">$data</textarea>
EOT;
}
function metaname_save($post_id) {
global $post;
// Verify
if ( !wp_verify_nonce( $_POST['metaname_noncename'], plugin_basename(__FILE__) )) {
return $post_id;
}
if ( 'page' == $_POST['post_type'] ) {
if ( !current_user_can( 'edit_page', $post_id ))
return $post_id;
} else {
if ( !current_user_can( 'edit_post', $post_id ))
return $post_id;
}
$key = 'metaname_custom_box';
$data = wpautop($_POST[$key]);
// New, Update, and Delete
if(get_post_meta($post_id, $key) == "")
add_post_meta($post_id, $key, $data, true);
elseif($data != get_post_meta($post_id, $key, true))
update_post_meta($post_id, $key, $data);
elseif($data == "")
delete_post_meta($post_id, $key, get_post_meta($post_id, $key, true));
}
A: Another simple solution: Use Shortcodes!
Place this code into functions.php and use [br] in the content editor - HTML or visual - wherever you want a br tag to appear.
add_shortcode("br", "br_tag");
function br_tag(){
return("<br/>");
}
A: this is for who use the metaboxes for wordpress:
Plugin Name: Meta Box
Plugin URI: deluxeblogtips com/meta-box
i have modify the /vendor/meta-box/inc/fields/wysiwyg.php
in static function :
static function html( $html, $meta, $field )
//just after the else i have added :
$meta = html_entity_decode($meta); //
//and solve the problem ;)
-- BUT THE BETTER SOLUTION IS --
Put this into functions.php, it calls the filter from the metaboxes pluggin:
function meta_wysiwyg_antes_save($meta)
{
$meta = html_entity_decode($meta);
return $meta;
}
add_filter("rwmb_(ID-OF-METABOX-FIELD)_meta", "meta_wysiwyg_antes_save"); //en meta-box.php 194
|
wordpress
|
{
"language": "en",
"length": 632,
"provenance": "stackexchange_00019.jsonl.gz:408830",
"question_score": "23",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15394"
}
|
[
-0.006134033203125,
-0.027618408203125,
-0.020477294921875,
0.0191497802734375,
-0.0194549560546875,
-0.0164031982421875,
0.033477783203125,
-0.01441192626953125,
0.0027103424072265625,
0.05572509765625,
-0.0025768280029296875,
-0.0081787109375,
0.017120361328125,
-0.0221710205078125,
-0.0225982666015625,
0.0001531839370727539,
0.01027679443359375,
0.015960693359375,
0.016571044921875,
-0.01477813720703125,
-0.0029354095458984375,
0.0068206787109375,
0.0032024383544921875,
-0.0239410400390625,
0.01654052734375,
0.0261993408203125,
0.06378173828125,
-0.0241851806640625,
0.003711700439453125,
-0.03448486328125,
0.0162506103515625,
-0.015228271484375,
0.0401611328125,
0.06512451171875,
-0.09466552734375,
0.05499267578125,
-0.039337158203125,
0.04632568359375,
-0.002197265625,
0.0186767578125,
0.0002224445343017578,
0.01385498046875,
0.041534423828125,
0.01262664794921875,
-0.0304107666015625,
-0.0030517578125,
-0.0086517333984375,
-0.0252838134765625,
-0.0173187255859375,
-0.00799560546875,
-0.01126861572265625,
-0.0006632804870605469,
0.000675201416015625,
-0.027099609375,
-0.00531768798828125,
0.0014276504516601562,
-0.04962158203125,
-0.046478271484375,
0.00911712646484375,
0.061004638671875,
0.04736328125,
-0.005573272705078125,
-0.006072998046875,
-0.0030040740966796875,
-0.003025054931640625,
-0.022003173828125,
-0.046478271484375,
0.02117919921875,
-0.004100799560546875,
-0.0179443359375,
0.01015472412109375,
-0.031524658203125,
0.0193634033203125,
-0.0457763671875,
0.0078887939453125,
0.027557373046875,
-0.0207366943359375,
-0.0115509033203125,
-0.005168914794921875,
-0.006649017333984375,
0.0088653564453125,
-0.00356292724609375,
-0.0151214599609375,
-0.020721435546875,
0.0186004638671875,
0.0046539306640625,
-0.00665283203125,
0.0018892288208007812,
-0.03228759765625,
-0.030792236328125,
-0.0196990966796875,
-0.063232421875,
-0.054534912109375,
0.02496337890625,
0.00992584228515625,
-0.0341796875,
-0.0118865966796875,
-0.0246734619140625,
0.006381988525390625,
0.00722503662109375,
0.01306915283203125,
-0.05181884765625,
0.040924072265625,
-0.0164642333984375,
0.042633056640625,
-0.016876220703125,
-0.0295562744140625,
-0.01306915283203125,
0.08367919921875,
0.037750244140625,
-0.01470947265625,
0.072021484375,
-0.008544921875,
-0.01372528076171875,
0.00203704833984375,
0.0006985664367675781,
-0.035858154296875,
0.027313232421875,
-0.006549835205078125,
0.005016326904296875,
-0.001575469970703125,
0.00304412841796875,
0.00978851318359375,
-0.018280029296875,
-0.002475738525390625,
-0.0031890869140625,
-0.00521087646484375,
-0.0118560791015625,
-0.0284423828125,
0.043914794921875,
-0.001903533935546875,
-0.0037384033203125,
-0.0150604248046875,
0.0347900390625,
-0.007320404052734375,
-0.01381683349609375,
0.017059326171875,
-0.04156494140625,
-0.0291748046875,
0.0265350341796875,
-0.033447265625,
-0.028045654296875,
-0.00011223554611206055,
-0.054656982421875,
-0.0211334228515625,
0.04278564453125,
0.016021728515625,
-0.0005097389221191406,
-0.0304412841796875,
-0.10064697265625,
0.033294677734375,
-0.0335693359375,
0.08221435546875,
-0.004856109619140625,
-0.043212890625,
-0.056182861328125,
0.0648193359375,
-0.060760498046875,
-0.044158935546875,
-0.09063720703125,
0.0174713134765625,
-0.01197052001953125,
0.0276947021484375,
-0.052093505859375,
-0.05462646484375,
-0.029144287109375,
-0.06341552734375,
-0.0128021240234375,
0.03155517578125,
0.0177459716796875,
0.03668212890625,
0.0241241455078125,
0.036224365234375,
0.0216064453125,
0.00677490234375,
-0.008697509765625,
-0.0305633544921875,
0.011962890625,
0.044647216796875,
0.00047326087951660156,
0.005054473876953125,
-0.0204315185546875,
0.0657958984375,
-0.00786590576171875,
-0.05230712890625,
0.02923583984375,
0.004398345947265625,
0.08306884765625,
0.0169677734375,
0.0238189697265625,
-0.0014514923095703125,
-0.02362060546875,
-0.0214691162109375,
-0.004352569580078125,
0.019012451171875,
-0.022308349609375,
-0.015411376953125,
-0.0187225341796875,
0.006061553955078125,
-0.012115478515625,
0.0178680419921875,
-0.0031604766845703125,
0.00128936767578125,
-0.0205078125,
-0.06060791015625,
0.006439208984375,
-0.017669677734375,
0.034515380859375,
0.00384521484375,
-0.00388336181640625,
0.0052947998046875,
-0.03546142578125,
0.01273345947265625,
0.0178070068359375,
0.0018053054809570312,
0.05108642578125,
0.02508544921875,
0.0313720703125,
0.023681640625,
-0.005008697509765625,
0.057586669921875,
0.0005869865417480469,
0.05047607421875,
0.04241943359375,
-0.0208587646484375,
-0.0447998046875,
-0.00811004638671875,
-0.01873779296875,
-0.0196533203125,
-0.0193634033203125,
0.0251312255859375,
0.027801513671875,
0.0267791748046875,
0.06280517578125,
-0.0421142578125,
-0.033966064453125,
-0.056396484375,
-0.037994384765625,
0.00917816162109375,
0.048187255859375,
0.02044677734375,
0.04461669921875,
-0.0212554931640625,
-0.0118408203125,
0.050079345703125,
-0.0173187255859375,
0.0073089599609375,
-0.00927734375,
0.004413604736328125,
0.039794921875,
-0.0111846923828125,
-0.0211944580078125,
0.01016998291015625,
-0.037261962890625,
0.004360198974609375,
0.0183563232421875,
-0.0254669189453125,
0.0109100341796875,
0.010711669921875,
-0.01158905029296875,
0.00823974609375,
0.0238037109375,
0.0224456787109375,
-0.009796142578125,
0.036712646484375,
0.04254150390625,
0.06298828125,
0.052764892578125,
-0.031463623046875,
0.0240478515625,
0.00319671630859375,
0.03448486328125,
-0.007709503173828125,
0.043121337890625,
0.02508544921875,
0.01251983642578125,
-0.062164306640625,
0.0077362060546875,
0.03814697265625,
0.04620361328125,
-0.0002200603485107422,
0.0304412841796875,
0.0291595458984375,
-0.0161590576171875,
0.0005517005920410156,
-0.048919677734375,
0.009521484375,
-0.006542205810546875,
0.029083251953125,
-0.0223388671875,
0.0084686279296875,
0.0024566650390625,
-0.040008544921875,
0.048492431640625,
0.0072784423828125,
-0.03460693359375,
0.023895263671875,
-0.0067291259765625,
0.0194244384765625,
-0.006900787353515625,
0.06793212890625,
0.052490234375,
-0.0259552001953125,
0.0170745849609375,
0.0012969970703125,
-0.0221710205078125,
-0.0034942626953125,
0.03424072265625,
0.0119781494140625,
-0.0240325927734375,
-0.043060302734375,
-0.01141357421875,
0.0421142578125,
0.036773681640625,
0.013824462890625,
-0.02325439453125,
0.0035686492919921875,
0.03851318359375,
-0.0190887451171875,
0.01490020751953125,
0.011138916015625,
-0.0810546875,
-0.016082763671875,
-0.012115478515625,
-0.0545654296875,
0.0118560791015625,
0.024200439453125,
0.005001068115234375,
-0.031402587890625,
-0.032958984375,
-0.042572021484375,
-0.036773681640625,
-0.046630859375,
0.058837890625,
-0.005382537841796875,
0.0134124755859375,
0.017486572265625,
0.0653076171875,
0.02569580078125,
-0.0704345703125,
0.040191650390625,
-0.0400390625,
-0.02392578125,
0.07257080078125,
-0.006595611572265625,
-0.02398681640625,
-0.007293701171875,
-0.004596710205078125,
0.0126190185546875,
0.006954193115234375,
-0.00389862060546875,
-0.0036296844482421875,
-0.011444091796875,
-0.0269317626953125,
0.039337158203125,
0.01187896728515625,
-0.01035308837890625,
0.005474090576171875,
0.0673828125,
-0.03546142578125,
-0.0200958251953125,
0.0018177032470703125,
-0.01507568359375,
0.03594970703125,
-0.00016570091247558594,
-0.01129913330078125,
-0.0207061767578125,
0.056854248046875,
-0.01079559326171875,
0.027496337890625,
0.049774169921875,
-0.005096435546875,
0.0083770751953125,
-0.0222320556640625,
-0.026458740234375,
-0.041534423828125,
-0.00579071044921875,
-0.0247955322265625,
0.006610870361328125,
-0.0198974609375,
0.000031828880310058594,
-0.033233642578125,
0.004833221435546875,
-0.04833984375,
0.028472900390625,
0.0035228729248046875,
-0.048248291015625,
0.049560546875,
-0.039093017578125,
0.0090789794921875,
-0.053741455078125,
0.02923583984375,
-0.0340576171875,
-0.017578125,
-0.00766754150390625,
0.02142333984375,
-0.045684814453125,
-0.04833984375,
-0.01131439208984375,
-0.0071868896484375,
-0.035369873046875,
0.0067291259765625,
-0.0165252685546875,
-0.003467559814453125,
-0.0225982666015625,
0.0100250244140625,
-0.0030117034912109375,
-0.035064697265625,
0.0138397216796875,
-0.0205078125,
0.003223419189453125,
0.013641357421875,
-0.0194549560546875,
-0.00853729248046875,
0.021087646484375,
-0.044219970703125,
-0.087646484375,
0.00553131103515625,
-0.07501220703125,
0.048828125,
0.0239410400390625,
0.01079559326171875,
-0.011962890625,
0.06182861328125,
-0.00440216064453125,
-0.0253143310546875,
0.026611328125,
0.04937744140625,
-0.04937744140625,
-0.025238037109375,
-0.006450653076171875,
-0.0638427734375,
-0.004642486572265625,
0.01425933837890625,
-0.0298614501953125,
-0.001857757568359375,
-0.0299072265625,
-0.064208984375,
0.030792236328125,
-0.047943115234375,
-0.041412353515625,
-0.038665771484375,
-0.04498291015625,
0.01465606689453125,
-0.0306549072265625,
0.0025634765625,
-0.0557861328125,
-0.048370361328125,
-0.00948333740234375,
-0.05694580078125,
-0.0089569091796875,
0.0229339599609375,
0.038543701171875,
0.0286712646484375,
0.0244598388671875,
0.0254364013671875,
-0.01459503173828125,
0.02996826171875,
0.02618408203125,
0.0305938720703125,
0.0121307373046875,
-0.030548095703125,
0.055206298828125,
0.035125732421875,
0.0279388427734375,
-0.0679931640625,
0.08355712890625,
-0.0021228790283203125,
0.02947998046875,
0.0034732818603515625,
0.0045166015625,
0.0242919921875,
-0.016265869140625,
-0.0117034912109375,
0.017852783203125,
0.0286712646484375,
-0.01451873779296875,
0.0020275115966796875,
-0.006320953369140625,
-0.0016908645629882812,
-0.01461029052734375,
-0.0085906982421875,
0.01105499267578125,
0.04217529296875,
0.05572509765625,
-0.01473236083984375,
0.00690460205078125,
0.0051727294921875,
-0.0216217041015625,
0.00551605224609375,
-0.0177154541015625,
-0.01136016845703125,
0.0152435302734375,
-0.003261566162109375,
-0.02972412109375,
0.00859832763671875,
-0.00433349609375,
-0.0267333984375,
0.006366729736328125,
-0.022308349609375,
-0.0401611328125,
0.0107269287109375,
0.053985595703125,
-0.011322021484375,
0.031036376953125,
0.0120086669921875,
-0.0038585662841796875,
-0.033782958984375,
-0.0047760009765625,
0.04254150390625,
-0.00890350341796875,
-0.02642822265625,
-0.0217437744140625,
-0.00125885009765625,
-0.01493072509765625,
0.0146331787109375,
0.044921875,
-0.0164031982421875,
0.0215301513671875,
-0.0059356689453125,
0.023162841796875,
0.00894927978515625,
0.04339599609375,
0.0260162353515625,
-0.005916595458984375,
-0.0095977783203125,
0.023773193359375,
-0.01812744140625,
-0.02496337890625,
0.010498046875,
0.02825927734375,
0.01253509521484375,
0.0229034423828125,
-0.01885986328125,
0.0158843994140625,
-0.00836181640625,
-0.0039215087890625,
0.006580352783203125,
-0.0218353271484375,
-0.03802490234375,
-0.00283050537109375,
0.017364501953125,
0.013916015625,
-0.00739288330078125,
0.0008420944213867188,
-0.004993438720703125,
-0.0289154052734375,
-0.0230865478515625,
-0.01288604736328125,
-0.053253173828125,
0.0021419525146484375,
0.01617431640625,
0.01483154296875,
0.004070281982421875,
-0.033477783203125,
-0.01195526123046875,
-0.0262908935546875,
-0.006984710693359375,
-0.0026721954345703125,
0.05633544921875,
-0.052093505859375,
0.010650634765625,
-0.03485107421875,
0.05279541015625,
-0.08990478515625,
0.0289764404296875,
0.0267333984375,
0.029327392578125,
-0.00421905517578125,
-0.01201629638671875,
-0.05242919921875,
-0.0240631103515625,
-0.011810302734375,
-0.033447265625,
-0.0252838134765625,
-0.02276611328125,
0.0237884521484375,
0.01605224609375,
-0.00916290283203125,
-0.038543701171875,
0.01458740234375,
0.01326751708984375,
0.02032470703125,
0.057342529296875,
-0.037994384765625,
0.054534912109375,
0.00563812255859375,
0.06622314453125,
-0.00986480712890625,
0.0106658935546875,
0.002452850341796875,
-0.0103302001953125,
0.0313720703125,
-0.05853271484375,
-0.00872802734375,
-0.01389312744140625,
-0.00982666015625,
-0.0107421875,
-0.0293426513671875,
0.004459381103515625,
0.02593994140625,
0.0180511474609375,
0.01557159423828125,
-0.010406494140625,
-0.0157928466796875,
0.026519775390625,
0.041259765625,
0.018218994140625,
-0.030731201171875,
-0.00876617431640625,
-0.0031337738037109375,
0.0261383056640625,
0.0258941650390625,
-0.0218963623046875,
0.0243988037109375,
-0.0228271484375,
0.00653839111328125,
0.00487518310546875,
0.0042266845703125,
-0.0063934326171875,
0.031097412109375,
0.014923095703125,
0.01540374755859375,
0.01087188720703125,
-0.0209503173828125,
0.0015735626220703125,
0.03314208984375,
0.0022907257080078125,
-0.0220489501953125,
0.01531982421875,
0.00978851318359375,
-0.00563812255859375,
0.025848388671875,
0.049896240234375,
0.082763671875,
-0.08148193359375,
0.0255279541015625,
0.03955078125,
-0.0128631591796875,
0.0157012939453125,
-0.0298004150390625,
-0.020599365234375,
-0.0445556640625,
0.08001708984375,
-0.024078369140625,
-0.015869140625,
0.0203857421875,
-0.012451171875,
-0.025421142578125,
-0.0406494140625,
0.0153656005859375,
0.01485443115234375,
-0.02630615234375,
0.035186767578125,
0.02825927734375,
0.006122589111328125,
-0.00736236572265625,
0.01389312744140625,
0.01166534423828125,
-0.03631591796875,
-0.0609130859375,
0.004852294921875,
0.01873779296875,
-0.043212890625,
0.0023975372314453125,
-0.0310821533203125,
0.0306396484375,
0.05291748046875,
-0.0462646484375,
0.04150390625,
0.024078369140625,
-0.0082550048828125,
0.007274627685546875,
-0.01849365234375,
0.006206512451171875,
0.043731689453125,
-0.005931854248046875,
0.0104827880859375,
0.0187225341796875,
-0.0143890380859375,
0.005176544189453125,
0.0201263427734375,
0.01464080810546875,
0.0106964111328125,
-0.041900634765625,
0.00424957275390625,
-0.0091094970703125,
0.0082855224609375,
-0.0491943359375,
-0.05145263671875,
-0.04132080078125,
-0.002933502197265625,
-0.08221435546875,
-0.03515625,
0.04669189453125,
-0.08636474609375,
-0.0821533203125,
0.10150146484375,
0.059417724609375,
0.0117645263671875,
-0.031036376953125,
0.04034423828125,
-0.0474853515625,
0.006870269775390625,
-0.02789306640625,
0.013397216796875,
0.006175994873046875,
-0.021820068359375,
-0.0625,
-0.01611328125,
-0.032470703125,
0.0531005859375,
0.00011515617370605469,
-0.00826263427734375,
0.0019006729125976562,
0.007110595703125,
0.03466796875,
0.022613525390625,
0.0002040863037109375,
0.008880615234375,
0.0211334228515625,
-0.01410675048828125,
0.007686614990234375,
0.007549285888671875,
0.047210693359375,
-0.0701904296875,
-0.014007568359375,
0.0207672119140625,
0.004199981689453125,
-0.00948333740234375,
-0.016510009765625,
-0.056121826171875,
-0.006771087646484375,
-0.01352691650390625,
-0.01377105712890625,
-0.0560302734375,
-0.0341796875,
0.037078857421875,
0.0157470703125,
-0.0699462890625,
-0.08404541015625,
-0.0311737060546875,
0.0172271728515625,
0.016510009765625,
0.032867431640625,
0.00015628337860107422,
0.0092010498046875,
0.054229736328125,
-0.030364990234375,
0.004985809326171875,
0.0222320556640625,
-0.01611328125,
-0.0019359588623046875,
-0.0293731689453125,
-0.0130615234375,
-0.06085205078125,
0.0306243896484375,
0.07177734375,
0.017791748046875,
-0.02740478515625,
-0.0253753662109375,
-0.0038280487060546875,
-0.0192718505859375,
-0.00437164306640625,
-0.0205078125,
-0.0087738037109375,
-0.006244659423828125,
0.0166473388671875,
0.0265350341796875,
-0.034088134765625,
-0.037506103515625,
0.0129241943359375,
0.017059326171875,
0.064453125,
0.0154266357421875,
-0.048492431640625,
-0.0694580078125,
0.0026187896728515625,
-0.017547607421875,
0.045440673828125,
0.07293701171875,
0.01739501953125,
0.0355224609375,
-0.045074462890625,
-0.02593994140625,
0.0111541748046875,
0.006214141845703125,
0.023223876953125,
-0.007320404052734375,
0.0265350341796875,
0.001964569091796875,
0.01152801513671875,
0.0272064208984375,
0.027008056640625,
0.05157470703125,
0.01326751708984375,
-0.048187255859375,
0.0109100341796875,
0.024444580078125,
-0.024505615234375,
-0.057708740234375,
-0.0299224853515625,
-0.0418701171875,
0.01476287841796875,
0.0173797607421875,
0.04339599609375,
-0.007152557373046875,
0.0118865966796875,
-0.010894775390625,
0.0179595947265625,
0.001857757568359375,
-0.014434814453125,
-0.0101470947265625,
-0.0011987686157226562,
-0.0018672943115234375,
0.008209228515625,
-0.0186920166015625,
-0.0131683349609375,
-0.019500732421875,
-0.0379638671875,
0.03582763671875,
0.04345703125,
0.0009307861328125,
0.0028133392333984375,
-0.00432586669921875,
-0.0193023681640625,
0.0142364501953125,
-0.016845703125,
0.0178375244140625,
-0.000690460205078125,
-0.00679779052734375,
-0.0021228790283203125,
-0.02813720703125,
-0.0288238525390625,
-0.005352020263671875,
0.04034423828125,
0.0299530029296875,
0.048828125,
-0.00859832763671875,
0.028289794921875,
-0.01430511474609375,
0.04071044921875,
-0.032012939453125,
-0.0199737548828125,
0.034637451171875,
0.03143310546875,
0.03753662109375,
-0.026580810546875,
0.0242767333984375,
0.059661865234375,
0.0218505859375,
-0.0157928466796875,
0.0045928955078125,
0.02520751953125,
-0.0025005340576171875,
0.002750396728515625,
0.037200927734375,
-0.0122222900390625,
-0.03424072265625,
-0.06829833984375,
-0.0188751220703125,
0.03961181640625,
0.03326416015625,
0.01352691650390625,
0.0170135498046875,
0.04736328125,
-0.026458740234375,
0.0386962890625,
-0.032012939453125,
0.04058837890625,
0.03558349609375,
0.0256195068359375,
-0.0084075927734375,
0.00669097900390625,
-0.0180206298828125,
-0.01219940185546875,
0.01369476318359375,
0.00745391845703125,
-0.006175994873046875,
-0.05224609375,
0.055816650390625,
0.06475830078125,
0.0810546875,
-0.016571044921875,
0.0262451171875,
0.05316162109375,
0.007640838623046875,
0.0253753662109375,
-0.0030879974365234375,
-0.0295867919921875,
-0.00930023193359375,
-0.01849365234375,
0.021240234375,
-0.0210723876953125,
-0.0462646484375,
-0.11016845703125,
-0.021209716796875,
0.033905029296875,
0.0233001708984375,
-0.050506591796875,
0.02178955078125,
-0.0109100341796875,
0.0121612548828125,
0.006603240966796875,
0.01079559326171875,
-0.0281219482421875,
0.0228729248046875,
0.01003265380859375,
-0.052490234375,
-0.06640625,
0.0758056640625,
-0.051605224609375,
0.0125579833984375,
0.037567138671875,
-0.007335662841796875,
-0.026458740234375,
-0.0306243896484375,
-0.0018377304077148438,
0.0182647705078125,
-0.0231170654296875,
-0.015869140625,
0.0457763671875,
-0.0120697021484375,
-0.004550933837890625,
-0.06610107421875,
-0.024444580078125,
-0.05419921875,
0.0159912109375,
0.007717132568359375,
-0.0302734375,
-0.0264129638671875,
-0.0667724609375,
-0.09033203125,
0.0472412109375,
0.004322052001953125,
-0.0215606689453125,
0.01194000244140625,
0.0081329345703125,
-0.01535797119140625,
0.01042938232421875,
0.01508331298828125,
0.01216888427734375,
0.0233917236328125,
0.002407073974609375,
0.020111083984375,
0.043304443359375,
0.0165557861328125,
-0.02496337890625,
-0.0231170654296875,
0.0171661376953125,
-0.0004181861877441406,
0.0298614501953125,
-0.01345062255859375,
0.0335693359375,
-0.006069183349609375,
0.034637451171875,
-0.010284423828125,
-0.050567626953125,
-0.0224761962890625,
-0.04180908203125,
0.005519866943359375,
-0.033477783203125,
-0.047393798828125,
-0.034637451171875,
0.043670654296875,
0.03997802734375,
0.005615234375,
-0.024078369140625,
0.00997161865234375,
0.00550079345703125,
-0.043121337890625,
-0.003261566162109375,
0.022064208984375,
-0.053131103515625,
-0.01444244384765625,
-0.00817108154296875,
0.00765228271484375,
-0.0015745162963867188,
-0.01012420654296875,
-0.01092529296875,
-0.007053375244140625,
0.0226898193359375,
0.00325775146484375,
-0.0128326416015625,
-0.037994384765625,
0.052978515625,
-0.045135498046875,
-0.044342041015625,
0.0257110595703125,
0.020477294921875,
-0.00836181640625,
0.06280517578125,
-0.01520538330078125,
0.030364990234375,
-0.0594482421875,
0.00965118408203125,
-0.0016422271728515625,
0.01294708251953125,
-0.054412841796875,
0.004848480224609375,
0.006549835205078125,
-0.01447296142578125,
0.0026912689208984375,
-0.0157012939453125,
0.005340576171875,
-0.0465087890625,
-0.0293731689453125,
-0.01543426513671875,
-0.045257568359375,
-0.006809234619140625,
-0.03961181640625,
-0.0026149749755859375,
-0.0215606689453125,
0.046630859375,
0.010772705078125,
0.0136566162109375,
0.0113372802734375,
0.00798797607421875,
0.01096343994140625,
-0.0285491943359375,
0.017120361328125,
0.0174102783203125,
0.013763427734375,
0.0130157470703125
] |
53a89eeb86f64db4b142091a9425e17fc672eec4
|
Wordpress Stackexchange
Q: Any high quality form plugins? There are so many, and I've literally tried at least 10. None are quite right. I don't want one with all this "ajax" stuff. I just want something that validates the input server side, can handle multiple forms, and allows the fields to be customized.
All the plugins that I've tried thus far require way too much hacking and styling to get them to look alright. They try to be "cool" by saying "oh look this plugin has ajax". I honestly wouldn't mind ajax in the plugin if it is progressively enhanced and not too styled already.
*preferably free of course
A: Gravity Forms. Gravity Forms. Gravity Forms.
http://www.gravityforms.com/purchase-gravity-forms/
Buy it, 40 bucks, it's worth it over and over again.
(Theres also a free demo)
|
Q: Any high quality form plugins? There are so many, and I've literally tried at least 10. None are quite right. I don't want one with all this "ajax" stuff. I just want something that validates the input server side, can handle multiple forms, and allows the fields to be customized.
All the plugins that I've tried thus far require way too much hacking and styling to get them to look alright. They try to be "cool" by saying "oh look this plugin has ajax". I honestly wouldn't mind ajax in the plugin if it is progressively enhanced and not too styled already.
*preferably free of course
A: Gravity Forms. Gravity Forms. Gravity Forms.
http://www.gravityforms.com/purchase-gravity-forms/
Buy it, 40 bucks, it's worth it over and over again.
(Theres also a free demo)
A: Contact Form 7 is pretty good and free, I used it a lot before I switched to Gravity Forms
http://wordpress.org/extend/plugins/contact-form-7/
|
wordpress
|
{
"language": "en",
"length": 152,
"provenance": "stackexchange_00019.jsonl.gz:408846",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15448"
}
|
[
0.0594482421875,
-0.00209808349609375,
-0.0172576904296875,
-0.047210693359375,
0.0009684562683105469,
-0.011627197265625,
-0.000827789306640625,
-0.017425537109375,
-0.01035308837890625,
0.00490570068359375,
0.0024566650390625,
-0.0019426345825195312,
-0.027862548828125,
-0.032257080078125,
-0.0085296630859375,
-0.0268707275390625,
-0.0032711029052734375,
0.006839752197265625,
-0.0034923553466796875,
-0.04583740234375,
0.03521728515625,
-0.04083251953125,
-0.01067352294921875,
0.06805419921875,
0.0247039794921875,
0.01154327392578125,
0.00830078125,
0.0160369873046875,
-0.003204345703125,
0.001678466796875,
0.009613037109375,
-0.028564453125,
0.005889892578125,
0.02142333984375,
0.003692626953125,
-0.00859832763671875,
0.02362060546875,
-0.004375457763671875,
0.0238037109375,
0.012908935546875,
0.040771484375,
-0.02508544921875,
-0.0226898193359375,
0.033203125,
-0.007701873779296875,
-0.056884765625,
0.0430908203125,
-0.048187255859375,
0.0174102783203125,
-0.0243072509765625,
0.01488494873046875,
0.00045990943908691406,
0.036865234375,
-0.00972747802734375,
-0.0237274169921875,
-0.006443023681640625,
-0.01509857177734375,
-0.007282257080078125,
0.034912109375,
-0.0015649795532226562,
-0.01523590087890625,
-0.01013946533203125,
0.01580810546875,
-0.0022487640380859375,
-0.004779815673828125,
0.004085540771484375,
-0.07489013671875,
-0.0023193359375,
0.036956787109375,
0.0161285400390625,
0.00821685791015625,
-0.0341796875,
0.0033245086669921875,
-0.0086517333984375,
-0.01041412353515625,
0.0176849365234375,
0.016326904296875,
0.0286712646484375,
0.0223236083984375,
-0.019775390625,
0.0012760162353515625,
-0.0024738311767578125,
-0.03515625,
-0.00702667236328125,
-0.01062774658203125,
0.0036163330078125,
-0.017669677734375,
0.0005393028259277344,
-0.039886474609375,
-0.041107177734375,
-0.009796142578125,
-0.0914306640625,
-0.099853515625,
0.04840087890625,
0.047119140625,
-0.03125,
0.03338623046875,
-0.0296783447265625,
0.051605224609375,
0.01279449462890625,
0.08734130859375,
-0.10028076171875,
0.07757568359375,
-0.0088653564453125,
-0.0199127197265625,
0.004642486572265625,
0.036285400390625,
0.0275115966796875,
0.0248870849609375,
0.0082550048828125,
-0.018890380859375,
0.04669189453125,
0.01898193359375,
-0.00372314453125,
-0.01096343994140625,
-0.01015472412109375,
0.00287628173828125,
0.004093170166015625,
-0.0103607177734375,
-0.0259246826171875,
-0.00605010986328125,
-0.0031280517578125,
0.0287628173828125,
-0.030853271484375,
-0.035400390625,
-0.03826904296875,
-0.017120361328125,
-0.0231475830078125,
0.0005817413330078125,
-0.0213623046875,
-0.022674560546875,
0.032684326171875,
0.028167724609375,
0.0148162841796875,
-0.004863739013671875,
0.0118255615234375,
0.0172119140625,
-0.01971435546875,
0.00787353515625,
-0.01727294921875,
-0.01407623291015625,
-0.005275726318359375,
0.034271240234375,
-0.015350341796875,
-0.0309295654296875,
0.0254058837890625,
0.020050048828125,
0.003696441650390625,
-0.02691650390625,
-0.0287933349609375,
-0.02667236328125,
-0.014007568359375,
0.027435302734375,
-0.0014190673828125,
0.00984954833984375,
-0.0246429443359375,
0.048980712890625,
-0.0316162109375,
-0.0202178955078125,
-0.023956298828125,
-0.015045166015625,
0.0069122314453125,
0.0100555419921875,
-0.072265625,
-0.03369140625,
-0.041473388671875,
-0.01031494140625,
0.01471710205078125,
0.0184173583984375,
-0.0316162109375,
0.014617919921875,
0.042999267578125,
0.03387451171875,
0.0242156982421875,
0.0173187255859375,
0.00518798828125,
-0.038299560546875,
0.0269775390625,
0.04913330078125,
-0.02056884765625,
-0.01209259033203125,
-0.01450347900390625,
0.1151123046875,
-0.009918212890625,
-0.0195159912109375,
0.019775390625,
-0.0005173683166503906,
0.005001068115234375,
0.0111846923828125,
0.00228118896484375,
0.03704833984375,
0.043243408203125,
-0.0013170242309570312,
-0.0126800537109375,
-0.0201873779296875,
-0.004047393798828125,
-0.022674560546875,
0.0220489501953125,
-0.0286712646484375,
-0.0015249252319335938,
-0.035736083984375,
-0.01146697998046875,
-0.003116607666015625,
0.03753662109375,
-0.01377105712890625,
-0.012542724609375,
-0.01270294189453125,
0.0158538818359375,
-0.01213836669921875,
0.045562744140625,
0.00904083251953125,
0.003261566162109375,
-0.021881103515625,
0.0294647216796875,
0.030029296875,
-0.003204345703125,
0.0035419464111328125,
0.0226593017578125,
-0.00603485107421875,
0.047882080078125,
-0.031707763671875,
-0.00583648681640625,
-0.0257415771484375,
-0.018096923828125,
0.0020618438720703125,
0.043548583984375,
-0.035736083984375,
0.01708984375,
-0.0103607177734375,
0.0247039794921875,
0.00640106201171875,
0.01113128662109375,
0.042449951171875,
0.051605224609375,
-0.0288848876953125,
-0.0223388671875,
-0.0133514404296875,
-0.06298828125,
0.011199951171875,
0.045928955078125,
0.01508331298828125,
-0.01033782958984375,
-0.00978851318359375,
0.052032470703125,
-0.01021575927734375,
-0.062103271484375,
0.01018524169921875,
0.0271759033203125,
0.01271820068359375,
0.01421356201171875,
-0.0716552734375,
-0.0282745361328125,
0.050262451171875,
-0.0309295654296875,
0.00778961181640625,
0.040771484375,
-0.033599853515625,
-0.003711700439453125,
0.0072021484375,
0.004245758056640625,
-0.00022661685943603516,
-0.01483154296875,
0.01093292236328125,
-0.0224609375,
0.01523590087890625,
0.01137542724609375,
0.02294921875,
0.029449462890625,
0.00360107421875,
0.0268096923828125,
-0.0024280548095703125,
-0.08526611328125,
-0.00799560546875,
-0.00750732421875,
0.037353515625,
0.02032470703125,
-0.03485107421875,
0.0028057098388671875,
0.00665283203125,
-0.001495361328125,
-0.035858154296875,
-0.039306640625,
0.0252227783203125,
-0.0183258056640625,
0.0164947509765625,
-0.060028076171875,
0.03564453125,
-0.03204345703125,
0.00875091552734375,
-0.00913238525390625,
0.04571533203125,
-0.042327880859375,
-0.051910400390625,
0.03704833984375,
-0.01568603515625,
-0.059295654296875,
0.00968170166015625,
-0.03350830078125,
0.021392822265625,
0.00232696533203125,
0.06134033203125,
0.07244873046875,
0.007450103759765625,
0.007099151611328125,
0.0038166046142578125,
0.025115966796875,
0.0377197265625,
0.0017108917236328125,
-0.00415802001953125,
0.01129913330078125,
-0.058746337890625,
-0.026123046875,
0.0171051025390625,
0.0841064453125,
-0.0399169921875,
-0.065185546875,
0.00531768798828125,
0.03448486328125,
-0.06494140625,
-0.06341552734375,
-0.058746337890625,
-0.0196990966796875,
0.0239105224609375,
-0.0114288330078125,
0.00945281982421875,
0.00458526611328125,
-0.00530242919921875,
0.018524169921875,
-0.0225982666015625,
-0.0203857421875,
-0.049774169921875,
-0.04168701171875,
-0.07708740234375,
0.0007114410400390625,
-0.01248931884765625,
0.035858154296875,
0.008758544921875,
-0.0110015869140625,
-0.01519775390625,
-0.045318603515625,
-0.02044677734375,
0.0281219482421875,
0.006256103515625,
0.0007805824279785156,
-0.0277862548828125,
0.006114959716796875,
0.01389312744140625,
0.0032100677490234375,
-0.01502227783203125,
0.006534576416015625,
0.007030487060546875,
-0.027099609375,
-0.0377197265625,
-0.0024433135986328125,
-0.01666259765625,
0.00862884521484375,
0.03070068359375,
-0.003467559814453125,
-0.00031256675720214844,
-0.047943115234375,
-0.006664276123046875,
0.0161895751953125,
-0.0158233642578125,
0.0191802978515625,
-0.02978515625,
-0.0210723876953125,
0.0293731689453125,
0.00727081298828125,
0.0008006095886230469,
-0.01497650146484375,
0.0104217529296875,
0.002002716064453125,
-0.045166015625,
-0.0185089111328125,
0.004573822021484375,
0.0176544189453125,
-0.06182861328125,
-0.061676025390625,
0.027099609375,
-0.0355224609375,
-0.01325225830078125,
0.0174560546875,
0.031585693359375,
0.05609130859375,
-0.033782958984375,
0.032562255859375,
0.00853729248046875,
0.0408935546875,
-0.0224456787109375,
-0.0310821533203125,
-0.009368896484375,
0.08502197265625,
-0.0186920166015625,
0.00270843505859375,
0.0090789794921875,
-0.0017766952514648438,
-0.0240631103515625,
0.0009560585021972656,
-0.09271240234375,
-0.0016889572143554688,
-0.07958984375,
0.002422332763671875,
0.019256591796875,
-0.056671142578125,
0.0205841064453125,
-0.04345703125,
-0.051849365234375,
-0.028228759765625,
0.0169830322265625,
-0.0208892822265625,
0.0082244873046875,
-0.04559326171875,
-0.01088714599609375,
-0.06463623046875,
0.00007492303848266602,
-0.01617431640625,
-0.056060791015625,
-0.0149993896484375,
-0.01450347900390625,
0.0472412109375,
0.024261474609375,
-0.0235595703125,
0.00872802734375,
0.05474853515625,
-0.0205078125,
0.031036376953125,
-0.0001055002212524414,
0.037109375,
-0.0210723876953125,
-0.039276123046875,
-0.01120758056640625,
-0.035247802734375,
-0.017791748046875,
-0.0292816162109375,
-0.0287322998046875,
-0.0134429931640625,
-0.0125274658203125,
-0.021453857421875,
0.0014944076538085938,
-0.0096588134765625,
-0.01528167724609375,
-0.0179595947265625,
-0.091796875,
-0.005558013916015625,
-0.0460205078125,
-0.020660400390625,
-0.007171630859375,
-0.05206298828125,
-0.01849365234375,
0.013885498046875,
0.01160430908203125,
0.032379150390625,
0.000499725341796875,
-0.00244140625,
-0.0126953125,
-0.0936279296875,
-0.005207061767578125,
0.032379150390625,
0.0290374755859375,
0.012542724609375,
-0.027740478515625,
-0.062347412109375,
0.106689453125,
0.0235137939453125,
0.03472900390625,
-0.03082275390625,
0.01525115966796875,
0.001739501953125,
-0.0112762451171875,
0.016357421875,
0.025299072265625,
-0.0159454345703125,
-0.0015544891357421875,
0.0113525390625,
-0.002208709716796875,
0.00913238525390625,
-0.005382537841796875,
0.01456451416015625,
-0.0172271728515625,
-0.005435943603515625,
-0.03271484375,
0.01302337646484375,
0.0253753662109375,
0.00824737548828125,
0.00922393798828125,
0.01522064208984375,
0.016326904296875,
-0.00023221969604492188,
0.01338958740234375,
-0.0224151611328125,
0.00449371337890625,
-0.01509857177734375,
0.0307159423828125,
0.0169219970703125,
0.0212249755859375,
-0.0279541015625,
-0.015045166015625,
0.06927490234375,
0.0201263427734375,
-0.04241943359375,
0.0294342041015625,
-0.0433349609375,
-0.03668212890625,
-0.01160430908203125,
-0.00873565673828125,
0.01300048828125,
0.025665283203125,
0.0004220008850097656,
0.005619049072265625,
0.01178741455078125,
0.0017061233520507812,
-0.0243072509765625,
0.005157470703125,
0.0012884140014648438,
-0.0266876220703125,
0.01904296875,
-0.005916595458984375,
-0.0103759765625,
-0.0010242462158203125,
-0.01702880859375,
0.035675048828125,
0.025360107421875,
-0.0131072998046875,
0.0025081634521484375,
0.0640869140625,
0.003894805908203125,
-0.0552978515625,
0.02081298828125,
-0.050933837890625,
-0.0298919677734375,
0.00524139404296875,
0.027801513671875,
0.0144195556640625,
0.0035457611083984375,
0.005462646484375,
0.0246124267578125,
-0.0222320556640625,
0.0177154541015625,
0.03912353515625,
-0.0203094482421875,
0.004489898681640625,
0.03955078125,
0.00409698486328125,
0.0159454345703125,
-0.0035114288330078125,
-0.041534423828125,
-0.032073974609375,
-0.0257415771484375,
-0.0016345977783203125,
-0.06854248046875,
0.0293731689453125,
0.033660888671875,
-0.0025844573974609375,
0.0335693359375,
0.0164031982421875,
-0.1024169921875,
-0.087646484375,
-0.005649566650390625,
0.037078857421875,
0.06805419921875,
-0.021820068359375,
0.0166473388671875,
-0.034393310546875,
0.0243988037109375,
-0.0245208740234375,
0.0286865234375,
-0.0202484130859375,
-0.02093505859375,
0.0198516845703125,
-0.06488037109375,
-0.04644775390625,
-0.046844482421875,
-0.0609130859375,
-0.0012960433959960938,
-0.0184478759765625,
0.04779052734375,
0.01389312744140625,
0.04498291015625,
-0.016510009765625,
-0.0210113525390625,
0.01983642578125,
-0.0136260986328125,
-0.0257110595703125,
0.032501220703125,
-0.0241851806640625,
-0.0187835693359375,
0.03338623046875,
0.021636962890625,
-0.01555633544921875,
-0.02313232421875,
0.0114898681640625,
-0.0204315185546875,
-0.031097412109375,
-0.042236328125,
0.016815185546875,
0.0014848709106445312,
0.0246429443359375,
0.040740966796875,
0.054412841796875,
0.0235748291015625,
0.0211944580078125,
-0.0301971435546875,
0.0009388923645019531,
-0.005451202392578125,
0.0689697265625,
-0.0142669677734375,
-0.038360595703125,
0.062408447265625,
-0.00847625732421875,
0.0028285980224609375,
0.00847625732421875,
-0.020111083984375,
0.00882720947265625,
0.026580810546875,
0.026092529296875,
-0.034149169921875,
0.019866943359375,
-0.03265380859375,
-0.022735595703125,
0.020782470703125,
0.0233154296875,
0.01049041748046875,
0.03814697265625,
-0.020751953125,
0.021575927734375,
0.01348876953125,
-0.0268096923828125,
0.057037353515625,
0.005889892578125,
-0.0192108154296875,
0.036651611328125,
-0.038818359375,
0.00063323974609375,
0.0278472900390625,
0.0095062255859375,
-0.07470703125,
0.030181884765625,
-0.0136566162109375,
0.01158905029296875,
0.0280609130859375,
-0.02056884765625,
0.01441192626953125,
0.01111602783203125,
0.0275421142578125,
0.07183837890625,
0.00439453125,
0.041473388671875,
0.024871826171875,
-0.00018978118896484375,
-0.0094757080078125,
0.07354736328125,
0.01348114013671875,
-0.0753173828125,
0.0246734619140625,
0.017059326171875,
0.014007568359375,
-0.024688720703125,
0.01346588134765625,
0.007190704345703125,
-0.018096923828125,
-0.058197021484375,
0.015655517578125,
0.00022876262664794922,
-0.0220489501953125,
0.01074981689453125,
0.004302978515625,
0.06353759765625,
0.0282440185546875,
0.01258087158203125,
-0.016021728515625,
-0.00487518310546875,
0.009002685546875,
0.014892578125,
-0.020538330078125,
-0.0027618408203125,
0.033050537109375,
-0.0230255126953125,
0.01158905029296875,
0.0041656494140625,
-0.0032100677490234375,
-0.005947113037109375,
0.00695037841796875,
0.041046142578125,
0.03387451171875,
-0.0484619140625,
0.01097869873046875,
-0.0117950439453125,
-0.0128326416015625,
-0.0279693603515625,
-0.00450897216796875,
-0.056365966796875,
-0.0263519287109375,
-0.0191497802734375,
-0.0255126953125,
0.019134521484375,
-0.036346435546875,
-0.06304931640625,
0.03338623046875,
0.06719970703125,
-0.0077972412109375,
-0.01227569580078125,
0.01666259765625,
-0.0689697265625,
-0.0367431640625,
0.000056624412536621094,
0.026824951171875,
-0.035675048828125,
-0.0226898193359375,
0.011383056640625,
0.026092529296875,
-0.0201416015625,
-0.0106048583984375,
0.005687713623046875,
-0.0150604248046875,
-0.0036773681640625,
0.0090484619140625,
0.06903076171875,
0.0419921875,
0.021270751953125,
0.0184783935546875,
0.029266357421875,
0.0203857421875,
0.048675537109375,
0.015289306640625,
0.05401611328125,
-0.0428466796875,
0.0230865478515625,
0.03997802734375,
-0.0120849609375,
-0.043609619140625,
-0.016448974609375,
0.022308349609375,
-0.0139923095703125,
-0.0103302001953125,
-0.00656890869140625,
0.01126861572265625,
-0.0230255126953125,
0.02593994140625,
0.01331329345703125,
-0.026519775390625,
0.021240234375,
-0.03021240234375,
0.036895751953125,
0.0193023681640625,
-0.0095367431640625,
0.03759765625,
0.0159912109375,
0.010986328125,
-0.0163116455078125,
0.0045318603515625,
-0.0054473876953125,
0.009521484375,
0.045501708984375,
-0.046630859375,
0.004810333251953125,
-0.1448974609375,
-0.10223388671875,
0.06658935546875,
0.09796142578125,
-0.01270294189453125,
-0.0809326171875,
0.00955963134765625,
0.03131103515625,
0.037017822265625,
0.048980712890625,
0.054412841796875,
-0.053375244140625,
0.0200958251953125,
-0.03656005859375,
-0.00910186767578125,
-0.00453948974609375,
0.01824951171875,
-0.01488494873046875,
-0.0350341796875,
0.0197601318359375,
0.003726959228515625,
0.00409698486328125,
-0.005710601806640625,
0.0002739429473876953,
0.0361328125,
-0.00023317337036132812,
0.053619384765625,
-0.0723876953125,
-0.01360321044921875,
0.0015497207641601562,
0.0284271240234375,
-0.0218963623046875,
0.0193328857421875,
-0.0064239501953125,
-0.023040771484375,
-0.0283203125,
0.013336181640625,
0.036102294921875,
0.032623291015625,
0.061370849609375,
0.07025146484375,
0.0293121337890625,
0.0032253265380859375,
0.035919189453125,
-0.0018453598022460938,
-0.0784912109375,
-0.016448974609375,
-0.01255035400390625,
0.06671142578125,
0.0195159912109375,
0.0386962890625,
-0.0063323974609375,
0.049560546875,
-0.0211334228515625,
0.0286865234375,
0.01090240478515625,
-0.0216522216796875,
0.01183319091796875,
-0.0198822021484375,
0.044403076171875,
0.006984710693359375,
-0.064453125,
-0.0237579345703125,
-0.0011110305786132812,
0.004344940185546875,
-0.0100250244140625,
0.008209228515625,
-0.00666046142578125,
0.045257568359375,
0.01201629638671875,
-0.037933349609375,
0.0572509765625,
-0.01006317138671875,
0.0001418590545654297,
-0.00977325439453125,
-0.00304412841796875,
-0.034576416015625,
-0.0296478271484375,
0.00910186767578125,
0.0174560546875,
-0.02337646484375,
-0.002178192138671875,
0.0182647705078125,
0.01568603515625,
-0.008392333984375,
-0.0013866424560546875,
-0.0278472900390625,
0.032379150390625,
0.007137298583984375,
-0.033843994140625,
0.0228424072265625,
0.016204833984375,
-0.0160064697265625,
0.018463134765625,
-0.004215240478515625,
0.0240936279296875,
-0.0258941650390625,
-0.0231475830078125,
-0.001190185546875,
0.02911376953125,
0.0308380126953125,
0.03485107421875,
-0.01812744140625,
-0.04656982421875,
-0.0191497802734375,
-0.0024623870849609375,
0.005828857421875,
0.005878448486328125,
-0.0174407958984375,
0.018707275390625,
-0.0122222900390625,
-0.011383056640625,
0.0144805908203125,
-0.040283203125,
0.002887725830078125,
0.02398681640625,
-0.022491455078125,
-0.0036869049072265625,
0.030548095703125,
0.00469970703125,
0.014984130859375,
0.0272216796875,
0.0111083984375,
0.03680419921875,
-0.01373291015625,
0.0257415771484375,
-0.008941650390625,
0.01340484619140625,
-0.042694091796875,
-0.01363372802734375,
0.031646728515625,
0.019378662109375,
-0.032806396484375,
-0.05670166015625,
-0.001312255859375,
-0.0279693603515625,
-0.00229644775390625,
0.0214080810546875,
0.0012254714965820312,
-0.004329681396484375,
-0.006320953369140625,
0.005573272705078125,
0.01482391357421875,
-0.01953125,
-0.0223388671875,
-0.005390167236328125,
-0.033660888671875,
0.05120849609375,
-0.0312347412109375,
0.0650634765625,
0.0005292892456054688,
0.03936767578125,
-0.03631591796875,
-0.00916290283203125,
-0.0076751708984375,
0.01535797119140625,
0.007080078125,
0.0098876953125,
0.033721923828125,
-0.03485107421875,
-0.0091705322265625,
-0.0037975311279296875,
0.03717041015625,
0.043731689453125,
0.039764404296875,
-0.0210418701171875,
0.029998779296875,
-0.02178955078125,
0.004665374755859375,
-0.037506103515625,
0.005123138427734375,
-0.091552734375,
-0.0167694091796875,
-0.07415771484375,
0.017120361328125,
-0.01161956787109375,
-0.042999267578125,
-0.055206298828125,
0.034210205078125,
-0.018280029296875,
-0.0147705078125,
0.004001617431640625,
0.004383087158203125,
0.01132965087890625,
0.006885528564453125,
-0.0061187744140625,
0.00475311279296875,
-0.03717041015625,
-0.0139312744140625,
0.0140533447265625,
-0.002349853515625,
0.01383209228515625,
0.008392333984375,
-0.041717529296875,
0.0096435546875,
0.00930023193359375,
-0.0007295608520507812,
0.004741668701171875,
0.0253753662109375,
-0.00914764404296875,
0.0273895263671875,
-0.0186309814453125,
-0.0281829833984375,
-0.025726318359375,
-0.0523681640625,
0.046356201171875,
0.005290985107421875,
-0.040771484375,
-0.03240966796875,
0.0081939697265625,
-0.0161285400390625,
0.0209808349609375,
-0.0007195472717285156,
0.00946044921875,
0.011260986328125,
0.002201080322265625,
0.0267791748046875,
-0.0018777847290039062,
0.00154876708984375,
0.0311431884765625,
-0.03302001953125,
-0.0093231201171875,
-0.036224365234375,
0.018463134765625,
-0.018463134765625,
-0.01053619384765625,
0.048309326171875,
-0.0197601318359375,
0.032318115234375,
-0.036468505859375,
0.07904052734375,
-0.02459716796875,
0.013153076171875,
-0.00447845458984375,
0.035552978515625,
0.0452880859375,
0.0316162109375,
0.0269012451171875,
0.044769287109375,
-0.09197998046875,
0.01898193359375,
-0.0004138946533203125,
0.0307159423828125,
-0.07379150390625,
-0.0228271484375,
-0.00771331787109375,
0.03411865234375,
-0.010040283203125,
0.05340576171875,
-0.00637054443359375,
0.0548095703125,
0.0267333984375,
0.04486083984375,
0.0023746490478515625,
-0.0626220703125,
-0.0498046875,
0.057159423828125,
0.01197052001953125,
-0.032623291015625,
0.023040771484375,
-0.033355712890625,
0.00605010986328125,
0.00798797607421875,
-0.034149169921875,
-0.01001739501953125,
0.01483917236328125,
0.037200927734375,
-0.01531982421875,
0.0030727386474609375
] |
cea13ad404156389c5684bb16727379357951d9c
|
Wordpress Stackexchange
Q: remove missing image attachments Best way to programatically remove attachments that are missing images?
I ask because after using a caching plugin, I have images that have been input in the database as attachments that don't actually exist. These usually take the form of xxxx.1jpg, where xxxx.jpg is a valid. Sometimes this number is a 2 or a 21.
I guess it would be better to just remove "duplicate" bad images. I think it might be good to have other types of missing images remain, so they could be corrected. Ideas?
A: Try this:
$imgs = get_posts("post_type=attachment&numberposts=-1");
foreach($imgs as $img){
$file = get_attached_file($img->ID);
if(!file_exists($file)){
wp_delete_post( $img->ID, false );
}
}
|
Q: remove missing image attachments Best way to programatically remove attachments that are missing images?
I ask because after using a caching plugin, I have images that have been input in the database as attachments that don't actually exist. These usually take the form of xxxx.1jpg, where xxxx.jpg is a valid. Sometimes this number is a 2 or a 21.
I guess it would be better to just remove "duplicate" bad images. I think it might be good to have other types of missing images remain, so they could be corrected. Ideas?
A: Try this:
$imgs = get_posts("post_type=attachment&numberposts=-1");
foreach($imgs as $img){
$file = get_attached_file($img->ID);
if(!file_exists($file)){
wp_delete_post( $img->ID, false );
}
}
|
wordpress
|
{
"language": "en",
"length": 111,
"provenance": "stackexchange_00019.jsonl.gz:408854",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15467"
}
|
[
0.065185546875,
0.0056915283203125,
0.0133056640625,
0.027374267578125,
0.0239105224609375,
-0.041656494140625,
0.09307861328125,
-0.0511474609375,
0.0248870849609375,
0.0278167724609375,
-0.031463623046875,
0.0029239654541015625,
-0.011505126953125,
-0.01125335693359375,
-0.0254669189453125,
-0.033111572265625,
0.0217742919921875,
-0.0029811859130859375,
0.055023193359375,
0.0058135986328125,
0.0169525146484375,
0.02459716796875,
0.0277557373046875,
0.0019025802612304688,
-0.0119781494140625,
0.03924560546875,
0.08819580078125,
-0.021759033203125,
-0.0151824951171875,
-0.037017822265625,
0.00969696044921875,
0.03106689453125,
0.026824951171875,
0.008575439453125,
-0.0196075439453125,
-0.0034351348876953125,
-0.0100860595703125,
-0.0034770965576171875,
-0.0261993408203125,
0.0201416015625,
0.010986328125,
0.0158233642578125,
0.060211181640625,
-0.034881591796875,
0.008636474609375,
-0.007648468017578125,
0.0012559890747070312,
-0.036712646484375,
-0.01100921630859375,
0.007564544677734375,
0.038299560546875,
0.006061553955078125,
0.052215576171875,
0.00458526611328125,
-0.0139312744140625,
-0.0010118484497070312,
-0.0347900390625,
0.06103515625,
0.0355224609375,
-0.00809478759765625,
-0.031768798828125,
0.0056304931640625,
0.00485992431640625,
-0.01047515869140625,
0.008270263671875,
-0.010528564453125,
0.012115478515625,
0.0240478515625,
-0.062469482421875,
-0.00943756103515625,
0.043975830078125,
-0.035919189453125,
-0.007511138916015625,
-0.027435302734375,
0.005603790283203125,
0.0333251953125,
-0.01520538330078125,
0.0091705322265625,
0.007083892822265625,
0.0011339187622070312,
0.05963134765625,
-0.01806640625,
-0.024688720703125,
0.03839111328125,
0.0022487640380859375,
0.059722900390625,
0.018707275390625,
-0.042572021484375,
-0.039276123046875,
-0.020263671875,
-0.0194854736328125,
-0.058837890625,
-0.04925537109375,
0.01849365234375,
-0.00975799560546875,
-0.0198822021484375,
0.0367431640625,
0.0283966064453125,
-0.01361846923828125,
-0.0124053955078125,
-0.0080108642578125,
-0.036773681640625,
-0.0051727294921875,
-0.023193359375,
0.00995635986328125,
-0.00807952880859375,
-0.0170745849609375,
-0.054443359375,
0.0095062255859375,
0.03790283203125,
-0.03228759765625,
0.017242431640625,
0.01073455810546875,
-0.019134521484375,
-0.00788116455078125,
0.01105499267578125,
-0.0096435546875,
0.03033447265625,
0.004901885986328125,
0.01092529296875,
-0.01390838623046875,
-0.0010271072387695312,
-0.050628662109375,
-0.01251983642578125,
0.031890869140625,
-0.02069091796875,
-0.0299835205078125,
0.0517578125,
0.0325927734375,
0.00963592529296875,
-0.07427978515625,
0.0283660888671875,
0.09521484375,
-0.028167724609375,
0.007610321044921875,
-0.03338623046875,
-0.024169921875,
-0.0024127960205078125,
0.0099029541015625,
-0.01280975341796875,
0.032745361328125,
-0.0297393798828125,
0.003971099853515625,
0.033905029296875,
-0.0033702850341796875,
0.0161590576171875,
-0.007534027099609375,
0.022735595703125,
0.0220489501953125,
-0.041595458984375,
0.04583740234375,
-0.0792236328125,
0.02813720703125,
0.00789642333984375,
-0.00826263427734375,
-0.0206146240234375,
0.056915283203125,
-0.045684814453125,
-0.0178375244140625,
-0.058349609375,
0.03997802734375,
-0.0004391670227050781,
-0.0147247314453125,
-0.007205963134765625,
-0.030426025390625,
-0.00040984153747558594,
-0.029205322265625,
-0.01274871826171875,
0.014495849609375,
-0.0121612548828125,
0.003635406494140625,
-0.033172607421875,
-0.0007266998291015625,
0.006988525390625,
0.0034427642822265625,
0.03778076171875,
0.0117034912109375,
-0.009674072265625,
0.00872039794921875,
0.060638427734375,
0.0175628662109375,
-0.0147247314453125,
0.04058837890625,
-0.0006775856018066406,
-0.07012939453125,
-0.0129852294921875,
0.00876617431640625,
0.039215087890625,
0.041778564453125,
0.0112152099609375,
0.07452392578125,
-0.02362060546875,
-0.030731201171875,
0.01171112060546875,
-0.0274810791015625,
-0.001209259033203125,
-0.0145111083984375,
0.005947113037109375,
-0.012054443359375,
0.01561737060546875,
0.003208160400390625,
0.0323486328125,
-0.0245513916015625,
0.007659912109375,
-0.05450439453125,
0.0128631591796875,
-0.016845703125,
0.023834228515625,
-0.1153564453125,
0.0153656005859375,
0.07403564453125,
0.005161285400390625,
-0.05810546875,
0.0260009765625,
0.0496826171875,
-0.0185699462890625,
-0.0064239501953125,
-0.04034423828125,
-0.0244140625,
0.0267791748046875,
-0.046173095703125,
-0.006061553955078125,
-0.06890869140625,
0.01000213623046875,
0.044464111328125,
0.020751953125,
-0.037261962890625,
-0.0008068084716796875,
0.0133056640625,
0.01461029052734375,
-0.046112060546875,
0.0506591796875,
-0.0137786865234375,
0.002201080322265625,
-0.0123291015625,
-0.01215362548828125,
-0.0018768310546875,
-0.10009765625,
0.0190277099609375,
0.057037353515625,
0.02618408203125,
0.0126495361328125,
-0.02398681640625,
-0.01039886474609375,
0.084716796875,
0.02911376953125,
0.007495880126953125,
-0.000762939453125,
-0.021820068359375,
-0.03985595703125,
0.0191192626953125,
-0.00548553466796875,
0.037628173828125,
-0.02276611328125,
0.040252685546875,
0.02740478515625,
0.00711822509765625,
-0.0008759498596191406,
-0.031646728515625,
0.0325927734375,
0.01093292236328125,
0.005329132080078125,
-0.0179290771484375,
0.0034160614013671875,
0.047119140625,
-0.0177764892578125,
0.026824951171875,
0.007266998291015625,
-0.010009765625,
0.0038089752197265625,
0.004222869873046875,
-0.07275390625,
0.011383056640625,
0.044403076171875,
-0.0033550262451171875,
0.033050537109375,
-0.006954193115234375,
-0.010467529296875,
0.01152801513671875,
0.02667236328125,
-0.018829345703125,
0.0173187255859375,
0.017822265625,
-0.00013720989227294922,
-0.02288818359375,
-0.0199737548828125,
0.03912353515625,
-0.00510406494140625,
-0.0269775390625,
0.00237274169921875,
0.0246734619140625,
0.02362060546875,
0.034271240234375,
-0.038787841796875,
0.0203094482421875,
0.0195770263671875,
-0.02239990234375,
-0.046051025390625,
0.0732421875,
-0.051116943359375,
-0.0001024007797241211,
0.06976318359375,
-0.020416259765625,
0.038482666015625,
0.0007691383361816406,
0.0223236083984375,
0.01470184326171875,
0.01035308837890625,
0.01038360595703125,
-0.02606201171875,
-0.0154876708984375,
0.00641632080078125,
-0.004001617431640625,
0.05419921875,
-0.05157470703125,
-0.052825927734375,
-0.0161895751953125,
-0.018463134765625,
-0.10546875,
-0.10546875,
-0.020477294921875,
-0.02301025390625,
-0.04974365234375,
0.035552978515625,
-0.0159759521484375,
0.004230499267578125,
0.06884765625,
-0.00969696044921875,
0.002315521240234375,
-0.0272674560546875,
-0.0200958251953125,
-0.032806396484375,
-0.03759765625,
-0.0206451416015625,
0.0096282958984375,
-0.00617218017578125,
-0.00011944770812988281,
0.060333251953125,
0.00485992431640625,
-0.037689208984375,
0.0156097412109375,
0.005924224853515625,
0.009185791015625,
0.0213470458984375,
0.0189971923828125,
0.00048422813415527344,
0.0106201171875,
0.0029659271240234375,
0.036102294921875,
0.04779052734375,
-0.047515869140625,
-0.00435638427734375,
-0.029632568359375,
0.00797271728515625,
-0.0035228729248046875,
0.0180816650390625,
0.035064697265625,
0.0085906982421875,
0.01396942138671875,
-0.031280517578125,
-0.00798797607421875,
-0.007083892822265625,
-0.00574493408203125,
0.043426513671875,
-0.024566650390625,
-0.0157928466796875,
0.01345062255859375,
0.04974365234375,
0.02557373046875,
0.0009622573852539062,
-0.009002685546875,
-0.00681304931640625,
0.0255279541015625,
0.01506805419921875,
0.023681640625,
-0.016754150390625,
0.05780029296875,
-0.00910186767578125,
-0.0251312255859375,
0.007099151611328125,
0.009002685546875,
-0.0012912750244140625,
-0.01702880859375,
-0.022552490234375,
-0.02606201171875,
0.036102294921875,
0.007110595703125,
0.0504150390625,
-0.037628173828125,
-0.03704833984375,
-0.036529541015625,
0.0770263671875,
-0.006305694580078125,
-0.048919677734375,
-0.027679443359375,
0.0268707275390625,
-0.0200042724609375,
-0.036224365234375,
0.06451416015625,
-0.01348114013671875,
-0.07232666015625,
-0.0007123947143554688,
0.028076171875,
-0.052490234375,
-0.0195770263671875,
-0.025421142578125,
-0.057952880859375,
-0.016143798828125,
0.0276031494140625,
-0.03125,
0.02984619140625,
0.024078369140625,
0.016937255859375,
0.0027217864990234375,
-0.00794219970703125,
-0.04449462890625,
-0.03485107421875,
-0.00588226318359375,
-0.0491943359375,
0.0294342041015625,
0.0033855438232421875,
0.04364013671875,
-0.031951904296875,
0.016387939453125,
0.01468658447265625,
-0.0138397216796875,
-0.0025634765625,
0.005672454833984375,
-0.0302581787109375,
-0.015869140625,
-0.0018243789672851562,
-0.0440673828125,
-0.00820159912109375,
-0.06109619140625,
-0.054931640625,
-0.07806396484375,
-0.0310211181640625,
0.0189361572265625,
0.0068206787109375,
-0.0213165283203125,
0.01009368896484375,
-0.0097198486328125,
-0.0132598876953125,
0.0301513671875,
-0.006744384765625,
-0.0083770751953125,
-0.0171356201171875,
0.0003666877746582031,
0.013427734375,
0.0109405517578125,
-0.0218505859375,
0.0170135498046875,
0.0159759521484375,
0.0133056640625,
-0.0200653076171875,
-0.061737060546875,
-0.00048804283142089844,
0.02947998046875,
-0.005146026611328125,
0.015838623046875,
-0.0062103271484375,
-0.0220184326171875,
0.037628173828125,
-0.001922607421875,
-0.006122589111328125,
-0.0282745361328125,
0.052032470703125,
0.0072021484375,
-0.007747650146484375,
0.01474761962890625,
0.0143585205078125,
0.0291290283203125,
0.0104217529296875,
-0.01467132568359375,
-0.01534271240234375,
-0.017303466796875,
0.01959228515625,
-0.00382232666015625,
0.0081939697265625,
-0.01708984375,
-0.04034423828125,
0.00589752197265625,
-0.021575927734375,
0.0296478271484375,
0.0100555419921875,
-0.002727508544921875,
0.01224517822265625,
0.03997802734375,
0.011749267578125,
-0.0224609375,
0.01122283935546875,
-0.0311126708984375,
0.0272064208984375,
0.0017452239990234375,
-0.007083892822265625,
-0.002964019775390625,
-0.0011663436889648438,
-0.018402099609375,
0.0286712646484375,
-0.003505706787109375,
-0.03546142578125,
0.007205963134765625,
0.00856781005859375,
-0.0115814208984375,
-0.010833740234375,
0.04351806640625,
-0.005397796630859375,
-0.0247955322265625,
-0.007488250732421875,
-0.06292724609375,
-0.00518035888671875,
-0.060699462890625,
-0.02880859375,
0.00437164306640625,
-0.0249786376953125,
0.02301025390625,
0.003833770751953125,
-0.020416259765625,
0.004367828369140625,
-0.008941650390625,
-0.002948760986328125,
-0.0193328857421875,
0.03204345703125,
0.023651123046875,
0.0047149658203125,
-0.008392333984375,
0.0201873779296875,
0.023834228515625,
-0.0469970703125,
0.006465911865234375,
0.01558685302734375,
0.04339599609375,
-0.035491943359375,
-0.040740966796875,
0.0328369140625,
-0.035430908203125,
0.00838470458984375,
0.04827880859375,
0.027008056640625,
-0.0253143310546875,
-0.034393310546875,
0.01444244384765625,
0.06494140625,
-0.0214080810546875,
-0.031463623046875,
0.0147857666015625,
-0.0229949951171875,
-0.007266998291015625,
0.043121337890625,
-0.06866455078125,
0.0246124267578125,
0.037567138671875,
0.00846099853515625,
-0.04644775390625,
-0.0579833984375,
0.0155181884765625,
0.017974853515625,
-0.00970458984375,
-0.005970001220703125,
0.0265045166015625,
-0.01326751708984375,
0.0279083251953125,
-0.003276824951171875,
-0.0200042724609375,
-0.0008492469787597656,
0.0193023681640625,
0.00030875205993652344,
-0.0092010498046875,
-0.01091766357421875,
-0.0004353523254394531,
-0.038482666015625,
-0.0168609619140625,
0.02923583984375,
-0.0106048583984375,
-0.028656005859375,
-0.02197265625,
-0.004337310791015625,
0.03765869140625,
-0.0183258056640625,
-0.00316619873046875,
0.0148773193359375,
0.01026153564453125,
0.0013742446899414062,
0.058929443359375,
0.002628326416015625,
-0.012298583984375,
-0.0024585723876953125,
0.018280029296875,
0.0130462646484375,
-0.0272674560546875,
-0.0247955322265625,
-0.0167236328125,
-0.028533935546875,
-0.032012939453125,
0.035491943359375,
0.0399169921875,
0.0178680419921875,
-0.023712158203125,
-0.0257568359375,
0.0295867919921875,
-0.022674560546875,
-0.0274200439453125,
-0.0013914108276367188,
-0.03143310546875,
0.095458984375,
0.005855560302734375,
0.0017023086547851562,
-0.0020599365234375,
-0.05609130859375,
-0.01120758056640625,
0.04071044921875,
0.0186767578125,
0.00994873046875,
-0.0280914306640625,
-0.01629638671875,
0.03802490234375,
0.01320648193359375,
0.00988006591796875,
0.05340576171875,
-0.01299285888671875,
0.0163116455078125,
0.035247802734375,
-0.0012369155883789062,
0.01277923583984375,
0.0019483566284179688,
0.0310516357421875,
-0.0260772705078125,
0.09307861328125,
0.02301025390625,
-0.0015716552734375,
0.091552734375,
-0.03448486328125,
0.020050048828125,
-0.01451873779296875,
0.019012451171875,
-0.0096588134765625,
0.0213623046875,
-0.003139495849609375,
-0.00021505355834960938,
0.06365966796875,
-0.006992340087890625,
0.0115203857421875,
0.0005321502685546875,
0.0285186767578125,
0.007480621337890625,
-0.01800537109375,
-0.0089874267578125,
0.0029544830322265625,
0.00981903076171875,
-0.0003986358642578125,
-0.005298614501953125,
-0.0028858184814453125,
-0.06488037109375,
-0.0081787109375,
0.07086181640625,
-0.01190948486328125,
-0.01555633544921875,
0.01441192626953125,
0.00543212890625,
-0.00881195068359375,
-0.057037353515625,
-0.007801055908203125,
-0.0211181640625,
-0.0087127685546875,
-0.0104522705078125,
-0.007656097412109375,
0.0338134765625,
0.0302734375,
-0.002384185791015625,
-0.017486572265625,
0.013702392578125,
-0.038116455078125,
0.00899505615234375,
-0.0307769775390625,
0.016845703125,
0.02166748046875,
-0.08258056640625,
0.0171051025390625,
-0.038818359375,
0.0077972412109375,
-0.019317626953125,
-0.0199432373046875,
0.0655517578125,
-0.050445556640625,
-0.003246307373046875,
0.02667236328125,
0.06402587890625,
-0.005458831787109375,
0.0035572052001953125,
0.033416748046875,
-0.05291748046875,
-0.03094482421875,
0.004352569580078125,
-0.019775390625,
0.00396728515625,
0.00380706787109375,
-0.07098388671875,
0.0272674560546875,
-0.040924072265625,
0.054229736328125,
0.01158905029296875,
-0.0078277587890625,
0.0238189697265625,
-0.0131683349609375,
-0.0513916015625,
0.0298919677734375,
-0.05303955078125,
0.03472900390625,
-0.047637939453125,
0.034332275390625,
-0.0122222900390625,
-0.030853271484375,
0.080322265625,
0.0228118896484375,
-0.01525115966796875,
-0.0048828125,
0.062042236328125,
0.040924072265625,
-0.0084381103515625,
0.0290985107421875,
0.0106353759765625,
-0.034027099609375,
0.0211334228515625,
0.01232147216796875,
0.047454833984375,
-0.046051025390625,
0.0034427642822265625,
0.022369384765625,
0.006473541259765625,
0.0029964447021484375,
0.04022216796875,
0.050506591796875,
-0.064697265625,
0.0247650146484375,
0.07098388671875,
-0.04974365234375,
0.005985260009765625,
0.0321044921875,
0.0308380126953125,
-0.0201416015625,
-0.06201171875,
0.0060577392578125,
0.0347900390625,
0.0181732177734375,
0.04449462890625,
0.068115234375,
0.0220489501953125,
0.05389404296875,
-0.0191497802734375,
0.031951904296875,
-0.005077362060546875,
-0.01137542724609375,
0.019134521484375,
-0.0016546249389648438,
0.006229400634765625,
-0.058685302734375,
-0.01401519775390625,
0.057220458984375,
0.0526123046875,
-0.02569580078125,
-0.043060302734375,
0.01250457763671875,
-0.0087890625,
0.00830841064453125,
-0.00829315185546875,
0.0228729248046875,
-0.072998046875,
-0.0273590087890625,
-0.035675048828125,
0.0123291015625,
0.0269927978515625,
0.01064300537109375,
-0.01242828369140625,
0.003894805908203125,
-0.0266571044921875,
0.01161956787109375,
-0.0242462158203125,
0.0025482177734375,
0.0224609375,
0.02008056640625,
0.0001323223114013672,
0.002193450927734375,
0.01123046875,
0.007488250732421875,
-0.014984130859375,
0.0308380126953125,
-0.034149169921875,
0.03472900390625,
-0.03387451171875,
-0.054779052734375,
-0.01039886474609375,
0.036285400390625,
-0.0008792877197265625,
-0.01385498046875,
0.04547119140625,
0.015594482421875,
-0.0528564453125,
-0.0251312255859375,
-0.05914306640625,
-0.045654296875,
-0.004756927490234375,
-0.01556396484375,
0.01232147216796875,
0.04254150390625,
-0.01253509521484375,
0.0269927978515625,
-0.012237548828125,
0.060546875,
-0.022857666015625,
0.0157928466796875,
0.0016107559204101562,
-0.0232696533203125,
0.061126708984375,
-0.0165863037109375,
0.0491943359375,
-0.00366973876953125,
-0.046661376953125,
-0.0175323486328125,
-0.02386474609375,
-0.0098114013671875,
-0.0023670196533203125,
0.0193023681640625,
-0.001773834228515625,
0.0308685302734375,
0.0208587646484375,
-0.036041259765625,
0.037750244140625,
-0.0156402587890625,
0.005641937255859375,
-0.029388427734375,
0.006191253662109375,
-0.023193359375,
-0.037567138671875,
0.0035114288330078125,
-0.0048675537109375,
0.01078033447265625,
0.01502227783203125,
0.046844482421875,
0.007114410400390625,
0.01457977294921875,
0.0003402233123779297,
0.03387451171875,
-0.040191650390625,
0.0179901123046875,
-0.029449462890625,
-0.0305328369140625,
0.0019016265869140625,
0.0091094970703125,
0.004253387451171875,
0.0059814453125,
0.0168304443359375,
-0.02471923828125,
-0.0276336669921875,
-0.0142059326171875,
0.0295257568359375,
0.037017822265625,
-0.0069122314453125,
-0.03448486328125,
-0.02618408203125,
-0.0167083740234375,
-0.0222625732421875,
0.020172119140625,
0.015594482421875,
0.025115966796875,
0.0166168212890625,
0.028778076171875,
-0.01053619384765625,
0.0626220703125,
-0.0182037353515625,
0.0943603515625,
0.0419921875,
-0.03619384765625,
-0.02020263671875,
-0.03826904296875,
-0.0283966064453125,
0.0145111083984375,
-0.01806640625,
0.042816162109375,
-0.0272674560546875,
0.0236053466796875,
-0.0244903564453125,
-0.0098724365234375,
0.0187530517578125,
-0.0274200439453125,
-0.01044464111328125,
-0.01265716552734375,
-0.0015382766723632812,
0.0018405914306640625,
0.0244293212890625,
-0.0080718994140625,
-0.01496124267578125,
-0.0173187255859375,
0.00482177734375,
-0.0043487548828125,
0.006000518798828125,
0.002227783203125,
-0.004268646240234375,
0.00772857666015625,
0.0267181396484375,
-0.06512451171875,
0.069091796875,
0.00344085693359375,
-0.038818359375,
0.003475189208984375,
0.00804901123046875,
-0.0240478515625,
0.01485443115234375,
-0.005260467529296875,
-0.0606689453125,
-0.04345703125,
0.05413818359375,
-0.039642333984375,
0.034759521484375,
0.043731689453125,
-0.036590576171875,
0.0280303955078125,
0.01038360595703125,
0.0396728515625,
0.05352783203125,
-0.020263671875,
-0.03216552734375,
-0.014923095703125,
0.003520965576171875,
-0.0037822723388671875,
-0.0151214599609375,
0.03228759765625,
-0.06292724609375,
-0.039306640625,
-0.05010986328125,
0.04058837890625,
0.034759521484375,
-0.028656005859375,
-0.09130859375,
0.06817626953125,
-0.04754638671875,
-0.0229949951171875,
-0.026947021484375,
0.02374267578125,
-0.004932403564453125,
0.01404571533203125,
-0.004993438720703125,
0.00572967529296875,
-0.00017786026000976562,
0.004283905029296875,
-0.01247406005859375,
-0.002712249755859375,
0.0347900390625,
-0.036773681640625,
-0.0236968994140625,
-0.002349853515625,
0.010223388671875,
0.00334930419921875,
0.0200042724609375,
-0.024688720703125,
0.07659912109375,
0.0875244140625,
0.01178741455078125,
0.0108184814453125,
0.0192108154296875,
-0.09539794921875,
-0.00838470458984375,
0.01483917236328125,
-0.04376220703125,
0.0015773773193359375,
0.06158447265625,
0.09930419921875,
0.0194549560546875,
-0.035919189453125,
0.03558349609375,
-0.003124237060546875,
-0.040802001953125,
0.003971099853515625,
0.00936126708984375,
-0.033966064453125,
-0.012969970703125,
-0.005313873291015625,
-0.0125274658203125,
-0.0089111328125,
-0.003795623779296875,
-0.05059814453125,
-0.00415802001953125,
-0.042938232421875,
-0.018890380859375,
-0.03302001953125,
0.01155853271484375,
0.0110321044921875,
-0.01461029052734375,
0.035308837890625,
-0.027801513671875,
0.0016498565673828125,
0.017120361328125,
0.01959228515625,
0.0240478515625,
-0.009857177734375,
0.00395965576171875,
0.023101806640625,
0.032562255859375,
-0.0171356201171875,
0.01030731201171875,
-0.0247344970703125,
0.01416778564453125,
0.0227508544921875,
-0.0087432861328125,
0.041473388671875,
0.035125732421875,
0.01027679443359375,
-0.006500244140625,
-0.01383209228515625,
-0.01139068603515625,
-0.0158538818359375,
-0.025421142578125,
0.00753021240234375,
0.00616455078125,
-0.006015777587890625,
0.0516357421875,
-0.0302276611328125,
-0.0162506103515625,
-0.0157470703125,
-0.0167236328125,
-0.0970458984375,
0.041656494140625,
-0.0080718994140625,
0.03253173828125,
0.050018310546875
] |
aad23a257ea8be9ee665f752d12bf7220cf417ae
|
Wordpress Stackexchange
Q: Custom query with orderby meta_value of custom field Aa you know, as of WP3.0 there are options for custom advanced queries, which is great.
As of this, some query parameters of custom fields like meta_key, meta_value were deprecated for the new meta_query parameter (see here)
I try to have a pretty simple query with the new syntax, query posts by a certain post_type (services) that contains a specified meta_key (order_in_archive)- this is going well as expected.
But - I want to orderby the query by the meta_value, and with no success.
This is my query -
query_posts(
array( 'post_type' => 'services',
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_query' => array(
array('key' => 'order_in_archive'))
)
);
I tried orderby also by meta_value_numeric and meta_value, but in any case the results are being ordered by the publication date (as regular posts do).
Anyone know how can this be done?
Thanks
A: You can define the meta key for orderby parameter using the old method (I tested on WP 3.1.1)...
query_posts(
array( 'post_type' => 'services',
'order' => 'ASC',
'meta_key' => 'some_key',
'orderby' => 'meta_value', //or 'meta_value_num'
'meta_query' => array(
array('key' => 'order_in_archive',
'value' => 'some_value'
)
)
)
);
|
Q: Custom query with orderby meta_value of custom field Aa you know, as of WP3.0 there are options for custom advanced queries, which is great.
As of this, some query parameters of custom fields like meta_key, meta_value were deprecated for the new meta_query parameter (see here)
I try to have a pretty simple query with the new syntax, query posts by a certain post_type (services) that contains a specified meta_key (order_in_archive)- this is going well as expected.
But - I want to orderby the query by the meta_value, and with no success.
This is my query -
query_posts(
array( 'post_type' => 'services',
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_query' => array(
array('key' => 'order_in_archive'))
)
);
I tried orderby also by meta_value_numeric and meta_value, but in any case the results are being ordered by the publication date (as regular posts do).
Anyone know how can this be done?
Thanks
A: You can define the meta key for orderby parameter using the old method (I tested on WP 3.1.1)...
query_posts(
array( 'post_type' => 'services',
'order' => 'ASC',
'meta_key' => 'some_key',
'orderby' => 'meta_value', //or 'meta_value_num'
'meta_query' => array(
array('key' => 'order_in_archive',
'value' => 'some_value'
)
)
)
);
A: It´s easy:
Here is my code:
query_posts(array(
'post_type' => 'directors',
'posts_per_page' => -1,
'order' => 'ASC',
'orderby' => 'director_weight',
'meta_key' => 'director_weight'
) );
The main detail is: include meta_key, my code didn´t order unless meta_key is included, and that's all:
Here is the full code of a list of directors pictures order by director_weight:
<?php
query_posts(array(
'post_type' => 'directors',
'posts_per_page' => -1,
'order' => 'ASC',
'orderby' => 'director_weight',
'meta_key' => 'director_weight'
) );
while (have_posts()) : the_post();
?>
<li <?php echo get_field('director_weight') ?>>
<img src="<?php echo get_field('director_imagen') ?>">
</li>
<?php
endwhile;
wp_reset_query();
?>
A: This issue in general is cleared up as of WordPress 4.2 by using named queries. e.g.
$args = array(
'post_type' => 'services',
'orderby' => 'order_clause',
'meta_query' => array(
'order_clause' => array(
'key' => 'order_in_archive',
'value' => 'some_value',
'type' => 'NUMERIC' // unless the field is not a number
)));
For me, I wanted to order by a numeric field and I had to use 'type' => 'NUMERIC' inside the meta query.
A: The WP Codex is actually confusing when addressing this problem.
You do not actually need the meta_query param to use the orderby, instead it uses the meta_key param, which although by WP Codex is deprecated is has been established here: How do you use orderby with meta_query in Wordpress 3.1? that orderyby still needs the meta_key.
so it should be
query_posts( array(
'post_type' => 'services',
'order' => 'ASC',
'orderby' => 'meta_value',
'meta_key' => 'order_in_archive'
) )
A: Don't use query_posts.
$meta_query = new WP_Meta_Query( $meta_query_args );
$meta_query_args = array(
'post_type' => 'services',
'order' => 'ASC',
'meta_key' => 'your_key',
'orderby' => 'meta_value', //or 'meta_value_num'
'meta_query' => array(
array('key' => 'order_in_archive',
'value' => 'some_value'
)));
Use the WP_Meta_Query parameters
A: Following solution works:
$args = array(
'post_type' => 'services',
'order' => 'ASC',
'orderby' => 'order_clause',
'meta_query' => array(
'order_clause' => array(
'key' => 'order_in_archive'
)
)
);
You needed to provide the key of the meta_query sub array order_clause for your orderby value.
A: I found this to work quite well.
<?php
query_posts(
array( 'posts_per_page' => '-1',
'post_type' => 'services',
'order' => 'DESC',
'meta_key' => '_order',
'orderby' => 'meta_value_num', //or 'meta_value_num'
)
);
A: I had a set of custom event dates I needed to sort by date descending. Since my custom event date was stored in my wp_postmeta table, and was typically different to the post_date or modified dates, this worked for me:
$args = array(
'post_type' => 'events', // my post type - yours can be 'posts'
'post_status' => 'publish', // only get posts with this status
'orderby' => 'meta_value', // orderby the meta_value of the following meta_key
'meta_key' => 'my_custom_eventdate', // the custom meta_key name
'order'=> 'DESC' // sort descending
);
$posts = new WP_Query($args);
You can then loop through $posts like so:
foreach($posts->posts as $p){
$post_id = $p->ID;
// and so on ...
// # example of how I retrieve my event date
$event = get_post_meta($post_id, 'my_custom_eventdate', true);
}
|
wordpress
|
{
"language": "en",
"length": 686,
"provenance": "stackexchange_00019.jsonl.gz:408856",
"question_score": "45",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15477"
}
|
[
0.04083251953125,
0.011505126953125,
0.028472900390625,
-0.017425537109375,
-0.0026645660400390625,
-0.007152557373046875,
0.0195770263671875,
-0.0272369384765625,
0.06451416015625,
0.0174102783203125,
0.0185089111328125,
-0.062744140625,
0.0008702278137207031,
-0.05914306640625,
-0.049896240234375,
-0.0185699462890625,
0.056365966796875,
-0.0093994140625,
0.0253143310546875,
-0.00743865966796875,
0.019866943359375,
0.03515625,
0.0295257568359375,
0.060333251953125,
0.0450439453125,
-0.0081787109375,
0.0509033203125,
-0.03533935546875,
0.06158447265625,
0.01029205322265625,
0.03082275390625,
-0.05401611328125,
0.0043182373046875,
-0.025146484375,
0.051513671875,
-0.006488800048828125,
0.0268402099609375,
-0.007904052734375,
0.032318115234375,
-0.0129547119140625,
0.03387451171875,
-0.0135345458984375,
-0.005077362060546875,
0.0095977783203125,
-0.0194549560546875,
-0.035247802734375,
0.045745849609375,
-0.0007395744323730469,
0.0287628173828125,
0.0033779144287109375,
-0.023223876953125,
0.01617431640625,
-0.0113983154296875,
0.00411224365234375,
-0.00926971435546875,
-0.0114898681640625,
-0.00720977783203125,
-0.012176513671875,
0.00665283203125,
-0.004276275634765625,
0.01763916015625,
0.0183868408203125,
0.01184844970703125,
0.0213470458984375,
0.0015869140625,
0.0022716522216796875,
0.0660400390625,
-0.004058837890625,
-0.015716552734375,
-0.006618499755859375,
0.0290374755859375,
0.0174102783203125,
0.00605010986328125,
-0.032745361328125,
0.00445556640625,
-0.015655517578125,
0.01519012451171875,
-0.0301971435546875,
0.0004401206970214844,
0.0190887451171875,
-0.0012636184692382812,
-0.0007781982421875,
-0.00261688232421875,
-0.0104217529296875,
-0.00052642822265625,
-0.01446533203125,
-0.0214385986328125,
-0.01264190673828125,
0.004695892333984375,
-0.031829833984375,
0.003932952880859375,
-0.0458984375,
-0.01111602783203125,
0.005462646484375,
-0.005237579345703125,
-0.03570556640625,
-0.002490997314453125,
0.0511474609375,
-0.0275421142578125,
0.005130767822265625,
-0.009002685546875,
-0.01947021484375,
-0.01146697998046875,
-0.0298309326171875,
0.00848388671875,
0.000019788742065429688,
-0.032440185546875,
-0.01462554931640625,
0.0259246826171875,
0.040802001953125,
-0.0161895751953125,
-0.0259857177734375,
-0.0172882080078125,
0.01146697998046875,
-0.031402587890625,
0.01044464111328125,
-0.041656494140625,
-0.003391265869140625,
-0.00917816162109375,
0.01053619384765625,
0.0274810791015625,
0.04339599609375,
0.039886474609375,
-0.031890869140625,
0.002193450927734375,
0.01549530029296875,
-0.0187225341796875,
-0.06884765625,
-0.03082275390625,
0.02471923828125,
-0.028717041015625,
0.016998291015625,
0.03857421875,
0.022186279296875,
-0.0136260986328125,
-0.01239776611328125,
0.0231475830078125,
-0.0290069580078125,
-0.0018949508666992188,
0.0364990234375,
0.0099945068359375,
-0.049407958984375,
-0.00397491455078125,
0.0184173583984375,
-0.016021728515625,
-0.0179290771484375,
0.0023899078369140625,
0.0294952392578125,
0.006084442138671875,
-0.0121917724609375,
-0.0298309326171875,
0.0119781494140625,
0.045654296875,
0.00250244140625,
-0.0712890625,
-0.005680084228515625,
-0.00534820556640625,
-0.0264129638671875,
-0.046478271484375,
-0.050079345703125,
0.0143890380859375,
0.005023956298828125,
0.002590179443359375,
-0.0205841064453125,
-0.03167724609375,
-0.00860595703125,
-0.01470184326171875,
-0.0037746429443359375,
0.005672454833984375,
0.045318603515625,
0.0198211669921875,
-0.0222625732421875,
0.0004165172576904297,
-0.0179901123046875,
-0.026947021484375,
-0.0275421142578125,
0.0194854736328125,
0.0204010009765625,
-0.006580352783203125,
-0.000052928924560546875,
-0.0267181396484375,
-0.040435791015625,
0.017730712890625,
-0.00351715087890625,
-0.04833984375,
0.0467529296875,
0.018951416015625,
0.055145263671875,
-0.004451751708984375,
0.007198333740234375,
0.0621337890625,
0.0322265625,
-0.072265625,
0.07330322265625,
0.028228759765625,
-0.02099609375,
-0.052490234375,
-0.005489349365234375,
0.002288818359375,
-0.052764892578125,
-0.02813720703125,
0.03363037109375,
-0.0293426513671875,
0.032470703125,
-0.0252838134765625,
-0.003330230712890625,
-0.0006918907165527344,
0.039886474609375,
-0.041473388671875,
0.00225067138671875,
0.021148681640625,
-0.027923583984375,
-0.019622802734375,
0.0462646484375,
0.01036834716796875,
-0.0179290771484375,
-0.004993438720703125,
0.0308990478515625,
-0.036773681640625,
0.0292510986328125,
-0.0728759765625,
-0.041290283203125,
-0.0709228515625,
0.02691650390625,
0.0406494140625,
0.0160064697265625,
-0.00894927978515625,
0.007373809814453125,
0.07684326171875,
0.019775390625,
0.01262664794921875,
-0.0108489990234375,
0.02618408203125,
0.0183563232421875,
-0.0125732421875,
-0.000659942626953125,
-0.006969451904296875,
-0.062744140625,
-0.003017425537109375,
0.036865234375,
0.038726806640625,
0.048065185546875,
0.0306854248046875,
0.04217529296875,
0.033111572265625,
0.0031642913818359375,
0.034149169921875,
-0.00688934326171875,
0.00506591796875,
0.050933837890625,
-0.0171661376953125,
0.018829345703125,
0.0200347900390625,
0.038177490234375,
-0.0129852294921875,
0.034423828125,
0.00217437744140625,
0.01016998291015625,
0.0246429443359375,
0.0013017654418945312,
-0.01544952392578125,
-0.0010557174682617188,
-0.005550384521484375,
0.005336761474609375,
0.04205322265625,
0.0277099609375,
0.05511474609375,
0.0557861328125,
-0.030853271484375,
0.00539398193359375,
0.005970001220703125,
0.0283203125,
0.0110321044921875,
0.0223236083984375,
-0.07049560546875,
0.01812744140625,
-0.0287933349609375,
0.01503753662109375,
0.01294708251953125,
-0.00653839111328125,
0.00939178466796875,
0.0259857177734375,
-0.0479736328125,
0.0003185272216796875,
-0.034088134765625,
-0.058990478515625,
0.007312774658203125,
0.07147216796875,
-0.03570556640625,
-0.028228759765625,
0.023834228515625,
0.0233306884765625,
-0.0088043212890625,
0.00811004638671875,
-0.00807952880859375,
-0.006649017333984375,
-0.029998779296875,
-0.052764892578125,
0.032867431640625,
-0.0557861328125,
0.0214385986328125,
0.064453125,
-0.0225372314453125,
0.0197296142578125,
-0.0227813720703125,
-0.004558563232421875,
-0.0423583984375,
0.0538330078125,
-0.0011854171752929688,
-0.06109619140625,
-0.01357269287109375,
-0.0007801055908203125,
0.048614501953125,
0.05267333984375,
0.0254058837890625,
-0.0073394775390625,
0.01506805419921875,
0.035736083984375,
-0.07672119140625,
-0.14794921875,
0.02679443359375,
-0.0535888671875,
0.01279449462890625,
-0.03411865234375,
-0.033050537109375,
-0.0008363723754882812,
-0.029571533203125,
-0.006099700927734375,
0.01385498046875,
0.0038127899169921875,
-0.06805419921875,
-0.03179931640625,
-0.06170654296875,
0.00527191162109375,
-0.01397705078125,
0.01708984375,
0.0111236572265625,
0.06927490234375,
0.018890380859375,
-0.0625,
0.020782470703125,
0.01004791259765625,
-0.032257080078125,
0.0347900390625,
0.031219482421875,
-0.029998779296875,
-0.0151519775390625,
0.00142669677734375,
0.07843017578125,
0.031463623046875,
-0.03704833984375,
0.0158843994140625,
0.0172119140625,
0.0254058837890625,
0.037139892578125,
0.0110321044921875,
-0.0099639892578125,
0.0286407470703125,
0.041259765625,
-0.02178955078125,
-0.028106689453125,
-0.024169921875,
-0.03973388671875,
0.036865234375,
0.037353515625,
0.01038360595703125,
-0.0180816650390625,
0.033447265625,
-0.00611114501953125,
-0.0210723876953125,
0.03521728515625,
-0.05853271484375,
0.0179443359375,
0.0042572021484375,
0.017822265625,
-0.0121307373046875,
0.016693115234375,
-0.0321044921875,
0.0047149658203125,
0.00994873046875,
-0.00881195068359375,
0.0164031982421875,
-0.0096893310546875,
0.01104736328125,
-0.01263427734375,
0.05401611328125,
-0.00252532958984375,
0.026885986328125,
-0.0380859375,
-0.033599853515625,
-0.0264739990234375,
0.0706787109375,
-0.012298583984375,
-0.0162506103515625,
0.0190277099609375,
0.0067291259765625,
-0.035858154296875,
0.0116119384765625,
-0.03265380859375,
0.00533294677734375,
-0.0367431640625,
0.0287322998046875,
-0.00514984130859375,
-0.01042938232421875,
-0.034210205078125,
-0.0053863525390625,
-0.03265380859375,
-0.0160064697265625,
0.037811279296875,
-0.040618896484375,
0.0164642333984375,
0.0193023681640625,
-0.025238037109375,
-0.003360748291015625,
-0.0323486328125,
-0.007190704345703125,
-0.08160400390625,
-0.019622802734375,
0.004459381103515625,
0.060028076171875,
0.0017938613891601562,
-0.0361328125,
-0.0008296966552734375,
0.051483154296875,
-0.01071929931640625,
-0.00926971435546875,
0.034027099609375,
0.0287322998046875,
0.010467529296875,
-0.00189971923828125,
0.01500701904296875,
-0.052764892578125,
-0.01763916015625,
-0.023651123046875,
-0.01336669921875,
-0.047210693359375,
-0.042510986328125,
-0.049591064453125,
-0.0194091796875,
-0.019683837890625,
-0.023406982421875,
-0.0132293701171875,
-0.017486572265625,
0.0260467529296875,
-0.02398681640625,
0.00838470458984375,
-0.0232086181640625,
-0.038665771484375,
0.041290283203125,
0.023406982421875,
-0.02630615234375,
0.0106048583984375,
0.0426025390625,
0.011993408203125,
-0.036285400390625,
-0.07220458984375,
-0.016326904296875,
-0.0018148422241210938,
0.02349853515625,
0.010467529296875,
-0.036224365234375,
-0.00914764404296875,
0.048065185546875,
-0.0256195068359375,
0.01995849609375,
0.0001201629638671875,
0.013946533203125,
-0.0139007568359375,
-0.021514892578125,
0.0261077880859375,
-0.0169677734375,
0.01175689697265625,
0.03564453125,
0.016448974609375,
-0.063232421875,
0.022491455078125,
0.040985107421875,
-0.0189666748046875,
0.029937744140625,
-0.01641845703125,
-0.05035400390625,
0.0266876220703125,
0.01812744140625,
-0.013397216796875,
-0.01393890380859375,
-0.0020046234130859375,
0.002346038818359375,
-0.0190887451171875,
0.0101776123046875,
-0.015960693359375,
0.031402587890625,
-0.055999755859375,
0.01395416259765625,
-0.016387939453125,
-0.0401611328125,
-0.0247802734375,
-0.004119873046875,
0.0684814453125,
-0.0221405029296875,
-0.0487060546875,
-0.024169921875,
-0.025848388671875,
0.036956787109375,
0.033660888671875,
-0.042694091796875,
0.020721435546875,
0.048309326171875,
-0.01013946533203125,
0.0007538795471191406,
-0.050262451171875,
0.01947021484375,
-0.042572021484375,
0.0227508544921875,
0.01605224609375,
0.0004456043243408203,
-0.03179931640625,
0.10943603515625,
-0.0275421142578125,
0.04656982421875,
-0.01141357421875,
-0.00901031494140625,
-0.01354217529296875,
0.01543426513671875,
0.02447509765625,
-0.004711151123046875,
-0.004405975341796875,
0.004489898681640625,
0.0272369384765625,
0.03485107421875,
0.011444091796875,
-0.01126861572265625,
-0.05810546875,
0.007625579833984375,
0.042724609375,
0.03204345703125,
0.03155517578125,
-0.021453857421875,
0.009613037109375,
-0.004238128662109375,
-0.0225067138671875,
-0.0362548828125,
-0.07244873046875,
-0.0184173583984375,
-0.005275726318359375,
0.0201873779296875,
0.027252197265625,
-0.0008401870727539062,
0.068115234375,
-0.06494140625,
0.064697265625,
-0.0217742919921875,
-0.04443359375,
0.0115814208984375,
-0.0005488395690917969,
-0.01384735107421875,
0.018463134765625,
-0.01763916015625,
-0.0199432373046875,
-0.0196533203125,
0.07666015625,
-0.0262451171875,
0.03057861328125,
-0.0516357421875,
0.0209197998046875,
-0.0202178955078125,
0.0299530029296875,
-0.012481689453125,
-0.02386474609375,
0.01406097412109375,
-0.0033817291259765625,
-0.015655517578125,
-0.03192138671875,
0.02276611328125,
-0.05218505859375,
-0.0065460205078125,
-0.03985595703125,
0.024658203125,
0.03338623046875,
0.0036792755126953125,
-0.044586181640625,
-0.0255584716796875,
-0.0075531005859375,
0.0193023681640625,
0.0013856887817382812,
-0.0029735565185546875,
0.06622314453125,
-0.016754150390625,
0.044952392578125,
0.01143646240234375,
0.01678466796875,
-0.026824951171875,
0.004024505615234375,
0.00945281982421875,
-0.036956787109375,
-0.038177490234375,
-0.0169830322265625,
-0.046630859375,
0.00904083251953125,
0.047149658203125,
-0.0188140869140625,
0.0386962890625,
-0.01337432861328125,
-0.0085601806640625,
-0.007701873779296875,
-0.01488494873046875,
-0.005680084228515625,
0.040618896484375,
0.023773193359375,
-0.03369140625,
-0.00872039794921875,
-0.004444122314453125,
-0.017578125,
0.036529541015625,
-0.017547607421875,
0.029144287109375,
0.01303863525390625,
-0.055877685546875,
0.03265380859375,
0.046600341796875,
0.033111572265625,
0.01383209228515625,
-0.032745361328125,
0.005344390869140625,
-0.019927978515625,
0.00994110107421875,
0.034820556640625,
0.0286407470703125,
0.0665283203125,
-0.00778961181640625,
-0.00972747802734375,
0.028594970703125,
-0.0241851806640625,
0.024566650390625,
0.0165252685546875,
0.0322265625,
-0.0484619140625,
0.02972412109375,
0.03240966796875,
-0.0015974044799804688,
0.03472900390625,
-0.00402069091796875,
-0.025665283203125,
-0.004390716552734375,
0.0005011558532714844,
-0.0173797607421875,
-0.04718017578125,
-0.00103759765625,
0.01806640625,
-0.01263427734375,
-0.006519317626953125,
-0.0096588134765625,
0.00536346435546875,
0.0118865966796875,
-0.01338958740234375,
-0.0283966064453125,
0.003993988037109375,
-0.0135650634765625,
0.0015926361083984375,
-0.0248565673828125,
-0.01922607421875,
-0.09234619140625,
-0.043853759765625,
-0.036712646484375,
-0.01337432861328125,
0.0262603759765625,
-0.004058837890625,
0.056060791015625,
0.011871337890625,
0.03802490234375,
-0.048095703125,
-0.0072784423828125,
-0.0016231536865234375,
-0.04229736328125,
-0.04962158203125,
0.00717926025390625,
0.00470733642578125,
0.0020427703857421875,
0.037872314453125,
0.023193359375,
-0.07183837890625,
0.004924774169921875,
0.050994873046875,
0.0418701171875,
-0.01090240478515625,
-0.02996826171875,
0.041107177734375,
0.029937744140625,
-0.0296478271484375,
0.00992584228515625,
0.038482666015625,
-0.0823974609375,
-0.05804443359375,
0.031646728515625,
-0.03656005859375,
-0.0272979736328125,
0.033416748046875,
-0.048431396484375,
0.06622314453125,
0.01351165771484375,
-0.01861572265625,
-0.0227203369140625,
0.029205322265625,
-0.01263427734375,
0.0245819091796875,
-0.015411376953125,
0.03118896484375,
0.0010633468627929688,
0.03411865234375,
-0.054290771484375,
-0.0110321044921875,
-0.0081024169921875,
0.034698486328125,
0.0447998046875,
0.026641845703125,
-0.078125,
-0.0104827880859375,
0.039520263671875,
0.051055908203125,
0.0301055908203125,
0.054901123046875,
0.01107025146484375,
0.046844482421875,
0.0848388671875,
-0.021270751953125,
0.044586181640625,
0.01439666748046875,
-0.01507568359375,
0.026580810546875,
0.01386260986328125,
0.0283050537109375,
-0.041259765625,
0.014068603515625,
-0.01904296875,
-0.0257568359375,
0.03900146484375,
-0.04986572265625,
0.041046142578125,
0.0014715194702148438,
0.014892578125,
-0.0236968994140625,
-0.030731201171875,
-0.0019779205322265625,
0.036376953125,
0.0026226043701171875,
0.0240020751953125,
0.06402587890625,
0.0284271240234375,
-0.00635528564453125,
-0.02655029296875,
0.0160675048828125,
-0.012969970703125,
-0.01617431640625,
0.051239013671875,
-0.0091094970703125,
0.01021575927734375,
-0.0208740234375,
0.0380859375,
0.024078369140625,
0.033294677734375,
-0.044830322265625,
-0.016082763671875,
0.00200653076171875,
-0.0189666748046875,
0.027374267578125,
-0.044036865234375,
0.0162811279296875,
0.02410888671875,
-0.00392913818359375,
-0.057403564453125,
0.006328582763671875,
0.005096435546875,
0.0311431884765625,
-0.00879669189453125,
0.0025959014892578125,
-0.03521728515625,
-0.02642822265625,
-0.0521240234375,
0.029022216796875,
0.027557373046875,
0.0408935546875,
0.0062103271484375,
0.06036376953125,
0.01068115234375,
-0.01788330078125,
-0.036163330078125,
0.01320648193359375,
-0.0207672119140625,
0.04925537109375,
-0.054412841796875,
-0.0254364013671875,
0.004180908203125,
0.04827880859375,
0.0166473388671875,
0.025665283203125,
0.036865234375,
0.037872314453125,
0.0119171142578125,
0.0111083984375,
0.0640869140625,
-0.00646209716796875,
-0.0377197265625,
-0.0147247314453125,
-0.0017461776733398438,
0.018646240234375,
0.0014047622680664062,
0.018218994140625,
0.032562255859375,
0.0001304149627685547,
0.0186004638671875,
0.03204345703125,
0.01067352294921875,
0.006443023681640625,
0.023101806640625,
0.00893402099609375,
0.037933349609375,
0.03973388671875,
-0.00018465518951416016,
-0.0054473876953125,
-0.0291748046875,
-0.01071929931640625,
-0.0051727294921875,
0.0291290283203125,
0.0037822723388671875,
0.014984130859375,
0.01212310791015625,
-0.042388916015625,
-0.0193023681640625,
0.0330810546875,
0.03253173828125,
-0.010223388671875,
-0.01055145263671875,
0.0008893013000488281,
-0.06671142578125,
-0.035491943359375,
0.0302276611328125,
0.0005922317504882812,
-0.00983428955078125,
-0.0093841552734375,
0.0430908203125,
0.004940032958984375,
-0.007572174072265625,
0.0034961700439453125,
-0.01385498046875,
0.0150146484375,
0.00319671630859375,
-0.0256195068359375,
-0.00891876220703125,
-0.001415252685546875,
0.045135498046875,
-0.002452850341796875,
0.060699462890625,
-0.05828857421875,
-0.02337646484375,
-0.0068206787109375,
0.01416778564453125,
-0.020599365234375,
-0.01097869873046875,
-0.0345458984375,
0.0137176513671875,
-0.016754150390625,
-0.043670654296875,
0.053192138671875,
-0.01369476318359375,
-0.01580810546875,
0.00853729248046875,
0.0276641845703125,
-0.040679931640625,
0.04461669921875,
-0.02911376953125,
0.09942626953125,
0.05072021484375,
-0.008758544921875,
0.035858154296875,
0.01153564453125,
-0.024627685546875,
0.05084228515625,
0.00705718994140625,
-0.007190704345703125,
0.0105133056640625,
-0.0012149810791015625,
-0.01285552978515625,
0.0139923095703125,
0.024871826171875,
0.0232696533203125,
-0.01247406005859375,
-0.0189666748046875,
-0.03570556640625,
-0.0260772705078125,
0.0261383056640625,
-0.03790283203125,
-0.021392822265625,
0.0040740966796875,
-0.00507354736328125,
0.00836944580078125,
-0.03509521484375,
-0.01605224609375,
-0.0038051605224609375,
0.0263824462890625,
0.0021610260009765625,
-0.031585693359375,
0.037384033203125,
-0.0299224853515625,
-0.020294189453125,
0.005931854248046875,
-0.03179931640625,
0.00864410400390625,
0.057098388671875,
-0.0095062255859375,
-0.0216217041015625,
-0.0219879150390625,
0.00540924072265625,
-0.0095672607421875,
0.0253143310546875,
0.0306243896484375,
-0.0267791748046875,
-0.02496337890625,
0.0241851806640625,
0.003932952880859375,
0.053436279296875,
0.01934814453125,
0.01300048828125,
0.02850341796875,
0.0200042724609375,
-0.060638427734375,
-0.1094970703125,
0.01331329345703125,
-0.048309326171875,
0.002414703369140625,
0.00522613525390625,
0.01038360595703125,
0.0367431640625,
-0.01007843017578125,
-0.06988525390625,
0.054046630859375,
-0.01502227783203125,
-0.031585693359375,
-0.033843994140625,
-0.007282257080078125,
0.01184844970703125,
0.032073974609375,
0.00989532470703125,
-0.032012939453125,
-0.061248779296875,
-0.0142364501953125,
0.01378631591796875,
0.0019063949584960938,
0.0029659271240234375,
0.04107666015625,
-0.11456298828125,
0.019439697265625,
-0.0178985595703125,
0.029937744140625,
-0.0187835693359375,
0.01230621337890625,
0.0084075927734375,
-0.004489898681640625,
-0.0430908203125,
-0.01500701904296875,
0.01264190673828125,
0.043182373046875,
-0.00394439697265625,
-0.0118865966796875,
-0.0240020751953125,
0.0128936767578125,
0.046539306640625,
0.0450439453125,
0.0034542083740234375,
-0.050994873046875,
0.01326751708984375,
-0.006786346435546875,
0.0400390625,
-0.06549072265625,
-0.002040863037109375,
-0.10272216796875,
-0.0958251953125,
0.029571533203125,
-0.003387451171875,
-0.0218658447265625,
0.0035343170166015625,
-0.0216217041015625,
-0.01183319091796875,
0.0299835205078125,
0.00041365623474121094,
-0.007595062255859375,
0.005451202392578125,
0.029449462890625,
-0.0311737060546875,
-0.00945281982421875,
-0.006206512451171875,
0.0155487060546875,
0.0090179443359375,
-0.016204833984375,
0.00830841064453125,
-0.0238494873046875,
0.033966064453125,
0.01184844970703125,
0.0204925537109375,
-0.00324249267578125,
0.044677734375,
-0.0233001708984375,
-0.0156402587890625,
0.008209228515625,
0.004726409912109375,
-0.00003141164779663086,
-0.034088134765625,
0.0323486328125,
0.02197265625,
0.043701171875,
-0.0159454345703125,
0.0379638671875,
0.0026092529296875,
0.01190948486328125,
-0.0018110275268554688,
0.011810302734375,
0.040069580078125,
-0.00313568115234375,
0.00968170166015625,
0.001556396484375,
-0.02886962890625,
-0.0263824462890625,
0.005550384521484375,
0.01236724853515625,
-0.046417236328125,
0.01239776611328125
] |
d360e1df6fe22ba04ceac72a8b18b90f43b8f598
|
Wordpress Stackexchange
Q: Symbolic Links on dev box with plugins and stylesheets I'm using mac os x 10.6 with xampp.
http://wp3.1/ is the url to where I have WordPress installed.
The physical path is /Users/myUserName/Sites/wp3.1/
I do not install plugins or themes in the "natural" way. I have created a directory named "git" which is located in /Users/myUserName/git/. This is where all my git repositories live. When I want to install a plugin, I just create a symbolic link in /Users/myUserName/Sites/wp3.1/wp-content/plugins/. This works great for simple plugins, but if the plugin enqueue's a style sheet or script, the url displays as:
http://wp3.1/wp-content/plugins/Users/myUserName/git/options-framework-plugin/css/colorpicker.css?ver=3.1.1
How do I fix this?
A: Symbolic links are … risky in WordPress. It is easier to use a separate domain for plugins per wp-config.php:
define( 'WP_PLUGIN_DIR', '/local/path/to/plugin/directory' );
define( 'WP_PLUGIN_URL', 'http://plugins.dev');
See Strategy On Building Plugin Using Eclipse as an example for IDE configuration with such a setup.
|
Q: Symbolic Links on dev box with plugins and stylesheets I'm using mac os x 10.6 with xampp.
http://wp3.1/ is the url to where I have WordPress installed.
The physical path is /Users/myUserName/Sites/wp3.1/
I do not install plugins or themes in the "natural" way. I have created a directory named "git" which is located in /Users/myUserName/git/. This is where all my git repositories live. When I want to install a plugin, I just create a symbolic link in /Users/myUserName/Sites/wp3.1/wp-content/plugins/. This works great for simple plugins, but if the plugin enqueue's a style sheet or script, the url displays as:
http://wp3.1/wp-content/plugins/Users/myUserName/git/options-framework-plugin/css/colorpicker.css?ver=3.1.1
How do I fix this?
A: Symbolic links are … risky in WordPress. It is easier to use a separate domain for plugins per wp-config.php:
define( 'WP_PLUGIN_DIR', '/local/path/to/plugin/directory' );
define( 'WP_PLUGIN_URL', 'http://plugins.dev');
See Strategy On Building Plugin Using Eclipse as an example for IDE configuration with such a setup.
A: As you can see, the plugin URL is correct except for the real path stuck in the middle. We can filter the function responsible for generating plugin URLs and remove this.
The following code should be installed as a Must Use Plugin:
add_filter( 'plugins_url', function( $url ) {
return str_replace( '/Users/myUserName/git/', '', $url );
});
|
wordpress
|
{
"language": "en",
"length": 205,
"provenance": "stackexchange_00019.jsonl.gz:408859",
"question_score": "11",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15483"
}
|
[
0.0220947265625,
0.006954193115234375,
-0.0160675048828125,
-0.0154266357421875,
-0.01593017578125,
-0.03387451171875,
0.01175689697265625,
-0.0228118896484375,
-0.01544952392578125,
0.0178985595703125,
-0.0008082389831542969,
0.007015228271484375,
-0.0595703125,
-0.025909423828125,
-0.01142120361328125,
-0.0467529296875,
0.0185089111328125,
-0.0031337738037109375,
0.013397216796875,
-0.0232086181640625,
0.021514892578125,
-0.0207977294921875,
0.003261566162109375,
0.0523681640625,
0.01329803466796875,
0.04376220703125,
0.034271240234375,
-0.0162506103515625,
-0.001888275146484375,
-0.0111846923828125,
0.0211944580078125,
-0.0170440673828125,
0.039459228515625,
-0.004489898681640625,
-0.01131439208984375,
-0.042266845703125,
0.01403045654296875,
-0.01433563232421875,
-0.030181884765625,
0.0246124267578125,
0.00926971435546875,
0.0029201507568359375,
-0.00577545166015625,
-0.01206207275390625,
-0.0306396484375,
-0.056060791015625,
0.0576171875,
0.028961181640625,
0.026763916015625,
-0.0095062255859375,
-0.0038204193115234375,
0.02703857421875,
0.02301025390625,
-0.043670654296875,
0.0016050338745117188,
0.011138916015625,
-0.02362060546875,
-0.024505615234375,
0.00510406494140625,
0.006122589111328125,
0.019378662109375,
-0.01532745361328125,
0.0291748046875,
0.023223876953125,
0.0023403167724609375,
-0.0123443603515625,
0.01812744140625,
0.030364990234375,
-0.054168701171875,
0.00679779052734375,
0.039337158203125,
-0.0200347900390625,
0.00287628173828125,
-0.033416748046875,
-0.00975799560546875,
0.0308380126953125,
-0.0182647705078125,
-0.00559234619140625,
0.029052734375,
-0.010345458984375,
0.004703521728515625,
-0.039520263671875,
-0.00847625732421875,
-0.029205322265625,
0.036102294921875,
0.0168609619140625,
0.0024566650390625,
-0.00685882568359375,
-0.03985595703125,
0.0081634521484375,
-0.0302886962890625,
0.0174560546875,
-0.0360107421875,
-0.02508544921875,
-0.01448822021484375,
-0.00960540771484375,
0.02960205078125,
0.0308990478515625,
-0.01812744140625,
0.002147674560546875,
0.002719879150390625,
-0.0360107421875,
0.0120086669921875,
-0.029052734375,
-0.0185394287109375,
0.06634521484375,
0.00621795654296875,
0.039459228515625,
0.01058197021484375,
0.017669677734375,
0.00725555419921875,
-0.05511474609375,
-0.0178375244140625,
-0.042022705078125,
0.0135345458984375,
0.027008056640625,
-0.038177490234375,
0.0233001708984375,
0.01374053955078125,
-0.007762908935546875,
-0.02734375,
0.004638671875,
0.0028514862060546875,
-0.00496673583984375,
0.017181396484375,
0.0023136138916015625,
0.0021495819091796875,
-0.01320648193359375,
-0.022705078125,
-0.003833770751953125,
0.0017299652099609375,
0.0196380615234375,
0.03338623046875,
0.031524658203125,
-0.0188446044921875,
-0.0089111328125,
0.0272674560546875,
-0.00189971923828125,
-0.016632080078125,
0.0251007080078125,
-0.033935546875,
-0.005290985107421875,
0.0443115234375,
-0.043060302734375,
0.044708251953125,
0.01434326171875,
0.036407470703125,
-0.00004404783248901367,
-0.0167083740234375,
-0.01126861572265625,
0.00962066650390625,
0.009185791015625,
0.0184478759765625,
0.021575927734375,
0.007354736328125,
-0.034820556640625,
0.0168914794921875,
-0.031890869140625,
0.022064208984375,
-0.0296173095703125,
-0.0034332275390625,
0.00812530517578125,
0.0184478759765625,
0.002124786376953125,
-0.00799560546875,
-0.01132965087890625,
0.00597381591796875,
0.01056671142578125,
0.025665283203125,
0.03900146484375,
0.00800323486328125,
-0.03656005859375,
0.00762176513671875,
-0.005535125732421875,
-0.00992584228515625,
0.0175323486328125,
0.030242919921875,
0.0308837890625,
-0.0015573501586914062,
0.046722412109375,
0.019622802734375,
-0.010986328125,
0.08349609375,
-0.025848388671875,
-0.04254150390625,
0.020721435546875,
-0.0175933837890625,
0.0046234130859375,
0.042144775390625,
-0.01078033447265625,
0.02581787109375,
0.012451171875,
-0.040618896484375,
0.016693115234375,
-0.0195159912109375,
-0.0273895263671875,
0.022186279296875,
0.0084686279296875,
-0.002429962158203125,
0.014434814453125,
-0.0286102294921875,
0.031982421875,
0.00203704833984375,
0.01300048828125,
-0.007244110107421875,
0.0253143310546875,
-0.00969696044921875,
0.038116455078125,
0.03057861328125,
0.01374053955078125,
-0.0192718505859375,
-0.03350830078125,
0.0587158203125,
-0.07843017578125,
-0.02337646484375,
0.044586181640625,
-0.0284576416015625,
0.02764892578125,
-0.0011625289916992188,
0.062225341796875,
-0.0132293701171875,
0.000048160552978515625,
-0.016632080078125,
-0.042633056640625,
-0.00569915771484375,
0.0299072265625,
-0.0166015625,
0.016571044921875,
-0.01399993896484375,
0.038665771484375,
0.0017547607421875,
0.0017557144165039062,
-0.004550933837890625,
0.01708984375,
-0.023284912109375,
-0.00785064697265625,
-0.0019197463989257812,
-0.0287322998046875,
0.0280914306640625,
0.0311279296875,
0.037841796875,
0.035919189453125,
-0.03216552734375,
-0.05810546875,
0.055145263671875,
-0.035675048828125,
0.01090240478515625,
-0.044189453125,
0.0011806488037109375,
0.0239715576171875,
0.031341552734375,
-0.0084381103515625,
0.0085296630859375,
-0.0236053466796875,
-0.0007610321044921875,
0.0209197998046875,
-0.041015625,
-0.0599365234375,
0.03314208984375,
-0.018890380859375,
0.01232147216796875,
-0.040313720703125,
-0.02520751953125,
-0.0181121826171875,
0.029083251953125,
-0.001422882080078125,
0.03851318359375,
0.0279083251953125,
-0.0209808349609375,
-0.013580322265625,
0.027099609375,
0.0384521484375,
0.0011949539184570312,
0.0228118896484375,
0.033416748046875,
-0.033782958984375,
-0.020721435546875,
0.002246856689453125,
-0.006504058837890625,
-0.005054473876953125,
-0.04058837890625,
0.00482940673828125,
-0.01343536376953125,
-0.00455474853515625,
-0.035980224609375,
-0.06622314453125,
0.0408935546875,
0.0129241943359375,
0.030792236328125,
0.04693603515625,
0.0638427734375,
0.0258331298828125,
-0.003299713134765625,
0.0302581787109375,
-0.01427459716796875,
-0.004505157470703125,
0.09027099609375,
-0.0222930908203125,
0.011993408203125,
-0.001369476318359375,
0.033233642578125,
0.038330078125,
0.017730712890625,
-0.038055419921875,
0.00551605224609375,
-0.005687713623046875,
-0.0004210472106933594,
0.00197601318359375,
-0.0115814208984375,
-0.00722503662109375,
-0.0743408203125,
-0.027130126953125,
0.0159912109375,
-0.037567138671875,
0.01561737060546875,
-0.032440185546875,
-0.0243377685546875,
-0.00948333740234375,
-0.1265869140625,
-0.08624267578125,
-0.007099151611328125,
-0.07745361328125,
0.0263671875,
0.00720977783203125,
-0.0433349609375,
-0.028717041015625,
0.05401611328125,
0.01422119140625,
0.004848480224609375,
-0.0258331298828125,
-0.054473876953125,
-0.07244873046875,
-0.08746337890625,
-0.0181884765625,
-0.006748199462890625,
0.01222991943359375,
0.0216827392578125,
-0.019134521484375,
0.0177459716796875,
-0.01806640625,
0.0587158203125,
0.0428466796875,
0.00927734375,
0.0205841064453125,
0.0430908203125,
-0.00440216064453125,
0.041351318359375,
-0.007564544677734375,
0.05902099609375,
0.061431884765625,
-0.06207275390625,
-0.0194854736328125,
0.0229339599609375,
-0.01873779296875,
0.0196075439453125,
-0.0367431640625,
-0.0199432373046875,
0.00984954833984375,
-0.017120361328125,
-0.04974365234375,
0.021270751953125,
-0.02215576171875,
-0.01103973388671875,
0.05694580078125,
0.00090789794921875,
-0.023162841796875,
0.0137481689453125,
0.0017881393432617188,
0.028076171875,
0.0143280029296875,
0.03656005859375,
-0.013153076171875,
0.0301666259765625,
-0.00737762451171875,
0.00507354736328125,
-0.062347412109375,
0.034759521484375,
-0.0137481689453125,
0.007312774658203125,
0.001712799072265625,
-0.00582122802734375,
-0.01274871826171875,
-0.005733489990234375,
-0.04534912109375,
0.01495361328125,
0.01055145263671875,
-0.018829345703125,
0.044219970703125,
-0.02972412109375,
0.00146484375,
-0.03741455078125,
0.0186309814453125,
-0.06640625,
-0.005214691162109375,
0.0017690658569335938,
0.01241302490234375,
-0.038330078125,
-0.0243072509765625,
-0.057708740234375,
0.0064697265625,
-0.07440185546875,
-0.00007355213165283203,
0.0157928466796875,
-0.04718017578125,
0.0107421875,
-0.0020751953125,
-0.0352783203125,
-0.023468017578125,
0.00988006591796875,
0.006504058837890625,
-0.00975799560546875,
0.0033473968505859375,
-0.0040740966796875,
-0.00864410400390625,
0.005970001220703125,
-0.0173187255859375,
-0.1085205078125,
-0.021881103515625,
-0.033966064453125,
0.06689453125,
0.0014009475708007812,
-0.005138397216796875,
-0.02081298828125,
0.042205810546875,
-0.03277587890625,
0.031005859375,
0.01235198974609375,
0.035858154296875,
-0.035125732421875,
0.00423431396484375,
0.03179931640625,
-0.0252685546875,
-0.0012159347534179688,
-0.0151519775390625,
-0.0767822265625,
-0.005443572998046875,
0.0018720626831054688,
0.059112548828125,
0.049652099609375,
-0.0469970703125,
-0.0008521080017089844,
-0.00908660888671875,
-0.0228271484375,
0.01062774658203125,
-0.017669677734375,
-0.01146697998046875,
-0.0174560546875,
-0.0204010009765625,
0.04425048828125,
-0.016937255859375,
0.006618499755859375,
0.007328033447265625,
0.061553955078125,
0.013580322265625,
-0.0177764892578125,
-0.01232147216796875,
0.035980224609375,
0.0406494140625,
0.03033447265625,
0.01372528076171875,
0.026092529296875,
-0.01148223876953125,
-0.024078369140625,
0.01776123046875,
0.0231781005859375,
0.0200042724609375,
0.00859832763671875,
-0.00811004638671875,
-0.041778564453125,
0.055145263671875,
0.0081024169921875,
-0.050872802734375,
0.034027099609375,
-0.0013151168823242188,
0.005397796630859375,
0.0028858184814453125,
0.00445556640625,
-0.0132598876953125,
-0.0009045600891113281,
-0.0112457275390625,
-0.06402587890625,
0.0229339599609375,
-0.00894927978515625,
0.056488037109375,
0.0430908203125,
-0.01971435546875,
0.0718994140625,
0.0061187744140625,
-0.035797119140625,
0.0906982421875,
0.0239715576171875,
0.0194549560546875,
0.011566162109375,
0.0296478271484375,
-0.0523681640625,
0.0301361083984375,
-0.019744873046875,
0.06805419921875,
0.021148681640625,
-0.01045989990234375,
-0.0528564453125,
-0.0157928466796875,
0.0172882080078125,
-0.015472412109375,
0.01235198974609375,
0.03497314453125,
-0.0391845703125,
-0.02386474609375,
-0.0113983154296875,
-0.04022216796875,
-0.050811767578125,
-0.049896240234375,
-0.01158905029296875,
-0.021087646484375,
-0.0295562744140625,
-0.01375579833984375,
0.005588531494140625,
-0.0269622802734375,
-0.01432037353515625,
0.0185699462890625,
-0.004150390625,
0.00997161865234375,
0.0030040740966796875,
0.039794921875,
-0.01568603515625,
0.009033203125,
-0.054168701171875,
0.0276031494140625,
-0.059844970703125,
0.00719451904296875,
0.027557373046875,
0.0633544921875,
-0.027191162109375,
-0.06634521484375,
0.042755126953125,
-0.034881591796875,
-0.006984710693359375,
0.007518768310546875,
-0.04046630859375,
-0.0284271240234375,
-0.0235748291015625,
0.01464080810546875,
0.03753662109375,
-0.009185791015625,
-0.011077880859375,
-0.01364898681640625,
-0.007556915283203125,
-0.0043792724609375,
0.0211639404296875,
-0.0565185546875,
0.01666259765625,
0.0289306640625,
0.00951385498046875,
-0.027801513671875,
0.0045928955078125,
-0.0697021484375,
-0.01064300537109375,
-0.01320648193359375,
0.007511138916015625,
0.0172271728515625,
-0.034149169921875,
0.043212890625,
-0.0227203369140625,
-0.02093505859375,
-0.07232666015625,
0.0201873779296875,
0.011810302734375,
0.033966064453125,
-0.07989501953125,
0.0211639404296875,
-0.0118255615234375,
0.0087127685546875,
0.0170135498046875,
-0.02105712890625,
-0.057952880859375,
-0.03399658203125,
0.0166168212890625,
0.00821685791015625,
-0.005992889404296875,
0.0016336441040039062,
-0.0313720703125,
0.033111572265625,
0.025054931640625,
0.034576416015625,
0.0133209228515625,
0.0174713134765625,
-0.023345947265625,
0.062255859375,
0.007686614990234375,
-0.0024852752685546875,
-0.00347900390625,
-0.037353515625,
0.01439666748046875,
-0.0203704833984375,
-0.03875732421875,
-0.0298309326171875,
-0.005786895751953125,
0.03851318359375,
0.07366943359375,
-0.011932373046875,
-0.038726806640625,
0.0109710693359375,
0.0005993843078613281,
-0.02423095703125,
0.038330078125,
0.05242919921875,
-0.0182037353515625,
0.0027637481689453125,
-0.0413818359375,
-0.0018968582153320312,
0.017547607421875,
0.0220184326171875,
-0.0113525390625,
-0.0202178955078125,
0.0003025531768798828,
0.012969970703125,
-0.05035400390625,
0.044219970703125,
0.0843505859375,
0.043670654296875,
0.060272216796875,
0.0218048095703125,
0.048797607421875,
0.0021209716796875,
-0.0037517547607421875,
0.033050537109375,
-0.00004863739013671875,
0.06024169921875,
0.0079345703125,
0.002262115478515625,
0.0640869140625,
-0.0286712646484375,
0.0288238525390625,
0.035552978515625,
0.027557373046875,
-0.041778564453125,
0.00009495019912719727,
-0.0228729248046875,
-0.036163330078125,
0.036468505859375,
-0.0030269622802734375,
0.001331329345703125,
-0.00868988037109375,
-0.0137176513671875,
0.006778717041015625,
-0.0313720703125,
-0.014617919921875,
-0.01141357421875,
0.0003962516784667969,
0.047210693359375,
0.00414276123046875,
-0.00949859619140625,
-0.011627197265625,
-0.06060791015625,
0.007801055908203125,
-0.026641845703125,
0.004688262939453125,
-0.044036865234375,
0.0408935546875,
-0.0341796875,
-0.01438140869140625,
0.03753662109375,
-0.0733642578125,
0.01534271240234375,
-0.00272369384765625,
0.0104522705078125,
0.034576416015625,
0.035400390625,
-0.0072479248046875,
-0.0163421630859375,
0.0228729248046875,
0.016632080078125,
0.0565185546875,
-0.005435943603515625,
-0.004451751708984375,
0.0012483596801757812,
0.004253387451171875,
-0.01226806640625,
-0.0078277587890625,
-0.00473785400390625,
-0.00620269775390625,
0.01020050048828125,
0.07464599609375,
-0.0007147789001464844,
-0.03558349609375,
0.044677734375,
-0.00897216796875,
-0.03887939453125,
-0.0239105224609375,
-0.01470184326171875,
-0.07537841796875,
-0.033416748046875,
-0.021026611328125,
-0.029266357421875,
0.0408935546875,
-0.007755279541015625,
-0.01241302490234375,
0.041290283203125,
-0.0045318603515625,
-0.0245819091796875,
-0.00739288330078125,
0.034423828125,
-0.01535797119140625,
0.02001953125,
-0.0146942138671875,
0.053070068359375,
-0.01446533203125,
-0.00951385498046875,
-0.012298583984375,
0.020782470703125,
-0.01444244384765625,
-0.0022182464599609375,
0.07562255859375,
0.0260467529296875,
-0.04962158203125,
-0.0008311271667480469,
0.03802490234375,
0.01715087890625,
-0.006885528564453125,
0.056854248046875,
0.0176544189453125,
-0.007083892822265625,
0.026458740234375,
0.0083160400390625,
0.05517578125,
-0.0692138671875,
-0.00553131103515625,
0.016204833984375,
0.017120361328125,
-0.003673553466796875,
0.022308349609375,
0.03314208984375,
-0.02630615234375,
0.01427459716796875,
0.0217742919921875,
-0.012115478515625,
0.050048828125,
-0.0184173583984375,
0.016326904296875,
0.0284271240234375,
-0.0321044921875,
0.01358795166015625,
0.0274658203125,
0.006496429443359375,
-0.0174713134765625,
-0.00571441650390625,
0.00800323486328125,
-0.0091705322265625,
-0.039581298828125,
-0.026031494140625,
-0.0232086181640625,
0.00360107421875,
0.04400634765625,
0.0275726318359375,
0.043426513671875,
0.01201629638671875,
0.0187225341796875,
-0.021209716796875,
0.025787353515625,
-0.031982421875,
-0.06585693359375,
0.0011920928955078125,
0.00341033935546875,
0.01119232177734375,
0.03131103515625,
0.0065155029296875,
-0.02642822265625,
0.04071044921875,
-0.0543212890625,
0.0153350830078125,
0.02557373046875,
-0.0244140625,
-0.0237579345703125,
-0.010589599609375,
0.0115203857421875,
0.052947998046875,
-0.0160980224609375,
0.005466461181640625,
0.01519012451171875,
-0.01491546630859375,
-0.012603759765625,
0.002155303955078125,
0.039825439453125,
0.0190887451171875,
-0.00860595703125,
0.0273895263671875,
0.0151214599609375,
0.01291656494140625,
-0.05181884765625,
-0.05218505859375,
0.0268707275390625,
0.051239013671875,
0.0220794677734375,
0.0247039794921875,
0.04193115234375,
0.03802490234375,
0.004680633544921875,
-0.00978851318359375,
0.01512908935546875,
-0.01401519775390625,
0.007114410400390625,
-0.0167999267578125,
0.028045654296875,
0.01430511474609375,
0.00505828857421875,
-0.0166778564453125,
0.02099609375,
0.031280517578125,
-0.03173828125,
0.059722900390625,
-0.01000213623046875,
0.0138397216796875,
0.00775909423828125,
-0.04864501953125,
0.024749755859375,
0.00464630126953125,
-0.0030841827392578125,
-0.007122039794921875,
0.00981903076171875,
0.039520263671875,
-0.0423583984375,
0.00960540771484375,
0.00856781005859375,
0.03717041015625,
0.0012693405151367188,
-0.01497650146484375,
0.01203155517578125,
0.0085601806640625,
0.00040602684020996094,
0.0391845703125,
0.0191192626953125,
0.00719451904296875,
-0.051300048828125,
-0.028106689453125,
-0.036376953125,
0.0255279541015625,
0.00562286376953125,
0.11724853515625,
-0.046356201171875,
0.01103973388671875,
-0.003376007080078125,
0.0103759765625,
-0.0167083740234375,
-0.01091766357421875,
0.0023975372314453125,
-0.006099700927734375,
0.001941680908203125,
0.007289886474609375,
-0.01071929931640625,
0.003765106201171875,
0.0294342041015625,
0.00119781494140625,
-0.01099395751953125,
-0.03564453125,
0.0350341796875,
0.03167724609375,
0.06317138671875,
-0.01084136962890625,
-0.05462646484375,
-0.08416748046875,
-0.015838623046875,
0.0452880859375,
0.0775146484375,
0.004833221435546875,
0.022796630859375,
0.0185089111328125,
-0.0157928466796875,
-0.0010166168212890625,
-0.00653076171875,
-0.005519866943359375,
0.0229949951171875,
0.0066680908203125,
-0.0865478515625,
0.001216888427734375,
-0.0058746337890625,
-0.01513671875,
0.006771087646484375,
0.0888671875,
-0.0007600784301757812,
-0.0240478515625,
0.004825592041015625,
0.04876708984375,
0.034637451171875,
0.0017871856689453125,
0.0233154296875,
0.031890869140625,
-0.0188446044921875,
0.0008606910705566406,
0.0005955696105957031,
-0.0286102294921875,
-0.04620361328125,
0.0105438232421875,
0.022308349609375,
-0.01479339599609375,
-0.003620147705078125,
-0.0390625,
0.007099151611328125,
0.0322265625,
0.0186920166015625,
-0.0909423828125,
0.0316162109375,
-0.013824462890625,
0.0771484375,
-0.0175018310546875,
0.0457763671875,
-0.034881591796875,
-0.006565093994140625,
-0.041534423828125,
-0.03704833984375,
-0.034881591796875,
0.0653076171875,
-0.0210418701171875,
0.0272979736328125,
0.05682373046875,
-0.0209808349609375,
-0.04022216796875,
0.031890869140625,
0.023040771484375,
0.068603515625,
0.0016765594482421875,
-0.0012159347534179688,
0.0279693603515625,
-0.0179290771484375,
-0.037811279296875,
-0.0645751953125,
0.00910186767578125,
-0.0546875,
-0.012725830078125,
-0.02838134765625,
-0.00905609130859375,
-0.0008392333984375,
-0.05804443359375,
-0.07513427734375,
0.043426513671875,
-0.002117156982421875,
-0.0338134765625,
-0.0284423828125,
-0.038665771484375,
-0.01032257080078125,
0.06549072265625,
0.00243377685546875,
-0.040313720703125,
-0.055084228515625,
0.03924560546875,
0.0028629302978515625,
0.036468505859375,
-0.005947113037109375,
0.0220184326171875,
0.006488800048828125,
0.031646728515625,
0.01544952392578125,
-0.02996826171875,
-0.0164337158203125,
0.014251708984375,
0.01416015625,
0.06475830078125,
-0.0092926025390625,
0.00991058349609375,
0.01282501220703125,
-0.0546875,
-0.0157470703125,
-0.028228759765625,
-0.01454925537109375,
-0.00560760498046875,
0.068115234375,
0.037261962890625,
0.0154876708984375,
-0.02154541015625,
-0.00185394287109375,
-0.030120849609375,
0.002960205078125,
-0.0107879638671875,
0.01593017578125,
-0.0623779296875,
-0.0183868408203125,
0.03033447265625,
0.02142333984375,
0.0036830902099609375,
0.0019664764404296875,
0.025726318359375,
-0.033935546875,
0.04803466796875,
-0.00968170166015625,
0.0161590576171875,
-0.0015392303466796875,
0.06536865234375,
-0.038421630859375,
0.0298614501953125,
-0.00788116455078125,
0.01409149169921875,
0.05712890625,
0.0063629150390625,
0.003734588623046875,
0.0200347900390625,
-0.050262451171875,
0.0279693603515625,
-0.00815582275390625,
0.047027587890625,
-0.060577392578125,
-0.01552581787109375,
0.023590087890625,
-0.0249786376953125,
-0.02386474609375,
-0.04132080078125,
0.0276641845703125,
-0.0165252685546875,
-0.05218505859375,
0.0736083984375,
-0.01275634765625,
-0.0225677490234375,
-0.0022106170654296875,
0.01355743408203125,
-0.07720947265625,
0.012725830078125,
-0.058624267578125,
-0.022918701171875,
-0.01067352294921875,
-0.0260162353515625,
-0.06658935546875,
-0.0360107421875,
-0.02532958984375,
-0.0185394287109375,
-0.03778076171875,
0.0091705322265625
] |
2bf66c3e7ae4636fbce6a7985707b5ddbcbe4228
|
Wordpress Stackexchange
Q: Excerpt textarea missing on post editing page in admin panel Why is that? It's a new installation.
EDIT: I don't have plugins installed and I tried to restore default theme to Twenty Ten, but it didn't change anything.
A: Upper right corner in posts editing page > "Screen Options"...there you have to check "Excerpt" ;)
|
Q: Excerpt textarea missing on post editing page in admin panel Why is that? It's a new installation.
EDIT: I don't have plugins installed and I tried to restore default theme to Twenty Ten, but it didn't change anything.
A: Upper right corner in posts editing page > "Screen Options"...there you have to check "Excerpt" ;)
A: If you already tried to add it at Screen Options in Upper Right Corner (in older versions)... try it:
Add the following code to your theme’s functions.php file or a site-specific plugin:
add_post_type_support( 'page', 'excerpt' );
|
wordpress
|
{
"language": "en",
"length": 93,
"provenance": "stackexchange_00019.jsonl.gz:408867",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15505"
}
|
[
-0.032440185546875,
-0.019775390625,
-0.0087127685546875,
0.057586669921875,
-0.033447265625,
-0.02252197265625,
0.032196044921875,
-0.0311126708984375,
0.033782958984375,
0.01312255859375,
-0.0166015625,
-0.0234832763671875,
0.006908416748046875,
-0.035369873046875,
-0.0265960693359375,
-0.0188751220703125,
0.00051116943359375,
-0.013885498046875,
-0.04254150390625,
-0.015350341796875,
-0.0035037994384765625,
-0.01499176025390625,
-0.046356201171875,
0.0208587646484375,
0.00433349609375,
0.047027587890625,
0.047210693359375,
-0.00284576416015625,
-0.0003516674041748047,
-0.01187896728515625,
0.0133056640625,
-0.0244293212890625,
0.018798828125,
0.0305938720703125,
-0.044586181640625,
-0.041046142578125,
-0.03125,
0.0181121826171875,
-0.00616455078125,
-0.01119232177734375,
0.0246429443359375,
0.01177978515625,
0.03228759765625,
0.03338623046875,
-0.0084075927734375,
-0.05487060546875,
0.04083251953125,
-0.028564453125,
0.0298614501953125,
-0.0272979736328125,
-0.0199432373046875,
-0.0006113052368164062,
-0.002819061279296875,
-0.04168701171875,
-0.0151214599609375,
-0.034149169921875,
0.0213623046875,
-0.0083465576171875,
0.0277862548828125,
-0.03924560546875,
-0.025390625,
-0.00399017333984375,
0.025115966796875,
0.0266265869140625,
0.007022857666015625,
0.004192352294921875,
0.01396942138671875,
0.019989013671875,
-0.061431884765625,
0.0028362274169921875,
0.046875,
-0.060760498046875,
0.0205078125,
-0.0268402099609375,
0.041351318359375,
0.01123046875,
-0.040740966796875,
0.0106658935546875,
0.0245361328125,
0.0192108154296875,
-0.0384521484375,
0.00453948974609375,
0.00495147705078125,
-0.0572509765625,
0.01214599609375,
-0.03228759765625,
-0.0255584716796875,
0.0052642822265625,
-0.041259765625,
-0.0037326812744140625,
-0.0199127197265625,
-0.07073974609375,
-0.048187255859375,
0.0307159423828125,
0.027679443359375,
-0.018096923828125,
0.0296173095703125,
0.03094482421875,
0.015625,
0.0010633468627929688,
-0.0063323974609375,
-0.042938232421875,
0.031951904296875,
-0.020538330078125,
0.005580902099609375,
-0.0061187744140625,
-0.0380859375,
-0.0306854248046875,
0.033843994140625,
0.05548095703125,
-0.027191162109375,
0.007610321044921875,
0.0305328369140625,
-0.04949951171875,
-0.02203369140625,
0.015655517578125,
0.0187835693359375,
-0.007022857666015625,
0.0308990478515625,
-0.033477783203125,
-0.003025054931640625,
0.01529693603515625,
-0.0455322265625,
-0.0075225830078125,
-0.0253753662109375,
-0.054718017578125,
-0.0233001708984375,
0.0426025390625,
0.041748046875,
-0.0011491775512695312,
-0.03289794921875,
0.01904296875,
0.0243988037109375,
-0.00128936767578125,
-0.00717926025390625,
-0.0227813720703125,
-0.02197265625,
0.00725555419921875,
-0.0049896240234375,
-0.00867462158203125,
-0.050628662109375,
0.00763702392578125,
0.0491943359375,
-0.038848876953125,
-0.0272064208984375,
0.0242156982421875,
0.0242462158203125,
0.007465362548828125,
-0.0238800048828125,
-0.065185546875,
-0.01995849609375,
-0.0165557861328125,
0.0310516357421875,
0.016021728515625,
0.003101348876953125,
-0.037078857421875,
0.05755615234375,
-0.05047607421875,
-0.01776123046875,
-0.0565185546875,
0.052490234375,
0.0068359375,
0.005924224853515625,
0.018890380859375,
-0.032257080078125,
0.0016736984252929688,
-0.035125732421875,
-0.023834228515625,
0.03448486328125,
-0.0011186599731445312,
0.035797119140625,
-0.030792236328125,
0.059783935546875,
0.031524658203125,
0.00152587890625,
0.042449951171875,
0.00720977783203125,
-0.06982421875,
0.0247802734375,
0.037445068359375,
0.006114959716796875,
0.01220703125,
-0.026763916015625,
0.038665771484375,
-0.0294647216796875,
0.0279083251953125,
0.01480865478515625,
0.06878662109375,
0.0264892578125,
0.0301361083984375,
-0.01479339599609375,
-0.0179595947265625,
0.00463104248046875,
-0.024627685546875,
0.014251708984375,
-0.014373779296875,
-0.0228271484375,
-0.00716400146484375,
-0.01227569580078125,
0.0030345916748046875,
0.0035400390625,
0.0003044605255126953,
-0.0014190673828125,
0.01439666748046875,
-0.043212890625,
-0.01134490966796875,
-0.01409149169921875,
0.022918701171875,
0.00548553466796875,
0.0255126953125,
-0.0004603862762451172,
-0.0221099853515625,
0.0172576904296875,
-0.052886962890625,
-0.0196533203125,
0.0278778076171875,
-0.0295562744140625,
0.0174713134765625,
0.0224456787109375,
0.003810882568359375,
0.0306854248046875,
-0.00803375244140625,
0.00846099853515625,
-0.0140380859375,
0.009735107421875,
-0.0100250244140625,
-0.0215606689453125,
-0.023345947265625,
0.029296875,
-0.0310211181640625,
0.061920166015625,
0.0645751953125,
0.0238800048828125,
0.03521728515625,
-0.043060302734375,
-0.01169586181640625,
-0.02142333984375,
0.00004035234451293945,
-0.004383087158203125,
0.0372314453125,
0.04071044921875,
0.05859375,
-0.034698486328125,
-0.05804443359375,
0.08935546875,
-0.05596923828125,
-0.0142974853515625,
-0.01235198974609375,
-0.004177093505859375,
0.032867431640625,
0.054962158203125,
0.0011692047119140625,
-0.00296783447265625,
-0.031280517578125,
0.0086822509765625,
0.017791748046875,
0.002910614013671875,
0.00463104248046875,
-0.0091094970703125,
-0.0005426406860351562,
0.00934600830078125,
0.0057525634765625,
-0.02783203125,
0.0062408447265625,
0.04168701171875,
0.030792236328125,
0.0694580078125,
0.0704345703125,
-0.0443115234375,
0.0053558349609375,
0.00032138824462890625,
0.05047607421875,
0.0009946823120117188,
0.030426025390625,
0.0264892578125,
0.03558349609375,
-0.0447998046875,
-0.022125244140625,
0.04827880859375,
0.03515625,
0.00521087646484375,
0.022918701171875,
-0.03826904296875,
-0.01435089111328125,
-0.0090789794921875,
-0.08343505859375,
-0.0102996826171875,
0.0274658203125,
0.0117340087890625,
-0.0472412109375,
0.010345458984375,
-0.0293121337890625,
-0.0556640625,
0.0411376953125,
-0.0255126953125,
-0.057708740234375,
0.011474609375,
-0.01910400390625,
0.025115966796875,
-0.01416015625,
0.053985595703125,
0.0537109375,
-0.0182952880859375,
0.0293731689453125,
0.0272979736328125,
-0.005279541015625,
0.039642333984375,
0.0256500244140625,
0.01375579833984375,
0.045379638671875,
-0.09765625,
-0.0280609130859375,
0.0174102783203125,
0.0288848876953125,
-0.037933349609375,
-0.028839111328125,
-0.047698974609375,
0.0014982223510742188,
-0.106689453125,
-0.052276611328125,
-0.066650390625,
-0.0550537109375,
-0.01556396484375,
-0.0233001708984375,
-0.02081298828125,
0.021881103515625,
-0.01453399658203125,
0.01049041748046875,
0.0196075439453125,
-0.035888671875,
-0.041839599609375,
-0.06671142578125,
-0.0819091796875,
-0.075439453125,
0.00927734375,
-0.0015935897827148438,
0.00768280029296875,
0.053680419921875,
0.00213623046875,
-0.07122802734375,
-0.004436492919921875,
-0.032470703125,
-0.022857666015625,
0.0283050537109375,
0.034576416015625,
-0.00926971435546875,
0.01016998291015625,
0.035552978515625,
0.0199432373046875,
0.018890380859375,
-0.036407470703125,
-0.03936767578125,
-0.054718017578125,
-0.036346435546875,
-0.01068115234375,
-0.0248870849609375,
0.051849365234375,
-0.0259857177734375,
0.0028533935546875,
-0.048553466796875,
-0.0133514404296875,
-0.0168609619140625,
-0.05059814453125,
0.020416259765625,
-0.0085296630859375,
0.0201873779296875,
-0.00032401084899902344,
0.03167724609375,
0.0019435882568359375,
-0.0028400421142578125,
0.035400390625,
-0.026641845703125,
0.0012722015380859375,
-0.0185394287109375,
-0.021697998046875,
-0.0192108154296875,
-0.03143310546875,
-0.041259765625,
0.049591064453125,
-0.00934600830078125,
0.0271759033203125,
0.02337646484375,
0.0236968994140625,
0.015838623046875,
-0.03216552734375,
0.0223541259765625,
-0.02880859375,
-0.0129241943359375,
-0.0045166015625,
-0.00335693359375,
0.00010579824447631836,
0.03900146484375,
-0.0273895263671875,
-0.005306243896484375,
0.007785797119140625,
0.01497650146484375,
-0.0012521743774414062,
-0.046234130859375,
-0.0108795166015625,
-0.01751708984375,
-0.04119873046875,
0.0164794921875,
0.01708984375,
-0.022216796875,
-0.017425537109375,
0.034881591796875,
-0.04541015625,
-0.0143585205078125,
0.0283966064453125,
-0.044708251953125,
0.002712249755859375,
0.01491546630859375,
-0.014556884765625,
-0.038909912109375,
-0.0131988525390625,
-0.04229736328125,
-0.0816650390625,
-0.01351165771484375,
-0.0291748046875,
0.0684814453125,
0.030242919921875,
-0.01190948486328125,
-0.0233306884765625,
0.0264739990234375,
0.01471710205078125,
-0.0302581787109375,
0.032470703125,
-0.0011510848999023438,
-0.010284423828125,
-0.00832366943359375,
0.0261077880859375,
-0.058135986328125,
-0.01264190673828125,
-0.021514892578125,
-0.04010009765625,
-0.027374267578125,
-0.01470184326171875,
-0.03863525390625,
0.01273345947265625,
-0.021453857421875,
-0.0242767333984375,
-0.034271240234375,
-0.00921630859375,
0.0083465576171875,
-0.017059326171875,
0.006328582763671875,
-0.03900146484375,
-0.01340484619140625,
0.01715087890625,
-0.00440216064453125,
-0.031463623046875,
0.0119171142578125,
0.029571533203125,
0.0231475830078125,
-0.00916290283203125,
-0.0236358642578125,
0.0046234130859375,
0.0672607421875,
0.05560302734375,
0.01253509521484375,
0.0106964111328125,
-0.037384033203125,
0.055328369140625,
0.067138671875,
0.004383087158203125,
-0.049957275390625,
0.01160430908203125,
0.00339508056640625,
-0.01519775390625,
0.014007568359375,
-0.009613037109375,
0.088623046875,
0.019561767578125,
-0.01189422607421875,
0.0004730224609375,
-0.0235443115234375,
0.0178985595703125,
-0.011474609375,
0.034027099609375,
-0.018524169921875,
0.019439697265625,
-0.021942138671875,
0.042388916015625,
0.030120849609375,
0.050201416015625,
0.00507354736328125,
-0.0184173583984375,
0.0283966064453125,
-0.0037784576416015625,
-0.015045166015625,
0.01221466064453125,
-0.01739501953125,
0.00630950927734375,
0.0026397705078125,
-0.030548095703125,
-0.0184173583984375,
-0.01727294921875,
0.027801513671875,
-0.0124664306640625,
-0.0556640625,
-0.0087432861328125,
-0.01031494140625,
0.03607177734375,
0.034637451171875,
-0.00728607177734375,
-0.03851318359375,
0.003326416015625,
0.01468658447265625,
0.005462646484375,
0.0210418701171875,
0.01526641845703125,
0.006832122802734375,
0.00803375244140625,
-0.0009136199951171875,
-0.007717132568359375,
0.036376953125,
0.05438232421875,
-0.0307464599609375,
0.031768798828125,
-0.0166015625,
-0.02099609375,
-0.050872802734375,
0.029266357421875,
0.017059326171875,
0.0206451416015625,
0.0026569366455078125,
0.00981903076171875,
0.0208892822265625,
-0.0245819091796875,
-0.0018205642700195312,
0.0068817138671875,
0.0270843505859375,
-0.0014371871948242188,
-0.01116180419921875,
0.018035888671875,
-0.0292816162109375,
-0.005428314208984375,
0.039581298828125,
-0.00815582275390625,
-0.08404541015625,
-0.001766204833984375,
0.045257568359375,
0.00913238525390625,
-0.0399169921875,
-0.042510986328125,
0.0034503936767578125,
-0.050323486328125,
0.00559234619140625,
-0.006580352783203125,
-0.06549072265625,
0.0323486328125,
0.0203857421875,
0.025634765625,
-0.006008148193359375,
-0.0234527587890625,
-0.005405426025390625,
-0.0261993408203125,
-0.01451873779296875,
0.0210113525390625,
0.07000732421875,
0.00487518310546875,
0.0184173583984375,
-0.0015840530395507812,
-0.0396728515625,
-0.0469970703125,
0.015838623046875,
0.0232086181640625,
-0.00466156005859375,
-0.052581787109375,
0.0034046173095703125,
-0.061492919921875,
-0.029296875,
-0.039825439453125,
-0.0279693603515625,
-0.04803466796875,
-0.00783538818359375,
0.0052490234375,
0.01462554931640625,
-0.0116119384765625,
-0.037628173828125,
-0.043670654296875,
0.0247955322265625,
0.049896240234375,
0.0555419921875,
0.0028209686279296875,
0.0660400390625,
-0.035491943359375,
0.0270843505859375,
-0.00722503662109375,
0.048431396484375,
-0.005718231201171875,
-0.012786865234375,
0.00225067138671875,
-0.013916015625,
0.005748748779296875,
-0.01537322998046875,
0.00727081298828125,
-0.017242431640625,
0.01250457763671875,
0.005443572998046875,
-0.0224761962890625,
0.00217437744140625,
0.01399993896484375,
-0.031707763671875,
0.03692626953125,
-0.00872039794921875,
-0.0284881591796875,
0.001201629638671875,
-0.044586181640625,
-0.0201416015625,
-0.0006432533264160156,
-0.0177154541015625,
0.0264892578125,
-0.022216796875,
-0.01120758056640625,
0.050537109375,
-0.0579833984375,
0.04058837890625,
0.05462646484375,
-0.0236053466796875,
0.025726318359375,
0.00579071044921875,
0.00905609130859375,
0.020416259765625,
0.01087188720703125,
-0.042694091796875,
0.00469207763671875,
0.039031982421875,
0.00943756103515625,
-0.0313720703125,
0.036865234375,
-0.0195465087890625,
0.00847625732421875,
0.0479736328125,
0.072509765625,
-0.07928466796875,
0.00789642333984375,
0.0149383544921875,
0.0014705657958984375,
0.041229248046875,
-0.017974853515625,
0.00301361083984375,
-0.01291656494140625,
0.05816650390625,
-0.00507354736328125,
-0.0032520294189453125,
0.030731201171875,
-0.0095367431640625,
-0.023651123046875,
-0.033447265625,
0.0272216796875,
0.033721923828125,
-0.014068603515625,
0.052886962890625,
0.0188140869140625,
0.015350341796875,
-0.0301361083984375,
0.0287628173828125,
0.00911712646484375,
-0.004344940185546875,
-0.04473876953125,
0.042083740234375,
0.017852783203125,
-0.0139312744140625,
0.0173492431640625,
0.04302978515625,
0.00144195556640625,
0.04302978515625,
-0.0063934326171875,
0.0211639404296875,
0.00890350341796875,
-0.0023212432861328125,
0.003383636474609375,
-0.034881591796875,
-0.00783538818359375,
0.043060302734375,
-0.00968170166015625,
0.0212860107421875,
0.0222320556640625,
-0.03765869140625,
0.00887298583984375,
0.0135650634765625,
0.045166015625,
-0.00021898746490478516,
-0.0367431640625,
0.034637451171875,
-0.0254364013671875,
-0.003910064697265625,
-0.031097412109375,
-0.018096923828125,
-0.0228118896484375,
0.050201416015625,
-0.048614501953125,
0.0255889892578125,
0.01523590087890625,
-0.0298309326171875,
-0.057464599609375,
0.0853271484375,
0.01629638671875,
0.0031108856201171875,
0.0062408447265625,
0.041412353515625,
-0.028106689453125,
0.0196990966796875,
-0.004497528076171875,
0.0191497802734375,
-0.048492431640625,
0.00508880615234375,
-0.02484130859375,
0.01561737060546875,
-0.027587890625,
0.016571044921875,
0.039215087890625,
0.005374908447265625,
-0.006282806396484375,
0.00878143310546875,
0.0728759765625,
0.0299530029296875,
-0.00970458984375,
0.019683837890625,
0.04437255859375,
0.051605224609375,
0.01910400390625,
-0.008575439453125,
0.041900634765625,
-0.06353759765625,
-0.02069091796875,
0.052490234375,
-0.013946533203125,
-0.003993988037109375,
0.07110595703125,
-0.006072998046875,
0.0022449493408203125,
0.01371002197265625,
0.0168609619140625,
-0.1263427734375,
-0.01078033447265625,
0.050262451171875,
0.06036376953125,
-0.0712890625,
-0.050048828125,
-0.0250701904296875,
0.04742431640625,
0.039337158203125,
0.0038166046142578125,
0.02655029296875,
0.02996826171875,
-0.01126861572265625,
-0.043609619140625,
0.012115478515625,
0.01308441162109375,
-0.046630859375,
-0.037078857421875,
-0.0218658447265625,
-0.004634857177734375,
-0.051910400390625,
-0.010345458984375,
0.036895751953125,
-0.0161895751953125,
-0.00728607177734375,
-0.049041748046875,
0.000522613525390625,
-0.0127410888671875,
-0.010955810546875,
-0.0162506103515625,
-0.033843994140625,
-0.0074005126953125,
0.042816162109375,
-0.0022716522216796875,
-0.03033447265625,
0.01219940185546875,
0.0159149169921875,
-0.0020847320556640625,
-0.006290435791015625,
0.039642333984375,
-0.024169921875,
-0.034881591796875,
0.021270751953125,
0.01284027099609375,
0.0010328292846679688,
0.00258636474609375,
0.035003662109375,
0.037384033203125,
0.00862884521484375,
-0.003948211669921875,
0.01314544677734375,
-0.0007834434509277344,
0.0174407958984375,
-0.032989501953125,
-0.017974853515625,
-0.014801025390625,
0.0264434814453125,
-0.01482391357421875,
-0.005096435546875,
0.00878143310546875,
-0.0234222412109375,
-0.058502197265625,
-0.01496124267578125,
-0.00997161865234375,
-0.041961669921875,
-0.008148193359375,
-0.0167999267578125,
0.04351806640625,
0.059356689453125,
0.01198577880859375,
-0.004154205322265625,
0.01953125,
0.08087158203125,
-0.009613037109375,
-0.03515625,
0.0272674560546875,
-0.0303802490234375,
0.0195159912109375,
0.039886474609375,
-0.01033782958984375,
0.0300750732421875,
-0.0582275390625,
-0.01023101806640625,
-0.0218505859375,
-0.047027587890625,
0.0217742919921875,
0.04241943359375,
-0.02069091796875,
0.0144500732421875,
-0.0192108154296875,
-0.016510009765625,
0.0029850006103515625,
-0.02044677734375,
0.012542724609375,
0.02374267578125,
-0.01390838623046875,
-0.0257415771484375,
-0.0244140625,
-0.0035839080810546875,
0.004520416259765625,
0.01529693603515625,
0.02294921875,
0.055633544921875,
-0.0033130645751953125,
0.007221221923828125,
0.0059356689453125,
0.053497314453125,
-0.057037353515625,
-0.0004391670227050781,
-0.007366180419921875,
-0.0157623291015625,
0.0198822021484375,
0.0012025833129882812,
-0.08160400390625,
0.050445556640625,
0.011505126953125,
0.00970458984375,
0.0306854248046875,
0.004077911376953125,
0.003101348876953125,
-0.01416015625,
0.0181121826171875,
-0.013519287109375,
-0.031768798828125,
-0.02001953125,
-0.0004892349243164062,
0.005756378173828125,
0.0294647216796875,
0.0092010498046875,
-0.0188751220703125,
0.00537872314453125,
-0.031829833984375,
0.020050048828125,
0.033172607421875,
0.016510009765625,
0.032379150390625,
-0.0154876708984375,
0.0281829833984375,
0.0309295654296875,
-0.006465911865234375,
0.04559326171875,
0.0189208984375,
0.0191802978515625,
0.021331787109375,
0.003070831298828125,
0.0250396728515625,
0.00012814998626708984,
0.042205810546875,
-0.032745361328125,
-0.007762908935546875,
0.018798828125,
0.0108642578125,
0.0237884521484375,
0.03472900390625,
-0.004962921142578125,
-0.01447296142578125,
-0.0301055908203125,
0.0005879402160644531,
-0.039520263671875,
-0.0209808349609375,
-0.060699462890625,
0.01181793212890625,
0.006267547607421875,
0.00447845458984375,
-0.05438232421875,
0.04351806640625,
0.01139068603515625,
0.00829315185546875,
-0.015838623046875,
-0.040374755859375,
0.024383544921875,
0.05828857421875,
-0.02545166015625,
-0.00594329833984375,
-0.0170745849609375,
-0.021331787109375,
-0.0300140380859375,
0.038543701171875,
0.09161376953125,
-0.0389404296875,
-0.04486083984375,
0.033599853515625,
0.0160675048828125,
0.08026123046875,
-0.00974273681640625,
-0.01580810546875,
-0.0116424560546875,
0.0286407470703125,
0.01074981689453125,
-0.06475830078125,
-0.0211029052734375,
0.00389862060546875,
0.008514404296875,
-0.0095672607421875,
0.003559112548828125,
0.025726318359375,
-0.04193115234375,
-0.081787109375,
0.00855255126953125,
-0.0071563720703125,
-0.038116455078125,
0.002162933349609375,
-0.031219482421875,
-0.013946533203125,
0.01201629638671875,
-0.00634002685546875,
-0.0148773193359375,
-0.0482177734375,
0.0181884765625,
0.01416015625,
0.006435394287109375,
0.0247802734375,
-0.010223388671875,
-0.05999755859375,
-0.006633758544921875,
-0.004535675048828125,
0.001514434814453125,
0.037261962890625,
-0.011627197265625,
0.01470184326171875,
0.050994873046875,
-0.04180908203125,
-0.094482421875,
-0.053009033203125,
-0.05157470703125,
-0.006443023681640625,
-0.02001953125,
-0.033172607421875,
-0.02496337890625,
0.004730224609375,
0.060638427734375,
-0.00420379638671875,
-0.018798828125,
0.0172271728515625,
-0.01824951171875,
-0.03955078125,
0.01515960693359375,
0.00893402099609375,
-0.02008056640625,
0.018310546875,
0.007709503173828125,
-0.0028400421142578125,
0.036285400390625,
-0.00262451171875,
-0.02703857421875,
-0.027923583984375,
-0.05377197265625,
-0.025970458984375,
-0.06689453125,
-0.0655517578125,
0.05755615234375,
-0.038787841796875,
-0.01422119140625,
0.01082611083984375,
0.03802490234375,
-0.00555419921875,
-0.0003933906555175781,
0.02105712890625,
-0.00861358642578125,
-0.0623779296875,
0.021484375,
-0.00004416704177856445,
0.030731201171875,
-0.055084228515625,
-0.039886474609375,
0.0158233642578125,
0.0215301513671875,
-0.016448974609375,
0.03924560546875,
0.009765625,
-0.00304412841796875,
-0.0318603515625,
0.024566650390625,
-0.0321044921875,
0.054840087890625,
-0.0307769775390625,
0.03814697265625,
0.0119171142578125,
0.0027751922607421875,
0.044708251953125,
0.002910614013671875,
0.00897979736328125,
0.032684326171875,
0.0195465087890625,
-0.0020885467529296875,
-0.0025081634521484375,
0.0059051513671875,
0.00971221923828125,
-0.005138397216796875
] |
2b681cb901423565d160b5f028eb57aa2bf8bd99
|
Wordpress Stackexchange
Q: WordPress Multisite. Can domain be used instead of subdomain? i am new to multisite. It is a simple question. I know WordPress multisite can be setup for subdomains. Is it possible to use domains along with subdomains? I have searched google but have not had really good results. Perhaps I have used the wrong keywords.
so i can use a single wordpress installation for:
domain.com
sub1.domain.com
sub2.domain.com
example.com
example2.com
sub1.example2com
Hope you get it. Thanks in advance!
A: Yes, you can. Follow this http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
|
Q: WordPress Multisite. Can domain be used instead of subdomain? i am new to multisite. It is a simple question. I know WordPress multisite can be setup for subdomains. Is it possible to use domains along with subdomains? I have searched google but have not had really good results. Perhaps I have used the wrong keywords.
so i can use a single wordpress installation for:
domain.com
sub1.domain.com
sub2.domain.com
example.com
example2.com
sub1.example2com
Hope you get it. Thanks in advance!
A: Yes, you can. Follow this http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/
A: "example2.com
sub1.example2com"
Actually for subsites off of mapped sites, you want a multi network plugin.
Free - http://wordpress.org/extend/plugins/wp-multi-network/
Paid - http://wpebooks.com/networks/
|
wordpress
|
{
"language": "en",
"length": 107,
"provenance": "stackexchange_00019.jsonl.gz:408880",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15542"
}
|
[
0.050750732421875,
-0.010772705078125,
0.0185394287109375,
0.003200531005859375,
-0.0195465087890625,
-0.045135498046875,
0.0496826171875,
-0.043487548828125,
0.0084686279296875,
0.022796630859375,
-0.015625,
-0.00431060791015625,
0.0106658935546875,
-0.0391845703125,
-0.000018477439880371094,
-0.0215911865234375,
0.005054473876953125,
0.02191162109375,
-0.0048828125,
-0.026275634765625,
0.00861358642578125,
-0.02105712890625,
-0.025970458984375,
0.033477783203125,
0.045013427734375,
-0.033782958984375,
0.02459716796875,
-0.01512908935546875,
0.016082763671875,
-0.0128936767578125,
0.0202789306640625,
0.0012226104736328125,
0.027557373046875,
-0.00453948974609375,
0.0138702392578125,
0.0059356689453125,
-0.01276397705078125,
0.007030487060546875,
0.031707763671875,
0.0023937225341796875,
0.00814056396484375,
0.0102081298828125,
0.058441162109375,
0.03289794921875,
0.029815673828125,
-0.054412841796875,
0.03472900390625,
-0.07635498046875,
0.0313720703125,
-0.0169219970703125,
0.010650634765625,
-0.008575439453125,
0.0270843505859375,
-0.016998291015625,
-0.042327880859375,
-0.0158538818359375,
0.03741455078125,
0.01702880859375,
0.0301971435546875,
-0.047760009765625,
-0.05706787109375,
0.0224456787109375,
0.026519775390625,
0.01171875,
-0.0047760009765625,
-0.02191162109375,
-0.06292724609375,
0.004467010498046875,
-0.03863525390625,
0.02520751953125,
0.06622314453125,
-0.037109375,
0.0357666015625,
-0.003509521484375,
-0.0163421630859375,
-0.025726318359375,
-0.0058441162109375,
-0.0225982666015625,
0.037322998046875,
-0.03411865234375,
-0.00826263427734375,
-0.0202789306640625,
-0.0303955078125,
-0.043975830078125,
0.023468017578125,
0.00420379638671875,
-0.00403594970703125,
-0.00548553466796875,
-0.052032470703125,
-0.0166015625,
-0.03765869140625,
-0.0209503173828125,
-0.0638427734375,
0.030670166015625,
-0.00806427001953125,
0.008819580078125,
0.01532745361328125,
0.030548095703125,
-0.00550079345703125,
-0.0019817352294921875,
-0.0154266357421875,
-0.0259552001953125,
-0.01348114013671875,
-0.0206146240234375,
-0.0012292861938476562,
0.035430908203125,
0.025054931640625,
-0.005695343017578125,
0.02349853515625,
0.002384185791015625,
-0.0169525146484375,
0.02581787109375,
0.01232147216796875,
-0.033447265625,
-0.02252197265625,
0.0016765594482421875,
-0.017913818359375,
0.012420654296875,
0.006961822509765625,
-0.0114593505859375,
0.0162353515625,
0.053619384765625,
-0.00931549072265625,
0.0013380050659179688,
-0.012786865234375,
-0.000007271766662597656,
0.007152557373046875,
-0.061248779296875,
-0.025665283203125,
0.00927734375,
-0.02093505859375,
0.01332855224609375,
0.0303497314453125,
0.034393310546875,
-0.0098724365234375,
-0.016082763671875,
0.034881591796875,
0.039337158203125,
0.0198974609375,
-0.0103759765625,
0.037445068359375,
-0.038116455078125,
-0.024566650390625,
0.0147857666015625,
-0.00061798095703125,
0.011260986328125,
0.020965576171875,
0.038055419921875,
-0.01457977294921875,
-0.046051025390625,
0.04833984375,
-0.04156494140625,
0.002674102783203125,
0.0017633438110351562,
0.012542724609375,
-0.0298309326171875,
-0.0152587890625,
-0.01194000244140625,
0.025238037109375,
0.0012197494506835938,
-0.026153564453125,
-0.01342010498046875,
0.037078857421875,
-0.026031494140625,
-0.03125,
0.01369476318359375,
-0.0091400146484375,
-0.007358551025390625,
0.016357421875,
-0.05279541015625,
0.0135955810546875,
-0.041229248046875,
0.0213775634765625,
0.0085296630859375,
0.0161590576171875,
0.046966552734375,
0.04534912109375,
0.01212310791015625,
-0.009063720703125,
0.054840087890625,
-0.00007545948028564453,
-0.0190582275390625,
0.03765869140625,
-0.0275115966796875,
-0.03802490234375,
0.0070648193359375,
-0.0023555755615234375,
0.041259765625,
0.0263671875,
0.0248260498046875,
-0.0006117820739746094,
0.00696563720703125,
-0.021331787109375,
0.0164337158203125,
0.0156402587890625,
-0.0159759521484375,
-0.035888671875,
-0.0005354881286621094,
-0.0076751708984375,
-0.0279388427734375,
-0.00904083251953125,
-0.017852783203125,
0.0263214111328125,
0.0156402587890625,
0.0282745361328125,
-0.00034427642822265625,
0.0049896240234375,
-0.0005488395690917969,
0.0411376953125,
0.01264190673828125,
-0.02142333984375,
0.00787353515625,
0.01531982421875,
-0.0655517578125,
-0.038970947265625,
0.0186309814453125,
-0.0106201171875,
0.04034423828125,
0.01678466796875,
0.0196075439453125,
0.0174102783203125,
-0.020751953125,
0.0038280487060546875,
-0.0143890380859375,
0.03466796875,
-0.037322998046875,
-0.0088958740234375,
-0.038909912109375,
-0.0196533203125,
0.0112152099609375,
-0.08819580078125,
0.045501708984375,
0.039276123046875,
0.02337646484375,
-0.042266845703125,
0.0074005126953125,
-0.006259918212890625,
-0.01148223876953125,
-0.0201873779296875,
0.042694091796875,
0.03924560546875,
0.034912109375,
-0.01003265380859375,
-0.0193328857421875,
0.0260009765625,
-0.0396728515625,
0.0171661376953125,
-0.0231781005859375,
-0.0077362060546875,
0.055938720703125,
0.015960693359375,
0.018646240234375,
-0.0029811859130859375,
-0.0209197998046875,
-0.03765869140625,
0.04058837890625,
0.0002665519714355469,
-0.0386962890625,
0.01922607421875,
-0.01038360595703125,
0.02215576171875,
0.0032596588134765625,
-0.0440673828125,
0.00873565673828125,
-0.01047515869140625,
0.03106689453125,
0.030487060546875,
0.03125,
0.0097503662109375,
0.00537109375,
-0.00885009765625,
-0.03607177734375,
-0.0009222030639648438,
0.0290985107421875,
0.017181396484375,
0.01464080810546875,
-0.01898193359375,
-0.024322509765625,
0.0040130615234375,
0.0124053955078125,
-0.048583984375,
-0.0263824462890625,
-0.05999755859375,
-0.0120086669921875,
-0.01336669921875,
-0.02276611328125,
0.0249481201171875,
0.0028553009033203125,
0.0101776123046875,
-0.0236358642578125,
0.00414276123046875,
0.0006227493286132812,
-0.04443359375,
0.04437255859375,
0.027099609375,
-0.056488037109375,
-0.0010128021240234375,
-0.0457763671875,
0.04437255859375,
-0.036651611328125,
0.0145416259765625,
0.0665283203125,
0.00121307373046875,
0.004428863525390625,
0.0006580352783203125,
-0.0323486328125,
0.017974853515625,
0.00383758544921875,
-0.01091766357421875,
0.007678985595703125,
-0.10076904296875,
-0.0157928466796875,
0.01044464111328125,
-0.02496337890625,
0.0012493133544921875,
-0.02008056640625,
0.0026416778564453125,
-0.0139923095703125,
-0.06396484375,
-0.04815673828125,
-0.005382537841796875,
-0.04986572265625,
-0.03192138671875,
-0.00037550926208496094,
-0.0361328125,
0.0028514862060546875,
0.0221099853515625,
0.006557464599609375,
0.040985107421875,
-0.032318115234375,
-0.056671142578125,
-0.040191650390625,
-0.08197021484375,
-0.036865234375,
0.0074462890625,
-0.0062713623046875,
0.017730712890625,
-0.0283050537109375,
0.0103607177734375,
-0.01316070556640625,
0.0350341796875,
0.087158203125,
-0.005916595458984375,
-0.048980712890625,
0.01160430908203125,
-0.06793212890625,
-0.01297760009765625,
-0.0034942626953125,
0.0262298583984375,
0.00687408447265625,
0.0156097412109375,
0.0005640983581542969,
0.0034580230712890625,
-0.021820068359375,
0.0234832763671875,
-0.05078125,
-0.0062408447265625,
0.0241241455078125,
-0.008148193359375,
-0.041290283203125,
0.0161285400390625,
-0.0218963623046875,
-0.038177490234375,
-0.0299835205078125,
0.035614013671875,
-0.033477783203125,
-0.0301513671875,
-0.016204833984375,
0.01824951171875,
-0.01078033447265625,
-0.01042938232421875,
-0.023162841796875,
0.04779052734375,
0.022735595703125,
0.053253173828125,
-0.00812530517578125,
0.006252288818359375,
-0.040435791015625,
-0.00007444620132446289,
-0.0272064208984375,
-0.0179290771484375,
-0.052337646484375,
0.05023193359375,
-0.06353759765625,
-0.03533935546875,
0.049346923828125,
-0.0341796875,
0.0223846435546875,
-0.050018310546875,
-0.03472900390625,
-0.0208892822265625,
0.1121826171875,
-0.04876708984375,
-0.017669677734375,
0.027099609375,
0.029052734375,
-0.0195770263671875,
-0.044891357421875,
-0.03729248046875,
-0.0274505615234375,
-0.01519775390625,
-0.01708984375,
-0.039886474609375,
0.0117340087890625,
0.0060577392578125,
0.013671875,
0.046356201171875,
-0.0362548828125,
0.007694244384765625,
-0.01355743408203125,
0.0033397674560546875,
-4.76837158203125e-7,
0.00852203369140625,
-0.0216064453125,
0.0126495361328125,
-0.04119873046875,
-0.0166015625,
-0.00522613525390625,
-0.01004791259765625,
0.0215301513671875,
0.0223846435546875,
-0.00669097900390625,
0.0053863525390625,
0.020965576171875,
0.01495361328125,
0.08099365234375,
-0.020355224609375,
-0.01971435546875,
0.005001068115234375,
-0.0223236083984375,
0.01432037353515625,
-0.0108489990234375,
-0.00997161865234375,
-0.0521240234375,
-0.01739501953125,
-0.020233154296875,
-0.0357666015625,
-0.0024471282958984375,
-0.007266998291015625,
-0.00530242919921875,
-0.005176544189453125,
0.0026092529296875,
0.004791259765625,
-0.01178741455078125,
-0.0160369873046875,
-0.004245758056640625,
0.00995635986328125,
0.0093231201171875,
0.03680419921875,
0.037872314453125,
-0.0129241943359375,
0.008575439453125,
0.0116729736328125,
0.01366424560546875,
-0.048004150390625,
-0.067138671875,
-0.0294036865234375,
0.0095367431640625,
-0.0153045654296875,
0.01177215576171875,
-0.01287078857421875,
-0.01213836669921875,
0.030120849609375,
-0.030303955078125,
0.01349639892578125,
0.0235137939453125,
-0.034027099609375,
0.0258941650390625,
-0.021453857421875,
0.01165008544921875,
0.0254364013671875,
-0.0145721435546875,
0.005802154541015625,
0.005321502685546875,
-0.0230865478515625,
-0.015594482421875,
0.0306854248046875,
0.0171661376953125,
-0.0201416015625,
-0.033599853515625,
-0.03704833984375,
0.00937652587890625,
-0.0278778076171875,
0.0355224609375,
0.008880615234375,
0.00286102294921875,
0.0306396484375,
0.037353515625,
-0.01166534423828125,
0.0117340087890625,
0.004085540771484375,
-0.0089874267578125,
0.01727294921875,
0.00909423828125,
-0.022369384765625,
0.0063323974609375,
-0.0239715576171875,
0.091064453125,
0.0189361572265625,
-0.039825439453125,
0.021575927734375,
-0.018157958984375,
0.0266265869140625,
0.01171875,
-0.013092041015625,
0.01433563232421875,
0.012847900390625,
-0.02740478515625,
0.005634307861328125,
0.00421905517578125,
-0.0244903564453125,
-0.042236328125,
-0.026824951171875,
-0.029327392578125,
-0.002552032470703125,
0.000843048095703125,
0.061920166015625,
-0.0139312744140625,
0.03216552734375,
-0.0212860107421875,
0.01678466796875,
0.07183837890625,
0.005847930908203125,
0.00246429443359375,
0.03289794921875,
-0.053375244140625,
0.034820556640625,
0.0298309326171875,
0.00170135498046875,
0.0241241455078125,
0.03350830078125,
0.03717041015625,
0.041748046875,
0.01187896728515625,
-0.0270233154296875,
-0.0343017578125,
-0.01715087890625,
0.018463134765625,
-0.056915283203125,
-0.049224853515625,
-0.019683837890625,
-0.003032684326171875,
0.0340576171875,
-0.0215911865234375,
-0.006649017333984375,
-0.0234527587890625,
-0.00466156005859375,
0.00818634033203125,
-0.049072265625,
0.007305145263671875,
0.006072998046875,
0.003314971923828125,
-0.00572967529296875,
0.004093170166015625,
-0.01309967041015625,
-0.0184326171875,
-0.0426025390625,
-0.0012521743774414062,
-0.01136016845703125,
0.0478515625,
-0.0303497314453125,
0.0020160675048828125,
-0.0258331298828125,
0.019287109375,
-0.045989990234375,
0.019805908203125,
0.0182037353515625,
0.005603790283203125,
-0.08160400390625,
0.034423828125,
-0.049530029296875,
0.0077667236328125,
0.0286865234375,
-0.013031005859375,
-0.041900634765625,
-0.0282440185546875,
0.0290679931640625,
0.00780487060546875,
-0.0048980712890625,
-0.06549072265625,
-0.0167388916015625,
-0.01067352294921875,
0.016448974609375,
-0.04217529296875,
-0.0084075927734375,
0.01404571533203125,
0.007610321044921875,
0.0036487579345703125,
0.01169586181640625,
0.0298919677734375,
0.046600341796875,
-0.04107666015625,
0.01849365234375,
-0.0701904296875,
-0.03271484375,
0.001766204833984375,
-0.039764404296875,
0.033111572265625,
0.0184478759765625,
-0.0003695487976074219,
0.0206146240234375,
-0.028411865234375,
-0.003509521484375,
-0.039093017578125,
-0.005157470703125,
-0.06500244140625,
0.017364501953125,
-0.0304412841796875,
-0.0177764892578125,
0.03472900390625,
-0.025390625,
-0.018798828125,
0.0025482177734375,
-0.00469970703125,
-0.0035114288330078125,
0.048248291015625,
-0.0142974853515625,
0.017425537109375,
0.039459228515625,
-0.003108978271484375,
0.01300811767578125,
0.0309906005859375,
-0.00319671630859375,
0.00749969482421875,
-0.00018596649169921875,
-0.056915283203125,
-0.045684814453125,
-0.0026645660400390625,
0.01120758056640625,
-0.0003578662872314453,
0.03326416015625,
-0.0009279251098632812,
0.0189971923828125,
0.0870361328125,
0.04840087890625,
-0.12109375,
0.00323486328125,
-0.00450897216796875,
-0.018798828125,
-0.0144195556640625,
0.00299072265625,
0.0022106170654296875,
0.025787353515625,
0.019317626953125,
-0.0002911090850830078,
-0.0175323486328125,
0.0194091796875,
0.01175689697265625,
-0.0164947509765625,
-0.0030517578125,
0.046478271484375,
0.022979736328125,
0.00867462158203125,
0.01166534423828125,
-0.01496124267578125,
0.03955078125,
0.002437591552734375,
-0.01325225830078125,
0.0224456787109375,
-0.031219482421875,
-0.0467529296875,
0.0105133056640625,
-0.03863525390625,
-0.00405120849609375,
-0.0498046875,
0.006420135498046875,
0.032867431640625,
0.039337158203125,
-0.0194549560546875,
-0.0230560302734375,
0.04473876953125,
-0.01311492919921875,
0.006778717041015625,
-0.0118560791015625,
0.0270538330078125,
-0.00189208984375,
-0.069091796875,
0.010528564453125,
-0.044586181640625,
-0.0066375732421875,
-0.00505828857421875,
0.0184478759765625,
0.040863037109375,
-0.022308349609375,
-0.0201416015625,
0.033935546875,
0.01364898681640625,
-0.000675201416015625,
-0.01381683349609375,
-0.0187530517578125,
-0.055694580078125,
-0.051727294921875,
-0.014373779296875,
-0.061859130859375,
0.038238525390625,
-0.0333251953125,
-0.07147216796875,
0.135986328125,
0.0141754150390625,
0.037811279296875,
0.0184326171875,
0.051666259765625,
-0.04229736328125,
0.01953125,
0.000698089599609375,
0.010589599609375,
-0.0328369140625,
0.00891876220703125,
-0.01180267333984375,
-0.0014696121215820312,
-0.0027027130126953125,
0.038818359375,
0.038848876953125,
0.0188140869140625,
-0.054473876953125,
0.01424407958984375,
0.0396728515625,
0.0230712890625,
0.01239013671875,
0.043243408203125,
-0.024383544921875,
0.0025005340576171875,
-0.005985260009765625,
-0.02801513671875,
0.0226287841796875,
-0.0218658447265625,
-0.0465087890625,
-0.006374359130859375,
-0.01052093505859375,
-0.035491943359375,
0.041900634765625,
0.006435394287109375,
-0.03497314453125,
0.03173828125,
0.006526947021484375,
0.0352783203125,
0.036041259765625,
-0.0186614990234375,
-0.018157958984375,
0.0313720703125,
0.07867431640625,
-0.025360107421875,
0.046630859375,
-0.01148223876953125,
0.0013751983642578125,
0.01544189453125,
0.006378173828125,
0.007755279541015625,
0.033050537109375,
-0.007904052734375,
0.03826904296875,
0.00539398193359375,
0.01280975341796875,
0.00830078125,
0.0240020751953125,
-0.033416748046875,
-0.031341552734375,
0.0401611328125,
0.026763916015625,
-0.0114898681640625,
-0.00701141357421875,
0.01349639892578125,
-0.01104736328125,
0.0085601806640625,
-0.0282135009765625,
0.0174102783203125,
0.003326416015625,
-0.02313232421875,
-0.017791748046875,
-0.00696563720703125,
0.0292205810546875,
0.0005555152893066406,
0.01116180419921875,
0.0433349609375,
-0.005794525146484375,
0.009857177734375,
-0.0242767333984375,
-0.0005550384521484375,
-0.003833770751953125,
0.077880859375,
0.020904541015625,
0.08795166015625,
-0.08380126953125,
-0.04718017578125,
-0.003326416015625,
0.036407470703125,
0.00147247314453125,
-0.00620269775390625,
-0.036895751953125,
-0.09124755859375,
0.0518798828125,
0.043853759765625,
0.0147857666015625,
0.055389404296875,
0.07135009765625,
0.062408447265625,
-0.0142822265625,
0.00041937828063964844,
0.07293701171875,
0.00008177757263183594,
0.052215576171875,
-0.0212554931640625,
-0.013763427734375,
-0.0145263671875,
-0.04248046875,
-0.04107666015625,
-0.026885986328125,
0.056640625,
-0.0017604827880859375,
0.033111572265625,
0.002246856689453125,
-0.01436614990234375,
0.0092620849609375,
-0.0263214111328125,
0.032135009765625,
-0.0005822181701660156,
-0.056427001953125,
-0.0255889892578125,
-0.01284027099609375,
0.0028209686279296875,
0.0142059326171875,
0.047393798828125,
0.00438690185546875,
-0.0087738037109375,
-0.0010738372802734375,
-0.027923583984375,
0.0247039794921875,
0.013092041015625,
-0.025848388671875,
0.0022373199462890625,
0.0325927734375,
-0.0260772705078125,
-0.051483154296875,
-0.0203704833984375,
0.01377105712890625,
0.004276275634765625,
-0.00847625732421875,
0.0870361328125,
-0.0169525146484375,
-0.01190948486328125,
0.00524139404296875,
-0.0088653564453125,
0.0167083740234375,
-0.01218414306640625,
-0.0117034912109375,
0.0107879638671875,
0.027130126953125,
-0.0146484375,
-0.0024204254150390625,
0.03125,
0.01580810546875,
-0.06927490234375,
0.03485107421875,
-0.0115203857421875,
-0.012359619140625,
-0.03912353515625,
0.054931640625,
-0.021087646484375,
-0.06903076171875,
-0.0966796875,
0.005321502685546875,
0.031829833984375,
0.0491943359375,
-0.040374755859375,
0.01480865478515625,
-0.0260467529296875,
-0.03570556640625,
0.0038585662841796875,
-0.0260467529296875,
-0.0088653564453125,
0.0207672119140625,
0.0074005126953125,
-0.0615234375,
0.043426513671875,
0.0026836395263671875,
0.0005793571472167969,
0.007305145263671875,
0.08514404296875,
0.025146484375,
-0.07098388671875,
0.01245880126953125,
0.0200347900390625,
0.01035308837890625,
-0.0182037353515625,
-0.0008440017700195312,
0.0267181396484375,
-0.0224456787109375,
-0.01021575927734375,
0.0212860107421875,
-0.036865234375,
-0.0408935546875,
0.00531005859375,
0.01285552978515625,
-0.050872802734375,
-0.0304412841796875,
-0.106201171875,
-0.019805908203125,
0.06951904296875,
0.005218505859375,
-0.041839599609375,
0.019561767578125,
-0.046661376953125,
0.0093231201171875,
0.0189208984375,
-0.02374267578125,
-0.004367828369140625,
-0.021728515625,
-0.018798828125,
-0.036651611328125,
-0.045196533203125,
0.03155517578125,
-0.0228118896484375,
0.03759765625,
0.035980224609375,
-0.0304107666015625,
0.0303802490234375,
0.00992584228515625,
0.0098876953125,
0.0589599609375,
0.01238250732421875,
0.0127105712890625,
-0.00746917724609375,
-0.0081634521484375,
-0.044891357421875,
-0.052154541015625,
0.038421630859375,
-0.07958984375,
-0.054229736328125,
-0.06439208984375,
0.021453857421875,
0.008087158203125,
-0.03778076171875,
-0.05145263671875,
0.08380126953125,
-0.025115966796875,
-0.0189056396484375,
-0.07952880859375,
-0.0251007080078125,
-0.00669097900390625,
0.04193115234375,
-0.03314208984375,
0.00434112548828125,
-0.0406494140625,
0.06427001953125,
0.01412200927734375,
0.03680419921875,
-0.027252197265625,
0.0279388427734375,
-0.004085540771484375,
0.05029296875,
0.03924560546875,
-0.01256561279296875,
0.0254669189453125,
-0.0159759521484375,
0.03741455078125,
0.06585693359375,
-0.0179595947265625,
-0.0098876953125,
0.0028362274169921875,
-0.041229248046875,
-0.00905609130859375,
-0.01995849609375,
-0.0305328369140625,
-0.0201873779296875,
0.0767822265625,
0.044097900390625,
0.01971435546875,
-0.0184478759765625,
-0.019744873046875,
-0.042144775390625,
-0.0122222900390625,
-0.00966644287109375,
0.017486572265625,
-0.07330322265625,
-0.011383056640625,
0.03314208984375,
-0.033843994140625,
0.044586181640625,
0.0073699951171875,
-0.038726806640625,
0.030059814453125,
-0.0032062530517578125,
-0.035125732421875,
-0.0562744140625,
0.048828125,
0.039459228515625,
-0.0479736328125,
-0.01678466796875,
-0.002338409423828125,
-0.01058197021484375,
-0.013763427734375,
-0.032684326171875,
0.04150390625,
0.023956298828125,
-0.036468505859375,
-0.00513458251953125,
0.0333251953125,
0.031982421875,
-0.00115966796875,
-0.03619384765625,
-0.031402587890625,
0.0221405029296875,
0.0247039794921875,
0.04937744140625,
-0.0030364990234375,
-0.0112762451171875,
0.021392822265625,
-0.00301361083984375,
-0.002899169921875,
0.00783538818359375,
-0.0226593017578125,
0.0445556640625,
-0.034576416015625,
-0.01007843017578125,
0.0044097900390625,
-0.034942626953125,
0.004428863525390625,
0.006320953369140625,
-0.005764007568359375,
-0.03887939453125,
0.0156707763671875,
-0.0047760009765625,
0.01529693603515625,
0.008758544921875
] |
7c5fd5eb0a9309b2c4c4a7756a8692510af5e7f6
|
Wordpress Stackexchange
Q: Automatic image renaming based on title Is there a plugin or a "hack" that can help me do this? I have spent hours try to figure this out so I would greatly appreciate nay help. I have WP 3.1 running php5 Thanks!
eg.: postitle_image-ID.jpg
A: Hook into the filter 'sanitize_file_name'. See my plugin Germanix URL for a working example.
A plugin doing this is Rename Media.
|
Q: Automatic image renaming based on title Is there a plugin or a "hack" that can help me do this? I have spent hours try to figure this out so I would greatly appreciate nay help. I have WP 3.1 running php5 Thanks!
eg.: postitle_image-ID.jpg
A: Hook into the filter 'sanitize_file_name'. See my plugin Germanix URL for a working example.
A plugin doing this is Rename Media.
A: There is also Media File Renamer, and it does a bit more than Rename Media.
|
wordpress
|
{
"language": "en",
"length": 83,
"provenance": "stackexchange_00019.jsonl.gz:408884",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15557"
}
|
[
0.0164642333984375,
0.028411865234375,
-0.014892578125,
0.0275726318359375,
0.0003628730773925781,
-0.025390625,
0.0172576904296875,
-0.0709228515625,
0.00965118408203125,
0.04791259765625,
-0.0281524658203125,
0.043914794921875,
0.006114959716796875,
-0.00957489013671875,
-0.0120849609375,
-0.000017642974853515625,
0.0263824462890625,
-0.044708251953125,
0.01459503173828125,
0.0018224716186523438,
-0.00787353515625,
0.019073486328125,
0.050140380859375,
-0.050048828125,
-0.00640869140625,
0.0006742477416992188,
0.121337890625,
-0.002498626708984375,
0.003551483154296875,
-0.007904052734375,
0.0248870849609375,
-0.032073974609375,
-0.004787445068359375,
0.03265380859375,
0.00977325439453125,
0.07476806640625,
0.0352783203125,
0.0147552490234375,
0.03912353515625,
0.0232696533203125,
0.040863037109375,
-0.003997802734375,
0.027374267578125,
0.03466796875,
0.009979248046875,
-0.041046142578125,
0.040740966796875,
-0.0584716796875,
0.054779052734375,
-0.037567138671875,
0.00007098913192749023,
0.046875,
0.015106201171875,
-0.024993896484375,
-0.02703857421875,
-0.01055908203125,
-0.0259552001953125,
0.034149169921875,
0.022735595703125,
-0.01361846923828125,
-0.025726318359375,
0.00238800048828125,
0.0069580078125,
-0.00957489013671875,
-0.002227783203125,
0.003509521484375,
-0.01995849609375,
0.01377105712890625,
-0.0303497314453125,
-0.021087646484375,
0.034759521484375,
-0.03253173828125,
0.0209197998046875,
-0.035614013671875,
0.0224761962890625,
-0.0016222000122070312,
-0.02294921875,
-0.024139404296875,
0.037506103515625,
-0.0031223297119140625,
0.00479888916015625,
-0.04266357421875,
0.01320648193359375,
0.0181121826171875,
-0.028717041015625,
0.0176849365234375,
-0.003658294677734375,
0.00628662109375,
-0.0472412109375,
-0.00867462158203125,
-0.029144287109375,
-0.021240234375,
-0.063720703125,
0.0087738037109375,
0.00508880615234375,
-0.01218414306640625,
0.0219573974609375,
0.04925537109375,
0.00351715087890625,
0.023345947265625,
0.006633758544921875,
-0.04058837890625,
0.00989532470703125,
-0.029693603515625,
-0.019439697265625,
0.00380706787109375,
0.03399658203125,
-0.00908660888671875,
0.0005388259887695312,
0.0196685791015625,
-0.034576416015625,
0.056793212890625,
0.01311492919921875,
-0.018218994140625,
-0.028106689453125,
0.02008056640625,
-0.0012025833129882812,
0.0186767578125,
0.0072784423828125,
0.0229339599609375,
-0.0247802734375,
-0.01392364501953125,
0.0211181640625,
0.01129913330078125,
0.036346435546875,
0.0166015625,
-0.0157928466796875,
-0.0002605915069580078,
-0.016754150390625,
-0.0282745361328125,
-0.032379150390625,
0.0322265625,
0.060150146484375,
0.016510009765625,
0.0014829635620117188,
-0.00861358642578125,
0.0170440673828125,
-0.010345458984375,
0.00691986083984375,
-0.00545501708984375,
0.00495147705078125,
-0.013519287109375,
-0.0002872943878173828,
0.0072174072265625,
0.0430908203125,
0.0117950439453125,
-0.0019407272338867188,
0.037872314453125,
0.05029296875,
-0.05767822265625,
0.07904052734375,
-0.0178985595703125,
0.0232696533203125,
0.0003933906555175781,
0.050262451171875,
-0.04425048828125,
0.047393798828125,
-0.048492431640625,
0.0254364013671875,
-0.02197265625,
0.017669677734375,
0.0093994140625,
0.040008544921875,
0.024810791015625,
0.0031070709228515625,
0.0025653839111328125,
-0.0266265869140625,
-0.0030574798583984375,
0.01209259033203125,
-0.031036376953125,
0.00853729248046875,
0.032073974609375,
-0.0124359130859375,
-0.026641845703125,
0.0010976791381835938,
-0.0196380615234375,
-0.024749755859375,
-0.034759521484375,
0.02777099609375,
0.034942626953125,
-0.0016584396362304688,
-0.01531982421875,
-0.00917816162109375,
0.0282440185546875,
-0.03424072265625,
-0.0298919677734375,
0.0093994140625,
0.0200653076171875,
0.0435791015625,
0.026458740234375,
0.0487060546875,
-0.035491943359375,
-0.03631591796875,
0.01641845703125,
0.022308349609375,
0.003986358642578125,
0.005855560302734375,
0.00734710693359375,
0.0184173583984375,
-0.0452880859375,
-0.0030155181884765625,
0.005054473876953125,
-0.0267486572265625,
0.0302734375,
-0.028228759765625,
-0.00774383544921875,
-0.00864410400390625,
0.01145172119140625,
0.01540374755859375,
0.01483154296875,
-0.0006117820739746094,
-0.0168304443359375,
0.0125732421875,
-0.031494140625,
-0.033203125,
-0.0194244384765625,
-0.01087188720703125,
-0.028564453125,
0.006893157958984375,
0.01488494873046875,
-0.018341064453125,
0.041015625,
-0.033599853515625,
0.01140594482421875,
0.0189971923828125,
0.026580810546875,
-0.0408935546875,
0.0019502639770507812,
0.0004849433898925781,
0.02410888671875,
-0.0178985595703125,
0.0325927734375,
0.0215606689453125,
0.02838134765625,
-0.0241241455078125,
-0.042022705078125,
-0.0261077880859375,
-0.10784912109375,
0.03192138671875,
0.0821533203125,
0.0183563232421875,
0.026641845703125,
-0.01195526123046875,
0.010101318359375,
0.0677490234375,
0.01377105712890625,
0.0257415771484375,
-0.007663726806640625,
0.0300445556640625,
0.037933349609375,
-0.0246124267578125,
-0.010284423828125,
0.038970947265625,
-0.068359375,
0.004611968994140625,
0.068603515625,
-0.031890869140625,
-0.01366424560546875,
-0.011322021484375,
0.0093841552734375,
0.0107269287109375,
0.01413726806640625,
0.0084228515625,
-0.0007205009460449219,
0.031707763671875,
0.0233917236328125,
0.038360595703125,
0.032257080078125,
-0.03460693359375,
0.03314208984375,
0.0009889602661132812,
-0.045501708984375,
0.00933074951171875,
0.01543426513671875,
0.02520751953125,
0.00804901123046875,
-0.0297698974609375,
-0.01041412353515625,
0.01427459716796875,
0.00553131103515625,
-0.017608642578125,
0.00647735595703125,
-0.021087646484375,
-0.017303466796875,
-0.015655517578125,
-0.06427001953125,
0.015960693359375,
0.026763916015625,
-0.06134033203125,
-0.048065185546875,
-0.0140380859375,
0.045989990234375,
-0.030120849609375,
0.0290985107421875,
0.0037384033203125,
-0.00580596923828125,
0.0273590087890625,
-0.050323486328125,
0.047698974609375,
-0.041229248046875,
0.048309326171875,
0.0655517578125,
-0.021728515625,
0.0206451416015625,
0.0172119140625,
-0.0103607177734375,
0.026153564453125,
0.007110595703125,
-0.00475311279296875,
0.0245819091796875,
-0.09368896484375,
-0.027496337890625,
-0.005817413330078125,
0.06634521484375,
-0.0528564453125,
-0.06646728515625,
-0.015167236328125,
0.00786590576171875,
-0.0894775390625,
-0.08026123046875,
-0.016571044921875,
-0.0174102783203125,
-0.020904541015625,
0.0145721435546875,
0.00507354736328125,
-0.005474090576171875,
0.027313232421875,
-0.006053924560546875,
-0.002925872802734375,
0.005954742431640625,
-0.04559326171875,
-0.025390625,
-0.039154052734375,
0.01502227783203125,
-0.009674072265625,
0.01087188720703125,
0.016754150390625,
0.01175689697265625,
-0.00014674663543701172,
-0.042144775390625,
0.01251220703125,
0.05029296875,
0.00846099853515625,
0.017181396484375,
0.0162811279296875,
-0.0253143310546875,
-0.0423583984375,
0.0167236328125,
0.01953125,
0.0004930496215820312,
-0.0151519775390625,
-0.0131072998046875,
-0.0103607177734375,
-0.0011005401611328125,
-0.01554107666015625,
0.0157318115234375,
0.02490234375,
0.0028324127197265625,
-0.0184326171875,
-0.0501708984375,
-0.01079559326171875,
-0.0238037109375,
-0.0433349609375,
0.0180511474609375,
0.039215087890625,
-0.01654052734375,
-0.02874755859375,
0.01265716552734375,
-0.0067291259765625,
-0.0211029052734375,
-0.038055419921875,
-0.033782958984375,
0.01397705078125,
0.020172119140625,
0.03240966796875,
0.0205078125,
-0.024566650390625,
-0.027069091796875,
0.017333984375,
-0.019317626953125,
0.042236328125,
0.020263671875,
0.01093292236328125,
-0.01983642578125,
-0.0305023193359375,
0.045013427734375,
0.0079193115234375,
-0.003711700439453125,
-0.014984130859375,
-0.03253173828125,
0.00030875205993652344,
0.061065673828125,
-0.05853271484375,
-0.035888671875,
0.030792236328125,
0.0306854248046875,
0.005962371826171875,
0.00037670135498046875,
-0.0263671875,
-0.041748046875,
-0.12469482421875,
-0.01314544677734375,
-0.00113677978515625,
-0.029754638671875,
-0.0097503662109375,
0.03863525390625,
-0.058837890625,
-0.04425048828125,
0.024749755859375,
-0.015228271484375,
0.01270294189453125,
0.004741668701171875,
-0.004352569580078125,
-0.0017414093017578125,
-0.007297515869140625,
-0.0391845703125,
-0.10479736328125,
-0.01934814453125,
-0.0249481201171875,
0.08929443359375,
-0.005146026611328125,
0.04266357421875,
-0.043701171875,
0.052642822265625,
0.01007843017578125,
0.0201416015625,
-0.005565643310546875,
-0.0181427001953125,
0.0038166046142578125,
0.0296630859375,
0.01763916015625,
0.00933837890625,
-0.004772186279296875,
-0.036712646484375,
-0.058624267578125,
-0.0121002197265625,
-0.0168914794921875,
0.024322509765625,
-0.0025196075439453125,
-0.01824951171875,
-0.000058531761169433594,
-0.00220489501953125,
-0.006511688232421875,
0.02471923828125,
-0.0008320808410644531,
-0.0124359130859375,
-0.036468505859375,
-0.006900787353515625,
0.0521240234375,
-0.0115509033203125,
-0.0005121231079101562,
0.0005679130554199219,
0.059356689453125,
0.001148223876953125,
-0.034027099609375,
-0.0704345703125,
-0.00897979736328125,
0.038421630859375,
0.02227783203125,
0.01076507568359375,
-0.011444091796875,
-0.0479736328125,
0.058380126953125,
0.0260009765625,
-0.0211639404296875,
0.005504608154296875,
0.003276824951171875,
-0.016357421875,
-0.0400390625,
0.0299835205078125,
-0.0248565673828125,
0.04339599609375,
0.05059814453125,
-0.0224609375,
-0.0085296630859375,
-0.0628662109375,
0.018798828125,
-0.0014410018920898438,
0.0169525146484375,
-0.027496337890625,
-0.049591064453125,
0.0259552001953125,
0.0185089111328125,
-0.0254974365234375,
-0.002513885498046875,
-0.0033321380615234375,
-0.016021728515625,
-0.0253753662109375,
0.022613525390625,
-0.03973388671875,
0.002643585205078125,
-0.058990478515625,
0.037628173828125,
-0.04449462890625,
-0.0178680419921875,
-0.011932373046875,
-0.0187835693359375,
0.05224609375,
0.0119171142578125,
-0.030487060546875,
-0.0026378631591796875,
-0.008514404296875,
-0.0031337738037109375,
0.0029964447021484375,
-0.012115478515625,
0.0275726318359375,
0.027435302734375,
-0.009124755859375,
0.007335662841796875,
-0.0224151611328125,
0.0279998779296875,
-0.027008056640625,
-0.017120361328125,
0.027740478515625,
-0.0416259765625,
0.06097412109375,
-0.0096588134765625,
0.0020275115966796875,
0.0094757080078125,
-0.0168609619140625,
0.02239990234375,
0.04339599609375,
0.00824737548828125,
0.0098724365234375,
-0.0030651092529296875,
-0.005649566650390625,
-0.00943756103515625,
0.038818359375,
-0.02325439453125,
0.01134490966796875,
0.0250244140625,
0.030914306640625,
-0.0006966590881347656,
-0.030029296875,
0.014129638671875,
-0.0235443115234375,
-0.039276123046875,
0.03424072265625,
0.01235198974609375,
-0.03265380859375,
-0.041748046875,
0.0015354156494140625,
0.050201416015625,
0.0292510986328125,
-0.0201873779296875,
-0.0255126953125,
-0.040802001953125,
-0.031951904296875,
0.0031566619873046875,
-0.0631103515625,
0.01318359375,
0.017730712890625,
-0.0143890380859375,
-0.019866943359375,
-0.048004150390625,
0.0546875,
-0.0146026611328125,
0.00960540771484375,
-0.0139617919921875,
0.0161590576171875,
-0.0295867919921875,
0.031524658203125,
-0.01137542724609375,
-0.0136260986328125,
0.01540374755859375,
0.037841796875,
-0.01334381103515625,
-0.0236968994140625,
-0.05499267578125,
-0.0107879638671875,
-0.024810791015625,
0.0247039794921875,
-0.0227203369140625,
-0.048797607421875,
-0.015167236328125,
-0.0224456787109375,
-0.025604248046875,
0.029296875,
-0.040740966796875,
0.015960693359375,
0.0384521484375,
0.01464080810546875,
-0.031829833984375,
0.041473388671875,
-0.0011730194091796875,
-0.032501220703125,
0.0298004150390625,
0.005413055419921875,
0.00916290283203125,
-0.0288848876953125,
-0.01434326171875,
-0.03265380859375,
-0.03564453125,
-0.0308990478515625,
-0.004436492919921875,
0.055999755859375,
0.0223388671875,
0.038970947265625,
0.0273590087890625,
0.01311492919921875,
0.03985595703125,
0.0015354156494140625,
0.01727294921875,
-0.01678466796875,
-0.0236053466796875,
-0.033447265625,
0.0277557373046875,
0.0026378631591796875,
-0.0260009765625,
0.012847900390625,
-0.0274505615234375,
0.01439666748046875,
-0.007694244384765625,
-0.043121337890625,
-0.032806396484375,
0.055328369140625,
-0.0174102783203125,
0.0191192626953125,
0.046661376953125,
-0.007205963134765625,
0.0243377685546875,
0.0223541259765625,
-0.0029754638671875,
0.009857177734375,
-0.0306549072265625,
0.041107177734375,
-0.014404296875,
0.0418701171875,
-0.01434326171875,
-0.0145263671875,
0.035858154296875,
-0.0421142578125,
0.02935791015625,
0.053070068359375,
0.060455322265625,
-0.05352783203125,
0.0160675048828125,
0.0208282470703125,
-0.03277587890625,
0.0189208984375,
-0.002346038818359375,
0.00191497802734375,
-0.0048065185546875,
0.0204620361328125,
-0.0089874267578125,
-0.0218353271484375,
0.005504608154296875,
0.012847900390625,
0.0010967254638671875,
0.00240325927734375,
0.0831298828125,
0.0190582275390625,
-0.032684326171875,
-0.0439453125,
0.03106689453125,
-0.026763916015625,
-0.04266357421875,
0.006435394287109375,
0.0004830360412597656,
-0.019561767578125,
-0.043182373046875,
0.04412841796875,
0.0241241455078125,
-0.00800323486328125,
-0.0205841064453125,
0.043304443359375,
0.0216217041015625,
0.051544189453125,
0.005535125732421875,
-0.0192108154296875,
0.038848876953125,
-0.0175018310546875,
-0.0020961761474609375,
-0.041107177734375,
-0.0019741058349609375,
0.0226593017578125,
-0.0287017822265625,
0.0186004638671875,
-0.00034165382385253906,
0.00009065866470336914,
-0.02264404296875,
-0.0290069580078125,
0.08856201171875,
-0.0140533447265625,
-0.011566162109375,
0.0226287841796875,
0.0399169921875,
-0.0099639892578125,
0.01763916015625,
-0.0140228271484375,
-0.03704833984375,
-0.035858154296875,
0.006824493408203125,
-0.043701171875,
0.0195465087890625,
0.0191650390625,
-0.08624267578125,
0.0924072265625,
0.007843017578125,
0.042877197265625,
-0.025970458984375,
0.034454345703125,
-0.0019588470458984375,
-0.004993438720703125,
-0.0221710205078125,
0.03643798828125,
-0.0743408203125,
0.0144195556640625,
-0.040618896484375,
0.02252197265625,
-0.004032135009765625,
0.00843048095703125,
0.04168701171875,
0.0005917549133300781,
-0.0270843505859375,
-0.0298614501953125,
0.00989532470703125,
0.04656982421875,
0.0156402587890625,
0.0215606689453125,
0.01068878173828125,
0.028778076171875,
0.03466796875,
0.00945281982421875,
0.0587158203125,
-0.062286376953125,
-0.006725311279296875,
0.0243072509765625,
0.0279083251953125,
0.032562255859375,
-0.0008563995361328125,
0.0396728515625,
-0.02880859375,
-0.003810882568359375,
0.047210693359375,
-0.0044708251953125,
0.006008148193359375,
0.034393310546875,
0.03302001953125,
-0.004352569580078125,
-0.010162353515625,
-0.004161834716796875,
0.045623779296875,
0.005268096923828125,
0.047271728515625,
0.0396728515625,
0.034027099609375,
-0.0089263916015625,
-0.00786590576171875,
0.032958984375,
0.0079345703125,
-0.0290069580078125,
0.0194091796875,
-0.0006299018859863281,
0.00962066650390625,
-0.0631103515625,
-0.03839111328125,
0.0352783203125,
0.05303955078125,
-0.027435302734375,
-0.044586181640625,
0.016876220703125,
-0.019439697265625,
0.0147247314453125,
-0.01250457763671875,
0.0069732666015625,
-0.04412841796875,
-0.0159454345703125,
0.0006093978881835938,
0.0205841064453125,
0.0560302734375,
0.0187225341796875,
0.0185394287109375,
0.00879669189453125,
-0.069091796875,
0.0233154296875,
-0.03466796875,
0.0250396728515625,
0.00003618001937866211,
0.0296630859375,
-0.01221466064453125,
0.0660400390625,
-0.013763427734375,
-0.00458526611328125,
-0.0221099853515625,
0.09368896484375,
-0.0155792236328125,
0.04345703125,
-0.04266357421875,
-0.07196044921875,
0.0000032782554626464844,
0.0267333984375,
0.00933837890625,
0.054473876953125,
0.0682373046875,
0.0310821533203125,
-0.03399658203125,
-0.01092529296875,
0.00612640380859375,
-0.039031982421875,
0.0635986328125,
-0.030120849609375,
0.051025390625,
0.0029315948486328125,
-0.0133209228515625,
-0.04144287109375,
0.052703857421875,
0.014923095703125,
-0.00664520263671875,
0.023773193359375,
0.0006265640258789062,
-0.03692626953125,
0.005218505859375,
-0.0030841827392578125,
0.03985595703125,
0.004878997802734375,
-0.0655517578125,
-0.0218048095703125,
0.0213623046875,
-0.06536865234375,
0.00911712646484375,
0.0300445556640625,
-0.032196044921875,
0.0176239013671875,
-0.0009918212890625,
0.005645751953125,
-0.00200653076171875,
-0.00843048095703125,
-0.0033111572265625,
0.0003883838653564453,
0.02142333984375,
-0.004486083984375,
-0.0399169921875,
-0.00838470458984375,
-0.03961181640625,
0.0237274169921875,
0.0543212890625,
0.0243988037109375,
0.00832366943359375,
0.059234619140625,
-0.0162811279296875,
-0.01416778564453125,
-0.031524658203125,
-0.01428985595703125,
0.0242767333984375,
-0.006259918212890625,
-0.01222991943359375,
-0.00447845458984375,
-0.0008497238159179688,
0.0100555419921875,
0.0509033203125,
0.01471710205078125,
-0.00910186767578125,
-0.0140380859375,
0.0196075439453125,
0.0211639404296875,
0.039093017578125,
-0.02294921875,
-0.0516357421875,
-0.035858154296875,
0.0030612945556640625,
0.0092010498046875,
0.01247406005859375,
-0.003948211669921875,
0.021759033203125,
-0.0062713623046875,
0.002834320068359375,
0.01910400390625,
-0.018280029296875,
0.0189056396484375,
0.03436279296875,
-0.0438232421875,
-0.0386962890625,
0.0208282470703125,
0.002349853515625,
-0.02001953125,
0.0173187255859375,
0.05450439453125,
0.0187225341796875,
-0.01303863525390625,
-0.04443359375,
-0.0297698974609375,
-0.00011855363845825195,
-0.007595062255859375,
-0.007251739501953125,
-0.048065185546875,
0.005344390869140625,
-0.026092529296875,
-0.035186767578125,
-0.02069091796875,
-0.0640869140625,
-0.0037822723388671875,
0.0269012451171875,
-0.0389404296875,
-0.003948211669921875,
-0.030364990234375,
-0.03228759765625,
-0.0021266937255859375,
0.0035724639892578125,
-0.025787353515625,
-0.001384735107421875,
0.0195770263671875,
-0.010711669921875,
-0.015777587890625,
-0.0540771484375,
-0.019775390625,
-0.0220947265625,
-0.0160064697265625,
-0.070556640625,
-0.0660400390625,
0.0654296875,
-0.050750732421875,
0.03271484375,
0.0501708984375,
-0.045501708984375,
-0.03472900390625,
0.0321044921875,
0.0455322265625,
0.076904296875,
0.028778076171875,
-0.01336669921875,
0.0151214599609375,
-0.0247955322265625,
-0.03851318359375,
-0.046234130859375,
0.042999267578125,
-0.0992431640625,
-0.042510986328125,
-0.0017223358154296875,
-0.004955291748046875,
0.01149749755859375,
-0.035369873046875,
-0.0733642578125,
0.04473876953125,
-0.0022430419921875,
-0.027923583984375,
-0.04754638671875,
0.02978515625,
0.013397216796875,
-0.0162811279296875,
-0.0133209228515625,
0.004062652587890625,
-0.01287078857421875,
0.01477813720703125,
0.0009326934814453125,
0.05523681640625,
-0.0250701904296875,
0.042755126953125,
-0.003002166748046875,
0.047882080078125,
0.0262908935546875,
-0.0266265869140625,
0.02667236328125,
-0.014404296875,
0.0195465087890625,
0.022979736328125,
-0.0484619140625,
-0.0215301513671875,
-0.01058197021484375,
0.01558685302734375,
-0.0053863525390625,
-0.0266265869140625,
-0.03564453125,
-0.0148162841796875,
0.06060791015625,
0.06256103515625,
0.0169677734375,
-0.039398193359375,
0.0721435546875,
-0.0284271240234375,
-0.0185546875,
-0.020050048828125,
-0.0132598876953125,
-0.02813720703125,
-0.04443359375,
0.023223876953125,
-0.01800537109375,
-0.0740966796875,
0.0278778076171875,
-0.053985595703125,
-0.027679443359375,
-0.00948333740234375,
-0.02044677734375,
0.01160430908203125,
0.038330078125,
0.07928466796875,
-0.053985595703125,
-0.009521484375,
0.0194244384765625,
0.0024566650390625,
0.03173828125,
-0.03387451171875,
0.032562255859375,
0.01374053955078125,
-0.0011444091796875,
0.02020263671875,
0.040924072265625,
0.015289306640625,
-0.007518768310546875,
-0.030517578125,
0.000659942626953125,
0.0245513916015625,
0.015655517578125,
0.03131103515625,
-0.0276641845703125,
0.043914794921875,
0.0083160400390625,
0.005977630615234375,
-0.003215789794921875,
-0.016815185546875,
-0.00757598876953125,
0.01904296875,
-0.034027099609375,
-0.0141754150390625,
0.010711669921875,
-0.06158447265625,
0.01325225830078125,
0.042327880859375,
0.011962890625,
-0.019927978515625,
0.00917816162109375,
-0.0531005859375,
-0.000024080276489257812,
-0.0018930435180664062
] |
ff1033803aa7105bd44b77e8417515ac4297ae9e
|
Wordpress Stackexchange
Q: How To create ajaxed wp-pagenavi? I'm using WordPress as a Facebook platform and have a page that shows posts from 2 different categories.
Each category has it's own pagination using wp-pagenavi. In order to stay in Facebook I need the pagination links to load using ajax.
I've seen this article which gives a nice clue about it, but would love to know if anyone had already solved this and has any leads.
My main issue here (and this is stupid), I get that I need to call an ajax function with jQuery and pass it the specific category and the desired page number. I have no idea how to get the page number.
But once again, if you have an already made solution - it will be much appreciated
Currently I tried using this tutorial, the tab code can be seen here. as you can see pagination affects both categories :-(
A: Take a look at this tutorial: http://www.wpmods.com/easily-ajax-wordpress-pagination
|
Q: How To create ajaxed wp-pagenavi? I'm using WordPress as a Facebook platform and have a page that shows posts from 2 different categories.
Each category has it's own pagination using wp-pagenavi. In order to stay in Facebook I need the pagination links to load using ajax.
I've seen this article which gives a nice clue about it, but would love to know if anyone had already solved this and has any leads.
My main issue here (and this is stupid), I get that I need to call an ajax function with jQuery and pass it the specific category and the desired page number. I have no idea how to get the page number.
But once again, if you have an already made solution - it will be much appreciated
Currently I tried using this tutorial, the tab code can be seen here. as you can see pagination affects both categories :-(
A: Take a look at this tutorial: http://www.wpmods.com/easily-ajax-wordpress-pagination
|
wordpress
|
{
"language": "en",
"length": 160,
"provenance": "stackexchange_00019.jsonl.gz:408892",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15575"
}
|
[
0.06317138671875,
-0.0176544189453125,
-0.01212310791015625,
-0.0455322265625,
0.0153350830078125,
-0.049224853515625,
0.01399993896484375,
0.00022792816162109375,
-0.0157623291015625,
-0.026763916015625,
-0.050628662109375,
-0.004924774169921875,
-0.037689208984375,
-0.0216827392578125,
0.0176849365234375,
-0.06298828125,
0.04296875,
-0.0015611648559570312,
0.04412841796875,
0.004398345947265625,
0.005970001220703125,
0.027801513671875,
0.047943115234375,
0.0758056640625,
0.04559326171875,
-0.03228759765625,
0.03594970703125,
-0.0273284912109375,
0.0308685302734375,
-0.0212249755859375,
0.021026611328125,
-0.0037975311279296875,
-0.00220489501953125,
0.00563812255859375,
-0.005687713623046875,
-0.04132080078125,
-0.019012451171875,
0.0140838623046875,
0.00836944580078125,
0.01319122314453125,
0.0188140869140625,
-0.01041412353515625,
0.042755126953125,
-0.0018835067749023438,
0.0166473388671875,
-0.0234832763671875,
0.01129150390625,
-0.05987548828125,
-0.005329132080078125,
0.00438690185546875,
0.004241943359375,
-0.0018701553344726562,
0.00885772705078125,
-0.01409149169921875,
-0.01470947265625,
-0.02532958984375,
-0.00458526611328125,
-0.01116180419921875,
0.026123046875,
0.0006852149963378906,
-0.0228118896484375,
-0.01540374755859375,
0.0214691162109375,
-0.0223236083984375,
-0.02099609375,
-0.012115478515625,
-0.0169677734375,
0.0233001708984375,
0.01490020751953125,
-0.03814697265625,
-0.014312744140625,
0.01470947265625,
-0.0246124267578125,
-0.0162506103515625,
0.001613616943359375,
-0.00824737548828125,
0.0275726318359375,
-0.01788330078125,
-0.0297088623046875,
0.038177490234375,
0.009918212890625,
0.014556884765625,
-0.06866455078125,
-0.00930023193359375,
0.0137176513671875,
0.01398468017578125,
-0.017669677734375,
-0.0201263427734375,
-0.03399658203125,
-0.036590576171875,
-0.031524658203125,
-0.0116119384765625,
-0.069091796875,
0.009307861328125,
-0.0094146728515625,
0.0035190582275390625,
0.01055145263671875,
0.038421630859375,
0.0031147003173828125,
0.0173492431640625,
0.0239105224609375,
-0.05950927734375,
0.0673828125,
-0.041229248046875,
0.03460693359375,
0.01445770263671875,
-0.00891876220703125,
0.0313720703125,
0.068359375,
0.00942230224609375,
-0.01092529296875,
0.042327880859375,
0.01265716552734375,
0.004688262939453125,
-0.037841796875,
-0.03448486328125,
-0.0274810791015625,
-0.0279998779296875,
-0.01293182373046875,
-0.051513671875,
-0.033599853515625,
-0.0174407958984375,
-0.05023193359375,
0.058380126953125,
0.0132904052734375,
0.0274200439453125,
0.0142974853515625,
0.0095062255859375,
0.02069091796875,
0.0028553009033203125,
-0.03363037109375,
0.0275115966796875,
0.07537841796875,
0.0179901123046875,
0.013336181640625,
-0.00849151611328125,
0.0311126708984375,
-0.0352783203125,
-0.00004863739013671875,
0.02276611328125,
-0.0192108154296875,
-0.014404296875,
0.0214996337890625,
-0.0458984375,
-0.0049285888671875,
-0.0161590576171875,
0.01470184326171875,
0.03167724609375,
-0.01419830322265625,
0.024749755859375,
-0.0225677490234375,
0.03228759765625,
0.040130615234375,
-0.00537109375,
0.00669097900390625,
-0.0181884765625,
0.03594970703125,
-0.0196533203125,
-0.01044464111328125,
-0.0289306640625,
0.0265045166015625,
0.0306396484375,
0.033203125,
-0.0236663818359375,
-0.03997802734375,
-0.042633056640625,
-0.052398681640625,
-0.0193328857421875,
0.022735595703125,
0.01885986328125,
-0.01003265380859375,
-0.01430511474609375,
-0.0188751220703125,
0.01000213623046875,
0.0031948089599609375,
0.0203857421875,
0.011749267578125,
-0.0036163330078125,
0.044708251953125,
0.014984130859375,
-0.019287109375,
-0.03826904296875,
0.07586669921875,
-0.0294036865234375,
-0.032012939453125,
0.09033203125,
-0.0005755424499511719,
0.059356689453125,
-0.0276641845703125,
0.00800323486328125,
0.01314544677734375,
0.0694580078125,
-0.0159454345703125,
0.01666259765625,
0.01029205322265625,
-0.038726806640625,
-0.0310211181640625,
-0.01120758056640625,
-0.005863189697265625,
-0.0118408203125,
0.031585693359375,
0.0138397216796875,
-0.0330810546875,
0.023834228515625,
-0.0496826171875,
0.004718780517578125,
-0.01161956787109375,
0.0157012939453125,
0.018524169921875,
0.0245208740234375,
0.01113128662109375,
0.024444580078125,
-0.0019855499267578125,
-0.09283447265625,
-0.028564453125,
0.004360198974609375,
-0.028228759765625,
-0.02105712890625,
-0.03436279296875,
0.004795074462890625,
-0.032318115234375,
0.006053924560546875,
-0.038818359375,
0.01201629638671875,
0.027618408203125,
-0.0550537109375,
0.0030879974365234375,
-0.058074951171875,
0.004306793212890625,
-0.02703857421875,
-0.017669677734375,
0.06304931640625,
0.06182861328125,
0.07476806640625,
-0.0102386474609375,
-0.0225982666015625,
0.0213775634765625,
-0.04547119140625,
0.01959228515625,
0.046051025390625,
0.009735107421875,
0.0159912109375,
-0.036834716796875,
-0.00815582275390625,
-0.03411865234375,
-0.045867919921875,
0.0100250244140625,
-0.0009455680847167969,
-0.006916046142578125,
0.0046539306640625,
0.034881591796875,
-0.0006117820739746094,
0.0274658203125,
-0.007114410400390625,
-0.0003025531768798828,
0.03558349609375,
0.0244140625,
0.00894927978515625,
-0.026214599609375,
0.0168304443359375,
-0.00495147705078125,
-0.002750396728515625,
-0.021728515625,
-0.00435638427734375,
0.042236328125,
-0.036590576171875,
0.039215087890625,
0.017608642578125,
0.00995635986328125,
-0.05047607421875,
0.002063751220703125,
-0.005031585693359375,
0.00716400146484375,
0.0169525146484375,
0.0178680419921875,
0.0217742919921875,
-0.02996826171875,
-0.01154327392578125,
0.04339599609375,
0.0168609619140625,
-0.043701171875,
0.0256805419921875,
-0.03662109375,
-0.02490234375,
-0.040252685546875,
-0.037628173828125,
-0.011749267578125,
-0.0411376953125,
-0.059814453125,
-0.013397216796875,
0.00727081298828125,
0.0312347412109375,
-0.032958984375,
0.0141143798828125,
-0.022796630859375,
0.01439666748046875,
0.0743408203125,
-0.048980712890625,
0.056182861328125,
-0.061126708984375,
0.039337158203125,
0.049102783203125,
-0.0252227783203125,
0.010772705078125,
-0.016876220703125,
-0.0106658935546875,
-0.00662994384765625,
0.0011386871337890625,
-0.01305389404296875,
-0.05462646484375,
0.050048828125,
0.07330322265625,
0.0426025390625,
0.023406982421875,
0.03143310546875,
-0.0166778564453125,
0.0254669189453125,
0.040069580078125,
-0.059906005859375,
-0.08331298828125,
0.036468505859375,
-0.06695556640625,
0.035430908203125,
0.0156402587890625,
-0.03497314453125,
-0.046875,
0.06793212890625,
0.01374053955078125,
-0.0023288726806640625,
-0.017608642578125,
-0.06402587890625,
-0.04364013671875,
-0.052520751953125,
0.029052734375,
-0.0118408203125,
-0.005794525146484375,
-0.003559112548828125,
0.0308685302734375,
-0.011627197265625,
-0.03289794921875,
-0.038726806640625,
0.05889892578125,
-0.011444091796875,
-0.06134033203125,
0.0015058517456054688,
-0.0228424072265625,
-0.0218963623046875,
0.00345611572265625,
0.04547119140625,
0.01467132568359375,
-0.0182647705078125,
0.0074615478515625,
-0.00972747802734375,
0.006900787353515625,
0.0202484130859375,
0.0123443603515625,
-0.006473541259765625,
0.04193115234375,
0.0333251953125,
-0.01043701171875,
-0.0198516845703125,
-0.00978851318359375,
-0.0509033203125,
-0.039794921875,
0.064208984375,
-0.018798828125,
-0.039825439453125,
-0.02508544921875,
0.0160980224609375,
-0.003509521484375,
0.032135009765625,
-0.007232666015625,
0.0281524658203125,
-0.0228729248046875,
0.0026836395263671875,
-0.035736083984375,
0.00951385498046875,
-0.0192718505859375,
0.00949859619140625,
-0.018341064453125,
-0.012054443359375,
-0.0261688232421875,
0.01381683349609375,
-0.0097198486328125,
-0.05596923828125,
0.0208282470703125,
-0.02056884765625,
-0.031280517578125,
-0.002017974853515625,
0.006038665771484375,
0.00958251953125,
0.032928466796875,
-0.018890380859375,
-0.032012939453125,
-0.021484375,
0.0293731689453125,
-0.06378173828125,
-0.0657958984375,
0.005126953125,
-0.01806640625,
-0.0565185546875,
0.0168304443359375,
0.005687713623046875,
-0.0271759033203125,
-0.0222320556640625,
0.0192413330078125,
-0.03118896484375,
-0.02020263671875,
0.0484619140625,
-0.003173828125,
0.010986328125,
0.01169586181640625,
0.0027523040771484375,
-0.0081024169921875,
-0.035186767578125,
0.0139007568359375,
-0.0711669921875,
-0.0035552978515625,
-0.044464111328125,
0.0462646484375,
0.032012939453125,
-0.03704833984375,
-0.00848388671875,
0.0257415771484375,
0.028076171875,
0.045440673828125,
0.0174713134765625,
-0.00872039794921875,
0.0116119384765625,
0.0139923095703125,
0.042510986328125,
-0.03173828125,
-0.0102691650390625,
-0.046722412109375,
-0.0147247314453125,
-0.0014524459838867188,
-0.038330078125,
-0.00682830810546875,
-0.0516357421875,
-0.01004791259765625,
-0.1024169921875,
-0.0592041015625,
-0.02117919921875,
0.004596710205078125,
0.019287109375,
-0.033050537109375,
-0.0560302734375,
-0.10137939453125,
0.006622314453125,
0.006992340087890625,
0.00518035888671875,
0.0158843994140625,
0.038970947265625,
0.005970001220703125,
-0.0160064697265625,
-0.04144287109375,
0.01456451416015625,
0.0333251953125,
-0.01454925537109375,
0.065185546875,
0.01361083984375,
-0.0171356201171875,
0.10028076171875,
-0.0006680488586425781,
0.0226898193359375,
-0.0038890838623046875,
0.0245513916015625,
-0.00738525390625,
-0.0245513916015625,
0.0290679931640625,
0.0018329620361328125,
-0.040313720703125,
0.0293121337890625,
-0.0237274169921875,
0.00504302978515625,
-0.01428985595703125,
0.02239990234375,
-0.034698486328125,
0.0298919677734375,
-0.0110321044921875,
0.020538330078125,
-0.00823211669921875,
-0.0288238525390625,
0.0816650390625,
0.03472900390625,
-0.004230499267578125,
0.01248931884765625,
0.035614013671875,
0.019927978515625,
0.03826904296875,
0.03997802734375,
0.00345611572265625,
0.065673828125,
0.0240325927734375,
0.031524658203125,
-0.005443572998046875,
0.005245208740234375,
-0.03338623046875,
-0.0171966552734375,
-0.032318115234375,
-0.05120849609375,
-0.004154205322265625,
0.036407470703125,
0.019866943359375,
-0.0181427001953125,
0.04327392578125,
0.00249481201171875,
-0.01192474365234375,
-0.00861358642578125,
-0.0217132568359375,
-0.04693603515625,
-0.047210693359375,
0.0484619140625,
0.0287628173828125,
-0.004138946533203125,
-0.0186767578125,
0.089111328125,
0.0255126953125,
0.03875732421875,
-0.019317626953125,
0.0338134765625,
0.00920867919921875,
0.04150390625,
0.021728515625,
-0.002105712890625,
-0.0176544189453125,
0.00026226043701171875,
-0.006710052490234375,
-0.023101806640625,
-0.01421356201171875,
0.039215087890625,
0.018890380859375,
-0.01010894775390625,
-0.01355743408203125,
0.009307861328125,
0.006561279296875,
-0.025970458984375,
-0.0079193115234375,
0.01497650146484375,
0.019012451171875,
-0.024505615234375,
-0.022705078125,
0.01224517822265625,
0.043365478515625,
0.01416015625,
-0.0180816650390625,
-0.0166473388671875,
0.01293182373046875,
0.01493072509765625,
0.0297393798828125,
-0.036590576171875,
-0.041229248046875,
-0.01233673095703125,
0.0014276504516601562,
0.0281982421875,
-0.0428466796875,
-0.0010280609130859375,
-0.0221710205078125,
-0.01399993896484375,
0.0236968994140625,
-0.016693115234375,
0.060546875,
-0.03790283203125,
-0.0172576904296875,
-0.0259246826171875,
0.007808685302734375,
0.06353759765625,
0.0330810546875,
0.0009245872497558594,
-0.00762176513671875,
-0.056060791015625,
-0.04034423828125,
0.01076507568359375,
-0.00010520219802856445,
-0.0293121337890625,
-0.007717132568359375,
0.02581787109375,
0.01116180419921875,
-0.0038623809814453125,
-0.034332275390625,
-0.01055145263671875,
0.00913238525390625,
0.02313232421875,
-0.0018472671508789062,
0.004024505615234375,
0.079833984375,
-0.016326904296875,
0.07098388671875,
0.0226593017578125,
0.0277557373046875,
-0.0321044921875,
-0.021728515625,
0.0004668235778808594,
-0.09600830078125,
-0.00495147705078125,
0.0106964111328125,
-0.040496826171875,
0.038238525390625,
-0.006992340087890625,
0.00992584228515625,
-0.004070281982421875,
0.004093170166015625,
0.00896453857421875,
-0.01534271240234375,
0.006038665771484375,
0.039886474609375,
0.012237548828125,
0.030853271484375,
0.0034637451171875,
0.01213836669921875,
-0.0036907196044921875,
0.0015277862548828125,
0.0107421875,
-0.005764007568359375,
0.0236053466796875,
-0.017181396484375,
-0.043731689453125,
0.036712646484375,
0.0682373046875,
0.040740966796875,
0.057769775390625,
0.018707275390625,
0.037445068359375,
0.0231170654296875,
0.0247650146484375,
-0.00969696044921875,
-0.0115814208984375,
0.048675537109375,
0.01025390625,
-0.032562255859375,
0.00601959228515625,
-0.044830322265625,
-0.03924560546875,
0.0164337158203125,
0.0234832763671875,
-0.03485107421875,
-0.00400543212890625,
-0.007549285888671875,
-0.00228118896484375,
-0.004192352294921875,
-0.004474639892578125,
-0.0181732177734375,
-0.025604248046875,
0.031219482421875,
-0.01143646240234375,
-0.01557159423828125,
0.0216827392578125,
0.00015723705291748047,
0.002445220947265625,
-0.0027637481689453125,
0.0137481689453125,
0.00051116943359375,
-0.03759765625,
-0.0242462158203125,
0.0292205810546875,
-0.009002685546875,
-0.03253173828125,
-0.0203094482421875,
0.051513671875,
-0.027374267578125,
-0.038787841796875,
0.057891845703125,
0.0045928955078125,
0.01180267333984375,
0.025726318359375,
0.005931854248046875,
0.04376220703125,
0.035369873046875,
0.011993408203125,
-0.0015964508056640625,
0.01297760009765625,
-0.0244903564453125,
0.0253143310546875,
0.01361846923828125,
0.0183868408203125,
-0.0238189697265625,
-0.031494140625,
-0.0142822265625,
-0.057830810546875,
0.0125885009765625,
-0.030426025390625,
-0.020782470703125,
0.1102294921875,
-0.05023193359375,
-0.004985809326171875,
0.0310821533203125,
0.0579833984375,
-0.019256591796875,
-0.0191192626953125,
0.01434326171875,
-0.04290771484375,
-0.00684356689453125,
0.005893707275390625,
0.005702972412109375,
0.0189971923828125,
-0.00101470947265625,
-0.03631591796875,
0.06402587890625,
0.0081024169921875,
0.02020263671875,
0.01629638671875,
0.028350830078125,
-0.0181732177734375,
0.0170440673828125,
-0.050537109375,
0.0435791015625,
0.027008056640625,
0.046875,
-0.03778076171875,
-0.00464630126953125,
0.0163116455078125,
0.03143310546875,
0.027618408203125,
0.016082763671875,
-0.018890380859375,
-0.03363037109375,
-0.010345458984375,
0.06146240234375,
0.015655517578125,
0.00936126708984375,
0.005931854248046875,
0.01486968994140625,
0.025665283203125,
-0.0187530517578125,
0.01389312744140625,
0.00029158592224121094,
-0.012969970703125,
0.0364990234375,
0.03363037109375,
0.0234527587890625,
-0.01483917236328125,
0.0007014274597167969,
-0.06195068359375,
0.0090484619140625,
0.024932861328125,
0.02978515625,
0.024078369140625,
0.08074951171875,
0.0533447265625,
-0.0655517578125,
-0.0248565673828125,
-0.051849365234375,
0.053558349609375,
-0.02789306640625,
0.02447509765625,
0.039764404296875,
0.02667236328125,
0.0254364013671875,
0.007694244384765625,
0.007904052734375,
0.01114654541015625,
-0.012359619140625,
0.08404541015625,
0.01108551025390625,
0.01776123046875,
-0.09820556640625,
-0.09002685546875,
0.06182861328125,
0.10919189453125,
-0.0225372314453125,
-0.06048583984375,
0.004268646240234375,
0.0113372802734375,
0.041259765625,
0.0263519287109375,
0.06396484375,
0.0016889572143554688,
0.043701171875,
-0.0185089111328125,
-0.0171051025390625,
-0.002227783203125,
0.03265380859375,
0.01363372802734375,
0.03271484375,
-0.028472900390625,
-0.021240234375,
-0.01247406005859375,
0.01056671142578125,
0.01529693603515625,
-0.0015325546264648438,
-0.024688720703125,
0.03936767578125,
-0.0170135498046875,
0.01042938232421875,
-0.003993988037109375,
0.052215576171875,
0.0174713134765625,
0.0003578662872314453,
-0.0269012451171875,
-0.0196685791015625,
-0.00600433349609375,
0.040679931640625,
0.003368377685546875,
0.01013946533203125,
0.016082763671875,
0.033050537109375,
0.0145721435546875,
-0.01540374755859375,
0.044647216796875,
-0.0110015869140625,
-0.01557159423828125,
-0.035430908203125,
0.0147552490234375,
-0.00836181640625,
0.0006766319274902344,
-0.01099395751953125,
0.050994873046875,
-0.00909423828125,
-0.031463623046875,
0.041046142578125,
-0.00820159912109375,
-0.03668212890625,
0.0247344970703125,
-0.023590087890625,
0.059539794921875,
-0.0197296142578125,
-0.11700439453125,
-0.016876220703125,
-0.023193359375,
-0.044830322265625,
0.0262908935546875,
0.0323486328125,
-0.034210205078125,
0.00930023193359375,
-0.0082550048828125,
-0.0117645263671875,
0.05047607421875,
-0.032501220703125,
-0.0017423629760742188,
0.033477783203125,
0.01297760009765625,
-0.0001366138458251953,
-0.02142333984375,
-0.012908935546875,
-0.01385498046875,
0.04351806640625,
-0.019317626953125,
0.072998046875,
-0.0289154052734375,
0.0068817138671875,
0.044158935546875,
0.00824737548828125,
0.004100799560546875,
-0.00263214111328125,
0.0567626953125,
-0.0219879150390625,
-0.00653839111328125,
-0.027801513671875,
-0.0250701904296875,
0.013031005859375,
0.023651123046875,
-0.01995849609375,
0.00406646728515625,
-0.02484130859375,
0.0180511474609375,
0.01204681396484375,
0.00855255126953125,
-0.0279998779296875,
-0.03436279296875,
-0.04443359375,
-0.0048828125,
0.01194000244140625,
0.01393890380859375,
-0.01751708984375,
0.00042247772216796875,
0.0084075927734375,
-0.025115966796875,
0.0228729248046875,
-0.01593017578125,
0.040771484375,
0.036712646484375,
-0.022491455078125,
-0.033447265625,
0.005001068115234375,
-0.002994537353515625,
-0.028076171875,
0.0261993408203125,
-0.0276031494140625,
0.0254974365234375,
-0.041046142578125,
-0.0026397705078125,
0.020172119140625,
0.01605224609375,
-0.03411865234375,
-0.010528564453125,
0.032806396484375,
-0.0146331787109375,
-0.00138092041015625,
-0.015655517578125,
-0.033416748046875,
-0.047088623046875,
-0.00567626953125,
0.02606201171875,
-0.031951904296875,
-0.0200958251953125,
-0.08551025390625,
0.01084136962890625,
0.00829315185546875,
0.0203857421875,
-0.055633544921875,
0.057952880859375,
-0.01186370849609375,
0.0124359130859375,
-0.01061248779296875,
-0.007190704345703125,
-0.01392364501953125,
-0.003448486328125,
-0.021636962890625,
0.002170562744140625,
-0.0533447265625,
-0.0013837814331054688,
-0.0250091552734375,
-0.006046295166015625,
0.01427459716796875,
-0.0221099853515625,
-0.0311737060546875,
-0.0035343170166015625,
0.01849365234375,
0.036651611328125,
0.045196533203125,
0.0016374588012695312,
0.0183563232421875,
0.02606201171875,
-0.027099609375,
-0.0947265625,
0.0057373046875,
-0.034759521484375,
0.0164031982421875,
0.0430908203125,
-0.02923583984375,
0.003047943115234375,
-0.0260772705078125,
-0.05255126953125,
0.05340576171875,
0.0140533447265625,
-0.0248260498046875,
-0.0049896240234375,
0.0148162841796875,
-0.00514984130859375,
-0.0101470947265625,
-0.0103912353515625,
-0.0139312744140625,
0.0017910003662109375,
0.0223236083984375,
0.0172271728515625,
0.04925537109375,
0.004077911376953125,
0.01345062255859375,
-0.0199432373046875,
0.0303955078125,
0.008514404296875,
0.03826904296875,
0.004482269287109375,
-0.006740570068359375,
0.03790283203125,
0.052398681640625,
-0.021575927734375,
0.0240478515625,
0.00455474853515625,
-0.0224456787109375,
0.0123291015625,
-0.040557861328125,
-0.0059967041015625,
-0.03143310546875,
0.04071044921875,
-0.0221405029296875,
0.00897216796875,
0.0007920265197753906,
-0.002956390380859375,
-0.06256103515625,
-0.0251007080078125,
-0.018768310546875,
-0.000492095947265625,
-0.06329345703125,
0.0172576904296875,
0.0218353271484375,
-0.0091552734375,
-0.00035071372985839844,
0.0196533203125,
-0.0160369873046875,
-0.024688720703125,
-0.0167236328125,
-0.0252227783203125,
-0.02313232421875,
-0.02783203125,
0.02642822265625,
-0.024932861328125,
-0.0229034423828125,
0.0309600830078125,
0.01361083984375,
-0.0311737060546875,
0.046051025390625,
-0.0191192626953125,
0.038818359375,
-0.0484619140625,
-0.005329132080078125,
0.00019931793212890625,
0.01849365234375,
-0.023956298828125,
0.0131378173828125,
0.004604339599609375,
0.0325927734375,
-0.0025615692138671875,
0.034698486328125,
-0.005817413330078125,
0.011932373046875,
-0.00016772747039794922,
0.001987457275390625,
-0.0203399658203125,
0.0306854248046875,
-0.033416748046875,
0.059478759765625,
0.0030975341796875,
-0.0222320556640625,
0.045196533203125,
-0.016571044921875,
-0.00315093994140625,
0.013214111328125,
-0.0025577545166015625,
-0.0321044921875,
0.01345062255859375,
-0.03948974609375,
0.00936126708984375,
0.007171630859375
] |
b1ef6d0d156a50019f491a26edb73a8741a93591
|
Wordpress Stackexchange
Q: $wpdb->query() multiple query support Just bump into the issue that I can't execute multiple sql queries using the $wpdb->query(). Generated queries work fine directly in phpmyadmin so its something will the ezSQL class only. By design perhaps?
I found this http://wordpress.org/support/topic/wpdb-gtquery-fails-when-multiple-update-statements-are-used which also says its by design. Can anyone confirm? ezSQL docs dont say anything about multiple queries support.
If you have to do a bunch of queries mainly (INSERT/UPDATE/DELETE), any better way of doing them other than doing them one by one using $wpdb->insert() and like functions?
A: Using PHP 5.3.5, I was unable to make this syntax work even after setting the 5th parameter of mysql_connect() to 65536 (CLIENT_MULTI_STATEMENTS). Looks like it's not possible to concatenate multiple queries into one statement as long as the old-school MySQL API is running the show.
I assume you're familiar with the MySQL multiple row INSERT syntax, but I mention it just in case.
|
Q: $wpdb->query() multiple query support Just bump into the issue that I can't execute multiple sql queries using the $wpdb->query(). Generated queries work fine directly in phpmyadmin so its something will the ezSQL class only. By design perhaps?
I found this http://wordpress.org/support/topic/wpdb-gtquery-fails-when-multiple-update-statements-are-used which also says its by design. Can anyone confirm? ezSQL docs dont say anything about multiple queries support.
If you have to do a bunch of queries mainly (INSERT/UPDATE/DELETE), any better way of doing them other than doing them one by one using $wpdb->insert() and like functions?
A: Using PHP 5.3.5, I was unable to make this syntax work even after setting the 5th parameter of mysql_connect() to 65536 (CLIENT_MULTI_STATEMENTS). Looks like it's not possible to concatenate multiple queries into one statement as long as the old-school MySQL API is running the show.
I assume you're familiar with the MySQL multiple row INSERT syntax, but I mention it just in case.
|
wordpress
|
{
"language": "en",
"length": 153,
"provenance": "stackexchange_00019.jsonl.gz:408893",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15578"
}
|
[
0.06158447265625,
-0.0087432861328125,
-0.00046062469482421875,
-0.035186767578125,
0.0281219482421875,
-0.03302001953125,
0.06640625,
0.005420684814453125,
0.022308349609375,
0.046234130859375,
-0.048736572265625,
-0.0124664306640625,
0.020782470703125,
-0.007442474365234375,
-0.035064697265625,
-0.0364990234375,
0.037353515625,
-0.034576416015625,
-0.00328826904296875,
-0.01025390625,
0.0027599334716796875,
0.01348876953125,
0.0017271041870117188,
0.056793212890625,
-0.00879669189453125,
-0.00531768798828125,
0.04443359375,
-0.043731689453125,
0.0328369140625,
-0.0104522705078125,
0.0012483596801757812,
0.002490997314453125,
0.0009746551513671875,
0.041717529296875,
-0.01229095458984375,
0.00817108154296875,
0.051544189453125,
0.00637054443359375,
-0.0033969879150390625,
0.053131103515625,
0.019775390625,
-0.015625,
0.009490966796875,
0.0016927719116210938,
0.004756927490234375,
-0.047760009765625,
0.047149658203125,
-0.040802001953125,
-0.0037860870361328125,
-0.00536346435546875,
-0.005035400390625,
0.005062103271484375,
0.0032176971435546875,
-0.0155792236328125,
-0.0022029876708984375,
0.00244903564453125,
-0.008514404296875,
-0.033447265625,
0.029541015625,
0.03961181640625,
-0.0142974853515625,
-0.017974853515625,
0.004062652587890625,
-0.06109619140625,
-0.0298919677734375,
0.0343017578125,
0.0616455078125,
-0.000637054443359375,
-0.0041046142578125,
-0.035369873046875,
-0.0266571044921875,
0.002513885498046875,
-0.00951385498046875,
-0.0074615478515625,
-0.0177459716796875,
-0.0133056640625,
0.0281829833984375,
-0.002166748046875,
0.01204681396484375,
0.00722503662109375,
0.039031982421875,
0.011962890625,
-0.056427001953125,
-0.0121002197265625,
0.0285797119140625,
0.018524169921875,
0.004344940185546875,
-0.0215606689453125,
-0.00848388671875,
-0.00585174560546875,
-0.0090484619140625,
-0.06207275390625,
-0.031707763671875,
0.052032470703125,
0.02618408203125,
-0.028076171875,
0.002765655517578125,
0.0122833251953125,
-0.008392333984375,
0.01544952392578125,
-0.005401611328125,
-0.0196685791015625,
0.0283203125,
-0.0201873779296875,
0.00955963134765625,
-0.02618408203125,
0.0016584396362304688,
0.024322509765625,
0.048553466796875,
0.04754638671875,
-0.025177001953125,
0.052581787109375,
-0.01120758056640625,
-0.017669677734375,
-0.00263214111328125,
0.01336669921875,
-0.039642333984375,
0.022186279296875,
0.01018524169921875,
-0.006221771240234375,
-0.00018990039825439453,
0.04241943359375,
-0.06317138671875,
-0.031707763671875,
-0.0032634735107421875,
-0.03338623046875,
-0.0014743804931640625,
0.028564453125,
-0.043731689453125,
0.004276275634765625,
-0.0250244140625,
0.0305938720703125,
0.04229736328125,
0.03839111328125,
-0.0107421875,
0.003803253173828125,
0.0009050369262695312,
0.04327392578125,
0.005046844482421875,
-0.006343841552734375,
0.0205230712890625,
-0.0269775390625,
-0.0209197998046875,
0.0015954971313476562,
0.01220703125,
-0.0064239501953125,
0.038787841796875,
0.0303192138671875,
-0.0206298828125,
-0.0012216567993164062,
-0.0174560546875,
0.07061767578125,
-0.01513671875,
-0.006755828857421875,
0.032684326171875,
-0.0396728515625,
-0.031524658203125,
-0.0123291015625,
0.04931640625,
0.0357666015625,
-0.0404052734375,
-0.01358795166015625,
0.044952392578125,
-0.031982421875,
-0.042388916015625,
0.01220703125,
-0.04266357421875,
-0.0220184326171875,
0.0230865478515625,
0.005977630615234375,
-0.045654296875,
-0.01157379150390625,
0.07843017578125,
-0.003002166748046875,
-0.0322265625,
0.0286712646484375,
-0.00525665283203125,
0.00490570068359375,
0.01230621337890625,
0.019805908203125,
-0.0023517608642578125,
-0.0386962890625,
0.034423828125,
-0.00428009033203125,
-0.0458984375,
0.0550537109375,
-0.0006628036499023438,
0.097900390625,
0.004833221435546875,
0.02935791015625,
-0.013580322265625,
0.01305389404296875,
-0.003173828125,
0.023406982421875,
-0.007450103759765625,
-0.061309814453125,
-0.0164337158203125,
-0.0032806396484375,
-0.030609130859375,
-0.03497314453125,
0.0144805908203125,
-0.00140380859375,
-0.00980377197265625,
0.0189666748046875,
-0.0706787109375,
0.0225830078125,
-0.0404052734375,
0.02825927734375,
0.02069091796875,
0.02850341796875,
-0.0011949539184570312,
-0.0017976760864257812,
-0.0237579345703125,
-0.0017805099487304688,
-0.048614501953125,
-0.037872314453125,
-0.0418701171875,
0.0531005859375,
-0.025970458984375,
0.051849365234375,
-0.045379638671875,
-0.0780029296875,
-0.0205078125,
-0.007205963134765625,
0.044647216796875,
-0.05181884765625,
0.013580322265625,
-0.037750244140625,
0.034515380859375,
-0.0037784576416015625,
-0.0139007568359375,
0.01116943359375,
0.035125732421875,
0.02001953125,
-0.00243377685546875,
0.01265716552734375,
0.0193023681640625,
-0.066650390625,
-0.00801849365234375,
0.03741455078125,
0.01727294921875,
-0.00414276123046875,
-0.020050048828125,
0.0004439353942871094,
-0.045318603515625,
-0.0999755859375,
-0.00798797607421875,
0.0054473876953125,
-0.0208282470703125,
-0.02783203125,
-0.005615234375,
-0.01055908203125,
0.040130615234375,
-0.055419921875,
-0.0034198760986328125,
0.044952392578125,
-0.0032405853271484375,
0.0086212158203125,
-0.0264892578125,
0.01462554931640625,
-0.0117340087890625,
-0.0489501953125,
-0.0178985595703125,
-0.0146942138671875,
0.015350341796875,
-0.0160064697265625,
0.0413818359375,
0.036651611328125,
0.052276611328125,
-0.0316162109375,
-0.0263519287109375,
-0.07513427734375,
0.004703521728515625,
0.0157928466796875,
-0.060272216796875,
0.0250396728515625,
-0.006618499755859375,
0.01275634765625,
-0.0230865478515625,
-0.007808685302734375,
0.01015472412109375,
0.0440673828125,
-0.034149169921875,
-0.0194854736328125,
0.01375579833984375,
0.006031036376953125,
-0.02685546875,
-0.004520416259765625,
-0.034271240234375,
-0.040435791015625,
-0.0030803680419921875,
0.044036865234375,
-0.0236053466796875,
0.046661376953125,
-0.0185089111328125,
-0.022552490234375,
0.039794921875,
-0.035369873046875,
0.0173187255859375,
-0.0255126953125,
0.0277557373046875,
0.056243896484375,
-0.0006132125854492188,
-0.00655364990234375,
-0.018096923828125,
0.00585174560546875,
-0.0012807846069335938,
0.0006585121154785156,
-0.0176239013671875,
-0.0269012451171875,
-0.037445068359375,
0.004749298095703125,
0.046539306640625,
0.0538330078125,
0.0374755859375,
-0.0272216796875,
0.006343841552734375,
0.06494140625,
-0.059478759765625,
-0.08648681640625,
-0.01342010498046875,
-0.017974853515625,
0.0316162109375,
-0.0157470703125,
0.01047515869140625,
-0.00881195068359375,
-0.0176239013671875,
0.015625,
0.0141448974609375,
-0.01343536376953125,
-0.036651611328125,
-0.0186004638671875,
-0.05224609375,
0.01296234130859375,
0.0044097900390625,
0.0210113525390625,
0.00691986083984375,
0.0784912109375,
0.00296783447265625,
-0.07171630859375,
-0.0209197998046875,
-0.03741455078125,
-0.0273590087890625,
-0.00022745132446289062,
0.03173828125,
-0.041778564453125,
-0.013214111328125,
-0.0005192756652832031,
-0.01392364501953125,
0.0166778564453125,
-0.014434814453125,
0.00860595703125,
0.0233612060546875,
0.0301361083984375,
0.0574951171875,
-0.0469970703125,
-0.06304931640625,
0.07049560546875,
0.01513671875,
-0.0173187255859375,
0.002979278564453125,
-0.0357666015625,
-0.03912353515625,
-0.026397705078125,
0.016204833984375,
0.0250091552734375,
-0.03131103515625,
0.0150604248046875,
0.0540771484375,
0.01100921630859375,
-0.024383544921875,
-0.0064849853515625,
0.042999267578125,
0.01110076904296875,
0.061614990234375,
-0.0284576416015625,
0.02484130859375,
-0.0121612548828125,
0.021453857421875,
-0.0012922286987304688,
0.0146942138671875,
-0.0036602020263671875,
-0.0008254051208496094,
-0.053863525390625,
-0.012176513671875,
0.051605224609375,
-0.0113372802734375,
-0.0003654956817626953,
-0.04302978515625,
-0.01861572265625,
-0.033660888671875,
0.04736328125,
-0.0107879638671875,
-0.02703857421875,
0.0211944580078125,
0.04205322265625,
-0.05291748046875,
-0.036041259765625,
-0.0230865478515625,
-0.024993896484375,
0.021453857421875,
-0.039215087890625,
-0.03973388671875,
-0.01812744140625,
0.00988006591796875,
-0.0241546630859375,
0.03753662109375,
-0.032684326171875,
0.038330078125,
0.0059967041015625,
0.01090240478515625,
0.02587890625,
-0.0204925537109375,
0.00801849365234375,
-0.0151824951171875,
-0.0101776123046875,
-0.08453369140625,
-0.01302337646484375,
-0.046600341796875,
0.0775146484375,
0.0297698974609375,
-0.038238525390625,
-0.005950927734375,
0.048583984375,
-0.0005578994750976562,
0.0115203857421875,
0.01385498046875,
0.021087646484375,
-0.01395416259765625,
-0.033355712890625,
-0.0024929046630859375,
-0.058135986328125,
-0.01490020751953125,
-0.03436279296875,
0.0250396728515625,
0.01316070556640625,
-0.051239013671875,
-0.0272979736328125,
-0.0745849609375,
0.020751953125,
0.04278564453125,
-0.01145172119140625,
-0.0379638671875,
0.033050537109375,
-0.034088134765625,
0.006038665771484375,
-0.0269622802734375,
-0.008148193359375,
0.045745849609375,
-0.027740478515625,
0.0032062530517578125,
0.003376007080078125,
0.0816650390625,
-0.001220703125,
-0.019775390625,
-0.07373046875,
-0.043914794921875,
0.0249481201171875,
0.0308685302734375,
0.01206207275390625,
0.0051116943359375,
-0.0072479248046875,
-0.018157958984375,
0.0230865478515625,
-0.00867462158203125,
0.0092926025390625,
0.0367431640625,
0.004852294921875,
-0.0128173828125,
0.01045989990234375,
-0.0259246826171875,
-0.002178192138671875,
0.031707763671875,
0.00498199462890625,
-0.0203704833984375,
-0.015869140625,
0.0499267578125,
0.0242767333984375,
-0.033294677734375,
-0.08056640625,
-0.0201568603515625,
0.006511688232421875,
-0.05670166015625,
0.03399658203125,
0.010284423828125,
-0.007671356201171875,
0.011871337890625,
-0.00328826904296875,
-0.0162353515625,
0.024688720703125,
0.024566650390625,
-0.0030651092529296875,
0.0433349609375,
-0.007266998291015625,
-0.023223876953125,
-0.007534027099609375,
-0.0117034912109375,
0.0743408203125,
0.015960693359375,
-0.03204345703125,
0.004364013671875,
-0.0104827880859375,
0.0035076141357421875,
-0.007396697998046875,
0.01235198974609375,
0.0305633544921875,
0.0200347900390625,
-0.0220489501953125,
-0.006702423095703125,
0.0004987716674804688,
-0.01045989990234375,
-0.028472900390625,
0.03363037109375,
0.00739288330078125,
0.004711151123046875,
0.0303802490234375,
0.01003265380859375,
-0.04034423828125,
0.04400634765625,
-0.006160736083984375,
0.03851318359375,
0.0029010772705078125,
0.030120849609375,
-0.00665283203125,
0.0033092498779296875,
0.035614013671875,
-0.0122528076171875,
-0.0040130615234375,
-0.00907135009765625,
-0.004444122314453125,
0.016632080078125,
0.0158233642578125,
0.01898193359375,
0.015777587890625,
0.0050201416015625,
0.0023860931396484375,
-0.03076171875,
0.00616455078125,
0.04034423828125,
-0.0035533905029296875,
-0.01153564453125,
-0.0222015380859375,
-0.01367950439453125,
0.03338623046875,
-0.007450103759765625,
0.011322021484375,
-0.030364990234375,
0.03497314453125,
-0.038055419921875,
0.0188140869140625,
-0.01348114013671875,
-0.0251007080078125,
0.040771484375,
-0.021575927734375,
-0.041717529296875,
-0.001644134521484375,
0.037689208984375,
-0.039276123046875,
-0.024627685546875,
0.017486572265625,
-0.01457977294921875,
-0.00274658203125,
-0.0242767333984375,
0.0060272216796875,
0.0206756591796875,
-0.015777587890625,
0.11456298828125,
0.069580078125,
0.0513916015625,
-0.046783447265625,
-0.060638427734375,
-0.056121826171875,
-0.0244598388671875,
-0.0204010009765625,
-0.01361083984375,
0.0108642578125,
0.030609130859375,
0.0189666748046875,
-0.0027313232421875,
-0.03875732421875,
-0.0115203857421875,
0.006084442138671875,
0.005092620849609375,
0.028717041015625,
-0.035980224609375,
0.037200927734375,
0.023895263671875,
0.00548553466796875,
0.0175933837890625,
0.01268768310546875,
0.017791748046875,
-0.01398468017578125,
0.0208892822265625,
-0.043121337890625,
-0.0191497802734375,
-0.0229034423828125,
-0.020660400390625,
-0.02252197265625,
0.0030498504638671875,
-0.006664276123046875,
0.056243896484375,
-0.014068603515625,
0.01303863525390625,
-0.021759033203125,
-0.0020751953125,
-0.0526123046875,
-0.01055908203125,
0.06451416015625,
-0.034332275390625,
0.007450103759765625,
-0.01222991943359375,
-0.006320953369140625,
0.0212249755859375,
-0.03314208984375,
-0.00035953521728515625,
0.0287017822265625,
-0.01361083984375,
0.01100921630859375,
0.03057861328125,
-0.022796630859375,
0.044647216796875,
-0.019561767578125,
0.01300048828125,
0.0552978515625,
-0.03948974609375,
-0.01001739501953125,
0.024932861328125,
-0.0274505615234375,
-0.045257568359375,
0.01012420654296875,
-0.03607177734375,
0.0053253173828125,
0.02777099609375,
0.0440673828125,
0.0928955078125,
-0.08026123046875,
0.0312042236328125,
0.02423095703125,
-0.0033817291259765625,
0.0294036865234375,
0.004230499267578125,
-0.01241302490234375,
-0.0158233642578125,
-0.0261688232421875,
0.0256195068359375,
-0.02447509765625,
-0.0049285888671875,
0.0248565673828125,
-0.0025081634521484375,
0.003612518310546875,
-0.0259857177734375,
-0.0026836395263671875,
-0.027099609375,
0.0229034423828125,
0.046844482421875,
0.01085662841796875,
0.01451873779296875,
-0.007343292236328125,
0.047332763671875,
-0.0130462646484375,
-0.0145721435546875,
0.049560546875,
-0.04119873046875,
-0.0087738037109375,
-0.0391845703125,
0.01248931884765625,
0.0198974609375,
0.035064697265625,
-0.004520416259765625,
-0.01058197021484375,
0.0175323486328125,
-0.02545166015625,
-0.068359375,
-0.001895904541015625,
0.0191650390625,
0.0318603515625,
-0.061370849609375,
0.03167724609375,
-0.0650634765625,
0.0289459228515625,
0.00830078125,
-0.02301025390625,
-0.00778961181640625,
-0.00711822509765625,
0.004985809326171875,
0.04217529296875,
-0.001056671142578125,
-0.0024051666259765625,
0.0204620361328125,
-0.01580810546875,
-0.05792236328125,
-0.039764404296875,
-0.0020847320556640625,
-0.06915283203125,
0.00485992431640625,
0.0200042724609375,
-0.07110595703125,
0.09912109375,
-0.01416015625,
0.03985595703125,
0.0213775634765625,
0.024444580078125,
-0.020263671875,
0.0192108154296875,
-0.0310821533203125,
0.04498291015625,
-0.0105743408203125,
0.050750732421875,
-0.016815185546875,
-0.0030307769775390625,
0.038330078125,
0.014312744140625,
0.008209228515625,
0.0011005401611328125,
-0.023040771484375,
0.0167388916015625,
0.0693359375,
0.0491943359375,
0.004344940185546875,
0.01477813720703125,
0.01456451416015625,
-0.006359100341796875,
0.09063720703125,
0.006473541259765625,
0.04107666015625,
0.006988525390625,
0.0222625732421875,
0.0104217529296875,
0.004779815673828125,
0.01233673095703125,
-0.01136016845703125,
-0.006069183349609375,
0.0225830078125,
-0.0216827392578125,
-0.02496337890625,
0.0147857666015625,
0.0054168701171875,
0.0151519775390625,
-0.013519287109375,
-0.0211181640625,
0.034759521484375,
-0.035858154296875,
0.034912109375,
-0.0199127197265625,
-0.00091552734375,
0.0213623046875,
-0.008514404296875,
0.051971435546875,
0.0186004638671875,
-0.01024627685546875,
0.01410675048828125,
0.0340576171875,
0.06768798828125,
0.00965118408203125,
0.03814697265625,
-0.06878662109375,
-0.0003650188446044922,
0.0242462158203125,
0.084716796875,
-0.04949951171875,
-0.0194244384765625,
0.0019102096557617188,
0.0041656494140625,
0.00887298583984375,
-0.017974853515625,
0.002674102783203125,
0.0643310546875,
0.0648193359375,
0.008514404296875,
-0.0133209228515625,
-0.020416259765625,
-0.002960205078125,
-0.0187835693359375,
-0.017486572265625,
0.047698974609375,
0.0004444122314453125,
-0.04876708984375,
0.0247955322265625,
0.0196990966796875,
0.06842041015625,
-0.003803253173828125,
0.058380126953125,
-0.028045654296875,
-0.0291595458984375,
-0.0168914794921875,
0.0294342041015625,
-0.03692626953125,
0.0103302001953125,
-0.04901123046875,
-0.08807373046875,
0.0341796875,
0.0498046875,
0.0271148681640625,
0.034332275390625,
0.0316162109375,
0.048828125,
0.0263824462890625,
0.0157470703125,
0.03424072265625,
-0.008453369140625,
-0.039093017578125,
-0.033233642578125,
-0.0211944580078125,
0.02935791015625,
-0.0008678436279296875,
0.00888824462890625,
0.025970458984375,
0.00579071044921875,
0.044586181640625,
-0.0290374755859375,
0.019012451171875,
-0.0064239501953125,
0.02764892578125,
-0.01534271240234375,
-0.0042877197265625,
0.028411865234375,
-0.051177978515625,
-0.026611328125,
0.058135986328125,
0.0008616447448730469,
-0.003932952880859375,
0.03594970703125,
0.0096893310546875,
-0.0176544189453125,
0.0162353515625,
0.01029205322265625,
-0.006198883056640625,
-0.01342010498046875,
0.00910186767578125,
-0.01029205322265625,
0.0233612060546875,
0.0123748779296875,
-0.07568359375,
-0.0263824462890625,
0.02130126953125,
0.0014562606811523438,
-0.0426025390625,
0.0308380126953125,
0.00951385498046875,
-0.01248931884765625,
0.033935546875,
0.018585205078125,
0.007080078125,
0.044281005859375,
-0.01605224609375,
-0.0200653076171875,
-0.003841400146484375,
-0.004604339599609375,
0.0032939910888671875,
0.0026645660400390625,
0.0584716796875,
-0.027984619140625,
-0.033660888671875,
0.0130462646484375,
0.0374755859375,
-0.006732940673828125,
0.048980712890625,
-0.024169921875,
0.0255126953125,
-0.0029964447021484375,
-0.028076171875,
0.03900146484375,
0.009857177734375,
0.0155029296875,
0.0264129638671875,
0.0382080078125,
0.003787994384765625,
0.0196990966796875,
-0.01898193359375,
0.045166015625,
0.0298614501953125,
0.0084075927734375,
-0.01076507568359375,
-0.0087738037109375,
-0.0256500244140625,
-0.00812530517578125,
0.0244598388671875,
-0.017608642578125,
0.0279693603515625,
0.017120361328125,
-0.0019779205322265625,
0.0548095703125,
0.036407470703125,
0.0303497314453125,
0.0225830078125,
0.0213775634765625,
-0.054931640625,
-0.0056304931640625,
0.002105712890625,
-0.0305633544921875,
-0.0182952880859375,
-0.0144195556640625,
0.00855255126953125,
-0.0308074951171875,
-0.020050048828125,
-0.06292724609375,
0.011016845703125,
0.0011796951293945312,
0.00800323486328125,
-0.052978515625,
0.034698486328125,
-0.01343536376953125,
0.01006317138671875,
-0.0195465087890625,
-0.05999755859375,
0.021240234375,
0.033721923828125,
0.01114654541015625,
-0.0228271484375,
-0.0227508544921875,
0.01433563232421875,
-0.025146484375,
-0.002704620361328125,
-0.009124755859375,
-0.01474761962890625,
-0.0173492431640625,
0.0172271728515625,
0.0248565673828125,
0.059417724609375,
0.079833984375,
-0.023162841796875,
0.0207977294921875,
0.00516510009765625,
-0.0222625732421875,
-0.04443359375,
0.0142059326171875,
-0.032440185546875,
0.00027179718017578125,
-0.014373779296875,
0.0216522216796875,
0.0265960693359375,
-0.039703369140625,
-0.1304931640625,
0.0960693359375,
-0.04827880859375,
-0.0382080078125,
-0.0033092498779296875,
-0.02056884765625,
0.00843048095703125,
-0.036712646484375,
-0.0211944580078125,
0.005138397216796875,
-0.0313720703125,
0.01453399658203125,
-0.00897979736328125,
-0.024871826171875,
0.01056671142578125,
-0.0144500732421875,
-0.0601806640625,
0.01654052734375,
0.01348876953125,
-0.0217132568359375,
0.034027099609375,
-0.01995849609375,
0.0364990234375,
0.0462646484375,
-0.0252685546875,
-0.01532745361328125,
-0.0128021240234375,
-0.043121337890625,
-0.0001627206802368164,
0.041015625,
-0.022918701171875,
0.024078369140625,
0.035400390625,
0.08416748046875,
0.03216552734375,
-0.0501708984375,
0.0204010009765625,
-0.05340576171875,
0.01297760009765625,
-0.0163421630859375,
-0.0128631591796875,
-0.0128326416015625,
0.002368927001953125,
0.00043320655822753906,
-0.008331298828125,
-0.01181793212890625,
0.038055419921875,
-0.0141754150390625,
-0.01395416259765625,
0.0202789306640625,
-0.0273590087890625,
-0.041656494140625,
0.021453857421875,
0.04931640625,
-0.045440673828125,
-0.058135986328125,
0.005237579345703125,
-0.003017425537109375,
-0.02764892578125,
-0.028594970703125,
-0.0166778564453125,
-0.0077667236328125,
0.01300811767578125,
0.02252197265625,
-0.00016224384307861328,
-0.045623779296875,
-0.005218505859375,
0.01479339599609375,
-0.011505126953125,
0.0223388671875,
-0.0087127685546875,
0.02947998046875,
-0.0030231475830078125,
0.024444580078125,
0.00228118896484375,
0.034088134765625,
-0.0236358642578125,
0.01317596435546875,
-0.03411865234375,
0.038238525390625,
0.018829345703125,
0.0032100677490234375,
0.0574951171875,
0.0005273818969726562,
0.006839752197265625,
0.04412841796875,
0.02105712890625,
-0.015899658203125,
0.0215606689453125,
0.046875,
0.0237274169921875,
0.005096435546875
] |
4b7d0e6dcec835e85a64fc0e7aa7865b0823167e
|
Wordpress Stackexchange
Q: Math notation on WordPress.com? I am a new user with WordPress, and I would like to use mathematical formulas. I have been reading the mathjax pages for hours, such as this one and quite a few others. This may be a bad question, but can someone please help me? All I want to do is enable Latex, and I am hopelessly lost. My most recent attempts have been trying to find the "header file" so that I can copy and paste in
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
I have tried looking for it, and looked over a whole bunch of forum posts about where to find this header file, but I just do not understand. A step by step explanation of how to make mathjax work in the simplest way possible would be extremely appreciated!! (Also, don't worry about leaving in too many steps!)
A: If you have a blog that is hosted on WordPress.com, you can't install extra plugins or modify the theme files yourself - this is only possible with a self-hosted version.
However, WordPress.com has enabled LaTeX support for everyone. Just write $latex your-latex-code$ and it will be rendered as images.
|
Q: Math notation on WordPress.com? I am a new user with WordPress, and I would like to use mathematical formulas. I have been reading the mathjax pages for hours, such as this one and quite a few others. This may be a bad question, but can someone please help me? All I want to do is enable Latex, and I am hopelessly lost. My most recent attempts have been trying to find the "header file" so that I can copy and paste in
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
I have tried looking for it, and looked over a whole bunch of forum posts about where to find this header file, but I just do not understand. A step by step explanation of how to make mathjax work in the simplest way possible would be extremely appreciated!! (Also, don't worry about leaving in too many steps!)
A: If you have a blog that is hosted on WordPress.com, you can't install extra plugins or modify the theme files yourself - this is only possible with a self-hosted version.
However, WordPress.com has enabled LaTeX support for everyone. Just write $latex your-latex-code$ and it will be rendered as images.
A: It can be very confusing to users when plugins ask users to upload files and insert lines of code. The plugin linked to in the question does contain an option to automatically load the MathJax without the need to insert anything into the header.
1. Go to the plugin options page by going to Settings --> MathJax-Latex Plugin in your WordPress admin panel.
2. Check the box that says Use MathJax CDN Service.
3. Choose any of the other options available. (I'm not familiar with how Latex works so I can't help with any of those).
4. Click save changes and your ready to start using Latex.
A: If you are talking about your own site built on WordPress, you can take a look at GFormula plugin. It allows you to write LaTeX expression and get formula image for it. Also it makes possible to setup background and text colors, to set image dimensions. Check it out.
|
wordpress
|
{
"language": "en",
"length": 352,
"provenance": "stackexchange_00019.jsonl.gz:408900",
"question_score": "7",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15607"
}
|
[
0.021331787109375,
0.0006961822509765625,
-0.01213836669921875,
-0.0180511474609375,
0.01200103759765625,
-0.019287109375,
0.03851318359375,
0.0103759765625,
-0.02191162109375,
0.027252197265625,
-0.029144287109375,
0.035919189453125,
0.0022602081298828125,
-0.0007309913635253906,
0.027008056640625,
-0.0159149169921875,
0.061187744140625,
-0.057281494140625,
-0.0213470458984375,
-0.0015125274658203125,
-0.0302886962890625,
0.021240234375,
0.04803466796875,
0.046600341796875,
0.037994384765625,
0.028656005859375,
0.0958251953125,
-0.05084228515625,
0.037139892578125,
-0.02557373046875,
0.033843994140625,
-0.0352783203125,
0.00951385498046875,
0.060211181640625,
-0.044769287109375,
0.0311737060546875,
-0.03466796875,
0.036346435546875,
0.005245208740234375,
0.0131072998046875,
0.01898193359375,
-0.00347900390625,
-0.03875732421875,
0.0266876220703125,
-0.039947509765625,
-0.0369873046875,
0.011016845703125,
-0.0283660888671875,
0.0124969482421875,
-0.0001327991485595703,
0.01043701171875,
0.035614013671875,
0.019866943359375,
0.038543701171875,
-0.00350189208984375,
0.005321502685546875,
0.01235198974609375,
-0.01079559326171875,
0.01861572265625,
0.017791748046875,
0.0019512176513671875,
0.012451171875,
-0.00537872314453125,
-0.0085601806640625,
0.00373077392578125,
-0.016204833984375,
-0.0919189453125,
0.030792236328125,
0.0008678436279296875,
0.002841949462890625,
-0.0008788108825683594,
-0.047027587890625,
0.0198974609375,
-0.028076171875,
0.0186767578125,
-0.0150604248046875,
-0.01213836669921875,
-0.0171661376953125,
0.00957489013671875,
0.0026111602783203125,
0.06524658203125,
-0.004886627197265625,
-0.0023059844970703125,
-0.011474609375,
0.0228729248046875,
-0.004791259765625,
0.014984130859375,
-0.0276641845703125,
-0.046173095703125,
-0.032867431640625,
-0.035552978515625,
-0.042877197265625,
-0.07183837890625,
0.0024776458740234375,
0.0105438232421875,
-0.0293121337890625,
-0.02960205078125,
-0.05535888671875,
0.0173797607421875,
0.007099151611328125,
0.033447265625,
-0.06024169921875,
0.0750732421875,
-0.01198577880859375,
-0.032470703125,
0.0228271484375,
-0.0164642333984375,
-0.0164794921875,
-0.00262451171875,
0.0305633544921875,
-0.021392822265625,
-0.075439453125,
0.0145416259765625,
-0.032012939453125,
0.0084686279296875,
0.0301361083984375,
-0.0210418701171875,
0.054656982421875,
0.019195556640625,
0.038238525390625,
0.0206298828125,
0.0655517578125,
-0.0102996826171875,
0.00505828857421875,
0.00007617473602294922,
0.03082275390625,
0.0235748291015625,
-0.06048583984375,
0.00980377197265625,
0.0179443359375,
-0.038330078125,
0.0280609130859375,
0.039825439453125,
0.01739501953125,
-0.024993896484375,
0.006221771240234375,
0.08282470703125,
0.0185089111328125,
-0.0003204345703125,
0.024932861328125,
-0.0232696533203125,
-0.012298583984375,
-0.01082611083984375,
-0.035980224609375,
-0.036529541015625,
0.0350341796875,
0.0250396728515625,
0.0022373199462890625,
-0.0167694091796875,
-0.08935546875,
0.006427764892578125,
-0.039337158203125,
0.039794921875,
0.002773284912109375,
-0.056365966796875,
-0.006954193115234375,
-0.0198822021484375,
-0.0001138448715209961,
-0.0279693603515625,
-0.027130126953125,
-0.0310516357421875,
-0.0223388671875,
0.03900146484375,
-0.03515625,
-0.038543701171875,
0.0158233642578125,
-0.0357666015625,
0.0034847259521484375,
0.017791748046875,
-0.02252197265625,
-0.01934814453125,
-0.0008726119995117188,
0.00897979736328125,
0.01036834716796875,
0.022186279296875,
0.043670654296875,
-0.0445556640625,
-0.00019693374633789062,
0.006275177001953125,
0.057708740234375,
0.05084228515625,
-0.0004775524139404297,
-0.0038013458251953125,
0.047882080078125,
0.0345458984375,
-0.0650634765625,
0.027191162109375,
-0.01551055908203125,
-0.009429931640625,
0.050079345703125,
-0.01056671142578125,
0.0200347900390625,
-0.03228759765625,
0.06195068359375,
-0.0223388671875,
-0.050811767578125,
-0.0014677047729492188,
-0.002620697021484375,
-0.0193634033203125,
-0.002124786376953125,
0.0018472671508789062,
0.0092620849609375,
-0.0157318115234375,
0.003780364990234375,
-0.021392822265625,
0.006839752197265625,
-0.004772186279296875,
0.0220947265625,
-0.0107574462890625,
0.0194091796875,
0.00981903076171875,
-0.007213592529296875,
-0.01288604736328125,
-0.0144195556640625,
-0.01129913330078125,
-0.016815185546875,
-0.01084136962890625,
0.041778564453125,
0.010406494140625,
0.01288604736328125,
0.0301666259765625,
-0.013702392578125,
0.033538818359375,
0.021209716796875,
-0.0269317626953125,
-0.0168914794921875,
-0.028350830078125,
-0.00384521484375,
-0.043121337890625,
-0.0205230712890625,
0.019378662109375,
0.061431884765625,
-0.00960540771484375,
0.018646240234375,
-0.0263214111328125,
0.0024547576904296875,
0.01251220703125,
0.01505279541015625,
0.0201416015625,
0.02423095703125,
0.027191162109375,
-0.0207061767578125,
-0.021728515625,
-0.00794219970703125,
0.07550048828125,
0.041778564453125,
0.0210418701171875,
-0.026031494140625,
-0.0103302001953125,
0.0157318115234375,
-0.0127410888671875,
-0.0222015380859375,
0.018463134765625,
-0.06512451171875,
-0.0190582275390625,
0.0288238525390625,
0.039215087890625,
0.060791015625,
-0.038604736328125,
0.010986328125,
-0.0007376670837402344,
0.0467529296875,
-0.01280975341796875,
-0.0013055801391601562,
0.07171630859375,
-0.038421630859375,
0.045074462890625,
0.018402099609375,
0.01139068603515625,
-0.018798828125,
-0.0105438232421875,
-0.048797607421875,
-0.007175445556640625,
-0.02069091796875,
-0.04034423828125,
0.02984619140625,
-0.011322021484375,
0.018310546875,
-0.006870269775390625,
-0.010345458984375,
-0.0060577392578125,
-0.04193115234375,
-0.0080718994140625,
0.0140228271484375,
0.01461029052734375,
-0.0205078125,
0.059356689453125,
0.062347412109375,
-0.0270843505859375,
-0.008026123046875,
0.01215362548828125,
0.038970947265625,
0.0020236968994140625,
0.005367279052734375,
-0.0011892318725585938,
0.0113525390625,
0.006038665771484375,
-0.05157470703125,
0.0513916015625,
-0.03759765625,
0.06365966796875,
0.06512451171875,
-0.02630615234375,
0.02154541015625,
0.004192352294921875,
0.0352783203125,
0.026611328125,
-0.0006842613220214844,
0.0041351318359375,
-0.01340484619140625,
-0.0295257568359375,
-0.0229034423828125,
0.0021419525146484375,
0.01139068603515625,
-0.0267791748046875,
-0.06268310546875,
-0.054473876953125,
-0.0171051025390625,
-0.134521484375,
-0.0853271484375,
0.0202178955078125,
-0.08673095703125,
0.00337982177734375,
0.0021076202392578125,
-0.04827880859375,
-0.0138092041015625,
0.05853271484375,
0.0011568069458007812,
-0.011199951171875,
-0.07080078125,
-0.06561279296875,
-0.11004638671875,
-0.10345458984375,
-0.0010652542114257812,
0.0010728836059570312,
0.026397705078125,
0.011474609375,
-0.043121337890625,
-0.0287933349609375,
-0.03851318359375,
-0.042083740234375,
-0.0089111328125,
0.004955291748046875,
-0.0282745361328125,
0.0066070556640625,
-0.03228759765625,
-0.032318115234375,
-0.00528717041015625,
0.027557373046875,
0.0214691162109375,
-0.02618408203125,
0.02581787109375,
-0.00519561767578125,
-0.0120697021484375,
-0.003055572509765625,
0.0244903564453125,
0.005924224853515625,
-0.01364898681640625,
0.0103302001953125,
-0.03582763671875,
-0.044921875,
0.0238800048828125,
-0.02911376953125,
0.0207977294921875,
-0.0015516281127929688,
-0.0206756591796875,
-0.003612518310546875,
0.044464111328125,
-0.023590087890625,
-0.01499176025390625,
0.02130126953125,
-0.07501220703125,
0.0294189453125,
-0.003383636474609375,
0.01181793212890625,
0.00455474853515625,
-0.006053924560546875,
-0.0391845703125,
0.056671142578125,
-0.007198333740234375,
0.00823211669921875,
-0.01012420654296875,
0.0089569091796875,
-0.03448486328125,
0.01708984375,
0.0226287841796875,
0.0012111663818359375,
0.00391387939453125,
0.0279693603515625,
-0.020965576171875,
0.01132965087890625,
0.043243408203125,
0.046630859375,
-0.0389404296875,
0.0051422119140625,
0.020294189453125,
-0.045501708984375,
-0.0159759521484375,
0.027130126953125,
-0.004085540771484375,
0.010498046875,
0.0128173828125,
-0.004425048828125,
0.01186370849609375,
-0.034515380859375,
0.04718017578125,
-0.0012540817260742188,
-0.016998291015625,
0.0239715576171875,
-0.034881591796875,
-0.00298309326171875,
0.05126953125,
-0.03167724609375,
0.03216552734375,
-0.0322265625,
-0.0215606689453125,
-0.07293701171875,
-0.017913818359375,
-0.019622802734375,
0.09124755859375,
0.04345703125,
-0.0504150390625,
0.0007572174072265625,
0.050079345703125,
-0.0178070068359375,
-0.023681640625,
0.00489044189453125,
0.0274810791015625,
-0.012908935546875,
0.0253448486328125,
-0.024139404296875,
-0.034027099609375,
0.00844573974609375,
0.045257568359375,
-0.0032253265380859375,
0.07769775390625,
-0.022735595703125,
-0.006275177001953125,
0.0271453857421875,
-0.050537109375,
0.020751953125,
-0.040985107421875,
-0.041015625,
0.0135955810546875,
-0.049652099609375,
0.0131072998046875,
-0.03369140625,
-0.003360748291015625,
0.0246124267578125,
-0.04315185546875,
0.0132293701171875,
0.01380157470703125,
-0.014617919921875,
-0.0007877349853515625,
0.0002053976058959961,
-0.0213623046875,
0.02325439453125,
0.03662109375,
-0.02813720703125,
0.036590576171875,
0.00785064697265625,
-0.035858154296875,
0.09368896484375,
0.0037174224853515625,
0.044281005859375,
-0.05426025390625,
0.037811279296875,
-0.0010404586791992188,
0.007965087890625,
0.0168914794921875,
0.0247650146484375,
-0.005298614501953125,
0.0550537109375,
0.0126495361328125,
0.0190277099609375,
0.03363037109375,
-0.02349853515625,
-0.03704833984375,
-0.021759033203125,
0.0219879150390625,
-0.0178070068359375,
0.009613037109375,
0.02789306640625,
0.021697998046875,
0.0283203125,
-0.00621795654296875,
-0.0026264190673828125,
-0.0208282470703125,
-0.014862060546875,
0.05194091796875,
0.0105743408203125,
0.019287109375,
-0.00926971435546875,
0.0645751953125,
-0.039276123046875,
0.0151824951171875,
-0.0286865234375,
0.06500244140625,
0.03887939453125,
-0.0272216796875,
-0.006298065185546875,
-0.01297760009765625,
0.052490234375,
-0.039520263671875,
0.01136016845703125,
0.00803375244140625,
0.0298614501953125,
-0.030487060546875,
-0.0018482208251953125,
0.00937652587890625,
0.00621795654296875,
-0.035797119140625,
-0.0211944580078125,
0.000038564205169677734,
-0.008514404296875,
-0.01611328125,
0.070556640625,
-0.022705078125,
0.04376220703125,
-0.011932373046875,
-0.002101898193359375,
-0.045562744140625,
0.0270843505859375,
-0.00806427001953125,
0.0293121337890625,
0.0035247802734375,
0.0158538818359375,
0.0192108154296875,
-0.040374755859375,
-0.019439697265625,
0.00804901123046875,
0.0360107421875,
0.0089111328125,
-0.003078460693359375,
0.01070404052734375,
-0.024017333984375,
-0.0230255126953125,
-0.030303955078125,
0.00324249267578125,
0.04473876953125,
-0.004207611083984375,
-0.05047607421875,
-0.025421142578125,
0.046234130859375,
-0.002147674560546875,
0.0100555419921875,
-0.001079559326171875,
0.045196533203125,
-0.021942138671875,
0.023101806640625,
-0.006317138671875,
-0.0235748291015625,
0.04498291015625,
0.0017499923706054688,
-0.046478271484375,
-0.058258056640625,
-0.044281005859375,
0.0112457275390625,
0.029022216796875,
0.0169830322265625,
-0.01421356201171875,
-0.01432037353515625,
0.00324249267578125,
-0.007785797119140625,
-0.0222625732421875,
0.0018911361694335938,
0.0482177734375,
0.0130157470703125,
-0.0418701171875,
-0.013641357421875,
-0.035552978515625,
-0.0264739990234375,
0.0491943359375,
0.01934814453125,
-0.0245208740234375,
-0.0305938720703125,
0.04449462890625,
0.04400634765625,
-0.013763427734375,
-0.0648193359375,
-0.03155517578125,
-0.0011768341064453125,
0.02838134765625,
0.07440185546875,
-0.01425933837890625,
0.0149688720703125,
0.005527496337890625,
0.04541015625,
0.01018524169921875,
0.015869140625,
-0.0261993408203125,
-0.03192138671875,
0.006649017333984375,
-0.0299224853515625,
-0.01959228515625,
-0.0098114013671875,
0.002593994140625,
-0.004703521728515625,
0.0129547119140625,
-0.005367279052734375,
-0.003009796142578125,
0.0125579833984375,
0.0167388916015625,
-0.0258026123046875,
-0.01387786865234375,
-0.0133514404296875,
-0.02569580078125,
0.004024505615234375,
-0.028106689453125,
0.0308685302734375,
-0.04583740234375,
-0.019317626953125,
0.0611572265625,
-0.0390625,
0.02484130859375,
0.046173095703125,
-0.02398681640625,
-0.01139068603515625,
0.020233154296875,
0.024322509765625,
0.012481689453125,
0.003925323486328125,
0.02764892578125,
-0.04296875,
-0.01904296875,
-0.005886077880859375,
0.00376129150390625,
-0.00734710693359375,
-0.03070068359375,
-0.0099639892578125,
-0.01580810546875,
-0.015777587890625,
0.0022449493408203125,
0.0119781494140625,
0.00922393798828125,
-0.0257415771484375,
-0.004627227783203125,
-0.049346923828125,
-0.033966064453125,
0.055999755859375,
-0.005016326904296875,
-0.0012769699096679688,
0.00809478759765625,
0.0152130126953125,
0.022247314453125,
-0.03411865234375,
0.0029277801513671875,
0.0209197998046875,
-0.01076507568359375,
-0.006252288818359375,
0.03546142578125,
0.01398468017578125,
-0.0131072998046875,
0.0151519775390625,
-0.002384185791015625,
0.0160675048828125,
-0.033935546875,
-0.03070068359375,
0.0278167724609375,
-0.0294952392578125,
-0.05755615234375,
0.03033447265625,
-0.0406494140625,
0.03924560546875,
-0.02532958984375,
0.006443023681640625,
0.017578125,
0.05804443359375,
-0.030517578125,
0.03192138671875,
0.03778076171875,
-0.0214996337890625,
0.05914306640625,
-0.004261016845703125,
-0.005832672119140625,
0.0296630859375,
-0.0460205078125,
-0.0012836456298828125,
-0.0018854141235351562,
0.024932861328125,
-0.026702880859375,
-0.0201873779296875,
0.037933349609375,
0.033966064453125,
-0.039459228515625,
0.041778564453125,
0.012969970703125,
-0.02984619140625,
-0.0125274658203125,
0.006328582763671875,
-0.01422882080078125,
0.0439453125,
-0.0202789306640625,
0.036834716796875,
0.032196044921875,
0.0021419525146484375,
-0.018890380859375,
0.065185546875,
0.01776123046875,
-0.0404052734375,
-0.0190277099609375,
0.050750732421875,
-0.01494598388671875,
0.049560546875,
0.01021575927734375,
0.027740478515625,
-0.028778076171875,
0.034820556640625,
-0.0386962890625,
-0.02496337890625,
0.0270538330078125,
0.0758056640625,
-0.006519317626953125,
-0.01529693603515625,
-0.0050201416015625,
-0.058837890625,
-0.007110595703125,
0.0804443359375,
0.045074462890625,
-0.0024662017822265625,
-0.0226287841796875,
0.004741668701171875,
0.033050537109375,
-0.0189361572265625,
0.020172119140625,
0.00667572021484375,
-0.04669189453125,
-0.015838623046875,
0.00679779052734375,
-0.01483154296875,
0.015411376953125,
-0.01525115966796875,
-0.00975799560546875,
0.014892578125,
0.00399017333984375,
-0.015777587890625,
0.00446319580078125,
0.047332763671875,
-0.0039825439453125,
-0.0184478759765625,
0.0262908935546875,
-0.03863525390625,
0.040924072265625,
-0.032958984375,
0.0189971923828125,
-0.0111541748046875,
0.007534027099609375,
0.009246826171875,
-0.051971435546875,
-0.0018796920776367188,
0.015869140625,
-0.0216522216796875,
-0.0196380615234375,
0.0154571533203125,
0.01383209228515625,
-0.0233001708984375,
-0.00737762451171875,
0.0780029296875,
0.00905609130859375,
-0.0063323974609375,
-0.01806640625,
0.011444091796875,
0.0263671875,
0.033905029296875,
-0.01299285888671875,
0.0533447265625,
0.0112762451171875,
0.03997802734375,
-0.02093505859375,
-0.0261688232421875,
0.023101806640625,
0.00986480712890625,
-0.005939483642578125,
-0.021087646484375,
0.024017333984375,
-0.034881591796875,
-0.037384033203125,
0.0156707763671875,
0.01922607421875,
0.033966064453125,
0.02252197265625,
0.035186767578125,
-0.00495147705078125,
-0.00852203369140625,
-0.03558349609375,
0.04840087890625,
-0.00925445556640625,
0.042510986328125,
-0.03857421875,
-0.016571044921875,
-0.0129547119140625,
0.0271148681640625,
-0.0263214111328125,
-0.0011615753173828125,
-0.00548553466796875,
-0.0097808837890625,
-0.067138671875,
-0.01247406005859375,
0.044189453125,
-0.03668212890625,
0.0192108154296875,
0.0088958740234375,
-0.01488494873046875,
0.006450653076171875,
-0.034454345703125,
0.00655364990234375,
0.009124755859375,
0.042999267578125,
-0.06640625,
0.05780029296875,
-0.015472412109375,
-0.024261474609375,
0.04400634765625,
-0.0003094673156738281,
0.07208251953125,
-0.0214385986328125,
-0.0791015625,
-0.03839111328125,
-0.0188446044921875,
-0.005771636962890625,
0.02911376953125,
0.04095458984375,
0.01462554931640625,
-0.015045166015625,
0.017120361328125,
-0.002704620361328125,
0.004688262939453125,
-0.00017261505126953125,
0.00838470458984375,
-0.02777099609375,
0.01263427734375,
-0.01293182373046875,
-0.03509521484375,
-0.0226898193359375,
-0.041534423828125,
0.056121826171875,
0.0186614990234375,
0.08551025390625,
-0.02691650390625,
0.035919189453125,
-0.01202392578125,
0.0009493827819824219,
0.0022373199462890625,
-0.024322509765625,
0.038360595703125,
0.006526947021484375,
-0.004913330078125,
-0.0083160400390625,
0.005756378173828125,
0.060089111328125,
-0.02874755859375,
-0.01215362548828125,
0.007350921630859375,
-0.040191650390625,
0.0096588134765625,
0.042449951171875,
0.04913330078125,
-0.01409912109375,
-0.044189453125,
-0.06390380859375,
-0.0100860595703125,
0.0364990234375,
0.05902099609375,
0.0142669677734375,
0.04791259765625,
0.01532745361328125,
-0.01275634765625,
0.0230255126953125,
-0.031402587890625,
0.03125,
0.03289794921875,
-0.002719879150390625,
0.0020694732666015625,
0.0150604248046875,
-0.0018100738525390625,
-0.0054168701171875,
0.02960205078125,
-0.032745361328125,
0.0369873046875,
-0.046875,
0.0204925537109375,
0.0845947265625,
0.06378173828125,
0.0017900466918945312,
0.02996826171875,
0.052215576171875,
-0.02935791015625,
0.0091094970703125,
0.00809478759765625,
-0.0132904052734375,
-0.01219940185546875,
-0.0290374755859375,
0.007221221923828125,
0.004657745361328125,
-0.005573272705078125,
-0.0191497802734375,
-0.039215087890625,
0.025543212890625,
-0.0256195068359375,
0.0202178955078125,
-0.041015625,
-0.0251312255859375,
0.022857666015625,
-0.004009246826171875,
-0.035064697265625,
-0.01355743408203125,
-0.014251708984375,
0.01047515869140625,
-0.0396728515625,
-0.04638671875,
0.060394287109375,
-0.00308990478515625,
0.0289154052734375,
0.044036865234375,
-0.032562255859375,
0.0280303955078125,
0.041229248046875,
0.041748046875,
0.07989501953125,
-0.004596710205078125,
0.005481719970703125,
0.01288604736328125,
0.00014662742614746094,
-0.0504150390625,
-0.052520751953125,
0.0292510986328125,
-0.047637939453125,
-0.03350830078125,
-0.059906005859375,
0.035400390625,
0.0220489501953125,
-0.04833984375,
-0.1033935546875,
-0.02777099609375,
-0.027862548828125,
-0.03924560546875,
-0.0245208740234375,
-0.023284912109375,
-0.0089263916015625,
0.039459228515625,
-0.0167694091796875,
-0.0012598037719726562,
-0.0340576171875,
0.0258941650390625,
0.007495880126953125,
-0.0002570152282714844,
0.010986328125,
-0.01070404052734375,
-0.0775146484375,
-0.002208709716796875,
-0.0032711029052734375,
0.01464080810546875,
0.0247039794921875,
-0.0011501312255859375,
0.00984954833984375,
0.0230865478515625,
-0.042236328125,
-0.006927490234375,
-0.01229095458984375,
-0.0279693603515625,
-0.017608642578125,
-0.06610107421875,
-0.0091094970703125,
-0.01508331298828125,
0.032745361328125,
0.0229339599609375,
-0.006496429443359375,
-0.0230560302734375,
0.043060302734375,
-0.00598907470703125,
-0.017364501953125,
0.016448974609375,
-0.029083251953125,
0.042266845703125,
0.025482177734375,
-0.034576416015625,
-0.01102447509765625,
0.0037746429443359375,
-0.0212554931640625,
-0.02642822265625,
-0.01239776611328125,
-0.031646728515625,
-0.004634857177734375,
-0.0134124755859375,
-0.00467681884765625,
0.0308685302734375,
-0.03973388671875,
-0.0240936279296875,
0.0116119384765625,
-0.0016965866088867188,
-0.006317138671875,
0.024322509765625,
0.0014591217041015625,
-0.0118255615234375,
-0.01096343994140625,
0.050506591796875,
0.013671875,
0.003269195556640625,
-0.0305328369140625,
-0.00809478759765625,
-0.00537109375,
0.0217742919921875,
0.007541656494140625,
0.0293731689453125,
0.0017728805541992188,
0.0027751922607421875,
0.010589599609375,
-0.0106048583984375,
0.0095672607421875,
0.005886077880859375,
-0.037139892578125,
0.045501708984375,
0.0170440673828125,
-0.014129638671875,
0.0148773193359375,
-0.00691986083984375,
0.002567291259765625,
0.00019693374633789062,
-0.00583648681640625,
-0.0024700164794921875,
-0.021453857421875,
-0.059661865234375,
-0.016143798828125,
0.00018358230590820312
] |
341f6adc7f93902e9171d5637b902f415ffcdc10
|
Wordpress Stackexchange
Q: How can I redirect user after entering wrong password? I'm using wp_login_form() to display login form in a jQuery dialog window.
If user enters wrong password, the user is taken to the backend. I don't want that. Is there a way to notify user that he entered wrong password and still remain on the same page?
Before wp_login_form() came I was using a plugin. I'm kind of hoping I can avoid using a plugin for this.
My code:
wp_login_form( array(
'label_remember' => __( 'Remember me' ),
'label_log_in' => __( 'Login' )
) );
A: wp_login_form() creates a form with an action attribute of site_url/wp-login.php, which means that when you click the submit button the form is posted to site_url/wp-login.php which ignores redirect_to on errors (like wrong password) so in your case either go back to using a plugin or recreate the whole login process and that way you will have control on errors, take a look at Check for correct username on custom login form which is very similar question.
|
Q: How can I redirect user after entering wrong password? I'm using wp_login_form() to display login form in a jQuery dialog window.
If user enters wrong password, the user is taken to the backend. I don't want that. Is there a way to notify user that he entered wrong password and still remain on the same page?
Before wp_login_form() came I was using a plugin. I'm kind of hoping I can avoid using a plugin for this.
My code:
wp_login_form( array(
'label_remember' => __( 'Remember me' ),
'label_log_in' => __( 'Login' )
) );
A: wp_login_form() creates a form with an action attribute of site_url/wp-login.php, which means that when you click the submit button the form is posted to site_url/wp-login.php which ignores redirect_to on errors (like wrong password) so in your case either go back to using a plugin or recreate the whole login process and that way you will have control on errors, take a look at Check for correct username on custom login form which is very similar question.
A: A solution for Szczepan Hołyszewski's point about empty fields in the accepted solution, the following jQuery will prevent going to the standard wp-login page: (add to login page template or footer.php)
jQuery("#loginform-custom").submit(function(){
var isFormValid = true;
jQuery("input").each(function()
{
if (jQuery.trim($(this).val()).length == 0){
jQuery(this).addClass("submit_error");
isFormValid = false;
}
else {
jQuery(this).removeClass("submit_error");
}
});
return isFormValid;
});
A: I came here from google. But the answer didn't satisfy me. I was looking for a while and found a better solution.
Add this to your functions.php:
add_action( 'wp_login_failed', 'my_front_end_login_fail' ); // hook failed login
function my_front_end_login_fail( $username ) {
$referrer = $_SERVER['HTTP_REFERER']; // where did the post submission come from?
// if there's a valid referrer, and it's not the default log-in screen
if ( !empty($referrer) && !strstr($referrer,'wp-login') && !strstr($referrer,'wp-admin') ) {
wp_redirect( $referrer . '?login=failed' ); // let's append some information (login=failed) to the URL for the theme to use
exit;
}
}
A: The current method I am using to deal with all of the issues outlined here works great even with blank username/password and doesn't rely on javascript (though the js could be good along with this).
add_action( 'wp_login_failed', 'custom_login_failed' );
function custom_login_failed( $username )
{
$referrer = wp_get_referer();
if ( $referrer && ! strstr($referrer, 'wp-login') && ! strstr($referrer,'wp-admin') )
{
wp_redirect( add_query_arg('login', 'failed', $referrer) );
exit;
}
}
The key is this filter to change how a blank username/password is treated:
add_filter( 'authenticate', 'custom_authenticate_username_password', 30, 3);
function custom_authenticate_username_password( $user, $username, $password )
{
if ( is_a($user, 'WP_User') ) { return $user; }
if ( empty($username) || empty($password) )
{
$error = new WP_Error();
$user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.'));
return $error;
}
}
You can take this a step further and completely replace wp-login.php by redirecting users to your custom login page and use that page for the login_failed redirect also. Full code:
/**
* Custom Login Page Actions
*/
// Change the login url sitewide to the custom login page
add_filter( 'login_url', 'custom_login_url', 10, 2 );
// Redirects wp-login to custom login with some custom error query vars when needed
add_action( 'login_head', 'custom_redirect_login', 10, 2 );
// Updates login failed to send user back to the custom form with a query var
add_action( 'wp_login_failed', 'custom_login_failed', 10, 2 );
// Updates authentication to return an error when one field or both are blank
add_filter( 'authenticate', 'custom_authenticate_username_password', 30, 3);
// Automatically adds the login form to "login" page
add_filter( 'the_content', 'custom_login_form_to_login_page' );
/**
* Custom Login Page Functions
*/
function custom_login_url( $login_url='', $redirect='' )
{
$page = get_page_by_path('login');
if ( $page )
{
$login_url = get_permalink($page->ID);
if (! empty($redirect) )
$login_url = add_query_arg('redirect_to', urlencode($redirect), $login_url);
}
return $login_url;
}
function custom_redirect_login( $redirect_to='', $request='' )
{
if ( 'wp-login.php' == $GLOBALS['pagenow'] )
{
$redirect_url = custom_login_url();
if (! empty($_GET['action']) )
{
if ( 'lostpassword' == $_GET['action'] )
{
return;
}
elseif ( 'register' == $_GET['action'] )
{
$register_page = get_page_by_path('register');
$redirect_url = get_permalink($register_page->ID);
}
}
elseif (! empty($_GET['loggedout']) )
{
$redirect_url = add_query_arg('action', 'loggedout', custom_login_url());
}
wp_redirect( $redirect_url );
exit;
}
}
function custom_login_failed( $username )
{
$referrer = wp_get_referer();
if ( $referrer && ! strstr($referrer, 'wp-login') && ! strstr($referrer, 'wp-admin') )
{
if ( empty($_GET['loggedout']) )
wp_redirect( add_query_arg('action', 'failed', custom_login_url()) );
else
wp_redirect( add_query_arg('action', 'loggedout', custom_login_url()) );
exit;
}
}
function custom_authenticate_username_password( $user, $username, $password )
{
if ( is_a($user, 'WP_User') ) { return $user; }
if ( empty($username) || empty($password) )
{
$error = new WP_Error();
$user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.'));
return $error;
}
}
function custom_login_form_to_login_page( $content )
{
if ( is_page('login') && in_the_loop() )
{
$output = $message = "";
if (! empty($_GET['action']) )
{
if ( 'failed' == $_GET['action'] )
$message = "There was a problem with your username or password.";
elseif ( 'loggedout' == $_GET['action'] )
$message = "You are now logged out.";
elseif ( 'recovered' == $_GET['action'] )
$message = "Check your e-mail for the confirmation link.";
}
if ( $message ) $output .= '<div class="message"><p>'. $message .'</p></div>';
$output .= wp_login_form('echo=0&redirect='. site_url());
$output .= '<a href="'. wp_lostpassword_url( add_query_arg('action', 'recovered', get_permalink()) ) .'" title="Recover Lost Password">Lost Password?</a>';
$content .= $output;
}
return $content;
}
Customize and add these to add your logo to the wp-login page for password recovery:
// calling it only on the login page
add_action( 'login_enqueue_scripts', 'custom_login_css', 10 );
function custom_login_css() { wp_enqueue_style( 'custom_login_css', get_template_directory_uri() .'/library/css/login.css', false ); }
// changing the logo link from wordpress.org to your site
add_filter( 'login_headerurl', 'custom_login_logo_url' );
function custom_login_logo_url() { return home_url(); }
// changing the alt text on the logo to show your site name
add_filter( 'login_headertitle', 'custom_login_title' );
function custom_login_title() { return get_option('blogname'); }
Login logo css:
.login h1 a {
background: url(../images/login-logo.png) no-repeat top center;
width: 274px;
height: 63px;
text-indent: -9999px;
overflow: hidden;
padding-bottom: 15px;
display: block;
}
EDIT: I just implemented this on another site form scratch, and found the above "step further" to be more complete, and fixed small syntax errors in the "add_actions". Added some comments and a method to automatically add the login form to login page without a separate template file. The login form method should work in most instances, since it is attached to "the_content", it could cause and issue if you have more than one loop on the login page, just use a page-login.php template in that case.
A: The following worked for me. Both of these hooks can be found within the function wp_authenticate within wp-includes/puggabel.php.
*
*Check via the authenticate filter if the login form is missing the username or password.
function wpse_15633_redirectMissingDataLoginForm($user, $username, $password)
{
$errors = [];
empty(trim($password)) && $errors[] = 'password_empty';
empty(trim($username)) && $errors[] = 'username_empty';
if (! empty($errors)) {
$redirect_url = add_query_arg([
'errors' => join(',', $errors),
], site_url('login', 'login_post'));
if (wp_safe_redirect($redirect_url)) {
exit;
}
}
return $user;
}
add_filter('authenticate', 'wpse_15633_redirectMissingDataLoginForm', 10, 3);
*Check via the wp_login_failed action if the authentication of the supplied username and password has failed.
function wpse_15633_redirectFailedLoginForm($username, $error)
{
$redirect_url = add_query_arg([
'errors' => $error->get_error_code(),
], site_url('login', 'login_post'));
if (wp_safe_redirect($redirect_url)) {
exit;
}
}
add_action('wp_login_failed', 'wpse_15633_redirectFailedLoginForm', 10, 2);
A: One addition to Alexey's answer. You can add a jquery function to check that one of the fields is not blank. That way the form will not submit unless there is something to check, preventing WordPress from redirecting to /wp-login.php.
<script>
$("#wp-submit").click(function() {
var user = $("input#user_login").val();
if (user == "") {
$("input#user_login").focus();
return false;
}
});
</script>
Still not sure how to fix the forgot password aspect
A: jQuery("#loginform-custom").submit(function(){
var isFormValid = true;
jQuery("input").each(function()
{
if (jQuery.trim($(this).val()).length == 0){
jQuery(this).addClass("submit_error");
isFormValid = false;
}
else {
jQuery(this).removeClass("submit_error");
}
});
return isFormValid;
});
|
wordpress
|
{
"language": "en",
"length": 1266,
"provenance": "stackexchange_00019.jsonl.gz:408908",
"question_score": "23",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15633"
}
|
[
0.067626953125,
0.0036449432373046875,
-0.0038204193115234375,
0.00232696533203125,
0.0186309814453125,
-0.041717529296875,
0.06488037109375,
-0.033538818359375,
-0.01593017578125,
0.0288238525390625,
0.034423828125,
-0.005062103271484375,
-0.041656494140625,
-0.046783447265625,
-0.0238037109375,
-0.027862548828125,
-0.001415252685546875,
0.0016660690307617188,
0.007049560546875,
-0.043701171875,
0.031524658203125,
-0.043365478515625,
0.020477294921875,
-0.0159149169921875,
-0.007354736328125,
0.0159454345703125,
0.09722900390625,
-0.0135955810546875,
0.01372528076171875,
-0.00484466552734375,
0.0123138427734375,
-0.05084228515625,
0.026092529296875,
0.0159759521484375,
-0.039794921875,
-0.0205841064453125,
0.004138946533203125,
0.0004420280456542969,
-0.026580810546875,
0.046966552734375,
0.036102294921875,
-0.0302276611328125,
-0.006622314453125,
-0.0107574462890625,
-0.0105133056640625,
-0.02923583984375,
0.056365966796875,
-0.0085906982421875,
0.018524169921875,
0.0064544677734375,
0.02386474609375,
-0.0116729736328125,
0.038421630859375,
-0.005462646484375,
-0.0341796875,
-0.0290069580078125,
-0.060516357421875,
0.0178985595703125,
0.034027099609375,
0.07354736328125,
-0.0004074573516845703,
-0.03314208984375,
-0.0090789794921875,
-0.0635986328125,
-0.0212860107421875,
0.00034165382385253906,
-0.03375244140625,
0.0188446044921875,
0.006011962890625,
-0.02923583984375,
-0.0189666748046875,
-0.01143646240234375,
-0.00901031494140625,
0.0036449432373046875,
-0.00795745849609375,
0.007312774658203125,
0.0034809112548828125,
0.0199432373046875,
0.016021728515625,
0.00786590576171875,
-0.0256805419921875,
0.0088653564453125,
-0.04345703125,
-0.02557373046875,
0.0206298828125,
0.0201416015625,
-0.02197265625,
-0.0252227783203125,
-0.01052093505859375,
-0.0235137939453125,
-0.025054931640625,
-0.024505615234375,
-0.033599853515625,
0.0260009765625,
-0.017913818359375,
0.0025234222412109375,
0.02899169921875,
0.032806396484375,
0.01012420654296875,
-0.001659393310546875,
-0.0092010498046875,
-0.0296173095703125,
-0.013092041015625,
-0.0162353515625,
-0.0072479248046875,
0.03961181640625,
0.029754638671875,
-0.025848388671875,
-0.0306243896484375,
-0.004741668701171875,
-0.01123809814453125,
-0.03125,
-0.039520263671875,
-0.1043701171875,
0.009429931640625,
0.07861328125,
-0.00614166259765625,
-0.0146942138671875,
0.037200927734375,
-0.021820068359375,
-0.059417724609375,
-0.037109375,
0.032073974609375,
-0.007354736328125,
0.01532745361328125,
-0.0218505859375,
-0.0255126953125,
0.0207977294921875,
0.0010528564453125,
0.0047607421875,
-0.053070068359375,
-0.0023097991943359375,
0.09613037109375,
0.032379150390625,
0.02874755859375,
-0.02996826171875,
0.039520263671875,
0.0170745849609375,
-0.006389617919921875,
0.0180206298828125,
-0.013397216796875,
-0.0121002197265625,
0.003971099853515625,
-0.006134033203125,
0.032562255859375,
0.035980224609375,
0.00853729248046875,
0.0007891654968261719,
0.001312255859375,
-0.05670166015625,
0.0274810791015625,
-0.050201416015625,
-0.039276123046875,
0.042816162109375,
0.055999755859375,
0.0084381103515625,
0.05126953125,
-0.0270538330078125,
0.037811279296875,
0.0007872581481933594,
0.04150390625,
-0.0065765380859375,
-0.00447845458984375,
0.01116943359375,
-0.0286102294921875,
0.0014390945434570312,
-0.056243896484375,
-0.0105133056640625,
0.01922607421875,
-0.0280914306640625,
0.01276397705078125,
-0.023345947265625,
-0.03668212890625,
-0.03125,
-0.0035114288330078125,
0.00937652587890625,
-0.00415802001953125,
0.068359375,
0.0038928985595703125,
0.0343017578125,
0.02606201171875,
-0.032684326171875,
0.08477783203125,
-0.0090484619140625,
-0.027069091796875,
0.006526947021484375,
0.0294647216796875,
0.048370361328125,
0.006927490234375,
0.033966064453125,
0.01078033447265625,
0.01318359375,
-0.015045166015625,
0.0244598388671875,
-0.0462646484375,
-0.027191162109375,
0.032867431640625,
0.023895263671875,
-0.03125,
0.035186767578125,
0.026123046875,
-0.0079803466796875,
-0.0364990234375,
-0.003726959228515625,
-0.07550048828125,
-0.0164642333984375,
-0.018341064453125,
0.01134490966796875,
-0.0274505615234375,
0.00911712646484375,
-0.0003001689910888672,
-0.0052642822265625,
-0.0145416259765625,
-0.0189208984375,
-0.002147674560546875,
-0.0224151611328125,
-0.051483154296875,
0.039276123046875,
-0.007266998291015625,
0.07196044921875,
-0.0220489501953125,
-0.0242462158203125,
-0.03289794921875,
-0.0811767578125,
0.0056610107421875,
-0.047119140625,
-0.0102996826171875,
-0.0263214111328125,
-0.0006113052368164062,
-0.019256591796875,
0.003734588623046875,
0.056884765625,
-0.0122528076171875,
-0.012847900390625,
-0.0648193359375,
-0.0246734619140625,
-0.04425048828125,
-0.0347900390625,
0.00714111328125,
0.05682373046875,
0.036224365234375,
0.02276611328125,
0.0019445419311523438,
0.046051025390625,
0.013946533203125,
-0.0767822265625,
-0.007175445556640625,
0.0300445556640625,
0.0171661376953125,
0.040130615234375,
-0.0183258056640625,
-0.0112457275390625,
0.010498046875,
-0.049468994140625,
-0.0022907257080078125,
0.0335693359375,
0.00033354759216308594,
0.01556396484375,
-0.0128021240234375,
0.0096435546875,
-0.0231475830078125,
-0.0767822265625,
-0.026763916015625,
-0.04034423828125,
0.0036563873291015625,
-0.043975830078125,
-0.032318115234375,
-0.04638671875,
-0.0214080810546875,
-0.003662109375,
0.035736083984375,
-0.0787353515625,
-0.0017452239990234375,
-0.002613067626953125,
0.0250244140625,
-0.00482177734375,
-0.0408935546875,
-0.0015096664428710938,
0.0275115966796875,
-0.0101776123046875,
-0.0241546630859375,
-0.008758544921875,
-0.05047607421875,
-0.0152587890625,
0.01207733154296875,
-0.03839111328125,
0.00506591796875,
0.015228271484375,
0.032989501953125,
-0.00490570068359375,
0.0367431640625,
-0.0014133453369140625,
-0.0060272216796875,
0.02069091796875,
0.01320648193359375,
-0.04766845703125,
-0.035186767578125,
-0.00849151611328125,
0.0257110595703125,
-0.036956787109375,
0.0225982666015625,
0.053924560546875,
-0.0191497802734375,
0.01861572265625,
0.001953125,
-0.0025577545166015625,
0.0014047622680664062,
0.01031494140625,
-0.0169677734375,
-0.0017108917236328125,
-0.050933837890625,
-0.015869140625,
0.0296173095703125,
0.052337646484375,
0.0149078369140625,
-0.0220184326171875,
0.0163116455078125,
0.034881591796875,
-0.04998779296875,
-0.067626953125,
-0.0989990234375,
-0.07244873046875,
0.0246429443359375,
0.0172576904296875,
0.0021820068359375,
0.0139007568359375,
0.044219970703125,
0.03875732421875,
0.017578125,
-0.013671875,
-0.0236053466796875,
-0.00952911376953125,
-0.037994384765625,
0.0054473876953125,
0.0061798095703125,
0.00551605224609375,
-0.00754547119140625,
0.07537841796875,
0.0038661956787109375,
-0.06329345703125,
-0.0153045654296875,
0.05743408203125,
-0.0179443359375,
-0.013397216796875,
-0.05804443359375,
-0.017486572265625,
0.035369873046875,
-0.0132904052734375,
-0.024566650390625,
-0.0265960693359375,
0.0660400390625,
-0.017059326171875,
0.004894256591796875,
-0.025726318359375,
0.00937652587890625,
-0.009918212890625,
-0.0150146484375,
-0.02154541015625,
-0.013824462890625,
-0.042755126953125,
0.014495849609375,
0.01274871826171875,
-0.0256500244140625,
-0.00981903076171875,
-0.003566741943359375,
-0.0288848876953125,
0.027679443359375,
-0.015380859375,
0.00824737548828125,
0.0205078125,
-0.0010499954223632812,
-0.0014629364013671875,
0.0297088623046875,
-0.01055908203125,
-0.0033588409423828125,
-0.023956298828125,
0.020538330078125,
-0.0223388671875,
-0.041717529296875,
-0.019500732421875,
0.01454925537109375,
0.006351470947265625,
-0.0063323974609375,
-0.0200958251953125,
-0.08233642578125,
0.0298309326171875,
-0.055755615234375,
0.0017347335815429688,
-0.034088134765625,
-0.00787353515625,
0.0081939697265625,
0.1136474609375,
-0.0245208740234375,
-0.01070404052734375,
0.01186370849609375,
0.013458251953125,
-0.03717041015625,
-0.00406646728515625,
-0.0556640625,
-0.00782012939453125,
-0.076171875,
-0.0206756591796875,
-0.032958984375,
-0.00843048095703125,
0.007801055908203125,
-0.01386260986328125,
-0.014801025390625,
-0.054962158203125,
0.01947021484375,
-0.0184783935546875,
0.041473388671875,
-0.0086669921875,
0.0273284912109375,
-0.023193359375,
0.0247802734375,
-0.0391845703125,
-0.0738525390625,
-0.01006317138671875,
-0.004673004150390625,
0.056610107421875,
0.029144287109375,
-0.041778564453125,
-0.00954437255859375,
0.04437255859375,
0.0285491943359375,
0.0211029052734375,
0.00835418701171875,
-0.035369873046875,
0.05621337890625,
0.0021953582763671875,
-0.004608154296875,
0.00447845458984375,
0.01389312744140625,
-0.0069732666015625,
-0.04937744140625,
-0.0162200927734375,
-0.04119873046875,
-0.031646728515625,
0.00856781005859375,
-0.04144287109375,
-0.0208587646484375,
-0.03619384765625,
-0.01198577880859375,
-0.0001914501190185547,
-0.00681304931640625,
0.003520965576171875,
-0.020263671875,
-0.01434326171875,
0.0288543701171875,
-0.017486572265625,
-0.030670166015625,
-0.0016956329345703125,
0.048095703125,
0.01468658447265625,
-0.01334381103515625,
0.00959014892578125,
0.00762939453125,
0.036865234375,
0.00496673583984375,
-0.00279998779296875,
-0.0159454345703125,
-0.036224365234375,
0.060638427734375,
-0.0031070709228515625,
-0.013427734375,
0.01318359375,
0.01556396484375,
-0.0079193115234375,
-0.06463623046875,
0.035858154296875,
-0.0231170654296875,
-0.00467681884765625,
0.0036411285400390625,
0.002777099609375,
0.0277252197265625,
0.0465087890625,
-0.0312042236328125,
-0.032562255859375,
-0.0179443359375,
0.0235748291015625,
-0.03570556640625,
0.027313232421875,
-0.0031452178955078125,
-0.0296783447265625,
0.0021953582763671875,
-0.00431060791015625,
-0.023284912109375,
-0.032623291015625,
-0.022857666015625,
-0.0189056396484375,
-0.04498291015625,
0.0043487548828125,
0.01255035400390625,
-0.024139404296875,
-0.0080413818359375,
-0.003139495849609375,
-0.0202178955078125,
0.0994873046875,
0.03814697265625,
-0.047760009765625,
0.04815673828125,
-0.039825439453125,
-0.020751953125,
-0.01151275634765625,
-0.020599365234375,
0.0260162353515625,
0.0028705596923828125,
-0.010009765625,
0.02471923828125,
0.0015077590942382812,
-0.040191650390625,
-0.026763916015625,
0.024383544921875,
0.0114288330078125,
-0.0084228515625,
0.0054779052734375,
0.051116943359375,
0.00673675537109375,
0.034271240234375,
-0.0033779144287109375,
-0.0002601146697998047,
0.01340484619140625,
0.0018463134765625,
0.030059814453125,
0.0044403076171875,
-0.0135955810546875,
-0.0133056640625,
0.01509857177734375,
-0.048065185546875,
-0.044525146484375,
0.01464080810546875,
0.038726806640625,
0.0230560302734375,
0.0267486572265625,
0.000583648681640625,
0.0235595703125,
0.004718780517578125,
0.048065185546875,
-0.0308074951171875,
-0.07403564453125,
-0.041412353515625,
-0.005214691162109375,
0.048004150390625,
-0.062042236328125,
-0.00264739990234375,
-0.03424072265625,
-0.035430908203125,
-0.0223388671875,
-0.01284027099609375,
-0.0109405517578125,
-0.0259552001953125,
-0.032958984375,
-0.0198516845703125,
-0.0270538330078125,
-0.01235198974609375,
-0.0042266845703125,
0.00608062744140625,
-0.0216827392578125,
-0.0124053955078125,
0.0194091796875,
-0.0286102294921875,
-0.00576019287109375,
-0.01074981689453125,
0.007396697998046875,
-0.0189666748046875,
0.0111236572265625,
0.0205535888671875,
-0.0035724639892578125,
-0.048309326171875,
0.0166473388671875,
-0.01509857177734375,
-0.0009045600891113281,
-0.016021728515625,
-0.031280517578125,
-0.033721923828125,
-0.01934814453125,
0.01313018798828125,
0.0104217529296875,
0.0110015869140625,
-0.01087188720703125,
-0.0416259765625,
-0.004791259765625,
0.01515960693359375,
-0.0210113525390625,
0.01316070556640625,
0.0161895751953125,
-0.02252197265625,
0.0078277587890625,
0.01123809814453125,
0.0287322998046875,
0.01132965087890625,
-0.037322998046875,
0.038330078125,
-0.023468017578125,
-0.036102294921875,
-0.062103271484375,
0.04058837890625,
0.0062103271484375,
0.037384033203125,
-0.0208740234375,
-0.03070068359375,
0.0100860595703125,
0.00499725341796875,
-0.0156402587890625,
0.0152740478515625,
0.050445556640625,
-0.03765869140625,
0.038360595703125,
-0.02337646484375,
0.00910186767578125,
0.0059661865234375,
-0.00335693359375,
0.018646240234375,
-0.024993896484375,
0.016937255859375,
0.01294708251953125,
-0.04248046875,
0.0202789306640625,
0.034332275390625,
0.017059326171875,
0.031951904296875,
0.00677490234375,
0.0321044921875,
0.0299835205078125,
-0.0290679931640625,
-0.036102294921875,
0.01348114013671875,
0.047454833984375,
0.00327301025390625,
-0.01146697998046875,
0.051513671875,
-0.0235137939453125,
-0.0031299591064453125,
0.06463623046875,
0.048828125,
-0.10595703125,
0.023284912109375,
0.0044097900390625,
0.0182037353515625,
0.033416748046875,
-0.0013904571533203125,
0.0260162353515625,
0.0595703125,
0.03399658203125,
-0.024749755859375,
-0.019989013671875,
0.0297393798828125,
-0.003826141357421875,
0.0027713775634765625,
0.01192474365234375,
0.059783935546875,
0.005950927734375,
-0.06640625,
-0.015960693359375,
0.04583740234375,
-0.0025615692138671875,
-0.01116943359375,
-0.015380859375,
-0.0008225440979003906,
-0.0241546630859375,
-0.08203125,
-0.033599853515625,
-0.04168701171875,
-0.01267242431640625,
0.048431396484375,
-0.0130615234375,
0.052642822265625,
0.06903076171875,
0.00048041343688964844,
0.019256591796875,
0.018341064453125,
-0.031646728515625,
0.050262451171875,
-0.0309906005859375,
-0.034942626953125,
-0.0007877349853515625,
-0.0675048828125,
-0.01012420654296875,
-0.0104827880859375,
0.01055145263671875,
-0.006847381591796875,
-0.012298583984375,
0.0694580078125,
-0.00884246826171875,
-0.022857666015625,
0.0252532958984375,
-0.00855255126953125,
-0.004810333251953125,
-0.0119476318359375,
0.021087646484375,
-0.06024169921875,
-0.00222015380859375,
-0.021942138671875,
-0.024658203125,
0.00641632080078125,
-0.035675048828125,
-0.042633056640625,
0.0657958984375,
0.0251617431640625,
-0.0034198760986328125,
-0.01151275634765625,
0.028167724609375,
0.003139495849609375,
0.035675048828125,
-0.034881591796875,
0.054962158203125,
0.0017538070678710938,
0.043487548828125,
-0.03350830078125,
0.0019741058349609375,
0.01284027099609375,
0.007232666015625,
0.00862884521484375,
0.0219268798828125,
-0.03558349609375,
-0.005588531494140625,
0.01067352294921875,
0.027374267578125,
0.016937255859375,
0.03778076171875,
0.045318603515625,
0.0303802490234375,
0.06268310546875,
-0.048370361328125,
0.033416748046875,
-0.046539306640625,
0.044158935546875,
0.043060302734375,
-0.0001964569091796875,
-0.04205322265625,
-0.017364501953125,
0.050201416015625,
-0.1175537109375,
0.01690673828125,
0.057952880859375,
0.046966552734375,
0.00412750244140625,
0.0191497802734375,
0.037139892578125,
0.0024089813232421875,
0.044525146484375,
-0.036773681640625,
0.051239013671875,
-0.007965087890625,
0.00928497314453125,
0.030517578125,
0.01922607421875,
0.0333251953125,
-0.0194549560546875,
-0.002361297607421875,
-0.0029964447021484375,
-0.0033245086669921875,
0.06146240234375,
-0.002407073974609375,
0.01885986328125,
-0.072265625,
0.00452423095703125,
0.040985107421875,
0.07171630859375,
-0.054840087890625,
-0.0206298828125,
0.005558013916015625,
0.0272369384765625,
0.04791259765625,
0.005218505859375,
0.0802001953125,
-0.023162841796875,
-0.0089111328125,
-0.005229949951171875,
0.00345611572265625,
0.0133209228515625,
-0.0164794921875,
-0.00044274330139160156,
0.006801605224609375,
0.0142059326171875,
0.035552978515625,
0.01441192626953125,
-0.004993438720703125,
0.0082855224609375,
0.0100555419921875,
-0.033935546875,
0.0248565673828125,
-0.016510009765625,
0.01325225830078125,
-0.0158843994140625,
0.0189361572265625,
0.0008602142333984375,
0.006336212158203125,
-0.019744873046875,
0.0007653236389160156,
-0.01374053955078125,
0.03399658203125,
-0.024810791015625,
0.0016927719116210938,
0.0110931396484375,
0.02178955078125,
0.0012979507446289062,
-0.035888671875,
-0.01322174072265625,
-0.0237579345703125,
0.0104522705078125,
-0.0247344970703125,
0.0009160041809082031,
0.007114410400390625,
-0.00928497314453125,
-0.01446533203125,
0.00920867919921875,
0.0316162109375,
0.01367950439453125,
0.03167724609375,
0.0108642578125,
-0.006809234619140625,
-0.0086517333984375,
-0.007534027099609375,
0.0219573974609375,
0.04046630859375,
-0.03948974609375,
-0.01605224609375,
-0.01513671875,
-0.0218353271484375,
0.015533447265625,
0.036865234375,
0.0163726806640625,
-0.0036907196044921875,
0.007518768310546875,
-0.037109375,
0.0352783203125,
-0.0011663436889648438,
0.00399017333984375,
-0.0121917724609375,
0.0008568763732910156,
-0.0305328369140625,
-0.051177978515625,
-0.022430419921875,
-0.004741668701171875,
0.00817108154296875,
-0.007625579833984375,
0.034271240234375,
0.016387939453125,
0.0028820037841796875,
-0.01447296142578125,
0.01474761962890625,
-0.016082763671875,
-0.0216522216796875,
0.04193115234375,
-0.00775146484375,
-0.0131072998046875,
-0.007335662841796875,
-0.0303497314453125,
0.09039306640625,
-0.035888671875,
0.03558349609375,
0.0626220703125,
-0.039947509765625,
-0.00582122802734375,
0.04144287109375,
0.045989990234375,
-0.0198211669921875,
-0.07958984375,
-0.0119781494140625,
0.0703125,
-0.025909423828125,
0.0631103515625,
-0.019927978515625,
0.06622314453125,
-0.06231689453125,
-0.00556182861328125,
0.004863739013671875,
-0.07275390625,
-0.0258636474609375,
0.0264892578125,
-0.039337158203125,
0.00566864013671875,
-0.042999267578125,
-0.02215576171875,
-0.016143798828125,
0.0108642578125,
-0.042205810546875,
-0.0101165771484375,
0.0307159423828125,
0.01023101806640625,
-0.005817413330078125,
0.046661376953125,
0.01016998291015625,
0.01438140869140625,
-0.0226593017578125,
-0.00009930133819580078,
-0.002071380615234375,
-0.014068603515625,
-0.0279693603515625,
-0.060028076171875,
0.001216888427734375,
0.003864288330078125,
0.0001933574676513672,
-0.025482177734375,
-0.013916015625,
0.03662109375,
0.016326904296875,
-0.0254974365234375,
-0.0287933349609375,
0.0013761520385742188,
-0.044952392578125,
0.09613037109375,
-0.042449951171875,
-0.0162506103515625,
0.0192718505859375,
0.054931640625,
-0.0562744140625,
-0.01155853271484375,
-0.0308380126953125,
-0.0189056396484375,
-0.06549072265625,
-0.01442718505859375,
0.044952392578125,
0.0025501251220703125,
-0.01495361328125,
-0.0552978515625,
-0.0235748291015625,
-0.0140533447265625,
-0.052734375,
-0.023712158203125,
0.01541900634765625,
0.015869140625,
0.0221710205078125,
-0.03302001953125,
-0.030303955078125,
0.0164794921875,
0.0236358642578125,
0.00482177734375,
-0.012847900390625,
-0.00815582275390625,
-0.0443115234375,
-0.08575439453125,
0.0262451171875,
0.0014095306396484375,
-0.037872314453125,
0.0154571533203125,
0.0018243789672851562,
-0.003070831298828125,
-0.0012378692626953125,
0.0027904510498046875,
-0.00705718994140625,
-0.0133514404296875,
-0.0025501251220703125,
0.0083160400390625,
-0.0186767578125,
0.0303802490234375,
0.02117919921875,
-0.023956298828125,
0.0187225341796875,
0.028961181640625,
-0.0127105712890625,
-0.020172119140625,
0.0171661376953125,
-0.005069732666015625,
0.032562255859375,
-0.01087188720703125,
-0.00331878662109375,
0.01073455810546875,
0.01537322998046875,
0.0074615478515625,
-0.027313232421875,
0.006649017333984375,
-0.0127410888671875,
-0.000005602836608886719,
0.008026123046875,
-0.0011587142944335938,
-0.0013942718505859375,
-0.031829833984375,
-0.032684326171875,
-0.0228271484375,
-0.006336212158203125,
0.004680633544921875,
-0.045379638671875,
0.00484466552734375,
0.00022077560424804688,
-0.029541015625,
-0.0027904510498046875,
0.015899658203125,
-0.035125732421875,
0.013824462890625,
0.03521728515625,
-0.01507568359375,
0.019622802734375,
-0.052703857421875,
0.07696533203125,
-0.034942626953125,
0.0094757080078125,
0.0108489990234375,
0.038787841796875,
0.032958984375,
0.022705078125,
0.0240631103515625,
0.02490234375,
-0.045440673828125,
-0.0031948089599609375,
0.005229949951171875,
0.022308349609375,
-0.0272064208984375,
-0.03155517578125,
-0.001194000244140625,
0.02850341796875,
-0.0289306640625,
0.022552490234375,
0.0272064208984375,
0.0211181640625,
0.0007004737854003906,
0.0291290283203125,
-0.016998291015625,
-0.0408935546875,
-0.0401611328125,
0.02362060546875,
0.0295257568359375,
-0.020721435546875,
0.05389404296875,
-0.0160980224609375,
0.0036678314208984375,
0.0203704833984375,
0.0784912109375,
-0.0211944580078125,
0.059112548828125,
0.00962066650390625,
0.04693603515625,
0.0241546630859375
] |
3cc27c2d2d62cc897b4d4bfc2aea1f033378e30d
|
Wordpress Stackexchange
Q: Who owns the content posted on .wordpress.com blogs? If I sign up for a Wordpress blog that is hosted for free by Wordpress here, who will own the content I post, and how much storage will I have? I know I could ask their customer support, but I don't trust companies (their lawyers specifically).
A: From the TOS:
By submitting Content to Automattic for inclusion on your Website, you grant Automattic a world-wide, royalty-free, and non-exclusive license to reproduce, modify, adapt and publish the Content solely for the purpose of displaying, distributing and promoting your blog. If you delete Content, Automattic will use reasonable efforts to remove it from the Website, but you acknowledge that caching or references to the Content may not be made immediately unavailable.
It means that you own it but they have full rights.
|
Q: Who owns the content posted on .wordpress.com blogs? If I sign up for a Wordpress blog that is hosted for free by Wordpress here, who will own the content I post, and how much storage will I have? I know I could ask their customer support, but I don't trust companies (their lawyers specifically).
A: From the TOS:
By submitting Content to Automattic for inclusion on your Website, you grant Automattic a world-wide, royalty-free, and non-exclusive license to reproduce, modify, adapt and publish the Content solely for the purpose of displaying, distributing and promoting your blog. If you delete Content, Automattic will use reasonable efforts to remove it from the Website, but you acknowledge that caching or references to the Content may not be made immediately unavailable.
It means that you own it but they have full rights.
A: For storage: you can upload up to 3 gigabytes of attachments for free, and can pay for upgrades after that. I think post content has no limit (and it would be very hard to reach 3 gigabytes with post content alone).
|
wordpress
|
{
"language": "en",
"length": 181,
"provenance": "stackexchange_00019.jsonl.gz:408912",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15645"
}
|
[
-0.0003383159637451172,
-0.0015239715576171875,
0.00783538818359375,
0.01611328125,
-0.003559112548828125,
-0.0184173583984375,
0.01373291015625,
-0.0469970703125,
-0.0252227783203125,
-0.0012559890747070312,
-0.03173828125,
0.01548004150390625,
-0.0255889892578125,
-0.034149169921875,
0.044342041015625,
-0.054351806640625,
0.032501220703125,
-0.022247314453125,
0.04180908203125,
0.0212249755859375,
-0.01140594482421875,
0.030303955078125,
0.06402587890625,
-0.04656982421875,
0.0460205078125,
0.0124664306640625,
0.00867462158203125,
-0.00450897216796875,
0.03729248046875,
0.007534027099609375,
0.031463623046875,
-0.0517578125,
0.0261077880859375,
-0.013763427734375,
0.0022296905517578125,
-0.002979278564453125,
-0.0126800537109375,
0.0037078857421875,
0.00640869140625,
0.0221099853515625,
0.0005078315734863281,
-0.0153656005859375,
0.01436614990234375,
-0.005680084228515625,
-0.002681732177734375,
-0.0185394287109375,
0.006702423095703125,
-0.051025390625,
0.01116180419921875,
0.0182037353515625,
0.019805908203125,
-0.011260986328125,
0.03448486328125,
0.01617431640625,
-0.0015926361083984375,
-0.01111602783203125,
0.058990478515625,
-0.0176239013671875,
0.05426025390625,
-0.08380126953125,
-0.063720703125,
-0.01236724853515625,
0.057403564453125,
0.01076507568359375,
0.007373809814453125,
0.0201416015625,
0.04425048828125,
0.006740570068359375,
-0.0743408203125,
-0.038177490234375,
0.0182342529296875,
-0.043182373046875,
0.00014400482177734375,
0.005767822265625,
-0.0289459228515625,
-0.006534576416015625,
0.0108642578125,
-0.0211181640625,
0.033111572265625,
0.0011844635009765625,
0.035552978515625,
0.016357421875,
0.00495147705078125,
-0.0155181884765625,
-0.002605438232421875,
-0.0068359375,
-0.0124969482421875,
-0.017425537109375,
-0.02825927734375,
-0.0229034423828125,
-0.0108184814453125,
-0.0252838134765625,
-0.047332763671875,
0.00576019287109375,
0.0005812644958496094,
-0.02099609375,
0.042572021484375,
0.0865478515625,
-0.02337646484375,
0.01251983642578125,
-0.0108642578125,
-0.0360107421875,
0.0111846923828125,
-0.04608154296875,
0.007518768310546875,
0.027740478515625,
-0.0171661376953125,
-0.049835205078125,
0.01163482666015625,
0.01367950439453125,
-0.0146331787109375,
-0.01605224609375,
0.030364990234375,
-0.0192108154296875,
0.00011336803436279297,
0.0102386474609375,
-0.0067291259765625,
0.056488037109375,
0.0072021484375,
0.0611572265625,
-0.03826904296875,
-0.0167388916015625,
-0.00801849365234375,
-0.017242431640625,
0.0229339599609375,
0.00225830078125,
-0.00048804283142089844,
0.010833740234375,
-0.0260162353515625,
0.06292724609375,
0.0017824172973632812,
-0.005863189697265625,
-0.0015096664428710938,
0.006732940673828125,
-0.033447265625,
-0.0292816162109375,
-0.03253173828125,
-0.01561737060546875,
-0.041168212890625,
0.0147552490234375,
-0.024658203125,
-0.0224456787109375,
0.027587890625,
-0.04095458984375,
0.010711669921875,
0.0240631103515625,
0.0276031494140625,
0.013519287109375,
-0.0028514862060546875,
-0.020233154296875,
0.002857208251953125,
-0.004436492919921875,
0.0198822021484375,
0.00325775146484375,
0.017425537109375,
-0.039306640625,
0.05731201171875,
-0.050628662109375,
0.00888824462890625,
-0.047698974609375,
0.05511474609375,
0.01146697998046875,
0.00992584228515625,
0.0160369873046875,
-0.01410675048828125,
-0.040191650390625,
-0.036529541015625,
-0.007526397705078125,
0.0284881591796875,
-0.0173187255859375,
-0.01235198974609375,
-0.036590576171875,
-0.0040130615234375,
0.022857666015625,
0.01666259765625,
0.053497314453125,
0.00496673583984375,
-0.009033203125,
0.0128631591796875,
0.0426025390625,
-0.00323486328125,
-0.0125885009765625,
0.061431884765625,
-0.009307861328125,
-0.0191650390625,
-0.049102783203125,
0.0181427001953125,
0.0225372314453125,
0.0205841064453125,
0.037811279296875,
0.01397705078125,
-0.01788330078125,
-0.0007157325744628906,
0.06781005859375,
-0.011474609375,
-0.039337158203125,
-0.0187225341796875,
0.03680419921875,
-0.0279083251953125,
-0.05206298828125,
0.04376220703125,
-0.0228729248046875,
0.0304718017578125,
-0.0180511474609375,
-0.0261077880859375,
-0.01287078857421875,
-0.00794219970703125,
0.000518798828125,
0.006500244140625,
0.0362548828125,
0.0024566650390625,
-0.01390838623046875,
0.0170745849609375,
-0.0175628662109375,
-0.00696563720703125,
-0.0148162841796875,
-0.0002644062042236328,
0.040924072265625,
0.01397705078125,
0.02117919921875,
0.02288818359375,
-0.0115509033203125,
0.0037994384765625,
0.01468658447265625,
0.048736572265625,
-0.034881591796875,
-0.01309967041015625,
-0.038330078125,
0.0151824951171875,
-0.006195068359375,
-0.0416259765625,
0.05340576171875,
-0.00897979736328125,
-0.02166748046875,
-0.041046142578125,
-0.016876220703125,
-0.0318603515625,
-0.09344482421875,
0.0214691162109375,
0.07684326171875,
0.01763916015625,
0.00501251220703125,
-0.0016021728515625,
0.044097900390625,
0.052337646484375,
0.0179290771484375,
0.0277862548828125,
0.02020263671875,
0.01849365234375,
0.0694580078125,
-0.017242431640625,
-0.016082763671875,
0.004955291748046875,
0.0014448165893554688,
-0.0157318115234375,
0.0216217041015625,
-0.0350341796875,
-0.017181396484375,
0.01294708251953125,
-0.016021728515625,
0.005352020263671875,
-0.05322265625,
-0.01392364501953125,
-0.0291595458984375,
0.0205230712890625,
0.027587890625,
0.039459228515625,
0.04559326171875,
-0.0196380615234375,
0.013092041015625,
0.003940582275390625,
0.0165863037109375,
0.020050048828125,
0.035247802734375,
0.03564453125,
0.0265960693359375,
-0.01192474365234375,
-0.029388427734375,
0.0264434814453125,
0.033660888671875,
-0.0109100341796875,
-0.034912109375,
-0.0298004150390625,
-0.00460052490234375,
0.033660888671875,
-0.038726806640625,
0.01335906982421875,
0.00951385498046875,
-0.01145172119140625,
-0.05072021484375,
-0.01666259765625,
0.01910400390625,
-0.03289794921875,
0.04833984375,
0.0543212890625,
-0.038909912109375,
-0.0026149749755859375,
-0.0299835205078125,
0.034454345703125,
-0.036865234375,
0.034820556640625,
0.06549072265625,
0.003936767578125,
-0.00852203369140625,
0.02215576171875,
0.0289306640625,
0.05029296875,
-0.00811767578125,
0.0009632110595703125,
0.0811767578125,
-0.1346435546875,
-0.017120361328125,
0.017333984375,
0.0260772705078125,
-0.0259552001953125,
-0.0513916015625,
-0.024017333984375,
-0.0030612945556640625,
-0.11285400390625,
-0.07373046875,
0.04345703125,
-0.05865478515625,
-0.00989532470703125,
-0.0275726318359375,
-0.03900146484375,
-0.027099609375,
0.010162353515625,
-0.0101470947265625,
-0.0275421142578125,
0.0160980224609375,
-0.059356689453125,
-0.035675048828125,
-0.05938720703125,
0.016204833984375,
-0.0287628173828125,
0.0224456787109375,
0.0006012916564941406,
0.044036865234375,
-0.0120086669921875,
-0.0889892578125,
-0.01422119140625,
0.049468994140625,
-0.01091766357421875,
0.0184326171875,
-0.0141448974609375,
0.0083465576171875,
-0.031097412109375,
0.01439666748046875,
-0.0086212158203125,
-0.004650115966796875,
0.0008020401000976562,
-0.0024814605712890625,
-0.00963592529296875,
0.001194000244140625,
0.033294677734375,
-0.0418701171875,
-0.01136016845703125,
0.0200042724609375,
0.006313323974609375,
-0.036407470703125,
-0.00868988037109375,
0.022064208984375,
-0.0237579345703125,
-0.044647216796875,
0.0098419189453125,
-0.02740478515625,
-0.006351470947265625,
-0.0174560546875,
-0.012786865234375,
0.026397705078125,
-0.01800537109375,
-0.0009531974792480469,
0.029205322265625,
-0.0109405517578125,
-0.0360107421875,
0.0083160400390625,
0.012176513671875,
-0.029541015625,
0.039398193359375,
0.0010843276977539062,
0.005603790283203125,
-0.01427459716796875,
0.035369873046875,
-0.033294677734375,
-0.0218963623046875,
0.013885498046875,
-0.0105438232421875,
0.0347900390625,
-0.0203857421875,
-0.033203125,
-0.0006022453308105469,
0.10400390625,
0.00928497314453125,
-0.00690460205078125,
-0.0171661376953125,
-0.006816864013671875,
-0.048980712890625,
-0.00894927978515625,
-0.045257568359375,
0.019134521484375,
0.007663726806640625,
0.00909423828125,
-0.01140594482421875,
-0.003620147705078125,
-0.0031147003173828125,
-0.0285797119140625,
0.00897979736328125,
-0.013702392578125,
0.027069091796875,
-0.073486328125,
0.0797119140625,
-0.043182373046875,
0.056640625,
-0.06427001953125,
0.0113677978515625,
-0.06878662109375,
-0.0311279296875,
-0.0084381103515625,
0.017059326171875,
0.016265869140625,
-0.00392913818359375,
-0.00838470458984375,
-0.002635955810546875,
0.034454345703125,
0.00214385986328125,
0.0150299072265625,
-0.0261688232421875,
-0.0006475448608398438,
-0.033233642578125,
-0.029388427734375,
-0.0209503173828125,
-0.036224365234375,
-0.0178375244140625,
-0.024749755859375,
-0.040863037109375,
-0.0115509033203125,
-0.004550933837890625,
0.0187835693359375,
0.022705078125,
0.005062103271484375,
-0.00870513916015625,
0.0074615478515625,
-0.001983642578125,
0.042755126953125,
-0.0117034912109375,
0.00695037841796875,
-0.002964019775390625,
-0.036163330078125,
0.0546875,
-0.00041556358337402344,
0.00182342529296875,
0.01166534423828125,
0.08685302734375,
0.005558013916015625,
-0.01404571533203125,
-0.0928955078125,
0.0064239501953125,
0.044097900390625,
0.01364898681640625,
0.04425048828125,
0.06072998046875,
-0.0153961181640625,
0.02685546875,
0.04266357421875,
-0.0186004638671875,
0.0175628662109375,
0.03143310546875,
0.017120361328125,
-0.000002205371856689453,
-0.016387939453125,
-0.001995086669921875,
0.006824493408203125,
-0.0115814208984375,
-0.0265960693359375,
0.023284912109375,
0.0022449493408203125,
0.01105499267578125,
-0.014434814453125,
0.02899169921875,
-0.019287109375,
-0.0150909423828125,
0.01336669921875,
-0.018890380859375,
0.032684326171875,
-0.0038299560546875,
0.00408172607421875,
-0.01503753662109375,
-0.00205230712890625,
-0.030426025390625,
-0.043487548828125,
-0.061492919921875,
0.01605224609375,
-0.004940032958984375,
-0.0235137939453125,
-0.01390838623046875,
-0.00921630859375,
-0.0017642974853515625,
0.037017822265625,
-0.024505615234375,
-0.08148193359375,
-0.01068115234375,
0.0030384063720703125,
0.051910400390625,
0.058868408203125,
-0.0035953521728515625,
0.038848876953125,
0.0362548828125,
-0.004505157470703125,
-0.01276397705078125,
-0.0091094970703125,
0.03399658203125,
-0.038543701171875,
0.00044536590576171875,
0.003849029541015625,
-0.0254974365234375,
0.032470703125,
-0.0214996337890625,
-0.01221466064453125,
-0.007232666015625,
-0.00984954833984375,
0.056884765625,
0.04730224609375,
0.01380157470703125,
0.00437164306640625,
0.00417327880859375,
-0.023773193359375,
0.006816864013671875,
-0.02410888671875,
-0.0396728515625,
0.01488494873046875,
-0.0010166168212890625,
0.064208984375,
0.0084228515625,
-0.034332275390625,
0.00873565673828125,
-0.05194091796875,
0.0110321044921875,
-0.030029296875,
-0.03350830078125,
-0.002109527587890625,
0.034027099609375,
-0.0014190673828125,
-0.028411865234375,
-0.00954437255859375,
0.00897979736328125,
-0.05413818359375,
-0.00641632080078125,
0.0192718505859375,
0.0125732421875,
0.01065826416015625,
-0.0019063949584960938,
-0.0185699462890625,
0.06329345703125,
0.00521087646484375,
-0.00970458984375,
-0.066162109375,
-0.01389312744140625,
-0.031646728515625,
0.01812744140625,
0.078369140625,
-0.03131103515625,
0.03564453125,
-0.05792236328125,
0.018280029296875,
-0.052520751953125,
0.0166473388671875,
0.031982421875,
0.034698486328125,
-0.041290283203125,
0.0036029815673828125,
-0.031890869140625,
-0.029296875,
0.0181121826171875,
-0.0111846923828125,
-0.04364013671875,
-0.0143280029296875,
-0.00841522216796875,
0.0208587646484375,
-0.032379150390625,
-0.0362548828125,
-0.0295562744140625,
0.01371002197265625,
0.0290985107421875,
0.05218505859375,
-0.01068115234375,
0.028594970703125,
0.01329803466796875,
0.029541015625,
0.01529693603515625,
0.023834228515625,
-0.00042319297790527344,
-0.0241851806640625,
0.01561737060546875,
-0.046661376953125,
-0.037353515625,
-0.0099639892578125,
-0.03350830078125,
0.050811767578125,
0.051025390625,
-0.00916290283203125,
-0.0015869140625,
-0.0303497314453125,
-0.0084228515625,
-0.0099945068359375,
0.0286865234375,
-0.016448974609375,
-0.01031494140625,
-0.0020427703857421875,
-0.01319122314453125,
0.049896240234375,
0.0034847259521484375,
-0.0097198486328125,
0.01308441162109375,
-0.01314544677734375,
0.01727294921875,
0.0340576171875,
0.005168914794921875,
0.0308074951171875,
0.036834716796875,
0.0008878707885742188,
0.04290771484375,
0.051239013671875,
0.0157623291015625,
-0.007579803466796875,
0.02435302734375,
-0.068115234375,
-0.06207275390625,
-0.018951416015625,
0.000022292137145996094,
-0.010406494140625,
0.007419586181640625,
-0.00518798828125,
-0.0006527900695800781,
0.05755615234375,
0.06976318359375,
-0.032958984375,
-0.017852783203125,
0.001354217529296875,
-0.042694091796875,
0.005565643310546875,
0.0178985595703125,
-0.00989532470703125,
0.0211029052734375,
-0.0166778564453125,
-0.03173828125,
-0.026275634765625,
0.0032787322998046875,
0.0040283203125,
-0.0124969482421875,
0.044891357421875,
-0.00196075439453125,
0.0164031982421875,
-0.048675537109375,
-0.006683349609375,
0.03411865234375,
0.008514404296875,
-0.01406097412109375,
-0.0228424072265625,
0.04266357421875,
0.0026035308837890625,
-0.03302001953125,
0.053436279296875,
-0.0654296875,
0.0228424072265625,
-0.0022983551025390625,
0.0266265869140625,
-0.01482391357421875,
0.048919677734375,
-0.043731689453125,
0.045654296875,
0.0189666748046875,
0.041473388671875,
0.0113677978515625,
-0.048095703125,
0.04290771484375,
0.07489013671875,
-0.051513671875,
0.0460205078125,
0.044769287109375,
-0.0516357421875,
0.005916595458984375,
-0.04693603515625,
0.09515380859375,
-0.07958984375,
0.01045989990234375,
0.0189971923828125,
-0.018402099609375,
-0.003662109375,
-0.01448822021484375,
0.04205322265625,
-0.049407958984375,
-0.0010862350463867188,
-0.0007061958312988281,
0.00475311279296875,
-0.00006288290023803711,
-0.01006317138671875,
-0.0665283203125,
0.07421875,
0.022674560546875,
0.0164337158203125,
-0.005207061767578125,
0.0246734619140625,
-0.02142333984375,
-0.004123687744140625,
-0.0310211181640625,
0.0296478271484375,
-0.00716400146484375,
0.004512786865234375,
-0.032562255859375,
0.004596710205078125,
-0.01251220703125,
0.0198516845703125,
0.067626953125,
0.0174713134765625,
-0.033050537109375,
-0.039642333984375,
-0.00972747802734375,
-0.003932952880859375,
-0.0296173095703125,
0.061859130859375,
-0.002719879150390625,
0.051727294921875,
-0.00614166259765625,
-0.076171875,
0.00844573974609375,
-0.019378662109375,
-0.0192718505859375,
0.0299835205078125,
-0.00159454345703125,
-0.0034885406494140625,
0.027618408203125,
0.021759033203125,
-0.0013952255249023438,
0.0248870849609375,
0.002513885498046875,
0.00511932373046875,
0.0239715576171875,
0.0224609375,
0.04180908203125,
-0.05792236328125,
0.007099151611328125,
-0.0266265869140625,
0.050628662109375,
-0.01081085205078125,
0.020263671875,
0.0261383056640625,
0.035614013671875,
-0.01357269287109375,
-0.0106048583984375,
0.011932373046875,
0.029052734375,
-0.0606689453125,
0.01213836669921875,
0.06646728515625,
0.05712890625,
0.0124664306640625,
-0.03857421875,
0.032562255859375,
0.045562744140625,
0.010711669921875,
-0.003276824951171875,
0.0186004638671875,
0.019775390625,
-0.006526947021484375,
-0.03564453125,
-0.0159149169921875,
-0.0653076171875,
-0.020721435546875,
0.01372528076171875,
-0.0067138671875,
0.0128326416015625,
-0.019683837890625,
0.022369384765625,
0.0738525390625,
-0.0012636184692382812,
-0.0028667449951171875,
-0.0012969970703125,
-0.026275634765625,
0.0021820068359375,
0.023651123046875,
0.0092926025390625,
0.0523681640625,
-0.021087646484375,
-0.01099395751953125,
-0.034759521484375,
0.060089111328125,
0.03857421875,
-0.0003681182861328125,
-0.06671142578125,
-0.061248779296875,
0.04937744140625,
0.04296875,
-0.01290130615234375,
-0.0576171875,
0.020599365234375,
0.06439208984375,
-0.053955078125,
-0.038116455078125,
0.01340484619140625,
-0.006866455078125,
0.049407958984375,
-0.0211029052734375,
-0.03411865234375,
-0.01015472412109375,
-0.0506591796875,
-0.011627197265625,
-0.033599853515625,
0.04486083984375,
-0.0209503173828125,
0.0265350341796875,
0.0041351318359375,
-0.007778167724609375,
0.0039005279541015625,
-0.01470184326171875,
-0.0214385986328125,
-0.0223541259765625,
-0.03497314453125,
0.0173797607421875,
-0.046295166015625,
-0.022979736328125,
0.0012083053588867188,
0.0220947265625,
-0.003253936767578125,
-0.00345611572265625,
-0.0199432373046875,
-0.01129150390625,
0.02227783203125,
-0.0006999969482421875,
-0.004695892333984375,
0.038787841796875,
0.032440185546875,
-0.0023593902587890625,
-0.042022705078125,
-0.0191497802734375,
-0.01471710205078125,
0.042755126953125,
0.0008702278137207031,
0.08441162109375,
-0.0174102783203125,
0.02362060546875,
-0.0322265625,
0.01519012451171875,
-0.035491943359375,
-0.025634765625,
0.01953125,
0.0079498291015625,
-0.027679443359375,
-0.0000368952751159668,
-0.053375244140625,
0.00865936279296875,
0.02215576171875,
-0.0289306640625,
0.062408447265625,
-0.0419921875,
-0.0006871223449707031,
-0.044525146484375,
0.04083251953125,
-0.0306243896484375,
-0.00934600830078125,
-0.00675201416015625,
-0.0047760009765625,
0.01415252685546875,
-0.004032135009765625,
0.006031036376953125,
0.050048828125,
-0.0357666015625,
-0.034027099609375,
0.0228271484375,
-0.07232666015625,
0.020111083984375,
0.001857757568359375,
0.022735595703125,
-0.05010986328125,
0.0195159912109375,
-0.0089263916015625,
-0.0101318359375,
0.01389312744140625,
0.0261383056640625,
0.0253753662109375,
-0.03643798828125,
-0.01422882080078125,
0.004978179931640625,
0.0101776123046875,
-0.0213470458984375,
0.01468658447265625,
0.0000324249267578125,
0.0081024169921875,
0.0115509033203125,
-0.01433563232421875,
-0.000007987022399902344,
-0.0030498504638671875,
-0.0249786376953125,
-0.0010128021240234375,
-0.00951385498046875,
-0.03033447265625,
-0.0267791748046875,
0.006877899169921875,
0.0322265625,
-0.017303466796875,
-0.0272216796875,
0.015472412109375,
-0.032958984375,
0.037200927734375,
-0.01177978515625,
0.03997802734375,
-0.026580810546875,
-0.00859832763671875,
-0.04742431640625,
-0.016937255859375,
-0.036102294921875,
0.0345458984375,
-0.020294189453125,
0.03533935546875,
0.04437255859375,
-0.0247650146484375,
0.0090179443359375,
0.023223876953125,
0.023956298828125,
0.068115234375,
-0.024169921875,
-0.01490020751953125,
0.04547119140625,
-0.023773193359375,
0.00974273681640625,
-0.0253448486328125,
-0.0212554931640625,
-0.0194549560546875,
-0.0029888153076171875,
-0.040802001953125,
0.048828125,
0.045013427734375,
0.00821685791015625,
0.0311431884765625,
-0.04681396484375,
0.01522064208984375,
-0.0211639404296875,
0.0029888153076171875,
-0.0022907257080078125,
-0.0008397102355957031,
0.023834228515625,
0.00417327880859375,
-0.00701141357421875,
-0.0308990478515625,
-0.00933837890625,
-0.01119232177734375,
0.06817626953125,
-0.0155181884765625,
-0.0010309219360351562,
-0.0084075927734375,
0.00627899169921875,
-0.00583648681640625,
-0.003925323486328125,
0.032623291015625,
0.01244354248046875,
0.0274810791015625,
0.047393798828125,
-0.0251922607421875,
-0.0259857177734375,
-0.00965118408203125,
-0.03253173828125,
0.0096435546875,
-0.043792724609375,
-0.015777587890625,
-0.019500732421875,
0.042327880859375,
0.01210784912109375,
0.0035533905029296875,
-0.0290679931640625,
0.003116607666015625,
-0.039581298828125,
-0.0682373046875,
-0.01470947265625,
0.024688720703125,
-0.039459228515625,
0.027374267578125,
-0.0027294158935546875,
-0.052337646484375,
-0.037139892578125,
-0.0214691162109375,
-0.09735107421875,
0.01294708251953125,
-0.044189453125,
0.007568359375,
0.0014715194702148438,
-0.035430908203125,
0.0280303955078125,
-0.00850677490234375,
0.03204345703125,
-0.01009368896484375,
0.01299285888671875,
0.0269775390625,
0.046142578125,
0.02105712890625,
-0.01739501953125,
-0.0296478271484375,
0.0107421875,
0.0009226799011230469,
0.044281005859375,
-0.028533935546875,
-0.045166015625,
-0.0261993408203125,
0.0269622802734375,
0.00757598876953125,
0.037384033203125,
-0.011199951171875,
0.007587432861328125,
0.0033588409423828125,
-0.0169830322265625,
0.0174713134765625,
-0.06671142578125,
0.0075836181640625,
0.0374755859375,
-0.034942626953125,
-0.03289794921875,
0.0021839141845703125,
-0.092041015625,
0.00829315185546875,
-0.00360870361328125,
0.01381683349609375,
-0.0281982421875,
0.00893402099609375,
-0.037109375,
-0.01137542724609375,
0.007495880126953125
] |
d0f3da08aca913cb48db03237b5ffa8c24ae6745
|
Wordpress Stackexchange
Q: Add a Jquery Datepicker to custom field in post edit I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure how to go about adding something like this. I haven't had much luck with plugins, so I would like to know how one would go about adding something like this manually. I am familiar with PHP.
A: Since you are new to WordPress I would suggest using Meta Box Script for WordPress which provides an easy way of adding your custom fields to the post edit panel and its main features are:
*
*Support various field types, including: text, textarea, checkbox, checkbox list, radio box, select, wysiwyg, file, image, date, time, color. Developers can easily add more types by extending the script.
*Allow to create multiple meta boxes.
*Written in OOP, allow developers easily extend the script.
*Work with custom post types. Each meta box can be defined for many custom post types.
|
Q: Add a Jquery Datepicker to custom field in post edit I would like to add a custom field that is set by a jquery datepicker ui in the post edit panel. Im new to wordpress, so Im not sure how to go about adding something like this. I haven't had much luck with plugins, so I would like to know how one would go about adding something like this manually. I am familiar with PHP.
A: Since you are new to WordPress I would suggest using Meta Box Script for WordPress which provides an easy way of adding your custom fields to the post edit panel and its main features are:
*
*Support various field types, including: text, textarea, checkbox, checkbox list, radio box, select, wysiwyg, file, image, date, time, color. Developers can easily add more types by extending the script.
*Allow to create multiple meta boxes.
*Written in OOP, allow developers easily extend the script.
*Work with custom post types. Each meta box can be defined for many custom post types.
A: WordPress 3.5+
You can now simply use
wp_enqueue_script( 'jquery-ui-datepicker' );
as it is bundled with core.
A: I know you have already accepted an answer but I add this for others that are maybe a bit more advanced are creating their own meta boxes. Below is the code I used in a recent project to enable a date picker on a field in a custom post type. Feel free to amend for your needs:
functions file:
// Register datepicker ui for properties
function admin_homes_for_sale_javascript(){
global $post;
if($post->post_type == 'homes-for-sale' && is_admin()) {
wp_enqueue_script('jquery-ui-datepicker', WP_CONTENT_URL . '/themes/philosophy/js/jquery-ui-datepicker.min.js');
}
}
add_action('admin_print_scripts', 'admin_homes_for_sale_javascript');
// Register ui styles for properties
function admin_homes_for_sale_styles(){
global $post;
if($post->post_type == 'homes-for-sale' && is_admin()) {
wp_enqueue_style('jquery-ui', WP_CONTENT_URL . '/themes/philosophy/css/jquery-ui-1.8.11.custom.css');
}
}
add_action('admin_print_styles', 'admin_homes_for_sale_styles');
Then code inline with meta box that has the date picker in:
<script>jQuery(document).ready(function(){jQuery( "input[name='chb_homes_for_sale_specifics_dateavail']" ).datepicker({ dateFormat: 'DD, d MM, yy', numberOfMonths: 3 }); jQuery( "#ui-datepicker-div" ).hide();});</script>
|
wordpress
|
{
"language": "en",
"length": 324,
"provenance": "stackexchange_00019.jsonl.gz:408916",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15656"
}
|
[
0.030731201171875,
0.00958251953125,
-0.039581298828125,
-0.04339599609375,
0.019775390625,
-0.0280303955078125,
0.0184478759765625,
-0.00177001953125,
-0.0292816162109375,
-0.01329803466796875,
0.00785064697265625,
-0.010467529296875,
-0.045806884765625,
-0.047027587890625,
0.0171966552734375,
-0.047149658203125,
0.0272216796875,
-0.056396484375,
-0.0014438629150390625,
-0.0252838134765625,
0.0223846435546875,
-0.01398468017578125,
0.0227813720703125,
0.027008056640625,
0.035369873046875,
0.041229248046875,
0.0025634765625,
0.00025725364685058594,
0.048309326171875,
0.03387451171875,
0.03143310546875,
-0.0872802734375,
0.01068115234375,
0.0023899078369140625,
0.02142333984375,
0.0240936279296875,
0.0188751220703125,
0.00565338134765625,
0.0204315185546875,
0.0196990966796875,
0.027618408203125,
-0.01535797119140625,
-0.0361328125,
0.04534912109375,
-0.041259765625,
-0.045166015625,
0.0299530029296875,
-0.01088714599609375,
0.017059326171875,
-0.033050537109375,
-0.024200439453125,
-0.02984619140625,
0.0017156600952148438,
-0.06341552734375,
-0.025146484375,
-0.03399658203125,
-0.0177154541015625,
-0.01300811767578125,
0.03411865234375,
0.039794921875,
-0.01071929931640625,
-0.020172119140625,
0.002017974853515625,
-0.03497314453125,
-0.00695037841796875,
-0.007266998291015625,
-0.0159912109375,
0.00708770751953125,
-0.032440185546875,
-0.01120758056640625,
0.0306549072265625,
-0.0369873046875,
0.00704193115234375,
-0.0426025390625,
0.03912353515625,
0.01910400390625,
-0.0234832763671875,
-0.00502777099609375,
0.01010894775390625,
0.01038360595703125,
0.032012939453125,
0.01837158203125,
0.00853729248046875,
-0.04132080078125,
0.03271484375,
-0.025177001953125,
-0.005413055419921875,
-0.01363372802734375,
-0.04638671875,
-0.047882080078125,
-0.026336669921875,
-0.063232421875,
-0.10418701171875,
0.0212249755859375,
0.030303955078125,
-0.0270843505859375,
0.01541900634765625,
0.01538848876953125,
-0.0036182403564453125,
-0.00403594970703125,
0.01641845703125,
-0.0260009765625,
0.004932403564453125,
-0.0028972625732421875,
-0.0187530517578125,
0.039398193359375,
0.01551055908203125,
0.0237884521484375,
0.0033245086669921875,
0.01056671142578125,
-0.010650634765625,
-0.0201416015625,
0.0178375244140625,
0.01187896728515625,
-0.0382080078125,
-0.0103302001953125,
0.0009150505065917969,
-0.0206451416015625,
-0.0161895751953125,
-0.016845703125,
0.00652313232421875,
-0.0006694793701171875,
-0.021453857421875,
-0.034423828125,
0.023529052734375,
-0.024749755859375,
-0.048187255859375,
0.039886474609375,
-0.0189971923828125,
-0.01413726806640625,
-0.04339599609375,
0.034271240234375,
0.08538818359375,
0.0565185546875,
0.0270843505859375,
-0.00438690185546875,
0.06024169921875,
-0.053985595703125,
-0.0086517333984375,
0.025360107421875,
-0.0178680419921875,
-0.004711151123046875,
0.01739501953125,
-0.034423828125,
-0.032073974609375,
0.021942138671875,
0.004535675048828125,
0.00856781005859375,
0.0008630752563476562,
-0.042633056640625,
-0.0145416259765625,
-0.0186309814453125,
0.0301055908203125,
0.0213775634765625,
-0.0177154541015625,
-0.0000959634780883789,
0.042572021484375,
-0.0255889892578125,
-0.0259552001953125,
-0.0379638671875,
0.0323486328125,
0.00463104248046875,
-0.0141448974609375,
-0.032806396484375,
-0.037567138671875,
-0.0202789306640625,
-0.034698486328125,
0.004878997802734375,
0.0289764404296875,
-0.0129241943359375,
0.00994110107421875,
-0.00882720947265625,
0.024322509765625,
-0.003040313720703125,
-0.01143646240234375,
0.00501251220703125,
0.020477294921875,
0.038482666015625,
-0.0025768280029296875,
0.021087646484375,
0.004779815673828125,
-0.0416259765625,
0.05096435546875,
-0.024749755859375,
-0.032623291015625,
0.01049041748046875,
0.002796173095703125,
0.0255889892578125,
0.0189971923828125,
0.01241302490234375,
0.0072021484375,
0.0176239013671875,
0.00127410888671875,
-0.0306854248046875,
-0.005443572998046875,
0.0031452178955078125,
-0.0206756591796875,
-0.0017766952514648438,
-0.0182342529296875,
0.02777099609375,
-0.0286865234375,
0.0090484619140625,
-0.01861572265625,
0.0168609619140625,
-0.01465606689453125,
-0.0020122528076171875,
-0.007354736328125,
0.0225982666015625,
-0.01117706298828125,
-0.0161590576171875,
0.025390625,
-0.027923583984375,
-0.01100921630859375,
0.0013570785522460938,
-0.03466796875,
0.01116180419921875,
0.0035152435302734375,
0.049102783203125,
-0.00528717041015625,
0.00032401084899902344,
0.00783538818359375,
-0.0614013671875,
0.0169830322265625,
0.03472900390625,
0.040924072265625,
-0.00368499755859375,
-0.00800323486328125,
-0.03070068359375,
0.034759521484375,
0.01422882080078125,
-0.0284881591796875,
0.023590087890625,
0.0217437744140625,
-0.01467132568359375,
-0.04803466796875,
-0.002471923828125,
-0.0176849365234375,
-0.06463623046875,
-0.004192352294921875,
0.060455322265625,
0.0113067626953125,
0.05316162109375,
0.006290435791015625,
0.025146484375,
0.03521728515625,
-0.0188446044921875,
0.00965118408203125,
-0.00435638427734375,
-0.003093719482421875,
0.02764892578125,
-0.0180511474609375,
-0.007495880126953125,
0.023956298828125,
-0.04730224609375,
-0.00945281982421875,
0.0430908203125,
-0.015960693359375,
-0.0037899017333984375,
0.005435943603515625,
-0.00807952880859375,
-0.0016880035400390625,
-0.053314208984375,
-0.036102294921875,
-0.0303955078125,
0.0689697265625,
0.0146026611328125,
0.07550048828125,
0.05499267578125,
-0.0164642333984375,
0.01242828369140625,
-0.0110626220703125,
-0.037628173828125,
0.004009246826171875,
0.0014638900756835938,
-0.0307769775390625,
0.0302886962890625,
-0.0093536376953125,
-0.004184722900390625,
0.022705078125,
0.00449371337890625,
-0.0207977294921875,
-0.0131988525390625,
-0.01351165771484375,
-0.01236724853515625,
0.032257080078125,
-0.040008544921875,
0.0168914794921875,
-0.0286712646484375,
0.030609130859375,
-0.007381439208984375,
0.035369873046875,
-0.02587890625,
-0.0298004150390625,
0.0235137939453125,
0.01554107666015625,
-0.06512451171875,
0.021453857421875,
-0.026336669921875,
0.04376220703125,
-0.034393310546875,
-0.003299713134765625,
0.041290283203125,
-0.0291290283203125,
0.021453857421875,
-0.001483917236328125,
-0.00875091552734375,
-0.005672454833984375,
0.006511688232421875,
-0.01010894775390625,
-0.01471710205078125,
-0.05743408203125,
-0.00444793701171875,
0.030975341796875,
0.0112152099609375,
0.0267181396484375,
-0.01274871826171875,
0.0107269287109375,
0.022918701171875,
-0.033538818359375,
-0.07177734375,
-0.02581787109375,
-0.08917236328125,
-0.01554107666015625,
0.0011606216430664062,
-0.049774169921875,
0.0196533203125,
0.03668212890625,
0.0189208984375,
-0.05072021484375,
-0.00658416748046875,
-0.0047149658203125,
-0.03826904296875,
-0.0421142578125,
-0.038726806640625,
-0.006214141845703125,
0.0081939697265625,
-0.004375457763671875,
0.0679931640625,
-0.011932373046875,
-0.08001708984375,
-0.038726806640625,
0.00389862060546875,
0.006259918212890625,
0.00978851318359375,
0.03472900390625,
-0.0209808349609375,
0.007144927978515625,
0.0158233642578125,
0.0157012939453125,
0.0235137939453125,
-0.043609619140625,
-0.03948974609375,
-0.0380859375,
0.0086669921875,
-0.037872314453125,
0.057464599609375,
0.057952880859375,
-0.00041556358337402344,
-0.0008978843688964844,
-0.04766845703125,
0.03350830078125,
0.0089263916015625,
0.0294189453125,
0.0113677978515625,
-0.041046142578125,
-0.03643798828125,
-0.00984954833984375,
0.03961181640625,
0.01389312744140625,
-0.0016202926635742188,
0.045928955078125,
-0.0264892578125,
0.0350341796875,
0.0045623779296875,
0.00569915771484375,
-0.04864501953125,
-0.026214599609375,
-0.04290771484375,
0.06829833984375,
-0.01922607421875,
0.0021190643310546875,
-0.011077880859375,
0.01324462890625,
-0.033477783203125,
-0.096435546875,
0.0428466796875,
-0.037445068359375,
0.005352020263671875,
-0.056549072265625,
-0.016265869140625,
0.0090484619140625,
0.1015625,
-0.054595947265625,
0.002742767333984375,
0.0005421638488769531,
0.0112152099609375,
-0.038238525390625,
-0.037109375,
-0.069091796875,
-0.00870513916015625,
-0.0771484375,
0.042266845703125,
0.0214691162109375,
-0.01541900634765625,
-0.03961181640625,
0.06982421875,
-0.0743408203125,
-0.0179290771484375,
0.0341796875,
-0.0228118896484375,
-0.0045318603515625,
0.0191497802734375,
-0.00868988037109375,
0.004062652587890625,
-0.0133819580078125,
-0.0179443359375,
-0.07611083984375,
-0.0257110595703125,
0.0139007568359375,
0.055816650390625,
-0.01085662841796875,
-0.00847625732421875,
-0.01194000244140625,
0.046417236328125,
0.032257080078125,
0.015899658203125,
0.021636962890625,
-0.01323699951171875,
0.0260162353515625,
0.00835418701171875,
0.02587890625,
-0.0165252685546875,
-0.00443267822265625,
-0.00182342529296875,
-0.0014696121215820312,
0.0219573974609375,
-0.0198974609375,
-0.00763702392578125,
0.0206298828125,
-0.0260467529296875,
0.0263519287109375,
-0.034515380859375,
-0.0457763671875,
0.0225067138671875,
-0.037689208984375,
0.01004791259765625,
-0.041259765625,
-0.014312744140625,
0.015716552734375,
-0.01265716552734375,
0.00186920166015625,
0.00894927978515625,
0.09051513671875,
0.02105712890625,
0.004550933837890625,
-0.033355712890625,
0.00910186767578125,
0.0350341796875,
0.00818634033203125,
0.0234222412109375,
-0.01342010498046875,
-0.0271759033203125,
0.06317138671875,
-0.005298614501953125,
0.0012273788452148438,
-0.044769287109375,
0.06060791015625,
0.0029621124267578125,
0.0141448974609375,
-0.0082550048828125,
-0.0180816650390625,
0.03887939453125,
0.0301971435546875,
-0.026458740234375,
0.011749267578125,
-0.00582122802734375,
0.007595062255859375,
-0.038482666015625,
0.0255279541015625,
-0.002857208251953125,
-0.0186920166015625,
-0.000736236572265625,
-0.043304443359375,
0.044464111328125,
0.01171112060546875,
-0.004657745361328125,
0.0166015625,
0.0222625732421875,
0.000591278076171875,
-0.00004982948303222656,
-0.031585693359375,
-0.001514434814453125,
-0.0020961761474609375,
0.048187255859375,
0.00136566162109375,
0.00991058349609375,
-0.006755828857421875,
0.056488037109375,
0.0143280029296875,
-0.021942138671875,
-0.0087738037109375,
-0.0167236328125,
0.004558563232421875,
-0.01021575927734375,
-0.0305328369140625,
0.0123443603515625,
0.042938232421875,
-0.005641937255859375,
0.01459503173828125,
-0.008056640625,
0.0173492431640625,
-0.030303955078125,
0.019927978515625,
0.053192138671875,
-0.0287933349609375,
0.01244354248046875,
0.0218505859375,
0.05950927734375,
-0.0283966064453125,
-0.0164337158203125,
0.074951171875,
0.062744140625,
0.050079345703125,
0.0259857177734375,
-0.02923583984375,
-0.039642333984375,
0.0423583984375,
-0.07940673828125,
-0.002567291259765625,
-0.004367828369140625,
-0.01511383056640625,
-0.0007295608520507812,
-0.01236724853515625,
0.008270263671875,
0.029998779296875,
0.003631591796875,
-0.0277862548828125,
-0.030426025390625,
0.009979248046875,
0.01093292236328125,
0.0178985595703125,
-0.0161285400390625,
-0.04205322265625,
0.0440673828125,
0.005489349365234375,
0.0152740478515625,
-0.0209808349609375,
0.0225067138671875,
-0.005245208740234375,
0.0233001708984375,
-0.040008544921875,
-0.05145263671875,
-0.0350341796875,
0.002918243408203125,
0.0104827880859375,
-0.04608154296875,
-0.036773681640625,
-0.007373809814453125,
-0.0150909423828125,
0.0286102294921875,
-0.03204345703125,
0.01399993896484375,
-0.043426513671875,
0.028472900390625,
-0.043792724609375,
0.0015420913696289062,
0.035888671875,
0.00926971435546875,
0.004283905029296875,
-0.0203399658203125,
-0.042449951171875,
-0.0305633544921875,
-0.061920166015625,
-0.0352783203125,
-0.0182342529296875,
0.01947021484375,
-0.00217437744140625,
0.058746337890625,
-0.0290374755859375,
-0.0308990478515625,
0.0211029052734375,
-0.01418304443359375,
-0.01531219482421875,
0.066162109375,
0.01309967041015625,
0.045806884765625,
-0.032379150390625,
0.06927490234375,
0.004058837890625,
0.0161895751953125,
-0.01309967041015625,
-0.037017822265625,
0.0081329345703125,
-0.043121337890625,
-0.0293121337890625,
-0.0211944580078125,
-0.01448822021484375,
0.036285400390625,
0.025299072265625,
-0.0047607421875,
0.0195159912109375,
-0.0228118896484375,
-0.003963470458984375,
-0.02288818359375,
0.01209259033203125,
-0.0106201171875,
0.00254058837890625,
0.023712158203125,
-0.022064208984375,
0.04449462890625,
0.00124359130859375,
0.01165008544921875,
0.0182952880859375,
-0.037628173828125,
0.030853271484375,
0.006626129150390625,
-0.048797607421875,
0.06439208984375,
0.0467529296875,
-0.017791748046875,
0.039337158203125,
0.023773193359375,
0.01207733154296875,
0.03173828125,
0.0032825469970703125,
-0.06982421875,
-0.022430419921875,
0.0196990966796875,
0.00412750244140625,
-0.0233001708984375,
0.0178680419921875,
-0.0051422119140625,
0.0271148681640625,
0.039398193359375,
0.0712890625,
-0.08807373046875,
0.019500732421875,
0.01535797119140625,
-0.003864288330078125,
0.063232421875,
0.003482818603515625,
0.021453857421875,
0.061553955078125,
0.0093994140625,
-0.0272064208984375,
-0.020538330078125,
0.031707763671875,
-0.00528717041015625,
-0.0287322998046875,
-0.00335693359375,
-0.023651123046875,
0.00284576416015625,
-0.02276611328125,
0.00473785400390625,
0.003841400146484375,
-0.0160980224609375,
-0.01049041748046875,
-0.0009675025939941406,
0.01255035400390625,
-0.0234832763671875,
-0.08148193359375,
-0.00827789306640625,
-0.01715087890625,
-0.0157318115234375,
0.043304443359375,
-0.0004143714904785156,
0.042327880859375,
0.05322265625,
-0.000720977783203125,
0.0195770263671875,
-0.001644134521484375,
0.0239105224609375,
0.00466156005859375,
-0.04315185546875,
0.00791168212890625,
0.01195526123046875,
-0.0240478515625,
0.0175628662109375,
0.017181396484375,
-0.047943115234375,
0.0005793571472167969,
0.022674560546875,
0.0440673828125,
0.0060577392578125,
-0.0428466796875,
0.035491943359375,
-0.0097503662109375,
-0.01381683349609375,
0.0084075927734375,
-0.020172119140625,
-0.03759765625,
-0.0120391845703125,
-0.00860595703125,
-0.049041748046875,
0.0275115966796875,
0.0107574462890625,
-0.036163330078125,
0.0882568359375,
0.00323486328125,
-0.0238189697265625,
-0.009552001953125,
0.061370849609375,
-0.0285491943359375,
0.03759765625,
-0.019134521484375,
0.0229339599609375,
-0.0323486328125,
0.0171661376953125,
-0.059326171875,
-0.01265716552734375,
-0.022216796875,
0.033660888671875,
0.03582763671875,
0.0015821456909179688,
0.01678466796875,
-0.0167694091796875,
0.035003662109375,
0.08062744140625,
0.007312774658203125,
-0.0225372314453125,
0.016143798828125,
0.006427764892578125,
0.03973388671875,
0.017425537109375,
0.026275634765625,
0.014862060546875,
-0.0242156982421875,
0.035919189453125,
-0.0011386871337890625,
-0.0021514892578125,
0.03509521484375,
-0.0163726806640625,
0.0196685791015625,
0.004497528076171875,
-0.01314544677734375,
-0.0177764892578125,
0.00453948974609375,
0.0472412109375,
0.038970947265625,
-0.0273590087890625,
-0.051422119140625,
-0.01256561279296875,
0.033233642578125,
0.01190185546875,
0.0262908935546875,
0.0013179779052734375,
0.0185394287109375,
-0.0237884521484375,
0.021575927734375,
0.0275421142578125,
0.047943115234375,
-0.0457763671875,
0.01020050048828125,
-0.012908935546875,
-0.0138702392578125,
-0.0545654296875,
0.0194549560546875,
0.0247344970703125,
0.00963592529296875,
-0.0377197265625,
-0.0296173095703125,
0.014892578125,
0.0005459785461425781,
0.01163482666015625,
-0.0294647216796875,
-0.016082763671875,
-0.054473876953125,
-0.010589599609375,
-0.040283203125,
0.02838134765625,
0.04364013671875,
0.00901031494140625,
0.01117706298828125,
0.04931640625,
-0.081298828125,
0.0318603515625,
-0.028106689453125,
-0.01194000244140625,
-0.0231475830078125,
0.03216552734375,
0.037811279296875,
0.040740966796875,
0.0159149169921875,
-0.02886962890625,
0.01471710205078125,
-0.01242828369140625,
0.047821044921875,
-0.034576416015625,
0.0577392578125,
0.02288818359375,
0.00853729248046875,
-0.018035888671875,
0.016510009765625,
0.06671142578125,
0.05535888671875,
0.03985595703125,
0.0046234130859375,
-0.0013561248779296875,
0.0361328125,
-0.0233612060546875,
-0.026336669921875,
-0.017608642578125,
0.030914306640625,
0.05023193359375,
0.01390838623046875,
0.01064300537109375,
0.0195159912109375,
0.051300048828125,
-0.043975830078125,
0.026580810546875,
-0.00550079345703125,
-0.031951904296875,
0.051666259765625,
-0.0175933837890625,
0.0794677734375,
-0.0150604248046875,
-0.053955078125,
-0.0101318359375,
-0.01222991943359375,
-0.0733642578125,
0.0267791748046875,
0.0386962890625,
-0.03472900390625,
0.015960693359375,
0.0006122589111328125,
-0.037628173828125,
0.0211181640625,
0.020751953125,
0.002391815185546875,
-0.0013380050659179688,
0.0029239654541015625,
-0.0179595947265625,
-0.04217529296875,
-0.0112152099609375,
0.0159149169921875,
0.003063201904296875,
-0.008544921875,
-0.015167236328125,
0.032867431640625,
-0.0008978843688964844,
-0.009796142578125,
0.016021728515625,
-0.022186279296875,
-0.00630950927734375,
0.01064300537109375,
0.00872039794921875,
0.0029163360595703125,
-0.0105133056640625,
-0.01953125,
-0.01465606689453125,
0.032196044921875,
-0.0222320556640625,
0.0014429092407226562,
-0.014495849609375,
0.0207061767578125,
-0.005428314208984375,
0.012939453125,
-0.028228759765625,
-0.044708251953125,
-0.007190704345703125,
-0.024871826171875,
0.006381988525390625,
0.0280609130859375,
0.04400634765625,
-0.0035552978515625,
0.03436279296875,
0.021453857421875,
0.01271820068359375,
0.02099609375,
0.0340576171875,
0.038421630859375,
-0.055938720703125,
-0.033416748046875,
-0.0097808837890625,
-0.00821685791015625,
-0.0107574462890625,
0.0073394775390625,
0.00433349609375,
0.0004794597625732422,
-0.033721923828125,
-0.0035724639892578125,
0.035797119140625,
0.042938232421875,
0.00304412841796875,
0.020294189453125,
0.015533447265625,
-0.0093841552734375,
-0.0302276611328125,
0.005340576171875,
-0.017852783203125,
-0.022918701171875,
-0.0012950897216796875,
0.022857666015625,
-0.002422332763671875,
-0.007495880126953125,
-0.056243896484375,
0.006801605224609375,
0.005840301513671875,
0.005428314208984375,
-0.0601806640625,
0.05194091796875,
-0.01171112060546875,
0.017425537109375,
-0.035919189453125,
-0.034942626953125,
0.002227783203125,
0.0200042724609375,
0.005279541015625,
-0.03515625,
-0.039398193359375,
0.037109375,
-0.0242156982421875,
0.03936767578125,
0.053497314453125,
-0.0175323486328125,
-0.019775390625,
0.026275634765625,
0.032196044921875,
0.07421875,
-0.0186309814453125,
-0.018218994140625,
0.00937652587890625,
0.002593994140625,
-0.0205078125,
-0.054779052734375,
0.008026123046875,
-0.05743408203125,
0.00885772705078125,
-0.0400390625,
0.0250701904296875,
0.0289306640625,
-0.039215087890625,
-0.12249755859375,
0.05328369140625,
-0.03839111328125,
-0.0294342041015625,
-0.03143310546875,
-0.005626678466796875,
0.0005164146423339844,
0.0278778076171875,
-0.0112457275390625,
-0.02947998046875,
-0.0262908935546875,
0.0188751220703125,
-0.005016326904296875,
0.0106201171875,
0.0233306884765625,
-0.0016717910766601562,
-0.04779052734375,
-0.0106201171875,
-0.0251312255859375,
-0.01399993896484375,
-0.0017061233520507812,
-0.0003902912139892578,
0.00762176513671875,
0.0225372314453125,
-0.045989990234375,
-0.0548095703125,
-0.021514892578125,
0.0161285400390625,
-0.01447296142578125,
-0.06268310546875,
-0.08203125,
-0.05584716796875,
0.0955810546875,
0.08587646484375,
0.032623291015625,
-0.0230712890625,
0.0098724365234375,
-0.0538330078125,
-0.01506805419921875,
-0.006229400634765625,
-0.0113525390625,
-0.03814697265625,
0.004047393798828125,
0.0185699462890625,
-0.005588531494140625,
-0.0078887939453125,
0.029052734375,
-0.02630615234375,
0.01348114013671875,
0.057586669921875,
0.0019121170043945312,
-0.09466552734375,
0.07867431640625,
0.08892822265625,
-0.056243896484375,
0.01351165771484375,
0.01096343994140625,
-0.035858154296875,
0.0655517578125,
0.01395416259765625,
-0.0089569091796875,
-0.01354217529296875,
-0.0263519287109375,
0.02435302734375,
-0.021087646484375,
0.03936767578125,
-0.04583740234375,
-0.0075225830078125,
-0.0015125274658203125,
0.0174713134765625,
-0.014434814453125,
0.01151275634765625,
-0.01268768310546875,
0.0262908935546875,
-0.0076446533203125,
0.0279998779296875,
-0.0295867919921875,
-0.0282440185546875,
-0.03326416015625,
0.017730712890625,
-0.0031375885009765625,
0.01580810546875,
0.042144775390625,
-0.02239990234375,
0.00283050537109375,
0.0093994140625,
-0.06951904296875,
-0.025146484375,
-0.0212554931640625,
-0.0194549560546875,
-0.032806396484375,
-0.007396697998046875
] |
a271d854b029a36a7c9db5962dbc54a916516591
|
Wordpress Stackexchange
Q: Missed scheduled WordPress I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.
A: Due to your server configuration, you may need to use the alternate cron method, which uses redirect rather than http loopback.
Try adding the following to your wp-config.php file:
// Alternate cron method
define( 'ALTERNATE_WP_CRON', true );
|
Q: Missed scheduled WordPress I am currently in version 3.1 of WordPress and I have a problem with planning my post. In fact, whenever I plan a post, it is written: "Scheduled missed. Could you help me please.
A: Due to your server configuration, you may need to use the alternate cron method, which uses redirect rather than http loopback.
Try adding the following to your wp-config.php file:
// Alternate cron method
define( 'ALTERNATE_WP_CRON', true );
A: The missed schedule is due to wordpress timeout in the cron process.
Go to wp-include/cron.php, around line no 248, change the value of 0.01 to a larger number.
in my case, I changed from :
wp_remote_post( $cron_url, array( 'timeout' => 0.01, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
to
wp_remote_post( $cron_url, array( 'timeout' => 7, 'blocking' => false, 'sslverify' => apply_filters( 'https_local_ssl_verify', true ) ) );
remember this cron.php is a wordpress core file, it will get overwritten when you update your wordpress core. So after every update, remember to change the value again.
If this doesn't work for you, make sure your timezone setting is set correctly. The setting can be found at:
Settings > General
|
wordpress
|
{
"language": "en",
"length": 198,
"provenance": "stackexchange_00019.jsonl.gz:408917",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15657"
}
|
[
0.0160369873046875,
-0.00702667236328125,
-0.0251007080078125,
-0.0017213821411132812,
-0.011444091796875,
-0.031494140625,
0.0263519287109375,
-0.0199432373046875,
0.01519775390625,
-0.01280975341796875,
-0.07647705078125,
0.013702392578125,
-0.021148681640625,
-0.0008006095886230469,
0.0200347900390625,
-0.03814697265625,
0.04345703125,
-0.0024280548095703125,
0.013824462890625,
-0.0245208740234375,
0.005039215087890625,
0.007213592529296875,
-0.007442474365234375,
0.12017822265625,
0.029266357421875,
0.036224365234375,
-0.0016412734985351562,
-0.00804901123046875,
0.0245208740234375,
0.01373291015625,
0.0284423828125,
-0.05084228515625,
0.025848388671875,
0.0173187255859375,
-0.03936767578125,
-0.043365478515625,
-0.024322509765625,
0.01132965087890625,
-0.0124053955078125,
0.01021575927734375,
-0.011810302734375,
0.0011587142944335938,
0.07586669921875,
-0.0653076171875,
0.0032939910888671875,
0.020233154296875,
-0.01456451416015625,
-0.03125,
0.027496337890625,
0.0570068359375,
-0.00543975830078125,
-0.01483154296875,
-0.01433563232421875,
0.015045166015625,
-0.01219940185546875,
-0.0226287841796875,
0.0012140274047851562,
0.0791015625,
0.036712646484375,
-0.050872802734375,
-0.062103271484375,
0.0176849365234375,
0.01512908935546875,
0.00278472900390625,
0.01250457763671875,
0.01026153564453125,
0.0552978515625,
0.0106964111328125,
-0.0214080810546875,
0.011077880859375,
0.024383544921875,
-0.01299285888671875,
0.0159454345703125,
0.0163726806640625,
-0.03924560546875,
-0.05755615234375,
0.0289459228515625,
-0.040771484375,
0.0309906005859375,
0.004047393798828125,
0.0263519287109375,
0.050140380859375,
-0.039093017578125,
-0.041900634765625,
0.0255584716796875,
-0.012054443359375,
-0.007049560546875,
-0.0259246826171875,
-0.053619384765625,
0.00007510185241699219,
-0.0299530029296875,
-0.032012939453125,
-0.039031982421875,
0.005329132080078125,
-0.00228118896484375,
-0.0004756450653076172,
0.038055419921875,
0.058502197265625,
-0.033203125,
-0.019622802734375,
-0.0311126708984375,
-0.0086517333984375,
-0.0372314453125,
-0.00580596923828125,
-0.0202178955078125,
0.03411865234375,
0.04052734375,
0.07415771484375,
0.033416748046875,
0.0171661376953125,
0.00006663799285888672,
-0.007442474365234375,
-0.0014362335205078125,
-0.0125274658203125,
-0.0233306884765625,
-0.0007004737854003906,
-0.0165252685546875,
0.010284423828125,
0.00099945068359375,
-0.012908935546875,
-0.018035888671875,
0.005889892578125,
-0.0487060546875,
-0.052490234375,
0.038116455078125,
-0.0282745361328125,
-0.02520751953125,
0.054351806640625,
0.051971435546875,
0.051422119140625,
-0.050018310546875,
0.0013885498046875,
0.039459228515625,
-0.04931640625,
-0.04443359375,
-0.03875732421875,
0.039337158203125,
-0.026214599609375,
-0.018890380859375,
0.0224761962890625,
-0.016876220703125,
-0.0270233154296875,
-0.01543426513671875,
-0.04083251953125,
0.01873779296875,
0.0300140380859375,
0.0166015625,
0.0050048828125,
-0.0074920654296875,
-0.02734375,
0.0210418701171875,
-0.04345703125,
0.00659942626953125,
0.03466796875,
0.0116119384765625,
0.01224517822265625,
0.0173187255859375,
-0.0216064453125,
-0.0017538070678710938,
-0.0228729248046875,
-0.0129547119140625,
-0.005756378173828125,
0.0213775634765625,
-0.05279541015625,
-0.06890869140625,
0.01041412353515625,
-0.0282745361328125,
-0.00577545166015625,
0.025604248046875,
-0.00643157958984375,
0.0386962890625,
-0.0009546279907226562,
0.033905029296875,
-0.0040740966796875,
-0.00577545166015625,
-0.0055389404296875,
0.03265380859375,
-0.011077880859375,
-0.00543212890625,
0.05548095703125,
0.006134033203125,
-0.007366180419921875,
0.02484130859375,
-0.01258087158203125,
-0.034576416015625,
-0.00913238525390625,
0.02984619140625,
0.058258056640625,
0.01229095458984375,
0.0236053466796875,
0.0297088623046875,
-0.007472991943359375,
-0.040496826171875,
0.038055419921875,
-0.00377655029296875,
-0.012786865234375,
-0.043701171875,
-0.0078887939453125,
-0.01374053955078125,
-0.0016393661499023438,
0.006595611572265625,
0.06463623046875,
-0.0465087890625,
0.025634765625,
-0.0482177734375,
0.0347900390625,
-0.0167694091796875,
0.037384033203125,
0.01149749755859375,
-0.022674560546875,
0.012359619140625,
-0.0024394989013671875,
-0.009124755859375,
-0.014617919921875,
-0.021331787109375,
0.062347412109375,
-0.04962158203125,
0.039947509765625,
-0.0171051025390625,
0.0343017578125,
-0.0265045166015625,
-0.043426513671875,
-0.0345458984375,
-0.026123046875,
0.01541900634765625,
-0.03302001953125,
0.00019812583923339844,
-0.016815185546875,
0.00396728515625,
0.01690673828125,
-0.027557373046875,
-0.0011243820190429688,
0.018463134765625,
0.0418701171875,
-0.0195465087890625,
-0.00865936279296875,
0.016937255859375,
-0.007602691650390625,
0.0213623046875,
0.0230560302734375,
0.0174560546875,
0.016357421875,
-0.005733489990234375,
0.050567626953125,
0.05157470703125,
-0.037933349609375,
-0.00911712646484375,
0.036224365234375,
-0.016632080078125,
0.0128326416015625,
0.0259246826171875,
0.0078125,
-0.0016574859619140625,
-0.015228271484375,
-0.0311279296875,
0.0294036865234375,
0.01434326171875,
0.0012445449829101562,
-0.0155487060546875,
0.0082244873046875,
0.0164794921875,
-0.036773681640625,
-0.056732177734375,
0.00962066650390625,
0.0031795501708984375,
-0.046112060546875,
0.033111572265625,
0.01268768310546875,
0.02288818359375,
-0.056304931640625,
0.0096435546875,
-0.000835418701171875,
-0.009735107421875,
0.0260467529296875,
0.0016660690307617188,
0.04486083984375,
-0.0323486328125,
0.0142364501953125,
-0.0214080810546875,
0.016204833984375,
-0.0206756591796875,
0.039215087890625,
-0.06585693359375,
-0.0330810546875,
-0.0033168792724609375,
-0.0007028579711914062,
-0.03570556640625,
-0.02960205078125,
0.0179595947265625,
-0.0137176513671875,
0.036712646484375,
0.0023250579833984375,
-0.0213775634765625,
0.031463623046875,
0.00814056396484375,
-0.037139892578125,
-0.0008001327514648438,
-0.00592041015625,
0.0170135498046875,
-0.045623779296875,
-0.044921875,
0.0196533203125,
-0.0309600830078125,
-0.0037517547607421875,
0.01325225830078125,
0.036895751953125,
0.037872314453125,
0.0232391357421875,
0.01128387451171875,
0.0180511474609375,
-0.08526611328125,
-0.06524658203125,
0.035675048828125,
0.05291748046875,
-0.006343841552734375,
-0.021026611328125,
-0.007549285888671875,
0.038543701171875,
-0.0738525390625,
-0.0787353515625,
-0.08990478515625,
-0.07061767578125,
-0.0020351409912109375,
-0.011016845703125,
-0.020294189453125,
0.02020263671875,
0.01009368896484375,
0.0197296142578125,
-0.01087188720703125,
0.00783538818359375,
-0.044891357421875,
-0.05511474609375,
-0.0677490234375,
-0.03436279296875,
-0.00775909423828125,
0.0174713134765625,
0.00749969482421875,
0.0792236328125,
0.0057525634765625,
-0.0794677734375,
-0.0274505615234375,
-0.0238189697265625,
-0.03460693359375,
0.0184783935546875,
0.0028743743896484375,
0.002056121826171875,
-0.01380157470703125,
-0.00334930419921875,
0.0716552734375,
0.031463623046875,
-0.056610107421875,
-0.0089263916015625,
-0.028350830078125,
-0.01184844970703125,
-0.0034122467041015625,
0.0218658447265625,
0.026885986328125,
-0.013031005859375,
0.0204315185546875,
-0.033477783203125,
0.025604248046875,
-0.0020198822021484375,
0.0017375946044921875,
0.0213623046875,
-0.003513336181640625,
-0.036712646484375,
0.0178985595703125,
-0.0076141357421875,
0.0236968994140625,
0.0071868896484375,
-0.0012407302856445312,
0.01343536376953125,
0.0166015625,
-0.0008091926574707031,
0.0225372314453125,
-0.01739501953125,
-0.00556182861328125,
-0.01450347900390625,
0.0235748291015625,
-0.01438140869140625,
0.01953125,
-0.002056121826171875,
0.009033203125,
-0.0217742919921875,
-0.025665283203125,
0.0289306640625,
-0.039764404296875,
-0.0153656005859375,
-0.0098114013671875,
-0.00569915771484375,
0.01178741455078125,
0.05767822265625,
0.01384735107421875,
-0.01198577880859375,
-0.0261383056640625,
0.0036525726318359375,
-0.049774169921875,
-0.056884765625,
-0.012359619140625,
-0.0017185211181640625,
0.0007724761962890625,
-0.01148223876953125,
-0.01194000244140625,
0.00016820430755615234,
-0.0276641845703125,
0.036041259765625,
-0.01457977294921875,
-0.01346588134765625,
0.033538818359375,
-0.039337158203125,
0.0255279541015625,
-0.01171875,
0.00022709369659423828,
-0.042327880859375,
-0.020721435546875,
-0.0251312255859375,
-0.0867919921875,
-0.00551605224609375,
-0.062255859375,
0.047088623046875,
0.045501708984375,
-0.0323486328125,
-0.005870819091796875,
0.0374755859375,
0.083984375,
0.0191802978515625,
0.011627197265625,
-0.09063720703125,
0.052886962890625,
0.02862548828125,
0.017730712890625,
0.00997161865234375,
-0.00766754150390625,
-0.01305389404296875,
-0.0645751953125,
-0.0273895263671875,
-0.02203369140625,
-0.0155181884765625,
0.0257720947265625,
-0.04840087890625,
-0.004451751708984375,
-0.01105499267578125,
0.01165771484375,
0.04461669921875,
-0.02301025390625,
0.001983642578125,
-0.0310821533203125,
-0.0164642333984375,
0.0290374755859375,
-0.0260467529296875,
0.0233001708984375,
0.0006952285766601562,
0.075439453125,
0.01271820068359375,
-0.0007500648498535156,
-0.0213165283203125,
-0.0003871917724609375,
0.040802001953125,
-0.00501251220703125,
-0.0168914794921875,
-0.0244140625,
-0.03143310546875,
0.049896240234375,
-0.011138916015625,
-0.0257568359375,
-0.003528594970703125,
0.021331787109375,
-0.0022678375244140625,
-0.0191802978515625,
-0.00896453857421875,
-0.0192413330078125,
0.040435791015625,
0.056488037109375,
0.00439453125,
-0.00312042236328125,
0.01322174072265625,
-0.0010061264038085938,
-0.0178375244140625,
-0.024261474609375,
-0.01354217529296875,
-0.035400390625,
0.01561737060546875,
0.034027099609375,
-0.005161285400390625,
0.0254364013671875,
-0.006053924560546875,
0.01230621337890625,
-0.01447296142578125,
-0.0005626678466796875,
-0.002216339111328125,
0.01328277587890625,
-0.00945281982421875,
0.024749755859375,
0.0010538101196289062,
-0.0089263916015625,
-0.0105438232421875,
-0.0054779052734375,
0.0237884521484375,
0.050537109375,
-0.01092529296875,
0.00202178955078125,
0.0167388916015625,
-0.0273895263671875,
-0.03509521484375,
-0.038543701171875,
0.002460479736328125,
0.037261962890625,
-0.0185699462890625,
0.01654052734375,
-0.01363372802734375,
0.01306915283203125,
-0.017791748046875,
-0.0160369873046875,
0.00785064697265625,
-0.022857666015625,
0.0037097930908203125,
0.021759033203125,
0.07061767578125,
-0.0182647705078125,
-0.038909912109375,
0.028106689453125,
0.0009264945983886719,
0.0122833251953125,
0.0138092041015625,
0.0119476318359375,
0.0121612548828125,
-0.017425537109375,
0.02734375,
-0.0306396484375,
-0.036773681640625,
-0.0167236328125,
0.025360107421875,
-0.00598907470703125,
0.0266571044921875,
0.04217529296875,
0.0035114288330078125,
-0.0029506683349609375,
-0.0219879150390625,
0.000019550323486328125,
0.0071868896484375,
-0.004314422607421875,
0.034454345703125,
0.046417236328125,
0.0195465087890625,
-0.013336181640625,
0.012664794921875,
-0.02020263671875,
0.0192718505859375,
-0.0020999908447265625,
0.007175445556640625,
-0.0195465087890625,
-0.032867431640625,
0.006748199462890625,
-0.00905609130859375,
0.0202484130859375,
-0.0357666015625,
-0.0203399658203125,
-0.0208587646484375,
-0.01207733154296875,
0.054107666015625,
-0.028289794921875,
0.0174560546875,
-0.01995849609375,
0.002971649169921875,
-0.049957275390625,
0.017486572265625,
0.034027099609375,
0.01084136962890625,
-0.0491943359375,
0.01331329345703125,
-0.034393310546875,
-0.0228424072265625,
-0.08416748046875,
-0.04156494140625,
-0.06591796875,
0.0183563232421875,
0.030487060546875,
0.0090484619140625,
-0.01416015625,
-0.058197021484375,
-0.0245513916015625,
0.0255279541015625,
0.042205810546875,
0.046539306640625,
0.01515960693359375,
0.01540374755859375,
-0.020355224609375,
-0.005222320556640625,
-0.01015472412109375,
0.00787353515625,
0.0151214599609375,
-0.01313018798828125,
0.0105743408203125,
-0.047882080078125,
-0.026397705078125,
0.0005540847778320312,
-0.0225677490234375,
0.0271453857421875,
0.007659912109375,
-0.00566864013671875,
-0.01129150390625,
-0.0192108154296875,
0.003261566162109375,
-0.0205078125,
0.05999755859375,
-0.007205963134765625,
-0.03271484375,
0.0266265869140625,
-0.021453857421875,
0.0297393798828125,
-0.0377197265625,
0.02508544921875,
0.0005650520324707031,
-0.04315185546875,
-0.0125274658203125,
0.03558349609375,
-0.07330322265625,
0.06890869140625,
0.06329345703125,
0.0176849365234375,
0.025665283203125,
-0.005962371826171875,
0.0011730194091796875,
-0.03173828125,
-0.00662994384765625,
-0.0198516845703125,
-0.0264434814453125,
0.039642333984375,
-0.0057525634765625,
-0.0232086181640625,
0.031463623046875,
-0.020599365234375,
0.01959228515625,
0.05755615234375,
0.052520751953125,
-0.08843994140625,
0.006710052490234375,
0.01108551025390625,
-0.03741455078125,
0.0028247833251953125,
0.00992584228515625,
0.001689910888671875,
-0.038543701171875,
-0.0006184577941894531,
0.0153350830078125,
-0.0092926025390625,
-0.0035037994384765625,
-0.0023441314697265625,
-0.0114288330078125,
-0.0135650634765625,
-0.0223236083984375,
0.0030231475830078125,
-0.027801513671875,
-0.0068511962890625,
0.041046142578125,
0.001461029052734375,
-0.05029296875,
0.0179901123046875,
0.011138916015625,
0.01190948486328125,
-0.0333251953125,
0.06732177734375,
-0.0093536376953125,
0.035675048828125,
-0.02630615234375,
-0.02001953125,
-0.0286102294921875,
0.0286407470703125,
-0.0469970703125,
0.0235137939453125,
0.00605010986328125,
-0.043487548828125,
0.0149993896484375,
-0.03369140625,
0.031036376953125,
0.061492919921875,
-0.08770751953125,
0.019927978515625,
-0.00015163421630859375,
-0.01509857177734375,
0.01214599609375,
-0.0076141357421875,
0.030517578125,
-0.037750244140625,
-0.01399993896484375,
0.00830078125,
-0.030731201171875,
0.02392578125,
0.02606201171875,
-0.01407623291015625,
-0.0207366943359375,
-0.00670623779296875,
-0.00342559814453125,
-0.042938232421875,
0.033447265625,
0.0211181640625,
-0.004383087158203125,
0.09051513671875,
0.006992340087890625,
-0.045440673828125,
0.0010690689086914062,
0.0712890625,
-0.0266571044921875,
0.0633544921875,
-0.041748046875,
0.028411865234375,
-0.039642333984375,
0.04986572265625,
-0.059661865234375,
0.003437042236328125,
0.0086517333984375,
0.01258087158203125,
0.0272674560546875,
0.01146697998046875,
-0.041015625,
0.0033130645751953125,
0.050506591796875,
0.041107177734375,
0.0287017822265625,
0.032196044921875,
-0.0089874267578125,
0.005565643310546875,
0.005718231201171875,
-0.00010901689529418945,
0.047393798828125,
-0.030548095703125,
-0.0457763671875,
0.00927734375,
-0.0265350341796875,
-0.0538330078125,
0.042572021484375,
0.01220703125,
-0.0144195556640625,
0.0184326171875,
-0.004566192626953125,
-0.01294708251953125,
0.031402587890625,
0.019256591796875,
0.0506591796875,
-0.030303955078125,
-0.069091796875,
0.0029449462890625,
0.0232086181640625,
0.0256805419921875,
-0.0262908935546875,
0.034210205078125,
0.01473236083984375,
0.02288818359375,
-0.0771484375,
-0.040283203125,
-0.037353515625,
0.0158233642578125,
-0.0018100738525390625,
0.0195770263671875,
0.0205535888671875,
-0.0028247833251953125,
0.05194091796875,
0.0290069580078125,
0.00733184814453125,
-0.03118896484375,
0.00572967529296875,
0.01422882080078125,
0.01328277587890625,
0.00698089599609375,
-0.0234375,
0.0227813720703125,
-0.05548095703125,
-0.048126220703125,
-0.0078125,
-0.0149688720703125,
0.035552978515625,
-0.00850677490234375,
0.00690460205078125,
-0.022064208984375,
0.0219268798828125,
0.0115509033203125,
-0.007457733154296875,
-0.044921875,
0.0093994140625,
0.04608154296875,
0.0369873046875,
0.01085662841796875,
-0.034637451171875,
-0.0189971923828125,
0.05560302734375,
-0.0086669921875,
-0.0216522216796875,
-0.072998046875,
0.0018281936645507812,
-0.0733642578125,
-0.012237548828125,
0.029815673828125,
-0.020416259765625,
0.0210113525390625,
0.06280517578125,
0.07080078125,
-0.0281829833984375,
-0.0237579345703125,
0.07061767578125,
-0.02020263671875,
-0.062042236328125,
-0.0087738037109375,
-0.0364990234375,
0.01245880126953125,
-0.0011205673217773438,
0.021575927734375,
0.055908203125,
-0.00139617919921875,
0.0006728172302246094,
0.0203857421875,
0.01605224609375,
0.00543975830078125,
0.01189422607421875,
0.0191497802734375,
-0.007190704345703125,
0.0251007080078125,
0.001522064208984375,
5.364418029785156e-7,
0.0462646484375,
-0.0269622802734375,
-0.0275421142578125,
0.0220794677734375,
-0.0128936767578125,
0.01410675048828125,
0.0174560546875,
-0.0225677490234375,
0.0299835205078125,
0.0013437271118164062,
0.006504058837890625,
0.001636505126953125,
0.01800537109375,
-0.0010328292846679688,
-0.0777587890625,
-0.052032470703125,
-0.0166473388671875,
0.03131103515625,
0.0237884521484375,
0.0836181640625,
-0.0010271072387695312,
0.0190887451171875,
-0.024200439453125,
0.031646728515625,
-0.06280517578125,
0.008697509765625,
-0.062469482421875,
-0.0036163330078125,
0.03216552734375,
0.0215301513671875,
-0.06365966796875,
-0.0026092529296875,
0.0130157470703125,
-0.01067352294921875,
0.00580596923828125,
-0.02032470703125,
0.01959228515625,
-0.010009765625,
0.02032470703125,
-0.035247802734375,
-0.032806396484375,
-0.0406494140625,
-0.023590087890625,
0.021331787109375,
0.03131103515625,
0.0160369873046875,
0.0321044921875,
0.0204620361328125,
-0.0179901123046875,
0.013885498046875,
-0.035125732421875,
0.0264739990234375,
0.036651611328125,
-0.0016031265258789062,
0.0154876708984375,
0.0328369140625,
-0.0011768341064453125,
0.047271728515625,
0.007167816162109375,
0.039154052734375,
0.0195465087890625,
0.0168914794921875,
0.0049896240234375,
0.024810791015625,
0.0265960693359375,
-0.0310516357421875,
0.0122833251953125,
0.002849578857421875,
-0.019287109375,
0.026824951171875,
0.042999267578125,
-0.0012292861938476562,
-0.024200439453125,
-0.035247802734375,
-0.0233306884765625,
-0.0280609130859375,
-0.0233917236328125,
-0.01033782958984375,
-0.0139617919921875,
0.00630950927734375,
0.00359344482421875,
-0.029571533203125,
0.0287628173828125,
-0.0142974853515625,
-0.01480865478515625,
-0.0106353759765625,
-0.0272064208984375,
0.0229644775390625,
0.06683349609375,
-0.0056915283203125,
-0.0105438232421875,
-0.0195159912109375,
-0.00814056396484375,
-0.0200347900390625,
0.00276947021484375,
0.035369873046875,
0.00008434057235717773,
-0.04608154296875,
-0.047821044921875,
-0.04296875,
0.005748748779296875,
-0.033538818359375,
-0.0113983154296875,
-0.004360198974609375,
-0.00864410400390625,
-0.01024627685546875,
-0.002605438232421875,
0.022308349609375,
-0.02557373046875,
-0.0626220703125,
-0.00922393798828125,
-0.01186370849609375,
-0.0018987655639648438,
-0.036529541015625,
-0.06671142578125,
0.0693359375,
-0.01509857177734375,
-0.0202789306640625,
-0.06927490234375,
-0.00640869140625,
0.00695037841796875,
0.01251983642578125,
-0.02154541015625,
-0.0289154052734375,
-0.0361328125,
0.040771484375,
0.0185546875,
0.0185699462890625,
0.004917144775390625,
0.0208740234375,
-0.036224365234375,
0.037445068359375,
0.01019287109375,
-0.01068878173828125,
0.04388427734375,
-0.01351165771484375,
0.035552978515625,
0.04937744140625,
-0.053741455078125,
-0.068603515625,
-0.0269775390625,
-0.0091400146484375,
-0.020782470703125,
-0.0278472900390625,
-0.053924560546875,
-0.010162353515625,
0.109375,
0.07916259765625,
0.02130126953125,
-0.056610107421875,
-0.0205535888671875,
-0.054473876953125,
-0.03717041015625,
-0.03057861328125,
0.01751708984375,
-0.050537109375,
0.00495147705078125,
-0.02044677734375,
-0.0226898193359375,
0.0035190582275390625,
0.0482177734375,
-0.03985595703125,
0.0011997222900390625,
-0.00952911376953125,
-0.048492431640625,
-0.073974609375,
-0.0460205078125,
0.03424072265625,
-0.0005207061767578125,
0.044677734375,
0.02020263671875,
0.0264129638671875,
0.0390625,
0.10455322265625,
0.030975341796875,
0.0107879638671875,
-0.033905029296875,
0.0004687309265136719,
0.013275146484375,
0.01494598388671875,
-0.018096923828125,
-0.033599853515625,
0.01751708984375,
0.0028591156005859375,
-0.0219573974609375,
0.021209716796875,
0.08441162109375,
-0.047393798828125,
-0.029052734375,
-0.012176513671875,
-0.00994110107421875,
0.0347900390625,
-0.007709503173828125,
0.010498046875,
-0.0115814208984375,
0.0004284381866455078,
0.00003540515899658203,
-0.00383758544921875,
0.0148468017578125,
-0.0100860595703125,
0.01461029052734375,
-0.0169525146484375,
0.0005660057067871094,
-0.03765869140625,
-0.00794219970703125,
-0.0006361007690429688
] |
4682456d81ad91085d66e034b9ab43a0246297f5
|
Wordpress Stackexchange
Q: Code needed to only show users own posts in a multi-user account I am using WP3 and want to starting adding users (many users to a single blog) but when I give a new user an account, they can see all the posts in the admin including scheduled, drafts, pending review etc. I either need the users to ONLY view their own posts or only view their own published posts (but not scheduled, drafts, etc). The admin should be able to see everything.
Here is a link I found on this issue with a code but the code is not working in my functions.php
http://wordpress.org/support/topic/show-only-authors-posts-in-admin-panel-instead-of-all-posts
A: Put this into your functions.php file in your theme folder...
function query_set_only_author( $wp_query ) {
global $current_user;
if ( is_admin() && !current_user_can('manage_options') ) {
$wp_query->set( 'author', $current_user->ID );
}
}
add_action('pre_get_posts', 'query_set_only_author' );
|
Q: Code needed to only show users own posts in a multi-user account I am using WP3 and want to starting adding users (many users to a single blog) but when I give a new user an account, they can see all the posts in the admin including scheduled, drafts, pending review etc. I either need the users to ONLY view their own posts or only view their own published posts (but not scheduled, drafts, etc). The admin should be able to see everything.
Here is a link I found on this issue with a code but the code is not working in my functions.php
http://wordpress.org/support/topic/show-only-authors-posts-in-admin-panel-instead-of-all-posts
A: Put this into your functions.php file in your theme folder...
function query_set_only_author( $wp_query ) {
global $current_user;
if ( is_admin() && !current_user_can('manage_options') ) {
$wp_query->set( 'author', $current_user->ID );
}
}
add_action('pre_get_posts', 'query_set_only_author' );
A: Have a look here for a more complete solution (fixes the post count on the filter bar): Help to condense/optimize some working code
|
wordpress
|
{
"language": "en",
"length": 164,
"provenance": "stackexchange_00019.jsonl.gz:408927",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15688"
}
|
[
0.08660888671875,
0.00818634033203125,
0.039764404296875,
-0.0050201416015625,
0.01593017578125,
-0.04119873046875,
0.0465087890625,
-0.072509765625,
-0.00499725341796875,
0.0265960693359375,
-0.03570556640625,
0.024627685546875,
-0.038299560546875,
-0.01309967041015625,
-0.017822265625,
-0.031219482421875,
0.034698486328125,
-0.0157623291015625,
0.02325439453125,
-0.00426483154296875,
-0.004917144775390625,
0.0219268798828125,
0.044219970703125,
0.0136566162109375,
0.00893402099609375,
-0.0051422119140625,
0.0258026123046875,
-0.0006527900695800781,
-0.00510406494140625,
-0.017547607421875,
0.0124969482421875,
0.0018863677978515625,
-0.0024166107177734375,
0.00971221923828125,
0.004749298095703125,
0.0125885009765625,
-0.0283660888671875,
0.0229644775390625,
0.0293731689453125,
-0.00566864013671875,
0.033721923828125,
-0.0270233154296875,
-0.05999755859375,
0.03863525390625,
-0.0362548828125,
-0.07122802734375,
0.07080078125,
0.00540924072265625,
0.04217529296875,
0.01007843017578125,
-0.0073089599609375,
0.0244903564453125,
0.0039825439453125,
0.00885009765625,
-0.0207672119140625,
-0.001018524169921875,
0.02545166015625,
-0.056884765625,
0.0655517578125,
-0.0450439453125,
-0.056060791015625,
-0.07427978515625,
0.051849365234375,
-0.019195556640625,
-0.0045318603515625,
-0.00994110107421875,
0.0242462158203125,
0.0048980712890625,
-0.039703369140625,
-0.015777587890625,
0.043212890625,
0.0028209686279296875,
0.0170745849609375,
-0.0116119384765625,
-0.037445068359375,
-0.0038814544677734375,
0.0010423660278320312,
-0.01824951171875,
0.038116455078125,
-0.0181427001953125,
-0.02667236328125,
-0.0235748291015625,
-0.07281494140625,
0.0144805908203125,
-0.033782958984375,
0.029022216796875,
-0.0200042724609375,
-0.00605010986328125,
-0.0143280029296875,
-0.0131378173828125,
-0.0188446044921875,
-0.051483154296875,
-0.030975341796875,
0.01285552978515625,
0.00254058837890625,
-0.03533935546875,
0.07550048828125,
0.0924072265625,
-0.0247039794921875,
-0.01213836669921875,
-0.032012939453125,
-0.017547607421875,
-0.02996826171875,
-0.042694091796875,
0.0071563720703125,
0.0312042236328125,
-0.0127410888671875,
0.0079345703125,
0.026397705078125,
0.026947021484375,
0.0035724639892578125,
-0.032501220703125,
-0.0013790130615234375,
0.0049285888671875,
-0.03094482421875,
-0.0223541259765625,
-0.042938232421875,
0.003482818603515625,
-0.0115814208984375,
0.01055145263671875,
-0.005603790283203125,
0.03118896484375,
-0.01922607421875,
-0.0124359130859375,
0.025146484375,
0.0031757354736328125,
-0.00572967529296875,
-0.01041412353515625,
0.043121337890625,
0.0279541015625,
-0.06396484375,
-0.0038433074951171875,
0.08172607421875,
0.019744873046875,
0.028289794921875,
-0.0267181396484375,
0.00045800209045410156,
-0.00868988037109375,
-0.0206451416015625,
0.0206146240234375,
0.0045318603515625,
-0.045318603515625,
-0.0099639892578125,
-0.0093536376953125,
-0.038909912109375,
0.07257080078125,
0.006656646728515625,
-0.03173828125,
-0.008209228515625,
-0.0325927734375,
-0.09295654296875,
-0.031524658203125,
-0.01157379150390625,
0.02410888671875,
0.0487060546875,
-0.006038665771484375,
0.0460205078125,
-0.007904052734375,
0.0163726806640625,
0.00772857666015625,
0.041595458984375,
0.00341033935546875,
-0.0036640167236328125,
0.031036376953125,
-0.0267333984375,
-0.00156402587890625,
-0.0233154296875,
0.0019083023071289062,
0.020294189453125,
-0.037078857421875,
-0.014373779296875,
-0.0250244140625,
0.0413818359375,
0.021820068359375,
0.01152801513671875,
0.04974365234375,
0.017181396484375,
0.006130218505859375,
0.00946044921875,
0.047637939453125,
0.0029697418212890625,
-0.0216522216796875,
0.031494140625,
-0.017578125,
-0.06109619140625,
0.03948974609375,
-0.005992889404296875,
0.040924072265625,
0.039398193359375,
-0.0028591156005859375,
0.03594970703125,
0.0303802490234375,
0.0158843994140625,
-0.01107025146484375,
-0.0004429817199707031,
-0.0185394287109375,
-0.03955078125,
-0.0034694671630859375,
-0.0240325927734375,
0.0307464599609375,
0.0268402099609375,
-0.0097808837890625,
0.033447265625,
-0.0182342529296875,
-0.052764892578125,
0.01605224609375,
-0.0299530029296875,
0.0307159423828125,
0.0030040740966796875,
0.031097412109375,
0.0294647216796875,
0.02825927734375,
-0.043975830078125,
-0.01195526123046875,
-0.00917816162109375,
0.00843048095703125,
-0.0008668899536132812,
0.07061767578125,
0.0127716064453125,
0.0204010009765625,
0.039520263671875,
-0.055145263671875,
0.031768798828125,
0.0151214599609375,
0.06304931640625,
-0.038604736328125,
-0.0005168914794921875,
-0.0413818359375,
0.0430908203125,
-0.0009107589721679688,
-0.031982421875,
0.043914794921875,
0.003314971923828125,
0.0036487579345703125,
-0.051239013671875,
0.0012006759643554688,
-0.00699615478515625,
0.00868988037109375,
0.0032176971435546875,
0.0309295654296875,
0.00897216796875,
-0.01517486572265625,
-0.007106781005859375,
0.040863037109375,
0.029541015625,
-0.01314544677734375,
0.0139007568359375,
0.0168914794921875,
0.037841796875,
0.05889892578125,
-0.022918701171875,
0.0008640289306640625,
0.020843505859375,
-0.07122802734375,
0.040313720703125,
0.03973388671875,
0.0167083740234375,
0.0051116943359375,
-0.005512237548828125,
-0.01309967041015625,
0.01284027099609375,
-0.0251007080078125,
-0.0400390625,
-0.012969970703125,
0.01198577880859375,
-0.004810333251953125,
0.0150604248046875,
0.0093536376953125,
-0.025543212890625,
-0.0184326171875,
0.016143798828125,
-0.0035190582275390625,
0.0009555816650390625,
0.03314208984375,
0.006805419921875,
0.0008893013000488281,
-0.03753662109375,
-0.007785797119140625,
0.018768310546875,
0.0121307373046875,
-0.01215362548828125,
0.0186920166015625,
-0.01442718505859375,
-0.005496978759765625,
0.001331329345703125,
-0.027252197265625,
-0.00009298324584960938,
0.008758544921875,
0.0013589859008789062,
-0.0093536376953125,
0.0181427001953125,
0.00966644287109375,
-0.0210113525390625,
0.04071044921875,
-0.0085601806640625,
-0.0172576904296875,
-0.032562255859375,
-0.1005859375,
0.08245849609375,
-0.04931640625,
0.05963134765625,
0.10894775390625,
0.02392578125,
0.028106689453125,
0.0028743743896484375,
0.00855255126953125,
-0.01247406005859375,
0.0321044921875,
0.0054168701171875,
-0.014312744140625,
-0.0239410400390625,
0.03216552734375,
0.01082611083984375,
0.02581787109375,
-0.0197906494140625,
-0.03729248046875,
-0.012847900390625,
-0.0027065277099609375,
-0.040618896484375,
-0.024078369140625,
-0.01561737060546875,
-0.057464599609375,
-0.0306549072265625,
-0.006927490234375,
-0.040374755859375,
0.01503753662109375,
0.005126953125,
0.0033111572265625,
-0.01123809814453125,
-0.0017957687377929688,
-0.040557861328125,
-0.01800537109375,
-0.054595947265625,
0.00975799560546875,
-0.006435394287109375,
0.0004868507385253906,
0.005542755126953125,
0.09552001953125,
0.0218658447265625,
-0.05645751953125,
-0.0016927719116210938,
0.0290985107421875,
-0.04290771484375,
-0.0009279251098632812,
-0.0257720947265625,
0.033538818359375,
-0.00786590576171875,
0.0247955322265625,
0.01171875,
0.0014600753784179688,
-0.022552490234375,
-0.0279083251953125,
0.0282745361328125,
0.0027065277099609375,
0.045562744140625,
-0.00508880615234375,
-0.038360595703125,
0.027374267578125,
0.04345703125,
-0.02593994140625,
0.0110321044921875,
-0.0213775634765625,
-0.0280609130859375,
0.004421234130859375,
-0.00812530517578125,
-0.01045989990234375,
-0.00302886962890625,
-0.007129669189453125,
0.034515380859375,
0.02056884765625,
-0.0095672607421875,
0.018768310546875,
-0.0192108154296875,
0.00923919677734375,
0.021484375,
-0.01116943359375,
0.01203155517578125,
-0.00958251953125,
0.031341552734375,
0.002864837646484375,
0.01377105712890625,
-0.022430419921875,
0.022064208984375,
-0.04693603515625,
-0.043853759765625,
0.0271148681640625,
-0.006999969482421875,
0.0221710205078125,
-0.0341796875,
-0.01971435546875,
-0.0296173095703125,
0.059173583984375,
-0.02032470703125,
-0.004241943359375,
0.0115814208984375,
-0.00647735595703125,
-0.04498291015625,
-0.0169219970703125,
-0.06634521484375,
0.00952911376953125,
0.004405975341796875,
-0.031158447265625,
-0.044647216796875,
-0.007129669189453125,
-0.017791748046875,
-0.0296783447265625,
0.012359619140625,
-0.01087188720703125,
0.012054443359375,
-0.0007028579711914062,
0.0273590087890625,
-0.0239715576171875,
0.01166534423828125,
-0.0310516357421875,
0.01024627685546875,
-0.03533935546875,
-0.10198974609375,
-0.0275726318359375,
0.01514434814453125,
0.060272216796875,
-0.0267333984375,
0.01499176025390625,
-0.0300445556640625,
0.046173095703125,
0.01348876953125,
0.0288543701171875,
-0.01800537109375,
-0.0169830322265625,
0.01242828369140625,
-0.01788330078125,
-0.0103912353515625,
-0.022186279296875,
0.0027713775634765625,
-0.01517486572265625,
-0.00551605224609375,
-0.023284912109375,
-0.05517578125,
-0.0187225341796875,
-0.03192138671875,
-0.0113525390625,
-0.0692138671875,
-0.071533203125,
-0.0075531005859375,
0.03240966796875,
-0.0258026123046875,
0.020355224609375,
-0.073486328125,
-0.055999755859375,
0.0244903564453125,
-0.025604248046875,
-0.0038661956787109375,
0.015716552734375,
0.060577392578125,
0.01044464111328125,
-0.003429412841796875,
-0.04083251953125,
-0.0077362060546875,
0.0294189453125,
-0.01300811767578125,
0.037261962890625,
0.0240020751953125,
-0.021209716796875,
0.0523681640625,
-0.0035877227783203125,
0.0129241943359375,
-0.0193328857421875,
0.0289764404296875,
-0.0130615234375,
-0.035888671875,
0.0404052734375,
-0.016845703125,
0.0150146484375,
0.0008006095886230469,
0.022369384765625,
-0.0211029052734375,
0.07391357421875,
0.0223388671875,
-0.004840850830078125,
-0.033721923828125,
-0.0077972412109375,
-0.0136871337890625,
-0.00672149658203125,
-0.0172576904296875,
0.0211944580078125,
0.0272979736328125,
-0.002445220947265625,
-0.00302886962890625,
0.001636505126953125,
-0.0296630859375,
-0.0021610260009765625,
0.0098114013671875,
-0.0009860992431640625,
0.00545501708984375,
-0.01611328125,
-0.03631591796875,
-0.01406097412109375,
-0.0189208984375,
0.08624267578125,
-0.01267242431640625,
-0.06927490234375,
0.00876617431640625,
-0.004009246826171875,
0.08209228515625,
0.045684814453125,
-0.01393890380859375,
0.0592041015625,
0.0276336669921875,
-0.0249176025390625,
-0.002613067626953125,
-0.0257720947265625,
-0.0240631103515625,
-0.0675048828125,
0.01230621337890625,
-0.004665374755859375,
0.00917816162109375,
0.01123809814453125,
0.057373046875,
-0.025726318359375,
0.055023193359375,
-0.00737762451171875,
0.049041748046875,
0.0418701171875,
0.0038890838623046875,
0.00870513916015625,
0.0264129638671875,
0.004058837890625,
-0.0080108642578125,
0.01178741455078125,
-0.016998291015625,
0.0265655517578125,
0.0083770751953125,
0.018798828125,
0.0670166015625,
0.00909423828125,
-0.00855255126953125,
-0.0290985107421875,
-0.0242156982421875,
0.038421630859375,
0.00823974609375,
-0.0294189453125,
-0.038238525390625,
-0.005542755126953125,
0.034759521484375,
-0.01357269287109375,
-0.0045928955078125,
-0.0201416015625,
-0.0469970703125,
-0.0144195556640625,
0.023468017578125,
-0.01296234130859375,
-0.01186370849609375,
-0.0176239013671875,
-0.02764892578125,
-0.01776123046875,
0.00783538818359375,
-0.026153564453125,
-0.003917694091796875,
-0.025604248046875,
-0.0229644775390625,
0.045135498046875,
0.0002930164337158203,
0.01219940185546875,
-0.035858154296875,
0.001628875732421875,
-0.023223876953125,
-0.013427734375,
0.068115234375,
0.031829833984375,
-0.0791015625,
0.01885986328125,
-0.050201416015625,
0.00447845458984375,
0.0030231475830078125,
-0.03717041015625,
-0.04656982421875,
-0.0218048095703125,
0.0138092041015625,
0.00007015466690063477,
0.0043487548828125,
-0.05084228515625,
-0.0628662109375,
0.0198974609375,
0.06072998046875,
0.01507568359375,
-0.04742431640625,
0.098388671875,
-0.0032100677490234375,
0.07476806640625,
-0.003795623779296875,
0.051025390625,
0.01540374755859375,
-0.01320648193359375,
0.0214691162109375,
-0.048492431640625,
-0.036346435546875,
0.0025348663330078125,
-0.042938232421875,
-0.0133514404296875,
0.00030231475830078125,
-0.0155029296875,
0.01256561279296875,
-0.01152801513671875,
0.007480621337890625,
-0.020904541015625,
0.0201416015625,
-0.006992340087890625,
0.00780487060546875,
0.017303466796875,
0.005176544189453125,
0.046783447265625,
-0.016387939453125,
-0.01348114013671875,
-0.00441741943359375,
0.0037059783935546875,
-0.000362396240234375,
0.0019397735595703125,
-0.036224365234375,
0.051239013671875,
0.05926513671875,
0.0018157958984375,
0.031341552734375,
0.026885986328125,
0.0192413330078125,
-0.012542724609375,
-0.04107666015625,
-0.015411376953125,
0.0256805419921875,
0.01715087890625,
-0.0151214599609375,
0.013275146484375,
0.0303955078125,
-0.006107330322265625,
0.006694793701171875,
0.06964111328125,
0.055877685546875,
-0.09393310546875,
0.00510406494140625,
0.0030651092529296875,
0.004283905029296875,
0.0204925537109375,
0.0100860595703125,
-0.02838134765625,
-0.033294677734375,
0.05889892578125,
-0.034912109375,
-0.0031757354736328125,
0.03265380859375,
-0.013641357421875,
-0.002292633056640625,
-0.0101318359375,
0.03546142578125,
0.0239410400390625,
0.01474761962890625,
0.0172882080078125,
-0.00969696044921875,
0.03155517578125,
-0.0251617431640625,
-0.0193634033203125,
0.02630615234375,
-0.022186279296875,
-0.058319091796875,
0.022430419921875,
-0.033050537109375,
0.019866943359375,
0.024658203125,
0.01222991943359375,
0.0194854736328125,
0.06427001953125,
-0.020721435546875,
0.039947509765625,
0.04034423828125,
-0.029296875,
-0.046722412109375,
-0.0439453125,
0.009979248046875,
0.0845947265625,
-0.06219482421875,
0.050201416015625,
0.005161285400390625,
-0.02569580078125,
0.002452850341796875,
-0.01496124267578125,
0.03094482421875,
-0.03436279296875,
-0.00803375244140625,
0.01032257080078125,
0.00627899169921875,
0.01276397705078125,
0.0185394287109375,
-0.0178680419921875,
-0.0706787109375,
-0.0528564453125,
0.0201263427734375,
-0.0726318359375,
-0.004238128662109375,
0.0260467529296875,
-0.0771484375,
0.08233642578125,
-0.003627777099609375,
0.059112548828125,
0.0211639404296875,
0.0155792236328125,
-0.018402099609375,
-0.00750732421875,
-0.05908203125,
0.064208984375,
0.009368896484375,
0.057586669921875,
-0.08990478515625,
-0.007781982421875,
0.0008096694946289062,
0.042236328125,
0.0697021484375,
0.02069091796875,
-0.035064697265625,
-0.0174102783203125,
0.00305938720703125,
0.0208740234375,
-0.03143310546875,
0.042999267578125,
0.006435394287109375,
0.00667572021484375,
0.04754638671875,
-0.0014677047729492188,
0.04583740234375,
0.01227569580078125,
-0.02825927734375,
0.017242431640625,
0.01044464111328125,
0.01155853271484375,
-0.007965087890625,
0.0071258544921875,
-0.0433349609375,
0.00621795654296875,
0.038970947265625,
-0.0256195068359375,
0.007457733154296875,
0.03594970703125,
0.0538330078125,
-0.0496826171875,
-0.01505279541015625,
-0.028228759765625,
0.059906005859375,
0.025543212890625,
0.0055694580078125,
0.0355224609375,
0.0163421630859375,
0.0041351318359375,
0.0286102294921875,
0.005023956298828125,
0.0157928466796875,
0.0144195556640625,
0.0113525390625,
0.0238800048828125,
0.042633056640625,
-0.00004035234451293945,
-0.017547607421875,
-0.00916290283203125,
0.013519287109375,
-0.003307342529296875,
-0.0133819580078125,
0.0188140869140625,
0.0028362274169921875,
-0.032440185546875,
0.0272979736328125,
-0.010894775390625,
0.041351318359375,
0.056304931640625,
-0.06036376953125,
0.0087432861328125,
0.0230865478515625,
0.022247314453125,
-0.02288818359375,
-0.035125732421875,
-0.004688262939453125,
0.01412200927734375,
-0.0197601318359375,
-0.035797119140625,
0.00489044189453125,
0.01019287109375,
0.03985595703125,
-0.01201629638671875,
0.0175933837890625,
0.005657196044921875,
-0.0087432861328125,
0.01244354248046875,
-0.004364013671875,
0.005680084228515625,
-0.061248779296875,
-0.06317138671875,
0.0396728515625,
0.06793212890625,
0.03533935546875,
-0.023590087890625,
0.0281219482421875,
0.01617431640625,
-0.037384033203125,
-0.0008258819580078125,
0.0312347412109375,
-0.00988006591796875,
-0.005695343017578125,
-0.0195465087890625,
-0.026580810546875,
-0.025177001953125,
-0.0300750732421875,
0.0110321044921875,
0.0245819091796875,
0.0033130645751953125,
-0.032379150390625,
0.026885986328125,
-0.0018596649169921875,
-0.043060302734375,
0.0078887939453125,
0.003231048583984375,
0.04949951171875,
-0.00839996337890625,
-0.0733642578125,
0.01239776611328125,
-0.050994873046875,
-0.0478515625,
0.0118408203125,
0.02178955078125,
-0.0450439453125,
0.044158935546875,
0.039031982421875,
0.003612518310546875,
0.018524169921875,
-0.034149169921875,
0.02423095703125,
-0.02978515625,
0.00749969482421875,
-0.0009417533874511719,
-0.044158935546875,
-0.03839111328125,
-0.005313873291015625,
0.036407470703125,
0.0086669921875,
0.021087646484375,
0.00913238525390625,
0.01473236083984375,
-0.0282440185546875,
0.036529541015625,
-0.06268310546875,
-0.048309326171875,
0.0499267578125,
-0.039215087890625,
-0.00756072998046875,
0.0251007080078125,
-0.0487060546875,
0.0255584716796875,
0.034149169921875,
-0.00801849365234375,
0.04461669921875,
0.005748748779296875,
0.0022029876708984375,
-0.047271728515625,
-0.01140594482421875,
-0.036163330078125,
-0.008453369140625,
-0.03570556640625,
-0.01538848876953125,
0.0261077880859375,
-0.0162506103515625,
-0.016387939453125,
0.0229644775390625,
0.0067901611328125,
-0.0472412109375,
-0.002750396728515625,
-0.034332275390625,
-0.01473236083984375,
0.038482666015625,
0.0277862548828125,
0.01372528076171875,
0.0171661376953125,
-0.0256195068359375,
0.01561737060546875,
0.0180511474609375,
-0.0007963180541992188,
0.017242431640625,
-0.03167724609375,
0.00908660888671875,
0.0116729736328125,
0.040740966796875,
-0.0173187255859375,
0.01123809814453125,
0.0119781494140625,
-0.019866943359375,
-0.0208282470703125,
0.01128387451171875,
-0.036865234375,
-0.01131439208984375,
0.0017004013061523438,
0.0262298583984375,
-0.00852203369140625,
-0.034423828125,
-0.11358642578125,
-0.000017523765563964844,
0.0225830078125,
-0.0238037109375,
-0.051910400390625,
0.035736083984375,
-0.04351806640625,
0.045013427734375,
-0.049896240234375,
-0.024688720703125,
0.013885498046875,
0.0279693603515625,
-0.0288238525390625,
0.01171875,
-0.0362548828125,
-0.0257415771484375,
-0.02154541015625,
-0.01099395751953125,
0.0087432861328125,
0.01308441162109375,
-0.026336669921875,
-0.00452423095703125,
-0.0245819091796875,
0.035797119140625,
-0.0230865478515625,
-0.00022399425506591797,
0.00597381591796875,
0.0133056640625,
-0.036468505859375,
-0.06463623046875,
0.01493072509765625,
-0.0231781005859375,
-0.0268096923828125,
0.0012426376342773438,
0.01372528076171875,
0.041015625,
-0.004077911376953125,
-0.032379150390625,
0.06988525390625,
-0.0196075439453125,
-0.02728271484375,
-0.0303802490234375,
0.00959014892578125,
-0.0101470947265625,
0.0261077880859375,
0.0009160041809082031,
-0.0328369140625,
-0.01485443115234375,
0.01202392578125,
0.00479888916015625,
-0.003238677978515625,
0.029541015625,
0.0098724365234375,
-0.043670654296875,
-0.004364013671875,
-0.00860595703125,
-0.03338623046875,
0.011932373046875,
-0.011810302734375,
0.03680419921875,
0.051544189453125,
-0.0106964111328125,
0.01983642578125,
-0.002590179443359375,
-0.0277862548828125,
0.0106353759765625,
-0.0242156982421875,
-0.0390625,
-0.036285400390625,
0.0743408203125,
0.0231781005859375,
0.0282745361328125,
-0.01690673828125,
-0.02301025390625,
-0.021087646484375,
-0.0122833251953125,
0.0176544189453125,
0.0167694091796875,
-0.0499267578125,
0.02423095703125,
0.0255584716796875,
-0.049407958984375,
-0.011993408203125,
0.0249176025390625,
-0.062255859375,
0.00199127197265625,
-0.041290283203125,
-0.0286102294921875,
-0.05316162109375,
-0.0145416259765625,
0.0003559589385986328,
-0.024932861328125,
-0.04998779296875,
-0.0005335807800292969,
0.0017442703247070312,
-0.058990478515625,
-0.021453857421875,
-0.01153564453125,
0.00249481201171875,
-0.036407470703125,
0.00807952880859375,
0.0042266845703125,
0.0280303955078125,
-0.04217529296875,
-0.00388336181640625,
-0.0287628173828125,
0.0294036865234375,
0.0007343292236328125,
0.0304107666015625,
0.0303802490234375,
-0.00281524658203125,
0.0169830322265625,
0.01107025146484375,
-0.01551055908203125,
0.0024013519287109375,
-0.02215576171875,
0.0206298828125,
0.0244903564453125,
-0.00634002685546875,
0.046966552734375,
0.00429534912109375,
-0.0036163330078125,
-0.02618408203125,
-0.01428985595703125,
-0.058258056640625,
0.0170135498046875,
0.0006756782531738281,
-0.0031414031982421875,
0.0257720947265625
] |
ee08756129248d21fc31da7320a24cb8d88c2d6d
|
Wordpress Stackexchange
Q: Blog statistics I run small wordpress blog with 3-5 users. People add/edit/remove and read content all the time... What I want is to be able to see some sort of statistics.... which posts/pages are most popular, most updated, commented... which external links are the ones clicked most times... etc....
is there a plugin (not external service) to achieve that?
A: Piwik is similar to Google Analytics, but you install on your own server.
Also- I've seen a private internal intranet site that was tracked on Google Analytics. It was certainly not publicly or search engine accessible, so it is possible to at least use GA on a private site if you're curious to investigate further.
|
Q: Blog statistics I run small wordpress blog with 3-5 users. People add/edit/remove and read content all the time... What I want is to be able to see some sort of statistics.... which posts/pages are most popular, most updated, commented... which external links are the ones clicked most times... etc....
is there a plugin (not external service) to achieve that?
A: Piwik is similar to Google Analytics, but you install on your own server.
Also- I've seen a private internal intranet site that was tracked on Google Analytics. It was certainly not publicly or search engine accessible, so it is possible to at least use GA on a private site if you're curious to investigate further.
|
wordpress
|
{
"language": "en",
"length": 116,
"provenance": "stackexchange_00019.jsonl.gz:408933",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15702"
}
|
[
-0.005123138427734375,
-0.032928466796875,
0.035919189453125,
0.06707763671875,
-0.044158935546875,
-0.00586700439453125,
0.048065185546875,
-0.04718017578125,
0.03167724609375,
-0.0145111083984375,
-0.0711669921875,
0.04034423828125,
-0.050628662109375,
-0.006282806396484375,
0.0161590576171875,
-0.042755126953125,
0.046783447265625,
-0.021453857421875,
0.05926513671875,
0.0097808837890625,
-0.0016803741455078125,
0.049163818359375,
0.055267333984375,
0.020416259765625,
0.006526947021484375,
0.01383209228515625,
0.052642822265625,
-0.0214385986328125,
0.00254058837890625,
-0.0243682861328125,
0.007335662841796875,
0.0021800994873046875,
0.006866455078125,
0.0272674560546875,
-0.01678466796875,
0.03289794921875,
-0.0005307197570800781,
0.0168914794921875,
0.0230560302734375,
0.01430511474609375,
-0.004741668701171875,
0.0205078125,
0.032501220703125,
-0.01483917236328125,
0.01050567626953125,
-0.06463623046875,
0.030792236328125,
-0.051544189453125,
0.0087738037109375,
-0.0297698974609375,
0.00423431396484375,
0.06170654296875,
0.032745361328125,
-0.04052734375,
0.00007086992263793945,
0.038330078125,
0.0589599609375,
-0.01629638671875,
0.06365966796875,
-0.11700439453125,
-0.09014892578125,
-0.046173095703125,
0.0833740234375,
0.035186767578125,
-0.00940704345703125,
-0.0037250518798828125,
-0.0115814208984375,
0.031463623046875,
0.001644134521484375,
-0.0240020751953125,
-0.0182037353515625,
-0.0068206787109375,
-0.048980712890625,
-0.01409149169921875,
-0.024627685546875,
0.0050506591796875,
0.054718017578125,
-0.047760009765625,
-0.029449462890625,
0.050750732421875,
-0.03399658203125,
0.043701171875,
-0.0297698974609375,
-0.005157470703125,
-0.031494140625,
0.0175323486328125,
-0.032257080078125,
-0.015777587890625,
-0.0203704833984375,
-0.021453857421875,
-0.00803375244140625,
-0.051239013671875,
-0.042999267578125,
0.04998779296875,
0.0002887248992919922,
-0.0069122314453125,
-0.00373077392578125,
0.03826904296875,
-0.0189208984375,
-0.01812744140625,
-0.0310516357421875,
0.007617950439453125,
-0.0618896484375,
-0.0032291412353515625,
0.0025005340576171875,
0.046600341796875,
-0.0028285980224609375,
0.01617431640625,
0.0268402099609375,
0.0311126708984375,
0.01136016845703125,
-0.0240325927734375,
-0.0183258056640625,
-0.021453857421875,
-0.0250244140625,
0.045013427734375,
-0.0180206298828125,
0.00028133392333984375,
0.0015954971313476562,
0.0111846923828125,
0.0087127685546875,
0.043670654296875,
-0.0011806488037109375,
-0.0137939453125,
0.0029239654541015625,
-0.00371551513671875,
0.00601959228515625,
-0.0237274169921875,
-0.0265350341796875,
0.0221710205078125,
-0.00954437255859375,
0.0208892822265625,
-0.0254974365234375,
-0.0225982666015625,
-0.04144287109375,
-0.0098876953125,
0.0250396728515625,
-0.03369140625,
0.0034160614013671875,
0.0006108283996582031,
-0.01226806640625,
-0.021240234375,
-0.0014104843139648438,
-0.0206451416015625,
0.0565185546875,
0.0007672309875488281,
0.01898193359375,
0.0208587646484375,
0.04644775390625,
0.001392364501953125,
-0.0033550262451171875,
0.037445068359375,
0.01502227783203125,
-0.008544921875,
0.0019702911376953125,
-0.0214080810546875,
-0.0281829833984375,
-0.01390838623046875,
0.0209808349609375,
0.01253509521484375,
0.03668212890625,
-0.003688812255859375,
-0.01331329345703125,
0.0222015380859375,
-0.002269744873046875,
-0.00185394287109375,
0.0027313232421875,
-0.00605010986328125,
0.036468505859375,
-0.028228759765625,
0.022705078125,
0.00453948974609375,
0.037445068359375,
0.005779266357421875,
0.0207366943359375,
0.0211181640625,
-0.027435302734375,
0.032318115234375,
0.0196075439453125,
0.01427459716796875,
0.0230712890625,
-0.035980224609375,
0.038482666015625,
0.015045166015625,
-0.0000578761100769043,
0.0104827880859375,
-0.01316070556640625,
0.0236663818359375,
0.01505279541015625,
0.011199951171875,
-0.04583740234375,
0.01366424560546875,
-0.06060791015625,
0.06353759765625,
0.02349853515625,
-0.03204345703125,
0.005290985107421875,
-0.008697509765625,
0.00511932373046875,
-0.0709228515625,
0.02911376953125,
0.059417724609375,
-0.0693359375,
0.005664825439453125,
-0.04730224609375,
-0.0127716064453125,
0.0016050338745117188,
0.010833740234375,
-0.032257080078125,
0.023345947265625,
0.034515380859375,
0.01611328125,
-0.02923583984375,
0.0198516845703125,
0.0158233642578125,
0.0016298294067382812,
0.014495849609375,
0.0165252685546875,
0.0038814544677734375,
0.0005831718444824219,
-0.0262908935546875,
0.01088714599609375,
-0.031219482421875,
-0.0021610260009765625,
0.0281982421875,
-0.057586669921875,
-0.0029010772705078125,
-0.035736083984375,
0.001720428466796875,
-0.0204620361328125,
-0.01352691650390625,
0.056427001953125,
0.0150909423828125,
0.037322998046875,
-0.004428863525390625,
-0.0214385986328125,
-0.00994873046875,
-0.06866455078125,
0.020904541015625,
0.056884765625,
0.0263519287109375,
-0.021331787109375,
-0.000904083251953125,
0.00281524658203125,
0.046051025390625,
-0.012969970703125,
0.01220703125,
0.003147125244140625,
-0.0203399658203125,
0.03131103515625,
0.0166168212890625,
0.00165557861328125,
0.005626678466796875,
-0.020294189453125,
-0.027984619140625,
0.03192138671875,
0.01221466064453125,
0.0340576171875,
-0.04986572265625,
0.0386962890625,
-0.025238037109375,
0.043792724609375,
0.01187896728515625,
0.0053558349609375,
0.038543701171875,
-0.0189208984375,
0.0181427001953125,
0.026763916015625,
-0.03009033203125,
-0.013885498046875,
0.02520751953125,
0.0184783935546875,
-0.0161590576171875,
0.04803466796875,
0.031402587890625,
0.018310546875,
-0.0273284912109375,
-0.00955963134765625,
-0.02587890625,
0.0147247314453125,
-0.008453369140625,
0.00812530517578125,
-0.054534912109375,
-0.0174560546875,
0.02154541015625,
-0.05487060546875,
-0.03173828125,
0.0004291534423828125,
-0.037261962890625,
-0.0018663406372070312,
0.0057373046875,
0.045379638671875,
-0.024688720703125,
0.037689208984375,
-0.01806640625,
0.0148468017578125,
0.034210205078125,
-0.096923828125,
0.06494140625,
-0.04217529296875,
0.067138671875,
0.09893798828125,
-0.003467559814453125,
0.02545166015625,
0.01288604736328125,
-0.0027599334716796875,
0.0008139610290527344,
0.0122222900390625,
0.006916046142578125,
0.0016241073608398438,
-0.0208587646484375,
0.055694580078125,
0.009185791015625,
0.0070037841796875,
0.01494598388671875,
-0.048126220703125,
-0.011688232421875,
-0.0037174224853515625,
-0.06927490234375,
-0.0273284912109375,
-0.0252838134765625,
-0.09124755859375,
-0.00983428955078125,
-0.03326416015625,
-0.043212890625,
0.023162841796875,
-0.001689910888671875,
0.0161285400390625,
-0.019805908203125,
-0.0125274658203125,
-0.03607177734375,
-0.07598876953125,
-0.042572021484375,
-0.047454833984375,
-0.011749267578125,
-0.006252288818359375,
0.0023403167724609375,
0.038330078125,
0.005130767822265625,
-0.013427734375,
0.00215911865234375,
-0.0265960693359375,
-0.006683349609375,
-0.028167724609375,
0.0025539398193359375,
0.017303466796875,
-0.05853271484375,
0.0325927734375,
-0.01544189453125,
-0.01039886474609375,
-0.01399993896484375,
-0.017059326171875,
0.013458251953125,
-0.0298004150390625,
0.0335693359375,
-0.06121826171875,
-0.052642822265625,
0.0037689208984375,
-0.004772186279296875,
-0.041900634765625,
0.037750244140625,
-0.004802703857421875,
-0.01351165771484375,
-0.06365966796875,
0.0188140869140625,
-0.02099609375,
-0.0281829833984375,
-0.026519775390625,
0.02862548828125,
-0.0080108642578125,
-0.0203704833984375,
0.0010328292846679688,
-0.0061492919921875,
0.014190673828125,
0.03125,
0.01233673095703125,
-0.008575439453125,
-0.038238525390625,
0.046844482421875,
-0.004917144775390625,
-0.00586700439453125,
-0.01546478271484375,
0.0634765625,
0.01186370849609375,
0.0533447265625,
0.0156402587890625,
0.0186004638671875,
0.042205810546875,
0.01030731201171875,
-0.0210113525390625,
0.001983642578125,
0.050811767578125,
-0.060272216796875,
-0.0022907257080078125,
0.0160675048828125,
0.0045318603515625,
0.006374359130859375,
-0.004863739013671875,
-0.0523681640625,
-0.032012939453125,
-0.0024013519287109375,
-0.0165252685546875,
-0.022003173828125,
0.00958251953125,
-0.03631591796875,
0.085205078125,
-0.031097412109375,
-0.0223541259765625,
0.02581787109375,
0.0565185546875,
0.028564453125,
-0.028778076171875,
0.037322998046875,
-0.0296173095703125,
0.0014057159423828125,
-0.0019893646240234375,
-0.001804351806640625,
-0.002933502197265625,
-0.0006089210510253906,
0.0012969970703125,
0.021728515625,
-0.01013946533203125,
0.0435791015625,
0.03045654296875,
-0.0038814544677734375,
0.005344390869140625,
-0.0199127197265625,
0.00913238525390625,
-0.00832366943359375,
0.01433563232421875,
-0.018341064453125,
-0.01078033447265625,
-0.01200103759765625,
-0.06048583984375,
-0.07745361328125,
-0.054931640625,
-0.03009033203125,
0.00925445556640625,
-0.01082611083984375,
-0.0241241455078125,
-0.033905029296875,
-0.031280517578125,
-0.01329803466796875,
0.0301361083984375,
-0.038177490234375,
0.0167694091796875,
-0.03582763671875,
-0.039398193359375,
0.04296875,
-0.034423828125,
-0.0220489501953125,
0.00033664703369140625,
0.06353759765625,
0.00785064697265625,
-0.008514404296875,
-0.0263519287109375,
0.0182342529296875,
0.0246734619140625,
0.0045928955078125,
0.0294952392578125,
0.036468505859375,
-0.0073089599609375,
-0.0011148452758789062,
0.023895263671875,
0.046905517578125,
-0.046875,
0.049346923828125,
0.00498199462890625,
0.030853271484375,
0.0027599334716796875,
0.008392333984375,
-0.000209808349609375,
0.01111602783203125,
-0.022247314453125,
-0.0308380126953125,
-0.044097900390625,
0.059051513671875,
-0.01485443115234375,
0.054931640625,
-0.0310821533203125,
0.00978851318359375,
0.0150604248046875,
-0.050689697265625,
0.0242767333984375,
0.0005512237548828125,
-0.0009737014770507812,
-0.024627685546875,
0.0132598876953125,
-0.01488494873046875,
0.0513916015625,
-0.001495361328125,
0.027679443359375,
-0.005886077880859375,
0.06201171875,
-0.01311492919921875,
0.012359619140625,
-0.00707244873046875,
0.058319091796875,
0.01387786865234375,
-0.065185546875,
0.0340576171875,
0.008087158203125,
-0.0259552001953125,
0.0148162841796875,
-0.0184173583984375,
0.052825927734375,
0.04046630859375,
-0.03900146484375,
-0.0181732177734375,
-0.017486572265625,
0.0007753372192382812,
-0.0672607421875,
-0.017578125,
-0.056976318359375,
-0.00409698486328125,
0.038726806640625,
-0.004611968994140625,
-0.09002685546875,
0.0400390625,
0.016693115234375,
0.03570556640625,
0.0137786865234375,
-0.0029449462890625,
0.035491943359375,
0.022186279296875,
-0.0215606689453125,
-0.01395416259765625,
-0.0121002197265625,
-0.02105712890625,
-0.0201416015625,
0.021881103515625,
0.04766845703125,
0.0036373138427734375,
-0.001560211181640625,
0.006591796875,
-0.0218658447265625,
-0.0302886962890625,
0.025115966796875,
0.0203399658203125,
-0.036285400390625,
0.011199951171875,
0.01111602783203125,
-0.01497650146484375,
-0.0088348388671875,
0.0194854736328125,
-0.04449462890625,
-0.0078277587890625,
-0.0271759033203125,
-0.0257720947265625,
-0.028594970703125,
-0.0235137939453125,
-0.01861572265625,
0.0077056884765625,
0.007122039794921875,
-0.005855560302734375,
-0.049835205078125,
-0.05194091796875,
-0.003047943115234375,
0.0177001953125,
0.017059326171875,
-0.003269195556640625,
0.028656005859375,
-0.044219970703125,
-0.00014579296112060547,
-0.0601806640625,
0.0003345012664794922,
0.0565185546875,
0.036102294921875,
-0.0262908935546875,
0.0202178955078125,
-0.0347900390625,
-0.0350341796875,
0.0157928466796875,
0.0592041015625,
-0.04815673828125,
-0.0186309814453125,
0.0179290771484375,
0.0281219482421875,
-0.0194244384765625,
-0.023162841796875,
-0.00519561767578125,
-0.02459716796875,
0.01024627685546875,
0.006381988525390625,
-0.01404571533203125,
0.057281494140625,
0.01142120361328125,
0.04595947265625,
0.018402099609375,
0.0494384765625,
-0.0224456787109375,
-0.0279693603515625,
0.03790283203125,
-0.0019092559814453125,
-0.04144287109375,
-0.018341064453125,
-0.027557373046875,
-0.0592041015625,
0.0064239501953125,
-0.0323486328125,
0.005092620849609375,
-0.0146636962890625,
0.01617431640625,
0.00032591819763183594,
-0.0158538818359375,
-0.01059722900390625,
-0.03900146484375,
0.05535888671875,
0.0134429931640625,
-0.0117340087890625,
-0.008148193359375,
-0.014312744140625,
-0.00524139404296875,
0.0263671875,
0.0006475448608398438,
-0.068359375,
-0.01253509521484375,
0.0234375,
0.044342041015625,
0.01442718505859375,
0.0088348388671875,
0.039764404296875,
-0.003475189208984375,
-0.0400390625,
-0.01751708984375,
0.02996826171875,
0.01486968994140625,
0.0200958251953125,
-0.024932861328125,
-0.003490447998046875,
-0.017669677734375,
-0.032958984375,
-0.0220184326171875,
0.041290283203125,
0.032012939453125,
-0.07421875,
0.0019407272338867188,
-0.0196380615234375,
0.01143646240234375,
0.02984619140625,
-0.0252838134765625,
-0.0051727294921875,
-0.0426025390625,
0.064697265625,
0.00933837890625,
-0.01513671875,
0.00012803077697753906,
-0.02447509765625,
-0.007419586181640625,
-0.00859832763671875,
0.033203125,
0.00562286376953125,
-0.0290069580078125,
-0.0248565673828125,
0.03314208984375,
-0.0232391357421875,
-0.046051025390625,
0.01041412353515625,
-0.00959014892578125,
0.0236663818359375,
-0.05511474609375,
0.027008056640625,
-0.0338134765625,
0.007762908935546875,
-0.021697998046875,
-0.0250396728515625,
0.033905029296875,
0.03546142578125,
-0.032745361328125,
0.01137542724609375,
-0.0005321502685546875,
0.0027370452880859375,
0.0228271484375,
-0.01461029052734375,
0.048004150390625,
-0.0216217041015625,
-0.006702423095703125,
0.01200103759765625,
0.0004925727844238281,
-0.055145263671875,
-0.012603759765625,
0.036651611328125,
0.067626953125,
-0.0252685546875,
-0.0026721954345703125,
0.0377197265625,
0.0343017578125,
-0.008056640625,
-0.0138397216796875,
0.008544921875,
-0.038238525390625,
-0.0038356781005859375,
-0.0050201416015625,
-0.035308837890625,
-0.0269012451171875,
-0.01262664794921875,
-0.03240966796875,
0.1075439453125,
-0.0278778076171875,
-0.005443572998046875,
0.0163116455078125,
0.0423583984375,
-0.00955963134765625,
0.041259765625,
-0.0263824462890625,
0.07818603515625,
-0.046173095703125,
0.0452880859375,
-0.04248046875,
-0.006504058837890625,
0.030487060546875,
0.0305023193359375,
0.0645751953125,
0.0252838134765625,
-0.03448486328125,
-0.02581787109375,
0.01210784912109375,
-0.001499176025390625,
-0.023040771484375,
0.048187255859375,
-0.004016876220703125,
0.0283050537109375,
0.0498046875,
-0.0657958984375,
0.0300445556640625,
0.006561279296875,
0.00408935546875,
0.0157928466796875,
0.007556915283203125,
0.0081939697265625,
-0.011505126953125,
0.04754638671875,
-0.026519775390625,
-0.00696563720703125,
-0.005046844482421875,
0.040924072265625,
0.034759521484375,
0.083740234375,
0.1048583984375,
-0.049896240234375,
-0.048248291015625,
-0.0237579345703125,
0.067138671875,
-0.01100921630859375,
0.0083770751953125,
-0.004619598388671875,
0.01180267333984375,
0.01397705078125,
-0.041259765625,
0.004337310791015625,
0.03326416015625,
-0.061004638671875,
0.005146026611328125,
-0.003101348876953125,
0.02459716796875,
-0.066650390625,
-0.053436279296875,
0.034423828125,
0.042083740234375,
-0.00992584228515625,
-0.02056884765625,
0.01032257080078125,
0.04754638671875,
-0.0014085769653320312,
-0.0005841255187988281,
0.02532958984375,
0.00647735595703125,
0.0572509765625,
-0.0216064453125,
-0.0186614990234375,
0.008575439453125,
0.02459716796875,
0.007328033447265625,
0.01262664794921875,
-0.032562255859375,
-0.039459228515625,
0.02655029296875,
-0.030426025390625,
0.0026035308837890625,
-0.005855560302734375,
-0.0231475830078125,
0.024017333984375,
-0.03826904296875,
0.00965118408203125,
-0.02105712890625,
0.024200439453125,
0.0038585662841796875,
0.0157928466796875,
-0.03839111328125,
-0.04473876953125,
0.0202484130859375,
0.041015625,
0.0130615234375,
0.01119232177734375,
0.0267486572265625,
0.01351165771484375,
-0.03057861328125,
-0.003612518310546875,
0.034637451171875,
-0.035552978515625,
-0.0305938720703125,
-0.00279998779296875,
-0.05999755859375,
-0.01141357421875,
-0.0288848876953125,
-0.012115478515625,
0.0165863037109375,
0.007167816162109375,
-0.0185089111328125,
0.0262298583984375,
0.00014460086822509766,
-0.0075225830078125,
0.04156494140625,
-0.023040771484375,
0.0281982421875,
-0.0022430419921875,
-0.058349609375,
0.00855255126953125,
-0.0255889892578125,
-0.0106048583984375,
0.0036754608154296875,
-0.0006632804870605469,
-0.04638671875,
0.050140380859375,
0.01383209228515625,
0.01244354248046875,
0.031890869140625,
-0.0504150390625,
0.03271484375,
0.0286102294921875,
0.00496673583984375,
0.0152740478515625,
-0.042205810546875,
-0.0257720947265625,
0.03179931640625,
0.0271453857421875,
0.00457000732421875,
0.0303955078125,
0.00537872314453125,
0.007183074951171875,
-0.01389312744140625,
-0.0257720947265625,
0.0307464599609375,
-0.00235748291015625,
-0.032745361328125,
0.00926971435546875,
0.00787353515625,
0.001804351806640625,
-0.052825927734375,
-0.007778167724609375,
0.0430908203125,
-0.0221099853515625,
0.0172119140625,
-0.011199951171875,
0.0157318115234375,
-0.019500732421875,
0.003154754638671875,
-0.04156494140625,
-0.0308837890625,
-0.0501708984375,
-0.028167724609375,
0.0176239013671875,
-0.017333984375,
-0.028472900390625,
0.058563232421875,
0.01849365234375,
0.0213165283203125,
-0.01129913330078125,
-0.01219940185546875,
-0.00872039794921875,
0.026580810546875,
0.00437164306640625,
0.0145263671875,
0.02484130859375,
-0.01342010498046875,
0.0205535888671875,
0.00673675537109375,
0.0156097412109375,
0.00946807861328125,
-0.0295867919921875,
0.003662109375,
-0.01381683349609375,
0.028839111328125,
-0.034576416015625,
0.015289306640625,
0.004543304443359375,
0.025848388671875,
0.00543975830078125,
0.027587890625,
-0.00026702880859375,
0.007213592529296875,
-0.0318603515625,
-0.00576019287109375,
0.00449371337890625,
-0.007572174072265625,
-0.0198822021484375,
-0.0141754150390625,
-0.01126861572265625,
-0.00836944580078125,
-0.031005859375,
0.0111083984375,
-0.0030231475830078125,
-0.0091552734375,
-0.028533935546875,
-0.0093994140625,
0.01097869873046875,
0.0117034912109375,
-0.05078125,
-0.01514434814453125,
-0.0229034423828125,
0.01343536376953125,
-0.01580810546875,
0.0384521484375,
0.07086181640625,
-0.03570556640625,
-0.02862548828125,
0.029296875,
0.0221405029296875,
0.07568359375,
-0.03826904296875,
0.0015850067138671875,
0.036285400390625,
-0.01495361328125,
-0.01303863525390625,
-0.05572509765625,
0.0033435821533203125,
-0.051361083984375,
-0.003337860107421875,
-0.0103912353515625,
-0.0006885528564453125,
0.00995635986328125,
-0.047637939453125,
-0.12115478515625,
0.09716796875,
-0.037933349609375,
-0.037139892578125,
-0.0933837890625,
0.0236358642578125,
0.035736083984375,
-0.01012420654296875,
-0.033355712890625,
0.0133209228515625,
-0.06707763671875,
0.004238128662109375,
0.03082275390625,
-0.01334381103515625,
0.00914764404296875,
0.0030803680419921875,
-0.0819091796875,
0.0182952880859375,
0.0228729248046875,
0.0224456787109375,
0.0266571044921875,
-0.0164794921875,
0.036468505859375,
0.023101806640625,
-0.050048828125,
0.040863037109375,
-0.00428009033203125,
0.011505126953125,
0.01502227783203125,
-0.0270233154296875,
-0.042022705078125,
-0.0241546630859375,
0.04461669921875,
0.0175628662109375,
0.031463623046875,
-0.007747650146484375,
-0.0567626953125,
-0.0225830078125,
0.0184478759765625,
-0.0040283203125,
0.00797271728515625,
-0.086181640625,
-0.0023040771484375,
0.02264404296875,
0.00798797607421875,
-0.00807952880859375,
0.0311126708984375,
-0.00777435302734375,
-0.01288604736328125,
0.03619384765625,
-0.0204620361328125,
-0.0201416015625,
0.01233673095703125,
0.02447509765625,
-0.0224456787109375,
-0.01068878173828125,
0.0168609619140625,
-0.01215362548828125,
-0.01218414306640625,
0.050537109375,
0.0247039794921875,
0.01265716552734375,
-0.0379638671875,
0.02142333984375,
0.020294189453125,
0.0252838134765625,
-0.04180908203125,
-0.0274505615234375,
-0.0133056640625,
0.0011959075927734375,
0.0175628662109375,
0.021575927734375,
0.006763458251953125,
-0.022491455078125,
0.0196380615234375,
-0.040618896484375,
0.0177459716796875,
-0.05419921875,
-0.0340576171875,
0.0474853515625,
-0.0169677734375,
-0.0275421142578125,
-0.021820068359375,
-0.01953125,
0.00812530517578125,
-0.030914306640625,
0.0095062255859375,
-0.0218048095703125,
0.0211029052734375,
0.01898193359375,
-0.0252838134765625,
0.01212310791015625
] |
4a62bba41e679ddb425a2fb7e1a3045d654e86a2
|
Wordpress Stackexchange
Q: Is it safe to pass directory path to plugins_url()? plugins_url() function accepts plugin slug or file path to build URL for.
I have following directory structure:
/wp-content/mu-plugins/someplugin/css/file.css
/wp-content/mu-plugins/someplugin/includes/file.php
I need to build URL to file.css in file.php. I can't pass __FILE__ because that will be one level too deep.
plugins_url('css/file.css', __FILE__ )
I can pass __DIR__ to get correct level and it seems to work, but it's not documented as allowed and I am not sure there isn't something to bite me later with this.
plugins_url('css/file.css', __DIR__ )
So, is this adequate? Any better way to build URL for these conditions?
A: __DIR__ is rather new and not always supported. Use dirname( __FILE__ ).
plugins_url() is using …
$folder = dirname(plugin_basename($plugin));
… so yes, it is safe.
Just use plugins_url( 'subfolder/file.css', dirname( __FILE__ ) )
|
Q: Is it safe to pass directory path to plugins_url()? plugins_url() function accepts plugin slug or file path to build URL for.
I have following directory structure:
/wp-content/mu-plugins/someplugin/css/file.css
/wp-content/mu-plugins/someplugin/includes/file.php
I need to build URL to file.css in file.php. I can't pass __FILE__ because that will be one level too deep.
plugins_url('css/file.css', __FILE__ )
I can pass __DIR__ to get correct level and it seems to work, but it's not documented as allowed and I am not sure there isn't something to bite me later with this.
plugins_url('css/file.css', __DIR__ )
So, is this adequate? Any better way to build URL for these conditions?
A: __DIR__ is rather new and not always supported. Use dirname( __FILE__ ).
plugins_url() is using …
$folder = dirname(plugin_basename($plugin));
… so yes, it is safe.
Just use plugins_url( 'subfolder/file.css', dirname( __FILE__ ) )
|
wordpress
|
{
"language": "en",
"length": 136,
"provenance": "stackexchange_00019.jsonl.gz:408941",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15731"
}
|
[
0.053070068359375,
-0.033355712890625,
0.0096282958984375,
-0.06805419921875,
-0.012481689453125,
0.01047515869140625,
-0.004039764404296875,
0.0281524658203125,
-0.043701171875,
-0.002567291259765625,
-0.004764556884765625,
0.0279541015625,
-0.02618408203125,
-0.038848876953125,
0.035980224609375,
-0.016326904296875,
0.0201568603515625,
-0.01065826416015625,
0.0016794204711914062,
-0.01282501220703125,
0.0221405029296875,
0.00859832763671875,
0.01397705078125,
0.036590576171875,
0.043670654296875,
-0.0008835792541503906,
0.03363037109375,
-0.03082275390625,
0.01300811767578125,
-0.0175628662109375,
0.0155792236328125,
-0.0121002197265625,
0.0109710693359375,
0.0198822021484375,
0.012847900390625,
0.0012788772583007812,
0.048248291015625,
-0.00836944580078125,
0.01641845703125,
0.0250091552734375,
0.060943603515625,
-0.041259765625,
-0.0033721923828125,
0.04388427734375,
0.0013475418090820312,
-0.052337646484375,
0.06573486328125,
-0.028076171875,
0.0081939697265625,
-0.0057220458984375,
0.013885498046875,
0.01201629638671875,
0.0180206298828125,
-0.03387451171875,
-0.01255035400390625,
-0.0036106109619140625,
-0.0183563232421875,
0.0284881591796875,
-0.0012655258178710938,
-0.018341064453125,
-0.0088653564453125,
0.028961181640625,
0.022216796875,
0.037841796875,
-0.0015649795532226562,
-0.0024051666259765625,
-0.0283355712890625,
0.0124359130859375,
-0.0095672607421875,
0.02801513671875,
0.021759033203125,
-0.039276123046875,
0.019195556640625,
-0.0223541259765625,
-0.034210205078125,
-0.0098876953125,
0.0142974853515625,
-0.01175689697265625,
0.0482177734375,
-0.0438232421875,
-0.00440216064453125,
0.013824462890625,
-0.04217529296875,
-0.0259552001953125,
0.031005859375,
0.01666259765625,
-0.00937652587890625,
-0.024658203125,
-0.0255279541015625,
0.01605224609375,
-0.0328369140625,
0.03851318359375,
0.0200347900390625,
-0.02850341796875,
-0.04119873046875,
-0.003932952880859375,
0.0183868408203125,
0.0374755859375,
-0.0031147003173828125,
0.00971221923828125,
0.005035400390625,
-0.031341552734375,
-0.0089111328125,
-0.02044677734375,
-0.004711151123046875,
0.08782958984375,
0.0228424072265625,
0.036590576171875,
0.01580810546875,
-0.0011920928955078125,
0.023468017578125,
0.004863739013671875,
-0.02606201171875,
-0.07525634765625,
0.032379150390625,
0.05548095703125,
-0.024383544921875,
0.029510498046875,
0.0238037109375,
-0.0008783340454101562,
0.0016794204711914062,
0.015167236328125,
-0.0092315673828125,
0.0316162109375,
-0.01019287109375,
0.0015325546264648438,
-0.00856781005859375,
-0.0221405029296875,
-0.026611328125,
-0.0203399658203125,
-0.010833740234375,
0.037933349609375,
0.02294921875,
0.0077667236328125,
-0.01497650146484375,
0.004047393798828125,
0.031402587890625,
0.02294921875,
0.006256103515625,
-0.025299072265625,
-0.017669677734375,
-0.010040283203125,
0.012237548828125,
-0.024017333984375,
0.01531219482421875,
0.029510498046875,
0.00836181640625,
0.0125732421875,
0.00262451171875,
-0.05194091796875,
0.03875732421875,
-0.055938720703125,
0.03753662109375,
-0.005802154541015625,
-0.00966644287109375,
-0.051422119140625,
0.01462554931640625,
-0.04644775390625,
0.022613525390625,
-0.034027099609375,
-0.030731201171875,
0.003223419189453125,
0.032562255859375,
-0.05419921875,
-0.029571533203125,
-0.030609130859375,
-0.02862548828125,
0.007678985595703125,
0.0170135498046875,
0.002780914306640625,
0.0275726318359375,
0.017059326171875,
-0.03594970703125,
0.03399658203125,
0.0418701171875,
0.005619049072265625,
-0.006622314453125,
0.04913330078125,
0.0169677734375,
0.03326416015625,
0.023956298828125,
-0.030975341796875,
0.09527587890625,
-0.0197296142578125,
-0.0268096923828125,
0.0090789794921875,
-0.0123443603515625,
-0.01364898681640625,
0.037567138671875,
-0.0119781494140625,
0.0266571044921875,
0.01580810546875,
-0.053619384765625,
0.0036487579345703125,
-0.03192138671875,
0.00934600830078125,
0.01309967041015625,
0.0183868408203125,
-0.018218994140625,
0.00550079345703125,
-0.0069427490234375,
0.00988006591796875,
0.0066070556640625,
-0.00490570068359375,
-0.004398345947265625,
0.00421142578125,
0.00576019287109375,
0.03070068359375,
-0.019927978515625,
0.0148468017578125,
0.0018520355224609375,
-0.0063934326171875,
0.01044464111328125,
-0.0731201171875,
-0.0099639892578125,
0.031829833984375,
-0.0180816650390625,
-0.0030956268310546875,
-0.01263427734375,
0.0269775390625,
0.00844573974609375,
0.007404327392578125,
-0.0038242340087890625,
-0.01093292236328125,
-0.006256103515625,
-0.0097198486328125,
-0.010101318359375,
-0.01885986328125,
-0.0157470703125,
0.0035228729248046875,
-0.006900787353515625,
0.020355224609375,
0.0280914306640625,
0.02569580078125,
-0.01015472412109375,
0.000057578086853027344,
0.0282440185546875,
-0.07574462890625,
0.0113525390625,
0.034027099609375,
0.03619384765625,
0.0307159423828125,
-0.0252532958984375,
-0.0298614501953125,
0.06646728515625,
-0.08544921875,
-0.037200927734375,
-0.0010747909545898438,
-0.00728607177734375,
0.00751495361328125,
0.00738525390625,
0.006900787353515625,
0.0196380615234375,
-0.00766754150390625,
-0.0166778564453125,
0.02081298828125,
-0.0092010498046875,
-0.05072021484375,
0.01319122314453125,
0.011810302734375,
0.021697998046875,
0.00971221923828125,
-0.030731201171875,
0.01442718505859375,
-0.053863525390625,
0.045074462890625,
-0.0171661376953125,
0.017578125,
0.00016379356384277344,
0.0330810546875,
0.01702880859375,
-0.0181121826171875,
-0.0179443359375,
0.0282440185546875,
0.07305908203125,
-0.030487060546875,
-0.011138916015625,
-0.0265960693359375,
-0.006755828857421875,
0.0224609375,
-0.0260772705078125,
-0.00772857666015625,
-0.0274658203125,
-0.0126495361328125,
-0.0369873046875,
-0.03448486328125,
0.0316162109375,
0.04327392578125,
0.053955078125,
0.043365478515625,
0.0693359375,
-0.020355224609375,
-0.03106689453125,
0.0516357421875,
-0.01409149169921875,
-0.0230865478515625,
0.052398681640625,
0.0298919677734375,
0.00324249267578125,
-0.00545501708984375,
0.019012451171875,
0.023345947265625,
-0.004669189453125,
-0.027618408203125,
-0.00420379638671875,
0.024078369140625,
0.0002923011779785156,
0.0020122528076171875,
-0.017059326171875,
-0.0296783447265625,
-0.050048828125,
-0.04681396484375,
0.016387939453125,
-0.01397705078125,
0.01459503173828125,
-0.03546142578125,
-0.0207366943359375,
0.004550933837890625,
-0.08404541015625,
-0.0675048828125,
-0.0271453857421875,
-0.046539306640625,
-0.01265716552734375,
0.0452880859375,
-0.037689208984375,
0.0012722015380859375,
0.06927490234375,
0.00308990478515625,
-0.03607177734375,
-0.0160980224609375,
-0.051177978515625,
-0.054473876953125,
-0.06732177734375,
0.0179901123046875,
-0.001003265380859375,
0.007328033447265625,
-0.005878448486328125,
0.05218505859375,
0.0058135986328125,
-0.04052734375,
-0.0112762451171875,
0.090087890625,
0.0262603759765625,
-0.01145172119140625,
0.020111083984375,
-0.0372314453125,
-0.0248565673828125,
-0.02069091796875,
0.101318359375,
0.0504150390625,
-0.05523681640625,
0.025299072265625,
-0.0005207061767578125,
-0.00031375885009765625,
-0.00849151611328125,
0.019744873046875,
0.0187225341796875,
-0.00861358642578125,
-0.0024051666259765625,
-0.043243408203125,
-0.0294342041015625,
-0.010040283203125,
-0.037078857421875,
0.057586669921875,
0.0098876953125,
0.007465362548828125,
0.00785064697265625,
0.041748046875,
0.0196990966796875,
0.004673004150390625,
0.0264129638671875,
-0.035430908203125,
-0.0006890296936035156,
0.0012884140014648438,
0.0241241455078125,
-0.0217132568359375,
0.07080078125,
0.011505126953125,
-0.03155517578125,
0.01666259765625,
0.0162506103515625,
-0.005664825439453125,
0.00945281982421875,
-0.04119873046875,
0.026885986328125,
0.02056884765625,
-0.01971435546875,
0.056549072265625,
-0.0567626953125,
-0.0109710693359375,
-0.06427001953125,
0.025726318359375,
-0.033172607421875,
-0.031524658203125,
0.01013946533203125,
0.043701171875,
-0.07177734375,
-0.06658935546875,
-0.031463623046875,
0.003139495849609375,
-0.07745361328125,
-0.0189971923828125,
-0.0134429931640625,
-0.050384521484375,
0.05059814453125,
-0.048736572265625,
-0.004528045654296875,
-0.057830810546875,
0.01324462890625,
0.0218505859375,
0.0005893707275390625,
0.002410888671875,
0.0148468017578125,
-0.00909423828125,
0.0005216598510742188,
-0.0016717910766601562,
-0.0797119140625,
-0.03082275390625,
-0.0177459716796875,
0.07562255859375,
0.0212554931640625,
-0.0204620361328125,
-0.0201873779296875,
0.05926513671875,
-0.032196044921875,
0.03955078125,
0.00348663330078125,
0.0264129638671875,
-0.005908966064453125,
0.022918701171875,
0.0248565673828125,
0.0011806488037109375,
0.0131072998046875,
-0.0206146240234375,
-0.0634765625,
-0.027435302734375,
-0.032928466796875,
-0.0242156982421875,
0.0255279541015625,
-0.0391845703125,
0.003997802734375,
-0.0307769775390625,
-0.0250396728515625,
-0.033203125,
-0.005828857421875,
-0.0271453857421875,
-0.013427734375,
0.0194549560546875,
0.0187225341796875,
-0.00722503662109375,
-0.0003750324249267578,
-0.0110626220703125,
0.036376953125,
0.0251007080078125,
-0.02093505859375,
0.015472412109375,
0.039581298828125,
0.033447265625,
-0.0007491111755371094,
0.034454345703125,
0.013641357421875,
-0.0143890380859375,
0.035400390625,
0.0087127685546875,
0.017333984375,
0.0164642333984375,
0.0274658203125,
-0.0185394287109375,
-0.038543701171875,
0.026458740234375,
-0.018402099609375,
-0.027130126953125,
0.050933837890625,
0.0125274658203125,
0.0031890869140625,
-0.03155517578125,
0.00748443603515625,
0.020111083984375,
-0.0220489501953125,
-0.0257110595703125,
-0.0709228515625,
0.022857666015625,
-0.021514892578125,
0.0594482421875,
0.032745361328125,
-0.0121002197265625,
0.07354736328125,
0.03173828125,
-0.0140380859375,
0.04998779296875,
0.074462890625,
-0.005523681640625,
0.0250091552734375,
0.0465087890625,
-0.03240966796875,
-0.01690673828125,
0.0010213851928710938,
0.051025390625,
0.007080078125,
-0.003002166748046875,
-0.057159423828125,
-0.005062103271484375,
0.0175628662109375,
-0.0146636962890625,
-0.00200653076171875,
0.0276031494140625,
0.003459930419921875,
-0.06060791015625,
-0.0029201507568359375,
-0.0021533966064453125,
-0.045867919921875,
-0.0506591796875,
0.048065185546875,
-0.0021877288818359375,
-0.01103973388671875,
-0.01122283935546875,
0.0275115966796875,
0.022674560546875,
-0.007595062255859375,
0.0002982616424560547,
-0.00794219970703125,
0.000644683837890625,
0.0122528076171875,
0.007633209228515625,
-0.00994110107421875,
-0.0014820098876953125,
-0.0037078857421875,
0.043548583984375,
-0.04217529296875,
-0.01132965087890625,
0.016998291015625,
0.051361083984375,
-0.024627685546875,
-0.0421142578125,
0.0229034423828125,
0.0026607513427734375,
-0.02838134765625,
-0.00839996337890625,
-0.03961181640625,
0.001163482666015625,
-0.0310821533203125,
-0.0175018310546875,
0.034637451171875,
0.0250396728515625,
-0.0183563232421875,
-0.0160064697265625,
-0.0209197998046875,
0.0028228759765625,
0.0004756450653076172,
-0.03997802734375,
0.017486572265625,
0.01611328125,
0.041473388671875,
-0.002956390380859375,
-0.0264892578125,
-0.050567626953125,
-0.0184173583984375,
-0.03485107421875,
-0.0036334991455078125,
0.039794921875,
-0.039581298828125,
0.041259765625,
-0.01146697998046875,
-0.017181396484375,
0.02703857421875,
0.02752685546875,
0.00812530517578125,
0.018402099609375,
-0.064697265625,
0.029693603515625,
-0.014404296875,
0.004180908203125,
-0.00351715087890625,
-0.02911376953125,
-0.05206298828125,
-0.025146484375,
-0.023162841796875,
0.0006432533264160156,
-0.0135498046875,
0.018096923828125,
0.0011701583862304688,
0.0207672119140625,
0.002079010009765625,
0.0069580078125,
-0.014678955078125,
0.033660888671875,
0.0080413818359375,
0.016632080078125,
0.00424957275390625,
-0.0169677734375,
-0.006320953369140625,
0.00037217140197753906,
0.0009784698486328125,
-0.018463134765625,
-0.01059722900390625,
-0.0408935546875,
0.0292510986328125,
0.0263519287109375,
0.091796875,
0.00708770751953125,
0.00567626953125,
-0.01215362548828125,
-0.005764007568359375,
-0.01739501953125,
0.0244140625,
0.005489349365234375,
0.0058441162109375,
-0.00106048583984375,
0.00809478759765625,
0.0377197265625,
-0.045745849609375,
-0.0026702880859375,
0.00402069091796875,
-0.00872039794921875,
0.0272369384765625,
-0.006366729736328125,
-0.033966064453125,
0.049224853515625,
0.1065673828125,
0.022186279296875,
0.05914306640625,
0.0163726806640625,
0.0190887451171875,
0.0232086181640625,
-0.00768280029296875,
0.06341552734375,
-0.0171661376953125,
0.07342529296875,
0.0075836181640625,
0.0120697021484375,
0.058197021484375,
-0.036895751953125,
0.032470703125,
0.0260467529296875,
0.044525146484375,
-0.072265625,
0.0254974365234375,
-0.0081634521484375,
0.00005519390106201172,
0.0601806640625,
-0.0031795501708984375,
0.007549285888671875,
0.0101776123046875,
0.00626373291015625,
0.006855010986328125,
-0.022674560546875,
0.0169677734375,
0.010101318359375,
0.0115509033203125,
0.05059814453125,
0.01471710205078125,
-0.01084136962890625,
-0.04437255859375,
-0.055694580078125,
0.049102783203125,
-0.0279998779296875,
-0.0147552490234375,
-0.005138397216796875,
0.0008692741394042969,
-0.0093231201171875,
0.00826263427734375,
0.05145263671875,
-0.030120849609375,
0.0117034912109375,
-0.014495849609375,
0.0148162841796875,
0.058502197265625,
0.031036376953125,
0.00748443603515625,
-0.043548583984375,
0.03460693359375,
-0.009368896484375,
0.051300048828125,
0.020355224609375,
-0.00847625732421875,
0.03997802734375,
-0.018341064453125,
-0.0033721923828125,
-0.00959014892578125,
0.04901123046875,
-0.0158233642578125,
0.02142333984375,
0.10675048828125,
-0.01465606689453125,
-0.037811279296875,
0.011810302734375,
0.01357269287109375,
-0.01158905029296875,
-0.01763916015625,
-0.0052947998046875,
-0.039093017578125,
-0.0009675025939941406,
-0.0074920654296875,
0.000017404556274414062,
0.01806640625,
-0.0177459716796875,
-0.024993896484375,
0.05487060546875,
-0.0186767578125,
0.0077362060546875,
0.0192413330078125,
0.0203704833984375,
-0.004940032958984375,
0.01751708984375,
-0.006256103515625,
0.02972412109375,
-0.0142364501953125,
-0.017120361328125,
-0.01119232177734375,
-0.0008068084716796875,
-0.007228851318359375,
0.027191162109375,
0.0360107421875,
0.0247955322265625,
-0.05902099609375,
-0.00782012939453125,
0.03607177734375,
0.033050537109375,
0.0194244384765625,
0.050079345703125,
0.0377197265625,
0.0311431884765625,
0.049896240234375,
-0.007671356201171875,
0.042205810546875,
-0.02935791015625,
0.00295257568359375,
0.04534912109375,
-0.005706787109375,
-0.04071044921875,
-0.00992584228515625,
-0.00818634033203125,
-0.03460693359375,
0.0018548965454101562,
-0.001827239990234375,
0.003826141357421875,
0.0255279541015625,
0.0227813720703125,
0.033782958984375,
0.0294647216796875,
-0.019287109375,
0.0145263671875,
0.05194091796875,
0.0084075927734375,
0.0005784034729003906,
-0.015472412109375,
-0.0025196075439453125,
0.025238037109375,
-0.004535675048828125,
-0.0199432373046875,
0.041351318359375,
-0.004947662353515625,
0.042877197265625,
0.01715087890625,
0.0260467529296875,
-0.02276611328125,
0.005237579345703125,
0.0190582275390625,
0.033538818359375,
-0.0369873046875,
-0.0455322265625,
-0.01401519775390625,
-0.020172119140625,
0.01540374755859375,
0.007537841796875,
0.0270538330078125,
-0.0171051025390625,
-0.0047454833984375,
-0.0452880859375,
-0.0090789794921875,
0.0268707275390625,
0.0267791748046875,
-0.007232666015625,
-0.03900146484375,
-0.005710601806640625,
-0.00232696533203125,
-0.026611328125,
-0.0018606185913085938,
0.0164794921875,
0.02313232421875,
0.0024814605712890625,
0.03704833984375,
0.0155029296875,
-0.018218994140625,
0.01299285888671875,
0.0325927734375,
0.006122589111328125,
-0.0217742919921875,
0.0191802978515625,
-0.0272216796875,
0.03668212890625,
0.00159454345703125,
0.0244293212890625,
0.06719970703125,
0.055877685546875,
-0.005588531494140625,
-0.014495849609375,
0.0127716064453125,
0.014129638671875,
-0.03094482421875,
0.05499267578125,
-0.0309906005859375,
0.0565185546875,
0.01218414306640625,
-0.00830841064453125,
-0.0499267578125,
-0.007091522216796875,
0.05963134765625,
-0.0228424072265625,
0.035888671875,
-0.0142059326171875,
0.005611419677734375,
0.00969696044921875,
-0.05572509765625,
0.00701904296875,
-0.0241241455078125,
-0.0086212158203125,
0.01102447509765625,
-0.001888275146484375,
0.010162353515625,
-0.0171051025390625,
0.0294189453125,
0.00208282470703125,
0.050445556640625,
0.018646240234375,
-0.02569580078125,
0.02557373046875,
-0.0072784423828125,
0.0048828125,
0.0188446044921875,
0.0125274658203125,
0.00959014892578125,
-0.029052734375,
-0.03997802734375,
-0.053314208984375,
0.0748291015625,
0.021209716796875,
0.1468505859375,
-0.09564208984375,
0.047882080078125,
0.0139923095703125,
-0.00424957275390625,
-0.00727081298828125,
0.022979736328125,
-0.02032470703125,
-0.0193634033203125,
0.01001739501953125,
-0.00437164306640625,
-0.038116455078125,
-0.0035457611083984375,
0.03802490234375,
-0.04034423828125,
-0.0225830078125,
0.007488250732421875,
0.028472900390625,
0.007579803466796875,
0.0227508544921875,
-0.021820068359375,
-0.060089111328125,
-0.05413818359375,
0.01374053955078125,
0.031463623046875,
0.032012939453125,
-0.019012451171875,
0.0275421142578125,
-0.0030269622802734375,
-0.00128936767578125,
0.027374267578125,
-0.0215911865234375,
0.034423828125,
0.022918701171875,
-0.056884765625,
-0.0504150390625,
0.01142120361328125,
-0.01336669921875,
-0.0009198188781738281,
0.0019683837890625,
0.08209228515625,
-0.00167083740234375,
-0.0233154296875,
-0.01381683349609375,
0.0411376953125,
0.03228759765625,
-0.0036067962646484375,
0.02911376953125,
0.01419830322265625,
-0.0188446044921875,
-0.01580810546875,
-0.07012939453125,
-0.0157470703125,
-0.0616455078125,
0.0031185150146484375,
0.016326904296875,
-0.0205230712890625,
-0.037811279296875,
0.01107025146484375,
0.0218353271484375,
0.0115814208984375,
-0.00417327880859375,
-0.049102783203125,
0.00760650634765625,
-0.0193634033203125,
0.08477783203125,
-0.0280609130859375,
0.019012451171875,
-0.0035533905029296875,
0.0005245208740234375,
-0.053375244140625,
-0.0237884521484375,
-0.02935791015625,
0.0340576171875,
-0.0226287841796875,
0.048797607421875,
0.04559326171875,
-0.028839111328125,
-0.0128173828125,
0.06707763671875,
0.039337158203125,
0.12255859375,
-0.036834716796875,
-0.0240478515625,
0.00975799560546875,
0.0274200439453125,
-0.03277587890625,
-0.07012939453125,
-0.01065826416015625,
-0.014923095703125,
0.025054931640625,
0.00934600830078125,
-0.021759033203125,
-0.0188140869140625,
-0.048309326171875,
-0.07891845703125,
0.038055419921875,
0.0018911361694335938,
-0.04034423828125,
0.0115966796875,
-0.00722503662109375,
0.0003883838653564453,
0.03515625,
0.017791748046875,
-0.02734375,
-0.031951904296875,
0.0002593994140625,
0.0219268798828125,
0.04034423828125,
0.002574920654296875,
0.0411376953125,
0.00817108154296875,
0.05450439453125,
0.034759521484375,
-0.004299163818359375,
-0.01837158203125,
-0.0069122314453125,
0.040191650390625,
0.052886962890625,
0.01377105712890625,
0.02685546875,
0.062408447265625,
-0.01442718505859375,
-0.022308349609375,
-0.01953125,
-0.01105499267578125,
0.0165863037109375,
0.0821533203125,
0.0257415771484375,
0.0192413330078125,
-0.03448486328125,
-0.04449462890625,
-0.046234130859375,
-0.0111236572265625,
0.0126953125,
0.0237274169921875,
-0.0609130859375,
0.0283050537109375,
0.03271484375,
0.0162353515625,
-0.01467132568359375,
-0.0031795501708984375,
0.0018224716186523438,
-0.0289764404296875,
0.0170135498046875,
-0.018951416015625,
0.02069091796875,
-0.0232086181640625,
0.052825927734375,
-0.0234832763671875,
0.01108551025390625,
0.006755828857421875,
0.0288848876953125,
0.0299835205078125,
0.01983642578125,
0.01654052734375,
0.0296173095703125,
-0.036102294921875,
0.008026123046875,
0.0145263671875,
0.03564453125,
-0.018035888671875,
-0.0269775390625,
-0.026885986328125,
0.00260162353515625,
-0.00681304931640625,
-0.02154541015625,
-0.0017900466918945312,
0.049774169921875,
0.0186920166015625,
0.10076904296875,
0.001735687255859375,
-0.01468658447265625,
0.0107421875,
0.026763916015625,
-0.004184722900390625,
-0.0258636474609375,
0.03228759765625,
-0.05877685546875,
-0.01393890380859375,
0.0306243896484375,
-0.03216552734375,
-0.0484619140625,
0.0192108154296875,
-0.051483154296875,
0.009063720703125,
0.006572723388671875
] |
1d3b82c5c98e01ee2df386e11667ee13ce939103
|
Wordpress Stackexchange
Q: Hosting alternatives to WordPress.com I've been hosting my blog on WordPress.com for a few years now, but am starting to feel a bit constrained by some of the limitations. The most troublesome in priority order are inability to include JavaScript in my posts, the requirement to pay an ongoing fee for customized CSS, and inability to install my own WP plugins.
I've thought about self-hosting, but the last thing I need is another side project of managing the blogging software. It's tough enough finding time to keep posting new content on the blog. I'm not interested in installing upgrades, doing backups, etc.
Long story short, I am wondering if there is another Wordpress hosting provider out there that offers the benefits of the virtually maintenance free hosting of WordPress.com, but without the restriction on CSS and Javasscript.
Any suggestions?
A: Have a look at
*
*page.ly
*WP Engine
I'm sure there are plenty of others.
I'm specifically discounting hosts that provide 1-click installs because even they require some administration.
|
Q: Hosting alternatives to WordPress.com I've been hosting my blog on WordPress.com for a few years now, but am starting to feel a bit constrained by some of the limitations. The most troublesome in priority order are inability to include JavaScript in my posts, the requirement to pay an ongoing fee for customized CSS, and inability to install my own WP plugins.
I've thought about self-hosting, but the last thing I need is another side project of managing the blogging software. It's tough enough finding time to keep posting new content on the blog. I'm not interested in installing upgrades, doing backups, etc.
Long story short, I am wondering if there is another Wordpress hosting provider out there that offers the benefits of the virtually maintenance free hosting of WordPress.com, but without the restriction on CSS and Javasscript.
Any suggestions?
A: Have a look at
*
*page.ly
*WP Engine
I'm sure there are plenty of others.
I'm specifically discounting hosts that provide 1-click installs because even they require some administration.
|
wordpress
|
{
"language": "en",
"length": 170,
"provenance": "stackexchange_00019.jsonl.gz:408947",
"question_score": "6",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15755"
}
|
[
0.0214996337890625,
0.0001647472381591797,
-0.005702972412109375,
0.0226898193359375,
-0.0090179443359375,
-0.03643798828125,
0.03350830078125,
-0.02740478515625,
-0.03228759765625,
-0.0080108642578125,
-0.019287109375,
0.0128326416015625,
-0.034576416015625,
-0.050323486328125,
0.04412841796875,
-0.0361328125,
0.037872314453125,
0.00446319580078125,
0.04119873046875,
-0.007053375244140625,
0.02191162109375,
0.01345062255859375,
0.00778961181640625,
0.054901123046875,
0.040313720703125,
-0.0171661376953125,
0.05560302734375,
-0.041107177734375,
0.057373046875,
-0.003261566162109375,
0.03387451171875,
-0.061798095703125,
0.00836944580078125,
0.040802001953125,
-0.024749755859375,
-0.0343017578125,
-0.045135498046875,
0.034332275390625,
-0.0014925003051757812,
0.0184478759765625,
0.003459930419921875,
-0.000823974609375,
0.05181884765625,
0.0211181640625,
0.0238189697265625,
-0.0400390625,
0.0205841064453125,
-0.07025146484375,
0.00311279296875,
-0.045074462890625,
0.00583648681640625,
0.00238800048828125,
0.033050537109375,
-0.0318603515625,
-0.01259613037109375,
0.0031032562255859375,
0.049957275390625,
0.0252838134765625,
0.045989990234375,
-0.1181640625,
-0.0810546875,
0.0225067138671875,
0.051025390625,
0.07073974609375,
0.0181121826171875,
0.007228851318359375,
0.040191650390625,
0.0301361083984375,
-0.057464599609375,
0.005023956298828125,
0.03143310546875,
-0.037109375,
-0.005382537841796875,
-0.0200347900390625,
-0.03326416015625,
-0.01418304443359375,
0.0237579345703125,
-0.039093017578125,
0.007061004638671875,
0.008544921875,
-0.026519775390625,
-0.0017976760864257812,
-0.00836944580078125,
-0.046417236328125,
-0.00742340087890625,
-0.02227783203125,
-0.0162506103515625,
0.0180816650390625,
-0.04052734375,
-0.0289306640625,
-0.01708984375,
-0.053192138671875,
-0.05987548828125,
-0.0006437301635742188,
0.0095062255859375,
-0.0170440673828125,
0.0306396484375,
0.0230255126953125,
-0.00830078125,
-0.0169525146484375,
0.01073455810546875,
-0.04248046875,
0.0177001953125,
0.005985260009765625,
-0.022705078125,
0.0217437744140625,
0.01251220703125,
0.02496337890625,
0.0166473388671875,
0.02197265625,
-0.013702392578125,
-0.01641845703125,
0.0148468017578125,
-0.006694793701171875,
-0.019287109375,
0.0018472671508789062,
-0.004039764404296875,
0.0030498504638671875,
-0.01328277587890625,
0.005626678466796875,
0.0126190185546875,
0.03021240234375,
0.0208282470703125,
0.00093841552734375,
-0.00911712646484375,
0.010650634765625,
-0.0032806396484375,
-0.05126953125,
-0.0207061767578125,
0.00946807861328125,
-0.0269775390625,
0.00601959228515625,
0.031158447265625,
0.037017822265625,
-0.00641632080078125,
-0.0228118896484375,
0.03167724609375,
-0.011138916015625,
-0.00510406494140625,
-0.00984954833984375,
0.02276611328125,
-0.023651123046875,
-0.0196380615234375,
-0.005931854248046875,
0.02081298828125,
-0.00745391845703125,
0.0207366943359375,
0.0372314453125,
-0.01141357421875,
-0.015777587890625,
0.039093017578125,
0.0012483596801757812,
0.053863525390625,
-0.017181396484375,
-0.00951385498046875,
-0.07696533203125,
-0.0254974365234375,
-0.04229736328125,
0.043243408203125,
-0.029022216796875,
-0.0148162841796875,
0.004734039306640625,
0.047760009765625,
-0.0223846435546875,
-0.0357666015625,
0.013580322265625,
-0.0275726318359375,
-0.01212310791015625,
0.021636962890625,
-0.0156402587890625,
0.017333984375,
0.01354217529296875,
0.0299072265625,
0.0213165283203125,
0.027984619140625,
0.01849365234375,
0.0106201171875,
0.024383544921875,
0.0165252685546875,
0.010009765625,
0.00098419189453125,
-0.016815185546875,
0.0682373046875,
-0.01922607421875,
-0.0271453857421875,
0.00970458984375,
0.0254974365234375,
0.07061767578125,
0.0022830963134765625,
0.034912109375,
-0.005462646484375,
0.00005626678466796875,
-0.02288818359375,
0.0819091796875,
-0.017974853515625,
-0.060791015625,
-0.02142333984375,
0.01399993896484375,
-0.029205322265625,
-0.032196044921875,
0.0197296142578125,
0.021331787109375,
-0.023712158203125,
0.0048828125,
-0.00473785400390625,
-0.01824951171875,
0.0039005279541015625,
0.00582122802734375,
0.00977325439453125,
0.004077911376953125,
0.0014171600341796875,
-0.02557373046875,
0.0172271728515625,
-0.035064697265625,
-0.038177490234375,
-0.00021505355834960938,
-0.03363037109375,
0.039886474609375,
0.005153656005859375,
0.036407470703125,
0.00876617431640625,
-0.01953125,
0.00948333740234375,
-0.0037441253662109375,
0.0335693359375,
-0.026947021484375,
-0.0166473388671875,
-0.031341552734375,
-0.03851318359375,
0.01207733154296875,
-0.0771484375,
0.053558349609375,
0.01337432861328125,
0.00937652587890625,
-0.004314422607421875,
-0.0008821487426757812,
0.01513671875,
-0.0767822265625,
0.00946044921875,
0.042724609375,
0.031768798828125,
0.0127716064453125,
-0.00665283203125,
0.00019633769989013672,
0.0465087890625,
-0.04986572265625,
0.008819580078125,
-0.0076904296875,
0.00980377197265625,
0.07037353515625,
0.0004973411560058594,
-0.00395965576171875,
-0.0010747909545898438,
0.0015964508056640625,
-0.0228271484375,
0.01546478271484375,
0.0002772808074951172,
0.017333984375,
-0.0095672607421875,
0.01067352294921875,
-0.00493621826171875,
0.04559326171875,
-0.00997161865234375,
0.004146575927734375,
0.024383544921875,
0.007282257080078125,
0.045654296875,
0.042572021484375,
-0.00505828857421875,
-0.00586700439453125,
-0.0055999755859375,
-0.007801055908203125,
0.01052093505859375,
0.03607177734375,
0.0198211669921875,
0.033782958984375,
-0.01476287841796875,
-0.028350830078125,
0.0146942138671875,
0.0252227783203125,
-0.0103607177734375,
0.005706787109375,
-0.0097198486328125,
-0.0018463134765625,
0.00689697265625,
-0.07049560546875,
0.003818511962890625,
0.033905029296875,
-0.0223236083984375,
-0.03704833984375,
0.023223876953125,
-0.044281005859375,
-0.0672607421875,
0.021087646484375,
0.0191650390625,
-0.06622314453125,
0.035247802734375,
-0.04949951171875,
0.04840087890625,
-0.0291900634765625,
0.0289306640625,
0.0625,
-0.006839752197265625,
0.0119781494140625,
0.007053375244140625,
0.043426513671875,
0.0288543701171875,
-0.0013933181762695312,
-0.013641357421875,
0.053375244140625,
-0.107666015625,
-0.037628173828125,
0.00994110107421875,
-0.007244110107421875,
-0.0133056640625,
-0.03155517578125,
-0.0146331787109375,
-0.0160980224609375,
-0.0789794921875,
-0.057952880859375,
-0.039703369140625,
-0.068603515625,
-0.01453399658203125,
0.01169586181640625,
-0.028411865234375,
0.002582550048828125,
0.033355712890625,
0.02325439453125,
0.0001367330551147461,
-0.052215576171875,
-0.08026123046875,
-0.09942626953125,
-0.11529541015625,
-0.02984619140625,
-0.0010690689086914062,
0.0242462158203125,
0.0038318634033203125,
0.024627685546875,
-0.01180267333984375,
-0.0914306640625,
-0.0321044921875,
0.038238525390625,
0.00402069091796875,
0.014007568359375,
-0.0033931732177734375,
-0.027740478515625,
-0.02349853515625,
-0.0002027750015258789,
0.0274505615234375,
0.00959014892578125,
-0.013580322265625,
0.0182647705078125,
-0.039093017578125,
-0.0188446044921875,
-0.0130767822265625,
0.005992889404296875,
0.04296875,
0.011016845703125,
0.006877899169921875,
-0.0322265625,
0.004581451416015625,
0.004238128662109375,
-0.01393890380859375,
-0.0014705657958984375,
0.0194244384765625,
-0.04296875,
-0.008941650390625,
0.0040740966796875,
-0.006847381591796875,
-0.017181396484375,
-0.000056803226470947266,
-0.031524658203125,
0.0306854248046875,
0.00917816162109375,
0.0318603515625,
-0.0076446533203125,
-0.00466156005859375,
-0.0555419921875,
-0.01788330078125,
-0.027923583984375,
-0.041717529296875,
-0.03643798828125,
0.0186767578125,
-0.0218048095703125,
-0.05035400390625,
0.063720703125,
0.00799560546875,
0.01454925537109375,
-0.049591064453125,
-0.045196533203125,
-0.0252227783203125,
0.125244140625,
-0.005584716796875,
-0.021392822265625,
0.0193328857421875,
0.0172882080078125,
-0.044586181640625,
-0.00665283203125,
-0.04779052734375,
-0.00502777099609375,
-0.01383209228515625,
0.003032684326171875,
-0.024322509765625,
-0.002239227294921875,
0.0017032623291015625,
-0.01410675048828125,
0.01316070556640625,
-0.024017333984375,
0.0181884765625,
-0.04644775390625,
-0.005924224853515625,
-0.0181121826171875,
-0.01088714599609375,
-0.053253173828125,
0.0018157958984375,
-0.029754638671875,
-0.07305908203125,
-0.01055145263671875,
-0.000820159912109375,
0.01922607421875,
-0.021636962890625,
0.02490234375,
-0.01117706298828125,
0.0303497314453125,
-0.0039825439453125,
0.0207366943359375,
-0.0075225830078125,
0.017913818359375,
-0.00894927978515625,
-0.054840087890625,
-0.01413726806640625,
-0.050689697265625,
-0.0232391357421875,
-0.061981201171875,
-0.027496337890625,
-0.04742431640625,
-0.0294952392578125,
-0.0216827392578125,
-0.00934600830078125,
-0.0006093978881835938,
0.023681640625,
-0.000263214111328125,
-0.007476806640625,
0.06658935546875,
-0.02239990234375,
0.01529693603515625,
-0.0201263427734375,
-0.004459381103515625,
0.039093017578125,
0.00518035888671875,
-0.01151275634765625,
0.0174713134765625,
0.0518798828125,
0.0113677978515625,
-0.02813720703125,
-0.0462646484375,
-0.014434814453125,
0.0294342041015625,
-0.0199737548828125,
0.0298309326171875,
0.0013856887817382812,
-0.019073486328125,
0.07440185546875,
-0.020294189453125,
0.0010700225830078125,
0.0026645660400390625,
0.001129150390625,
0.04364013671875,
0.020355224609375,
-0.0197601318359375,
0.0635986328125,
0.0032520294189453125,
0.003513336181640625,
0.001216888427734375,
-0.006916046142578125,
0.0216064453125,
0.02301025390625,
0.005092620849609375,
-0.0164031982421875,
-0.0322265625,
-0.036529541015625,
0.015716552734375,
-0.030242919921875,
0.041290283203125,
0.0178375244140625,
-0.00021278858184814453,
0.019500732421875,
0.0038471221923828125,
-0.00310516357421875,
0.0090179443359375,
0.0004227161407470703,
-0.006824493408203125,
0.044158935546875,
-0.021392822265625,
-0.006015777587890625,
-0.00412750244140625,
-0.007293701171875,
0.053253173828125,
0.01241302490234375,
-0.058502197265625,
-0.0026760101318359375,
0.006664276123046875,
-0.04376220703125,
0.01462554931640625,
-0.0192413330078125,
0.037078857421875,
0.005664825439453125,
-0.0355224609375,
0.0017004013061523438,
-0.0341796875,
-0.023773193359375,
-0.06414794921875,
-0.00665283203125,
-0.0133514404296875,
-0.018798828125,
0.031219482421875,
0.007083892822265625,
-0.0168914794921875,
0.0184326171875,
-0.0135345458984375,
0.0179443359375,
0.04046630859375,
0.0235748291015625,
0.0254974365234375,
-0.023956298828125,
-0.0028171539306640625,
0.0008325576782226562,
0.00933074951171875,
-0.026153564453125,
-0.0380859375,
-0.03253173828125,
0.010467529296875,
-0.0302886962890625,
0.00870513916015625,
0.05352783203125,
0.00921630859375,
-0.00986480712890625,
-0.0171051025390625,
0.0266571044921875,
0.02044677734375,
0.00019669532775878906,
0.0041046142578125,
-0.00194549560546875,
0.037841796875,
-0.00612640380859375,
-0.04840087890625,
-0.015869140625,
0.005107879638671875,
-0.006282806396484375,
-0.02044677734375,
0.01360321044921875,
0.01198577880859375,
0.0254058837890625,
0.0102996826171875,
-0.0238800048828125,
-0.0751953125,
-0.049835205078125,
0.00978851318359375,
0.03802490234375,
0.029754638671875,
-0.038177490234375,
0.037872314453125,
-0.026611328125,
-0.00086212158203125,
-0.0250701904296875,
0.034637451171875,
-0.00545501708984375,
0.0094757080078125,
-0.08074951171875,
0.00980377197265625,
-0.036102294921875,
-0.01410675048828125,
-0.0322265625,
-0.01739501953125,
-0.06561279296875,
-0.00490570068359375,
0.038299560546875,
0.0014257431030273438,
0.0177764892578125,
-0.0426025390625,
-0.035400390625,
0.001129150390625,
0.0582275390625,
0.007213592529296875,
0.004634857177734375,
-0.0091552734375,
0.009613037109375,
0.00628662109375,
-0.0023956298828125,
0.01183319091796875,
0.00946044921875,
-0.0301513671875,
0.034759521484375,
-0.081298828125,
-0.0284271240234375,
-0.0225982666015625,
-0.0281982421875,
0.0261688232421875,
-0.01284027099609375,
-0.0018968582153320312,
-0.0003216266632080078,
-0.014434814453125,
0.00655364990234375,
-0.03326416015625,
0.034423828125,
-0.0211944580078125,
0.01788330078125,
-0.03070068359375,
-0.0069732666015625,
0.02740478515625,
-0.005809783935546875,
-0.006031036376953125,
0.0036602020263671875,
0.005603790283203125,
-0.00705718994140625,
-0.0054931640625,
-0.0036163330078125,
0.03515625,
0.0306243896484375,
0.0003504753112792969,
0.03271484375,
0.040283203125,
0.0184783935546875,
-0.0135650634765625,
0.0302581787109375,
-0.06231689453125,
-0.07720947265625,
0.012481689453125,
0.036529541015625,
-0.013824462890625,
0.05328369140625,
-0.0182342529296875,
-0.002079010009765625,
0.0672607421875,
0.0340576171875,
-0.08367919921875,
0.004581451416015625,
0.0030765533447265625,
-0.008575439453125,
0.015045166015625,
-0.0273284912109375,
0.00063323974609375,
0.00199127197265625,
0.00202178955078125,
-0.002338409423828125,
-0.044158935546875,
-0.0229949951171875,
-0.0102691650390625,
-0.0173187255859375,
-0.031341552734375,
0.01309967041015625,
0.008758544921875,
-0.0616455078125,
0.04193115234375,
0.0491943359375,
0.0012273788452148438,
0.0009984970092773438,
-0.011016845703125,
0.014312744140625,
-0.04144287109375,
-0.051605224609375,
0.014801025390625,
-0.031585693359375,
-0.022369384765625,
0.0316162109375,
-0.0042572021484375,
-0.01374053955078125,
0.0207061767578125,
-0.027008056640625,
0.036285400390625,
-0.0125885009765625,
-0.0013170242309570312,
0.0614013671875,
-0.017425537109375,
0.0167236328125,
0.01776123046875,
-0.00948333740234375,
-0.01094818115234375,
0.0158538818359375,
-0.0244293212890625,
-0.006683349609375,
-0.004604339599609375,
0.078369140625,
-0.00043392181396484375,
-0.02838134765625,
0.04461669921875,
-0.02496337890625,
-0.041107177734375,
-0.01155853271484375,
-0.036651611328125,
-0.043365478515625,
-0.031005859375,
-0.03778076171875,
-0.056427001953125,
0.0246734619140625,
-0.035675048828125,
-0.0250396728515625,
0.09271240234375,
-0.007904052734375,
-0.00984954833984375,
0.0362548828125,
0.048248291015625,
-0.04638671875,
0.033111572265625,
0.0115203857421875,
-0.005130767822265625,
-0.0147552490234375,
-0.037506103515625,
0.01361083984375,
0.006702423095703125,
-0.0389404296875,
0.0161590576171875,
0.023040771484375,
0.009185791015625,
-0.019378662109375,
-0.002887725830078125,
0.00917816162109375,
-0.0043182373046875,
-0.01084136962890625,
0.037628173828125,
-0.0225067138671875,
0.032684326171875,
0.0185699462890625,
-0.05511474609375,
0.0166473388671875,
-0.0176849365234375,
-0.023895263671875,
-0.006763458251953125,
0.0038280487060546875,
-0.01380157470703125,
0.00464630126953125,
0.00482940673828125,
-0.03515625,
0.01197052001953125,
-0.0025081634521484375,
0.03582763671875,
0.01280975341796875,
0.005649566650390625,
-0.003261566162109375,
-0.0255126953125,
-0.0035152435302734375,
-0.031890869140625,
0.03887939453125,
-0.025787353515625,
-0.037994384765625,
-0.006008148193359375,
0.0240478515625,
-0.060760498046875,
-0.0467529296875,
-0.0169677734375,
0.04644775390625,
-0.07305908203125,
0.01123046875,
-0.0005283355712890625,
0.019256591796875,
-0.058349609375,
-0.0406494140625,
0.06451416015625,
0.04937744140625,
-0.0106048583984375,
-0.00968170166015625,
0.0108642578125,
-0.0189056396484375,
0.010467529296875,
-0.0384521484375,
-0.0120391845703125,
-0.0205078125,
-0.034576416015625,
0.005756378173828125,
-0.0137939453125,
0.0031337738037109375,
-0.00540924072265625,
0.009307861328125,
0.041748046875,
0.01678466796875,
0.0005817413330078125,
0.0095672607421875,
-0.037872314453125,
-0.01103973388671875,
0.0143585205078125,
0.0273590087890625,
0.031982421875,
-0.01995849609375,
-0.0036449432373046875,
-0.01995849609375,
0.0298004150390625,
-0.01207733154296875,
0.024017333984375,
-0.03485107421875,
-0.0352783203125,
0.00799560546875,
0.040557861328125,
-0.0251922607421875,
0.03656005859375,
0.040924072265625,
0.049957275390625,
-0.0303955078125,
-0.0110626220703125,
0.0926513671875,
-0.0242919921875,
0.0004949569702148438,
-0.03350830078125,
-0.035400390625,
-0.00913238525390625,
-0.0286865234375,
0.0151214599609375,
-0.034759521484375,
0.036163330078125,
-0.0134429931640625,
0.00556182861328125,
0.01462554931640625,
-0.022613525390625,
0.053375244140625,
0.0206146240234375,
0.01268768310546875,
0.00984954833984375,
-0.06536865234375,
-0.052032470703125,
-0.00011914968490600586,
0.06719970703125,
0.00870513916015625,
0.022308349609375,
0.0124053955078125,
0.0374755859375,
0.0180816650390625,
-0.0455322265625,
0.0411376953125,
-0.027099609375,
0.02301025390625,
-0.0018396377563476562,
-0.015472412109375,
-0.024627685546875,
-0.06512451171875,
-0.0369873046875,
-0.046356201171875,
0.049346923828125,
0.0008335113525390625,
0.10272216796875,
-0.03143310546875,
0.0123138427734375,
-0.044281005859375,
-0.041961669921875,
0.0220794677734375,
-0.007526397705078125,
-0.055450439453125,
0.023345947265625,
0.005626678466796875,
0.0034046173095703125,
-0.0261383056640625,
0.0122528076171875,
0.0191802978515625,
-0.0283050537109375,
0.01430511474609375,
-0.039581298828125,
0.0088348388671875,
0.0012254714965820312,
-0.0132293701171875,
-0.04937744140625,
-0.0665283203125,
-0.049468994140625,
0.0159149169921875,
-0.0096435546875,
-0.026092529296875,
-0.024383544921875,
0.055908203125,
0.007335662841796875,
0.01041412353515625,
-0.0036144256591796875,
-0.0347900390625,
0.01267242431640625,
0.0247955322265625,
-0.00844573974609375,
-0.038421630859375,
0.0250701904296875,
-0.01355743408203125,
0.0052642822265625,
0.002197265625,
0.03448486328125,
0.03668212890625,
-0.0858154296875,
0.003513336181640625,
0.03265380859375,
0.051116943359375,
-0.004978179931640625,
0.02294921875,
-0.0004534721374511719,
0.001316070556640625,
-0.0018758773803710938,
0.0226287841796875,
-0.004894256591796875,
-0.00565338134765625,
-0.01119232177734375,
0.0003991127014160156,
-0.0096282958984375,
-0.0228424072265625,
-0.019775390625,
-0.0225677490234375,
0.0234527587890625,
-0.009063720703125,
-0.03570556640625,
0.00510406494140625,
-0.01397705078125,
0.0290069580078125,
-0.036529541015625,
0.035369873046875,
-0.01448822021484375,
0.00862884521484375,
-0.029510498046875,
-0.04193115234375,
-0.0284576416015625,
0.0562744140625,
-0.02252197265625,
0.0277099609375,
0.0268096923828125,
-0.0283050537109375,
0.0247650146484375,
0.027679443359375,
0.022674560546875,
0.07196044921875,
-0.0002923011779785156,
0.01294708251953125,
0.029327392578125,
0.00380706787109375,
-0.048248291015625,
-0.05670166015625,
0.018310546875,
-0.0318603515625,
-0.034149169921875,
-0.053375244140625,
0.033660888671875,
0.02386474609375,
-0.022613525390625,
-0.059783935546875,
0.044097900390625,
-0.02301025390625,
-0.023223876953125,
-0.032989501953125,
0.0013875961303710938,
-0.011505126953125,
0.03570556640625,
0.00704193115234375,
-0.0286865234375,
-0.022491455078125,
0.0233001708984375,
0.002246856689453125,
0.03564453125,
-0.01416778564453125,
0.00771331787109375,
-0.02545166015625,
0.03497314453125,
0.022857666015625,
0.0141448974609375,
0.006381988525390625,
0.01143646240234375,
0.0031948089599609375,
0.054351806640625,
-0.012969970703125,
-0.0306396484375,
-0.0149688720703125,
-0.054718017578125,
-0.001895904541015625,
-0.06396484375,
-0.02197265625,
-0.031829833984375,
0.035980224609375,
0.00797271728515625,
-0.00024390220642089844,
0.002777099609375,
-0.0330810546875,
-0.04986572265625,
-0.0283050537109375,
-0.004520416259765625,
0.01312255859375,
-0.06878662109375,
0.03204345703125,
0.0276947021484375,
-0.01236724853515625,
-0.024871826171875,
0.0225067138671875,
-0.0260009765625,
0.0036334991455078125,
0.037109375,
-0.00183868408203125,
-0.03265380859375,
0.0012063980102539062,
0.07965087890625,
-0.0165863037109375,
0.0670166015625,
0.011444091796875,
0.007137298583984375,
0.08905029296875,
0.07012939453125,
-0.024261474609375,
-0.049163818359375,
-0.0051422119140625,
0.032623291015625,
-0.00994110107421875,
0.02734375,
-0.0165557861328125,
-0.0189971923828125,
-0.0021877288818359375,
0.0372314453125,
0.020263671875,
0.052032470703125,
-0.026947021484375,
0.0309906005859375,
0.01316070556640625,
-0.01477813720703125,
-0.0250091552734375,
-0.06414794921875,
-0.031036376953125,
0.0209808349609375,
-0.00029015541076660156,
-0.0076141357421875,
0.06024169921875,
-0.060150146484375,
0.0003275871276855469,
0.004638671875,
-0.0260772705078125,
-0.0235595703125,
-0.00287628173828125,
-0.01375579833984375,
-0.0203399658203125,
0.005023956298828125
] |
8a1de499dcc9f7560a2b6379e5348eda24e92717
|
Wordpress Stackexchange
Q: Can you add the visual editor to the description field for custom taxonomies? Can you add the visual editor to the description field for custom taxonomies? It would be nice to have this option available when you edit an entry for a taxonomy be it core or custom.
A: Have you tried The Rich Text Tags Plugin?
*
*It does exactly what you need.
*Works with custom taxonomies.
*Works well with images.
*Includes the new WP internal linking.
*It is regularly updated.
Screenshot:
|
Q: Can you add the visual editor to the description field for custom taxonomies? Can you add the visual editor to the description field for custom taxonomies? It would be nice to have this option available when you edit an entry for a taxonomy be it core or custom.
A: Have you tried The Rich Text Tags Plugin?
*
*It does exactly what you need.
*Works with custom taxonomies.
*Works well with images.
*Includes the new WP internal linking.
*It is regularly updated.
Screenshot:
A: Just wrote the function. It'll display the tinymce editor in every custom taxonomy description right now. Surely you can edit to show it for only some specific taxonomy.
/**
* Display advanced TinyMCE editor in taxonomy page
*/
function wpse_7156_enqueue_category() {
global $pagenow, $current_screen;
if( $pagenow == 'edit-tags.php' ) {
require_once(ABSPATH . 'wp-admin/includes/post.php');
require_once(ABSPATH . 'wp-admin/includes/template.php');
wp_tiny_mce( false, array( 'editor_selector' => 'description', 'elements' => 'description', 'mode' => 'exact' ));
}
}
add_action( 'init', 'wpse_7156_enqueue_category' );
You can provide the first argument in wp_tiny_mce as true if you want a stripped version of tinyMCE
A: Not directly, no.
You could, however, write a custom javascript which applies the appropriate classes to the entry field for the custom taxonomy description.
If what you really want to do, however, is create a "many-to-many" relationship between posts (e.g. a post type of "Tires" and a post type of "Cars"), then WordPress doesn't (currently) have a facility for this. However, the Posts 2 Posts plugin does provide this functionality (and gives you a lot more flexibility to create complex relationships).
|
wordpress
|
{
"language": "en",
"length": 260,
"provenance": "stackexchange_00019.jsonl.gz:408948",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15758"
}
|
[
0.0228271484375,
-0.01261138916015625,
0.0164337158203125,
-0.01332855224609375,
-0.00707244873046875,
-0.0027103424072265625,
0.0372314453125,
-0.00798797607421875,
0.008514404296875,
0.0300140380859375,
-0.0224456787109375,
-0.0236358642578125,
-0.0125732421875,
-0.0160064697265625,
-0.037200927734375,
-0.031982421875,
0.009857177734375,
0.00365447998046875,
0.031341552734375,
-0.0122833251953125,
0.00982666015625,
-0.0192108154296875,
0.04864501953125,
-0.065673828125,
0.0109100341796875,
0.037841796875,
0.053131103515625,
-0.031890869140625,
0.0165863037109375,
-0.006900787353515625,
0.0135040283203125,
-0.0261688232421875,
0.04937744140625,
-0.0018682479858398438,
-0.02532958984375,
0.026031494140625,
0.01947021484375,
-0.0171966552734375,
-0.0105743408203125,
0.02337646484375,
0.03228759765625,
-0.03179931640625,
0.0124359130859375,
-0.02362060546875,
-0.0081939697265625,
0.02642822265625,
-0.0055084228515625,
-0.0282135009765625,
0.00226593017578125,
-0.0616455078125,
-0.000026285648345947266,
0.018463134765625,
0.04290771484375,
-0.0740966796875,
-0.01239776611328125,
0.01019287109375,
-0.0245819091796875,
0.017486572265625,
0.027130126953125,
-0.0273284912109375,
-0.006969451904296875,
-0.0245208740234375,
0.0281982421875,
0.028656005859375,
-0.013336181640625,
0.01373291015625,
-0.0193634033203125,
-0.0009965896606445312,
-0.0023670196533203125,
-0.0079498291015625,
-0.0013303756713867188,
-0.03167724609375,
0.0005745887756347656,
-0.0254669189453125,
0.01428985595703125,
-0.0105743408203125,
0.0024318695068359375,
-0.040771484375,
0.0025615692138671875,
0.0106658935546875,
0.04876708984375,
0.007068634033203125,
0.036102294921875,
0.01332855224609375,
-0.0157623291015625,
0.0178985595703125,
0.0032138824462890625,
-0.0238800048828125,
-0.0252685546875,
-0.0084228515625,
-0.0102081298828125,
-0.030609130859375,
-0.07818603515625,
0.06304931640625,
0.03570556640625,
-0.003017425537109375,
-0.0030517578125,
0.051300048828125,
-0.02362060546875,
0.0662841796875,
-0.01397705078125,
-0.03668212890625,
0.10430908203125,
-0.07354736328125,
0.0020236968994140625,
-0.0206756591796875,
0.006984710693359375,
0.0284423828125,
0.0406494140625,
0.022003173828125,
-0.03631591796875,
0.01424407958984375,
0.032623291015625,
-0.016143798828125,
0.0229339599609375,
-0.01415252685546875,
0.005374908447265625,
0.033203125,
0.002361297607421875,
-0.01416778564453125,
0.04547119140625,
0.0675048828125,
-0.04559326171875,
0.01128387451171875,
-0.0626220703125,
-0.048736572265625,
0.00612640380859375,
-0.03448486328125,
0.0260772705078125,
0.004642486572265625,
-0.04559326171875,
0.02362060546875,
0.0675048828125,
0.015625,
0.0186614990234375,
-0.0180511474609375,
0.0222320556640625,
-0.0278167724609375,
0.01194000244140625,
-0.041717529296875,
0.014251708984375,
0.03607177734375,
0.03143310546875,
-0.015777587890625,
0.006069183349609375,
0.0272369384765625,
0.0218353271484375,
0.01467132568359375,
-0.02783203125,
-0.03155517578125,
0.022552490234375,
-0.02886962890625,
0.057464599609375,
-0.0119476318359375,
-0.05072021484375,
-0.0726318359375,
0.0203704833984375,
-0.046173095703125,
0.002391815185546875,
-0.07220458984375,
0.0146636962890625,
0.006317138671875,
0.00931549072265625,
-0.042877197265625,
-0.0369873046875,
-0.015869140625,
-0.055572509765625,
-0.006946563720703125,
0.04327392578125,
0.02197265625,
0.03955078125,
-0.041412353515625,
0.0423583984375,
0.02783203125,
-0.00091552734375,
0.027191162109375,
-0.0031070709228515625,
0.0061798095703125,
0.03363037109375,
0.006465911865234375,
-0.01531982421875,
-0.03057861328125,
0.06573486328125,
-0.03680419921875,
-0.047393798828125,
-0.0145416259765625,
-0.00795745849609375,
0.07489013671875,
0.06732177734375,
0.0372314453125,
-0.0283660888671875,
-0.057281494140625,
-0.0296783447265625,
0.00649261474609375,
0.0260009765625,
0.0027370452880859375,
-0.0313720703125,
-0.01043701171875,
-0.0005974769592285156,
-0.00525665283203125,
-0.0546875,
-0.00891876220703125,
-0.0062408447265625,
-0.01435089111328125,
-0.023406982421875,
-0.021514892578125,
-0.0106658935546875,
0.042694091796875,
0.03216552734375,
-0.0308685302734375,
-0.0109100341796875,
-0.05633544921875,
0.01123809814453125,
-0.0016069412231445312,
-0.0748291015625,
-0.003284454345703125,
0.0205841064453125,
0.0194091796875,
0.02099609375,
-0.0248565673828125,
0.035430908203125,
-0.0292205810546875,
0.0301971435546875,
0.038116455078125,
-0.0199432373046875,
0.0157318115234375,
-0.0128173828125,
0.031829833984375,
0.0225830078125,
0.028167724609375,
0.044464111328125,
-0.0261688232421875,
0.0445556640625,
0.0149688720703125,
-0.01450347900390625,
0.0028934478759765625,
0.00661468505859375,
-0.10137939453125,
-0.0004665851593017578,
0.046600341796875,
0.0303497314453125,
0.01062774658203125,
-0.0077972412109375,
0.0006871223449707031,
0.045867919921875,
0.01727294921875,
0.02484130859375,
-0.01959228515625,
0.00542449951171875,
0.059295654296875,
0.0161895751953125,
0.0201568603515625,
-0.00762939453125,
-0.0277252197265625,
0.02239990234375,
0.023651123046875,
-0.0055694580078125,
-0.0218658447265625,
0.03643798828125,
-0.029144287109375,
0.0237579345703125,
0.0187225341796875,
-0.044342041015625,
0.02471923828125,
0.041107177734375,
0.014678955078125,
0.053192138671875,
0.053253173828125,
-0.0214080810546875,
-0.00841522216796875,
0.001911163330078125,
0.02191162109375,
0.0031375885009765625,
0.031341552734375,
0.0029850006103515625,
0.035888671875,
-0.0263671875,
-0.00899505615234375,
0.004978179931640625,
0.03125,
-0.01029205322265625,
0.00028896331787109375,
-0.0335693359375,
-0.004726409912109375,
-0.004688262939453125,
-0.055755615234375,
0.0101776123046875,
0.0219879150390625,
-0.051422119140625,
-0.04486083984375,
0.0111083984375,
0.007480621337890625,
-0.03973388671875,
0.006816864013671875,
-0.00510406494140625,
-0.021148681640625,
0.005779266357421875,
-0.0413818359375,
0.044219970703125,
-0.019256591796875,
0.0035800933837890625,
0.06329345703125,
0.0125579833984375,
0.00533294677734375,
0.00740814208984375,
-0.0304718017578125,
-0.0010890960693359375,
0.01552581787109375,
0.00452423095703125,
-0.0208282470703125,
-0.044677734375,
0.016571044921875,
0.0185394287109375,
0.01181793212890625,
0.00202178955078125,
-0.03961181640625,
-0.016357421875,
0.01068878173828125,
-0.0596923828125,
-0.0240936279296875,
0.01065826416015625,
-0.0005216598510742188,
-0.036285400390625,
0.0218353271484375,
-0.0255126953125,
-0.0074615478515625,
0.037078857421875,
-0.01309967041015625,
-0.01239013671875,
-0.030303955078125,
0.002079010009765625,
-0.05499267578125,
-0.057647705078125,
-0.042633056640625,
0.0169219970703125,
-0.0011510848999023438,
0.01290130615234375,
0.073486328125,
0.0253143310546875,
-0.03607177734375,
0.047943115234375,
-0.04443359375,
-0.0099639892578125,
0.056884765625,
0.02789306640625,
-0.05926513671875,
0.0272979736328125,
-0.002994537353515625,
-0.011932373046875,
0.023895263671875,
-0.0013141632080078125,
-0.01079559326171875,
-0.01485443115234375,
0.01506805419921875,
0.007312774658203125,
-0.03643798828125,
0.006175994873046875,
0.043975830078125,
0.004726409912109375,
-0.01216888427734375,
0.01058197021484375,
0.0036163330078125,
0.01033782958984375,
-0.011627197265625,
-0.040771484375,
-0.007450103759765625,
-0.03753662109375,
0.058135986328125,
-0.0222320556640625,
0.035675048828125,
-0.0014219284057617188,
-0.003505706787109375,
-0.007564544677734375,
-0.0239410400390625,
-0.05364990234375,
-0.004398345947265625,
-0.00876617431640625,
-0.05242919921875,
0.05633544921875,
-0.01499176025390625,
-0.01308441162109375,
-0.0162353515625,
0.0299530029296875,
-0.016082763671875,
0.0030651092529296875,
0.004985809326171875,
-0.037017822265625,
0.013275146484375,
-0.016815185546875,
-0.003299713134765625,
0.001506805419921875,
0.0316162109375,
-0.0013055801391601562,
-0.01369476318359375,
-0.004444122314453125,
-0.0222320556640625,
0.0023975372314453125,
0.04962158203125,
-0.04534912109375,
-0.005817413330078125,
-0.07806396484375,
0.0261993408203125,
0.016387939453125,
-0.0340576171875,
-0.048980712890625,
0.058013916015625,
-0.07293701171875,
-0.023712158203125,
0.03350830078125,
-0.0309906005859375,
0.00576019287109375,
0.01306915283203125,
-0.00926971435546875,
-0.004901885986328125,
-0.0243988037109375,
-0.0343017578125,
-0.08441162109375,
-0.005344390869140625,
-0.056884765625,
0.048431396484375,
0.00914764404296875,
0.0246124267578125,
0.0020999908447265625,
0.050140380859375,
0.024658203125,
0.01397705078125,
-0.0026092529296875,
-0.00872039794921875,
-0.0136260986328125,
0.00218963623046875,
-0.002201080322265625,
-0.0261993408203125,
-0.03125,
-0.007480621337890625,
0.0109405517578125,
0.008453369140625,
-0.001865386962890625,
-0.048736572265625,
0.040252685546875,
-0.03155517578125,
-0.03662109375,
-0.021575927734375,
-0.05682373046875,
-0.005191802978515625,
-0.0212860107421875,
-0.034515380859375,
-0.0186309814453125,
-0.045135498046875,
0.044952392578125,
0.006511688232421875,
0.009429931640625,
0.008056640625,
0.09429931640625,
-0.0032062530517578125,
-0.01548004150390625,
-0.1053466796875,
0.01244354248046875,
0.0360107421875,
0.01537322998046875,
-0.0020923614501953125,
-0.017059326171875,
-0.04205322265625,
0.0797119140625,
0.006778717041015625,
0.01873779296875,
-0.0638427734375,
0.042144775390625,
-0.01288604736328125,
-0.023529052734375,
0.0227508544921875,
-0.0281219482421875,
0.047454833984375,
0.027435302734375,
-0.015533447265625,
-0.00876617431640625,
-0.015960693359375,
0.0496826171875,
0.0016183853149414062,
0.00385284423828125,
-0.0479736328125,
-0.041351318359375,
0.0231170654296875,
0.02398681640625,
0.0101318359375,
-0.0026683807373046875,
0.006072998046875,
-0.0110321044921875,
-0.0302734375,
-0.026519775390625,
0.008575439453125,
-0.0261993408203125,
0.01068115234375,
-0.01132965087890625,
0.0078125,
-0.032989501953125,
0.00506591796875,
-0.0034465789794921875,
0.039642333984375,
-0.034149169921875,
-0.0760498046875,
-0.00849151611328125,
-0.00666046142578125,
-0.003383636474609375,
0.047576904296875,
0.04010009765625,
0.01499176025390625,
0.0255279541015625,
0.007808685302734375,
0.00550079345703125,
0.0260162353515625,
0.033111572265625,
-0.01235198974609375,
0.000751495361328125,
-0.01593017578125,
-0.0099029541015625,
0.0097503662109375,
0.0236968994140625,
-0.0300140380859375,
0.00986480712890625,
-0.005802154541015625,
0.054718017578125,
0.0243682861328125,
0.0190582275390625,
0.0095672607421875,
0.012725830078125,
0.0189971923828125,
-0.020477294921875,
-0.0154876708984375,
-0.034759521484375,
-0.02093505859375,
-0.043975830078125,
0.027496337890625,
-0.0247039794921875,
-0.020843505859375,
0.058563232421875,
-0.03118896484375,
-0.006195068359375,
-0.039215087890625,
-0.029052734375,
-0.0198822021484375,
0.00489044189453125,
0.01105499267578125,
0.0131683349609375,
-0.0011196136474609375,
-0.01216888427734375,
0.0145263671875,
-0.041778564453125,
0.0250396728515625,
-0.035858154296875,
0.02032470703125,
-0.0278167724609375,
-0.03179931640625,
-0.04437255859375,
-0.000530242919921875,
0.0213623046875,
-0.06158447265625,
-0.045928955078125,
0.008453369140625,
-0.005950927734375,
0.0157012939453125,
-0.029449462890625,
0.03497314453125,
-0.03375244140625,
-0.00001424551010131836,
-0.034149169921875,
0.01336669921875,
0.032440185546875,
0.025970458984375,
0.011077880859375,
-0.0235443115234375,
-0.056304931640625,
-0.03436279296875,
-0.020050048828125,
-0.039886474609375,
-0.01532745361328125,
0.007450103759765625,
-0.03076171875,
-0.01074981689453125,
0.0003037452697753906,
0.038665771484375,
0.004024505615234375,
0.053924560546875,
-0.0207672119140625,
0.02545166015625,
0.0191650390625,
-0.0115966796875,
-0.0105438232421875,
0.056976318359375,
0.006195068359375,
-0.040374755859375,
-0.04168701171875,
-0.033935546875,
-0.022613525390625,
-0.06976318359375,
-0.032684326171875,
0.003154754638671875,
-0.0006480216979980469,
0.0850830078125,
0.034149169921875,
0.0072479248046875,
0.0224151611328125,
-0.01390838623046875,
0.0084686279296875,
-0.01898193359375,
-0.005100250244140625,
-0.036346435546875,
-0.002552032470703125,
0.033294677734375,
-0.01497650146484375,
0.04400634765625,
0.00250244140625,
0.00629425048828125,
0.00923919677734375,
-0.018218994140625,
0.0257415771484375,
0.00830841064453125,
0.0017156600952148438,
-0.0017156600952148438,
-0.0225067138671875,
-0.0180206298828125,
0.0044403076171875,
-0.0101318359375,
0.01605224609375,
0.0038051605224609375,
-0.0011777877807617188,
-0.004474639892578125,
-0.00907135009765625,
0.0509033203125,
0.00838470458984375,
-0.0134735107421875,
0.05126953125,
-0.026458740234375,
-0.0024566650390625,
-0.004322052001953125,
0.0226593017578125,
-0.031402587890625,
0.025909423828125,
0.01194000244140625,
0.00583648681640625,
0.030853271484375,
0.0005393028259277344,
0.002941131591796875,
-0.00782012939453125,
0.005794525146484375,
-0.0149688720703125,
-0.0283966064453125,
-0.0034275054931640625,
0.00232696533203125,
-0.01236724853515625,
-0.053863525390625,
-0.00800323486328125,
-0.0111541748046875,
-0.0059051513671875,
0.00440216064453125,
-0.0038623809814453125,
-0.0240478515625,
-0.02734375,
0.01129913330078125,
-0.0069427490234375,
0.0015325546264648438,
-0.0218505859375,
0.047271728515625,
-0.0218505859375,
0.030426025390625,
0.06024169921875,
0.00591278076171875,
0.01229095458984375,
0.033966064453125,
-0.01360321044921875,
0.0299224853515625,
-0.0212860107421875,
0.004886627197265625,
0.05511474609375,
-0.0482177734375,
-0.025299072265625,
0.02130126953125,
-0.03759765625,
-0.0003056526184082031,
0.009307861328125,
-0.0106048583984375,
-0.0128173828125,
-0.0252685546875,
0.053253173828125,
-0.040771484375,
-0.01287841796875,
0.01092529296875,
0.0061492919921875,
0.01519012451171875,
0.0029201507568359375,
-0.0091400146484375,
-0.051910400390625,
-0.03436279296875,
0.00357818603515625,
-0.066162109375,
0.00843048095703125,
0.0037364959716796875,
-0.08978271484375,
0.11163330078125,
0.040313720703125,
0.015167236328125,
-0.0404052734375,
0.05584716796875,
-0.0372314453125,
0.01898193359375,
0.002544403076171875,
0.0275726318359375,
-0.000732421875,
-0.0017566680908203125,
-0.011871337890625,
-0.003917694091796875,
0.00839996337890625,
0.05224609375,
0.058349609375,
0.00273895263671875,
-0.0235748291015625,
0.0025177001953125,
0.05902099609375,
0.023712158203125,
-0.02587890625,
0.03179931640625,
0.03173828125,
-0.027435302734375,
0.0005803108215332031,
0.0421142578125,
0.047210693359375,
-0.028411865234375,
-0.0217132568359375,
0.046966552734375,
0.00522613525390625,
0.004901885986328125,
0.007049560546875,
0.01483154296875,
-0.0160369873046875,
0.011016845703125,
0.020172119140625,
-0.020904541015625,
-0.0157318115234375,
0.0186767578125,
0.015625,
-0.0104522705078125,
-0.007244110107421875,
-0.006439208984375,
0.0239715576171875,
0.01137542724609375,
0.03509521484375,
0.036834716796875,
0.00959014892578125,
0.0164794921875,
0.0236968994140625,
0.041595458984375,
0.0321044921875,
0.0001844167709350586,
0.019989013671875,
-0.04364013671875,
-0.0006427764892578125,
-0.0814208984375,
-0.03228759765625,
0.0273590087890625,
0.037139892578125,
-0.0196533203125,
0.020172119140625,
0.022430419921875,
0.01161956787109375,
-0.01480865478515625,
-0.026123046875,
-0.00569915771484375,
0.02801513671875,
0.0416259765625,
-0.054840087890625,
0.0013532638549804688,
0.0172882080078125,
0.0275421142578125,
-0.01824951171875,
-0.021942138671875,
-0.03668212890625,
-0.01093292236328125,
-0.058685302734375,
0.042022705078125,
0.0261383056640625,
0.053924560546875,
-0.01151275634765625,
0.08795166015625,
0.010986328125,
-0.01837158203125,
-0.035675048828125,
0.04205322265625,
0.02239990234375,
0.024932861328125,
-0.0244293212890625,
-0.0009236335754394531,
-0.0019330978393554688,
0.0252685546875,
-0.00856781005859375,
0.0009465217590332031,
0.01329803466796875,
0.03118896484375,
0.003643035888671875,
-0.015777587890625,
0.0234375,
-0.00873565673828125,
0.003093719482421875,
-0.0275421142578125,
0.039642333984375,
0.060028076171875,
0.01546478271484375,
-0.00859832763671875,
0.005878448486328125,
0.0888671875,
-0.037109375,
0.0100250244140625,
-0.005443572998046875,
-0.040252685546875,
0.055572509765625,
-0.03424072265625,
0.053192138671875,
-0.00508880615234375,
-0.0261993408203125,
0.006679534912109375,
-0.0323486328125,
-0.043060302734375,
0.01229095458984375,
0.035614013671875,
-0.02276611328125,
0.0179443359375,
-0.0008826255798339844,
-0.0253753662109375,
-0.0125274658203125,
0.0309906005859375,
0.002544403076171875,
0.00626373291015625,
0.0031986236572265625,
-0.00959014892578125,
-0.054351806640625,
-0.01617431640625,
-0.0301666259765625,
0.0102996826171875,
-0.00905609130859375,
0.12249755859375,
-0.027923583984375,
0.01409149169921875,
-0.019317626953125,
0.0208282470703125,
-0.022064208984375,
-0.035369873046875,
0.0310516357421875,
0.01947021484375,
0.01285552978515625,
-0.0096435546875,
-0.0682373046875,
0.032928466796875,
0.0084686279296875,
-0.003055572509765625,
0.01751708984375,
-0.0128173828125,
0.0026378631591796875,
-0.01001739501953125,
0.03558349609375,
-0.01177978515625,
-0.033905029296875,
-0.01800537109375,
-0.0167388916015625,
0.014984130859375,
0.043243408203125,
0.032073974609375,
0.015960693359375,
0.0211944580078125,
-0.0113067626953125,
0.04168701171875,
-0.036468505859375,
0.07086181640625,
0.0345458984375,
-0.0028324127197265625,
-0.033050537109375,
0.01314544677734375,
-0.014801025390625,
0.0222015380859375,
-0.0086669921875,
0.033050537109375,
0.0158843994140625,
-0.087890625,
-0.0003809928894042969,
-0.024993896484375,
0.0237274169921875,
-0.038787841796875,
-0.01207733154296875,
-0.0008192062377929688,
0.005615234375,
0.01290130615234375,
-0.01502227783203125,
-0.021881103515625,
-0.04705810546875,
-0.01104736328125,
0.0133056640625,
-0.0394287109375,
-0.06182861328125,
-0.0648193359375,
-0.00672149658203125,
0.0218505859375,
-0.01387786865234375,
-0.01142120361328125,
0.0124969482421875,
-0.037017822265625,
-0.004119873046875,
0.00957489013671875,
-0.0303192138671875,
0.0196075439453125,
0.036163330078125,
-0.0308837890625,
-0.023651123046875,
-0.023773193359375,
-0.00496673583984375,
-0.040802001953125,
0.046905517578125,
0.0173492431640625,
-0.0430908203125,
0.0227508544921875,
0.056732177734375,
0.04534912109375,
0.0933837890625,
0.05633544921875,
-0.0208282470703125,
0.01300048828125,
-0.01264190673828125,
-0.00948333740234375,
-0.0269775390625,
0.0021190643310546875,
-0.01995849609375,
-0.0308685302734375,
-0.02294921875,
0.001895904541015625,
0.00646209716796875,
-0.0545654296875,
-0.1568603515625,
0.0078125,
-0.03204345703125,
-0.061737060546875,
-0.0008754730224609375,
0.0019817352294921875,
-0.0262298583984375,
0.0167999267578125,
-0.0011014938354492188,
-0.009002685546875,
0.0178680419921875,
0.0258331298828125,
-0.0021305084228515625,
0.03167724609375,
-0.002254486083984375,
0.01690673828125,
-0.03076171875,
0.0179595947265625,
0.0081634521484375,
-0.0154571533203125,
0.045745849609375,
-0.02581787109375,
-0.005344390869140625,
0.01120758056640625,
-0.09234619140625,
-0.093505859375,
-0.05010986328125,
0.0308074951171875,
-0.00798797607421875,
-0.034027099609375,
-0.00958251953125,
-0.024017333984375,
0.043182373046875,
0.0011920928955078125,
-0.008697509765625,
0.0054473876953125,
-0.03338623046875,
-0.0258331298828125,
-0.0162811279296875,
0.0167236328125,
0.0091552734375,
-0.0278778076171875,
0.030242919921875,
0.0169677734375,
0.00824737548828125,
0.0200347900390625,
0.0032596588134765625,
-0.0170745849609375,
-0.0011615753173828125,
0.0277252197265625,
0.013763427734375,
-0.08990478515625,
0.0303192138671875,
0.02862548828125,
-0.0396728515625,
-0.022796630859375,
0.002925872802734375,
-0.00814056396484375,
-0.016998291015625,
-0.01287078857421875,
-0.031646728515625,
-0.060302734375,
0.0181884765625,
0.032684326171875,
-0.00921630859375,
0.010101318359375,
0.01204681396484375,
-0.004489898681640625,
-0.0019407272338867188,
0.0098876953125,
-0.0095062255859375,
0.0080108642578125,
-0.032562255859375,
0.0211029052734375,
-0.01218414306640625,
0.04052734375,
-0.035614013671875,
0.017120361328125,
-0.028594970703125,
0.006359100341796875,
-0.06878662109375,
0.04150390625,
-0.06146240234375,
0.007381439208984375,
0.0147552490234375,
0.05413818359375,
-0.00762176513671875,
-0.00986480712890625,
0.0082855224609375,
-0.023529052734375,
0.023101806640625,
-0.0010938644409179688
] |
62d77770ebbc48c16ab248e2b3027fae328f3c7e
|
Wordpress Stackexchange
Q: Custom form, shortcode, and submit handler I have a frontend form with a bunch of input. My requirements force me to use a custom shortcode to create the form. I have already tested a page with that shortcode.
Here's my :
<form name="myform" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" enctype="multipart/form-data">
Based on this, it should open up the same page (and it did). However, when I hit submit, I got 404 on that very same URL. Is there any solution?
UPDATE #1
I try different route, using add_action('init'):
add_action('init', 'mbro1_intercept_form_input');
function mbro1_intercept_form_input()
{
if( !(isset($_POST['action_code']) && $_POST['action_code'] == 'mbro_intercept_form_input') )
return "";
if( isset( $_POST['submit'] ) )
{
//do my code here
wp_redirect( get_permalink(35) );//page that has [shortcode]
}
}
This successfully run my intended action on submit. But! upon redirection, it still got 404. I don't know what is wrong.
A: Does your form have an input with the name "name"? For example:
<input type="text" name="name">
If so, that will cause trouble. Change the name value.
Also see: Form 'name' breaks and goes to 404 page.
|
Q: Custom form, shortcode, and submit handler I have a frontend form with a bunch of input. My requirements force me to use a custom shortcode to create the form. I have already tested a page with that shortcode.
Here's my :
<form name="myform" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>" enctype="multipart/form-data">
Based on this, it should open up the same page (and it did). However, when I hit submit, I got 404 on that very same URL. Is there any solution?
UPDATE #1
I try different route, using add_action('init'):
add_action('init', 'mbro1_intercept_form_input');
function mbro1_intercept_form_input()
{
if( !(isset($_POST['action_code']) && $_POST['action_code'] == 'mbro_intercept_form_input') )
return "";
if( isset( $_POST['submit'] ) )
{
//do my code here
wp_redirect( get_permalink(35) );//page that has [shortcode]
}
}
This successfully run my intended action on submit. But! upon redirection, it still got 404. I don't know what is wrong.
A: Does your form have an input with the name "name"? For example:
<input type="text" name="name">
If so, that will cause trouble. Change the name value.
Also see: Form 'name' breaks and goes to 404 page.
A: I'm assuming that the line near the end
wp_redirect( get_permalink(35) );//page that has form
is what is failing. I would change it to this
$redirect_link = get_permalink(35) ; //page that has form
wp_redirect( $redirect_link ); // trigger redirect
exit;
that should cause it to function to work properly
A: I take die() as solution. Though, I don't prefer this.
$redirect_link = get_permalink(35) ; //page that has form
$script_redirect = "<div>Your form is submitted. Please wait a moment. If your browser didn't redirect, click <a href='$redirect_link'>here</a>.</div>
<script type='text/javasript' language='javascript'>
window.location = '$redirect_link';
</script> ";
die( $script_redirect );
|
wordpress
|
{
"language": "en",
"length": 277,
"provenance": "stackexchange_00019.jsonl.gz:408961",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15790"
}
|
[
0.030853271484375,
-0.0113067626953125,
-0.002643585205078125,
-0.031341552734375,
-0.005130767822265625,
0.0019397735595703125,
0.01555633544921875,
-0.01328277587890625,
-0.00363922119140625,
0.002086639404296875,
0.024505615234375,
-0.00955963134765625,
-0.0232086181640625,
-0.05670166015625,
-0.0028820037841796875,
-0.0164794921875,
0.011505126953125,
0.03497314453125,
0.033172607421875,
-0.0166015625,
-0.003711700439453125,
0.0011243820190429688,
0.01483917236328125,
-0.042633056640625,
0.033233642578125,
-0.028289794921875,
-0.00971221923828125,
-0.00066375732421875,
-0.0176849365234375,
-0.014251708984375,
0.01126861572265625,
0.02166748046875,
0.05963134765625,
0.028106689453125,
-0.055450439453125,
0.07257080078125,
-0.005664825439453125,
0.01287841796875,
-0.007389068603515625,
0.0302734375,
0.047149658203125,
-0.037628173828125,
0.040435791015625,
-0.038116455078125,
0.01493072509765625,
-0.0283355712890625,
0.053375244140625,
-0.03619384765625,
0.00978851318359375,
0.0213623046875,
-0.007343292236328125,
0.0362548828125,
0.00457763671875,
-0.0400390625,
-0.004085540771484375,
0.00026535987854003906,
-0.049560546875,
-0.004055023193359375,
0.019744873046875,
0.046661376953125,
0.004360198974609375,
-0.031890869140625,
0.0027294158935546875,
-0.027069091796875,
0.0142059326171875,
-0.006404876708984375,
-0.015411376953125,
0.01983642578125,
-0.01220703125,
0.033111572265625,
0.0284881591796875,
-0.0379638671875,
0.01192474365234375,
-0.0029811859130859375,
0.00281524658203125,
-0.0287628173828125,
0.02435302734375,
0.00678253173828125,
0.0186920166015625,
0.01430511474609375,
-0.02728271484375,
-0.05889892578125,
-0.027557373046875,
0.00018644332885742188,
0.0168609619140625,
0.029052734375,
-0.0234222412109375,
0.00048351287841796875,
-0.00533294677734375,
-0.04754638671875,
-0.0078125,
-0.0499267578125,
-0.01322174072265625,
0.0255126953125,
-0.0179443359375,
-0.0191802978515625,
0.009063720703125,
0.03424072265625,
0.016326904296875,
0.00452423095703125,
0.019744873046875,
-0.03851318359375,
0.0187530517578125,
-0.040252685546875,
0.01409149169921875,
0.02960205078125,
0.04144287109375,
-0.0080413818359375,
0.0031871795654296875,
-0.03607177734375,
-0.03564453125,
0.05963134765625,
-0.039031982421875,
-0.0161895751953125,
-0.005859375,
0.028289794921875,
-0.06634521484375,
0.01149749755859375,
-0.0124969482421875,
0.0173797607421875,
-0.00354766845703125,
0.01509857177734375,
0.0269317626953125,
-0.06671142578125,
-0.001827239990234375,
-0.0297393798828125,
-0.00788116455078125,
-0.03900146484375,
0.099853515625,
-0.0039005279541015625,
-0.02020263671875,
-0.004364013671875,
0.007659912109375,
-0.007030487060546875,
0.008087158203125,
-0.0010690689086914062,
0.026031494140625,
-0.007091522216796875,
-0.01006317138671875,
0.037384033203125,
-0.0130767822265625,
-0.055511474609375,
-0.023040771484375,
0.01212310791015625,
-0.00765228271484375,
0.0352783203125,
0.034423828125,
-0.0011739730834960938,
-0.04705810546875,
-0.089599609375,
0.01009368896484375,
-0.0135955810546875,
0.04925537109375,
0.01465606689453125,
-0.04071044921875,
0.034210205078125,
0.0252838134765625,
-0.0165863037109375,
-0.05322265625,
-0.0277862548828125,
0.03118896484375,
0.0194091796875,
0.035430908203125,
-0.034423828125,
-0.04400634765625,
-0.049224853515625,
-0.07763671875,
-0.0169677734375,
0.02105712890625,
0.052581787109375,
-0.021240234375,
0.0106353759765625,
-0.0406494140625,
-0.003948211669921875,
-0.006198883056640625,
-0.01343536376953125,
0.0023365020751953125,
0.0186614990234375,
0.0178985595703125,
-0.0026073455810546875,
-0.0026378631591796875,
-0.0203094482421875,
0.051849365234375,
0.01004791259765625,
-0.0789794921875,
0.0697021484375,
0.037384033203125,
0.08642578125,
-0.03765869140625,
0.002330780029296875,
0.08697509765625,
0.06298828125,
-0.0242156982421875,
0.05810546875,
-0.006252288818359375,
-0.0220489501953125,
-0.0286407470703125,
0.0028285980224609375,
-0.0157623291015625,
0.006046295166015625,
-0.0260162353515625,
0.007781982421875,
0.00527191162109375,
-0.0005908012390136719,
-0.0010728836059570312,
0.0064239501953125,
-0.005748748779296875,
0.0262298583984375,
0.0045623779296875,
-0.0216064453125,
0.017486572265625,
-0.01251983642578125,
-0.046417236328125,
0.05224609375,
0.001789093017578125,
0.07635498046875,
-0.04290771484375,
0.022308349609375,
-0.0233154296875,
0.055999755859375,
-0.0229949951171875,
-0.05767822265625,
-0.031341552734375,
-0.019195556640625,
0.0088958740234375,
-0.0097198486328125,
-0.0101470947265625,
0.00888824462890625,
0.0025577545166015625,
0.021484375,
-0.028167724609375,
0.0078887939453125,
-0.0038433074951171875,
-0.0206756591796875,
-0.045989990234375,
-0.0011148452758789062,
-0.0297698974609375,
-0.03466796875,
-0.01029205322265625,
0.056488037109375,
0.0267486572265625,
0.03277587890625,
0.01003265380859375,
0.0281524658203125,
0.02716064453125,
-0.0294647216796875,
0.01788330078125,
-0.00788116455078125,
0.0279693603515625,
0.045135498046875,
-0.01513671875,
-0.00777435302734375,
0.004566192626953125,
-0.07110595703125,
0.01422119140625,
0.0340576171875,
-0.03790283203125,
-0.049285888671875,
-0.0012006759643554688,
0.026519775390625,
0.0007257461547851562,
-0.01727294921875,
-0.01331329345703125,
-0.01318359375,
0.0232086181640625,
0.0516357421875,
0.03302001953125,
0.034515380859375,
-0.064697265625,
0.065185546875,
0.0114898681640625,
-0.0244903564453125,
0.01013946533203125,
0.03167724609375,
0.06439208984375,
-0.02813720703125,
-0.0220184326171875,
-0.01983642578125,
0.0133819580078125,
0.0183563232421875,
-0.01465606689453125,
0.04425048828125,
-0.039276123046875,
-0.0182647705078125,
-0.01303863525390625,
-0.048614501953125,
-0.0158843994140625,
-0.01552581787109375,
0.053558349609375,
0.0037975311279296875,
0.0236968994140625,
0.0158233642578125,
-0.0211029052734375,
0.05242919921875,
0.0305023193359375,
-0.048736572265625,
0.0152130126953125,
-0.0438232421875,
0.040069580078125,
-0.058929443359375,
0.017120361328125,
0.051910400390625,
-0.046905517578125,
0.020477294921875,
0.004421234130859375,
-0.017333984375,
-0.003459930419921875,
0.03265380859375,
0.00020742416381835938,
-0.020843505859375,
-0.0277099609375,
0.0064239501953125,
0.039825439453125,
0.06884765625,
0.0282745361328125,
-0.027862548828125,
0.0206146240234375,
0.07525634765625,
-0.0628662109375,
-0.0816650390625,
-0.03765869140625,
-0.050445556640625,
0.04620361328125,
0.0001615285873413086,
-0.002166748046875,
-0.020416259765625,
0.0171356201171875,
0.0282745361328125,
-0.005481719970703125,
-0.0233612060546875,
0.0148162841796875,
-0.0340576171875,
-0.05828857421875,
-0.00897216796875,
0.03509521484375,
0.0256805419921875,
0.01221466064453125,
-0.012054443359375,
-0.0035266876220703125,
-0.02630615234375,
0.01654052734375,
-0.0095062255859375,
-0.0080108642578125,
0.00849151611328125,
0.01526641845703125,
-0.056884765625,
0.035491943359375,
-0.0093994140625,
0.031097412109375,
0.01102447509765625,
0.0013599395751953125,
-0.00701904296875,
-0.0323486328125,
-0.0509033203125,
0.00841522216796875,
0.0355224609375,
0.016876220703125,
-0.05810546875,
0.0565185546875,
-0.06378173828125,
-0.017852783203125,
-0.009979248046875,
-0.045013427734375,
-0.051910400390625,
0.01061248779296875,
0.016693115234375,
-0.0180816650390625,
-0.0017709732055664062,
0.03076171875,
0.0229644775390625,
0.0379638671875,
0.004924774169921875,
0.01654052734375,
-0.00937652587890625,
0.0294952392578125,
-0.056121826171875,
0.0143585205078125,
-0.01207733154296875,
0.0218505859375,
0.019287109375,
0.033294677734375,
0.010040283203125,
0.0117034912109375,
-0.027313232421875,
-0.057098388671875,
0.0284576416015625,
-0.06488037109375,
0.022674560546875,
-0.061737060546875,
-0.0217437744140625,
-0.01511383056640625,
0.0792236328125,
0.006275177001953125,
-0.004848480224609375,
-0.0127716064453125,
0.0009059906005859375,
-0.052947998046875,
-0.0303497314453125,
-0.044097900390625,
0.01540374755859375,
-0.04327392578125,
-0.0238494873046875,
-0.0004901885986328125,
-0.039093017578125,
0.024017333984375,
-0.0693359375,
-0.027862548828125,
-0.03948974609375,
0.0194091796875,
-0.038055419921875,
0.03778076171875,
-0.01145172119140625,
0.018585205078125,
-0.027679443359375,
-0.0106048583984375,
-0.045135498046875,
-0.06121826171875,
-0.018463134765625,
0.004192352294921875,
0.055938720703125,
0.0274658203125,
-0.039306640625,
-0.010040283203125,
0.046295166015625,
0.00556182861328125,
0.04840087890625,
-0.0191497802734375,
-0.022613525390625,
0.0278167724609375,
0.0135345458984375,
-0.00901031494140625,
0.00025963783264160156,
0.013519287109375,
0.038604736328125,
-0.00853729248046875,
-0.00301361083984375,
-0.052764892578125,
-0.0894775390625,
0.017578125,
-0.066162109375,
-0.03973388671875,
-0.051422119140625,
-0.0259552001953125,
0.034210205078125,
-0.028167724609375,
0.0101318359375,
-0.050628662109375,
-0.055633544921875,
0.034210205078125,
-0.07525634765625,
0.0037708282470703125,
0.008331298828125,
0.0653076171875,
0.0028133392333984375,
0.01070404052734375,
-0.00905609130859375,
-0.0017747879028320312,
0.03436279296875,
-0.0035648345947265625,
0.032318115234375,
-0.00560760498046875,
-0.0115203857421875,
0.04449462890625,
-0.00901031494140625,
-0.0006432533264160156,
-0.0160369873046875,
0.037811279296875,
-0.007251739501953125,
-0.005275726318359375,
0.0014047622680664062,
-0.02081298828125,
-0.0086517333984375,
0.0185546875,
0.00376129150390625,
0.0023021697998046875,
0.004848480224609375,
-0.00673675537109375,
-0.033905029296875,
0.039337158203125,
0.0289306640625,
-0.037109375,
0.0014219284057617188,
0.0110015869140625,
0.00489044189453125,
0.0309906005859375,
-0.0112457275390625,
-0.00171661376953125,
-0.007373809814453125,
-0.0081329345703125,
0.0142974853515625,
-0.0179595947265625,
-0.0076446533203125,
0.036590576171875,
-0.0223846435546875,
-0.01094818115234375,
0.0282745361328125,
0.007610321044921875,
0.047027587890625,
-0.003307342529296875,
-0.015045166015625,
-0.044830322265625,
-0.0240631103515625,
-0.04400634765625,
-0.037445068359375,
0.0140228271484375,
0.005786895751953125,
0.048858642578125,
-0.0010547637939453125,
0.0175933837890625,
0.049102783203125,
0.044647216796875,
-0.01256561279296875,
-0.0298614501953125,
0.01047515869140625,
-0.0236053466796875,
-0.0311126708984375,
0.04119873046875,
0.01447296142578125,
-0.017608642578125,
-0.00400543212890625,
0.005420684814453125,
0.00405120849609375,
0.01541900634765625,
0.0300750732421875,
-0.004650115966796875,
0.0103607177734375,
-0.025054931640625,
-0.006374359130859375,
-0.057037353515625,
-0.0111236572265625,
0.045379638671875,
0.060455322265625,
-0.0005211830139160156,
-0.031402587890625,
0.0087432861328125,
-0.00823974609375,
-0.0164642333984375,
-0.00238037109375,
-0.03106689453125,
-0.036651611328125,
-0.0272064208984375,
0.004032135009765625,
0.026123046875,
0.00157928466796875,
-0.0043487548828125,
-0.01056671142578125,
-0.00933074951171875,
0.003871917724609375,
0.0152587890625,
-0.03350830078125,
0.013214111328125,
0.01959228515625,
0.08013916015625,
-0.0155029296875,
-0.051971435546875,
-0.02764892578125,
0.00879669189453125,
-0.0302886962890625,
0.0167083740234375,
0.06451416015625,
-0.0182952880859375,
-0.00450897216796875,
-0.029327392578125,
0.006237030029296875,
-0.038116455078125,
-0.0099029541015625,
0.0531005859375,
0.033905029296875,
-0.02435302734375,
-0.0025386810302734375,
0.009765625,
-0.01116943359375,
0.02587890625,
0.00013267993927001953,
-0.02978515625,
-0.017852783203125,
-0.033477783203125,
0.01418304443359375,
-0.00551605224609375,
0.019866943359375,
0.00957489013671875,
0.023040771484375,
-0.032470703125,
0.022125244140625,
0.001987457275390625,
-0.016632080078125,
-0.01641845703125,
0.012939453125,
-0.0084686279296875,
-0.01053619384765625,
0.0306549072265625,
-0.020263671875,
0.03167724609375,
-0.037628173828125,
-0.05596923828125,
-0.01096343994140625,
-0.016571044921875,
0.039947509765625,
0.03338623046875,
-0.0198211669921875,
-0.01488494873046875,
-0.0036525726318359375,
-0.005176544189453125,
-0.0254058837890625,
0.0438232421875,
-0.0007333755493164062,
-0.003215789794921875,
-0.005306243896484375,
-0.00983428955078125,
-0.0118560791015625,
-0.0001697540283203125,
-0.0014190673828125,
-0.0014104843139648438,
-0.0042724609375,
-0.0036487579345703125,
-0.017822265625,
-0.0252838134765625,
0.049774169921875,
0.120849609375,
-0.008148193359375,
0.047088623046875,
0.055328369140625,
-0.0093841552734375,
0.0199737548828125,
0.06732177734375,
0.02178955078125,
-0.026031494140625,
0.0745849609375,
0.01129150390625,
-0.0237274169921875,
0.0274505615234375,
-0.0286865234375,
0.039306640625,
0.09210205078125,
0.09075927734375,
-0.10888671875,
0.01513671875,
0.019012451171875,
-0.046600341796875,
0.024658203125,
-0.0108489990234375,
0.01546478271484375,
0.0260009765625,
-0.0009517669677734375,
0.04071044921875,
-0.0313720703125,
0.01369476318359375,
0.043548583984375,
-0.01493072509765625,
-0.0207977294921875,
0.055694580078125,
0.006984710693359375,
-0.0023021697998046875,
-0.0241546630859375,
-0.0085906982421875,
-0.00862884521484375,
-0.0183868408203125,
-0.009613037109375,
-0.0184478759765625,
-0.024322509765625,
-0.043914794921875,
-0.005390167236328125,
-0.03466796875,
0.01456451416015625,
0.00673675537109375,
0.02557373046875,
0.0257415771484375,
0.05059814453125,
-0.0010442733764648438,
0.0139312744140625,
0.0030460357666015625,
0.034912109375,
0.037628173828125,
-0.0396728515625,
-0.035980224609375,
-0.01148223876953125,
-0.034637451171875,
-0.00439453125,
-0.009796142578125,
0.0017995834350585938,
0.00848388671875,
-0.0143585205078125,
0.033538818359375,
-0.0238494873046875,
-0.0195770263671875,
0.0104217529296875,
-0.0083465576171875,
0.0160980224609375,
-0.0200347900390625,
-0.05572509765625,
-0.042266845703125,
-0.0059051513671875,
-0.045074462890625,
-0.05450439453125,
0.0302886962890625,
-0.038543701171875,
-0.09405517578125,
0.07330322265625,
0.024444580078125,
0.055877685546875,
0.0008158683776855469,
0.01525115966796875,
-0.022186279296875,
-0.0113067626953125,
-0.037200927734375,
0.022003173828125,
0.020904541015625,
0.037994384765625,
-0.015380859375,
-0.0038127899169921875,
0.0267486572265625,
0.0207061767578125,
0.029205322265625,
0.0024166107177734375,
-0.0196533203125,
0.028533935546875,
0.06622314453125,
0.0133514404296875,
-0.030548095703125,
0.02801513671875,
0.0007128715515136719,
-0.0211639404296875,
0.040069580078125,
-0.01029205322265625,
0.026214599609375,
0.004547119140625,
-0.00714874267578125,
0.0203094482421875,
-0.0182342529296875,
-0.045684814453125,
-0.0266265869140625,
0.01165771484375,
-0.0478515625,
-0.01082611083984375,
0.0066986083984375,
0.0137786865234375,
-0.044891357421875,
0.06256103515625,
0.0310516357421875,
-0.0465087890625,
-0.00672149658203125,
-0.0584716796875,
0.04925537109375,
0.015777587890625,
0.0136871337890625,
0.01446533203125,
0.015899658203125,
0.0256500244140625,
-0.00606536865234375,
0.0007476806640625,
0.03570556640625,
-0.006191253662109375,
0.058441162109375,
0.0020999908447265625,
0.0174560546875,
-0.0187835693359375,
0.045806884765625,
0.0248260498046875,
0.06390380859375,
-0.0643310546875,
-0.0188751220703125,
0.00928497314453125,
0.00115966796875,
-0.00318145751953125,
-0.0019483566284179688,
0.036163330078125,
-0.002262115478515625,
-0.0098876953125,
-0.034881591796875,
-0.003143310546875,
0.01045989990234375,
0.02117919921875,
-0.0157623291015625,
-0.0195770263671875,
-0.010772705078125,
-0.01284027099609375,
-0.0229339599609375,
0.00865936279296875,
0.0014791488647460938,
0.0665283203125,
0.009063720703125,
0.0265045166015625,
-0.06939697265625,
-0.0287017822265625,
-0.001529693603515625,
0.04046630859375,
0.006252288818359375,
0.0018472671508789062,
-0.009552001953125,
-0.016876220703125,
-0.0127105712890625,
0.0248260498046875,
0.053863525390625,
0.05548095703125,
0.0209503173828125,
0.0031299591064453125,
0.0455322265625,
0.03302001953125,
0.0207061767578125,
-0.0235137939453125,
0.01323699951171875,
-0.023223876953125,
-0.01251220703125,
-0.0191497802734375,
-0.019622802734375,
-0.0338134765625,
0.0151519775390625,
0.0196533203125,
-0.00002866983413696289,
0.0345458984375,
-0.001140594482421875,
-0.0380859375,
0.058013916015625,
-0.0207061767578125,
0.1295166015625,
0.0274200439453125,
-0.019134521484375,
-0.0016431808471679688,
0.0171356201171875,
-0.08087158203125,
0.02764892578125,
0.053558349609375,
-0.0177764892578125,
-0.00908660888671875,
0.0140838623046875,
-0.050048828125,
0.0231781005859375,
0.031402587890625,
0.01123809814453125,
0.0218353271484375,
0.002330780029296875,
-0.015777587890625,
-0.0202789306640625,
-0.00446319580078125,
0.01090240478515625,
0.01059722900390625,
-0.0010595321655273438,
0.08203125,
-0.0207977294921875,
0.0037517547607421875,
-0.0232086181640625,
0.0014982223510742188,
-0.00728607177734375,
-0.034271240234375,
0.0361328125,
0.029754638671875,
0.00019443035125732422,
-0.0265045166015625,
-0.017974853515625,
0.050750732421875,
0.018890380859375,
-0.01322174072265625,
0.00004839897155761719,
0.046295166015625,
0.0005679130554199219,
0.0115509033203125,
-0.00921630859375,
-0.04107666015625,
-0.04095458984375,
-0.048492431640625,
-0.0257568359375,
0.0206146240234375,
0.0141143798828125,
-0.004909515380859375,
0.03045654296875,
-0.0186614990234375,
0.0006847381591796875,
0.03204345703125,
-0.038299560546875,
0.036865234375,
0.019775390625,
-0.02032470703125,
-0.0014410018920898438,
-0.0084991455078125,
-0.01422119140625,
0.01107025146484375,
0.00914764404296875,
-0.0235137939453125,
0.00574493408203125,
0.005535125732421875,
-0.0261688232421875,
0.0011415481567382812,
0.0151214599609375,
-0.0222625732421875,
0.0174102783203125,
0.0020313262939453125,
-0.02825927734375,
-0.0106048583984375,
-0.02264404296875,
-0.001068115234375,
0.00249481201171875,
-0.00489044189453125,
0.0251007080078125,
0.0224151611328125,
0.004581451416015625,
-0.02691650390625,
0.007389068603515625,
-0.002841949462890625,
-0.00344085693359375,
-0.041717529296875,
-0.00711822509765625,
-0.0131378173828125,
0.044036865234375,
-0.042724609375,
0.026580810546875,
-0.0012874603271484375,
0.041900634765625,
-0.039337158203125,
-0.004314422607421875,
-0.0254058837890625,
0.005702972412109375,
-0.040740966796875,
-0.01230621337890625,
0.0214996337890625,
0.007904052734375,
-0.03814697265625,
-0.0208587646484375,
-0.0244598388671875,
0.012298583984375,
-0.008087158203125,
-0.044647216796875,
0.003574371337890625,
0.0096435546875,
0.00551605224609375,
-0.016998291015625,
-0.004222869873046875,
-0.02239990234375,
0.020965576171875,
-0.03192138671875,
-0.0162506103515625,
-0.034149169921875,
-0.044647216796875,
-0.005023956298828125,
-0.01320648193359375,
0.030181884765625,
-0.01412200927734375,
-0.024627685546875,
0.03851318359375,
0.02008056640625,
-0.0018796920776367188,
-0.0047760009765625,
-0.035400390625,
-0.02789306640625,
-0.0265350341796875,
0.01003265380859375,
0.02294921875,
0.0079193115234375,
0.0251922607421875,
-0.042327880859375,
0.0218963623046875,
0.01384735107421875,
-0.019317626953125,
0.039459228515625,
-0.03497314453125,
0.055328369140625,
0.05126953125,
-0.03448486328125,
-0.021453857421875,
-0.003925323486328125,
-0.061981201171875,
-0.0022296905517578125,
-0.0171966552734375,
-0.03204345703125,
-0.021514892578125,
0.04498291015625,
0.03155517578125,
0.01238250732421875,
-0.01435089111328125,
-0.0261688232421875,
0.0276641845703125,
-0.00870513916015625,
-0.034423828125,
0.022247314453125,
-0.0699462890625,
-0.036224365234375,
-0.027099609375,
-0.03125,
0.0018768310546875,
0.0154266357421875,
-0.0297088623046875,
0.0212860107421875,
0.0253753662109375,
-0.038543701171875,
-0.01177978515625,
-0.05133056640625,
0.09619140625,
-0.046539306640625,
-0.00885772705078125,
0.0031604766845703125,
0.05657958984375,
0.04034423828125,
-0.00244140625,
0.002201080322265625,
0.0518798828125,
-0.0161590576171875,
-0.02777099609375,
0.0325927734375,
-0.0045623779296875,
0.024139404296875,
-0.0047760009765625,
-0.01308441162109375,
0.02435302734375,
-0.0008559226989746094,
0.0091705322265625,
-0.022979736328125,
0.0182647705078125,
0.00891876220703125,
0.0435791015625,
-0.0297393798828125,
-0.017730712890625,
-0.0114288330078125,
0.03265380859375,
0.022308349609375,
-0.00920867919921875,
0.0743408203125,
-0.0491943359375,
0.0080108642578125,
0.049163818359375,
-0.0223541259765625,
-0.0163116455078125,
0.0112762451171875,
-0.01071929931640625,
0.0232391357421875,
-0.0042266845703125
] |
d65ad311fa5d0e1f78169487b080e2534ee1cd44
|
Wordpress Stackexchange
Q: How to rename default posts-type Posts I'm using the posts-type Posts to display portfolio items and it looks strange to have portfolio labeled as posts. Is there any way to rename Posts to Portfolio instead to better reflect it's usage.
A: You need to create a Custom Post Type, "Portfolio".
Posts are Posts. Why try to use them as something they're not, and then try to change their nomenclature, instead of writing one or two simple functions in functions.php, that will result in having both the exact functionality and the exact nomenclature that you want?
|
Q: How to rename default posts-type Posts I'm using the posts-type Posts to display portfolio items and it looks strange to have portfolio labeled as posts. Is there any way to rename Posts to Portfolio instead to better reflect it's usage.
A: You need to create a Custom Post Type, "Portfolio".
Posts are Posts. Why try to use them as something they're not, and then try to change their nomenclature, instead of writing one or two simple functions in functions.php, that will result in having both the exact functionality and the exact nomenclature that you want?
A: The get_post_type_object will do the work.
add_action( 'init', 'ns_change_post_object' );
// Change dashboard Posts to News
function ns_change_post_object() {
$get_post_type = get_post_type_object('post');
$labels = $get_post_type->labels;
$labels->name = 'News';
$labels->singular_name = 'News';
$labels->add_new = 'Add News';
$labels->add_new_item = 'Add News';
$labels->edit_item = 'Edit News';
$labels->new_item = 'News';
$labels->view_item = 'View News';
$labels->search_items = 'Search News';
$labels->not_found = 'No News found';
$labels->not_found_in_trash = 'No News found in Trash';
$labels->all_items = 'All News';
$labels->menu_name = 'News';
$labels->name_admin_bar = 'News';
}
A: // hook the translation filters
add_filter( 'gettext', 'change_post_to_article' );
add_filter( 'ngettext', 'change_post_to_article' );
function change_post_to_article( $translated ) {
$translated = str_ireplace( 'Post', 'Article', $translated ); // ireplace is PHP5 only
return $translated;
}
I got this tip from smashing magazine and tested it and it works great
http://www.smashingmagazine.com/2011/05/10/new-wordpress-power-tips-for-template-developers-and-consultants/
A: I used the following script to rename the default post type:
function change_post_menu_label() {
global $menu, $submenu;
$menu[5][0] = 'Portfolio';
$submenu['edit.php'][5][0] = 'Portfolio';
$submenu['edit.php'][10][0] = 'New Portfolio';
$submenu['edit.php'][16][0] = 'Portfolio Tags';
echo '';
}
add_action( 'admin_menu', 'change_post_menu_label' );
function change_post_object_label() {
global $wp_post_types;
$labels = &$wp_post_types['post']->labels;
$labels->name = 'Portfolio';
$labels->singular_name = 'Portfolio';
$labels->add_new = 'New Portfolio';
$labels->add_new_item = 'New Portfolio';
$labels->edit_item = 'Edit Portfolio';
$labels->new_item = 'New Portfolio';
$labels->view_item = 'View Portfolio';
$labels->search_items = 'Search Portfolio';
$labels->not_found = 'Not found';
$labels->not_found_in_trash = 'Not found in trash';
}
add_action( 'init', 'change_post_object_label' );
A: If you want to simply rename the appearance of posts, rather than creating a custom post type then add this code to your themes functions.php file.
// hook the translation filters
add_filter( 'gettext', 'change_post_to_portfolio' );
add_filter( 'ngettext', 'change_post_to_portfolio' );
function change_post_to_portfolio( $translated ) {
$translated = str_ireplace( 'Post', 'Portfolio', $translated ); // ireplace is PHP5 only
return $translated;
}
In the interests of transparency I got this code from this article, although I have used similar tricks in the past.
A: I found this thread when I was looking for a solution to change the post type from one name to an other.
Instead of doing a custom query as suggested by someone in here I simply did this:
$post = get_post( $id ); // The current post id
$post->post_type = 'receipt'; // The new post type name
wp_update_post( $post ); // Updating the new information
The cpt have to ofc already have been created and formated..
A: Rename posts to portfolio
function litho_posts_portfolio() {
global $menu;
global $submenu;
$menu[5][0] = __("Portfolio", 'litho');
$submenu['edit.php'][5][0] = __("Portfolio", 'litho');
$submenu['edit.php'][10][0] = __("New Item", 'litho');
echo '';
}
function litho_posts_portfolio_label() {
global $wp_post_types;
$labels = &$wp_post_types['post']->labels;
$labels->name = __("Portfolio", 'litho');
$labels->singular_name = __("Item", 'litho');
$labels->add_new = __("New Item", 'litho');
$labels->add_new_item = __("New Item", 'litho');
$labels->edit_item = __("Edit Item", 'litho');
$labels->new_item = __("Item", 'litho');
$labels->view_item = __("View Item", 'litho');
$labels->search_items = __("Search Portfolio", 'litho');
$labels->not_found = __("No Item Found", 'litho');
$labels->not_found_in_trash = __("No Item found in Trash", 'litho');
}
add_action( 'init', 'litho_posts_portfolio_label' );
add_action( 'admin_menu', 'litho_posts_portfolio' );
A: You will just need to create another custom post with the same capabilities as a regular post. You can then disable the Posts menu with this:
function remove_menus()
{
global $menu;
$restricted = array( __('Posts'));
end ($menu);
while (prev($menu))
{
$value = explode(' ',$menu[key($menu)][0]);
if(in_array($value[0] != NULL?$value[0]:"" , $restricted))
{
unset($menu[key($menu)]);
}
}
}
add_action('admin_menu', 'remove_menus');
A: If you just want to change the admin menu label from Post -> Portfolio, then look at this question:
Changing Admin Menu Labels
[Update]
This plugin Admin Menu Editor looks like it will allow you to change menu labels more easily - I haven't tested it though.
|
wordpress
|
{
"language": "en",
"length": 674,
"provenance": "stackexchange_00019.jsonl.gz:408975",
"question_score": "9",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15840"
}
|
[
0.0030345916748046875,
-0.009429931640625,
0.01462554931640625,
0.046875,
-0.02490234375,
-0.020965576171875,
0.059600830078125,
-0.05279541015625,
-0.040252685546875,
0.010162353515625,
0.0132904052734375,
-0.0024433135986328125,
-0.05908203125,
-0.037384033203125,
-0.01129913330078125,
-0.0665283203125,
0.0298004150390625,
0.017181396484375,
0.04241943359375,
-0.0164642333984375,
0.029449462890625,
0.0021495819091796875,
0.029937744140625,
0.006374359130859375,
0.0055694580078125,
0.026275634765625,
0.0343017578125,
-0.01285552978515625,
-0.00865936279296875,
-0.0203399658203125,
0.0244140625,
0.0038776397705078125,
-0.01055145263671875,
0.00716400146484375,
0.04095458984375,
0.08966064453125,
0.019439697265625,
0.0296630859375,
0.0628662109375,
-0.0039520263671875,
0.0216064453125,
-0.013214111328125,
0.00750732421875,
-0.005523681640625,
-0.005950927734375,
-0.027740478515625,
0.0289306640625,
-0.0316162109375,
0.0362548828125,
-0.0374755859375,
-0.001445770263671875,
0.040802001953125,
0.0328369140625,
-0.054901123046875,
-0.021148681640625,
-0.0199127197265625,
-0.01468658447265625,
0.0139007568359375,
0.0487060546875,
0.0096893310546875,
-0.0250701904296875,
-0.014007568359375,
0.0184478759765625,
-0.045196533203125,
0.006885528564453125,
-0.0001417398452758789,
0.0193634033203125,
0.008544921875,
-0.05010986328125,
0.0128936767578125,
0.055816650390625,
-0.039520263671875,
0.0260162353515625,
-0.041473388671875,
0.0296478271484375,
-0.0194244384765625,
-0.01184844970703125,
-0.0126495361328125,
0.0187530517578125,
-0.00327301025390625,
0.001293182373046875,
-0.02435302734375,
0.035491943359375,
-0.024383544921875,
-0.046905517578125,
-0.03173828125,
-0.01439666748046875,
0.01110076904296875,
-0.0384521484375,
-0.02777099609375,
-0.01396942138671875,
-0.0226593017578125,
-0.07318115234375,
0.042083740234375,
0.004749298095703125,
0.0006961822509765625,
-0.00809478759765625,
0.003658294677734375,
-0.0017108917236328125,
0.028045654296875,
-0.0087890625,
-0.03192138671875,
0.01544189453125,
-0.032958984375,
0.01476287841796875,
0.034088134765625,
-0.0096282958984375,
-0.01111602783203125,
0.033905029296875,
0.0259552001953125,
-0.0027828216552734375,
0.0282440185546875,
-0.0009417533874511719,
-0.0014429092407226562,
-0.040313720703125,
0.004955291748046875,
-0.0169830322265625,
0.0166168212890625,
-0.010406494140625,
0.005046844482421875,
0.0022792816162109375,
0.0193939208984375,
0.0345458984375,
-0.04901123046875,
0.020751953125,
0.005847930908203125,
-0.032012939453125,
-0.040618896484375,
0.0226898193359375,
0.0188140869140625,
-0.03216552734375,
-0.000682830810546875,
0.0574951171875,
0.030548095703125,
0.0290374755859375,
-0.022369384765625,
0.0229339599609375,
-0.021270751953125,
-0.020477294921875,
0.033935546875,
0.01345062255859375,
-0.058563232421875,
-0.0240631103515625,
0.006435394287109375,
0.0257415771484375,
0.03277587890625,
0.0210113525390625,
0.01287078857421875,
-0.00555419921875,
-0.0540771484375,
0.0240325927734375,
-0.0207061767578125,
-0.01312255859375,
0.031829833984375,
0.06146240234375,
-0.01308441162109375,
0.048309326171875,
-0.03326416015625,
0.03424072265625,
-0.008758544921875,
0.02020263671875,
-0.0166473388671875,
-0.0111541748046875,
0.0134429931640625,
-0.02154541015625,
0.04840087890625,
0.00508880615234375,
-0.0001995563507080078,
0.012298583984375,
-0.0296783447265625,
0.0263519287109375,
0.0004944801330566406,
-0.019439697265625,
-0.0133514404296875,
0.013580322265625,
0.01085662841796875,
-0.0018072128295898438,
-0.056793212890625,
0.0144500732421875,
0.052703857421875,
0.00443267822265625,
-0.0185089111328125,
-0.037078857421875,
0.024444580078125,
-0.037811279296875,
-0.031341552734375,
0.0247955322265625,
0.0149078369140625,
0.01222991943359375,
0.018402099609375,
0.069580078125,
-0.01230621337890625,
-0.02569580078125,
-0.02099609375,
0.0003993511199951172,
0.003620147705078125,
-0.0200347900390625,
-0.0020656585693359375,
0.00015878677368164062,
-0.00998687744140625,
0.0092010498046875,
0.028076171875,
-0.052154541015625,
0.0257720947265625,
-0.0408935546875,
-0.02593994140625,
0.0039005279541015625,
0.01488494873046875,
-0.01126861572265625,
0.0093536376953125,
0.0171966552734375,
-0.0138397216796875,
-0.0114593505859375,
-0.0343017578125,
-0.0298309326171875,
-0.0031986236572265625,
0.0031795501708984375,
-0.05523681640625,
-0.00594329833984375,
-0.043121337890625,
-0.01056671142578125,
0.04071044921875,
-0.0469970703125,
0.03955078125,
0.0604248046875,
-0.004199981689453125,
-0.03228759765625,
-0.0221405029296875,
0.0242156982421875,
0.0193328857421875,
-0.07257080078125,
0.03564453125,
-0.0166778564453125,
-0.0081939697265625,
-0.0310211181640625,
-0.01288604736328125,
0.017303466796875,
-0.03265380859375,
0.0245513916015625,
0.046722412109375,
-0.0052337646484375,
0.02813720703125,
-0.0227203369140625,
0.02783203125,
0.07623291015625,
0.041961669921875,
0.01110076904296875,
0.0252227783203125,
0.0170745849609375,
0.0574951171875,
-0.018890380859375,
0.003818511962890625,
0.01183319091796875,
-0.0233917236328125,
0.01056671142578125,
0.035400390625,
-0.0013895034790039062,
-0.0166015625,
0.01702880859375,
-0.01273345947265625,
0.0143585205078125,
-0.0192108154296875,
-0.028228759765625,
0.00821685791015625,
0.0745849609375,
-0.0006098747253417969,
0.05029296875,
0.0343017578125,
-0.053863525390625,
0.02703857421875,
0.0158843994140625,
-0.007549285888671875,
-0.0216827392578125,
0.060089111328125,
0.07177734375,
-0.0186920166015625,
-0.06622314453125,
-0.0227508544921875,
0.00833892822265625,
0.038787841796875,
-0.01354217529296875,
0.04132080078125,
-0.035064697265625,
-0.01230621337890625,
-0.00940704345703125,
-0.0472412109375,
-0.00952911376953125,
0.024169921875,
-0.051025390625,
-0.0362548828125,
-0.00035953521728515625,
-0.005474090576171875,
-0.047698974609375,
0.0032863616943359375,
0.03533935546875,
-0.029327392578125,
-0.0251007080078125,
-0.0748291015625,
0.0670166015625,
-0.06964111328125,
0.034088134765625,
0.06768798828125,
-0.026123046875,
0.0291290283203125,
-0.01251983642578125,
0.0289764404296875,
0.0247039794921875,
-0.003818511962890625,
-0.0229644775390625,
-0.01387786865234375,
-0.0634765625,
-0.02362060546875,
0.020843505859375,
0.055267333984375,
-0.02813720703125,
-0.044647216796875,
-0.0166778564453125,
0.0308990478515625,
-0.058990478515625,
-0.0283660888671875,
0.013641357421875,
-0.05767822265625,
-0.0307159423828125,
-0.0159759521484375,
-0.03558349609375,
0.0181121826171875,
-0.005359649658203125,
-0.01192474365234375,
0.0300140380859375,
-0.00004303455352783203,
-0.048431396484375,
-0.0308380126953125,
-0.08624267578125,
-0.0494384765625,
-0.01189422607421875,
0.0113372802734375,
0.017425537109375,
0.025390625,
0.0108795166015625,
-0.0214996337890625,
0.01885986328125,
0.0222625732421875,
-0.025634765625,
0.0042877197265625,
0.040496826171875,
-0.0418701171875,
0.0010652542114257812,
0.00833892822265625,
0.00995635986328125,
0.0303955078125,
-0.0200347900390625,
-0.01593017578125,
-0.006389617919921875,
0.0198974609375,
0.00882720947265625,
0.0208587646484375,
0.01209259033203125,
0.01132965087890625,
-0.0032176971435546875,
-0.03424072265625,
-0.047332763671875,
-0.00012105703353881836,
-0.0433349609375,
-0.0262603759765625,
-0.0028820037841796875,
0.01398468017578125,
-0.0338134765625,
0.0487060546875,
-0.0281829833984375,
0.00469970703125,
0.006622314453125,
-0.040557861328125,
0.04766845703125,
-0.0058135986328125,
-0.00922393798828125,
0.0040130615234375,
-0.04498291015625,
-0.053314208984375,
0.037811279296875,
-0.02655029296875,
-0.003749847412109375,
-0.004390716552734375,
0.03216552734375,
0.007503509521484375,
-0.0997314453125,
0.020660400390625,
-0.12042236328125,
-0.01535797119140625,
-0.0716552734375,
0.0172882080078125,
-0.0049285888671875,
0.10723876953125,
-0.064208984375,
0.0019931793212890625,
0.006931304931640625,
0.0206298828125,
-0.0009784698486328125,
-0.06927490234375,
-0.051544189453125,
-0.0310211181640625,
-0.0391845703125,
0.021087646484375,
0.005779266357421875,
-0.0161895751953125,
-0.033538818359375,
0.04315185546875,
-0.032562255859375,
-0.024078369140625,
0.047698974609375,
-0.0640869140625,
0.0272216796875,
-0.012054443359375,
0.0196990966796875,
-0.0489501953125,
-0.0239105224609375,
-0.03143310546875,
-0.058929443359375,
-0.022491455078125,
0.005901336669921875,
0.045196533203125,
-0.0026378631591796875,
-0.022186279296875,
0.007434844970703125,
0.05511474609375,
0.03692626953125,
0.01207733154296875,
0.0120849609375,
-0.032379150390625,
-0.0050506591796875,
0.01165771484375,
0.012054443359375,
-0.0202178955078125,
-0.0021991729736328125,
-0.0228118896484375,
-0.043060302734375,
0.030303955078125,
-0.00969696044921875,
0.042327880859375,
0.00666046142578125,
-0.01415252685546875,
-0.018402099609375,
-0.023345947265625,
0.0174713134765625,
0.0447998046875,
-0.0006437301635742188,
0.0003027915954589844,
-0.055419921875,
-0.02081298828125,
0.05328369140625,
0.0220184326171875,
-0.004756927490234375,
-0.00400543212890625,
0.09857177734375,
0.0081787109375,
-0.0265655517578125,
-0.07171630859375,
0.020416259765625,
0.03466796875,
0.023162841796875,
0.004459381103515625,
-0.01258087158203125,
-0.021636962890625,
0.038848876953125,
0.0013103485107421875,
-0.049652099609375,
0.0186614990234375,
0.0111846923828125,
0.00765228271484375,
-0.00943756103515625,
-0.0239410400390625,
-0.031402587890625,
0.07537841796875,
0.0196380615234375,
-0.01141357421875,
-0.003849029541015625,
-0.0175628662109375,
0.035125732421875,
-0.0014429092407226562,
-0.0016603469848632812,
-0.04669189453125,
-0.01006317138671875,
0.0146636962890625,
0.0109100341796875,
-0.03082275390625,
-0.006267547607421875,
-0.001865386962890625,
-0.05291748046875,
-0.036041259765625,
0.0186920166015625,
-0.040435791015625,
0.01544952392578125,
-0.0309600830078125,
0.035552978515625,
-0.035675048828125,
-0.003452301025390625,
-0.0274505615234375,
0.005191802978515625,
0.008331298828125,
0.0090789794921875,
-0.03533935546875,
-0.0251617431640625,
0.009124755859375,
0.057952880859375,
0.002002716064453125,
0.01898193359375,
0.00749969482421875,
0.0166168212890625,
0.00669097900390625,
-0.0084075927734375,
-0.020538330078125,
0.039306640625,
-0.0224456787109375,
0.0300445556640625,
0.03216552734375,
-0.019775390625,
0.0031337738037109375,
0.03826904296875,
0.0235748291015625,
0.0016765594482421875,
-0.018035888671875,
0.051483154296875,
0.0286865234375,
0.018341064453125,
-0.007450103759765625,
0.032989501953125,
-0.0166778564453125,
-0.00039696693420410156,
-0.0130615234375,
-0.03155517578125,
0.020355224609375,
-0.005767822265625,
0.033477783203125,
-0.01214599609375,
-0.038238525390625,
0.045135498046875,
-0.061370849609375,
-0.0132598876953125,
-0.0020122528076171875,
-0.0190887451171875,
-0.030975341796875,
-0.007221221923828125,
0.0211181640625,
0.0220947265625,
-0.004581451416015625,
-0.0224456787109375,
-0.00760650634765625,
-0.024993896484375,
0.01458740234375,
-0.00815582275390625,
-0.044158935546875,
0.012725830078125,
0.0218658447265625,
-0.0279998779296875,
-0.0325927734375,
-0.009429931640625,
-0.043670654296875,
-0.0162506103515625,
-0.0033969879150390625,
-0.0167388916015625,
0.0390625,
-0.00441741943359375,
0.0126190185546875,
-0.0014142990112304688,
-0.035064697265625,
0.0168304443359375,
0.0134429931640625,
0.037078857421875,
0.0013647079467773438,
-0.03668212890625,
-0.00984954833984375,
-0.049896240234375,
-0.01318359375,
0.01111602783203125,
-0.040985107421875,
-0.03497314453125,
-0.0091705322265625,
0.021209716796875,
0.0144500732421875,
0.018096923828125,
-0.010284423828125,
-0.01326751708984375,
0.01641845703125,
0.0258636474609375,
0.01131439208984375,
-0.032440185546875,
-0.0234222412109375,
0.035919189453125,
-0.0010709762573242188,
-0.0020427703857421875,
-0.0181732177734375,
0.04974365234375,
-0.03741455078125,
0.00240325927734375,
-0.070068359375,
-0.027435302734375,
0.0145416259765625,
-0.0628662109375,
0.0234222412109375,
0.0240478515625,
-0.004749298095703125,
0.01214599609375,
-0.013458251953125,
0.005390167236328125,
-0.01548004150390625,
-0.0185546875,
-0.01406097412109375,
0.00384521484375,
-0.0032501220703125,
0.01371002197265625,
0.0655517578125,
-0.01549530029296875,
-0.03851318359375,
0.00835418701171875,
0.00186920166015625,
0.0247039794921875,
0.0140533447265625,
-0.040313720703125,
0.006000518798828125,
0.007808685302734375,
-0.0056610107421875,
-0.002513885498046875,
-0.0189666748046875,
-0.00035643577575683594,
0.0179595947265625,
-0.0012331008911132812,
0.0093231201171875,
0.01300048828125,
0.06744384765625,
0.0052032470703125,
-0.038604736328125,
0.043853759765625,
-0.05108642578125,
0.003387451171875,
0.06256103515625,
0.055816650390625,
-0.092529296875,
0.0025234222412109375,
-0.0018367767333984375,
0.005229949951171875,
0.051605224609375,
-0.004863739013671875,
0.0347900390625,
0.03070068359375,
0.0027103424072265625,
-0.006404876708984375,
-0.031768798828125,
-0.01136016845703125,
-0.01010894775390625,
0.02337646484375,
0.0034160614013671875,
0.07635498046875,
0.0109710693359375,
-0.054046630859375,
-0.0275726318359375,
0.037994384765625,
-0.0245819091796875,
-0.04083251953125,
-0.0283050537109375,
0.020843505859375,
-0.0258636474609375,
-0.0770263671875,
0.03314208984375,
-0.033203125,
0.03619384765625,
0.0251617431640625,
0.0044403076171875,
0.014617919921875,
0.046234130859375,
-0.02069091796875,
0.0233154296875,
0.00415802001953125,
0.00905609130859375,
-0.0192718505859375,
-0.006305694580078125,
0.031707763671875,
-0.00286102294921875,
-0.042694091796875,
0.0196533203125,
-0.04217529296875,
-0.0163116455078125,
-0.01422882080078125,
-0.0286102294921875,
0.08538818359375,
-0.030670166015625,
-0.016815185546875,
0.02642822265625,
0.01091766357421875,
-0.0233306884765625,
0.02569580078125,
-0.0477294921875,
-0.0165557861328125,
-0.011260986328125,
-0.0164947509765625,
-0.0714111328125,
0.031768798828125,
0.0080718994140625,
-0.045562744140625,
0.058258056640625,
-0.006397247314453125,
-0.000335693359375,
0.00676727294921875,
0.03265380859375,
-0.01030731201171875,
0.0091400146484375,
-0.019012451171875,
0.016510009765625,
-0.040557861328125,
0.034942626953125,
-0.023529052734375,
0.0163421630859375,
0.00940704345703125,
0.0152435302734375,
0.030242919921875,
-0.0010824203491210938,
-0.0243682861328125,
-0.0088348388671875,
0.08990478515625,
0.06414794921875,
0.036346435546875,
0.0176239013671875,
-0.0106964111328125,
0.0200958251953125,
-0.00799560546875,
-0.02001953125,
0.0295867919921875,
-0.0176239013671875,
-0.055908203125,
0.00921630859375,
0.039642333984375,
0.051116943359375,
-0.01275634765625,
-0.04443359375,
-0.0217437744140625,
-0.006252288818359375,
0.0216217041015625,
0.04296875,
0.00550079345703125,
0.0292510986328125,
0.05963134765625,
-0.025787353515625,
-0.0265960693359375,
-0.01027679443359375,
0.05419921875,
0.0240020751953125,
0.014404296875,
0.0482177734375,
0.0208587646484375,
-0.00399017333984375,
-0.022918701171875,
0.0112152099609375,
0.0010433197021484375,
-0.024383544921875,
0.03173828125,
0.039154052734375,
0.01531219482421875,
-0.032196044921875,
-0.00780487060546875,
0.047576904296875,
0.04876708984375,
-0.033355712890625,
-0.0113677978515625,
0.0308990478515625,
0.0038967132568359375,
-0.0250396728515625,
-0.03668212890625,
-0.01534271240234375,
-0.052947998046875,
-0.0360107421875,
-0.0218658447265625,
0.015472412109375,
0.007640838623046875,
0.0200042724609375,
-0.00785064697265625,
-0.01201629638671875,
-0.031829833984375,
0.00829315185546875,
-0.042083740234375,
0.040771484375,
0.0295257568359375,
0.0257720947265625,
-0.0260009765625,
0.05523681640625,
0.0157623291015625,
0.0131683349609375,
0.00901031494140625,
0.0277099609375,
-0.00782012939453125,
0.00513458251953125,
-0.058990478515625,
-0.0576171875,
0.026824951171875,
0.0633544921875,
0.036895751953125,
0.036407470703125,
0.057708740234375,
0.047882080078125,
0.01271820068359375,
-0.00010597705841064453,
0.00818634033203125,
-0.015380859375,
-0.00763702392578125,
-0.0291900634765625,
0.0065460205078125,
0.0051727294921875,
-0.013427734375,
0.025543212890625,
0.0223236083984375,
0.0191650390625,
-0.033355712890625,
0.0560302734375,
-0.00458526611328125,
-0.0131378173828125,
0.060516357421875,
-0.006664276123046875,
0.07489013671875,
0.0030002593994140625,
-0.062042236328125,
-0.0222625732421875,
-0.01267242431640625,
-0.047119140625,
0.004390716552734375,
0.037750244140625,
-0.0160064697265625,
-0.0033588409423828125,
0.01364898681640625,
-0.01158905029296875,
0.0066680908203125,
0.005279541015625,
0.0152740478515625,
0.023956298828125,
0.01358795166015625,
0.0255126953125,
-0.052032470703125,
-0.05816650390625,
-0.027740478515625,
0.05157470703125,
0.02154541015625,
0.0372314453125,
-0.01116943359375,
0.046539306640625,
-0.051422119140625,
0.054718017578125,
-0.07293701171875,
-0.0255584716796875,
0.01222991943359375,
0.006031036376953125,
-0.00250244140625,
0.0020599365234375,
-0.007049560546875,
-0.0100555419921875,
0.067138671875,
-0.05950927734375,
-0.0195159912109375,
0.00414276123046875,
0.0172576904296875,
-0.03485107421875,
0.0158538818359375,
-0.0265655517578125,
-0.0104827880859375,
-0.0087738037109375,
-0.01255035400390625,
0.01319122314453125,
-0.006191253662109375,
-0.007080078125,
0.0305633544921875,
0.0027523040771484375,
-0.040924072265625,
0.02691650390625,
-0.052642822265625,
0.0302276611328125,
0.027923583984375,
0.01141357421875,
-0.0748291015625,
0.0264129638671875,
-0.00879669189453125,
-0.0038738250732421875,
0.0205078125,
0.07012939453125,
0.025177001953125,
-0.0179901123046875,
-0.0246124267578125,
-0.039337158203125,
0.03131103515625,
0.00200653076171875,
0.01194000244140625,
-0.056060791015625,
0.017578125,
-0.042633056640625,
0.01503753662109375,
-0.017974853515625,
-0.036895751953125,
0.014923095703125,
0.02069091796875,
-0.007801055908203125,
-0.00836944580078125,
-0.045135498046875,
-0.0224456787109375,
0.02532958984375,
-0.0127716064453125,
0.0005397796630859375,
0.0167388916015625,
-0.029266357421875,
-0.045318603515625,
0.0122528076171875,
-0.0921630859375,
0.035003662109375,
0.05718994140625,
-0.0029010772705078125,
0.0246124267578125,
-0.03216552734375,
-0.0623779296875,
-0.0215911865234375,
0.0307464599609375,
0.04052734375,
-0.03814697265625,
0.019744873046875,
0.005374908447265625,
0.01464080810546875,
0.06475830078125,
0.0115509033203125,
-0.00933837890625,
-0.001171112060546875,
-0.017669677734375,
-0.0311431884765625,
-0.06744384765625,
0.0289459228515625,
-0.1033935546875,
-0.0406494140625,
0.032073974609375,
-0.02227783203125,
0.01206207275390625,
-0.019287109375,
-0.05072021484375,
0.09942626953125,
-0.0109405517578125,
-0.035614013671875,
-0.0372314453125,
0.0026645660400390625,
-0.014556884765625,
0.008819580078125,
-0.00728607177734375,
-0.0229949951171875,
0.002105712890625,
0.037384033203125,
0.006378173828125,
0.023529052734375,
0.0207061767578125,
0.0168609619140625,
0.0160064697265625,
0.03302001953125,
0.0338134765625,
-0.0261993408203125,
0.01495361328125,
0.0014219284057617188,
0.0188446044921875,
0.053863525390625,
-0.032257080078125,
-0.023590087890625,
-0.019866943359375,
0.006649017333984375,
0.03179931640625,
-0.0238189697265625,
-0.042236328125,
-0.031463623046875,
-0.0041046142578125,
0.03533935546875,
0.0098724365234375,
-0.004547119140625,
0.0157928466796875,
-0.0384521484375,
-0.0278472900390625,
-0.0013179779052734375,
0.00646209716796875,
-0.049896240234375,
-0.01145172119140625,
0.0450439453125,
0.002101898193359375,
-0.01715087890625,
-0.0229949951171875,
-0.0282745361328125,
-0.0148162841796875,
-0.014007568359375,
-0.007843017578125,
0.00579071044921875,
-0.0227508544921875,
0.00833892822265625,
-0.0094451904296875,
0.01056671142578125,
-0.004962921142578125,
0.0270843505859375,
0.0034084320068359375,
0.0208587646484375,
-0.026885986328125,
-0.0069427490234375,
0.02972412109375,
0.0220947265625,
0.019866943359375,
-0.0005211830139160156,
0.0214691162109375,
0.00797271728515625,
-0.01064300537109375,
0.034576416015625,
0.01554107666015625,
0.048187255859375,
-0.021087646484375,
0.033447265625,
0.010589599609375,
0.02032470703125,
-0.0002579689025878906,
-0.00565338134765625,
-0.002628326416015625,
0.042236328125,
-0.041015625,
-0.005504608154296875,
0.001979827880859375,
-0.0538330078125,
0.02203369140625,
0.003692626953125,
-0.01528167724609375,
0.00664520263671875,
-0.0122528076171875,
0.037261962890625,
-0.032623291015625,
0.0012302398681640625
] |
1a55ce475b7c962592bda9d972eb7af7c0269d57
|
Wordpress Stackexchange
Q: remove last separator? using;
$args = array( 'menu' => 'mainmenu', 'container' => 'ul', 'menu_class' => 'span-10 clearfix', 'after'=>'/');
wp_nav_menu($args);
which gives me;
london/munich/artists/fairs & events/publications/news/contact/
but using the args (or similar) can i remove the / from contact?
any help welcome!
A: Here is a completely different approach to the problem. Since the slashes may be considered to be presentational, they should not go into the HTML. Users without CSS just get to see a regular list.
You could then use CSS to restyle the list and add the slashes in between.
#nav li { display:inline; }
#nav li:before { content:' / '; }
#nav li:first-child:before { content:''; }
Check it out here.
Note: this will not work in IE7 and older. IE7 does support :first-child but :before only works from IE8.
|
Q: remove last separator? using;
$args = array( 'menu' => 'mainmenu', 'container' => 'ul', 'menu_class' => 'span-10 clearfix', 'after'=>'/');
wp_nav_menu($args);
which gives me;
london/munich/artists/fairs & events/publications/news/contact/
but using the args (or similar) can i remove the / from contact?
any help welcome!
A: Here is a completely different approach to the problem. Since the slashes may be considered to be presentational, they should not go into the HTML. Users without CSS just get to see a regular list.
You could then use CSS to restyle the list and add the slashes in between.
#nav li { display:inline; }
#nav li:before { content:' / '; }
#nav li:first-child:before { content:''; }
Check it out here.
Note: this will not work in IE7 and older. IE7 does support :first-child but :before only works from IE8.
A: First +1 for using blueprint css :)
Second: Yes, separators are just presentational and shouldn't be part of the menu (screenreader using people would be confused). So here you get a simple function to add separator-css-classes or any other additional classes whereever you need them. Just modify the three vars to your needs.
And now here's the function that let you exactly target a single nav menu item in a specific location within a specific menu. You just have to modify the first three vars $menu_location, $menu_name, & $menu_item to your needs.
function wpse15844_nav_top_classes( $classes, $item )
{
// EDIT HERE: This is the nav menu location slug
$menu_location = 'top';
// EDIT HERE: This is the nav menu name you entered in the admin-UI > Appearance > Menus (Add menu)
$menu_name = 'Topnav';
// Abort if we're not with the named menu
if ( is_nav_menu( $menu_name ) !== true )
return;
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_location ] ) )
{
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_location ] );
$menu_items = wp_get_nav_menu_items( $menu->term_id );
}
// Abort if we're not in the specified location
else
return;
// EDIT HERE: Enter the nr. of the menu item. Currently we're adding to the last one.
$menu_item = intval( count( $menu_items ) );
if ( $item->menu_order == $menu_item )
{
$classes[] = 'span-10 clearfix';
}
else
{
$classes[] = 'span-10 clearfix separator';
}
return $classes;
}
add_filter( 'nav_menu_css_class', 'wpse15844_nav_top_classes', 10, 2 );
You can then style your separator as you need it from inside your css file.
A: If you can move the / to before the links ( 'before' => '/' instead of 'after' => '/' ), that would make it much easier to filter out; you could do it like this:
function wpse15844_nav_separator_filter( $output, $item, $depth, $args ){
global $wpse15844_nav_separators;
if( !isset( $wpse15844_nav_separators ) )
$wpse15844_nav_separators = array();
if( isset( $wpse15844_nav_separators[$depth] ) && $wpse15844_nav_separators[$depth] )
return $output;
$wpse15844_nav_separators[$depth] = true;
return substr( $output, strlen( $args->before ) );
}
add_filter( 'walker_nav_menu_start_el', 'wpse15844_nav_separator_filter', 10, 4 );
A: And this is how you should be able to add the / after (even if not recommended). For some reason this doesn't work as expected, even if i get the right $args when i print_r it (see #-uncommented code). It adds to the first (in my testcase) instead of the last element.
@John P Bloch @Geert - Could you pls give this a try and tell me if this works wrong for you too? Thanks!
function wpse15844_nav_top_args( $output, $item, $depth, $args )
{
// EDIT HERE: This is the nav menu location slug.
$menu_location = 'top';
// EDIT HERE: This is the nav menu name you entered in the admin-UI > Appearance > Menus (Add menu).
$menu_name = 'Topnav';
// Abort if we're not with the named menu
if ( is_nav_menu( $menu_name ) !== true )
return;
// You won't need the following if statement if you're not targeting the last menu item.
if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_location ] ) )
{
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_location ] );
$menu_items = wp_get_nav_menu_items( $menu->term_id );
}
// Abort if we're not in the specified location - If you're not searching for the last item, you won't need this one too.
else
return;
// EDIT HERE: Enter the nr. of the menu item in the second line inside eg. intval( 3 ). Currently we're adding to the last one.
$menu_item = count( $menu_items );
$menu_item = intval( $menu_item );
// Add the class
if ( $item->menu_order !== $menu_item )
{
$args->after = '/';
# echo '<pre>'; print_r( $args ); echo '</pre>';
}
else
{
$args->after = '';
# echo '<pre>'; print_r( $args ); echo '</pre>';
}
return $output;
}
add_filter( 'walker_nav_menu_start_el', 'wpse15844_nav_top_args', 10, 4 );
|
wordpress
|
{
"language": "en",
"length": 768,
"provenance": "stackexchange_00019.jsonl.gz:408976",
"question_score": "4",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15844"
}
|
[
0.017913818359375,
0.003437042236328125,
-0.022735595703125,
-0.02044677734375,
-0.002826690673828125,
-0.00621795654296875,
-0.004974365234375,
-0.0271148681640625,
-0.0263214111328125,
0.01233673095703125,
0.004810333251953125,
-0.01479339599609375,
-0.05474853515625,
-0.042633056640625,
0.01511383056640625,
-0.045867919921875,
0.021453857421875,
-0.0251922607421875,
-0.0023956298828125,
-0.03436279296875,
0.025360107421875,
-0.0280914306640625,
-0.00933837890625,
0.057403564453125,
-0.038421630859375,
-0.004730224609375,
0.023193359375,
-0.0282135009765625,
-0.0285797119140625,
-0.01399993896484375,
-0.011444091796875,
0.0219879150390625,
-0.005290985107421875,
0.031707763671875,
0.0177764892578125,
0.0301971435546875,
-0.00588226318359375,
0.032623291015625,
0.044769287109375,
-0.004756927490234375,
0.00670623779296875,
-0.012969970703125,
-0.0308990478515625,
0.01287078857421875,
-0.053985595703125,
-0.031890869140625,
0.001049041748046875,
-0.006023406982421875,
0.037017822265625,
-0.0158233642578125,
-0.003353118896484375,
0.003925323486328125,
-0.0005478858947753906,
0.006961822509765625,
-0.03778076171875,
-0.0186614990234375,
0.01496124267578125,
-0.06640625,
0.014892578125,
0.06365966796875,
0.016326904296875,
0.010345458984375,
-0.01087188720703125,
-0.041351318359375,
0.00457000732421875,
0.024322509765625,
0.0343017578125,
0.0247650146484375,
-0.0665283203125,
-0.0237884521484375,
0.0087432861328125,
-0.045501708984375,
-0.0258026123046875,
-0.03912353515625,
0.0113983154296875,
0.0222930908203125,
-0.0340576171875,
-0.0217742919921875,
0.015655517578125,
0.0259246826171875,
-0.0007719993591308594,
0.023529052734375,
-0.05035400390625,
-0.04669189453125,
0.0379638671875,
-0.00937652587890625,
-0.01123046875,
-0.01380157470703125,
-0.00583648681640625,
-0.0013179779052734375,
-0.01174163818359375,
0.00007641315460205078,
0.03900146484375,
-0.01311492919921875,
-0.049530029296875,
-0.010498046875,
0.025299072265625,
0.0347900390625,
-0.0114288330078125,
-0.006168365478515625,
-0.0087127685546875,
-0.0093841552734375,
-0.0098876953125,
-0.03076171875,
0.0041351318359375,
0.0673828125,
-0.0014467239379882812,
0.0009908676147460938,
0.0625,
0.007633209228515625,
0.022857666015625,
0.0677490234375,
-0.0166015625,
-0.0283355712890625,
-0.01055908203125,
0.05413818359375,
-0.0167083740234375,
0.0151214599609375,
0.004150390625,
0.019195556640625,
-0.0226593017578125,
0.013916015625,
-0.0631103515625,
-0.01270294189453125,
0.02947998046875,
0.008880615234375,
0.00893402099609375,
0.02508544921875,
0.00337982177734375,
0.0278167724609375,
-0.026275634765625,
0.0032253265380859375,
-0.007556915283203125,
0.016387939453125,
0.00289154052734375,
-0.01611328125,
0.01078033447265625,
-0.01393890380859375,
-0.005035400390625,
0.016143798828125,
0.005222320556640625,
-0.01389312744140625,
0.01922607421875,
-0.0008540153503417969,
0.02740478515625,
0.0198974609375,
0.01763916015625,
0.01129150390625,
0.00531768798828125,
-0.03173828125,
0.017425537109375,
-0.0201416015625,
0.0882568359375,
-0.003635406494140625,
-0.1181640625,
-0.0208740234375,
-0.00039267539978027344,
-0.0291595458984375,
-0.07073974609375,
-0.06695556640625,
-0.0023593902587890625,
-0.0033855438232421875,
0.02276611328125,
-0.07440185546875,
-0.06640625,
-0.025146484375,
-0.048614501953125,
-0.0084381103515625,
0.0106964111328125,
0.006214141845703125,
-0.016937255859375,
-0.033111572265625,
-0.007465362548828125,
0.025146484375,
0.01027679443359375,
0.04931640625,
0.0012760162353515625,
-0.0400390625,
-0.003841400146484375,
0.0841064453125,
-0.004180908203125,
-0.03863525390625,
-0.04107666015625,
-0.0033740997314453125,
-0.07208251953125,
0.06280517578125,
0.0230865478515625,
0.07098388671875,
0.00431060791015625,
0.0138702392578125,
0.07525634765625,
0.01250457763671875,
-0.005096435546875,
0.028656005859375,
0.0195770263671875,
-0.022918701171875,
0.0105438232421875,
-0.00701904296875,
0.01117706298828125,
-0.04278564453125,
0.00737762451171875,
0.031829833984375,
-0.04010009765625,
0.0113677978515625,
-0.0293121337890625,
-0.01690673828125,
-0.002681732177734375,
0.0255889892578125,
-0.040435791015625,
0.00402069091796875,
0.0272064208984375,
0.004474639892578125,
-0.0224151611328125,
-0.018951416015625,
-0.0169830322265625,
0.00018703937530517578,
0.0030994415283203125,
0.0193939208984375,
-0.0099334716796875,
0.019866943359375,
0.018829345703125,
-0.0347900390625,
0.01158905029296875,
0.036224365234375,
0.042938232421875,
-0.01190948486328125,
-0.050811767578125,
-0.03387451171875,
-0.0307464599609375,
-0.0227203369140625,
-0.058380126953125,
0.0865478515625,
0.038330078125,
0.040008544921875,
-0.00007671117782592773,
0.037200927734375,
0.0312347412109375,
-0.03485107421875,
-0.034942626953125,
0.0234222412109375,
0.052215576171875,
0.029266357421875,
-0.0045928955078125,
-0.042022705078125,
-0.0046844482421875,
-0.0718994140625,
0.0173797607421875,
-0.05047607421875,
-0.0199432373046875,
-0.0020847320556640625,
0.013275146484375,
-0.0240478515625,
0.016143798828125,
0.00885009765625,
-0.00753021240234375,
0.0050506591796875,
-0.04022216796875,
-0.0423583984375,
0.02215576171875,
0.013031005859375,
0.0182342529296875,
0.0071868896484375,
-0.0065460205078125,
0.005565643310546875,
0.0009322166442871094,
0.029144287109375,
0.0114898681640625,
0.01284027099609375,
-0.02117919921875,
-0.00013303756713867188,
0.0237274169921875,
0.0135955810546875,
0.01641845703125,
0.0142059326171875,
0.002346038818359375,
0.0537109375,
-0.01491546630859375,
-0.0005412101745605469,
0.028076171875,
0.00799560546875,
0.007709503173828125,
0.0660400390625,
0.0511474609375,
-0.0081329345703125,
-0.020599365234375,
0.0214691162109375,
0.0255584716796875,
-0.009552001953125,
0.0343017578125,
0.0160064697265625,
0.0263671875,
-0.006374359130859375,
-0.0229644775390625,
0.051422119140625,
-0.0165252685546875,
-0.037353515625,
0.0201263427734375,
0.0008077621459960938,
0.01351165771484375,
-0.027069091796875,
-0.0271453857421875,
0.01959228515625,
-0.004108428955078125,
-0.0295562744140625,
-0.006870269775390625,
-0.0026836395263671875,
-0.00865936279296875,
0.0285797119140625,
0.0093231201171875,
-0.0280303955078125,
-0.01009368896484375,
0.0079193115234375,
0.0036907196044921875,
-0.021209716796875,
-0.007770538330078125,
-0.0243988037109375,
0.007198333740234375,
-0.0182952880859375,
-0.0888671875,
-0.05279541015625,
0.040924072265625,
0.01259613037109375,
-0.048065185546875,
0.061920166015625,
-0.01140594482421875,
-0.005340576171875,
0.08367919921875,
-0.0229644775390625,
0.01715087890625,
-0.038818359375,
-0.04486083984375,
-0.050567626953125,
-0.05511474609375,
0.0240478515625,
0.0101318359375,
0.00977325439453125,
-0.0128631591796875,
0.060089111328125,
0.0117340087890625,
-0.0274505615234375,
0.01849365234375,
-0.01255035400390625,
-0.012237548828125,
0.00891876220703125,
-0.0285491943359375,
0.01253509521484375,
-0.01415252685546875,
0.00440216064453125,
0.016815185546875,
-0.0165557861328125,
0.0010814666748046875,
-0.0036029815673828125,
-0.023956298828125,
0.03656005859375,
0.0011348724365234375,
0.02264404296875,
0.042205810546875,
0.0284881591796875,
-0.0007958412170410156,
-0.027069091796875,
-0.032196044921875,
0.0021953582763671875,
-0.025390625,
0.0439453125,
-0.019744873046875,
0.004924774169921875,
0.002197265625,
0.05841064453125,
0.00403594970703125,
0.006282806396484375,
0.037628173828125,
-0.036163330078125,
0.038299560546875,
-0.00353240966796875,
0.00737762451171875,
-0.058563232421875,
0.10406494140625,
0.00818634033203125,
0.0064239501953125,
0.05859375,
-0.01355743408203125,
0.004322052001953125,
-0.029541015625,
-0.046630859375,
-0.045318603515625,
0.01493072509765625,
-0.045928955078125,
0.017059326171875,
-0.004180908203125,
0.0081939697265625,
0.0030918121337890625,
0.064697265625,
-0.0714111328125,
-0.037933349609375,
0.03216552734375,
0.0217742919921875,
-0.006465911865234375,
-0.015838623046875,
-0.01568603515625,
-0.054290771484375,
-0.0697021484375,
0.029327392578125,
0.0150299072265625,
-0.01081085205078125,
-0.0082550048828125,
-0.01236724853515625,
-0.043731689453125,
-0.04095458984375,
0.032379150390625,
-0.027801513671875,
-0.0211029052734375,
0.0272216796875,
-0.023681640625,
-0.0209197998046875,
-0.039276123046875,
-0.0074920654296875,
-0.04852294921875,
-0.0186767578125,
0.0030956268310546875,
0.0596923828125,
0.00777435302734375,
-0.0007925033569335938,
0.00728607177734375,
0.06549072265625,
0.010498046875,
-0.0338134765625,
0.0279388427734375,
0.005916595458984375,
-0.03839111328125,
0.025177001953125,
0.0142669677734375,
-0.040283203125,
0.041107177734375,
0.0198516845703125,
-0.06427001953125,
-0.03045654296875,
-0.038177490234375,
-0.0184173583984375,
0.036956787109375,
-0.0699462890625,
-0.08062744140625,
-0.051025390625,
0.00061798095703125,
0.0179595947265625,
0.0043792724609375,
-0.00482940673828125,
-0.055328369140625,
-0.06536865234375,
-0.019500732421875,
-0.006816864013671875,
-0.047088623046875,
0.0283966064453125,
0.026214599609375,
0.03375244140625,
-0.00222015380859375,
0.01739501953125,
0.005512237548828125,
0.061798095703125,
-0.012939453125,
0.04864501953125,
0.0217132568359375,
-0.03887939453125,
0.0875244140625,
-0.00641632080078125,
0.0245361328125,
-0.005519866943359375,
0.0094146728515625,
0.025634765625,
-0.01535797119140625,
0.032012939453125,
0.047515869140625,
-0.037445068359375,
0.0157623291015625,
0.006549835205078125,
0.02410888671875,
0.0086212158203125,
-0.00882720947265625,
0.016876220703125,
-0.056671142578125,
-0.0203094482421875,
-0.020111083984375,
0.0009312629699707031,
0.0241851806640625,
0.04852294921875,
0.0321044921875,
-0.01464080810546875,
0.044769287109375,
0.05670166015625,
-0.01383209228515625,
0.006725311279296875,
-0.034637451171875,
-0.025390625,
0.00528717041015625,
0.007228851318359375,
-0.029541015625,
0.035491943359375,
0.0002989768981933594,
0.058990478515625,
0.05059814453125,
0.033294677734375,
-0.08197021484375,
0.011383056640625,
-0.0267791748046875,
-0.074462890625,
0.058563232421875,
0.018829345703125,
-0.027984619140625,
0.0228729248046875,
-0.0096282958984375,
-0.0029506683349609375,
-0.0052032470703125,
-0.02471923828125,
0.004730224609375,
0.033233642578125,
-0.01971435546875,
-0.000028371810913085938,
0.0540771484375,
0.0237274169921875,
0.002506256103515625,
-0.03485107421875,
-0.034423828125,
-0.032958984375,
0.068115234375,
0.009490966796875,
-0.020782470703125,
0.0019102096557617188,
0.05560302734375,
0.062255859375,
-0.0281524658203125,
-0.0235595703125,
0.01213836669921875,
0.036041259765625,
-0.005489349365234375,
-0.00896453857421875,
0.020843505859375,
-0.004482269287109375,
-0.00965118408203125,
0.03155517578125,
-0.02362060546875,
-0.0474853515625,
-0.0178375244140625,
-0.00914764404296875,
0.0186920166015625,
-0.03143310546875,
0.0006594657897949219,
0.0015316009521484375,
0.0001323223114013672,
-0.028350830078125,
0.0770263671875,
-0.054351806640625,
-0.0245208740234375,
-0.004970550537109375,
0.033416748046875,
-0.00481414794921875,
-0.005218505859375,
-0.0296478271484375,
-0.00731658935546875,
-0.0274505615234375,
-0.01505279541015625,
0.052642822265625,
-0.06756591796875,
0.054046630859375,
-0.038238525390625,
0.0200958251953125,
-0.046112060546875,
0.03057861328125,
0.01018524169921875,
0.04400634765625,
-0.028778076171875,
0.023040771484375,
-0.052642822265625,
0.0026302337646484375,
0.03790283203125,
-0.050811767578125,
-0.0082244873046875,
-0.061553955078125,
0.011199951171875,
0.01012420654296875,
0.021820068359375,
0.01380157470703125,
-0.0235748291015625,
0.01001739501953125,
0.01270294189453125,
0.010040283203125,
-0.0220947265625,
0.019775390625,
0.0075531005859375,
-0.0024814605712890625,
-0.0033817291259765625,
0.0133209228515625,
0.00814056396484375,
-0.0137481689453125,
0.0063629150390625,
-0.0084075927734375,
-0.023834228515625,
-0.0078582763671875,
-0.0066986083984375,
0.00002568960189819336,
0.054656982421875,
-0.003910064697265625,
0.0595703125,
-0.0031147003173828125,
0.0118865966796875,
-0.00897216796875,
-0.0205230712890625,
-0.0467529296875,
0.039825439453125,
0.0276031494140625,
0.02764892578125,
0.06689453125,
-0.0249176025390625,
-0.048004150390625,
0.02044677734375,
0.00452423095703125,
0.050872802734375,
-0.0128173828125,
-0.001674652099609375,
-0.0240020751953125,
0.024322509765625,
0.00986480712890625,
0.04852294921875,
0.0181121826171875,
0.042266845703125,
0.06109619140625,
-0.00749969482421875,
0.031646728515625,
0.043304443359375,
0.0277862548828125,
-0.0100555419921875,
0.029327392578125,
0.01340484619140625,
-0.00856781005859375,
0.01541900634765625,
0.05078125,
0.08941650390625,
-0.054229736328125,
0.01300811767578125,
0.031280517578125,
-0.002105712890625,
0.06622314453125,
0.00803375244140625,
-0.00925445556640625,
-0.01337432861328125,
0.016510009765625,
-0.0100860595703125,
-0.005481719970703125,
0.00676727294921875,
0.0024700164794921875,
-0.013671875,
-0.00812530517578125,
-0.01076507568359375,
-0.0092926025390625,
-0.011566162109375,
-0.034210205078125,
0.015869140625,
-0.033233642578125,
-0.040740966796875,
0.003170013427734375,
-0.006481170654296875,
-0.034393310546875,
-0.049896240234375,
0.00628662109375,
-0.0028553009033203125,
0.006565093994140625,
0.004985809326171875,
-0.0291595458984375,
-0.0281982421875,
0.00334930419921875,
-0.0325927734375,
0.006381988525390625,
-0.0240020751953125,
-0.043731689453125,
0.01053619384765625,
-0.006805419921875,
-0.016448974609375,
-0.005451202392578125,
0.005035400390625,
0.0014963150024414062,
-0.0194854736328125,
-0.0008001327514648438,
-0.02685546875,
-0.0223846435546875,
0.0909423828125,
-0.0484619140625,
-0.013519287109375,
-0.0013675689697265625,
0.021209716796875,
0.00914764404296875,
-0.00980377197265625,
-0.017333984375,
-0.0704345703125,
-0.03228759765625,
-0.034332275390625,
-0.055694580078125,
0.017913818359375,
-0.060699462890625,
-0.07086181640625,
0.0777587890625,
-0.0061492919921875,
0.06085205078125,
0.00447845458984375,
0.01036834716796875,
-0.01666259765625,
-0.0162506103515625,
-0.0065155029296875,
0.038177490234375,
0.011810302734375,
0.021636962890625,
-0.02703857421875,
-0.0219573974609375,
0.0010499954223632812,
0.048614501953125,
-0.0243988037109375,
-0.005092620849609375,
-0.00749969482421875,
0.021759033203125,
0.04193115234375,
0.01233673095703125,
0.004978179931640625,
0.0259246826171875,
-0.0036182403564453125,
0.021484375,
-0.005313873291015625,
-0.04022216796875,
0.031585693359375,
-0.075439453125,
-0.01409912109375,
0.0147857666015625,
0.045257568359375,
0.0697021484375,
-0.0012903213500976562,
0.057159423828125,
-0.0233001708984375,
0.0007486343383789062,
0.03778076171875,
-0.00981903076171875,
-0.001544952392578125,
0.0391845703125,
0.00792694091796875,
-0.043853759765625,
-0.055877685546875,
-0.0204315185546875,
0.0325927734375,
0.005466461181640625,
0.00634002685546875,
0.047882080078125,
0.0249786376953125,
0.025665283203125,
0.004730224609375,
0.0140838623046875,
0.0229339599609375,
0.0004558563232421875,
0.0300140380859375,
0.00818634033203125,
0.04180908203125,
-0.0355224609375,
-0.0276947021484375,
0.02642822265625,
0.055938720703125,
-0.02264404296875,
-0.05328369140625,
0.002887725830078125,
0.0007824897766113281,
0.017181396484375,
0.0131072998046875,
0.0012273788452148438,
-0.061553955078125,
-0.012664794921875,
-0.0174102783203125,
0.02850341796875,
0.01422882080078125,
0.0147247314453125,
-0.00672149658203125,
0.030120849609375,
-0.069091796875,
0.0250701904296875,
-0.03570556640625,
0.00603485107421875,
0.026123046875,
0.042510986328125,
0.0273284912109375,
0.03759765625,
0.01447296142578125,
-0.02032470703125,
-0.0026226043701171875,
0.01163482666015625,
-0.01947021484375,
0.010498046875,
0.044036865234375,
0.049652099609375,
-0.06915283203125,
-0.017303466796875,
-0.0010004043579101562,
0.01314544677734375,
0.039306640625,
-0.0076751708984375,
-0.046783447265625,
-0.0142364501953125,
0.0043487548828125,
-0.043609619140625,
-0.0008449554443359375,
-0.048431396484375,
0.0152740478515625,
0.015380859375,
0.0204010009765625,
-0.013580322265625,
0.0108489990234375,
0.0309295654296875,
-0.025054931640625,
0.03564453125,
-0.0138397216796875,
-0.00823974609375,
0.0190277099609375,
-0.012237548828125,
0.005985260009765625,
0.01413726806640625,
-0.022430419921875,
-0.036834716796875,
0.018707275390625,
0.01479339599609375,
0.012603759765625,
0.0216064453125,
0.0004100799560546875,
0.04608154296875,
0.0013523101806640625,
0.0156707763671875,
0.019805908203125,
-0.053466796875,
0.0063934326171875,
0.007049560546875,
0.0061187744140625,
0.006282806396484375,
-0.028533935546875,
-0.0219879150390625,
0.0164947509765625,
0.0142669677734375,
0.0153045654296875,
0.006008148193359375,
0.0191802978515625,
0.01158905029296875,
-0.0280303955078125,
0.0042877197265625,
-0.01201629638671875,
-0.02099609375,
0.01169586181640625,
0.007404327392578125,
0.0024585723876953125,
-0.0105743408203125,
-0.015625,
0.002246856689453125,
0.059173583984375,
-0.07159423828125,
0.00913238525390625,
0.0023136138916015625,
0.006557464599609375,
-0.058746337890625,
0.03289794921875,
-0.006816864013671875,
-0.005401611328125,
-0.01312255859375,
-0.0352783203125,
0.037139892578125,
0.048858642578125,
0.0125274658203125,
0.01113128662109375,
0.040740966796875,
-0.038116455078125,
0.05523681640625,
-0.0362548828125,
0.0955810546875,
0.032440185546875,
0.0018444061279296875,
0.0182647705078125,
0.0029544830322265625,
-0.0251922607421875,
0.00849151611328125,
0.01335906982421875,
-0.01458740234375,
-0.0077667236328125,
0.0252532958984375,
0.018829345703125,
0.0091705322265625,
0.046112060546875,
0.0084991455078125,
0.0035419464111328125,
-0.0152587890625,
0.0017194747924804688,
-0.0031757354736328125,
-0.050445556640625,
-0.033416748046875,
-0.04364013671875,
0.0003330707550048828,
0.034423828125,
-0.025360107421875,
-0.040435791015625,
-0.0843505859375,
-0.00567626953125,
0.0008268356323242188,
0.02545166015625,
-0.0699462890625,
0.061676025390625,
-0.010833740234375,
0.0012912750244140625,
-0.01096343994140625,
0.0232696533203125,
-0.048858642578125,
-0.04443359375,
-0.0156707763671875,
-0.06890869140625,
-0.048736572265625,
0.10260009765625,
-0.035736083984375,
-0.010406494140625,
0.0093994140625,
0.01509857177734375,
-0.01517486572265625,
-0.031951904296875,
-0.022735595703125,
0.0302734375,
0.0017061233520507812,
-0.0169219970703125,
-0.004573822021484375,
0.005588531494140625,
-0.0216217041015625,
-0.00689697265625,
0.001277923583984375,
0.0103302001953125,
-0.03424072265625,
0.0089569091796875,
-0.012908935546875,
-0.0005774497985839844,
-0.0233154296875,
-0.0045318603515625,
0.07073974609375,
0.0239715576171875,
-0.01407623291015625,
0.00226593017578125,
0.023040771484375,
-0.01251983642578125,
-0.00989532470703125,
-0.001556396484375,
-0.01465606689453125,
0.0169677734375,
0.01322174072265625,
0.00856781005859375,
0.10107421875,
-0.022216796875,
-0.0219573974609375,
0.006145477294921875,
0.0255279541015625,
0.004962921142578125,
0.032135009765625,
-0.01175689697265625,
0.02398681640625,
-0.004520416259765625,
0.027862548828125,
-0.01551055908203125,
0.01494598388671875,
0.01203155517578125,
-0.013946533203125,
-0.0010194778442382812,
-0.024932861328125,
-0.040191650390625,
-0.034210205078125,
0.03692626953125,
0.043060302734375,
0.0202484130859375,
-0.01306915283203125,
0.00685882568359375,
0.03692626953125,
0.01329803466796875,
0.010345458984375,
-0.01287841796875,
-0.00620269775390625,
-0.012725830078125,
-0.023162841796875,
-0.0201873779296875,
0.038299560546875,
-0.04901123046875,
-0.035797119140625,
0.017730712890625,
0.004161834716796875,
0.01044464111328125,
-0.0223541259765625,
0.0206146240234375,
0.06585693359375,
-0.046783447265625,
-0.009735107421875,
0.007648468017578125,
0.010528564453125,
0.014434814453125,
-0.0143585205078125,
-0.006450653076171875,
-0.015411376953125,
-0.00860595703125,
0.016448974609375,
0.0013837814331054688,
0.0277252197265625,
-0.03167724609375,
-0.0250396728515625,
0.0081939697265625,
-0.0004420280456542969,
0.012420654296875,
-0.0018596649169921875,
-0.006244659423828125,
-0.040618896484375,
-0.03472900390625,
0.0186767578125,
-0.0205535888671875,
0.0172882080078125,
-0.0226898193359375,
0.0362548828125,
-0.0255584716796875,
-0.00997161865234375,
0.0252227783203125,
-0.042938232421875,
-0.0237579345703125,
-0.02154541015625,
-0.061920166015625,
-0.09771728515625,
0.0199127197265625,
0.046295166015625,
0.0006780624389648438,
0.0322265625
] |
e11c3f5eaa708471be5926cceff445dedc978f03
|
Wordpress Stackexchange
Q: Remove classes from body_class I don't need this whole mess of classes like this...
<body class="page page-id-829 page-template page-template-page-template-portfolio-php portfolio">
I'd like something like this...
<body class="portfolio">
Is there a filter snippet somewhere that has a list of all the classes and I can then just uncomment the stuff I don't want to see in the body class.
Thanks.
A: I would recommend merely omitting the <?php body_class(); ?> template tag, if you have no need for its output.
Just apply class="portfolio" hard-coded into the <body> tag.
|
Q: Remove classes from body_class I don't need this whole mess of classes like this...
<body class="page page-id-829 page-template page-template-page-template-portfolio-php portfolio">
I'd like something like this...
<body class="portfolio">
Is there a filter snippet somewhere that has a list of all the classes and I can then just uncomment the stuff I don't want to see in the body class.
Thanks.
A: I would recommend merely omitting the <?php body_class(); ?> template tag, if you have no need for its output.
Just apply class="portfolio" hard-coded into the <body> tag.
A: You can configure the $whitelist array in this function to filter out all other unwanted classes.
add_filter( 'body_class', 'wpse15850_body_class', 10, 2 );
function wpse15850_body_class( $wp_classes, $extra_classes ) {
// List of the only WP generated classes allowed
$whitelist = array( 'portfolio', 'home', 'error404' );
// Filter the body classes
$wp_classes = array_intersect( $wp_classes, $whitelist );
// Add the extra classes back untouched
return array_merge( $wp_classes, (array) $extra_classes );
}
A: Just place the classes of your css that you want to remove in $ class_delete
add_filter( 'body_class', 'wpse15850_body_class', 10, 2 );
function wpse15850_body_class( $wp_classes, $extra_classes ) {
# List tag to delete
$class_delete = array('tag');
# Verify if exist the class of WP in $class_delete
foreach ($wp_classes as $class_css_key => $class_css) {
if (in_array($class_css, $class_delete)) {
unset($wp_classes[$class_css_key]);
}
}
// Add the extra classes back untouched
return array_merge( $wp_classes, (array) $extra_classes );
}
A: Just an addition to @Geert answer (added a blacklist too) :)
Please be so nice to mark @Geert s answer as solution (not this one).
function wpse15850_body_class( $wp_classes, $extra_classes )
{
// List of the only WP generated classes allowed
$whitelist = array( 'home', 'blog', 'archive', 'single', 'category', 'tag', 'error404', 'logged-in', 'admin-bar' );
// List of the only WP generated classes that are not allowed
$blacklist = array( 'home', 'blog', 'archive', 'single', 'category', 'tag', 'error404', 'logged-in', 'admin-bar' );
// Filter the body classes
// Whitelist result: (comment if you want to blacklist classes)
$wp_classes = array_intersect( $wp_classes, $whitelist );
// Blacklist result: (uncomment if you want to blacklist classes)
# $wp_classes = array_diff( $wp_classes, $blacklist );
// Add the extra classes back untouched
return array_merge( $wp_classes, (array) $extra_classes );
}
add_filter( 'body_class', 'wpse15850_body_class', 10, 2 );
A: This will give every page a body class of only 'portfolio'. The first argument is the array of generated body classes that would normally appear. The second argument is an array of classes passed into the body class function (e.g. body_class('portfolio'); would make the second argument in this function array( 'portfolio' ) ).
function wpse15850_body_classes( $classes, $class ){
return array( 'portfolio' );
}
add_filter( 'body_class', 'wpse15850_body_classes', 10, 2 );
A: Try the following...
function var_template_include( $t ){
$basename = basename($t);
$templatename = substr($basename, 0,strrpos($basename,'.'));
$GLOBALS['current_theme_template'] = $templatename;
return $t;
}
add_filter( 'template_include', 'var_template_include', 1000 );
function current_template( $echo = false ) {
if( !isset( $GLOBALS['current_theme_template'] ) ) {
return false;
} if( $echo ) {
echo $GLOBALS['current_theme_template'];
} else {
return $GLOBALS['current_theme_template'];
}
}
function body_template_as_class() {
echo 'class="'.current_template().'"';
}
A: If you only want to remove a specific class from body Tag you should to this:
add_filter('body_class', 'remove_body_class', 20, 2);
function remove_body_class($wp_classes) {
foreach($wp_classes as $key => $value)
{
if ($value == 'portfolio') unset($wp_classes[$key]); // Replaces "portfolio" and removes it
}
return $wp_classes;
}
A: function alpha_remove_class($wp_classes){
unset( $wp_classes[ array_search( "first_class", $wp_classes ) ] );
return $wp_classes;
}
add_filter( 'body_class', 'alpha_remove_class' );
A: While the solutions above enabled me to put something together that worked in the case where the classes were being added via body_class(), I had another situation where none of them worked at all because the classes were being added by JavaScript.
Additionally I only needed to remove the classes on specific pages and could not do this by modifying or overriding the JS without potentially impacting other pages.
To solve this I added the following to the functions.php of the child theme...
<?php
// remove body classes not added through the wp body_class() function
// jQuery solution
function cbc_manage_body_classes() {
$to_remove = '';
if (is_shop()) { $to_remove .= 'class_one class_two'; }
if ( ! empty($to_remove)) {
?>
<script type="text/javascript">
jQuery(document).ready(function(){ jQuery("body").removeClass('<?php echo $to_remove; ?>'); });
</script>
<?php
}
}
add_action('wp_footer','cbc_manage_body_classes', 99);
The above jQuery solution worked perfectly for my use case. For those who need/want a JavaScript only solution, I put this together...
<?php
// remove body classes not added through the wp body_class() function
// Javascript only solution
function cbc_manage_body_classes() {
$to_remove = '';
if (is_shop()) { $to_remove .= 'class_one class_two'; }
if ( ! empty($to_remove)) {
?>
<script type="text/javascript">
window.onload = function() {
// inspiration from: https://stackoverflow.com/questions/784012/javascript-equivalent-of-phps-in-array
function cbcInArray(needle, haystack) {
var length = haystack.length;
for(var i = 0; i < length; i++) { if(haystack[i] == needle) return true; }
return false;
}
// inspiration from: https://stackoverflow.com/questions/13505253/how-to-remove-the-class-in-javascript
function cbcRemoveClass( elem, name ) {
var classlist = elem.className.split( /\s/ ),
namelist = name.split( /\s/ ),
newlist = [],
idx = 0;
for ( ; idx < classlist.length; idx++ ) {
if ( ! cbcInArray(classlist[ idx ], namelist) ) { newlist.push( classlist[ idx ] ); }
}
elem.className = newlist.join(" ");
return true;
}
cbcRemoveClass(document.getElementsByTagName("body")[0], '<?php echo $to_remove; ?>');
};
</script>
<?php
}
}
add_action('wp_footer','cbc_manage_body_classes', 99);
?>
And for the sake of sharing, here is what I put together for the body_class() use case using the ideas of those who posted before me.
The main difference with this code VS the posted snips is that this code enables whitelisting and blacklisting at the same time.
In the case I built this for I needed to restrict the body classes to a specific set globally and then remove others on specific pages.
<?php
//inpsired by: https://wordpress.stackexchange.com/questions/15850/remove-classes-from-body-class
function cbc_body_class_filter( $wp_classes, $extra_classes ) {
// merge $wp_classes and $extra_classes so all classes are subjected to the filtering
$classes = array_merge( $wp_classes, (array) $extra_classes );
// init list(s) of classes (not)allowed
$whitelist = $blacklist = array();
// block/remove body classes on wc shop page
// this block can be repeated for different pages
if (is_shop()) { // is_page('PAGE SLUG/NAME/ID')) {
$blacklisted = array('class-one', 'class-two');
$blacklist = array_merge($blacklist, $blacklisted);
}
// filter the body classes through the lists
// by filtering the whitelist first we can create a "master" whitelist and then remove other classes on a page by page basis
if ( ! empty($whitelist)) { $classes = array_intersect( $classes, $whitelist ); }
if ( ! empty($blacklist)) { $classes = array_diff( $classes, $blacklist ); }
return $classes;
}
add_filter( 'body_class', 'cbc_body_class_filter', 99, 2 );
?>
|
wordpress
|
{
"language": "en",
"length": 1075,
"provenance": "stackexchange_00019.jsonl.gz:408977",
"question_score": "18",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15850"
}
|
[
0.01380157470703125,
0.0236968994140625,
-0.0206146240234375,
0.03448486328125,
0.01143646240234375,
-0.0521240234375,
0.048492431640625,
-0.03570556640625,
0.007518768310546875,
-0.00441741943359375,
-0.01116180419921875,
0.0125579833984375,
-0.05120849609375,
-0.0287628173828125,
0.004238128662109375,
-0.035491943359375,
0.021759033203125,
0.0208892822265625,
0.04052734375,
0.002780914306640625,
0.0097503662109375,
0.0253448486328125,
0.01049041748046875,
0.00814056396484375,
0.00769805908203125,
0.00307464599609375,
0.03057861328125,
-0.00875091552734375,
-0.0340576171875,
-0.032958984375,
-0.0109405517578125,
0.05712890625,
0.002513885498046875,
0.0460205078125,
-0.03900146484375,
0.02081298828125,
-0.05706787109375,
0.04547119140625,
0.02081298828125,
-0.0182037353515625,
0.00665283203125,
-0.01477813720703125,
0.006439208984375,
-0.00959014892578125,
-0.0284881591796875,
0.0115966796875,
-0.01371002197265625,
-0.029052734375,
0.01000213623046875,
-0.0333251953125,
0.0174407958984375,
0.025634765625,
0.0240478515625,
0.03790283203125,
-0.03204345703125,
0.0034198760986328125,
-0.027618408203125,
0.036712646484375,
0.0308074951171875,
0.043121337890625,
-0.0156707763671875,
0.0085906982421875,
-0.01424407958984375,
-0.060455322265625,
-0.01385498046875,
-0.00662994384765625,
-0.041107177734375,
0.016265869140625,
-0.035400390625,
-0.0190277099609375,
0.0217742919921875,
-0.0249176025390625,
-0.02301025390625,
-0.06463623046875,
-0.006252288818359375,
0.038726806640625,
-0.0167236328125,
-0.02642822265625,
-0.00457000732421875,
0.0157318115234375,
0.0287628173828125,
0.03253173828125,
-0.051361083984375,
-0.0234832763671875,
0.016510009765625,
0.0011110305786132812,
-0.01123046875,
-0.03057861328125,
-0.00383758544921875,
0.00424957275390625,
-0.0258331298828125,
-0.01241302490234375,
0.028045654296875,
0.018829345703125,
-0.03277587890625,
0.00396728515625,
0.00675201416015625,
0.0516357421875,
-0.0011129379272460938,
0.032867431640625,
0.039337158203125,
-0.047149658203125,
0.059967041015625,
-0.07147216796875,
0.0014209747314453125,
0.0328369140625,
-0.01297760009765625,
0.0183868408203125,
0.044830322265625,
0.0357666015625,
0.0141754150390625,
-0.0055999755859375,
-0.017608642578125,
0.0033016204833984375,
-0.0562744140625,
-0.01439666748046875,
-0.04345703125,
-0.0323486328125,
-0.01580810546875,
-0.046539306640625,
0.035919189453125,
0.046539306640625,
0.041717529296875,
-0.07080078125,
0.00885009765625,
0.0035419464111328125,
-0.03717041015625,
-0.06439208984375,
0.032470703125,
-0.0684814453125,
-0.0325927734375,
0.0531005859375,
0.0322265625,
0.0209808349609375,
0.00472259521484375,
0.014556884765625,
0.0241241455078125,
-0.048553466796875,
-0.012542724609375,
0.03021240234375,
-0.0309600830078125,
-0.041839599609375,
0.00016772747039794922,
-0.0272369384765625,
-0.0128936767578125,
0.0090484619140625,
0.0218048095703125,
0.02105712890625,
-0.0206146240234375,
-0.046844482421875,
0.0177459716796875,
-0.0269775390625,
0.003223419189453125,
0.033233642578125,
0.007411956787109375,
-0.00838470458984375,
0.031280517578125,
-0.022674560546875,
0.01033782958984375,
-0.038421630859375,
0.01512908935546875,
0.0086212158203125,
0.0361328125,
-0.0187530517578125,
-0.0235595703125,
-0.0263671875,
-0.040069580078125,
-0.0171661376953125,
0.0229949951171875,
-0.043609619140625,
0.04071044921875,
-0.044708251953125,
0.04034423828125,
0.0032329559326171875,
-0.006805419921875,
0.046051025390625,
0.01129150390625,
-0.007476806640625,
0.024200439453125,
-0.0149688720703125,
-0.036376953125,
-0.06072998046875,
0.0174560546875,
-0.0260467529296875,
-0.06231689453125,
0.0010395050048828125,
0.03607177734375,
0.032012939453125,
-0.01372528076171875,
0.003276824951171875,
0.11517333984375,
0.01039886474609375,
-0.031646728515625,
-0.004039764404296875,
-0.003742218017578125,
0.0008220672607421875,
-0.0236968994140625,
0.01160430908203125,
-0.006923675537109375,
-0.004146575927734375,
0.0098114013671875,
0.01523590087890625,
-0.01129913330078125,
0.0007777214050292969,
-0.0155181884765625,
-0.011627197265625,
0.0004837512969970703,
0.019378662109375,
-0.060516357421875,
-0.016387939453125,
0.03607177734375,
-0.0181427001953125,
-0.03814697265625,
0.00955963134765625,
-0.00580596923828125,
0.0120391845703125,
-0.00453948974609375,
-0.0274810791015625,
-0.0272674560546875,
-0.0181884765625,
-0.04559326171875,
0.0005440711975097656,
-0.043731689453125,
0.039794921875,
0.055419921875,
0.033416748046875,
-0.05548095703125,
-0.01114654541015625,
-0.00959014892578125,
0.026153564453125,
-0.08367919921875,
0.059539794921875,
-0.01378631591796875,
0.032501220703125,
-0.040130615234375,
-0.0135345458984375,
-0.0190887451171875,
-0.0028514862060546875,
0.003360748291015625,
0.022979736328125,
0.0305023193359375,
0.034332275390625,
-0.0253448486328125,
-0.047760009765625,
0.040283203125,
-0.005367279052734375,
0.0209808349609375,
-0.03192138671875,
0.00707244873046875,
0.03814697265625,
-0.00998687744140625,
-0.0085296630859375,
0.01361846923828125,
-0.02642822265625,
-0.00820159912109375,
0.03948974609375,
-0.01690673828125,
0.00565338134765625,
-0.004364013671875,
0.00769805908203125,
0.0017242431640625,
0.0147247314453125,
-0.007793426513671875,
0.0007648468017578125,
0.048065185546875,
-0.01317596435546875,
0.0246124267578125,
0.0109100341796875,
-0.033905029296875,
-0.00817108154296875,
0.03436279296875,
0.0178985595703125,
-0.01194000244140625,
0.04693603515625,
0.01552581787109375,
0.0044403076171875,
-0.008087158203125,
-0.018218994140625,
-0.034576416015625,
0.021759033203125,
-0.00548553466796875,
0.0128326416015625,
0.0216217041015625,
-0.01097869873046875,
-0.006595611572265625,
-0.0212860107421875,
0.04730224609375,
0.028961181640625,
-0.033355712890625,
-0.039276123046875,
-0.0036869049072265625,
0.016998291015625,
-0.034210205078125,
0.0310516357421875,
0.00684356689453125,
-0.04144287109375,
0.0137481689453125,
-0.014129638671875,
0.01137542724609375,
-0.0234222412109375,
0.00884246826171875,
0.0372314453125,
-0.0117034912109375,
-0.0031528472900390625,
0.0014514923095703125,
-0.0021648406982421875,
0.0258636474609375,
-0.03192138671875,
-0.0303955078125,
0.0101165771484375,
-0.0290679931640625,
0.049713134765625,
0.01378631591796875,
-0.00006818771362304688,
0.01038360595703125,
-0.045440673828125,
0.0009832382202148438,
0.004512786865234375,
-0.06854248046875,
-0.0323486328125,
0.042022705078125,
0.0086212158203125,
-0.0211944580078125,
0.0147857666015625,
-0.00765228271484375,
-0.00493621826171875,
0.0240631103515625,
-0.012298583984375,
0.0484619140625,
0.007671356201171875,
-0.08013916015625,
-0.01168060302734375,
-0.0650634765625,
-0.0195159912109375,
-0.0230712890625,
0.0089569091796875,
-0.0073089599609375,
0.09173583984375,
-0.0104217529296875,
-0.05877685546875,
-0.005992889404296875,
-0.0304107666015625,
-0.0007009506225585938,
0.0269622802734375,
0.00958251953125,
-0.036163330078125,
-0.03594970703125,
0.01270294189453125,
-0.01548004150390625,
-0.0186309814453125,
0.0019426345825195312,
-0.02044677734375,
-0.00910186767578125,
-0.01116943359375,
-0.0244140625,
0.032073974609375,
0.0229644775390625,
-0.03497314453125,
-0.0236053466796875,
-0.0693359375,
-0.0660400390625,
0.0193939208984375,
-0.051483154296875,
0.013275146484375,
0.0197601318359375,
-0.00511932373046875,
-0.017120361328125,
0.03192138671875,
-0.01021575927734375,
0.01255035400390625,
-0.028717041015625,
-0.0255889892578125,
0.1051025390625,
-0.002559661865234375,
0.0161590576171875,
-0.0060882568359375,
0.00492095947265625,
-0.030853271484375,
0.0310821533203125,
0.0016851425170898438,
-0.01305389404296875,
-0.0118408203125,
-0.00791168212890625,
-0.024505615234375,
-0.061492919921875,
0.061431884765625,
0.00888824462890625,
0.02001953125,
-0.034698486328125,
-0.0386962890625,
0.01074981689453125,
0.12066650390625,
-0.062744140625,
-0.0188140869140625,
-0.0130157470703125,
0.01140594482421875,
-0.031829833984375,
-0.027984619140625,
-0.04998779296875,
-0.018707275390625,
-0.09271240234375,
0.022857666015625,
0.0073089599609375,
-0.0523681640625,
-0.0269927978515625,
-0.042572021484375,
-0.07122802734375,
-0.03302001953125,
0.017120361328125,
0.023590087890625,
-0.005229949951171875,
-0.0232696533203125,
-0.01033782958984375,
-0.0253448486328125,
0.00261688232421875,
0.0008044242858886719,
-0.045623779296875,
-0.01085662841796875,
-0.0309906005859375,
0.0640869140625,
0.01160430908203125,
0.0233612060546875,
-0.02410888671875,
0.034881591796875,
0.019744873046875,
-0.00510406494140625,
0.00440216064453125,
-0.01165771484375,
-0.0341796875,
0.042510986328125,
0.01418304443359375,
-0.00896453857421875,
0.018585205078125,
0.0024662017822265625,
-0.032928466796875,
0.004364013671875,
-0.04058837890625,
-0.006500244140625,
0.001850128173828125,
-0.0220184326171875,
0.00977325439453125,
-0.041473388671875,
0.007236480712890625,
0.02593994140625,
-0.0114288330078125,
0.0180206298828125,
-0.027496337890625,
0.0157012939453125,
0.06536865234375,
0.0343017578125,
-0.0198516845703125,
0.00926971435546875,
0.061920166015625,
0.007213592529296875,
-0.046142578125,
-0.078125,
0.04345703125,
0.028900146484375,
0.0156707763671875,
0.0382080078125,
-0.01641845703125,
-0.03656005859375,
0.07073974609375,
-0.01221466064453125,
-0.0010423660278320312,
-0.0307769775390625,
0.09552001953125,
-0.01517486572265625,
-0.03619384765625,
0.0382080078125,
-0.03570556640625,
0.0147857666015625,
-0.01959228515625,
-0.005908966064453125,
-0.01474761962890625,
0.03961181640625,
0.02264404296875,
-0.0022678375244140625,
0.021575927734375,
-0.003856658935546875,
-0.00946044921875,
0.002666473388671875,
0.04351806640625,
-0.00453948974609375,
0.04290771484375,
-0.0192108154296875,
-0.02667236328125,
-0.03338623046875,
0.015716552734375,
-0.028228759765625,
-0.0169525146484375,
-0.043670654296875,
0.0281219482421875,
-0.013702392578125,
-0.01145172119140625,
-0.01568603515625,
-0.00931549072265625,
0.0290069580078125,
0.00855255126953125,
-0.044342041015625,
0.005474090576171875,
0.00691986083984375,
0.016510009765625,
0.00957489013671875,
-0.0031890869140625,
0.04840087890625,
0.034423828125,
0.0024089813232421875,
-0.02178955078125,
-0.0411376953125,
0.0192718505859375,
-0.043609619140625,
0.035888671875,
0.025146484375,
-0.0244598388671875,
0.052032470703125,
-0.0323486328125,
-0.0096588134765625,
-0.0022754669189453125,
-0.0016794204711914062,
0.02301025390625,
-0.020660400390625,
0.041290283203125,
0.00807952880859375,
-0.023651123046875,
0.01544189453125,
0.014404296875,
0.00267791748046875,
-0.0260162353515625,
-0.0061798095703125,
0.014373779296875,
0.0278472900390625,
-0.00838470458984375,
-0.00836944580078125,
0.0033111572265625,
-0.02471923828125,
-0.0066680908203125,
0.01557159423828125,
-0.004222869873046875,
0.0025653839111328125,
-0.0218505859375,
-0.009185791015625,
0.03106689453125,
0.0030269622802734375,
-0.0008635520935058594,
-0.001216888427734375,
0.01422119140625,
-0.016937255859375,
0.04254150390625,
-0.08447265625,
0.00536346435546875,
0.038482666015625,
0.0009102821350097656,
0.0242767333984375,
0.01212310791015625,
-0.1419677734375,
-0.06396484375,
-0.0020771026611328125,
0.01953125,
0.0540771484375,
-0.032440185546875,
0.04339599609375,
-0.0095062255859375,
-0.0262451171875,
-0.036834716796875,
0.0283966064453125,
-0.006626129150390625,
0.01361083984375,
-0.005474090576171875,
-0.022430419921875,
-0.062286376953125,
-0.0308380126953125,
-0.06475830078125,
-0.01513671875,
-0.0229644775390625,
0.025238037109375,
0.00505828857421875,
0.02569580078125,
-0.017913818359375,
-0.0223541259765625,
-0.01258087158203125,
0.0186309814453125,
0.017822265625,
0.045318603515625,
-0.05322265625,
0.07373046875,
0.0235137939453125,
0.0380859375,
0.01113128662109375,
0.05938720703125,
0.04461669921875,
-0.03472900390625,
0.0225677490234375,
-0.06512451171875,
-0.04302978515625,
-0.0006546974182128906,
-0.059844970703125,
-0.0007171630859375,
0.0186920166015625,
-0.020751953125,
-0.0172576904296875,
-0.03253173828125,
-0.00893402099609375,
-0.040679931640625,
0.053466796875,
-0.031890869140625,
-0.0150299072265625,
-0.027008056640625,
0.03912353515625,
0.0168304443359375,
-0.0413818359375,
-0.051788330078125,
-0.0121612548828125,
0.032958984375,
-0.009765625,
-0.01264190673828125,
0.011932373046875,
0.017120361328125,
0.0169219970703125,
-0.0316162109375,
0.0277557373046875,
0.00727081298828125,
0.003631591796875,
0.041748046875,
0.01332855224609375,
0.01194000244140625,
-0.01119232177734375,
0.0887451171875,
0.0161895751953125,
-0.0231170654296875,
0.0628662109375,
-0.04443359375,
0.03448486328125,
0.056121826171875,
0.07537841796875,
-0.07025146484375,
0.0180511474609375,
0.00400543212890625,
-0.0156707763671875,
0.07232666015625,
0.0182647705078125,
0.0008378028869628906,
-0.01126861572265625,
-0.01200103759765625,
0.031890869140625,
-0.006130218505859375,
0.005077362060546875,
0.0229339599609375,
-0.01904296875,
-0.005092620849609375,
0.017608642578125,
0.0031585693359375,
-0.0012807846069335938,
-0.016326904296875,
0.0011835098266601562,
0.0002586841583251953,
-0.0247039794921875,
-0.0098114013671875,
0.038116455078125,
-0.012542724609375,
-0.0369873046875,
0.034332275390625,
-0.03131103515625,
0.0234222412109375,
-0.0183258056640625,
0.0177001953125,
0.005352020263671875,
0.011566162109375,
-0.004024505615234375,
-0.01434326171875,
-0.017547607421875,
-0.02557373046875,
-0.03118896484375,
-0.003124237060546875,
0.04571533203125,
-0.0298004150390625,
-0.042572021484375,
0.01268768310546875,
-0.046539306640625,
-0.050689697265625,
-0.020843505859375,
-0.0169525146484375,
0.049560546875,
-0.01123809814453125,
-0.0176544189453125,
0.02655029296875,
0.0323486328125,
-0.0168914794921875,
0.017120361328125,
0.00643157958984375,
-0.025909423828125,
0.0065765380859375,
0.01543426513671875,
0.00031638145446777344,
0.017059326171875,
0.0224761962890625,
-0.07855224609375,
0.06640625,
0.02105712890625,
0.03350830078125,
0.0011348724365234375,
0.03375244140625,
-0.03558349609375,
-0.01409912109375,
-0.03460693359375,
0.035369873046875,
0.01465606689453125,
0.0223388671875,
0.00904083251953125,
0.025634765625,
0.01445770263671875,
-0.0203399658203125,
0.010986328125,
-0.005496978759765625,
-0.01018524169921875,
-0.0026149749755859375,
0.06182861328125,
0.07110595703125,
0.031341552734375,
-0.01015472412109375,
-0.03411865234375,
0.04534912109375,
-0.031463623046875,
-0.0877685546875,
-0.01332855224609375,
-0.04290771484375,
-0.044403076171875,
0.0207061767578125,
0.01418304443359375,
0.03643798828125,
0.00881195068359375,
0.0062713623046875,
0.0026531219482421875,
0.0004642009735107422,
0.00591278076171875,
-0.0136871337890625,
0.01983642578125,
0.0165252685546875,
0.021087646484375,
-0.0703125,
-0.0819091796875,
-0.0107574462890625,
0.03204345703125,
-0.004871368408203125,
0.0266876220703125,
0.04205322265625,
0.027069091796875,
0.032257080078125,
-0.0101776123046875,
0.0172119140625,
0.0241241455078125,
-0.039031982421875,
0.0241546630859375,
0.002658843994140625,
0.022003173828125,
-0.044586181640625,
-0.00960540771484375,
0.032958984375,
0.03143310546875,
-0.020965576171875,
0.01513671875,
0.0208740234375,
-0.0013856887817382812,
-0.0060577392578125,
-0.042694091796875,
0.0008993148803710938,
-0.06951904296875,
-0.073486328125,
-0.00963592529296875,
-0.000027179718017578125,
0.0033702850341796875,
0.0044403076171875,
-0.006622314453125,
-0.0084991455078125,
-0.004550933837890625,
0.028778076171875,
-0.05096435546875,
0.0310821533203125,
0.0189666748046875,
0.015594482421875,
0.005657196044921875,
0.039825439453125,
0.044464111328125,
-0.00798797607421875,
-0.020782470703125,
-0.016510009765625,
-0.00972747802734375,
0.0182037353515625,
-0.023468017578125,
0.02850341796875,
-0.0212860107421875,
0.040924072265625,
0.00490570068359375,
-0.0357666015625,
0.00531005859375,
0.028076171875,
0.0033969879150390625,
-0.022918701171875,
-0.0233306884765625,
-0.01287841796875,
0.01178741455078125,
0.01409149169921875,
-0.01397705078125,
0.011016845703125,
-0.026397705078125,
-0.0175323486328125,
0.0143585205078125,
0.04345703125,
-0.0032138824462890625,
-0.0217437744140625,
0.0148773193359375,
-0.03955078125,
0.01221466064453125,
0.0018901824951171875,
-0.0123291015625,
0.022308349609375,
-0.0382080078125,
-0.00191497802734375,
-0.01436614990234375,
-0.04656982421875,
0.01445770263671875,
0.037689208984375,
-0.0042266845703125,
0.00368499755859375,
0.04119873046875,
-0.01024627685546875,
-0.006603240966796875,
-0.0016946792602539062,
0.0127716064453125,
-0.0006656646728515625,
0.0149383544921875,
0.0172576904296875,
-0.0640869140625,
-0.056396484375,
-0.04522705078125,
0.056365966796875,
0.0184783935546875,
0.09246826171875,
-0.0355224609375,
0.0372314453125,
-0.04083251953125,
0.0218505859375,
-0.030914306640625,
-0.0185546875,
0.00746917724609375,
0.01171112060546875,
0.0005812644958496094,
-0.01081085205078125,
-0.05194091796875,
0.04010009765625,
0.0301513671875,
-0.00496673583984375,
0.05865478515625,
-0.0030975341796875,
-0.008514404296875,
-0.036376953125,
-0.0121307373046875,
-0.0190887451171875,
0.01264190673828125,
-0.015960693359375,
-0.0161590576171875,
0.0421142578125,
0.0022640228271484375,
-0.019195556640625,
-0.0023708343505859375,
0.031219482421875,
-0.02862548828125,
0.0220947265625,
0.003536224365234375,
0.0384521484375,
0.0265960693359375,
0.016265869140625,
-0.050079345703125,
0.01806640625,
0.004566192626953125,
0.0189666748046875,
0.01090240478515625,
0.058746337890625,
0.030914306640625,
0.00618743896484375,
-0.00812530517578125,
0.011199951171875,
0.04180908203125,
0.02264404296875,
0.0066375732421875,
-0.0245208740234375,
-0.01511383056640625,
-0.0243377685546875,
-0.0182342529296875,
-0.00972747802734375,
-0.00919342041015625,
-0.022918701171875,
0.025360107421875,
-0.01110076904296875,
-0.02642822265625,
-0.038360595703125,
-0.0250244140625,
0.0152587890625,
0.00925445556640625,
-0.04400634765625,
0.01511383056640625,
0.002864837646484375,
0.00022280216217041016,
-0.0086822509765625,
0.026153564453125,
-0.0103912353515625,
0.005870819091796875,
-0.052734375,
0.014923095703125,
-0.0269622802734375,
-0.0035381317138671875,
-0.017364501953125,
0.0172576904296875,
0.049774169921875,
-0.028411865234375,
0.052642822265625,
0.0236053466796875,
0.0245208740234375,
0.07598876953125,
-0.053436279296875,
-0.0313720703125,
0.0252838134765625,
0.0030994415283203125,
0.0030689239501953125,
-0.05133056640625,
-0.022735595703125,
-0.01348114013671875,
0.0228729248046875,
0.06024169921875,
-0.04351806640625,
-0.0039520263671875,
-0.033111572265625,
-0.07513427734375,
0.13330078125,
-0.005672454833984375,
-0.03857421875,
0.0008826255798339844,
0.01910400390625,
-0.0055389404296875,
-0.0005626678466796875,
-0.0011568069458007812,
0.004302978515625,
0.0179290771484375,
0.003448486328125,
0.0247955322265625,
0.01305389404296875,
0.02166748046875,
0.004764556884765625,
-0.050750732421875,
0.00949859619140625,
-0.018310546875,
0.0197296142578125,
-0.035797119140625,
0.005035400390625,
0.041259765625,
0.030426025390625,
-0.0059051513671875,
0.04095458984375,
0.0443115234375,
0.00399017333984375,
0.0229339599609375,
0.0290069580078125,
-0.0199127197265625,
-0.0142059326171875,
0.0205230712890625,
-0.006412506103515625,
0.014923095703125,
0.007053375244140625,
0.01800537109375,
0.004367828369140625,
-0.057342529296875,
0.0040130615234375,
0.03765869140625,
-0.049957275390625,
-0.008209228515625,
0.005794525146484375,
-0.00261688232421875,
0.040618896484375,
-0.034423828125,
-0.005950927734375,
0.0014019012451171875,
-0.0001367330551147461,
-0.0014362335205078125,
-0.0264434814453125,
-0.00968170166015625,
-0.0176544189453125,
0.01702880859375,
0.040069580078125,
-0.0408935546875,
0.0322265625,
0.004505157470703125,
0.02374267578125,
-0.0197296142578125,
-0.0396728515625,
0.00030517578125,
0.03570556640625,
-0.00691986083984375,
0.006732940673828125,
-0.020111083984375,
-0.0057220458984375,
-0.037841796875,
0.016265869140625,
0.048492431640625,
0.0196685791015625,
-0.065673828125,
0.00047326087951660156,
0.036102294921875,
-0.019317626953125,
-0.0284423828125,
0.01224517822265625,
0.0001577138900756836,
0.0250701904296875,
0.031646728515625,
-0.0151519775390625,
0.08013916015625,
-0.05072021484375,
-0.0165863037109375,
0.007354736328125,
-0.0098114013671875,
-0.07611083984375,
0.043243408203125,
-0.0548095703125,
0.0213623046875,
0.039764404296875
] |
ef271ea5303345d49ba6825014fd906bb33772f6
|
Wordpress Stackexchange
Q: Reducing image size in RSS only Is it possible to reduce the image size of WordPress rss feeds parse to feedburner?
Meaning to say I still want to retain the large image size on the original post page but only display the thumbnail or medium sized image when subscribers are reading it via feedburner.
A: It's very possible, but quite hard to accomplish reliably for all cases (I was working on a plugin for client to do this and more, but sadly the project was never completed).
But if you need this for specific blog that you have control over - then task can be simplified with some constrains - mainly limiting processing to attachments only.
If so:
*
*filter the_content_rss, extract all images with regexp;
*determine attachments IDs for images, see this question and my answer there for some helpful code;
*retrieve attachment img tag in smaller size and replace currently used version with it.
|
Q: Reducing image size in RSS only Is it possible to reduce the image size of WordPress rss feeds parse to feedburner?
Meaning to say I still want to retain the large image size on the original post page but only display the thumbnail or medium sized image when subscribers are reading it via feedburner.
A: It's very possible, but quite hard to accomplish reliably for all cases (I was working on a plugin for client to do this and more, but sadly the project was never completed).
But if you need this for specific blog that you have control over - then task can be simplified with some constrains - mainly limiting processing to attachments only.
If so:
*
*filter the_content_rss, extract all images with regexp;
*determine attachments IDs for images, see this question and my answer there for some helpful code;
*retrieve attachment img tag in smaller size and replace currently used version with it.
A: If we're talking about thumbnails then yeah, but if you're talking about images inserted in your post then probably not that easy. You'd have to hook to the_content and see if the current view is the RSS view, then run a regexp for images and possibly swap the sizes. WordPress has a naming convention for different registered (add_image_size) sizes so you shouldn't have much trouble there.
A: I wrote a plugin that does this: http://wordpress.org/plugins/rss-image-resize/
Thanks, @Rarst for getting me on the right path to do this!
|
wordpress
|
{
"language": "en",
"length": 245,
"provenance": "stackexchange_00019.jsonl.gz:408990",
"question_score": "3",
"source": "stackexchange",
"timestamp": "2023-03-29",
"url": "https://wordpress.stackexchange.com/questions/15900"
}
|
[
0.0295562744140625,
-0.0016374588012695312,
0.005535125732421875,
0.053558349609375,
0.0164337158203125,
-0.041961669921875,
0.0799560546875,
-0.0634765625,
0.03643798828125,
0.01357269287109375,
-0.042083740234375,
-0.025390625,
-0.005336761474609375,
-0.001766204833984375,
-0.04656982421875,
-0.049468994140625,
0.07537841796875,
-0.033966064453125,
0.059906005859375,
0.0260162353515625,
0.011749267578125,
0.06390380859375,
0.06573486328125,
0.0465087890625,
-0.00887298583984375,
0.02239990234375,
0.089111328125,
-0.0012493133544921875,
-0.0292816162109375,
-0.02740478515625,
0.01422119140625,
-0.0007014274597167969,
0.01203155517578125,
0.009979248046875,
0.01006317138671875,
-0.00360107421875,
0.0001518726348876953,
-0.00777435302734375,
-0.0061492919921875,
0.017303466796875,
0.0254364013671875,
-0.032928466796875,
0.057647705078125,
-0.04449462890625,
0.03289794921875,
0.0202789306640625,
0.0135650634765625,
-0.06427001953125,
0.019622802734375,
-0.04534912109375,
-0.007396697998046875,
0.029022216796875,
0.021820068359375,
-0.0283355712890625,
-0.0293426513671875,
-0.01227569580078125,
-0.01470184326171875,
0.0718994140625,
0.0275421142578125,
-0.055084228515625,
-0.032257080078125,
0.02239990234375,
0.0214080810546875,
0.034576416015625,
-0.00609588623046875,
-0.00044655799865722656,
0.0289154052734375,
-0.00742340087890625,
-0.0013322830200195312,
-0.0115814208984375,
0.020172119140625,
0.002811431884765625,
0.0177764892578125,
-0.0157470703125,
-0.006237030029296875,
-0.00531768798828125,
0.016693115234375,
0.0036449432373046875,
0.0096435546875,
-0.01317596435546875,
0.0218963623046875,
-0.0193023681640625,
-0.0279083251953125,
-0.018798828125,
0.0227813720703125,
-0.0034313201904296875,
0.005462646484375,
-0.0028553009033203125,
-0.0243988037109375,
-0.01003265380859375,
-0.0242156982421875,
-0.0027599334716796875,
-0.043670654296875,
0.052734375,
-0.0205535888671875,
0.0312347412109375,
0.01253509521484375,
-0.0028896331787109375,
-0.00128173828125,
-0.0024261474609375,
0.0207061767578125,
-0.046142578125,
0.0111541748046875,
-0.021636962890625,
0.0038089752197265625,
0.01354217529296875,
-0.0170440673828125,
0.054229736328125,
0.06890869140625,
0.04864501953125,
0.0164794921875,
0.032318115234375,
-0.015716552734375,
-0.0127410888671875,
0.00965118408203125,
0.0335693359375,
-0.035614013671875,
0.043243408203125,
-0.005023956298828125,
0.05584716796875,
-0.0209808349609375,
0.0007076263427734375,
-0.017547607421875,
0.010162353515625,
0.002376556396484375,
-0.0031414031982421875,
-0.0024929046630859375,
0.0037078857421875,
-0.039825439453125,
0.01090240478515625,
-0.01483917236328125,
0.04083251953125,
0.04815673828125,
0.0268402099609375,
-0.0197296142578125,
0.0012655258178710938,
0.04388427734375,
-0.03656005859375,
-0.01151275634765625,
0.025909423828125,
-0.01076507568359375,
-0.0203857421875,
0.033233642578125,
-0.0216064453125,
0.02508544921875,
0.040924072265625,
0.007411956787109375,
-0.00829315185546875,
-0.0004906654357910156,
-0.050872802734375,
0.0236968994140625,
-0.0267333984375,
0.033477783203125,
0.024139404296875,
-0.032684326171875,
-0.0032176971435546875,
0.08447265625,
-0.054290771484375,
-0.032470703125,
-0.09332275390625,
0.0282745361328125,
-0.00811004638671875,
0.00969696044921875,
0.01155853271484375,
-0.003322601318359375,
0.0179443359375,
-0.0555419921875,
0.0079193115234375,
0.0299835205078125,
-0.0045166015625,
0.00933074951171875,
-0.00948333740234375,
0.01141357421875,
0.0111083984375,
0.007076263427734375,
0.0230255126953125,
0.01073455810546875,
0.021514892578125,
-0.00016129016876220703,
0.030792236328125,
0.0011043548583984375,
-0.03515625,
0.06683349609375,
-0.0274200439453125,
-0.0110626220703125,
-0.0031375885009765625,
-0.0018415451049804688,
0.007076263427734375,
0.0216827392578125,
0.0205078125,
0.006137847900390625,
0.01448822021484375,
0.0200042724609375,
-0.0013189315795898438,
-0.0003695487976074219,
-0.0206451416015625,
0.00830078125,
0.01171875,
-0.005901336669921875,
-0.0031108856201171875,
0.05010986328125,
0.0251312255859375,
-0.01441192626953125,
-0.010467529296875,
-0.0665283203125,
0.0303955078125,
-0.027557373046875,
0.033966064453125,
-0.050384521484375,
0.041748046875,
0.01467132568359375,
-0.00725555419921875,
0.002460479736328125,
-0.040496826171875,
0.0303192138671875,
-0.023101806640625,
-0.007266998291015625,
-0.020263671875,
-0.005123138427734375,
0.0013265609741210938,
-0.0232086181640625,
0.005344390869140625,
-0.053955078125,
0.0016107559204101562,
0.056732177734375,
-0.034515380859375,
0.0020503997802734375,
-0.03082275390625,
0.039337158203125,
0.006900787353515625,
-0.0611572265625,
0.0257415771484375,
-0.0234527587890625,
0.0184326171875,
0.018310546875,
0.006153106689453125,
0.05084228515625,
-0.04791259765625,
0.0318603515625,
0.0111541748046875,
0.03741455078125,
0.03631591796875,
0.00733184814453125,
0.0007519721984863281,
0.077392578125,
0.0233154296875,
0.03204345703125,
-0.04656982421875,
0.005157470703125,
0.0289459228515625,
-0.017578125,
-0.0100555419921875,
0.0260162353515625,
-0.0467529296875,
-0.011383056640625,
0.03643798828125,
0.0010080337524414062,
-0.005828857421875,
-0.0300140380859375,
0.05072021484375,
-0.006458282470703125,
0.09033203125,
0.02093505859375,
0.0225830078125,
0.01204681396484375,
0.02398681640625,
0.04058837890625,
0.032989501953125,
-0.03289794921875,
0.01800537109375,
0.01922607421875,
0.01280975341796875,
0.006160736083984375,
0.0136260986328125,
0.013275146484375,
-0.00006109476089477539,
0.00412750244140625,
-0.0178070068359375,
0.01239013671875,
0.006595611572265625,
0.01334381103515625,
0.0184326171875,
-0.036285400390625,
-0.005054473876953125,
-0.00948333740234375,
-0.0213623046875,
0.00968170166015625,
0.047821044921875,
-0.006534576416015625,
0.0250244140625,
0.0028629302978515625,
0.07391357421875,
0.0301055908203125,
0.030487060546875,
0.0014200210571289062,
0.0264892578125,
0.0487060546875,
-0.070068359375,
0.0765380859375,
-0.04150390625,
0.07049560546875,
0.06390380859375,
-0.018829345703125,
0.0247955322265625,
-0.0036296844482421875,
-0.00687408447265625,
-0.0027923583984375,
-0.0078277587890625,
-0.0256195068359375,
0.0036144256591796875,
-0.08087158203125,
-0.024505615234375,
0.0006155967712402344,
0.007625579833984375,
-0.0304107666015625,
-0.033447265625,
-0.01033782958984375,
-0.012054443359375,
-0.0116119384765625,
0.007549285888671875,
-0.0020046234130859375,
-0.08172607421875,
-0.06744384765625,
0.0130462646484375,
-0.0736083984375,
0.031768798828125,
0.046539306640625,
-0.0095672607421875,
-0.04620361328125,
-0.01873779296875,
-0.0196380615234375,
-0.044403076171875,
-0.0489501953125,
0.06524658203125,
-0.0015516281127929688,
0.0177001953125,
0.0041046142578125,
0.005123138427734375,
-0.00200653076171875,
-0.01474761962890625,
0.0234832763671875,
0.05291748046875,
0.01253509521484375,
-0.01010894775390625,
0.00994110107421875,
-0.0006628036499023438,
-0.03656005859375,
0.014007568359375,
0.031341552734375,
0.0166015625,
-0.044403076171875,
-0.007144927978515625,
-0.0307769775390625,
-0.057159423828125,
-0.03857421875,
0.04791259765625,
0.037353515625,
-0.051849365234375,
0.00241851806640625,
-0.0628662109375,
-0.049652099609375,
-0.069580078125,
-0.0928955078125,
0.01189422607421875,
0.09771728515625,
0.025665283203125,
-0.05352783203125,
0.0038547515869140625,
0.0266265869140625,
0.017486572265625,
0.03131103515625,
-0.01320648193359375,
0.034698486328125,
-0.007598876953125,
0.0052642822265625,
-0.0587158203125,
0.0438232421875,
-0.0037689208984375,
0.0253143310546875,
0.02935791015625,
0.0284271240234375,
-0.011688232421875,
0.0125274658203125,
-0.06610107421875,
0.019012451171875,
0.0215606689453125,
-0.0135650634765625,
0.026824951171875,
-0.0215301513671875,
-0.019256591796875,
-0.0288543701171875,
0.0154266357421875,
-0.01247406005859375,
-0.046539306640625,
-0.042236328125,
0.019805908203125,
-0.024566650390625,
-0.071044921875,
0.047637939453125,
-0.010711669921875,
-0.046966552734375,
0.00545501708984375,
-0.0071868896484375,
-0.03375244140625,
0.003448486328125,
-0.051788330078125,
-0.0300140380859375,
-0.032684326171875,
0.010040283203125,
-0.005863189697265625,
0.00168609619140625,
-0.0177001953125,
-0.00879669189453125,
-0.0038623809814453125,
0.00875091552734375,
-0.034454345703125,
-0.0780029296875,
-0.011993408203125,
-0.02532958984375,
0.0494384765625,
-0.0100860595703125,
0.0258941650390625,
-0.02984619140625,
0.03472900390625,
-0.0518798828125,
0.0128021240234375,
-0.021392822265625,
0.035552978515625,
0.00563812255859375,
0.04547119140625,
-0.0044403076171875,
-0.0035762786865234375,
-0.0189056396484375,
-0.0369873046875,
-0.04473876953125,
-0.023956298828125,
-0.01277923583984375,
-0.024871826171875,
-0.01047515869140625,
-0.01169586181640625,
-0.0679931640625,
-0.057525634765625,
-0.00884246826171875,
0.0225067138671875,
-0.00882720947265625,
0.004787445068359375,
-0.077392578125,
-0.047515869140625,
0.005352020263671875,
0.0263519287109375,
0.0033283233642578125,
0.00417327880859375,
0.01464080810546875,
0.01552581787109375,
-0.0241241455078125,
-0.0341796875,
-0.005523681640625,
0.041900634765625,
-0.003086090087890625,
0.0311126708984375,
0.01032257080078125,
-0.0361328125,
0.06805419921875,
0.01739501953125,
0.01837158203125,
-0.058258056640625,
0.09796142578125,
-0.016082763671875,
-0.0054168701171875,
0.0267791748046875,
-0.0189361572265625,
-0.00896453857421875,
0.0440673828125,
-0.004718780517578125,
-0.01055145263671875,
-0.003452301025390625,
0.0309600830078125,
-0.019012451171875,
-0.00524139404296875,
-0.0276031494140625,
-0.04022216796875,
0.020904541015625,
0.0082855224609375,
0.01776123046875,
-0.0044403076171875,
0.004413604736328125,
0.0118408203125,
0.006023406982421875,
0.0180511474609375,
0.0171661376953125,
0.00270843505859375,
-0.014404296875,
0.035430908203125,
-0.004718780517578125,
-0.0030384063720703125,
0.01412200927734375,
0.024688720703125,
-0.1124267578125,
0.0038852691650390625,
-0.0006389617919921875,
-0.0753173828125,
0.045928955078125,
0.0003323554992675781,
-0.02545166015625,
0.0189971923828125,
0.06268310546875,
0.01366424560546875,
-0.0017757415771484375,
-0.027618408203125,
-0.023162841796875,
0.006923675537109375,
-0.05828857421875,
0.01000213623046875,
0.01058197021484375,
-0.0189971923828125,
0.049560546875,
0.00292205810546875,
-0.0411376953125,
0.0400390625,
-0.002956390380859375,
0.0202484130859375,
0.0232391357421875,
-0.00873565673828125,
0.01137542724609375,
0.045684814453125,
-0.011199951171875,
-0.017242431640625,
0.0301666259765625,
-0.0025691986083984375,
-0.0159149169921875,
0.020233154296875,
0.00293731689453125,
-0.0170135498046875,
0.006683349609375,
0.012786865234375,
0.016204833984375,
-0.01311492919921875,
0.0450439453125,
0.00731658935546875,
-0.0469970703125,
-0.0283203125,
-0.01123046875,
0.035614013671875,
-0.0231170654296875,
-0.0302581787109375,
-0.00850677490234375,
-0.03594970703125,
-0.0264892578125,
0.03851318359375,
-0.07269287109375,
0.025421142578125,
0.0361328125,
-0.029052734375,
-0.01236724853515625,
-0.0517578125,
0.07061767578125,
-0.0235137939453125,
0.00714111328125,
-0.0132904052734375,
0.0308380126953125,
0.0039825439453125,
0.01318359375,
-0.0374755859375,
0.0004620552062988281,
-0.03076171875,
0.00173187255859375,
0.0156097412109375,
-0.004596710205078125,
-0.0267486572265625,
-0.020477294921875,
-0.039947509765625,
-0.027618408203125,
-0.002216339111328125,
-0.02752685546875,
-0.011077880859375,
-0.0138397216796875,
0.0092010498046875,
0.0064849853515625,
0.019134521484375,
0.0277862548828125,
0.0125885009765625,
0.0256805419921875,
-0.006988525390625,
0.0264739990234375,
-0.006694793701171875,
-0.017333984375,
0.01044464111328125,
0.0303497314453125,
0.00264739990234375,
-0.00867462158203125,
0.01012420654296875,
-0.034820556640625,
-0.0157928466796875,
-0.053009033203125,
-0.0041656494140625,
0.03265380859375,
-0.01318359375,
0.01800537109375,
0.0069732666015625,
0.0194091796875,
-0.008453369140625,
-0.0147705078125,
0.006221771240234375,
-0.03546142578125,
0.036102294921875,
-0.0143280029296875,
0.0195770263671875,
-0.01456451416015625,
-0.033843994140625,
-0.0110321044921875,
0.01959228515625,
0.01326751708984375,
0.005252838134765625,
-0.010345458984375,
-0.022064208984375,
0.027252197265625,
0.00975799560546875,
-0.01019287109375,
0.0302581787109375,
-0.01593017578125,
0.0016527175903320312,
0.0155792236328125,
-0.0156402587890625,
-0.00598907470703125,
0.018096923828125,
0.00727081298828125,
0.0161895751953125,
0.02130126953125,
-0.00799560546875,
0.0281524658203125,
0.0031280517578125,
-0.004329681396484375,
0.017822265625,
-0.0022335052490234375,
0.061920166015625,
-0.007732391357421875,
0.0223236083984375,
0.03228759765625,
-0.022857666015625,
0.0092315673828125,
-0.0211029052734375,
0.0148162841796875,
0.01010894775390625,
0.0168304443359375,
0.0149993896484375,
-0.038604736328125,
-0.0022735595703125,
0.0111541748046875,
0.0097808837890625,
0.01471710205078125,
0.05035400390625,
0.01358795166015625,
-0.06292724609375,
-0.033111572265625,
0.04547119140625,
-0.01206207275390625,
-0.05157470703125,
0.01541900634765625,
-0.00823974609375,
-0.004436492919921875,
-0.0718994140625,
0.002231597900390625,
0.008453369140625,
0.01242828369140625,
-0.00537109375,
-0.0127105712890625,
0.03125,
0.024078369140625,
-0.006877899169921875,
-0.00400543212890625,
0.01519775390625,
-0.0362548828125,
-0.0281219482421875,
-0.0287933349609375,
0.0189666748046875,
-0.0206451416015625,
-0.032623291015625,
0.0167999267578125,
-0.0340576171875,
-0.018951416015625,
-0.006366729736328125,
-0.033294677734375,
0.07891845703125,
-0.05413818359375,
0.0074005126953125,
0.0101470947265625,
0.026275634765625,
-0.0024585723876953125,
-0.024078369140625,
0.035919189453125,
-0.0748291015625,
-0.033172607421875,
-0.006587982177734375,
-0.033050537109375,
-0.0080108642578125,
-0.013946533203125,
-0.08233642578125,
0.08489990234375,
0.01192474365234375,
0.04876708984375,
0.0019092559814453125,
0.01122283935546875,
-0.01030731201171875,
-0.0047149658203125,
-0.0008950233459472656,
-0.01708984375,
-0.0418701171875,
-0.01116943359375,
0.00649261474609375,
0.0291595458984375,
-0.015472412109375,
-0.0115509033203125,
0.037445068359375,
0.008148193359375,
-0.0450439453125,
-0.048126220703125,
0.0188751220703125,
0.06011962890625,
0.029022216796875,
0.02191162109375,
-0.024444580078125,
0.00408172607421875,
0.0107269287109375,
-0.013275146484375,
0.01995849609375,
0.01177978515625,
-0.05584716796875,
-0.00783538818359375,
-0.012420654296875,
-0.00732421875,
0.0294952392578125,
0.03741455078125,
0.0237274169921875,
-0.0118560791015625,
0.0006847381591796875,
-0.07806396484375,
0.045806884765625,
0.035491943359375,
0.055999755859375,
-0.0089874267578125,
-0.0489501953125,
0.0022983551025390625,
0.04754638671875,
0.005489349365234375,
0.0307464599609375,
0.0006041526794433594,
-0.0010890960693359375,
0.098388671875,
0.01125335693359375,
0.0066680908203125,
0.03936767578125,
0.01715087890625,
-0.025909423828125,
-0.02734375,
0.007595062255859375,
-0.049896240234375,
-0.0340576171875,
0.02764892578125,
-0.005523681640625,
-0.0027942657470703125,
-0.039642333984375,
-0.002071380615234375,
-0.0050811767578125,
0.032958984375,
-0.00005614757537841797,
0.034515380859375,
-0.028472900390625,
-0.0034122467041015625,
-0.0248870849609375,
0.00577545166015625,
0.04254150390625,
0.038787841796875,
0.0023059844970703125,
0.0086212158203125,
-0.05517578125,
-0.034820556640625,
0.01702880859375,
-0.016632080078125,
0.01044464111328125,
-0.00847625732421875,
-0.0077667236328125,
-0.006908416748046875,
0.00783538818359375,
0.033447265625,
-0.0290374755859375,
0.063720703125,
-0.01157379150390625,
0.046722412109375,
-0.0128326416015625,
-0.0153656005859375,
-0.0115814208984375,
0.01751708984375,
-0.046905517578125,
-0.00878143310546875,
0.01274871826171875,
-0.00611114501953125,
-0.1085205078125,
-0.039794921875,
0.0012655258178710938,
-0.0572509765625,
0.007465362548828125,
0.0036945343017578125,
0.00792694091796875,
0.0297698974609375,
-0.025665283203125,
-0.01910400390625,
0.0197601318359375,
0.054107666015625,
-0.032928466796875,
0.00450897216796875,
-0.0026988983154296875,
0.0016469955444335938,
0.004856109619140625,
-0.0135955810546875,
-0.033966064453125,
-0.02490234375,
-0.0604248046875,
0.0102386474609375,
-0.022979736328125,
-0.062286376953125,
0.0027065277099609375,
0.02227783203125,
-0.05792236328125,
0.03668212890625,
0.0023708343505859375,
0.00954437255859375,
-0.023284912109375,
-0.0318603515625,
0.0202178955078125,
-0.0198822021484375,
0.0104522705078125,
0.0082244873046875,
-0.037628173828125,
-0.03582763671875,
-0.01168060302734375,
0.04681396484375,
0.018402099609375,
0.08367919921875,
-0.0172119140625,
0.0194549560546875,
-0.01849365234375,
-0.03387451171875,
0.0230560302734375,
-0.00067138671875,
-0.01236724853515625,
0.0167388916015625,
-0.003662109375,
-0.02264404296875,
-0.0168609619140625,
-0.00429534912109375,
0.035491943359375,
-0.029632568359375,
-0.0174102783203125,
-0.0303802490234375,
0.0218963623046875,
0.0184173583984375,
-0.0191802978515625,
-0.0306549072265625,
0.0009031295776367188,
0.00945281982421875,
0.0016078948974609375,
0.01369476318359375,
-0.0018949508666992188,
0.01364898681640625,
0.032012939453125,
0.0228271484375,
0.0011615753173828125,
0.0267181396484375,
-0.028472900390625,
0.03472900390625,
0.035064697265625,
-0.0018453598022460938,
-0.031585693359375,
-0.01082611083984375,
-0.00411224365234375,
-0.0169525146484375,
0.019195556640625,
-0.0002765655517578125,
0.019317626953125,
-0.0208587646484375,
0.045379638671875,
0.01351165771484375,
0.0304718017578125,
-0.0242919921875,
-0.005157470703125,
0.0265655517578125,
0.0014438629150390625,
-0.03558349609375,
0.0310821533203125,
0.005313873291015625,
0.0025482177734375,
-0.039398193359375,
-0.01007080078125,
-0.00013387203216552734,
-0.055023193359375,
-0.0306549072265625,
0.020721435546875,
-0.006473541259765625,
0.003875732421875,
-0.0306854248046875,
0.06549072265625,
-0.035797119140625,
-0.0245208740234375,
-0.01123046875,
-0.0684814453125,
-0.003398895263671875,
0.0462646484375,
0.0210113525390625,
-0.08575439453125,
-0.052001953125,
0.06622314453125,
-0.06231689453125,
0.01247406005859375,
0.00018358230590820312,
-0.023529052734375,
0.03857421875,
0.0184326171875,
0.034423828125,
0.061767578125,
0.0290679931640625,
-0.0178070068359375,
-0.043670654296875,
0.029541015625,
0.01947021484375,
-0.03533935546875,
0.0224609375,
-0.05242919921875,
-0.0305938720703125,
0.001560211181640625,
-0.0007228851318359375,
0.0143890380859375,
-0.01496124267578125,
-0.0306243896484375,
0.059967041015625,
0.0054473876953125,
-0.0129241943359375,
0.0025386810302734375,
0.01215362548828125,
-0.0017185211181640625,
-0.01776123046875,
-0.002742767333984375,
0.0028476715087890625,
-0.01776123046875,
0.011505126953125,
0.00048542022705078125,
-0.0191497802734375,
0.04779052734375,
-0.01084136962890625,
-0.00809478759765625,
0.0232696533203125,
0.035675048828125,
-0.01268768310546875,
-0.0447998046875,
0.032928466796875,
0.004741668701171875,
0.0177764892578125,
-0.01259613037109375,
0.005702972412109375,
0.0230560302734375,
0.0267333984375,
-0.02813720703125,
0.00007146596908569336,
-0.050933837890625,
-0.00250244140625,
0.0777587890625,
0.104736328125,
0.021881103515625,
-0.04351806640625,
-0.0106658935546875,
0.00220489501953125,
-0.003513336181640625,
-0.01033782958984375,
0.00873565673828125,
-0.062042236328125,
-0.0216064453125,
-0.01111602783203125,
-0.01386260986328125,
0.006603240966796875,
-0.0411376953125,
-0.06072998046875,
-0.0233306884765625,
-0.076904296875,
0.0079345703125,
-0.054718017578125,
0.03955078125,
-0.01361083984375,
-0.0095672607421875,
0.01995849609375,
-0.021728515625,
-0.005451202392578125,
0.011566162109375,
-0.0181121826171875,
-0.0159454345703125,
-0.05462646484375,
0.00815582275390625,
0.04815673828125,
-0.0158843994140625,
0.01470947265625,
-0.030303955078125,
-0.0246124267578125,
-0.01580810546875,
0.001430511474609375,
0.0294952392578125,
0.019256591796875,
-0.0041656494140625,
-0.04876708984375,
0.0029277801513671875,
-0.027740478515625,
-0.040130615234375,
-0.044921875,
-0.032196044921875,
0.01016998291015625,
-0.03863525390625,
0.017059326171875,
0.0208282470703125,
-0.0301361083984375,
-0.00963592529296875,
0.03271484375,
-0.0244140625,
-0.053955078125,
0.0289764404296875,
-0.04266357421875,
0.0213165283203125,
0.018524169921875
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.