filter on the_content stopped working when I updated to WP 3.6.1

It appears to be an issue with your RegEx pattern matching images. I modified $pattern to the following and it worked on a test page I setup. $pattern = ‘/<img(.*?)src=”https://wordpress.stackexchange.com/questions/114747/(.*?).(bmp”gif|jpeg|jpg|png)”(.*?)width=”(.*?)” height=”(.*?)” \/>/i’; There were some extra spaces which were throwing it off. I suggest using a RegEx tester to help you make sure your pattern … Read more

Have multiple loops on a page appear after/between page content

Use buffer to simply do that with ob_start() & ob_get_clean(). function custom_summary($atts) { extract(shortcode_atts(array( “category” => “”, “posts” => “” ), $atts)); ob_start(); $my_query = new WP_Query(“category_name=$category&posts_per_page=$posts”); while ($my_query->have_posts()) : $my_query->the_post(); // Do all the things. endwhile; wp_reset_postdata(); return ob_get_clean(); } add_shortcode(‘summary’, ‘custom_summary’);

how to use custom loop in the_content filter

the_content is expecting a string, you’ll have to use output buffering: function my_custom_loop() { $taxonomy = ‘state_cat’; $terms = get_the_terms($post->ID, $taxonomy); if ($terms && ! is_wp_error($terms)) : $terms_array = array(); foreach ($terms as $term) { $terms_array[] = $term->slug; } $have_you_read_query = new WP_Query( array( ‘posts_per_page’ => 100, ‘post_type’ => ‘post’, ‘post__not_in’ => array($post->ID), ‘category__not_in’ => … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)