Skip Navigation

[Resolved] In Blocks – concatenating two types fields add paragraphs between them

This support ticket is created 5 years, 3 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 5 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1485213

I am trying to:

In Blocks I'm wanting to concatenate two types fields, but it always add a paragraph between them. That's not what I want. I want the data from field A to be part of the same sentence with data from field B.

Here's what I did:

1. Added a Toolset Container
2. Added a fields and text element and with it two fields
3. I use the fields selector to choose the two fields
It doesn't matter if I output raw or not. No matter how I do it a paragraph is inserted between them.

#1486079

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

That is strange. Can you please share the problem URL where you want to display the concatenating Types fields as well as access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1487219

This is on a local development server. Unfortunately there's no way to give you access or share a URL.

#1488663

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

ok - is it possible for you to send me a problem URL and duplicator copy of your site?

Please check the following Doc that will help you to create duplicator copy of your site:
=> https://toolset.com/faq/provide-supporters-copy-site/

#1489029

Minesh,
I have no interest in sharing my website with your team. Sorry. And I feel that you may be overthinking this. It's really a simple issue and I've given you the exact steps above to replicate it. Have you done so? Sending you an entire site (which I don't want to do anyway) would be overkill.

Create a WordPress page. Insert a Toolset Fields and Text block. Add a custom field. type some text. Add another custom field. Does it add a paragraph between the two custom fields or is all one sentence on the same line.

In a content template, there is (or used to be) an option to not auto insert paragraphs. I didn't see such an option with blocks as described above. Is this a bug. I don't think there's anything special about my setup. I'm using the Astra theme which is compatible both with blocks and toolset.

#1490001

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I try to run a test and created a new content template using blocks and added the container block and within the container block I've added "Fields and Text" block where I've added some text as well as few custom fields.

Yes, it adds the P tag when you add a new field but the workaround would be you should switch to the "HTML" mode and remove the P tags from your content and wrap all the code with [wpv-noautop] shortcode. Please check the following screenshot:
=> hidden link

For example:

[wpv-noautop] asfddsaf [types field='stud-email'][/types]<br>&nbsp;--[types field='stud-phone'][/types] assdfdsaf ---[types field='stud-address'][/types] [/wpv-noautop]

I think this workaround would help you to resolve your issue.

More info:
=> https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-noautop