Changeset 1665461
- Timestamp:
- 05/26/2017 03:59:16 PM (9 years ago)
- Location:
- mapping-multiple-urls-redirect-same-page/trunk
- Files:
-
- 4 edited
-
admin/mapping-multiple-urls-redirect-same-page-edit.php (modified) (1 diff)
-
admin/mapping-multiple-urls-redirect-same-page-insert.php (modified) (1 diff)
-
mapping-multiple-urls-redirect-same-page.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mapping-multiple-urls-redirect-same-page/trunk/admin/mapping-multiple-urls-redirect-same-page-edit.php
r1642783 r1665461 152 152 <option value="-1"><?php echo esc_attr( __( 'Select post slug' ) ); ?></option> 153 153 <?php 154 $args=array('post_type' => 'post','post_status' => 'publish'); 155 $posts = get_posts($args); 156 foreach ( $posts as $post ) 154 $posts_array=new WP_Query(array( 'posts_per_page' => -1 ,'order_by'=>'ID')); 155 foreach ( $posts_array->posts as $post ) 157 156 { 158 157 $selected = $post->ID == $page_or_post_id ? "selected":''; -
mapping-multiple-urls-redirect-same-page/trunk/admin/mapping-multiple-urls-redirect-same-page-insert.php
r1642783 r1665461 62 62 <option value="-1"><?php echo esc_attr( __( 'Select post slug' ) ); ?></option> 63 63 <?php 64 $args=array('post_type' => 'post','post_status' => 'publish'); 65 $pages1 = query_posts( $args ); 66 foreach ( $pages1 as $page1 ) 64 $posts_array=new WP_Query(array( 'posts_per_page' => -1 ,'order_by'=>'ID')); 65 66 //$pages1 = query_posts( $args ); 67 foreach ( $posts_array->posts as $post ) 67 68 { 68 $option = '<option value="' . $p age1->ID . '">';69 $option .= $p age1->post_name;69 $option = '<option value="' . $post->ID . '">'; 70 $option .= $post->post_name; 70 71 $option .= '</option>'; 71 72 echo $option; -
mapping-multiple-urls-redirect-same-page/trunk/mapping-multiple-urls-redirect-same-page.php
r1642410 r1665461 3 3 Plugin Name: Mapping multiple URLs redirect same page 4 4 Description: Mapping multiple URLs redirect same page,post,category,tag,custom post types. 5 Version: 2. 05 Version: 2.5 6 6 Author: Rupam Hazra 7 7 */ … … 76 76 if ( current_user_can('level_3') ) 77 77 { 78 return true;78 return true; 79 79 } 80 80 } -
mapping-multiple-urls-redirect-same-page/trunk/readme.txt
r1642835 r1665461 4 4 Tags: Pages,Posts,Tags,Category,Custom Post Types 5 5 Requires at least: 3.0.1 6 Tested up to: 4.7. 36 Tested up to: 4.7.4 7 7 Stable tag: 4.3 8 8 License: GPLv2 or later … … 10 10 This Plugin used to make dynamic urls redirected to same page,post,category,tag by adding some regular expression with page,post,category,tags,cutom post types slug. 11 11 12 == Description == 12 == Description == 13 This Plugin used to make dynamic urls redirected to same page or post by adding some regular expression with page,post,category,tags,cutom post types,slug. 13 14 14 This Plugin used to make dynamic urls redirected to same page or post by adding some regular expression with page,post,category,tags,cutom post types,slug.15 Note : If you using previous version then you have to upgrade by reistalling this plugin because its effect database also. 15 16 16 17 Major features in Mapping multiple URLs redirect same page include: … … 56 57 == Upgrade Notice == 57 58 59 = 2.5 = 60 In 2.5 version you get many new types like category,tag,custom post types and also added some features in listing page. 61 58 62 = 2.0 = 59 63 In 2.0 version you get many new types like category,tag,custom post types and also added some features in listing page.
Note: See TracChangeset
for help on using the changeset viewer.