Skip Navigation

[Resolved] Here is my next problem and I’m not sure about how resolve it

This thread is resolved. Here is a description of the problem and solution.

Problem:

Do you know how I could dynamically fetch a custom taxonomy field that I will call "archive-center" in a category of posts?

Solution:

Please try to display the taxonomy field
shortcode directly, make sure it outputs the correct address values, for example:

[types termmeta="archive-center"][/types]

Relevant Documentation:

This support ticket is created 3 years, 10 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 milanV 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#2330531

Here is my next problem and I'm not sure about how resolve it...

I want to bulk import all my page (around 100 pages). 1 page equals a city.
Actually I have to make 1 view for each city
Is it possible to create a dynamic view based on a parameter (adress) for each page?
I thought of a shortcode, but I don't know how to use it.

Thank you 🙂

EDIT :

With a bit of work I managed to get my view's shortcode to work manually.
[wpv-view name="page-seo2" mapcenter="paris, france"]

Do you know how I could dynamically fetch a custom field that I will call "archive-center" in a category of posts?

EDIT2 :
I created a custom field in the taxonomy called "archive-center", I tried to call it in the mapcenter value but without success, the shortcode does not work,

Here is my shortcode :
[wpv-view name="page-seo2" mapcenter="[types termmeta="archive-center"][/types]"]

In front I have the end of the shortcode : [/types]"]

#2330535

Hello,

Please try to display the [types termmeta="archive-center"][/types] shortcode directly, make sure it outputs the correct address values.

I have tried the same shortcodes you mentioned above, I don't see the same problem.

And you can also wrap the [types] shortcode with single quotes, for example:
[wpv-view name="page-seo2" mapcenter='[types termmeta="archive-center"][/types]']
And test again

#2330719

This shortcode doesn't work with Divi, I use the block editor and it's OK now 🙂

My issue is resolved now. Thank you!