Plugin Directory

Changeset 1311807


Ignore:
Timestamp:
12/18/2015 05:28:58 PM (10 years ago)
Author:
hogetan
Message:

fixed notice bug.

Location:
add-page-from-template/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • add-page-from-template/trunk/add-page-from-template.php

    r1306270 r1311807  
    2222
    2323        private static $instance = NULL;
    24         private static $loader = NULL;
     24        private $loader = NULL;
    2525
    2626
     
    4747        }
    4848
    49         public function getInstance()
     49        public static function getInstance()
    5050        {
    5151            if (NULL === self::$instance) {
  • add-page-from-template/trunk/readme.txt

    r1306270 r1311807  
    1010== Description ==
    1111
    12 * Add *Virtual* WordPress 'page' from php template file automatically
     12Are you tired to create pages through different environments?
     13
     14
     15* Add **Virtual** WordPress 'page' from php template file automatically
    1316* Not needed to add 'page' from admin panel
    1417
    15   The page-templates would be located at 'themes/your-theme/page-foobar.php' then the page will be created as 'http://www.example.com/foobar/' without admin panel.
     18 The page-xxx.php would be located at 'themes/your-theme/page-foobar.php' then the page will be created as 'http://www.example.com/foobar/' without admin panel.
    1619 
    1720== Installation ==
    1821
    19  Just add this plugins.
     221. Download the Add Page From Templete plugin.
     232. Decompress the ZIP file and upload the contents of the archive intot /tp-content/plugins/.
     243. Activate the plugin through the 'Plugins' menu in WordPress.
     254. Activate Custom permalink setting. (Make sure .htaccess file is generated)
    2026
    2127== Screenshots ==
     28
    22291. Virtual page would be made.
    23302. Just make a page-foobar.php at your themes/pages directory.
     31
     32== Frequently Asked Questions ==
     33
     34= How to add the virtual page? =
     35
     36Put your template file into your 'themes/yourtheme/pages/'.
     37('themes/yourtheme/pages/': default)
     38Make the template page name 'page-xxx.php'.
     39
     40= I put file but I cannot see the page. Why? =
     41
     42Check the template file located at correctly directory.
     43The default directory is 'wp-content/themes/yourtheme/pages/'.
     44
     45Check whether the same slug page * NOT EXISTS *.
     46You can check the conflict at the plugin setting page.
     47
     48Check custom permalink setting is activated.
     49
     50Please send the problem to the author.
     51https://github.com/yousan/add-page-from-template/issues
    2452
    2553== Changelog ==
Note: See TracChangeset for help on using the changeset viewer.