dgissen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: query_posts not working – help!Every time I ask the wordpress forum for help, I figure out my problem:
Works well:
<?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php query_posts($query_string . '&orderby=title&order=ASC'); ?> <?php while ( have_posts() ) : the_post(); ?> <?php if ( 'winez' != get_post_type() ) : ?> <?php get_template_part( 'content-archive' ); ?> <?php endif; ?> <?php endwhile; ?>
Forum: Fixing WordPress
In reply to: custom taxonomy query – again…Ok; figured that out too (see above and code below) to output archive for taxonomy ‘region’ and post type ‘producers’. Just replace those terms and you’re good to go.
Any idea how I can have a link to the taxonomy archive for the
echo $term-> name
?<?php $terms = get_terms('region'); $count = count($terms); if ( $count > 0 ) { foreach ( $terms as $term ) { $args=array( 'region' => $term->name, 'post_type' => 'producers', 'post_status' => 'publish', 'orderby'=>'title', 'order'=>'ASC', 'posts_per_page' => -1, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { echo $term->name; while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php get_template_part( 'content-archive' ); ?> <?php endwhile; } wp_reset_query(); // Restore global post data stomped by the_post(). } } ?>
Forum: Fixing WordPress
In reply to: taxonomy archive – displaying multiple taxonomiesI found the solution here:
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] displaying cpt-onomythanks! “your logic needs a little tweaking” – story of my life.
Forum: Fixing WordPress
In reply to: sidebar will not display on the side of page – 2012brilliant! thanks.
Forum: Fixing WordPress
In reply to: assigning class to custom taxonomy for css editingfigured it out:
<div>Wines: <?php echo get_the_term_list( $post->ID, 'wines'); ?></div>
Forum: Fixing WordPress
In reply to: assigning class to custom taxonomy for css editingjust removing them doesn’t work. Any ideas?
Forum: Fixing WordPress
In reply to: assigning class to custom taxonomy for css editingyes; and how do I get rid of the commas? remove them from the php code?
Thanks!
Forum: Fixing WordPress
In reply to: assigning class to custom taxonomy for css editingGood point. Yes, that works, but when I try “display: block” it doesn’t. not sure what’s going on.
I want them to display one wine to a line.
Forum: Fixing WordPress
In reply to: assigning class to custom taxonomy for css editing“wines p” didn’t work.
Here’s a link
the other custom taxonomies are styled with:
.entry-meta-customNot sure why .wines is not working.
Forum: Fixing WordPress
In reply to: style a taxonomy category differently with classes?Here are links:
This is an entry in taxonomy “wines”:
https://amyatwoodtestsite.com/wines/tessier-cheverny-blanc-1112/
I want to be able to style this differently than the other taxonomies:
eg. Here is how taxonomy region looks:
https://amyatwoodtestsite.com/region/loire-valley/Forum: Fixing WordPress
In reply to: insert image with taxonomy indexresolved it. thanks.
Forum: Fixing WordPress
In reply to: insert image with taxonomy indexActually, I just discovered a super simple way to do what I want:
Put this in the child theme’s functions.php file, then I can just use html to make images for all the different regions:
// allow html in category and taxonomy descriptions remove_filter( 'pre_term_description', 'wp_filter_kses' ); remove_filter( 'pre_link_description', 'wp_filter_kses' ); remove_filter( 'pre_link_notes', 'wp_filter_kses' ); remove_filter( 'term_description', 'wp_kses_data' );
Thanks again!
Forum: Fixing WordPress
In reply to: insert image with taxonomy indexThanks; within which file for the twentytwelve theme would you suggest locating this?
Forum: Fixing WordPress
In reply to: Widget not displaying – big mysterystill no widgets. very strange.