efrap
Forum Replies Created
-
Forum: Plugins
In reply to: [Live Composer - Free WordPress Website Builder] Template for custom taxonomyCustom taxonomies archive templates work with LC posts, but not with custom posts.
I would also like to know
Forum: Plugins
In reply to: [WC Fields Factory] Hide meta from order and emailsSince I have no need to display any meta, I have simplified your function:
function hide_wcff_meta( $output, $order ) { $html = ''; return $html; } add_filter( 'woocommerce_order_items_meta_display', 'hide_wcff_meta', 99, 2 );Thank you for directing me to a solution.
Forum: Plugins
In reply to: [WC Fields Factory] Hide meta from order and emailsThank you for this outstanding support. I will try it out.
Forum: Plugins
In reply to: [qTranslate X] BuddyPress x-Profile radio checkboxSorry, never did.
Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] ID order of itemssolution:
add_filter('uwpqsf_taxonomy_arg', 'change_order','',2); function change_order($args,$formid){ if ($formid == 'tax_slug'){ $args['orderby']='id'; $args['order']='ASC'; } return $args; }Forum: Plugins
In reply to: [Ultimate WP Query Search Filter] ID order of itemsNice, anyway to limit this to one taxonomy?
Forum: Plugins
In reply to: CPT-onomies – "all items" translationFound “define the CPT-onomy labels” on line 980 of manager.php.
Terms like search, popular, all, are hardcoded in english, this is problematic for internationalization.
Forum: Plugins
In reply to: [Custom Post Type UI] Taxonomy Display Name / Uppercase Problemline 37 of cptui.js, targeting #name instead of #slug
Forum: Plugins
In reply to: [Custom Post Type UI] Taxonomy Display Name / Uppercase ProblemSame problem here. Some script is converting taxonomy name change as I type with underscores for spaces and lowercasing all.
Forum: Plugins
In reply to: using wp_set_object with CPT onony and Events managerThe solution is to handle post meta without cpt-onomies. In the frontend EM event form, there are two CPT-onomies, one dropdown and one with chexboxes. By comparing form selection to post CPT-onomies post-meta, it is possible to add and remove.
function save_onomies($result,$EM_Event){ if( $result ){ if( !is_admin() ){ $single = intval($_POST['taxa']); $multiple = array_map('intval', (array)$_POST['tax_input']['taxb']); $multiple[] = $single; // add single onomy to array $onomies = get_post_meta ( $EM_Event->ID, CPT_ONOMIES_POSTMETA_KEY ); $toadds = array_diff( $multiple, $onomies ); if ( $toadds ) { foreach( $toadds as $toadd ) { add_post_meta( $EM_Event->ID, CPT_ONOMIES_POSTMETA_KEY, $toadd, false); } } $todeletes = array_diff( $onomies, $multiple ); if ( $todeletes ) { foreach( $todeletes as $todelete ) { delete_post_meta($EM_Event->ID, CPT_ONOMIES_POSTMETA_KEY, $todelete ); } } } } return $result; } add_action( 'em_event_save', 'save_onomies',9,2 );I played around with event-editor.php and was able to add taxonomies there. I will be looking for some insight on how to save changes. I will get the pro version on Monday for some support with this. Thank you.
Thank you for your response. I would be glad to purchase the pro version for the enhanced support offered. I am not an expert coder, but I can get by. Just one question really: will it be possible to add custom taxonomies to the front end event form? I will need some guidance with this.
Yes, user-submitted on front end. I have experimented with custom taxonomies that seem to work ok in the admin area, but I really need checkboxes to work on front end for users – and also to make event searches on some of them. Thank you.
Wow, that’s great Sven, thank you!