How to make pda version of WordPress without plugins

    There are many ways to make a pda version of a blog created on the WordPress engine . Plugins and more ... But all of it didn’t suit me, since it’s impossible to configure any functions or appearance in them! You can dig through this code for a very long time, but in the end there will be no sense.

    I just had to do it. To hang on the subdomain the same engine, with the same base, only with a different skin, which would be convenient to read from the screen of a smartphone or communicator.
    I didn’t find anything on the Internet ... Well ... I could only hope for my strength :)

    “If you suffer for a long time, you will succeed.” Reads folk wisdom ... I share with the people a short instruction on how to attach the pda (wap) version to the subdomain, but leave two blogs with one database for two:

    To do this, you need to make a full copy of WP along with plugins on the subdomain. Put an easy topic in a folder with the same name as the main one.
    yoursite / wp-content / themes / best_theme
    pda.your_site / wp-content / themes / best_theme


    Next, configure wp-config.php on the subdomain, more precisely add the lines: Naturally, the settings for connecting to the database are the same. You can not copy the uploads folder, but simply create a symbolic link to it. Thus, this task is solved ... What happened can be observed here: link And, if anyone needs it, a link to a simplified version of the topic to figure out what's what: download the topic
    define('WP_SITEURL', 'http://pda.towap.info');
    define('WP_HOME', 'http://pda.towap.info');







    Also popular now: