Testimonial post meta not updated ($post_id always return 1)
-
Testimonial can be entered but post meta is not updated. After I look at the code I found an error that $post_id always return 1.
Code:
if ( $post_id = wp_insert_post( $post, false ) && $captcha ) {
Solution:
if ( ( $post_id = wp_insert_post( $post, false ) ) && $captcha ) {
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Testimonial post meta not updated ($post_id always return 1)’ is closed to new replies.