kamyarhu
Forum Replies Created
-
Forum: Plugins
In reply to: [Code Snippets] TinyMCE button to be optionalThank you Shea
This piece of code helped me to remove it completely, as I do not use the function.
// Remove Code Snippet Button from TinyMCE add_filter('mce_buttons', 'remove_snippet_button', 2000); function remove_snippet_button( $buttons ) { $remove = array('code_snippets'); return array_diff( $buttons, $remove ); }
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Feature Request: Import from CPT UII find it more intuitive to use, as it follows WordPress’s system (listing of CPTs and taxonomies) but also the way information is organized in tabs, the activation / deactivation option, ease and flexibility to choose re-write url arguments etc…
Thank you, this is very helpful
I will appreciate one more addition, to check if ‘social_image_url’ is empty before updating it. To update only if it is empty. I tried with $tsf->get_term_meta_item[‘social_image_url’] but couldn’t make it work.
- This reply was modified 3 years, 5 months ago by kamyarhu.
Thank you so much, it works like a charm!
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] Feature request: tab indexThank you Konrad, your plugin is already wonderful
Forum: Plugins
In reply to: [Custom Content Shortcode] Sorting according to two separate taxonomies@polarracing thank you so much… I think your solution can work.
I ended up adding the taxonomies as extra ACF fields to the post type, and then used them in the [LOOP] and somehow managed it. Thank you againForum: Plugins
In reply to: [Custom Content Shortcode] Sorting according to two separate taxonomiesThank you for your response @polarracing
1. Example: Good Wine (post) | Rose (taxonomy drink-category) | Toscana (taxonomy drink-region / second level)
2. The reason this down’t work is that, the region FOR needs to be inside a drink category FOR, and it doesn’t return any value. It can be like:
[for each=drink-category]
[-for each=drink-region]
but this doesn’t work. When FOR of one taxonomy is inside another on no value is returned.This worked, but I am not sure if this is the best way.
function my_prepare_field( $field ) { if ( !empty($field ['value']) ){ return $field; } else { $eventid = get_the_ID(); $field ['value']= $eventid; return $field; } } add_filter('acf/prepare_field/key=field_5ef201d35ce09', 'my_prepare_field');
- This reply was modified 4 years, 9 months ago by kamyarhu.