ACF data in Tweet
-
Hi,
I follow your instruction to add any custom field data to tweet by creating the shortcode. But It didn’t work.
My code
add_shortcode( 'headline', 'bnd_headling' ); function bnd_headling(){ return get_field('subtitle_post',get_the_id()); }
Template
[ [ headline ] ]Let me know whats wrong in it.
PS: The space in shortcode are extra. If posted it without spaces WordPress convert into some link.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘ACF data in Tweet’ is closed to new replies.