Support Forum » User Profile

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • indatext.comindatext.com
    Participant

    +1 (+500 actually). This feature alone will save from tons of quirks in customizing WooC UX.

    indatext.comindatext.com
    Participant

    +1

    in reply to: Certain MB Blocks render only in one language #40085
    indatext.comindatext.com
    Participant

    File does not exist

    in reply to: Image Advanced not getting IDs from cloneable field #38918
    indatext.comindatext.com
    Participant

    Yes. 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?

    in reply to: Change background of product category #38275
    indatext.comindatext.com
    Participant

    Did you resolved this? I have similar issue.

    in reply to: How to echo terms count in MBView? #37479
    indatext.comindatext.com
    Participant

    Solved. 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.

    in reply to: How to echo terms count in MBView? #37472
    indatext.comindatext.com
    Participant

    This 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?

    in reply to: How to echo terms count in MBView? #36142
    indatext.comindatext.com
    Participant

    Thank you so much, Long, MBViews is a godlike tool.

    in reply to: How to echo terms count in MBView? #36131
    indatext.comindatext.com
    Participant

    I 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.

    in reply to: How to echo terms count in MBView? #36130
    indatext.comindatext.com
    Participant

    I tried {% set models_count = mb.wp_count_terms('collection', array('hide_empty' => true)) %}
    and echo {{models_count}} but it did not worked

    indatext.comindatext.com
    Participant

    I 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.

    indatext.comindatext.com
    Participant

    Yes, 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?

    in reply to: Checkbox Tree not displayed in Sub-group fields #34053
    indatext.comindatext.com
    Participant

    I 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.

    in reply to: Checkbox Tree not displayed in Sub-group fields #34040
    indatext.comindatext.com
    Participant

    Aha! Thank you. Is there a way to display hierarchical taxonomy not collapsed by default, or at least somehow visually indicate terms with children?

    indatext.comindatext.com
    Participant

    Thank 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.

Viewing 15 posts - 1 through 15 (of 20 total)