Forum Replies Created
-
AuthorPosts
-
October 30, 2024 at 2:40 PM in reply to: WooCommerce High-Performance Order Storage (HPOS) Support and Compatibility #46787
indatext.com
Participant+1 (+500 actually). This feature alone will save from tons of quirks in customizing WooC UX.
June 5, 2024 at 2:20 PM in reply to: WooCommerce High-Performance Order Storage (HPOS) Support and Compatibility #45617indatext.com
Participant+1
indatext.com
ParticipantFile does not exist
November 1, 2022 at 10:47 PM in reply to: Image Advanced not getting IDs from cloneable field #38918indatext.com
ParticipantYes. If the Image Advanced is set to cloneable, images are not retrievable anymore via
<?php $images = rwmb_meta( 'portfoliogallery' ); $image_ids = array_keys( $images ); $shortcode = '[' . 'gallery ids="' . implode( ',', $image_ids ) . '" itemtag="div" icontag ="div" size="thumbnail" link="file"]'; echo do_shortcode( $shortcode ); ?>But when "cloneable" function is unset, images are retrieved OK, but previews are lost on backend, although post keeps array of uploaded images.
I have 2 copies of site to display this, how can I privately show the issue?
indatext.com
ParticipantDid you resolved this? I have similar issue.
indatext.com
ParticipantSolved. It was terms attribution problem. WPML allows to assign translated AND original terms to the same post. It doubles the count. Keeping terms in discipline to the current language helped.
indatext.com
ParticipantThis is interesting, but it seems this method does not return the correct count if used with WPML.
For original language it returns some larger count, for translated languages it returns ok.Is there a way to somehow filter this count through some WPML object to get the correct count on original language?
Example:
{% set args = {taxonomy: 'collection',hide_empty: false, include:'132, 133, 135, 136, 120, 449, 128, 130, 131, 141, 119'} %} {% set collections = mb.get_terms( args ) %} {% for collection in collections %} {% set image_upload = mb.get_term_meta( collection.term_id, 'image_advanced_collection_ru', true ) %} {% set image_upload_link = mb.wp_get_attachment_image_src( image_upload, large) %} <div class="background-collection" style="background:url({{ image_upload_link [0] }})"> <div class="collection_name"> <div class="collection-inner-tag">КОЛЛЕКЦИЯ</div> <h2>{{ collection.name }}</h2> <div class="collection-button-wrapper"><a class="ct-link collection-count" href="{{ mb.get_category_link( collection.term_id ) }}" target="_blank" rel="noopener">Показать: {{ collection.count }} моделей</a></div> </div><!-- end of collection_name --> </div><!-- end of background-collection --> {% endfor %}returns incorrect count on original language at https://dev2.belwooddoors.com/collections/#div_block-111-3838 , but the very same code works correct on translated version (English)- https://dev2.belwooddoors.com/en/collections/#div_block-111-3838
It seems that MBView gets sum of all translations plus original, looking at count values returned. How to enforce count function stick to current language for terms?
indatext.com
ParticipantThank you so much, Long, MBViews is a godlike tool.
indatext.com
ParticipantI also tried this :
`{% for collection in collections %}
{% set models_count = mb.get_queried_object() %}'
since I am in a Collection loop, custom taxonomy object should be in query, but
{{models_count.count}} does not return count number.indatext.com
ParticipantI tried
{% set models_count = mb.wp_count_terms('collection', array('hide_empty' => true)) %}
and echo {{models_count}} but it did not workedMay 23, 2022 at 12:09 AM in reply to: ✅How to get Image Advanced URL in the terms loop in MBView? #36129indatext.com
ParticipantI finally got it as:
{% for collection in collections %} {% set image_upload = mb.get_term_meta( collection.term_id, 'image_advanced_collection', true ) %} {% set image_upload_link = mb.wp_get_attachment_image_src( image_upload, large) %} <div class="background-collection" style="background:url({{ image_upload_link [0] }})">using example from Jessica.
May 11, 2022 at 6:35 PM in reply to: How to make different custom meta for different custom taxonomies? #35983indatext.com
ParticipantYes, I found how to do it in UI. Its OK.
I just do not see in docs how to do this programmatically, i.e. 2 different taxonomies, 2 different sets of meta fields - how prefix register filter will look like for rwmb_meta_boxes?indatext.com
ParticipantI shall try to implement it, since Metabox allows a lot of customisation on the back end and I figured out how to load amending styles. But yes, from a layperson perspective the expected default behaviour is to have checkbox tree blooming, not collapsed. Since it is a default behaviour in side panel WP Metabox.
indatext.com
ParticipantAha! Thank you. Is there a way to display hierarchical taxonomy not collapsed by default, or at least somehow visually indicate terms with children?
February 21, 2022 at 10:15 PM in reply to: ✅Is it possible to customize entry titles for clonable sub-group? #34039indatext.com
ParticipantThank you. I actually figured out how to make it work from UI. since its a key-value pair, it can be entered in sub-group custom values UI in Advanced settings, and it worked. Wonderful.
-
AuthorPosts