Missing image in gallery shortcode in custom feed

The problem was in additional symbols &#8221 in $attr[‘ids’] array. So I’ve changed: $atts[‘include’] = str_replace(array(“»”,”″”,”””), “”, $atts[‘include’]); $atts[‘orderby’] = str_replace(array(“»”,”″”,”””), “”, $atts[‘orderby’]); $atts[‘order’] = str_replace(array(“»”,”″”,”””), “”, $atts[‘order’]); $atts[‘exclude’] = str_replace(array(“»”,”″”,”””), “”, $atts[‘exclude’]); And now everything ok.

How do I order my loop query?

The Problem $my_posts doesn’t contain any posts. It contains post IDs and likes. And you’re dropping both into post__in, which can’t work. I guess even the number of posts wouldn’t work if the plugin(?) wouldn’t add any post with a 0-x integer to the db-table per default. The Debug Try the following: $my_likes = $wpdb->get_col(“SELECT … Read more

Combining action and filter?

A better solution would be to add the filter hooks before the actual call in the template and removing theme when done meaning in your theme before you call your sidebar using dynamic_sidebar or what ever use this: add_filter( ’embed_defaults’, ‘small_embed_defaults’ ); dynamic_sidebar(‘my_sidebar’); remove_filter( ’embed_defaults’, ‘small_embed_defaults’ ); and the same with your main loop: add_filter( … Read more