Turn wp_tag_cloud into a front-end filter
I haven’f found a solution for this, but instead I found a plugin that does exactly this. http://wordpress.org/plugins/query-multiple-taxonomies/
I haven’f found a solution for this, but instead I found a plugin that does exactly this. http://wordpress.org/plugins/query-multiple-taxonomies/
Seems like you asked this Q on SO as well, I posted following answer over there: The meta_form function is not pluggable, and there are no hooks available, so, as hacking the core is not really recommended, you’ll need another approach. The following is a jQuery solution. Put the code in the functions.php file of … Read more
Try to define $count4footer outside the function wpa_filter_nav_menu_objects. $count4footer = array( ); function wpa_filter_nav_menu_objects( $items){ global $count4footer; foreach( $items as $item ){ $count = countPosts($item->ID); if($count!==false){ $item->title = $item->title.” ($count)”; $count4footer[$item->ID]=$count; } } return $items; } add_filter( ‘wp_nav_menu_objects’, ‘wpa_filter_nav_menu_objects’ );
Use the filter the_content_feed. He is explizit for change content, before sending in feed. A small example. Include a regex or replacement function to get your goal on content. add_filter( “the_content_feed”, “fb_example_change_content_feed” ); function fb_example_change_content_feed( $content ) { $content .= ‘Total ‘ . str_word_count( $content ) . ‘ words’; return $content; }
Date filter for post query not filtering results when variable outside the function
The priority value has to match on remove_filter. I am guessing that it does not. Try: remove_filter( ‘excerpt_more’, ‘twentyten_auto_excerpt_more’ ); Or find add_filter( ‘excerpt_more’, ‘twentyten_auto_excerpt_more’ and check the priority, then make it match.
When you post this question @PontusAbrahamsson answered you with a good function: function wpse_111428_change_feature_image_admin( $content ) { global $post; $size = 100; $id = get_post_meta( $post->ID, ‘_thumbnail_id’, true ); if( $id ) { return wp_get_attachment_link( $id, array( $size, $size ) ); } } add_filter( ‘admin_post_thumbnail_html’, ‘wpse_111428_change_feature_image_admin’ ); just replace it with a modded version that … Read more
There is a couple of ways to achieve this, use a custom query for your widget using get_posts function where the query attribute suppress_filters is set to false (the default). This would ensure your filters are not fired for this query. add better validation to your filter to figure what is the query on which … Read more
get_the_excerpt on mobile still displays continue reading
You can use the woocommerce_available_shipping_methods filter to do that. NB: if you have Role Based Shipping plugin you might find that it removes the Free Shipping option under some circumstances; this code puts it back if shopper has a coupon for Free Shipping. /** * if Free Shipping method is available, reduce to just Free … Read more