akwinter84
Forum Replies Created
-
Forum: Plugins
In reply to: [All-in-One Video Gallery] Video gallery shrinks some thumbsThat solved the issue – thank you!
Forum: Plugins
In reply to: [GamiPress - BadgeOS Importer] Import User Earnings freezesIt worked! Thanks so much!
Forum: Plugins
In reply to: [GamiPress - BadgeOS Importer] Import User Earnings freezesHi, 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 ??
Anything else you need from me to resolve this?
Forum: Plugins
In reply to: [GamiPress - BadgeOS Importer] Import User Earnings freezesHere is a link to the error logs. Thanks for the help!
Forum: Plugins
In reply to: [BadgeOS] Learndash quiz freezes due to BadgeOS LearnDash Add-OnThank you!
Forum: Plugins
In reply to: [BadgeOS] Conflict with WooCommerceHad the same conflict with WooCommerce and removing the above CSS line fixed it – thank you!
Forum: Plugins
In reply to: [Store Locator Plus?] Location Search no longer worksI posted in the WPSLP forums under the topic “Map cannot Locate address” with answers to your questions. Thanks!
All looks good now. Thanks for this plugin and fixing it!
Forum: Hacks
In reply to: Adding Categories to Custom Post TypeGot 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!
Forum: Hacks
In reply to: Adding Categories to Custom Post TypeIt 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.
Forum: Hacks
In reply to: Adding Categories to Custom Post TypeForum: Hacks
In reply to: Adding Categories to Custom Post TypeThanks 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! ??