• Resolved mcminnkl

    (@mcminnkl)


    Hello,

    Is there a safe way to change “ufaq-category” to “faq-category”?

    Thanks for all of your hard work!

    Kevin

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support jaysupport

    (@jaysupport)

    Hi Kevin,

    The only way to do that would be to modify, in the code, where we create that custom taxonomy. The file you would want to edit is “Register_EWD_UFAQ_Posts_Taxonomies.php”, which can be found in the “Functions” folder. You’ll want to search for the following line:

    register_taxonomy('ufaq-category', 'ufaq', array(

    It’s on line 43 in the current version of the plugin.

    You can change the ‘ufaq-category’ here to whatever you want. Just remember to flush your permalinks after, or else WordPress won’t recognize the updated URLs. To do this:

    – In the main menu, go to “Settings > Permalinks”.
    – Scroll down, if needed, and click “Save Changes”. No need to actually make any changes.
    – Rewrite rules and permalinks have now been flushed.

    Thread Starter mcminnkl

    (@mcminnkl)

    Hi Jay,

    Thank you so much for helping me figure this out. Would it be possible to add this as an option in a future update?

    Thanks,
    Kevin

    Plugin Support jaysupport

    (@jaysupport)

    Hi Kevin,

    I’ll add it to our list of feature requests and, maybe if we get some more interest, we can look into adding in an option for this.

    Thread Starter mcminnkl

    (@mcminnkl)

    Thank you, sir.

    Dennis

    (@wim20178)

    I found this topic due an issue I have. It looks related to this topic.

    In general settings I changed the FAQ Slug Base to read “faqs”.
    My goal was the following urls:
    https<sitename>/faqs/ <- this works, all faqs listed, fetched from all categories (happy)
    https<sitename>/faqs/category/ <- this gives a 404 page, /ufaq-category/category/ works (not so happy)
    https<sitename>/faqs/single-post/ <- this works, /ufaq-category/single-post/ gives a 404 page (happy)

    So I get two issues:
    1. Why is the category not respecting the FAQ Slug Base setting?
    2. Why is the canonical url not respecting the FAQ Slug Base?
    This issue only happens to the url https<sitename>/faqs/ that shows a canonical url https<sitename>/ufaqs/ and that location gives a 404 page

    Since url and its canonical url are delicate to change to often, especially when they are longer in use. I prefer not to update code to avoid loosing a configuration as soon you update the plugin.

    Please give me advice on the best approach to change my url, also because my website is mainly in the language Dutch I would like to have the ability making such changes.

    Thanks in advance, the plugin is much appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Category Slug’ is closed to new replies.