Title: post object
Last modified: September 17, 2020

---

# post object

 *  [maxcondor](https://wordpress.org/support/users/maxcondor/)
 * (@maxcondor)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/post-object/)
 * I created a custom post object field.
    The user can make multiple selections.
   I would like to be able to print the values ​​in a shortcode. I use the following
   code:
 *     ```
       function post_selezionti() {
       	$articoli_collegati = get_field('articoli_collegati');
       	if ($articoli_collegati) {
       		echo esc_html('test'.$articoli_collegati->post_title);
       	}
       }
   
       add_shortcode( 'sc_post_selezionti', 'post_selezionti');
       ```
   
 * only test appears on the screen.
    How do i view the post title do i have the 
   value of the custom field? Thanks

The topic ‘post object’ is closed to new replies.

 * ![](https://ps.w.org/advanced-custom-fields/assets/icon.svg?rev=3207824)
 * [Advanced Custom Fields (ACF®)](https://wordpress.org/plugins/advanced-custom-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-custom-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-custom-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-custom-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-custom-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-custom-fields/reviews/)

## Tags

 * [$post object](https://wordpress.org/support/topic-tag/post-object/)

 * 0 replies
 * 1 participant
 * Last reply from: [maxcondor](https://wordpress.org/support/users/maxcondor/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/post-object/)
 * Status: not resolved