How to hide a piece of code from a wordpress web page?

Without looking too closely, my best guess is that the footer text: ©2012 Америк дахь Монгол Оюутны Холбоо is being processed through the the_content filter… something like: echo apply_filters(‘the_content’, $some_text); Typically those social plugins add themselves automatically by hooking into the_content filter.

WooCommerce Order Status Displays Twice on Order Page

Solved it. I used the plugins_loaded hook, like this: add_action(‘plugins_loaded’,’example_function’); function example_function(){ remove_action(‘manage_shop_order_posts_custom_column’, ‘woocommerce_custom_order_columns’, 2); add_action(‘manage_shop_order_posts_custom_column’, ‘match_order_woocommerce_custom_order_columns’, 2); }

Stylesheet not being loaded? [closed]

Sometimes CSS changes don’t load all the time, and it requires you to hard reload the page for it to show up for you. Have your hard reloaded your page in your browser? You could be looking at a cached view. Try CTRL+F5 to perform a hard reload.

Loading Canvas & WooCommerce translation file in child theme

There was a syntax error in loading the WooCommerce translations and I managed to get the parent theme translations working by following the same method I used for the WooCommerce translations. function weg_localisation() { unload_textdomain( ‘woothemes’ ); load_textdomain(‘woothemes’, get_stylesheet_directory() . ‘/lang/af_AF.mo’); unload_textdomain(‘woocommerce’); load_textdomain(‘woocommerce’, get_stylesheet_directory() . ‘/woocommerce/i18n/languages/woocommerce-af_AF.mo’); } add_action(‘init’, ‘weg_localisation’);

WooCommerce Product Search Error

” Invalid argument supplied for foreach()” . means that the $parents variable is not an array so you can’t loop through it. You should wrap the foreach loop in an if check that verifies that $parents is something valid. <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); $parents = get_the_terms($term->parent, get_query_var(‘taxonomy’) … Read more

Filter orders by product in admin

You can simply use the “Search Orders” box on the top right, just enter the product name. Exporting those to csv requires a more tailored approach, not sure if Order/Customer CSV export is up to it (ask WooThemes and they’ll be quick to respond)