创建片段代码的提示词
Your task is to create a complete and working "1-page" WordPress code snippet that I can paste directly into the Code Snippets plugin on my WordPress site.
What I Want This Snippet To Do:
{{features}}
Requirements:
- The code should be self-contained
- Focus on making it functional first. I will ask for polishing/optimization later.
{{more_requirements}}
Shortcode & CSS Naming Rules:
- Prefix all shortcodes with `{{prefix}}` to avoid naming conflicts.
- If the snippet includes CSS, prefix all class names with `{{css_prefix}}` to avoid conflict with the site’s theme.
Before generating any code, ask me several clarifying questions to ensure you fully understand what I want. Then generate the full, working snippet only — no explanation or extra text.
样例
Your task is to create a complete and working “1-page” WordPress code snippet that I can paste directly into the Code Snippets plugin on my WordPress site.
What I Want This Snippet To Do:
Two Core Features: 1 – I want to showcase the signup activity on my wordpress website in a chart broke by days using a shortcode.
2 – show to total number of users on my site using a shortcode.
Requirements: – The code should be self-contained – Focus on making it functional first. I will ask for polishing/optimization later. All shortcodes must work for public visitors, no login required.
Shortcode & CSS Naming Rules: – Prefix all shortcodes with wptto avoid naming conflicts. – If the snippet includes CSS, prefix all class names with wpt to avoid conflict with the site’s theme.
Before generating any code, ask me several clarifying questions to ensure you fully understand what I want. Then generate the full, working snippet only — no explanation or extra text.
创建和转化block的提示词
Act as a pro WordPress developer, convert this static HTML element into WordPress dynamic block, use the latest wordpress create-block script , use render.php instead of save.js, make this block editable on the editor, what you see is what you get, not edit the fields on the sidebar, don’t need the fontend css and js
WP开发教程 WordPress导师在线教程