function so_13735174_custom_text_widget( $atts, $content = null )
// $post contains lots of info
// Using $post->ID many more can be retrieved
// Here, we are getting the Custom Field named "text"
$html = get_post_meta( $post->ID, 'text', true );
// Custom Field not set or empty, print nothing
if( !isset( $html ) || '' == $html )
// Print Custom Field
And then add text widget with shortcode [mytext]
Everything work perfect, but I wanted to add Filed Type:”Relationship” to show posts with thumbnail on different posts and pages.
But it only displays “Array”.
I am not a programer and any help will be appreciate it.
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users