Is it possible to query a category with specified posts?

You should use a custom select query: $querystr = ” SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) LEFT JOIN $wpdb->terms ON($wpdb->term_taxonomy.term_id = $wpdb->terms.term_id) WHERE ($wpdb->terms.name=”sounds-flavors” OR $wpdb->posts.ID IN(12345,12678)) AND $wpdb->term_taxonomy.taxonomy = ‘category’ AND $wpdb->posts.post_status=”publish” AND $wpdb->posts.post_type=”post” LIMIT 3 “; Take a look here: https://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query Regards

Creating custom post-listing templates in twentyseventeen child theme

You can use the Body Class Filter for this to adjust the classes being added to the body tag. add_filter(‘body_class’,’review_pages_classes’); function review_pages_classes($classes) { $classes[] = ‘blog’; return $classes; } Which classes you need to add or remove is probably a matter of trial and error, or looking at the stylesheets in more detail.

Displaying Child Page’s Information

Something like this would work: <!–Child Page Thumbnails Start–> <?php $subs = new WP_Query( array( ‘post_parent’ => $post->ID, ‘post_type’ => ‘page’, ‘meta_key’ => ‘_thumbnail_id’ ) ); if( $subs->have_posts() ) : while( $subs->have_posts() ) : $subs->the_post(); echo ‘<a href=”‘.get_permalink().'” title=”‘.get_the_title().'”>’.get_the_post_thumbnail().'</a>’.'<br/><h2><a href=”‘.get_permalink().'”>’.get_the_title().'</a></h2>’; the_content(); endwhile; endif; wp_reset_postdata(); ?> <!–Child Page Thumbnails End–>

Why would adding a template file to a child theme cause an error in template-loader.php?

Your initial idea is correct, WordPress shouldn’t look for index.php if it finds category.php for a category archive. However, that may change if you don’t have file permission and ownership set properly, or if FileSystem cache is messing with file_exists() check. Follow these steps: Make sure your child theme files are readable by the web … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)