OK Luo, now I understood the workflow.
Now we need to display the thumbnail of the featured image aside the STUDIO and the ARCHITECTS (it is a change on the shortcode you created so I am not able to do that)
Would you please make that change in the shortcode?
Thanks
Franco
Hello,
I have setup a demo in your website, with below steps:
1) Your website features images are broken, in order to test the result, I have to edit those posts to set the feature images:
hidden link
hidden link
hidden link
2) Create two content templates:
tree-like structure CT studio(display single studio information)
hidden link
tree-like structure CT architetto(display single architetto information)
hidden link
Display the post link + feature image shortcode:
[wpv-post-link] [wpv-post-featured-image]
You can customize them as what you want.
3) Modify the custom codes snippet "tree-like structure":
display above content template shortcode as below:
...
$studios[$studio_id] .= sprintf(
'<li>%1$s</li>',
do_shortcode('[wpv-post-body view_template="tree-like structure CT architetto" item="' . $architetto_id . '"]')
);
...
$res .= sprintf(
'<li>%1$s <ul>%2$s</ul></li>',
do_shortcode('[wpv-post-body view_template="tree-like structure CT studio" item="' . $studio_id . '"]'),
$architettos
);
...
4) Test it in frontend:
hidden link
It works fine. For your reference.
My issue is resolved now. Thank you Luo for the professional and precise support!