That would involve looping through all posts of all types and then delete the extra fields per post. You could run the following code once in your new theme:
$args = array ('post_type' => 'any', 'posts_per_page'=>-1)
$query = new WP_Query ($args);
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$the_query->the_post();
// delete unwanted fields of $post
}
The delete action depends on what the old theme is generating, but will typically involve calls to delete_post_meta
.
Don’t do any mass deleting without backing up first.
Related Posts:
- How to create .pot files with POedit?
- How do I get the theme URL in PHP?
- Why when I submit a form in wordpress it loads a 404 page though URL is correct
- What is the constant WP_USE_THEMES for?
- What is the difference between front-page.php and home.php? [duplicate]
- Any alternate TinyMCE4 themes / subthemes?
- Strict Standards Error bootstrap navwalker
- wp_get_attachment_image_attributes not working for me
- Specify image dimensions
- Adding Action Hooks In Parent Theme For Easier Child Theme Customization
- register_sidebar ignores ‘id’ and ‘class’
- add_editor_style not working
- Add colors to existing color palette without replacing it
- Add link option to featured image?
- How to hide and content from auto-generated excerpts?
- How can I include a post in a theme?
- Custom CSS In Uploads Folder
- Default header image does not display
- How to write .htaccess dynamically? [closed]
- Adding wp_enqueue_media(); causes problem
- A guide or tool for inserting bootstrap in underscores theme? [closed]
- What is the correct way to do a mobile theme for WordPress?
- What is the right way to make custom main page?
- .sub-menu or .children?
- Custom CSS without css.php file
- Script only partially runs on theme activation, but runs fully on deactivation?
- How to echo category_description() without stripping out html tags?
- Understanding WordPress(framework?) Web Development
- For best DB performance should I serialize all theme options together or by type?
- Stylesheet not linking
- How to control layout of posts on page?
- saving row as a template using WPBakery Page Builder is not working [closed]
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom metabox for custom page template
- Display recent posts with thumbnail
- Custom Widget options in theme
- Include Parent functions.php in Child Theme functions.php
- Redirect to specified page when insufficient permissions?
- Primary navigation menu & footer not showing in category / tag page
- Jetpack Comments with fall-back
- wp_script_add_data doesn’t seem to work
- create category on theme setup
- Exclude read more in the_excerpt [closed]
- Where am I doing wrong in my theme menu?
- Calculate data and passing to Theme
- How to add custom meta box under Gallery Settings in the “Edit Gallery” popup
- Is it possible to make *.js and folders visible in theme-editor
- How do I turn a post thumbnail into a background image?
- Alternative to file_get_contents() for theme operations
- Can I Set Up Session in WordPress Custom Page
- Updating a live theme safely?
- How do I remove inline style in featured image markup?
- How to list articles by year based on url?
- Change Responsive Images Maximum Width of 1600px
- Why is my CSS not loading?
- How to find default functions of wordpress
- How to remove ver from stylesheet URL? [duplicate]
- How to make theme configurable
- How can I hard code my sidebar?
- wp_nav_menu with default pages menu
- Theme customizer – can’t add section/settings
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- using Options Framework – can “theme-textdomain” domain be changed?
- How to add sidebar to Isola theme? [closed]
- Custom theme template files
- How to get the theme index.php listed in appearance editor
- Filter to remove the default password on “Your Profile” page
- How to add testimonials with an image?
- How to setup sidebar modules to use jQuery Accordian
- Gallery functionality in custom theme
- WordPress Animation Adjustments
- theme directory fallback image outputs url and not the image
- Unexpected behaviour of class_exist
- How to make force_balance_tags balance comment tag
- Is the date when a theme was activated stored?
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- How can I not disable my theme when I want to upload a new version of it?
- Avoiding do_shortcode() loops
- How to know and change the machine name of a menu?
- How to customize the colors within a stylesheet using a WordPress setting
- How does mediaelement.js work in WordPress?
- Images use & location, on new wordpress theme
- On wordpress, how do i require specific dimensions from user uploads only
- how to create export / import theme options in wordpress without plugin
- WordPress Theme Developments – Start from another theme
- Access meta box checked value in another file
- Slider should be display in home template [closed]
- WordPress Customization API overwrite LESS variable
- Dynamic meta description
- How to Remove Sidebar when get_sidebar() is not get called in page?
- How does offset works on pagination? (get_results)
- Plugin or script to apply updated media settings to all featured images
- Header links also appearing in the footer
- Extending arrays in parent theme without completely overriding the files
- WordPress Subpages Fancybox Trouble
- Toolbox theme using printif statement – help needed understanding code block
- How to Create a Multi Purpose Theme?
- WordPress does not know the parametrs i sent to admin post
- Custom Single Page Portfolio Theme [closed]