Plugin Directory

Changeset 1090431


Ignore:
Timestamp:
02/15/2015 11:56:36 AM (11 years ago)
Author:
rajeshsantosh
Message:

'w1.1'

Location:
wp-bulk-post-duplicator/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-bulk-post-duplicator/trunk/bulk_duplicate_posts.php

    r1084469 r1090431  
    44 * Plugin URI: http://www.webhocks.com
    55 * Description: Duplicate all your post, page and custom post types.Duplicate based on year of post created.
    6  * Version: 1.0
     6 * Version: 1.1
    77 * Author: Rajesh Kumar
    88 * Author URI: http://www.webhocks.com
     
    173173                            $pt_status = $chn_status;
    174174                        }
     175                        $pre_post_catgs=get_the_category( $post->ID);
     176                        $post_catgs=array();
     177                        foreach($pre_post_catgs as $catg) {
     178                            array_push($post_catgs, $catg->cat_ID);
     179                        }
    175180                       
    176181                        $args = array(
     
    212217                        }
    213218                       
     219                        wp_set_post_categories( $new_post_id, $post_catgs, true);
    214220                        $i_dupli++;
    215221                       
  • wp-bulk-post-duplicator/trunk/readme.txt

    r1087271 r1090431  
    44Requires at least: 3.0
    55Tested up to: 4.1
    6 Stable tag: 1.0
     6Stable tag: 1.1
    77License: GPLv2
    88
     
    3434
    35351. Screenshot of main screen, choosing post-type and custom post-type to duplicate.
     36
     37
     38== Changelog ==
     39
     40= 1.1 =
     41* update on tagging categories of posts getting duplicated
Note: See TracChangeset for help on using the changeset viewer.