Changeset 1854654
- Timestamp:
- 04/07/2018 11:40:26 PM (8 years ago)
- Location:
- page-creator/trunk
- Files:
-
- 2 edited
-
index.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
page-creator/trunk/index.php
r1391568 r1854654 1 1 <?php 2 2 /* 3 4 3 Plugin name: Page Creator 5 4 Author: Richard Keller 6 URI: 7 Version: 1 5 URI: https://richardkeller.net 6 Version: 1.1 8 7 Description: Create pages quickly 9 8 */ … … 65 64 <div> 66 65 67 <textarea name="page_titles" id="" cols="100" rows="10"></textarea>66 <textarea id="page_creator_textarea" name="page_titles" id="" cols="100" rows="10"></textarea> 68 67 </div> 69 68 … … 84 83 $(document).on('click', '#create', function(e){ 85 84 e.preventDefault(); 86 87 console.log( $('textarea').val().split("\n") ); 88 89 data.titles = $('textarea').val().split("\n"); 85 data.titles = $('#page_creator_textarea').val().split("\n"); 90 86 data.parent_id = $('select[name="parent_page"]').val(); 91 87 92 88 $.post(ajaxurl, data, function(response) { 93 89 if( response == 'Pages created!' ) { 94 $(' textarea').val('');90 $('#page_creator_textarea').val(''); 95 91 alert(response); 96 92 } else { -
page-creator/trunk/readme.txt
r1391575 r1854654 4 4 Tags: pages 5 5 Requires at least: 3.0.1 6 Tested up to: 4. 3.17 Stable tag: 4.36 Tested up to: 4.9.5 7 Stable tag: 1.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 Create pages quickly by pasting a list of page titles in a textarea. Each title should be on one line. 15 15 16 The plugin used ajax to create the pages. 16 The plugin used ajax to create the pages. 17 17 18 You can create subpages as well by selecting a parent page. 18 You can create subpages as well by selecting a parent page. 19 20 To use the plugin goto "Setting -> Page Creator" in the WordPress Admin 19 21 20 22 == Installation == 21 23 22 NA 24 Standard WordPress activation process. 23 25 24 26 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.