AToyansk
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Group posts by Custom fieldI tried using the query_args filter, but nothing was displayed at all:
function layout_query_args( $args ) { $args = array( 'post_type' => 'Institutions', 'post_status' => 'publish', 'posts_per_page' => -1, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'country_bd', 'value' => 'my-val', 'compare' => '=' ), array( 'key' => 'country_bd', 'value' => '', 'compare' => '!=' ) ) ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) : ?> <ul> <h2> <?php $key; ?> </h2> <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <li id="post-<?php the_ID(); ?>"> </li> <?php endwhile; wp_reset_postdata(); ?> </ul> <?php endif; } add_filter( 'custom-layouts/layout/query_args', 'layout_query_args', 10 );
Yes, I tried. And the chart worked perfect. I’ve tried also change the serie to Data (default) role, and again, the chart worked perfect. For that, I suppose there’s a conflict between Avada tab and Visualizer using Annotation role in one serie.
The problem is how the chart is displayed in second tab. This happens only if I use the “Annotation” special role. Did you check the links to see the difference between the two charts? The second one shows the “squeezed” chart, with a style error in the annotations (the text should be green, not white), vAxis is not displayed, and hAxis presents the overlapping data. Both charts have the same set up (actually, they are clones).
If I disable the “Annotation” special role (choosing “Data” type, for example), the second tab displays the chart perfectly. It seems that has a kind of conflict between Avada tabs and Annotation role in Visualizer…
- This reply was modified 4 years ago by AToyansk. Reason: text editing