Checkbox show / hide output result

For saving the checkbox, one easy way to check, if the checkbox was checked is to use empty() function. The checkbox key and value exists in $_POST only, if it was checked when the form was submitted. For example, function snup_save_meta($post_id) { // nonce check etc. // save text $snupText = $_POST[‘snuptext’] ?? ”; update_post_meta( … Read more

Featured Image and Tags problem

For adding the ID at the end of the URL being generated in yout filter_post_thumbnail function you would use concatenation to append the variable to the end of the URL in the return statement. return'<img src=”https://eur02b.sheltermanager.com/service?account=bp****&method=animal_image&animalid=”‘ . $animalID_REF . ‘”/>’; Also you’ll need to upload the image to the media library and then set it … Read more

Warning at top of website & top menu gone

This function, call_user_func_array() is called by add_filter() (or add_action()) that was not declared properly. Scan the code for something like: add_filter(‘something’, ‘smartwp_remove_wp_block_library_css’) to find the culprit. If you do find it and it wasn’t something you added/changed, you will have to troubleshoot to determine why this function was not declared/found. The top menu is still … Read more