Hot answers tagged

2

Note: I am posting an answer to my own question with hopes of it being useful for developers trying to solve the same problem that my initial query proposes. As it turns out, I was viewing this with the wrong lens. The solution was not to add my entire AngularJS app and use that while trying to disguise the WordPress front-end and themes. The solution is ...


1

You can read data on your server with file_get_contents(). If you want to make sure the file exists and is readable then use is_readable(). You don't really need to use trailingslashit() in this case because you're constructing the URI yourself. // path to file under current theme $json_file = get_template_directory() . ...



Only top voted, non community-wiki answers of a minimum length are eligible