| 开发者 |
mevabi
mevabien22 |
|---|---|
| 更新时间 | 2026年9月26日 05:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[mevabishortest] shortcode.[mevabishortest title="Test title" description="Optional description" button="Next" display="all" score="yes" repeat="Take the test again" q1="Question 1|Answer A;10|Answer B;5|Answer C;0" q2="Question 2|Answer A;0|Answer B;10|Answer C;5" result="Beginner;0;10|Intermediate;11;20|Advanced;21;25|Expert;26;50"]
The visual builder generates this shortcode for you, so you do not need to write the syntax manually.
Flexible scoring and result ranges
Each answer can have its own point value. Result messages are displayed according to the total score obtained.
Use the following format:
result="Text;minimum;maximum|Text2;minimum;maximum"
Negative scores are supported. For example:
result="Insufficient;-10;-5|Very low;-4;2|Great student;3;20"
This makes the plugin suitable for tests where incorrect answers can subtract points or where different answers have different levels of value.
Display modes
Choose between two ways of presenting your test:
score="yes"
displays the score, while:
score="no"
hides the numeric score and displays only the corresponding result.
You can also add a retake button:
repeat="Take the test again"
This allows visitors to restart the test after seeing their result.
Shortcode characters
The characters |, ; and " are used as internal separators in the shortcode and cannot be used directly inside question, answer or result text.
The visual builder automatically removes these characters from entered text to help prevent shortcode conflicts.
mevabi-shortest folder to the /wp-content/plugins/ directory.[mevabishortest] shortcode and paste it into any WordPress post or page.No. Test results are calculated entirely in the visitor's browser. The plugin does not store visitor answers or test results on the server.
No. Test content is stored directly in the shortcode attributes, so the plugin does not need custom database tables for your tests.
Yes. You can insert the same shortcode, or several different test shortcodes, multiple times on the same post or page.
Yes. The visual builder lets you create questions, answers, scores and result ranges without manually writing the shortcode.
Yes. Open "Mevabi Shortest → Edit Test", paste the existing [mevabishortest] shortcode and edit the test using the visual builder.
Yes. Answers can have negative, zero or positive point values. Result ranges can also contain negative numbers.
Yes. Disable "Show the final numeric score" in the visual builder, or use score="no" in the shortcode.
This is useful for assessments where the numeric score is not meaningful, including vocational, personality-style or self-assessment tests.
Yes. Add the repeat parameter to display a button that allows visitors to reset and retake the test.
No. These characters are used internally to separate fields in the shortcode. The visual builder automatically removes them from entered text.
[shortest] to the unique, prefixed [mevabishortest].score="yes|no"), shown above the result text.repeat="...") shown after the result.