Skip Navigation

[Resolved] display "website" with dynamic content link

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/Karachi (GMT+05:00)

Author
Posts
#2647421

Tell us what you are trying to do?
I would like to use a custom post type, with custom fields to display dynamic content in a template. To make this more attractive than it currently looks, I would like to use the word website but to then have that link to dynamic content from a custom field.
Generic information on how to improve the appearance of the dynamic content would be appreciated. I am new to toolset and a relative newcomer to wordpress but have 40 years IT experience so can pick up most programming languages if necessary.

Is there any documentation that you are following?
I have followed the documentation provided in videos from yourself but am unsure where to look to resolve my issue.

Is there a similar example that we can see?
hidden link

What is the link to your site?
haddington.info - select the rugby ball - obviously my site is no where near complete...

#2647937

Hi,

Thank you for contacting us and I'd be happy to assist.

From what you've shared, I understand your project involves sub-sections or a directory-like structure, that is part of the main website.

Using Toolset Types, you can register a custom post type for example 'Sections'. You can additionally register the necessary custom fields and taxonomies for this post type to store additional information with each of these section posts.

For an overview, I'll recommend going through our free course on creating a directory website available at:
https://toolset.com/course/wordpress-directory-and-classifieds-sites/

This should give you a good understanding of how different Toolset components can be made to work together for a project like this.

I hope this helps and let me know if you have any follow-up questions.

regards,
Waqar

#2649035

Hi. I am still not understanding how I would create a static piece of text within the archive page or the single post page, - say, "website" with a dynamic link to the custom field containing that website url, without making the whole container a link (which seems overkill and for a repeating field I guess could have multiple results?). The results of displaying the value of the website or email or phone etc is messy. Especially for url, is there no way to display the word "website" and click on it to take me to the dynamic content value of website?
I have seen answers which look like I need to go and write some php - surely this can't be the solution to such a simple requirement?

hidden link

#2649595

Thanks for writing back.

I can assist you with designing the dynamic content elements for individual 'website' post items. But, I'll need to see how these fields and the content template are set up in the admin area.

Can you please share temporary admin login details, in reply to this message? I'll be in a better position to suggest the next steps accordingly.

Note: Your next reply will be private and it is recommended to make a complete backup copy before sharing the access details.

#2650605

Thank you for sharing the access details.

I've included example buttons in the content template 'Template for Sports and Societies', using the 'Button' blocks from Toolset and the 'Buttons (Adv)' block from Kadence.

These blocks support adding custom text with the link from the custom field and the inline icon selection option.

However, these blocks don't support the repeating fields. You can overcome this limitation, by not using repeating fields and instead using multiple fields for the websites, emails, phone numbers, etc.

For example:

Website 1
Website 2
Website 3

Email 1
Email 2
Email 3

Phone 1
Phone 2
Phone 3

#2650853

It would appear the toolset button only works for urls? For email addresses and phone numbers it looks like I will need to look at php. I think you had answered someone else's similar question with this.
https://toolset.com/forums/topic/add-mail-to-and-call-for-mobile-to-dynamic-links/

The example kadence block supplied only seemed to work in the template for the badminton example.

Please correct me if I am wrong. Thank you for the button example though.

#2651117

> It would appear the toolset button only works for urls? For email addresses and phone numbers it looks like I will need to look at php. I think you had answered someone else's similar question with this.
https://toolset.com/forums/topic/add-mail-to-and-call-for-mobile-to-dynamic-links/

- Yes, your observation is correct and you can use the HTML and shortcodes combination approach from my other support thread, for the email address and phone links.

Note: You can include the code shared in my examples, in a 'Fields and Text' block in the template, and for that specific part, you won't need to add any PHP code customizations.