dgissen
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Posts in Three Columns — error in queryWorks perfectly! Thank you very much.
Forum: Fixing WordPress
In reply to: Posts in Three Columns — error in queryThank you and I’ll try this in the AM. I really appreciate it.
Forum: Fixing WordPress
In reply to: Posts in Three Columns — error in queryThank you for this information. My php knowledge is fairly limited; how do I assign the query in the second loop to the global query? Or, how do I write the code for your second suggestion? Very appreciative of your time on this…
Forum: Fixing WordPress
In reply to: Custom taxonomies: inserting the word “and”Thank you; all resolved.
Forum: Fixing WordPress
In reply to: Custom taxonomies: inserting the word “and”I noticed one grammatical issue with Michael’s solution. When one has two terms, it places a comma after the first term. Michael, is there an easy solution for this?
Forum: Fixing WordPress
In reply to: Custom taxonomies: inserting the word “and”As always, @alchymyth’s solution works very well; I am trying to work with Kharis’ as well, and will repost when I get it working. Thank you again!
Forum: Fixing WordPress
In reply to: Custom Taxonomy "most common" not appearingThe answer is that one cannot use spaces in custom taxonomy names. All better now.
Forum: Fixing WordPress
In reply to: Custom post type listed under custom post typeNow it lists all wines under the producer!
Forum: Fixing WordPress
In reply to: Custom post type listed under custom post typeI realize that i should probably share the custom post type/taxonomy codes as well:
<?php // Add new post type for Producer can replace everything that says "producer" for other post types. add_action('init', 'producer_init'); function producer_init() { $producer_labels = array( 'name' => _x('Producer', 'post type general name'), 'singular_name' => _x('Producer', 'post type singular name'), 'all_items' => __('All Producers'), 'add_new' => _x('Add new producer', 'producers'), 'add_new_item' => __('Add new producer'), 'edit_item' => __('Edit producer'), 'new_item' => __('New producer'), 'view_item' => __('View producer'), 'search_items' => __('Search in producers'), 'not_found' => __('No producers found'), 'not_found_in_trash' => __('No producers found in trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $producer_labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => 2, 'supports' => array('title','editor','author','thumbnail','excerpt','comments','custom-fields'), 'has_archive' => 'producers' ); register_post_type('producers',$args); } // Add custom taxonomies add_action( 'init', 'producer_create_taxonomies', 0 ); function producer_create_taxonomies() { // Country $country_labels = array( 'name' => _x( 'Country', 'taxonomy general name' ), 'singular_name' => _x( 'Country', 'taxonomy singular name' ), 'search_items' => __( 'Search in countries' ), 'popular_items' => __( 'Popular countries' ), 'all_items' => __( 'All countries' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit country' ), 'update_item' => __( 'Update country' ), 'add_new_item' => __( 'Add new country' ), 'new_item_name' => __( 'New country name' ), 'separate_items_with_commas' => __( 'Separate countries with commas' ), 'add_or_remove_items' => __( 'Add or remove countries' ), 'choose_from_most_used' => __( 'Choose from the most common countries' ), 'menu_name' => __( 'Country' ), ); register_taxonomy('country',array('producers'),array( 'hierarchical' => false, 'labels' => $country_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'country' ) )); // Region $region_labels = array( 'name' => _x( 'Region', 'taxonomy general name' ), 'singular_name' => _x( 'Region', 'taxonomy singular name' ), 'search_items' => __( 'Search in regions' ), 'popular_items' => __( 'Popular regions' ), 'all_items' => __( 'All regions' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit region' ), 'update_item' => __( 'Update region' ), 'add_new_item' => __( 'Add new region' ), 'new_item_name' => __( 'New region name' ), 'separate_items_with_commas' => __( 'Separate regions with commas' ), 'add_or_remove_items' => __( 'Add or remove regions' ), 'choose_from_most_used' => __( 'Choose from the most common regions' ), 'menu_name' => __( 'Region' ), ); register_taxonomy('region',array('producers'),array( 'hierarchical' => false, 'labels' => $region_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'region' ) )); // Appellation $appellation_labels = array( 'name' => _x( 'Appellation', 'taxonomy general name' ), 'singular_name' => _x( 'Appellation', 'taxonomy singular name' ), 'search_items' => __( 'Search in appellations' ), 'popular_items' => __( 'Popular appellations' ), 'all_items' => __( 'All appellations' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit appellation' ), 'update_item' => __( 'Update appellation' ), 'add_new_item' => __( 'Add new appellation' ), 'new_item_name' => __( 'New appellation name' ), 'separate_items_with_commas' => __( 'Separate appellations with commas' ), 'add_or_remove_items' => __( 'Add or remove appellations' ), 'choose_from_most_used' => __( 'Choose from the most common appellations' ), 'menu_name' => __( 'Appellation' ), ); register_taxonomy('appellation',array('producers'),array( 'hierarchical' => false, 'labels' => $appellation_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'appellation' ) )); // Selection $selection_labels = array( 'name' => _x( 'Selection', 'taxonomy general name' ), 'singular_name' => _x( 'Selection', 'taxonomy singular name' ), 'search_items' => __( 'Search in selections' ), 'popular_items' => __( 'Popular selections' ), 'all_items' => __( 'All selections' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit selection' ), 'update_item' => __( 'Update selection' ), 'add_new_item' => __( 'Add new selection' ), 'new_item_name' => __( 'New selection name' ), 'separate_items_with_commas' => __( 'Separate selections with commas' ), 'add_or_remove_items' => __( 'Add or remove selections' ), 'choose_from_most_used' => __( 'Choose from the most common selections' ), 'menu_name' => __( 'Selection' ), ); register_taxonomy('selection',array('producers'),array( 'hierarchical' => false, 'labels' => $selection_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'selection' ) )); // Grape $grape_labels = array( 'name' => _x( 'Grape', 'taxonomy general name' ), 'singular_name' => _x( 'Grape', 'taxonomy singular name' ), 'search_items' => __( 'Search in grapes' ), 'popular_items' => __( 'Popular grapes' ), 'all_items' => __( 'All grapes' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit grape' ), 'update_item' => __( 'Update grape' ), 'add_new_item' => __( 'Add new grape' ), 'new_item_name' => __( 'New grape name' ), 'separate_items_with_commas' => __( 'Separate grapes with commas' ), 'add_or_remove_items' => __( 'Add or remove grapes' ), 'choose_from_most_used' => __( 'Choose from the most common grapes' ), 'menu_name' => __( 'Grapes' ), ); register_taxonomy('grape',array('producers'),array( 'hierarchical' => false, 'labels' => $grape_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'grape' ) )); // vintage $vintage_labels = array( 'name' => _x( 'Vintage', 'taxonomy general name' ), 'singular_name' => _x( 'Vintage', 'taxonomy singular name' ), 'search_items' => __( 'Search in vintages' ), 'popular_items' => __( 'Popular vintages' ), 'all_items' => __( 'All vintages' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit vintage' ), 'update_item' => __( 'Update vintage' ), 'add_new_item' => __( 'Add new vintage' ), 'new_item_name' => __( 'New vintage year' ), 'separate_items_with_commas' => __( 'Separate vintages with commas' ), 'add_or_remove_items' => __( 'Add or remove vintages' ), 'choose_from_most_used' => __( 'Choose from the most common vintages' ), 'menu_name' => __( 'Vintages' ), ); register_taxonomy('vintage',array('producers'),array( 'hierarchical' => false, 'labels' => $vintage_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'vintage' ) )); // Cost $cost_labels = array( 'name' => _x( 'Cost Range', 'taxonomy general name' ), 'singular_name' => _x( 'Cost Range', 'taxonomy singular name' ), 'search_items' => __( 'Search in cost range' ), 'popular_items' => __( 'Popular cost range' ), 'all_items' => __( 'All cost ranges' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit cost range' ), 'update_item' => __( 'Update cost range' ), 'add_new_item' => __( 'Add new cost range' ), 'new_item_name' => __( 'New cost range' ), 'separate_items_with_commas' => __( 'Separate cost ranges with commas' ), 'add_or_remove_items' => __( 'Add or remove cost range' ), 'choose_from_most_used' => __( 'Choose from the most used cost ranges' ), 'menu_name' => __( 'Cost Range' ), ); register_taxonomy('cost',array('producers'),array( 'hierarchical' => false, 'labels' => $cost_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'cost' ) )); } // Add new post type for wine can replace everything that says "producer" for other post types. add_action('init', 'wine_init'); function wine_init() { $wine_labels = array( 'name' => _x('Wine', 'post type general name'), 'singular_name' => _x('Wine', 'post type singular name'), 'all_items' => __('All Wines'), 'add_new' => _x('Add new wine', 'wines'), 'add_new_item' => __('Add new wine'), 'edit_item' => __('Edit wine'), 'new_item' => __('New wine'), 'view_item' => __('View wine'), 'search_items' => __('Search in wines'), 'not_found' => __('No wines found'), 'not_found_in_trash' => __('No wines found in trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $wine_labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => 2, 'supports' => array('title','editor','author','thumbnail','excerpt','comments','custom-fields'), 'has_archive' => 'wines' ); register_post_type('wines',$args); } // Add custom taxonomies for "wine" post type add_action( 'init', 'wine_create_taxonomies', 0 ); function wine_create_taxonomies() { // maker $maker_labels = array( 'name' => _x( 'maker', 'taxonomy general name' ), 'singular_name' => _x( 'maker', 'taxonomy singular name' ), 'search_items' => __( 'Search in makers' ), 'popular_items' => __( 'Popular makers' ), 'all_items' => __( 'All makers' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit maker' ), 'update_item' => __( 'Update maker' ), 'add_new_item' => __( 'Add new maker' ), 'new_item_name' => __( 'New maker name' ), 'separate_items_with_commas' => __( 'Separate makers with commas' ), 'add_or_remove_items' => __( 'Add or remove makers' ), 'choose_from_most_used' => __( 'Choose from the most common makers' ), 'menu_name' => __( 'Maker' ), ); register_taxonomy('Maker',array('wines'),array( 'hierarchical' => true, 'labels' => $maker_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'maker' ) )); // SKU $SKU_labels = array( 'name' => _x( 'SKU', 'taxonomy general name' ), 'singular_name' => _x( 'SKU', 'taxonomy singular name' ), 'search_items' => __( 'Search in SKUs' ), 'popular_items' => __( 'Popular SKUs' ), 'all_items' => __( 'All SKUs' ), 'most_used_items' => null, 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit SKU' ), 'update_item' => __( 'Update SKU' ), 'add_new_item' => __( 'Add new SKU' ), 'new_item_name' => __( 'New SKU name' ), 'separate_items_with_commas' => __( 'Separate SKUs with commas' ), 'add_or_remove_items' => __( 'Add or remove SKUs' ), 'choose_from_most_used' => __( 'Choose from the most common SKUs' ), 'menu_name' => __( 'SKU' ), ); register_taxonomy('SKU',array('wines'),array( 'hierarchical' => false, 'labels' => $SKU_labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, 'rewrite' => array('slug' => 'SKU' ) )); } ?>
Forum: Fixing WordPress
In reply to: Style sheet not changing stylesThank you both so much; working perfectly now. Btw, I never would have caught that!
Forum: Hacks
In reply to: Jquery Masonry bricks not appearing/loadingThanks bcworkz, but I don’t think that solves the latter problem. The script is loading but the masonry block does not happen for #masonry-index .photo-entry
Forum: Fixing WordPress
In reply to: Giving echo'd content a class?Thank you; I was missing the single-quotes and periods “.”
!Forum: Fixing WordPress
In reply to: Trouble styling post title differently in archive versus single viewTHANK YOU!!! Can’t believe I missed that!
Forum: Plugins
In reply to: [Slideshow] RIght justified pagination circlesIf you could post the answer to this, I would appreciate it. I can’t seem to figure it out and want the pagination circles to the right as well. Thanks!
Forum: Fixing WordPress
In reply to: Body BorderSonny, I was making child themes back when you were in diapers.
But in all seriousness, yup, child theme is set-up and ready to go.
this is a basic example of a body border
I don’t have a clear strategy for doing this in twentytwelve.