Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fyrins

    (@fyrins)

    Here is my single template

    <!-- wp:template-part {"slug":"header","theme":"aqualarm","tagName":"div","bsawebNoWrapper":true} /-->

    <!-- wp:group {"tagName":"main","metadata":{"name":"Main"},"style":{"spacing":{"blockGap":"0px","margin":{"top":"0"}}},"bsawebA11y":{"ariaRole":"main"}} -->
    <main class="wp-block-group" style="margin-top:0"><!-- wp:group {"tagName":"article","metadata":{"name":"Article"},"style":{"spacing":{"blockGap":"0px"}},"layout":{"type":"default"}} -->
    <article class="wp-block-group"><!-- wp:template-part {"slug":"single-aqualarm-product-header","theme":"aqualarm","tagName":"section","bsawebNoWrapper":true} /-->

    <!-- wp:template-part {"slug":"aqualarm-products-single-before-content","theme":"aqualarm","area":"aqualarm-single","bsawebNoWrapper":true} /-->

    <!-- wp:post-content {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"constrained"}} /-->

    <!-- wp:template-part {"slug":"aqualarm-products-single-after-content","theme":"aqualarm","area":"aqualarm-single","bsawebNoWrapper":true} /--></article>
    <!-- /wp:group --></main>
    <!-- /wp:group -->

    <!-- wp:template-part {"slug":"footer","theme":"aqualarm","tagName":"div","bsawebNoWrapper":true} /-->

    The AQL is call within aqualarm-products-single-after-content template-part.

    And here is the what is inside the template-part :

    <!-- wp:group {"tagName":"section","metadata":{"name":"Section"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|9-xl","bottom":"var:preset|spacing|9-xl"}}},"backgroundColor":"base","layout":{"type":"default"}} -->
    <section class="wp-block-group alignfull has-base-background-color has-background" style="padding-top:var(--wp--preset--spacing--9-xl);padding-bottom:var(--wp--preset--spacing--9-xl)"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|7-xl"}},"layout":{"type":"constrained"}} -->
    <div class="wp-block-group"><!-- wp:heading {"textAlign":"center"} -->
    <h2 class="wp-block-heading has-text-align-center">Les produits qui pourraient vous plaire</h2>
    <!-- /wp:heading -->

    <!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"aqualarm-products","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[],"format":[],"disable_pagination":true,"include_posts":[],"meta_query":[],"exclude_current":"aqualarm//aqualarm-products-single-after-content"},"namespace":"advanced-query-loop","metadata":{"categories":["compositions-aqualarm","posts"],"patternName":"core/block/333","name":"Grille Produits"}} -->
    <div class="wp-block-query"><!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|4-xl"}},"layout":{"type":"grid","columnCount":3}} -->
    <!-- wp:template-part {"slug":"aqualarm-products-card","theme":"aqualarm","area":"aqualarm-card"} /-->
    <!-- /wp:post-template -->

    <!-- wp:query-no-results -->
    <!-- wp:paragraph {"placeholder":"Ajouter un texte ou des blocs qui s’afficheront lorsqu’une requête ne renverra aucun résultat."} -->
    <p></p>
    <!-- /wp:paragraph -->
    <!-- /wp:query-no-results --></div>
    <!-- /wp:query --></div>
    <!-- /wp:group --></section>
    <!-- /wp:group -->

    If I put this section directly in template the attribute "exclude_current" change :

    <!-- wp:group {"tagName":"section","metadata":{"name":"Section"},"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|9-xl","bottom":"var:preset|spacing|9-xl"}}},"backgroundColor":"base","layout":{"type":"default"}} -->
    <section class="wp-block-group alignfull has-base-background-color has-background" style="padding-top:var(--wp--preset--spacing--9-xl);padding-bottom:var(--wp--preset--spacing--9-xl)"><!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|7-xl"}},"layout":{"type":"constrained"}} -->
    <div class="wp-block-group"><!-- wp:heading {"textAlign":"center"} -->
    <h2 class="wp-block-heading has-text-align-center">Les produits qui pourraient vous plaire</h2>
    <!-- /wp:heading -->

    <!-- wp:query {"queryId":1,"query":{"perPage":3,"pages":0,"offset":0,"postType":"aqualarm-products","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[],"format":[],"disable_pagination":true,"include_posts":[],"meta_query":[],"exclude_current":"aqualarm//single-aqualarm-products"},"namespace":"advanced-query-loop","metadata":{"categories":["compositions-aqualarm","posts"],"patternName":"core/block/333","name":"Grille Produits"}} -->
    <div class="wp-block-query"><!-- wp:post-template {"style":{"spacing":{"blockGap":"var:preset|spacing|4-xl"}},"layout":{"type":"grid","columnCount":3}} -->
    <!-- wp:template-part {"slug":"aqualarm-products-card","theme":"aqualarm","tagName":"article","area":"aqualarm-card","bsawebNoWrapper":true} /-->
    <!-- /wp:post-template -->

    <!-- wp:query-no-results -->
    <!-- wp:paragraph {"placeholder":"Ajouter un texte ou des blocs qui s’afficheront lorsqu’une requête ne renverra aucun résultat."} -->
    <p></p>
    <!-- /wp:paragraph -->
    <!-- /wp:query-no-results --></div>
    <!-- /wp:query --></div>
    <!-- /wp:group --></section>
    <!-- /wp:group -->

    Same problem here. I’ve CPT “Products” that display correctly on admin and in Gutenberg query loop. But it does not appear in your plugins settings.

    My CPT is declare with these args :

    ‘public’ => true,
    ‘show_in_rest’ => true,
    ‘supports’ => [‘title’, ‘editor’, ‘author’, ‘thumbnail’, ‘excerpt’, ‘revisions’, ‘custom-fields’, ‘page-attributes’],
    ‘menu_icon’ => ‘dashicons-database’,
    ‘menu_position’ => 20,
    ‘has_archive’ => true,
    ‘rewrite’ => [‘slug’ => __(‘product’, ‘project-core’)]

    Thread Starter fyrins

    (@fyrins)

    Thanks for your answer. I disabled Litespeed cache on the O2S Cpanel and add this line to .htaccess file.

    <IfModule mod_expires.c>
    ExpiresByType application/pdf "access plus 0 seconds"
    </IfModule>

    It seems to works perfectly now !

    Great support, thank you !

    Same error here. I can’t edit an existing form :

    Uncaught TypeError: Cannot set properties of undefined (setting 'insert')
    at cf7-blocks-integrate.js?ver=080408f486f493f8b1e7:1:513

    Hello !
    Same issue, but I read on WPML’s FAQ that the icl_register_string and icl_t hooks are no longer supported. But the string translation of cookie notice is base on these two hooks :

    if ( function_exists( 'icl_t' ) ) {
    	$this->options['general']['message_text'] = icl_t( 'Cookie Notice', 'Message in the notice', $this->options['general']['message_text'] );
    	$this->options['general']['accept_text'] = icl_t( 'Cookie Notice', 'Button text', $this->options['general']['accept_text'] );
    	$this->options['general']['refuse_text'] = icl_t( 'Cookie Notice', 'Refuse button text', $this->options['general']['refuse_text'] );
    	$this->options['general']['see_more_opt']['text'] = icl_t( 'Cookie Notice', 'Read more text', $this->options['general']['see_more_opt']['text'] );
    	$this->options['general']['see_more_opt']['link'] = icl_t( 'Cookie Notice', 'Custom link', $this->options['general']['see_more_opt']['link'] );
    }

    Some modifications are required to properly use it. BTW I use JS script to replace string in my website pending an update.

Viewing 5 replies - 1 through 5 (of 5 total)