These WordPress prompts help you plan, build, customise and fix WordPress sites: choosing themes and plugins, writing custom functions and blocks, styling with Elementor or Gutenberg, speeding up the site, fixing errors and keeping it secure.
20 prompts on this page. Last updated: 4 December 2026. Written and tested by Saad Raza.
How to use these prompts
- Click Copy on any prompt.
- Paste it into ChatGPT, Claude, Gemini, Copilot or Perplexity.
- Replace everything in [square brackets] with your own details. The more specific you are, the better the answer.
- Read and edit the result before you use it. Add your own experience and check every fact, name and number.
Always test code on a staging site and take a backup before changing a live site. Put custom code in a child theme or a small custom plugin, not in the parent theme’s files.
Planning
1. Plan a WordPress site
Plan a WordPress website for [business]: pages, theme type, essential plugins (SEO, caching, security, forms, backups), user roles and a launch checklist. Keep the plugin list short.
2. Choose a theme
Compare block themes, classic themes and page builders like Elementor for [business needs], considering speed, flexibility and ease of editing.
3. Choose plugins
Recommend plugins for [feature], comparing 3 options on features, performance, support and cost. Mention lighter alternatives or code if a plugin is overkill.
Code and customisation
4. Write a custom function
Write a WordPress function for functions.php or a custom plugin that [what it should do]. Follow WordPress coding standards, use hooks properly, escape output and sanitise input.
5. Create a custom post type
Write code to register a custom post type [name] with these fields: [list], a custom taxonomy [taxonomy], archive pages and REST API support.
6. Create a Gutenberg block
Write a simple custom Gutenberg block called [name] that displays [content], with editable fields in the editor.
7. Write a shortcode
Write a WordPress shortcode [shortcode_name] that outputs [content], with attributes for [options].
8. Customise WooCommerce
Write code to [WooCommerce change, e.g. add a custom field at checkout or change the add to cart text] using hooks, without editing plugin files.
9. Style with Elementor or custom CSS
Write custom CSS for an Elementor section to achieve [design], and explain where to add it.
Fixing problems
10. Fix a critical error
My WordPress site shows [error message]. Here is the debug log: [paste]. Explain the cause and how to fix it safely.
11. Fix the white screen of death
Give me a step-by-step plan to diagnose and fix a WordPress white screen, from enabling debugging to checking plugins and themes.
12. Fix a plugin conflict
After updating [plugin], [problem happens]. How do I find and fix the conflict without losing data?
13. Recover a hacked site
My WordPress site was hacked: [symptoms]. Give a cleanup and hardening plan, from backups and scanning to passwords, updates and checking Search Console.
Speed and SEO
14. Speed up WordPress
My WordPress site loads slowly: [PageSpeed results, hosting, theme, plugins]. List fixes in order of impact: caching, image optimisation, plugin bloat, database cleanup, CDN and hosting.
15. Set up WordPress SEO
Create a checklist to set up SEO on WordPress with [Yoast or Rank Math]: permalinks, sitemaps, titles, schema, indexing settings, breadcrumbs and redirects.
16. Clean up the database
Explain how to safely clean the WordPress database (revisions, transients, spam comments, unused tables) and what to back up first.
Maintenance
17. Create a maintenance checklist
Create a weekly and monthly WordPress maintenance checklist: updates, backups, security scans, uptime, broken links and performance.
18. Harden WordPress security
Give me a security hardening checklist for WordPress: logins, two-factor, file permissions, XML-RPC, user roles, updates and backups.
19. Migrate a WordPress site
Write a step-by-step plan to migrate WordPress from [old host or domain] to [new host or domain] without losing SEO, including URL replacement and redirects.
Content
20. Bulk-edit content safely
Write a WP-CLI command or small PHP script to [bulk change, e.g. replace a phrase in all posts or set a category], with a dry-run step and a backup reminder.
What are WordPress prompts?
WordPress prompts help you plan, build, customise and fix WordPress websites with AI: choosing themes and plugins, writing custom functions, shortcodes, custom post types and Gutenberg blocks, customising WooCommerce, fixing errors, speeding up WordPress and keeping it secure.
How to write better WordPress prompts
- Use a child theme or custom plugin: never edit parent theme or plugin files.
- Paste the debug log: real errors lead to real fixes.
- Test on staging: and take a backup before changing a live site.
- Keep plugins lean: fewer, better plugins mean a faster, safer site.
Best AI tools to use with these prompts
Use ChatGPT or Claude to write and debug code, WP-CLI for bulk tasks, Query Monitor to find slow queries and errors, a caching plugin such as LiteSpeed Cache or WP Rocket, and Yoast SEO or Rank Math for SEO settings.
Done for you: On WordPress? WordPress SEO services fix indexing, speed and Yoast or Rank Math setup for you.
Frequently asked questions
Can AI write WordPress code?
Yes. AI is good at writing functions, shortcodes, custom post types and WooCommerce hooks. Test code on a staging site first and keep it in a child theme or custom plugin.
How many plugins is too many?
There is no fixed number. What matters is quality and what each plugin loads. Remove plugins you do not use and avoid ones that duplicate features.
Is WordPress good for SEO?
Yes. WordPress works well for SEO with a fast theme, an SEO plugin, good hosting and well-structured content.
Can ChatGPT fix WordPress errors?
Often, yes. Give it the exact error and debug log, and it can explain the cause and suggest a fix. Test it on a staging copy first.
How do I speed up a WordPress site?
Use good hosting and caching, optimise images, remove unused plugins, clean the database and use a CDN.
More website design prompts
- UI Design PromptsLayouts, components, colour, type and visual hierarchy.
- UX Design and Research PromptsUser research, personas, journeys and usability tests.
- HTML and CSS PromptsGenerate, fix and refactor responsive front-end code.
- Web Accessibility PromptsWCAG checks, alt text, contrast and keyboard access.
- Website Redesign PromptsPlan, audit and launch a redesign without losing traffic.
Back to all website design prompts or the full prompt library, including SEO prompts.
A well-built WordPress site is the foundation for good SEO. Request a free audit and I will show you what to fix first.
Request received
Thank you! Saad will contact you within the next 24 hours.
Keep an eye on your phone and inbox.
