Skip Navigation

[Resolved] We need to display the thumbnail of the featured image aside the STUDIO and the ARCHITECTS

This support ticket is created 2 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Franco Calcagni 2 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#2444607

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

#2444619

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.

#2444687

My issue is resolved now. Thank you Luo for the professional and precise support!