woocommerce product category tabs [closed]

If you mean ‘tabs’ as in the way WooCommerce presents the Product Description, Attributes, and Review on the product page then take a look at the template files for WooCommerce. You can find them at ../wp-content/plugins/woocommerce/templates. There’s a good article on customizing the templates at http://wcdocs.woothemes.com/codex/template-structure/ You need to follow these guidelines to make sure … Read more

Woo Commerce Variations [closed]

In most e-commerce carts variations are exactly that; variations of a product. For example a shirt available in small, medium, large and also available in different colors red, blue, and green. In this example you’d have: Shirt, small, red Shirt, medium, red Shirt, large, red Shirt, small, blue Shirt, medium, blue Shirt, large, blue Shirt, … Read more

Adding a slider captcha to the comment system

First things first, there is quite a bit of _doing_it_wrong() in the script enqueueing. Don’t override core-bundled scripts Try removing this hook callback, and see if that fixes things: function my_scripts_method() { wp_deregister_script( ‘jquery’ ); wp_deregister_script( ‘jquery ui’ ); wp_register_script( ‘jquery’, ‘http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js’); wp_register_script( ‘jquery ui’, ‘https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js’); wp_enqueue_script( ‘jquery’ ); wp_enqueue_script( ‘jquery ui’ ); } add_action(‘wp_enqueue_scripts’, … Read more

How to read individual user’s directory and display content to that specific user?

First an observation, using $upload_dir.’/USER_PHOTOS’.$user->user_login may lead to a mess of folders in wp-content/. I suggest wp-content/user-photos/user-login/. And the following example considers it this way. In your case, you already have the menu item, for completeness this is the submenu used for development: add_action( ‘admin_menu’, ‘wpse_75873_folder_menu’ ); function wpse_75873_folder_menu() { add_media_page( ‘User Photos Media’, ‘User … Read more

Pull out Advanced Custom Fields in Related post plugin

According to advenced custom fields you get the value with get_field http://www.advancedcustomfields.com/docs/functions/get_field/ Just change “text_field” to your field-key. <?php $related = MRP_get_related_posts( $post->ID, true, false, ‘quote_list’ ); if( !empty( $related ) ) { foreach( $related as $key => $value ) { // Get post $related = get_post( $value ); // Get the field “text_field” on … Read more