Tag Info

New answers tagged

0

Your problem has nothing to do with the_excerpt(). the_excerpt() template tag does not change its behavior by itself or change its behavior according to location. The only time the_excerpt() changes its behavior is when you manually filter the output through a custom function. I most probably think that all of your misery is caused by neglet :-). Neglet to ...


0

The answer was to assign a count to each attachment: $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID, 'order_by' => 'menu_order', 'order' => 'DESC' ); $attachments = get_posts( $args ); if ( $attachments ) { $count = 0; foreach ...


0

As of 3.7 you can use date_query http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters So it would look like: $args = array( 'posts_per_page' => 5, 'post_type' => 'post', 'post_status' => 'publish', 'date_query' => array( 'after' => date('Y-m-d', strtotime('-30 days')) ), ...



Top 50 recent answers are included