Include WordPress Content Outside WordPress

I am looking to create a mobile version of a WordPress site, and most of them are built in static files, but I'm trying to access WordPress content from an external PHP file that the mobile site will work with. How to access a cycle or database without manually entering SQL queries?

Change . To clarify, I am using jqTouch for the mobile version.

jqTouch uses a single php file to display multiple "pages" of content that are then moved using Javascript to hide / show the content.

Actually it comes down to the following: how to get a WordPress page / post into an external PHP file?

+3
source share
2 answers

If your goal is simply to have a second version of your site that uses a theme for mobile devices, what about a plugin that will do this? For example: WordPress Mobile Pack

By the way, I donโ€™t understand what you want to accomplish, because at first you say that you want the mobile site to be mostly static, but then you say that the mobile site will use PHP, which is not static. Can you clarify how the mobile site should work?

Edit:

, , , , . , WP jqTouch. WP, ( , ).

+2

"cheater" , , .

"cheater" wp-load.php PHP. WP WP. , , .

- WordPress. , ( ), "template_redirect", URL-, , PHP, , WP, WP.

+5

Source: https://habr.com/ru/post/1745328/


All Articles