settings['PerPostOrSite']) echo "
No Posts Found
"; return; } // Figure out how many posts we have and only preview a few.. $postCount = count($ids); $index = 0; echo '| Post ID | Post Title | Post Category | # Comments | # Attachments | ||
|---|---|---|---|---|---|---|
| $id->ID | $title | "; echo ""; $count = 0; foreach($catnames as $catname) { if ($count > 0) echo ", "; echo "$catname->cat_name"; $count++; } echo " | "; if ($commentCount) echo "$commentCount | "; else echo "0 | "; if ($attachmentCount) { echo "$attachmentCount | "; } else { echo "0 | "; } } echo "
| "; $remainder = $postCount - $index; echo "..and $remainder more posts"; echo " | ||||||
| settings['MoveCategory']; $adp_addcategoryid = $this->settings['AddCategory']; $adp_mvcategory = get_the_category_by_ID($adp_mvcategoryid); $adp_addcategory = get_the_category_by_ID($adp_addcategoryid); ?> settings['PerPostOrSite']) && (DEL_PUB_POSTS == $this->settings['DelPostType'])) { $blog_version = get_bloginfo('version'); $major = (int) substr($blog_version, 0, 1); $minor = (int) substr($blog_version, 2, 3); if ((2 == $major) && ( 7 > $minor)) { if (!is_wp_error($adp_mvcategory) && ("" != $adp_mvcategory)) { echo "\r\n"; } if (!is_wp_error($adp_addcategory) && ("" != $adp_addcategory)) { echo "\r\n"; } } else { if (!is_wp_error($adp_mvcategory) ) { echo "\r\n"; } if (!is_wp_error($adp_addcategory)) { echo "\r\n"; } } } ?> | ||||||