iblis76
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [PDF Embedder] Not working after License updatefixed by adding jsquery-migrate
Forum: Plugins
In reply to: [PDF Embedder] Not working after License updateplugin required jquery-migrate
I had!
I’ve got a theme that has a file that includes next file:
wp-includes\js\tinymce\langs\wp-langs.php
but there is no such one there! ))
i investigated this issue and found that this file is missing after wordpress-3.8.1
solve this by copying “wp-langs.php” from wordpress-3.8.1 into latest wp-packageForum: Themes and Templates
In reply to: Addig element to woocommerce product pagehad the same problem. did not find the reason why it doesn’t work.
fix this problem by custom code:add_action( 'content_single_product_show_this_brand', 'show_this_brand' ); function show_this_brand() { global $post; if ( is_product_category() || is_singular( 'product' ) ) { $taxonomy = get_taxonomy( 'product_brand' ); $labels = $taxonomy->labels; echo get_brands( $post->ID, ', ', ' <span class="posted_in">' . $labels->name . ': ', '.</span>' ); /* if you want to show brand images $t = wp_get_post_terms( $post->ID, 'product_brand' ); foreach($t as $tid){ echo get_brand_thumbnail_url( $tid->term_id, 'full' ); } */ } }*put this into the functions.php
now I can do this action everywhere I want (within archive-page or single-product-page)
do_action('content_single_product_show_this_brand');
Viewing 4 replies - 1 through 4 (of 4 total)