Forum Replies Created
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
November 5, 2024 at 10:34 PM in reply to: ✅Need Help with Custom Field Issue After Metabox Update #46851
Gagan
ParticipantThanks a lot Peter, it’s working now! I appreciate your help.
I apologize, as I had faced this same issue about a month ago. Someone in the Metabox Facebook group had kindly helped me fix it by increasing the PHP setting, just like you suggested. I recently changed my server and completely forgot to check this setting again.
Now I understand, and I’ll make sure to remember it for next time!
Thanks again for your help!
October 25, 2024 at 10:50 AM in reply to: ✅Need Help with Creating a Custom Taxonomy Archive Page for WooCommerce Products #46761October 25, 2024 at 10:49 AM in reply to: ✅Need Help with Creating a Custom Taxonomy Archive Page for WooCommerce Products #46760Gagan
ParticipantIts working now. I was doing a silly mistake to use a wrong slug of taxonomy. Here is the final code:
{% set args = {taxonomy: 'concern', hide_empty: false} %} {% set concerns = mb.get_terms(args) %} <div class="concerns-archive"> <h1 class="heading-title">Concerns</h1> <div class="concern-items"> {% if concerns|length > 0 %} {% for concern in concerns %} <div class="concern-item"> <div class="concern-item-inner"> <div class="concern-image-column"> <div class="concern-background" style="background-image: url('https://mywebsite.com/wp-content/uploads/2024/09/Concern-Background-Image.svg'); background-position: center; background-size: cover;"> {% set custom_image_id = mb.get_term_meta(concern.term_id, 'custom_thumbnail', true) %} {% set custom_image_url = custom_image_id ? mb.wp_get_attachment_image_url(custom_image_id, 'full') : false %} {% if custom_image_url %} <img src="{{ custom_image_url }}" alt="{{ concern.name }}" class="f-concern-image" style="padding: 12px; border-radius: 50%;" /> {% else %} <img src="https://mywebsite.com/wp-content/uploads/2024/09/4.avif" alt="Default Image" class="f-concern-image" style="padding: 12px; border-radius: 50%;" /> {% endif %} </div> </div> <div class="concern-details-column"> <h3 class="concern-title">{{ concern.name }}</h3> <p class="concern-description">{{ concern.description }}</p> <a href="{{ mb.get_term_link(concern.term_id) }}" class="concern-button" target="_blank" rel="noopener">Check Related Products</a> </div> </div> </div> {% endfor %} {% else %} <p>No concerns found.</p> {% endif %} </div> </div>October 24, 2024 at 1:03 PM in reply to: ✅Need Help with Creating a Custom Taxonomy Archive Page for WooCommerce Products #46755Gagan
ParticipantAfter learning a little from the documentations I have implemented the following code:
{% set args = {taxonomy: 'concerns', hide_empty: false} %} {% set concerns = mb.get_terms(args) %} <div class="concerns-container"> <h1 class="heading-title">Product Concerns</h1> <div class="concern-items"> {% for concern in concerns %} <div class="concern-card"> <a href="{{ mb.get_term_link(concern.term_id) }}" class="concern-link"> <div class="concern-background" style="background-image: url('https://mywebsite.com/wp-content/uploads/2024/09/Concern-Background-Image.svg');"> {% set custom_image = mb.get_term_meta(concern.term_id, 'custom_thumbnail', true) %} {% if custom_image %} <img src="{{ custom_image }}" alt="{{ concern.name }}" class="concern-custom-image" /> {% else %} <img src="https://mywebsite.com/wp-content/uploads/2024/09/Concern-Background-Image.svg" alt="Default Image" class="concern-custom-image" /> {% endif %} </div> <h3 class="concern-title">{{ concern.name }}</h3> </a> </div> {% endfor %} </div> </div>but it's still not working. Please guide through!
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)