WAIT: ACF Post object query doesn't render featured image if set to the page calling it

I accidentally stumbled over this one, and it’s such a minor thing that it may not be worth fixing, but:

I’ve got a repeater that contains a post object field (and other fields, too). When I run a loop to show the post object with pages other than the page where the repeater is situated, I get expected results.

However, if I insert the post object where the repeater is situated, it won’t pull the featured image.

So, basically, what I did was:

  1. Create repeater with a post object field.
  2. Add the field to a post object query in a template.
  3. Feed the page where the repeater is situated into the post object field.

Results: bricks renders all the fields, except the featured image where it renders nothing. Put any other page into the page object field, and it renders the featured image just fine.

Here’s how it looks on the back end:

And here’s the result on the front end:

And the setup:

Environment:

System Information

Theme Information
Theme name: Bricks
Theme version: 1.9.8
Theme author: Bricks
Theme author URI: https://bricksbuilder.io/
Theme is child theme:

WordPress Environment
Home URL: https://nns.samordning.org
REST API Prefix: wp-json
WP version: 6.5.3
WP debug:
WP language: en_US
WP multisite:
WP memory limit: 40 MB - Recommended wp_memory_limit: 64M (or more)

Server Environment
Server info: LiteSpeed
MySQL version: 10.6.17
PHP version: 8.3.6
PHP post max size: 512M
PHP execution time limit: 90 - Recommended max_execution_time: 180 (or more)
PHP max input vars: 4000
PHP safe mode:
PHP memory limit: 1G
PHP max upload file size: 512M

Active Plugins
Admin and Site Enhancements (ASE) (6.9.13.2) by wpase.com
Advanced Custom Fields PRO (6.2.9) by WP Engine
Asgaros Forum (2.9.0) by Thomas Belser
Classic Editor (1.6.3) by WordPress Contributors
FileBird Document Library (Pro) (2.0.6) by Ninja Team
FileBird Pro (6.2) by Ninja Team
Loco Translate (2.6.9) by Tim Whitlock
Responsive Lightbox & Gallery (2.4.7) by dFactory
wp-Typography (5.9.1) by Peter Putzer

@FilWi - Could you share the code you used, or the dynamic data you used to pull in the featured image and other post meta from the post object field?

I’m trying to do something similar, except just with a single post object field, and I can’t get anything to populate except the post name / link. I’m trying to do with dynamic data tags right now. Not sure if it’s a similar bug, or if I’m just doing something wrong:

Here’s the copied code:

