Skip Navigation

[Resolved] Problems with inline insertion of custom fields

This support ticket is created 3 years, 7 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 3 replies, has 3 voices.

Last updated by Shane 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2245967
Bildschirmfoto 2021-12-16 um 11.39.17.png

This concerns the template for single places, like here: hidden link

I made a box, on the right side, with the most important contact information for the place, and inserted the information (inline) into an unordered list.
Every time I try to insert the "inline" field containing the telephone number, however, the number does not show, i.e. the field does not insert. Neither on the back end, nor on the front end.

And the links to websites, also inserted inline, are not clickable.

Do you have an idea why this is so?

#2246161

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Screenshot 2021-12-16 at 14.27.06.png

Regarding outputting URL fields as links, if you are using the Singe Field block to output the field, check the settings as shown in the screenshot to make sure you are outputting as a link and not just the raw url.

As for the missing phone number, it is not obvious what's going on there without being able to check your site.

I would first check that the post used for the template preview (which you can choose at the top of the page) has a value for the phone field; if you are previewing with a post that has no value for the field it can affect setting the options.

If you can't spot the problem, then could you share credentials for your site so that we can take a look?

Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.

#2246241
Toolset-phone-inline-2.png

The block is an unordered list, the URL for the website is an inline field, and I don't see an option to choose between raw URL and link, with the inline field. (see screenshot)

Your temporary admin credentials are:

I made sure I have a working backup.

Thank you for your support.

#2246387

Shane
Supporter

Languages: English (English )

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

Hi Gabrielle,

I managed to take a look on this one for you and found 2 issues.

1. The reason why your phone number field isn't getting added is because this is a repeatable field. Repeatable fields should be called using the repeating field block or using the [types field='my-field'][/types] shortcode where my-field is the slug of the custom field. Ofcourse to use the shortcode you must either be using the shortcode block or a WYSIWYG editor block like the classic editor block.

To workaround this issue you can change your phone number field have a single instance in the custom field settings.

2. The reason why your links aren't clickable is the because you're using the inline text option where it will give you the raw values that are stored in the database so these links aren't wrapped in anchor tags.

To get them to be wrapped in anchor tags I suggest using the single field block to display them.

Thanks,
Shane