Skip Navigation

[Résolu] custom field for maps render double maps, url field, wysiwyg field

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Toolset custom field for maps render duplicated maps
Solution:
Use WYSIWYG field instead of URL field.
Relevant Documentation:

This support ticket is created Il y a 7 années. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Ce sujet contient 9 réponses, a 2 voix.

Dernière mise à jour par Jas Il y a 7 années.

Assisté par: Noman.

Auteur
Publications
#586548

Jas
screenshot 3.png

I am trying to: add a custom field for maps.

Link to a page where the issue can be seen: lien caché

I expected to see: a single map

Instead, I got: two of the same map

what I'm doing is: I used the add URL to embed my google map because when I tried "embed media" as I assumed I needed to do, it says "incorrect URL". I assume because through Google>share map> it renders a <iframe....link? (i'm very new to this so forgive me) anyways, I can get a map to display by adding a custom field URL and entering the embed code from google maps, only I get a double of the map. and also "title=" that appears to be a link above the map.
also if you notice in my "what we liked", on the second paragraph, there is extra space with a comma above it, which shouldn't be there, but it shows up anyways....
thanks for your input!

#586635

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

wysiwyg field.png

Hi Jocelyn,

Thank you for contacting Toolset support. I have visited your page but can not see the map on the page.

You can use WYSIWYG field -- see attached screenshot.

- If still issue exists, please provide back-end screenshots where you have added the map and address.

- To remove the extra space and comma, please edit the page and check if you are displaying any terms separated by comma are not empty.

Thank you

#586710

Jas
screenshot 6.png
screenshot 5.png

ok so the WYSIWYG worked, thanks! But I"m confused, is the "embed media" not normally also used for maps?

Ok so the other issue was that I am assuming I need to add a multi-line field to get a question field with multiple answer points that show up in a neat list as per attached screen shot on the right. As you see it says "Why we liked 'em" or "what we liked" and then shows a bulleted list of all the points we liked. Right now, I have to make the whole list in a single line or the multi-line field in order to make it show up in a neat list, otherwise you get what you see in image on left

#586721

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

But I"m confused, is the "embed media" not normally also used for maps?
==> Yes, that is correct. Embedded media field is good only for video type of content, it implements the embedded content feature of WordPress, list of sites you can Embed From:
- https://codex.wordpress.org/Embeds
- https://toolset.com/documentation/customizing-sites-using-php/functions/#embedded-media

Looking into your 2nd issue and will get back to you.

#586723

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

For the 2nd issue, I am not exactly sure what you are trying to achieve but if you are using multiline field to save that text, in this case you need to add ul & li tags around your text so it displays in bullet list format, like this:

<ul>
<li> Text bullet point 1 </li>
<li> Text bullet point 2 </li>
<li> Text bullet point 3 </li>
</ul>

OR you can use WYSIWYG field for this text too, that will allow you to create a bulleted list using interface / editor buttons.

Thanks

#586965

Jas

-so i'd add those ul & li tags into the post multi field itself? opposed to in CT (It worked for me directly in the field itself within single service page, but again, i was hoping that if i have someone else or a member themselves add info via a front end form, that I wouldn't have to go back in after the fact to add the html...was hoping for something automated, but I can work with it i guess if that's how it is)

-also wondering how to make these support threads private or at least not showing my name/website?

Thank you for your fantastic patience!

#586983

Noman
Supporter

Les langues: Anglais (English )

Fuseau horaire: Asia/Karachi (GMT+05:00)

repeating field.png

I believe you want to generate bullet list automatically, to achieve this you can use single line repeating field (see attached screenshot), and add

  • tag in separator when adding the code in Content template . Like this:
    <ul>
     <li>[types field="my-number" separator="</li>
    
     <li>"][/types]</li>
    
     </ul>
    

    Documentation: https://toolset.com/documentation/user-guides/repeating-fields/

    -also wondering how to make these support threads private or at least not showing my name/website?
    You can not make the thread private, but you can enable private message field and add your site links there when creating the ticket. For now I have removed your site link from the first message.

    Thank you

  • #587034

    Jas
    screenshot 8.png

    ok i removed the separator="," bit and that worked. Is it something that toolset will want to remove though too because it doesn't look nice, (i know you just integrated with Divi) or maybe i'm just not using it as it's normally used....
    The WYSIWYG solution or ul & li tags is something that can work as long as there isn't a easy alternative solution. Otherwise, would I need then to hire someone who can code that can add these bullets somehow to the structure so that I don't have to manually add these html ul & li tags each time I enter data into one of these multi-line fields? (which means my users won't be able to add the html, and in the WYSIWYG editor, I won't get uniform result unless I do it myself, so I'll have to go back into each submission each time to edit). I'd love for anytime certain fields are filled out, (on multiple line fields) that a bullet of some kind is inserted.

    #587087

    Noman
    Supporter

    Les langues: Anglais (English )

    Fuseau horaire: Asia/Karachi (GMT+05:00)

    field.png
    list.png

    I have removed the html list from field and added in Content template. See attached screenshots.

    Thank you

    #587140

    Jas

    Now this is customer support at it's best!!!!