## Contact Form 7 – convert Post IDs to values

Question

in the code of one of the fields, it pulls from a list from a different plugin however any option that gets emailed, it pulls the post ID and not the post title. Is there a way to display the post title instead of the ID?

$cf7_data['mem_type'] = ($submission->get_posted_data( 'mem_type' ) ? sanitize_text_field( \$submission->get_posted_data( 'mem_type' ) ) : '' );

Code is the one above…

0
2 months 2021-08-10T14:20:43-05:00 0 Answers 0 views 0