• rezon2000

    (@rezon2000)


    Hello everyone,

    I’m experiencing an issue with the /services/ URL on my website using the custom theme “Roofix.” Here’s the situation:

    1. Disable Archive Page / Services URL Issue:
      I’ve edited my custom page for “Services” and tried to set the URL to /services/. However, when I save the URL as /services/, the archive page displays instead of the page I edited. The archive page looks almost identical to my edited page but has the SEO title and description stuck as “Services Archive.” If I change the URL to something else like /services1/, the page I edited appears correctly, but of course, the service categories are still tied to /services/etc/. It seems like the /services/ URL is linked or attached to this archive page, and I cannot find a way to edit or change the SEO titles and descriptions for it.
    2. What I’ve Done So Far:
      I’ve checked the theme file editor (e.g., functions.php, general.php, layout-settings.php) but haven’t been able to locate where the custom post type is registered or how to disable the archive or modify the SEO titles.
    3. My Current WordPress Version:
      I’m currently using an outdated version of WordPress as I had previous issues updating (6.6.2 is available for an update), but I’m unsure if updating will resolve the issue.

    Questions:

    • How can I locate and modify the archive page settings for the CPT “Services” so that I can properly control the SEO titles and descriptions, or completely disable the archive?
    • Could updating to WordPress 6.6.2 potentially help solve this issue?

    Thank you in advance for any help you can provide!

Viewing 2 replies - 1 through 2 (of 2 total)
  • graphicscove

    (@graphicscove)

    The reason you’re seeing the archive page at /services/ is that the custom post type “Services” likely has an archive enabled by default, and WordPress is automatically displaying it. To disable the archive, you would need to find where the CPT is registered (most likely in the theme’s functions.php or a related file) and ensure the 'has_archive' => false argument is set when the custom post type is registered.

    If you want to keep the archive but modify the SEO titles and descriptions, you can use a plugin like Yoast SEO or Rank Math, which allows you to customize the SEO settings for archives, including CPT archives like “Services.” This should override the default “Services Archive” title and let you input your own custom SEO data.

    If you prefer not to disable the archive but still want to display your custom page at /services/, you could try setting up a redirect from the archive to your custom page using a plugin like Redirection. That way, anyone who visits /services/ will be redirected to your edited page.

    Hope this helps! Let me know if you need further clarification or run into any issues.

    Thread Starter rezon2000

    (@rezon2000)

    Thank you for your reply. I’ve tried looking for the has_archive setting in most of the theme files, including functions.php, rdtheme.php, general.php, and several others, but I haven’t had any luck locating it. I’ve seen some of the code related to the service archive, but none of it includes the has_archive you mentioned.

    Is there a chance it could be registered differently or in an unexpected location within the theme? Also, are there specific files where the archive function should be typically located, so I don’t waste time looking through unnecessary files? Any further guidance would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.