Page.php vs Single.php

Edit Based on this comment: commenting out comments_template works. The problem lies in the template markup in comments.php. The likely reason that you see it in some output and not others is likely because you’ve got comments enabled in one context, and not in the other. Try comparing single posts with comments enabled vs disabled, … Read more

Overriding WooCommerce CSS? [closed]

You can change the CSS loading order. Find the place where WooCommerce enqueues it’s CSS and keep in mind it’s $handle (name). Search for wp_enqueue_style. Then go to theme’s functions.php and find the place where your theme enqueues it’s CSS. Now change your theme’s wp_enqueue_style by adding WooCommerce’s $handle to $deps (dependencies) parameter of theme’s … Read more

How to make a website like the ones in theme demos? [closed]

Theme demos, especially commercial ones, do not display out-of-the-box state of it. They are hand crafted and fine-tuned setups designed to sell (or at least convince for free ones). The official set of content that is typically used for quickly reviewing, evaluating and testing theme is called Theme Unit Test data. There are also unofficial … Read more

wp_query->set for several categories

Try using tax_query: $tax_query = array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘category’, ‘field’ => ‘id’, ‘terms’ => 1 ), array( ‘taxonomy’ => ‘category’, ‘field’ => ‘id’, ‘terms’ => 2 ), array( ‘taxonomy’ => ‘category’, ‘field’ => ‘id’, ‘terms’ => 3 ) ); $query->set( ‘tax_query’, $tax_query );

can’t change page slug

My first guess would have been that the page was in the Trash, but you’ve said in the OP that it isn’t. So… If you have access to your MySQL database, run this query: SELECT * FROM wp_posts WHERE post_name=”page-title” That will return the post that’s using the slug.