Skip Navigation

[Gelöst] Using divi view content template I’m trying to put a file link into a divi icon

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

How to use Toolset Types shortcode in Divi theme?

Solution:

Please try below shortcode:

https://toolset.com/forums/topic/using-divi-view-content-template-im-trying-to-put-a-file-link-into-a-divi-icon/#post-2331451

Relevant Documentation:

This support ticket is created vor 2 Jahre, 5 Monate. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von cathieH vor 2 Jahre, 5 Monate.

Assistiert von: Luo Yang.

Author
Artikel
#2330923
2022-03-31_15-38-43.jpg

Tell us what you are trying to do?

I'm using WP Types, Views and Divi. Within the view I'm using Divi as the content template.

I'm wanting to take a custom field of File and output the the raw HTML URL to the Icon link.

The Icon Link ULR cannot take shortcodes [types field="pub-doc"][/types] so this doesn't work.

Also within Divi you can link directly to a custom field pub-doc .. however I can't get it to output the raw HTML link.

I've done this before in divi (not using WP Views) where I've linked an ACF custom field for a file and linked it to a button. Worked fine on a different website. However I'm now using Views so that I can export a list of documents with an icon to go directly to the attached document on the website. I'm failing at the point of linking the file url to the Icon.

Help?

Is there any documentation that you are following?
No
Is there a similar example that we can see?
No

What is the link to your site?
versteckter Link

New Publications, using WP Types post type, taxonomy, custom fields & WP Views.

You will see two rows of the same data. One as a simple shortcodes output in a text box to prove the data is there.

The second row is using divi elements so that I can style it better. I'm using the divi post title to output the post title, a text box to output the published date and then lastly the icon which does NOT correctly link to the file attached to that post's custom File field.

I hope I've given enough information to be clear.

I've can see it works with Gutenburg Blocks which you see at the top of the page, BUT how do I do this within Divi so that I can be more consistent in style and presentation?

Thanks
Cathie.

#2331451

Hello,

I assume we are talking about a custom URL field created with Toolset Types plugin, please try below shortcode:

{!{types field='pub-doc' output='raw'}!}{!{/types}!}

And test again

#2331625

My issue is resolved now.

I now know how to wrap my shortcodes so that they can be used with divi where needed.

Thank you.

Dieses Ticket ist jetzt geschlossen. Wenn Sie ein Toolset Kunde sind und Hilfe benötigen, eröffnen Sie bitte ein neues Support-Ticket.