shortcode not render in input value
-
Dear all.
function get_post_title_shortcode( $atts ) {
? ? $atts = shortcode_atts( array(
? ? ? ? ‘id’ => get_the_ID(),
? ? ), $atts, ‘post_title’ );
? ? $post_title = get_the_title( $atts[‘id’] );
? ? return $post_title;
}
add_shortcode( ‘get_post_title’, ‘get_post_title_shortcode’ );
I have create a function for short code it working well,
but when I want it reader in INPUT as value Elementor HTML it not render
EX: <input type=”hidden” mane=”tourCode” value=”[get_post_title]” />
Anyone got this issue please share ideas?
Thanks
TY
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.