Any WordPress website, regarding the active theme used, can be set up and configured to be indexed and displayed in Google's Search Results Page.
Ensure that Google has access to the website
WordPress can prevent Google from accessing/reading/indexing your website.
You can go to your WordPress Dashboard β Settings β Reading and ensure that Discourage search engines from indexing this site option is disabled.
Add the website to Google's Search Console
To ensure Google is aware of your website and starts crawling it as soon as possible, the website should be added to Google's Search Console.
Login to your Google Search Console account
From the Search Form, add the website using the Add Property option
Select the URL prefix option for the Property Type:
Enter your website domain. Example: https://my-domain.com and click Continue
Follow the on-screen steps to Verify the Ownership of the domain
Download the provided HTML file and upload it to the Root of your website.
Click on Verify The Ownership, and the verified message will be displayed
Configure the website's SEO
Install and activate Rank Math SEO. Check their documentation to learn how to configure the Rank Math SEO plugin by accessing this link.
For each page/post/product and project, set the SEO details
Go to the Rank Math SEO β Sitemap Settings
Click on the Sitemap Index URL and copy its address to your clipboard
Go back to Google Search Console
Click on Indexing β Sitemap
Add the sitemap URL
Click on Submit
If everything goes well, the confirmation message will be displayed:
Notes:
Indexing all the links might take a while, depending on how many pages/posts/projects/products the sitemap contains.
After the indexing process is complete, the website will be visible on the Google Search Results page. Please note that it can take several days or weeks to index your website.