Help Needed: /services/ URL Showing Archive Instead of Custom Page
-
Hello everyone,
I’m encountering an issue with my WordPress site using the custom theme Roofix. My goal is to have a custom Services page displayed at the
/services/
URL, but the Services Archive page keeps showing instead. Here’s a detailed explanation of the problem and all the steps I’ve taken so far to resolve it.The Problem:
I’ve created and edited a custom Services page and want it to appear at the/services/
URL. However, whenever I try to set the URL as/services/
, the Services archive page shows instead. This archive page has the default “Services Archive” SEO title and description, and it overrides my custom page.
When I change the URL to something like/services1/
, the custom page shows correctly, but of course, that’s not the URL I want. It seems like the/services/
URL is tied to the archive, and I can’t figure out how to disable the archive or get the custom page to display at this URL.What I’ve Tried So Far (None Worked):
1. Looked forhas_archive
Setting in Theme Files:
I searched through the theme’s files likefunctions.php
,general.php
,rdtheme.php
, and others to locate where the custom post typeroofix_services
is registered. I was trying to set'has_archive' => false
to disable the archive. Unfortunately, I couldn’t find where this CPT is registered, and none of the files I checked included thehas_archive
setting.
Could the CPT be registered in another location or file that I’m overlooking? Any suggestions on where else I could look?2. Checked for Template Conflicts in Theme:
I explored the theme’s folder and looked for files likearchive-services.php
orarchive.php
that could be overriding my custom page. I found and renamedarchive-services.php
toarchive-services-old.php
to disable the archive template. However, even after doing this, a different archive page started displaying instead of my custom Services page.
along alot more that i have lost track of what i’ve done.
How can I completely remove the archive for the/services/
URL and have it display my custom Services page instead?
I’ve tried every solution I could think of and nothing has worked so far. Any help or advice would be greatly appreciated!
- You must be logged in to reply to this topic.