1 post per category on homepage and counting those posts

Well after a good bit of searching I seem to have this working, I hope this helps someone. <div class=”col1″> <?php if (get_option(‘woo_show_carousel’) == ‘true’ AND !is_paged()) { include (TEMPLATEPATH . “/includes/featured.php”);} ?> <?php if (is_paged()) $is_paged = true; if (get_option(‘woo_slider_exclude’) == “true”) $shownslides = get_option(‘woo_shown_slides’); if(empty($showslides) || get_option(‘woo_show_carousel’) == ‘false’){ $showslides = array(); } … Read more

questions of submit wordpress theme [duplicate]

This does not mean that WP_DEBUG has anything to do with your theme code. That means that your theme generates error/warning/notice messages when output of error messages is enabled (WP suppresses output of errors by default). You will need to enable WP_DEBUG on stack where you test your theme and fix all such messages.

How to use multiple check-box values to work in a function and insert values in database

Currently you are passing on this value: ‘post_category’ => array(‘3,4,5’) // This is a single string While you should be doing this: ‘post_category’ => array(3,4,5) // Three separate values Don’t forget to sanitize the POST values neither: // Initialize categories $post_category = array(); // Prevent “undefined variable” error notices if (isset($_POST[‘vtype’])) { // Loop over … Read more

Is there a template tag I can use to link to the archive page corresponding to the month that a post was published on?

This is straight from the WordPress codex <?php $arc_year = get_the_time(‘Y’); ?> <?php $arc_month = get_the_time(‘m’); ?> <a href=”https://wordpress.stackexchange.com/questions/18602/<?php echo get_month_link($arc_year, $arc_month); ?>”>archive for <?php the_time(‘F Y’); ?></a>