You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using WordPress native function get_the_title() doesn't work for me :(
$my_meta->addSelect($prefix.'select_concurso_destinatarios',array('destinatario1'=>'Estudiantes de Grado','destinatario2'=>'Estudiantes de Máster','destinatario3'=>'Estudiantes de Doctorado','destinatario4'=>'Estudiantes sin nivel especificado','selectkey5'=>'No especificado'),array('name'=> 'Destinatarios', 'multiple'=>true));
<?php echo get_post_meta( $post->ID, 'ba_select_concurso_destinatarios', true );?>
When I fill this field it displays:
Result: destinatario1
<?php echo get_the_title(get_post_meta( $post->ID, 'ba_select_concurso_destinatarios', true ));?>
When I fill this field it displays:
Result:
When empty it shows the title of the post
Result: Michelin Challenge Design “Inspiring Mobility”
It worked for post fields but not for select field.
The text was updated successfully, but these errors were encountered:
First of all, thanks for this wonderful class.
Using WordPress native function get_the_title() doesn't work for me :(
$my_meta->addSelect($prefix.'select_concurso_destinatarios',array('destinatario1'=>'Estudiantes de Grado','destinatario2'=>'Estudiantes de Máster','destinatario3'=>'Estudiantes de Doctorado','destinatario4'=>'Estudiantes sin nivel especificado','selectkey5'=>'No especificado'),array('name'=> 'Destinatarios', 'multiple'=>true));
<?php echo get_post_meta( $post->ID, 'ba_select_concurso_destinatarios', true );?>
When I fill this field it displays:
Result: destinatario1
<?php echo get_the_title(get_post_meta( $post->ID, 'ba_select_concurso_destinatarios', true ));?>
When I fill this field it displays:
Result:
When empty it shows the title of the post
Result: Michelin Challenge Design “Inspiring Mobility”
It worked for post fields but not for select field.
The text was updated successfully, but these errors were encountered: