WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query

H’okay, so, using this resource, I was found that going into the template-knowledgebase.php file and replacing the cat keyword with category__in (that’s a double underscore) did only return the articles who’s parent were the category we were looking at. I also edited the else statement of the if to be endif and removed the extraneous … Read more

Automatically create a loop for post ID

“The Loop” is already a loop, so I don’t see the need for your second loop. In fact, the secondary while loop shouldn’t work because you keep resetting it to 1 for every post. You also have some PHP syntax issues like $echo (that’s a variable) instead of echo and the way you concatenate the … Read more

WP_query returns error when used for custom widget

UPDATE: Okay, Looking at the Error, it should be easy. Just remove any Whitespaces or Clear Lines at the end of your Plugin file after the last “?>”. http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Did you copy&paste the code here? Because it seems like you have some whitespaces that should not be there in the line <?php if ($the_query->have_posts()) : … Read more

Keep post format class with isotope filter

you did not describe what you edited to add the isotope filtering, but you seem to have removed post_class() from this line to add your isotope class: <article class=”<?php echo $termsString; ?>item”> change it to: <article <?php post_class( $termstring . ‘item’ ); ?>”> http://codex.wordpress.org/Function_Reference/post_class