olegi4
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageNot pretty, but it works:
<?php $array1 = get_terms( "product_tag", array( "hide_empty" => false, ) ); $array2 = wp_get_post_terms( $product->get_id(), 'product_tag' ); $array3 = []; foreach($array1 as $something) { $array3[] = $something->name; } $array4 = []; foreach($array2 as $something) { $array4[] = $something->name; } $result = array_intersect($array3, $array4); foreach ( $result as $echoresult ) { echo $echoresult . "<br />"; } ?>Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageForum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single page`<?php
// wp_cache_flush();
// $product_tags = wp_get_post_terms( $product->get_id(), ‘product_tag’, array( ‘orderby’ => ‘tax_position’ ) );
$product_tags = wp_get_object_terms( $product->get_id(), ‘product_tag’, array( ‘orderby’ => ‘tax_position’ ) );echo ‘<pre>’;
print_r($product_tags);
echo ‘</pre>’;?>
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageIt’s ok with db as I see: https://www.dropbox.com/s/btzljz6w7k5vx9s/Screenshot%202017-11-21%20at%2021.24.14.png?dl=0
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single page1. Tried. Works fine. With name/slug etc.
2. The same issue.Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageDoesn’t work. Looks like it ordered by [term_id].
http://relat_new.eskom.lv/product/standart/?lang=en
http://relat_new.eskom.lv/product/sprut/?lang=en
http://relat_new.eskom.lv/product/extra/?lang=enForum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageHmmmmmm… Good idea, but can’t understand result: https://www.dropbox.com/s/c5gmd8jy1xc5ost/Screenshot_2017-11-21_at_19_02_49.png?dl=0
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageπ It’s ok.
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageYep β I’m talking about TAGS. Why this forum is for TABS? From description of plugin: “The plugin works for WordPress core taxonomies β Categories and Tags β and any custom taxonomies you have created.”
Plugin is very good for ordering tags in admin area but no changes on product page.
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageWhere I can find this page?
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Ordering tags on woo product single pageYes. I’m talking about this difference. In admin itΕ‘ right order, on site not the same wrong order. Look at screenshot please.
https://www.dropbox.com/s/9fx45h3i3h6evpt/Screenshot%202017-11-21%20at%2017.37.25.png?dl=0