This article documents an older method for displaying Google AdSense for Search results on a WordPress page. Treat it as a legacy reference, not a current step-by-step setup guide: AdSense product availability and account options can change, and the old custom template and downloadable file may not be compatible with modern WordPress themes. Before attempting this, confirm that your AdSense account still offers the relevant search-ad product and use the code and instructions shown in your own account.

Before Using This Legacy Method
Do not assume that the options named in the original walkthrough still appear in every AdSense account. First check the current AdSense interface and its official documentation for eligibility, setup requirements, and supported search-ad formats. If the product is not available in your account, this tutorial cannot enable it.
The original walkthrough relied on an old gsearch.php theme template and a downloadable ZIP file. I cannot guarantee that this legacy file is compatible with current WordPress, PHP, or your active theme. Do not upload an unfamiliar PHP file to a production site without inspecting its contents and testing it in a staging environment.
General Setup Considerations
- Confirm product availability. Sign in to AdSense and verify that the search-ad product and the option to host results on your own site are actually available to your account.
- Follow the current account instructions. Use the code, placement rules, and requirements supplied in the AdSense interface. Older screenshots and menu labels may no longer match.
- Use a compatible WordPress implementation. If a custom results page is supported, implement it through a maintained child-theme template or another supported integration. Avoid modifying the parent theme, and do not install the archived
gsearch.phpfile without reviewing and testing it. - Test before publishing. Confirm that the search box submits correctly, the results page loads on mobile and desktop, and the implementation complies with the current AdSense policies.
For current product availability and policy requirements, start with the official Google AdSense Help Center. This page is retained as historical context; the old download and exact interface steps should not be treated as verified current instructions.
