Routing

This topic is: not resolved

This topic contains 1 reply, has 1 voice, and was last updated by  carlosfaria 2 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #164679

    carlosfaria
    Member

    Hi!

    I’m developing a recipes site with pods.

    I have a Pod page loading a template from my theme with name " recipe/* " so all my recipes are shown with that template. Moreover I’m using WPML to have my site in two languages, english and spanish.

    I don’t like the " ?lang=es " in my URLs so i configured WPML to have my URLs like http://www.example.com/es/ for my recipes in spanish, while my recipes in english are accessed by http://www.example.com/

    The problem is, when i click on a recipe, and access http://www.example.com/es/recipe/recipe_slug, pods is not able to see the " recipe/* " route and shows that no content was found…

    I know one solution is to have another page on Pods with the name " es/recipe/* " but as this is for a client I don’t want them to get messed with Pods.

    How to route that spanish (or whatever other language) url?

    #164680

    carlosfaria
    Member

    Ok, again I answer myself.

    It was as easy as having two pages pointing to the same template:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting