'; echo "
Notes: For each setting listed in the report, a leading ✔ means the setting will be converted when the Convert button is clicked. A ★ means there is no equivalent conversion, or that there is an enhanced version of the setting that requires manual conversion. Converting means the conversion is being done. An × means the conversion has already been done.
\n"; } function aspen2wx_scan_section($what, $how) { $pp_map = array( 'pp_category' => '_pp_category', 'pp_tag' => '_pp_tag', 'pp_onepost' => '_pp_onepost', 'pp_orderby' => '_pp_orderby', 'pp_sort_order' => '_pp_sort_order', 'pp_author' => '_pp_author', 'pp_posts_per_page' => '_pp_posts_per_page', 'hide_sidebar_primary' => '_pp_primary-widget-area', 'hide_sidebar_right' => '_pp_secondary-widget-area', 'hide_sidebar_left' => '_pp_secondary-widget-area', 'top-widget-area' => '_pp_top-widget-area', 'bottom-widget-area' => '_pp_bottom-widget-area', 'sitewide-top-widget-area' => '_sitewide-top-widget-area', 'sitewide-bottom-widget-area' => '_sitewide-bottom-widget-area', 'pp_post_type' => '_pp_post_type', 'pp_hide_page_title' => '_pp_hide_page_title', 'pp_hide_site_title' => '_pp_hide_site_title', 'pp_hide_menus' => '_pp_hide_menus', 'pp_hide_header_image' => '_pp_hide_header_image', 'pp_hide_footer' => '_pp_hide_footer', 'pp_hide_header' => '_pp_hide_header', 'pp_hide_sticky' => '_pp_hide_sticky', 'pp_force_post_full' => '_pp_force_post_full', 'pp_force_post_excerpt' => '_pp_force_post_excerpt', 'pp_show_post_avatar' => '_pp_show_post_avatar', 'pp_favorite_post' => 'none', 'pp_show_extra_areas' => 'none:Additional Top Widget Area', 'pp_hide_sidebars' => 'none:Hide Sidebars when this post displayed on Single Post page, new option', 'bodyclass' => '_pp_bodyclass', 'primary-widget-area' => '_primary-widget-area', 'pp_replace_right' => '_secondary-widget-area', 'pp_replace_left' => 'none:Left Widget Area no longer supported', 'pp_hide_top_post_meta' => '_pp_hide_top_post_meta', 'pp_hide_bottom_post_meta' => '_pp_hide_bottom_post_meta', 'pp_show_featured_img' => '_pp_show_featured_img', 'pp_stay_on_page' => '_pp_stay_on_page', 'pp_hide_on_menu' => '_pp_hide_on_menu', 'wvr_show_pp_featured_img' => 'none:Use new featured image options', 'pp_hide_infotop' => '_pp_hide_infotop', 'pp_hide_infobot' => '_pp_hide_infobottom', 'pp_show_replace_alternative' => 'none', 'pp_per_post_style' => '_pp_post_styles', 'pp_hide_visual_editor' => '_pp_hide_visual_editor', 'pp_masonry_span2' => '_pp_masonry_span2', 'pp_hide_post_bubble' => 'none:New option is to show bubble', 'pp_hide_post_title' => '_pp_hide_post_title', 'pp_post_add_link' => '_pp_post_add_link', 'pp_hide_post_format_label' => '_pp_hide_post_format_label', 'pp_page_layout' => '_pp_page_layout', 'wvr_pwp_type' => '_pp_wvrx_pwp_type', 'wvr_pwp_cols' => '_pp_wvrx_pwp_cols', 'pp_hide_page_infobar' => '_pp_hide_page_infobar', 'pp_post_filter' => '_pp_post_filter', 'pp_hide_n_posts' => '_pp_hide_n_posts', 'pp_fullposts' => '_pp_fullposts', 'pp_pwp_masonry' => '_pp_pwp_masonry', 'pp_pwp_compact' => '_pp_pwp_compact', 'pp_pwp_compact_posts' => '_pp_pwp_compact_posts', 'pp_raw_html' => '_pp_raw_html', 'right-widget-area' => 'none', 'left-widget-area' => 'none' ); $args = array('posts_per_page' => -1, 'post_type' => $what, 'post_status' => 'any' ); $allposts = get_posts($args); foreach ($allposts as $post) { $id = $post->ID; setup_postdata($post); $meta = get_post_meta( $id ); if (!empty($meta)) { $type = $post->post_type; $title = esc_html($post->post_title); $link = esc_url(get_permalink($id)); $tlink = "{$title}"; $heading = false; foreach ($meta as $name => $val_array) { // old value gets put into $val_array[0] if (array_key_exists($name, $pp_map) ) { $val = $val_array[0]; // easier to work with if (strlen($val) == 0) continue; if ( !$heading ) { $heading = true; $type_name = 'Post'; if ($type == 'page') $type_name = 'Page'; echo "Per {$type_name} settings for {$tlink}: