Viewing 2 replies - 1 through 2 (of 2 total)
  • Mario Santos

    (@santosguillamot)

    Hi @evgeniikoriagin!

    I’m not 100% sure I’m getting you’re question, but if you have a JSON file in your WordPress site, you can just point to it by adding the .json extension to the route. Just like images.

    For example, imagine I have a file named data.json in the uploads folder. If I navigate to mysite.com/wp-content/uploads/data.json, it will be displayed as plain text, without any other content.

    Is that what you are looking for?

    Thread Starter evgeniikoriagin

    (@evgeniikoriagin)

    It appeared to be easier than I thought. Thank you @santosguillamot problem solved!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘create url that leads to a file’ is closed to new replies.