Post count for particular term

Your query is completely wrong. You should use a proper tax_query. Also note, your query is quite expensive to run to just count posts. Set the fields paremeter to only return post ID’s. This saves up to 99.9% on resources. Just a note, the field parameter inside a tax_query is important. The valid values are … Read more

Starting fresh on a blank “theme” [closed]

Now that you have mastered modifying a WordPress Theme you are ready to create your own. There are many ways to go about this, and it’s up to you to figure out what is best for you. Personally, I like to use a WordPress Theme framework. My favorite is called Sage (formerly known as Roots). … Read more

Display draft posts on single pages [duplicate]

You need to change into the code, by default wordpress shows only post which are published. In your case you need to change the $args = array( ‘post_status’ => array( ‘publish’, ‘draft’) ); $query = new WP_Query( $args ); for more info you can look into this link: Another thing you can alter your current … Read more

How to completely remove the sidebar? [closed]

Looks like they are hard-coded into the sidebar. So you could manually remove them, but they’ll just return when you update the theme. Best solution would be to make a child theme, if possible, and create a new sidebar without the unwanted widgets. EDIT: Remove <aside id=”archives” class=”widget”> <h1 class=”widget-title”><?php _e( ‘Archives’, ‘adamos’ ); ?></h1> … Read more