add active class based on permalink and url

For the left side you could do this, <?php $args = array( ‘post_type’ => ‘post’, ‘posts_per_page’ => 10, ‘paged’ => get_query_var(‘paged’) ? get_query_var(‘paged’) : 1, ); $loop = new WP_Query( $args ); // add custom function before loop, so you can apply excerpt filter only to this case do_action(‘my_custom_pre_loop_action’); // is url parameter set, if … Read more

category query for pages not working

I just re created the category. Deleted the old category and created a new category with the same name, and now it`s ok. The pages were imported with the native WordPress import-export plugin, from another wp installation, with the category as well (the category was automatically created when I imported the pages), maybe something went … Read more