Search Filter by Genre and Artist

add_action( ‘pre_get_posts’, ‘softcomplexmusic_custom_search_filter’ ); function softcomplexmusic_custom_search_filter( $query ) { if ( !is_admin() && $query->is_main_query() && $query->is_search ) { $tax_query = []; if ( !empty($_GET[‘genre’]) ) { $tax_query[] = array( ‘taxonomy’ => ‘genre’, // Ensure this matches your site’s taxonomy slug…Continue reading

Customizing Checkbox and Radio Fields to Look Like Buttons (All Forms)

.wpforms-container input[type=radio], .wpforms-container input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;} .wpforms-container input[type=radio] + label, .wpforms-container input[type=checkbox] + label { padding: 5px 10px !important; background-color:…Continue reading

Customizing Checkbox and Radio Fields to Look Like Buttons (Specific Forms)

.wpforms-container form#wpforms-form-1000 input[type=radio], .wpforms-container form#wpforms-form-1000 input[type=checkbox] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; } .wpforms-container form#wpforms-form-1000 input[type=radio] + label, .wpforms-container form#wpforms-form-1000 input[type=checkbox] + label {…Continue reading

Allow mixed cart support with Stripe Payment Elements

add_filter( ‘edd_gateway_supports’, ‘prefix_maybe_add_mixed_cart_support’, 999, 2 ); /** * Allow Stripe to support mixed carts. * Requires EDD 3.2.7. */ function prefix_maybe_add_mixed_cart_support( $supports, $gateway ) { if ( ‘stripe’ === $gateway ) { $supports[] = ‘mixed_cart’; } return $supports; }Continue reading