Changeset 1311807
- Timestamp:
- 12/18/2015 05:28:58 PM (10 years ago)
- Location:
- add-page-from-template/trunk
- Files:
-
- 2 edited
-
add-page-from-template.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
add-page-from-template/trunk/add-page-from-template.php
r1306270 r1311807 22 22 23 23 private static $instance = NULL; 24 private static$loader = NULL;24 private $loader = NULL; 25 25 26 26 … … 47 47 } 48 48 49 public function getInstance()49 public static function getInstance() 50 50 { 51 51 if (NULL === self::$instance) { -
add-page-from-template/trunk/readme.txt
r1306270 r1311807 10 10 == Description == 11 11 12 * Add *Virtual* WordPress 'page' from php template file automatically 12 Are you tired to create pages through different environments? 13 14 15 * Add **Virtual** WordPress 'page' from php template file automatically 13 16 * Not needed to add 'page' from admin panel 14 17 15 The page-templateswould 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. 16 19 17 20 == Installation == 18 21 19 Just add this plugins. 22 1. Download the Add Page From Templete plugin. 23 2. Decompress the ZIP file and upload the contents of the archive intot /tp-content/plugins/. 24 3. Activate the plugin through the 'Plugins' menu in WordPress. 25 4. Activate Custom permalink setting. (Make sure .htaccess file is generated) 20 26 21 27 == Screenshots == 28 22 29 1. Virtual page would be made. 23 30 2. 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 36 Put your template file into your 'themes/yourtheme/pages/'. 37 ('themes/yourtheme/pages/': default) 38 Make the template page name 'page-xxx.php'. 39 40 = I put file but I cannot see the page. Why? = 41 42 Check the template file located at correctly directory. 43 The default directory is 'wp-content/themes/yourtheme/pages/'. 44 45 Check whether the same slug page * NOT EXISTS *. 46 You can check the conflict at the plugin setting page. 47 48 Check custom permalink setting is activated. 49 50 Please send the problem to the author. 51 https://github.com/yousan/add-page-from-template/issues 24 52 25 53 == Changelog ==
Note: See TracChangeset
for help on using the changeset viewer.