• Resolved Don Baker

    (@dcbaker)


    I am currently using Polylang Version 3.6.5. WordPress version is 6.7. The original site is in English. We use Polylang to display a French Canadian (fr-CA) version of the site. All content has been duplicated successfully and you can switch between Eglish/French versions of the site without issue.

    The problem is when I try to filter our blog content. The filters on the English part of the site work as expected. The filter does not work on the French version and I receive a page not found error.

    The same problem occurs when you try to filter blog posts via the category URL. The category URL works on the English site but fails with content not found on the English versions.
    This fails – https://staging.scamnetic.com/fr-ca/escroqueries-financieres/
    This works – The Scammers Toolbox on Charity Scams – Scam Detection & Protection

    You can verify using the category-sitemap.xml file. XML Sitemap

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Don Baker

    (@dcbaker)

    I discovered why this does not work on my second language on the site. We change our permalink settings to remove the word Catergory form the URL using the following code.:

    We used the Custom Structure setting and set it to https://staging.scamnetic.com/%category%/%postname%/
    We set the category base to a period ( . ).

    Our category URLs look like this https://staging.scamnetic.com/category/charity-scams/ / https://staging.scamnetic.com/fr-ca/category/arnaques-caritatives/ The English ones work but the French ones do not. Any way the good folks at Polylang could determine how to make tis work with the second language?

    • This reply was modified 3 months, 2 weeks ago by Don Baker.
    Thread Starter Don Baker

    (@dcbaker)

    RESOLVED

    We were trying to remove the word “category” form our category URLs using the method below.

    Connect to your WordPress dashboard.
    Go to Settings >> Permalinks.
    Go to Custom Structure and put ‘/%category%/%postname%/’.
    Go to Category Base and type in a dot “. “.
    Save the changes.

    It broke the functionality of category URLs and taxonomy filter for blog posts.

    We changed permalink structure to <site URL>/blog/%postname%/ and everything worked as expected. The Yoast SEO plugin has a setting to remove the word category. You can toggle the setting here:

    Yoast SEO > Settings > Categories > Show the categories prefix in the slug?

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