How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
How to remove the inline styles from the content of a WYSIWYG editor field at the time of saving the post?
Bulk-Update Custom Posts
How to create a dropdown select of all items in an ACF field group
Try the below code $ano_candidatura_value = get_field( ‘ano_candidatura’, $post->ID ); if($ano_candidatura_value == ‘2018’) : // The html code you want to implement endif; Hope this helps.
OK, I had thought of a couple ideas to try this morning, and things came together. Let me post my revised code. Essentially, I tried to follow the natural formatting to see if I could get everything to fall in line further along. I decided to convert the initial variable to an array, and that … Read more
You probably need $produkte[‘bild’][‘alt’] instead of $produkte[‘alt’].
ACF From & To Date Validations
I would suggest to use wp_insert_post hook to make sure that everything is processed before you hook in. add_action( ‘wp_insert_post’, ‘my_wp_insert_post_cb’, 10, 2 ); function my_wp_insert_post_cb( $post_id, $post ) { // Do your stuff here }
Figured it out just had to do this , the page-custom-field.php is included to shorten the code. <?php $query = new WP_Query( array( ‘pagename’ => ‘features’ ) ); ?> <?php while ( $query->have_posts() ) : $query->the_post(); ?> <?php include page-custom-field.php’ ?> <?php endwhile; ?> <?php wp_reset_postdata(); ?>
If you want to include your own inputs on the acf_form() you should use some of its parameters to allow the form submit them. Otherwise your inputs will be out of the form. As an example you could use this code: <?php acf_form( array( ‘html_after_fields’ => ‘<input type=”text” id=”id_whatsapp” name=”acf[n_whatsapp]” value=”acf[n_whatsapp]”>’, ) ); ?> You … Read more