midowpgm
Forum Replies Created
-
Of course, good plugins have been rated and recommended
- This reply was modified 4 years, 7 months ago by midowpgm.
Forum: Reviews
In reply to: [Shortcoder — Create Shortcodes for Anything] the bestGood plugin, worthy of recommendation
- This reply was modified 4 years, 7 months ago by midowpgm.
Wow! So happy, I follow your instructions
[sc name=”next” mails=’ “${mail1}”,”${mail2}”,”${mail3}”,”${mail4}”,”${mail5}” ‘]
And also modified
var mailarray=[” %%mail%% “]; Change to var mailarray=[%%mail%%];
Solved my problem, thank you very much, this is really a great plugin, now I can use the shortcode more convenientlyThank you for your quick reply, this is the way I originally used
var c=url.searchParams.get(“count”);
c++;
document.getElementById(“count”).value = c;
var mailarray=[“${mail1}”,”${mail2}”,”${mail3}”,”${mail4}”,”${mail5}”];
var newarray=[];
newarray=mailarray.filter(d=>d);
if(newarray[c]){
document.getElementById(“nextmail”).value = newarray[c];
}I hope to change to use
var c=url.searchParams.get(“count”);
c++;
document.getElementById(“count”).value = c;
var mailarray=[“%%mail%%”];
var newarray=[];
newarray=mailarray.filter(d=>d);
if(newarray[c]){
document.getElementById(“nextmail”).value = newarray[c];
}Shortcode usage
[sc name=”next” mails=”${mail1}”,”${mail2}”,”${mail3}”,”${mail4}”,”${mail5}”]
Of course, my usage is wrong, I want to ask for your help, is it possible to use it in the shortcode
The number of ${mail1} is variable, maybe “${mail1}”,”${mail2}”,”${mail3}”,”${mail4}” maybe “${mail1}”,”${mail2}”Thank you very much for your reply help
I have tried [sc name=”form” mail=”${mailto1},${mailto2},${mailto3}”]
But not the way i need
For example var mail=[“${mailto1}”,”${mailto2}”,”${mailto3}”]
The result of “mail.length” will be 3
If using [“${mailto1},${mailto2},${mailto3}”]
The result of “mail.length” will be 1
I need to apply the results obtained to the count to match the order in which the next mail is sent