Skip Navigation

[Resolved] The loop of markers is not working ok

This support ticket is created 2 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
- 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 1 reply, has 2 voices.

Last updated by Minesh 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2169265
ERROR MAP.png

Hello,

I builded this map hidden link that shows a group of CPT "Members Profiles".

The map is working fine, but the list of members profiles is not working ok.

Some of the members profiles are not showing the title and link information.

This is the view hidden link

And this is the loop:

<wpv-loop>

[wpv-map-marker map_id="members-map" marker_id="marker-[wpv-post-id]" marker_title="[wpv-post-title]" marker_field="wpcf-address"]
<div class="row info-members mx-0 py-0 px-0 mb-0">
<div class="col-4 px-0">
[wpv-conditional if="( $(wpcf-profile-picture) ne '' )"][types field='profile-picture' title='%%TITLE%%' alt='%%ALT%%' size='full' class='circle-img d-table mx-auto p-1 img-responsive' style="max-width: 80px;"][/types][/wpv-conditional] [wpv-conditional if="( $(wpcf-profile-picture) eq '' )"]<img src="hidden link" width="80px" height="80px" class="circle-img d-table mx-auto p-1 img-responsive" />[/wpv-conditional]
</div>
<div class="col-8">
[wpv-post-link]<br/>
<small>Address: [types field='address'][/types]</small>
</div>
</div>
[/wpv-map-marker]

<div class="row info-members mx-0 py-0 mb-0">
<div class="col-4 px-0">
<a href="#" class="js-wpv-addon-maps-focus-map" data-map="members-map" data-marker='marker-[wpv-post-id id="$current"]'>
[wpv-conditional if="( $(wpcf-profile-picture) ne '' )"]
[types field='profile-picture' title='%%TITLE%%' alt='%%ALT%%' size='full' class='circle-img d-table mx-auto p-1 img-responsive' style="max-width: 80px;"]
[/wpv-conditional]
[wpv-conditional if="( $(wpcf-profile-picture) eq '' )"]
<img src="hidden link" width="80px" height="80px" class="circle-img d-table mx-auto p-1 img-responsive"/>
[/wpv-conditional]
</a>
</div>
<div class="col-8"> *****THIS COLUMN IS MISSING ON MOST OF THE LISTING POSTS BUT WORKS IN OTHERS*****
[wpv-post-link]<br/>
<small>Address: [types field='address'][/types]</small>
</div>
</div>

</wpv-loop>

#2169955

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please check now. Within the view, the image shortcode was not closed that is why the title was not get displayed. I fixed that. As you can see now Types shortcodes is closed with [/types] for the "profile-picture" field.

[wpv-conditional if="( $(wpcf-profile-picture) ne '' )"]
               [types field='profile-picture' title='%%TITLE%%' alt='%%ALT%%' size='full' class='circle-img d-table mx-auto p-1 img-responsive' style="max-width: 80px;"][/types]
               [/wpv-conditional]  

I can see now the title are get displayed. The Address field is not displayed because address field is not having any value.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.