• Hello guys, im making something similiar to the shop and need to make “pretty url”

    It means i have file categories.php as template and Categories as page.

    Template works on https://www.example.com/categories/ but
    (1)i want to make it work also when i do https://www.example.com/categories/products/fashion/boots/mark/ and
    (2)get /fashion/boots/mark/ as data(propably array).

    (2) i think isnt problem.

    (1) is problematic. I dont want to make it on ?_GET beacause i dont look nice and google wouldnt like it.

    In categories i want to get current category(last one in url) than get child of it and display etc. I have 2 custom posts with custom categories for each. And it will be also in url but i can do it by 2 more pages and give them same template also redirect https://www.example.com/categories/ to default https://www.example.com/categories/products/. But the problem is when i want add much more categories i should add for every category a page with selected template categories.php and it wont be dynamically.

  • The topic ‘WordPress Url as data to one template’ is closed to new replies.