• Resolved 3Lancer

    (@3lancer)


    Hi,

    I was in the middle of swapping over FAQ plugins.

    It worked fine, but I also had to update the post types via the database:
    UPDATEwp_postsSETpost_type= 'ufaq' WHEREpost_type` = ‘qa_faqs’;
    UPDATE wp_term_taxonomy SET taxonomy = ‘ufaq-category’ WHERE taxonomy = ‘faq_category’;
    UPDATE wp_term_taxonomy SET taxonomy = ‘ufaq-tag’ WHERE taxonomy = ‘post_tag’;

    This worked fine too, but now the “FAQS” page has been replaced with an automatically generated Archive page listing the FAQs posts. The original “FAQS” page is still listed under WordPress > All Pages. Correct URL and default template, just doesn’t display when visiting the URL, rather just gets overwritten by the archive one.

    I’m not quite sure why it’s doing this? Do I need to update something else in the database?

    (domain.com/faqs – is now forced to be an archive list rather than taking the WordPress page, any other URL will still work fine, but I need that one back)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Try seeing if the page template used was changed. In the Editor, just switch it to another, save, then switch back to the page template for the faq page.

    You may also have a conflict with the way the faqs are pulled. Usually, they warn not to have a page with same slug as a CPT archive.

    Try:

    1. Trash and the delete the ‘faq’ page. Make sure to save locally the content first.
    2. Create a new page titled FAQ, but with a slug not ‘faq’ using the saved content.
    3. Add a 301 Redirect rule to .htaccess to have any site visitors with old url end up at new slug.

    Thread Starter 3Lancer

    (@3lancer)

    Thanks for your response.

    Recreating the page didn’t help.

    Changing the URL slug made it work fine, for example “/faqs-2/” – But I need that URL “/faqs/” and that was working fine previous… why did it suddenly change? Is there a mark somewhere under the WordPress database for where an archive is placed?

    Wordpress shouldn’t be just creating them for the sake of it and give the owner no options to overwrite/remove?

    It’s not the DB, it’s either the theme or plugin methods.

    Can you not write a 301 redirect?

    Note: The slug does not really matter for SEO as long as it includes ‘faq’.

    Thread Starter 3Lancer

    (@3lancer)

    It’s the plugin which is triggering it at least.

    Disable the FAQs plugin and the normal WordPress FAQs page appears, rather than the archive list. However, this didn’t occur on another server when testing.

    I’ll ask the plugin owner too.

    The reason for needing it to be /faqs/ – is that’s also the “FAQ Slug Base” the plugin uses, the pages, categories and tags go under it, you can also add a search box, etc. I would like to keep the same structure as the old plugin too or 1000s of other pages will need to be redirected under it.

    Thread Starter 3Lancer

    (@3lancer)

    Cheers again for your help “Pioneer Web Design”. Found it!
    Under the plugin itself, it registers Posts Taxonomies.

    When you register the post type, you can add a parameter:
    'has_archive' => false

    It was previously on ‘true’ and therefore creating that archive list at that location.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove automatically generated Archive page’ is closed to new replies.