How to transfer all posts, pages and media

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 … Read more

home is not working in wordpreess

Please try disabling all your Plugins by going to your File Manager through cpanel, in wp-content folder rename the plugins folder to “Plugins-old” and then check if the homepage is back. If it is not then try disabling the themes by renaming the folder the same way as well. If the homepage still isn’t back … Read more

How to get next post and previous post URL in loop, single.php My WordPress 4.9.6

Looks like you are trying to get a link to next/previous pagination results on a single(single.php) view which it doesn’t make sense to me. Please refer to the docs: https://codex.wordpress.org/Function_Reference/posts_nav_link For archive view: For displaying next and previous pages of posts see next_posts_link() and previous_posts_link(). For single view: For displaying next and previous post navigation … Read more

How to get value of a selected option from select tag and use it in WP_query to filter posts?

I assume you have posts with custom fields that have your select fields values as values for these custom fields, in this case you should take a closer look in ‘Custom Fields Paramenters’ from the WP_Query class references at: https://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters doing so you can just compare you select fields values with your post custom fields … Read more