Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter akwinter84

    (@akwinter84)

    That solved the issue – thank you!

    Thread Starter akwinter84

    (@akwinter84)

    It worked! Thanks so much!

    Thread Starter akwinter84

    (@akwinter84)

    Hi, I updated both GamiPress to version 2.0.8 and GamiPress – BadgeOS importer to version 1.1.4. Unfortunately, it still never moves forward to finish migrating achievement earnings ??

    ? See screenshot ?

    Anything else you need from me to resolve this?

    Thread Starter akwinter84

    (@akwinter84)

    Here is a link to the error logs. Thanks for the help!

    Thread Starter akwinter84

    (@akwinter84)

    Thank you!

    Had the same conflict with WooCommerce and removing the above CSS line fixed it – thank you!

    Thread Starter akwinter84

    (@akwinter84)

    I posted in the WPSLP forums under the topic “Map cannot Locate address” with answers to your questions. Thanks!

    Thread Starter akwinter84

    (@akwinter84)

    All looks good now. Thanks for this plugin and fixing it!

    Thread Starter akwinter84

    (@akwinter84)

    Got it working!

    I just created another function just like List Events for the Class terms but changed the ‘$args’ array declaration.

    I don’t know if this is anything like what you suggested as I couldn’t comprehend it but it directed me to the following that worked for me:

    // Create List Events
    
    if ( ! function_exists( 'lindeza_get_list_events' ) ) :
    	function lindeza_get_list_events($n) {
    
    		global $wp_query;
    
    		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    		$args = array(
    			'post_type' => 'events',
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'posts_per_page' => $n,
    			'tax_query' => array(
    			   array(
          				'taxonomy' => 'class',
          				'operator' => 'EXISTS',
    			   ),
    			),
    		);
    
    		$wp_query->query( $args );
    
    		return new WP_Query( $args );
    	}
    endif;
    
    /**
     * Below used in taxonomy-class.php
    */
    
    // Create List Classes
    
    if ( ! function_exists( 'lindeza_get_list_class' ) ) :
    	function lindeza_get_list_class($n) {
    
    		global $wp_query;
    
    		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    		$args = array(
    			'post_type' => 'events',
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'posts_per_page' => $n,
    			'tax_query' => array(
    			   array(
    				  'taxonomy' => 'class',
    				  'field'    => 'slug',
    				  'terms'    => $wp_query->get('class'),
    			   ),
    			),
    		);
    
    		$wp_query->query( $args );
    
    		return new WP_Query( $args );
    	}
    endif;

    Thanks for your help and direction, bcworkz!

    Thread Starter akwinter84

    (@akwinter84)

    It takes us back to where we started when it displays ALL classes. :-/

    Below are the $args we tried. I just want to make sure I put them in correctly.

    // Create List Events
    
    if ( ! function_exists( 'lindeza_get_list_events' ) ) :
    	function lindeza_get_list_events($n) {
    
    		global $wp_query;
    
    		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    		$args = array(
    			'post_type' => 'events',
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'posts_per_page' => $n,
    			'tax_query' => array(
    			   array(
    				  'taxonomy' => 'class',
    				  'field'    => 'slug',
    				  'terms'    => $wp_query->get('class'),
    			   ),
    			),
    		);
    
    		$wp_query->query( $args );
    
    		return new WP_Query( $args );
    	}
    endif;

    ^ Displays the class terms on their own, but page for ALL classes disappear.

    // Create List Events
    
    if ( ! function_exists( 'lindeza_get_list_events' ) ) :
    	function lindeza_get_list_events($n) {
    
    		global $wp_query;
    
    		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    		$args = array(
    			'post_type' => 'events',
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'posts_per_page' => $n,
    			'tax_query' => array(
    			   array(
    				  'taxonomy' => 'class',
    				  'operator' => 'EXISTS',
    			   ),
    			),
    		);
    
    		$wp_query->query( $args );
    
    		return new WP_Query( $args );
    	}
    endif;

    ^ Displays ALL classes, even in the class terms pages.

    Thread Starter akwinter84

    (@akwinter84)

    Almost there!

    I gave this a shot. Classes page shows up empty; however, it does the job of showing posts only from each class category after I click on a class term in the right sidebar, but how can I have it still show ALL classes on the Classes Page?

    So appreciate the help!

    Thread Starter akwinter84

    (@akwinter84)

    Thanks for your response! I’m investigating how new WP-Query( $args ); works right now as I am not familiar with it. Meanwhile, this was what was put in functions.php by the theme creator to create the List Events:

    // Create List Events
    
    if ( ! function_exists( 'lindeza_get_list_events' ) ) :
    	function lindeza_get_list_events($n) {
    
    		global $wp_query;
    
    		$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    		$args = array(
    			'post_type' => 'events',
    			'orderby' => 'menu_order',
    			'order' => 'ASC',
    			'posts_per_page' => $n
    		);
    
    		$wp_query->query( $args );
    
    		return new WP_Query( $args );
    	}
    endif;

    If I use:
    <?php while (have_posts()) : the_post(); ?> in taxonomy-class.php it displays nothing. If I use

    <?php
    	$lindeza_get_list_events = lindeza_get_list_events(-1);
    	while ( $lindeza_get_list_events->have_posts() ) {
    	$lindeza_get_list_events->the_post();
    ?>

    It displays all the events… I need the happy medium of it displaying only the selected taxonomy term! ??

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