Forum Replies Created
-
AuthorPosts
-
September 12, 2024 at 10:32 PM in reply to: ✅Field inside a popup not looping through in MB View #46431
Unakriti
ParticipantThanks Peter.
Appreciate your time to review this.
Apologies for the trouble.
You may close this ticket.
Kind regards,
Unakriti
Participant@David, I haven't had a chance to try this again, yet. In the interest of time for my client, I simply split the total by creating a second and a third set of custom fields to keep the total below 50 (per set).
Hope it helps.
Unakriti
ParticipantThanks Peter.
In the interet of time for my client, to bypass this limitation, I simply created a separate (part II) set of custom fields. It works this way and so I can clearly see the reasoning / logic you offered.
PS: I will try increasing the PHP max_input_vars value next time.
Appreciate your support,
Unakriti
ParticipantThank you Peter,
I am not sure that link you shared about WordPress Custom Fields Not Saving? Increase max_input_vars! is relevant.
Actually, the fields save okay but the Location attribute is reset when the number of fields go above 50 or so. Location is reset to Posts - Post. Please refer to the screenshot here - https://imgur.com/a/gXa4rqD
To fix this, I have to manually re-select the appropriate CPT. But after adding one or more fields, the error recurs.
Do you think its an issue with the PHP max_input-vars ? Or am I missing something?
Kind regards,
Unakriti
ParticipantThat was it! Thanks Peter. Appreciate your support.
Kind regards,
Unakriti
ParticipantPS: I also looked up this tutorial here - https://docs.metabox.io/tutorials/display-latest-products-mb-views/
Apprecaite your support.
Kind regards,
Unakriti
ParticipantPS: Forgot to attach the remaining two screenshots. Here these are for your reference:
1. In Gutenberg: https://imgur.com/a/zP4B0vU
2. In MB Views: https://imgur.com/a/QWEYpRRKind regards,
Unakriti
ParticipantThank you
I use a shortcode to output the MB View on the home page.
Here's a screenshot please https://imgur.com/a/EAc5a8s
Kind regards,
Unakriti
ParticipantPS: Should I post my last question (Subject - Create Reusable Template Parts) as a separate topic? Thanks
Unakriti
ParticipantCreate Reusable Template Parts
Hi Peter,
On the topic, I want to display such cards as a section on the home page, and so I followed the MB docs (Create Reusable Template Parts) to use the following code but I am not getting the desired result. Could you please advise?
{% set args = {post_type: 'service', posts_per_page: -1} %} {% set posts = mb.get_posts( args ) %} <div class="service-card"> {% for post in query.posts %} <div class="card-inner"> <p class="card-icon" style="width:2em;">{{ post.service_icon }}</p> <h5 class="card-title">{{ post.title }}</h5> <p class="card-excerpt">{{ post.service_excerpt }}</p> </div> {% endfor %} </div>Kind regards,
Unakriti
ParticipantMy oversight with the svg path fill property!
nonehteless, thank you very much.
Kind regards,
Unakriti
ParticipantThanks Peter.
Actually, while the rest of the card seems okay, the icon does not change to white color on hover.
Kind regards,
Unakriti
ParticipantGot it, thanks Peter
Unakriti
ParticipantThank you.
Ideally, I would like to output the shortcode value without using the snippet that disables escaping. Is there a way to render third-party shortcodes without assuming the risk? Could you please guide me how to achieve it?
Kind regards,
Unakriti
ParticipantThank you Peter.
The moment I switched to the single_image field, it started working as expected.
Apprecaite your support.
Kind regards,
-
AuthorPosts