I have data that I'd like to enter only once into one post and then share it across all of it's siblings. In ACF you can display a field from one post on another based on post id. Is this possible? I'm working in php templates.
Hi, if you know the related post's ID, then you can query its custom field values using standard Types field shortcodes or by using the types_render_field PHP API. Here is an example you can use to get started:
...
echo( types_render_field("my-number", array("style" => "FIELD_NAME : $ FIELD_VALUE", "id" => 12345)));
...
You can see that I've passed the style and id attributes into the arguments array. If you'd like to see more information about rendering custom field values with PHP, like the different attributes you can use, visit our documentation page here: https://toolset.com/documentation/customizing-sites-using-php/functions/
Click the orange "More info" button below any field type to see some examples with PHP and definitions for the supported attributes.
If you'd like to see more information about querying related posts, you can see our Post Relationships API documentation here: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/