View post with specific category id and name which I selected in the backend (drop-down option)

Try this code. <?php $cat_id = get_theme_mod(‘cat_choose’, $defaults); ?> <p><?php echo get_cat_name( $cat_id ); ?></p> <hr> <?php $args = array( ‘post_type’ => ‘post’ , ‘orderby’ => ‘date’ , ‘order’ => ‘DESC’ , ‘cat’ => $cat_id, ‘posts_per_page’ => -1, ); $cat_posts = new WP_query($args); if ($cat_posts->have_posts()) : while ($cat_posts->have_posts()) : $cat_posts->the_post(); ?> <div> <div> <h1><?php the_title(); … Read more

Can`t Access Post Page After Migration

Deactivate all your plugins and themes reactivate the theme and the required plugins of the theme; check if you have no bugs if no errors reactivate the other plugins one by one and check if there are no errors. You can also follow this https://www.wpbeginner.com/wp-tutorials/how-to-find-and-access-wordpress-error-logs-step-by-step/ and share your logs

How to change Permalinks only for Blogposts

Review information here for changing permalinks: Setting Permalinks Look at Custom Structure and adding /blogpost/%postname%/ For custom post type permalinks you have to disable “with front” so they will not be appended with your custom structure. For automated redirects and monitoring take a look at this plugin: Redirection