ACF checkbox return format based on page

You have to return the output with the value. you can check the following code. function hello_shortcode() { // Load field settings and values. $field = get_field_object(‘producent’); if( ! is_product_category() ) { $checkbox = $field[‘value’]; } else { $checkbox = $field[‘label’]; } $output=”‹p›”.$checkbox.’‹/p›’; return $output; } // register shortcode add_shortcode(‘hello’, ‘hello_shortcode’);

WPForms Custom Redirect not working

I’m not sure why wpforms_process_redirect_url doesn’t work. I used this instead. Here’s my full code: //Capture the wpform submit, and call the “processForm” function add_action( ‘wpforms_process_complete’, ‘processForm’, 5, 4 ); function processForm( $form_fields, $entry, $form_data, $entry_id ) { $card_arr = array(797, 1104, 1103, 1102, 1101, 1038, 997, 996, 973, 812); $form_id = $form_data[‘id’]; $variation_id = … Read more

How to hide an option from dropdown in filter module

Nevermind. I applied this custom js to hide that specific taxonomy in the dropdown. <script> jQuery(function($){ var arr=[‘name-of-slug-to-hide’]; $(‘select[name=”wpv-category”] option’).each(function(){ if(jQuery.inArray($(this).val(), arr)>=0){ $(this).hide(); } }); }) </script>

Hide custom field value

If the registered users are all within the WP user table then you can do something like this <?php if( is_user_logged_in() ) { /// link to membership section } else { /// link to signup page? } ?> This will check the current status of the user and see if they are logged in or … Read more