how can i hide category?

You essentially want to add the following to $args: ‘cat’ => -65 One way to to this is to add the following line after $args = jr_filter_form();: $args[‘cat’]= -65; Note the – will exclude that particular category ID from the results. Reference: WordPress codex – query_posts() (see: “Exclude Categories From Your Home Page”) — Additional … Read more

Advanced permalinks structure

WordPress is practically setup to support this out of the box. You can go to mysite.com/?category_name=news&tag=sports to see the magic happen. All we need to do here is match a permalink structure to this existing URI, and WP makes this unreasonably easy. In your theme’s functions.php file, add: add_action( ‘init’, ‘wpse_88059_add_rewrites’ ); function wpse_88059_add_rewrites() { … Read more

Filter Category Loop Dynamically

You are opening a php tag inside an open php tag so you are actually calling this whole string: <?php global $current_user; if ( isset($current_user) ) {echo $current_user->user_login;}?> as a category and you echo it out (wrongly) which is not passing ia as a perameter to query_posts move it outside the query_posts call: global $current_user; … Read more

Multiple category columns and post counting list in wordpress Homepage

<?php $args = array( ‘show_option_all’ => ”, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘style’ => ‘list’, ‘show_count’ => 1, // 1 is true and 0 is false ‘hide_empty’ => 1, ‘use_desc_for_title’ => 1, ‘child_of’ => 0, ‘feed’ => ”, ‘feed_type’ => ”, ‘feed_image’ => ”, ‘exclude’ => ”, ‘exclude_tree’ => ”, ‘include’ => ”, ‘hierarchical’ … Read more

new WP_Query issues

The issue with your query is that new WP_Query($query_string,$args); is not correct syntax, however, creating a new WP_Query is not the way to do what you want. See the codex page for pre_get_posts for the correct way to modify the main query. I assume by setting posts per page to 999, you want to show … Read more