1

Per Tony's suggestion, adding a random string to the CSS version did the trick. Here's the code I used to do that. First this code to generate the random number. // get theme version function cd_get_version() { $theme_data = wp_get_theme(); return $theme_data->Version; } $theme_version = cd_get_version(); global $theme_version; // get random ...


1

No, you can't use set_post_thumbnail() to remove the post thumbnail. The function you need is delete_post_thumbnail(). // Both of these work. delete_post_thumbnail( $post->ID ); // pass the post ID //delete_post_thumbnail( $post ); // or post object


1

You need to use get_field() function instead. It will RETURN the value instead of printing. So, your code will be: soliloquy( get_field( 'slider' ) );


1

if you prefer to retrieve the value from wpcf7 instead of the $_POST array, you can use the following. this is similar to how to retrieve the posted data. just use get_meta instead of get_posted_data: $submission = WPCF7_Submission :: get_instance(); $submission->get_meta('container_post_id');


Only top voted, non community-wiki answers of a minimum length are eligible