{"content":[{"id":"gelpga","name":"section","parent":0,"children":["ytpkdq"],"settings":{"_cssGlobalClasses":["iwjgxt"],"_conditions":[[{"id":"dxtpoy","key":"dynamic_data","dynamic_data":"{acf_anvand_topp-text:value}","compare":"==","value":"1"},{"id":"kwwszb","key":"dynamic_data","dynamic_data":"{acf_topp-text}","compare":"!="}],[{"id":"dcsslp","key":"dynamic_data","dynamic_data":"{query_results_count:weaaqt}","compare":">","value":"0"},{"id":"nlerqx","key":"dynamic_data","dynamic_data":"{acf_anvand_topp-puffar:value}","compare":"==","value":"1"}]]},"label":"Top Text/Puffar"},{"id":"ytpkdq","name":"container","parent":"gelpga","children":["qepcbv","miwjmv"],"settings":{"_cssGlobalClasses":["lfries"]}},{"id":"qepcbv","name":"text-basic","parent":"ytpkdq","children":[],"settings":{"text":"{acf_topp-text}","_conditions":[[{"id":"bhfrwa","key":"dynamic_data","dynamic_data":"{acf_anvand_topp-text:value}","value":"1","compare":"=="},{"id":"dzlmjs","key":"dynamic_data","dynamic_data":"{acf_topp-text}","compare":"!="}]]},"label":"Välkomnsttext / Huvudtext"},{"id":"miwjmv","name":"block","parent":"ytpkdq","children":["weaaqt"],"settings":{"_conditions":[[{"id":"jwppqs","key":"dynamic_data","dynamic_data":"{query_results_count:weaaqt}","compare":">","value":"0"},{"id":"eslgow","key":"dynamic_data","dynamic_data":"{acf_anvand_topp-puffar:value}","compare":"==","value":"1"}]],"_columnGap":"3rem","_direction":"column","_justifyContent":"flex-start","_alignItems":"center","_cssGlobalClasses":["bnqrjm"]},"label":"Puffar"},{"id":"kpmvmo","name":"block","parent":"xjencf","children":["ptyvtz"],"settings":{"query":{"objectType":"acf_topp-puffar_puff_sida"},"hasLoop":true,"_conditions":[[{"id":"ljejea","key":"dynamic_data","dynamic_data":"{acf_topp-puffar_puff_rubrik}","compare":"=="}]]},"label":"Page object query"},{"id":"mkmaqw","name":"block","parent":"weaaqt","children":["xjencf","nucllz"],"settings":{"_cssGlobalClasses":["rewezv"]}},{"id":"xjencf","name":"block","parent":"mkmaqw","children":["vwonbv","kpmvmo","fowdvh","kfequo"],"settings":[]},{"id":"ptyvtz","name":"heading","parent":"kpmvmo","children":[],"settings":{"tag":"h2","text":"{post_title}"},"label":"Post title"},{"id":"fowdvh","name":"text-basic","parent":"xjencf","children":[],"settings":{"_conditions":[[{"id":"qwpymp","key":"dynamic_data","compare":"!=","dynamic_data":"{acf_topp-puffar_puff_ingress}"}]],"text":"{acf_topp-puffar_puff_ingress}"},"label":"Puff-ingress"},{"id":"nucllz","name":"block","parent":"mkmaqw","children":["ynbitt"],"settings":{"_cssGlobalClasses":["myztit"],"hasLoop":true,"query":{"objectType":"acf_mitten-puffar_puff_sida"}}},{"id":"ynbitt","name":"button","parent":"nucllz","children":[],"settings":{"text":"Läs mer","style":"primary","_cssGlobalClasses":["yvvbsy","xfkpfd","wlumcw","yibiiy"],"link":{"type":"external","url":"{post_url}"}},"label":"Button-Läs mer"},{"id":"bqulbn","name":"image","parent":"weaaqt","children":[],"settings":{"_conditions":[[{"id":"uzvaka","key":"dynamic_data","compare":"!=","dynamic_data":"{acf_topp-puffar_puff_bild}"}]],"_cssGlobalClasses":["arrrtu"],"_aspectRatio":"3/2","image":{"useDynamicData":"{acf_topp-puffar_puff_bild}","size":"large"},"_width":"500px"},"label":"Puff Image","themeStyles":[]},{"id":"weaaqt","name":"block","parent":"miwjmv","children":["mkmaqw","bqulbn","uczawj"],"settings":{"query":{"objectType":"acf_topp-puffar"},"_cssGlobalClasses":["umcvcd","asuosl","fhjxsl"],"hasLoop":true,"_cssCustom":"#brxe-weaaqt:nth-of-type(even) {\n\tflex-direction: row-reverse;\n}"},"label":"Topp-puffar loop"},{"id":"vwonbv","name":"heading","parent":"xjencf","children":[],"settings":{"tag":"h2","text":"{acf_topp-puffar_puff_rubrik}","_conditions":[[{"id":"xtxrpf","key":"dynamic_data","dynamic_data":"{acf_topp-puffar_puff_rubrik}","compare":"!="}]]},"label":"Puff-rubrik"},{"id":"kfequo","name":"block","parent":"xjencf","children":["ccqgrq"],"settings":{"query":{"objectType":"acf_topp-puffar_puff_sida"},"hasLoop":true,"_conditions":[[{"id":"ljejea","key":"dynamic_data","compare":"==","dynamic_data":"{acf_topp-puffar_puff_ingress}"}]]},"label":"Page object query"},{"id":"ccqgrq","name":"text-basic","parent":"kfequo","children":[],"settings":{"text":"{acf_ingress}"},"label":"Page ingress"},{"id":"uczawj","name":"block","parent":"weaaqt","children":["ihlyhb"],"settings":{"query":{"objectType":"acf_topp-puffar_puff_sida"},"hasLoop":true,"_conditions":[[{"id":"ljejea","key":"dynamic_data","compare":"==","dynamic_data":"{acf_topp-puffar_puff_bild}"}]]},"label":"Page object query"},{"id":"ihlyhb","name":"image","parent":"uczawj","children":[],"settings":{"_cssGlobalClasses":["arrrtu"],"_aspectRatio":"3/2","image":{"useDynamicData":"{featured_image}","size":"large"}},"label":"Featured Image","themeStyles":{"caption":"none"}}],"source":"bricksCopiedElements","sourceUrl":"https://nns.samordning.org","version":"1.10.3","globalClasses":[{"id":"iwjgxt","name":"Spacing-Section","settings":{"_padding":{"top":"3rem","bottom":"3rem"}}},{"id":"lfries","name":"Spacing-Page_Blocks","settings":{"_margin":{"top":"1rem","bottom":"2rem"},"_rowGap":"3rem","_justifyContent":"flex-start"}},{"id":"bnqrjm","name":"Element-Storpuff_Container","settings":{"_direction":"column","_justifyContent":"flex-start","_alignItems":"center","_rowGap":"3rem"}},{"id":"rewezv","name":"Element-Bottom_Button_External_Container","settings":{"_direction":"column","_alignSelf":"stretch","_alignSelf:mobile_landscape":"flex-start"}},{"id":"myztit","name":"Element-Bottom_Button_Internal_Container","settings":{"_height":"100%","_direction":"column","_justifyContent":"flex-end"}},{"id":"yvvbsy","name":"Färg_Länkfält_Bakgrund","settings":{"_background:tablet_portrait":{"color":{"hex":"#58245d","id":"eqoqab","name":"Mörklila"}},"_background":{"color":{"hex":"#58245d","id":"eqoqab","name":"Mörklila"}}}},{"id":"xfkpfd","name":"Färg_Länkfält_Text","settings":{"_typography:tablet_portrait":{"color":{"hex":"#ffffff","id":"annmyn","name":"Vit bakgrund"}},"iconTypography:tablet_portrait":{"color":{"hex":"#ffffff","id":"annmyn","name":"Vit bakgrund"},"font-size":"2rem"},"menuJustifyContent:tablet_portrait":"center","menuAlignment:tablet_portrait":"row","_typography":{"color":{"hex":"#ffffff","id":"annmyn","name":"Vit bakgrund"}}}},{"id":"wlumcw","name":"Element-Round_Corners","settings":{"_border":{"radius":{"top":"5px","right":"5px","bottom":"5px","left":"5px"},"style":"hidden"}}},{"id":"yibiiy","name":"Element-Puff-Knapp","settings":{"_margin":{"top":"1rem","right":"1rem","bottom":"1rem","left":"1rem"},"_widthMax":"60%","_alignSelf":"flex-end"}},{"id":"arrrtu","name":"Image-Storpuff","settings":{"_aspectRatio":"3/2","_objectFit":"contain","_width":"400px","_widthMax":"34%"},"modified":1727941235,"user_id":1},{"id":"umcvcd","name":"Element-Clickable_Element","settings":{"_boxShadow":{"color":{"hex":"#282727","rgb":"rgba(40, 39, 39, 0.21)","hsl":"hsla(0, 1%, 15%, 0.21)","id":"mjmibw","name":"Transparent Shadow"},"values":{"offsetX":"3px","offsetY":"3px","blur":"10px"}},"_background":{"color":{"hex":"#ffffff","id":"annmyn","name":"Vit bakgrund"}},"_padding":{"top":"0.5rem","right":"0.5rem","bottom":"0.5rem","left":"0.5rem"}}},{"id":"asuosl","name":"Spacing-Clickable_Element","settings":{"_padding":{"top":"0.5rem","bottom":"0.5rem","right":"1rem","left":"1rem"},"_columnGap":"1rem","_flexWrap":"nowrap","_justifyContent":"space-between","_alignItems":"flex-start"}},{"id":"fhjxsl","name":"Element-Storpuff_Responsive","settings":{"_flexWrap:mobile_landscape":"wrap-reverse","_widthMax:mobile_landscape":"320px","_direction":"row"}}],"globalElements":[]}

Hi Filip,
Sorry for the late reply!

I tried replicating the issue using Bricks 1.11beta, but I can’t. Is it still an issue, and have you tried it with the current beta?

If it still won’t work, please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.

Best,
timmse