Skip Navigation

[Resolved] Showing post term custom field

This support ticket is created 2 years, 5 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by cna-serviziS 2 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#2445669

Hi,
I have a CPT called "Uno di noi". I created a taxonomy called "Categorie di attività", with different taxonomy terms, which has an image custom field so that each taxonomy term features a different image.
So, I've built a custom template to display the CPT and I would like to add the taxonomy term image at the top. I've tried but the taxonomy custom fields don't show up in any way when I try to assign dynamic content to an image block.
Is there a way that I can achieve that?

Thank you very much for your help

#2445713

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

This can only be done by using the classic view editor.
If the classic view hasn't been enabled you can enable it by going to Toolset -> Settings and scrolling to Editing Experience. From there I recommend that you select " Show both the legacy and Blocks interface and let me choose which to use for each item I build".

This will allow you to have access to the classic editor as well as the block editor. From there refresh the page and go to Toolset -> Views.

From there you will create a view for your taxonomy. Under the Query Filter section you will add a query filter for Taxonomy Term.

Then set the filter to get the term of the current page.

Next you will need to go to the Loop wizard and using the Loop wizard insert the custom fields.

Finally just go back to your page template and add the view's shortcode to the page.

The shortcode should look like below.


[wpv-view name='my-view']

Where "my-view" is the slug of your view.

Thanks,
Shane

#2445803

That's great! Thank you Shane