• I migrated my wordpress site today and everything looks the same except for a custom archive page that I have is no longer pulling in the correct body classes.

    Before:
    archive post-type-archive post-type-archive-guides

    After:
    home blog

    I haven’t changed anything. I double checked the functions.php file for my CPT stuff, and it’s all the same. The pages/posts/tags/categories/etc. everything looks the same.

    In my archive-guides.php page I’m actually just displaying a shortcode via PHP, which pulls in search results from a plugin. The page itself is working fine. But because the classes are missing the styling is off.

    Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter shelbisayshi

    (@shelbisayshi)

    Also, apparently if I go to:
    https://example.com/?post_type=guides

    The page loads fine. I do have:
    ‘has_archive’ => true,

    And I’ve also tried re-saving my permalink structure via Settings.

    Thread Starter shelbisayshi

    (@shelbisayshi)

    I tried:
    flush_rewrite_rules();

    and disabling all of my plugins, and neither of those worked.

    Thread Starter shelbisayshi

    (@shelbisayshi)

    I changed my post type name to “guides-list”, created archive-guides-list.php and that URL works fine, showing the correct body classes.

    This is not the URL I want, but not sure if it helps.

    Thread Starter shelbisayshi

    (@shelbisayshi)

    I also ran a query in my database that changed all instances of guides to guides-list and then swapped everything back, so that it’s using guides. Didn’t work. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Migrated WP site, custom archive page classes no longer correct.’ is closed to new replies.