Title: danzigism's Replies | WordPress.org

---

# danzigism

  [  ](https://wordpress.org/support/users/danzigism/)

 *   [Profile](https://wordpress.org/support/users/danzigism/)
 *   [Topics Started](https://wordpress.org/support/users/danzigism/topics/)
 *   [Replies Created](https://wordpress.org/support/users/danzigism/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/danzigism/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/danzigism/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/danzigism/engagements/)
 *   [Favorites](https://wordpress.org/support/users/danzigism/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/danzigism/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/danzigism/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] Table Rate Price/Quantity Discount Metadata Name Change](https://wordpress.org/support/topic/table-rate-pricequantity-discount-metadata-name-change/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/table-rate-pricequantity-discount-metadata-name-change/#post-5262291)
 * I went ahead and removed [state] from the conditional statement and it definitely
   works now on all products. After doing so, I was noticing that my particular 
   function was still returning that table_rate_price is always TRUE regardless 
   if there was a price associated with multiple quantities.
 * So I simply added [‘table_rate_price’][‘table_price’] and now my code shows up
   on every product page that has multiple quantity discounts!
 * Sweet. Thanks for your help in diagnosing the problem.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] Table Rate Price/Quantity Discount Metadata Name Change](https://wordpress.org/support/topic/table-rate-pricequantity-discount-metadata-name-change/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/table-rate-pricequantity-discount-metadata-name-change/#post-5262133)
 * Thanks for the help Justin. I wonder why this function no longer works?
 * It works for all of my old products prior to the update.
 * If I create a new product and specify a quantity discount, this function no longer
   displays the price.
 * If you can think of a better method I can use to show the quantity discounts 
   on a single product page, I would appreciate your guidance.
 * Thank you for the quick reply!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCommerce] Categories out of order](https://wordpress.org/support/topic/categories-out-of-order/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/categories-out-of-order/#post-4251697)
 * Hey there gmet, thanks for the information. I’ve been using WordPress for 5 years
   and had no idea you could just drag around the dag-on categories haha. For now
   this has fixed my issue, however I do have a crap load of categories and can 
   only hope that these change automatically and dynamically for me in the future.
   I think WPEC relies on the order number rather than the true alphabetized list.
 * Either way I appreciate the quick temporary fix for the time being but hope it
   gets fixed permanently in the future.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[eCommerce Feeder] Broken with 3.5.1](https://wordpress.org/support/topic/broken-with-351/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/broken-with-351/#post-3561235)
 * I’m also experiencing this problem. I desperately need to use this plugin to 
   import custom meta data for my store’s customers. Nothing else is capable of 
   importing this kind of data. Everyday there’s some new issue that I need to fix
   with WP E-Commerce. Wish I would have chosen WooCommerce months ago but I’m stuck
   with thousands of dollars worth of add-ons and no support.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Update core not working with PHP 5.4 Apache and FastCGI](https://wordpress.org/support/topic/update-core-not-working-with-php-54-apache-and-fastcgi/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/update-core-not-working-with-php-54-apache-and-fastcgi/#post-3310379)
 * Looks like it was an issue with one of the plugins I was using. Argh. After I
   deactivated them all, I was immediately taken to the screen where “Database update
   required” and it went through the DB upgrade without any problems.
 * The plugin in question was “BP-Album” for BuddyPress. Once I upgraded to 3.5,
   there was a plugin update available as well.
 * Everything seems to be fixed as of now.
 * Thanks 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Event Calendar] [Plugin: Ajax Event Calendar] Not loading events when accessing via WWW subdomain](https://wordpress.org/support/topic/plugin-ajax-event-calendar-not-loading-events-when-accessing-via-www-subdomain/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-ajax-event-calendar-not-loading-events-when-accessing-via-www-subdomain/#post-2742761)
 * Fixed my issue. I had to modify my website’s .htaccess file to redirect the requests
   sent to domain.com to go to [http://www.domain.com](http://www.domain.com). It
   is essential to not have duplicate sites. To redirect domain.com to [http://WWW.domain.com](http://WWW.domain.com),
   add the following to your .htaccess file:
 *     ```
       RewriteCond %{HTTP_HOST} !^(www\.domain\.com)?$
       RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Adminimize] Adminimize update crashed my WP install](https://wordpress.org/support/topic/adminimize-update-crashed-my-wp-install/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/adminimize-update-crashed-my-wp-install/#post-2377073)
 * FIXED the problem by downloading [http://downloads.wordpress.org/plugin/adminimize.zip](http://downloads.wordpress.org/plugin/adminimize.zip)
 * Replace the whole wp-content/plugins/adminimize folder with the contents of this
   ZIP and the problem is fixed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Adminimize] Adminimize update crashed my WP install](https://wordpress.org/support/topic/adminimize-update-crashed-my-wp-install/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/adminimize-update-crashed-my-wp-install/#post-2377071)
 * I just updated the Adminimize plugin this morning as well, and it is also giving
   me the same exact error. From what I’m reading, this problem has happened in 
   the past in regards to a ABSPATH not being defined properly although I am unsure.
   Hope to get a fix soon.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Allow File Download after Form Submission](https://wordpress.org/support/topic/plugin-contact-form-7-allow-file-download-after-form-submission/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-allow-file-download-after-form-submission/#post-2016469)
 * I was wondering about the File Attachment feature. I was thinking of using the(
   Mail 2) portion of the plugin to actually email the applicant the “FREE GUIDE”
   as an attachment.
 * I was hoping there might be some special way to paste in the URL of a file in
   the “File Attachment” field, but of course it is only for the [file] tag which
   is for the file the applicants would actually upload. I’d like to reverse this
   process.
 * Any thoughts on making this possible?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Change Default Position of Category and Publish Boxes](https://wordpress.org/support/topic/change-default-position-of-category-and-publish-boxes/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/change-default-position-of-category-and-publish-boxes/#post-2010906)
 * I imagine I can do this by some how utilizing the add_meta_box() function. However
   I’m unsure as to how I can do this with a custom post type and taxonomy.
 * The taxonomy selection box has an ID titled contractor_categorydiv – And the 
   taxonomy is called “contractor_category”, and “listings” is the custom post type.
 * `add_meta_box( 'contractor_categorydiv', 'Category Selection', 'postbox', 'listings','
   normal', 'core', array( 'taxonomy' => 'contractor_category' ));`
 * Not sure if this is the correct syntax, but nothing appears either way heh.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Catchable fatal error: Object of class __PHP_Incomplete_Class could not be](https://wordpress.org/support/topic/catchable-fatal-error-object-of-class-_php_incomplete_class-could-not-be/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/catchable-fatal-error-object-of-class-_php_incomplete_class-could-not-be/#post-1783266)
 * I am also experiencing this same exact issue when trying to edit user profiles.
   I just want to disable the bar. disabled all plugins as well. no love 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search Form with Custom Taxonomy Dropdown](https://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown/#post-1882912)
 * Hey there Sadhas, yes here’s what you need to do:
 * On your second (location) form field, you need to specify the “name” to be the
   slug name of your taxonomy term as a variable. For example I created a loop in
   my searchform.php that grabs *all* my tax terms and displays them in a drop-down
   as such.
 *     ```
       <form role="search" method="get" id="searchform" action="<?php bloginfo('home'); ?>">
         <div>
           <input type="text" value="" name="s" id="s" /> 
   
       <?php
       function get_terms_dropdown($taxonomies, $args){
       	$myterms = get_terms($taxonomies, $args);
       	$optionname = "optionname";
       	$emptyvalue = "";
       	$output ="<select name='".$optionname."'><option selected='".$selected."' value='".$emptyvalue."'>Select a Category</option>'";
   
       	foreach($myterms as $term){
       		$term_taxonomy=$term->YOURTAXONOMY; //CHANGE ME
       		$term_slug=$term->slug;
       		$term_name =$term->name;
       		$link = $term_slug;
       		$output .="<option name='".$link."' value='".$link."'>".$term_name."</option>";
       	}
       	$output .="</select>";
       return $output;
       }
   
       $taxonomies = array('YOURTAXONOMY'); // CHANGE ME
       $args = array('order'=>'ASC','hide_empty'=>true);
       echo get_terms_dropdown($taxonomies, $args);
   
       ?>
   
       <input type="submit" id="searchsubmit" value="Search" />
       </div>
       </form>
       ```
   
 * Then you’ll need to modify your search.php template and make sure it grabs that
   new name value and queries the posts that have that tax term.
 *     ```
       <?php
       global $query_string;
       $termslug = $_GET['optionname'];
       ?>
   
       <h2>Search Results For: <span style="font-weight: normal"><em><?php the_search_query(); ?></em></span></h2>
   
       <?php 
   
       if (empty($termslug)) {
       	query_posts($query_string);
       	if(have_posts()) : while(have_posts()) : the_post();
       	endwhile; else:
       	_e('Sorry, no listings matched your criteria or you forgot select a category.');
       	endif;
       } 
   
       if (!empty($termslug)) {
                query_posts(array('YOURTAXONOMY' => $termslug) );
       	if(have_posts()) : while(have_posts()) : the_post();
       	endwhile; else:
       	_e('Sorry, no listings matched your criteria or you forgot select a category.');
       	endif;
       }
   
       ?>
       ```
   
 * The first IF statement is for people that do not type in or select a “Location”
   or whatever your taxnomy term is. It will bypass that selection and query *all*
   posts based on whatever the user searched for.
 * The second IF statement will search for whatever the user typed in AND whatever
   tax term (location) they selected. I hope this helps and doesn’t get moderated.
   Good luck!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [best way to search for taxonomy terms](https://wordpress.org/support/topic/best-way-to-search-for-taxonomy-terms/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/best-way-to-search-for-taxonomy-terms/#post-1760454)
 * I was able to resolve my particular issue by creating a custom search.php that
   uses the $_GET data from searchform.php to build a special query_posts(); function.
 * [http://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown?replies=7#post-1916364](http://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown?replies=7#post-1916364)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search Form with Custom Taxonomy Dropdown](https://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown/)
 *  Thread Starter [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/search-form-with-custom-taxonomy-dropdown/#post-1882897)
 * Ok.. After much frustration and hours worth of work, I finally got it all fixed.
   And of course it was easier than I thought. Let us keep in mind that when searching
   for keywords in a specific taxonomy, it is not related to the URL. What is important
   is the $_GET data.
 * here’s my searchform.php
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * and here’s some custom code you can place in your main content area in the search.
   php page that I made using query_posts and the respective taxonomy array.
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * might be a little messy, but it works pretty well.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [best way to search for taxonomy terms](https://wordpress.org/support/topic/best-way-to-search-for-taxonomy-terms/)
 *  [danzigism](https://wordpress.org/support/users/danzigism/)
 * (@danzigism)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/best-way-to-search-for-taxonomy-terms/#post-1760453)
 * Here’s what I have for my searchform.php. I have created a little function that
   grabs all the tax terms for the “My_Taxonomy” taxonomy and displays them in a
   drop down.
 *     ```
       <form role="search" method="get" id="searchform" action="<?php bloginfo('home'); ?>">
       <input type="text" value="" name="s" id="s" /> 
   
       <?php
       function get_terms_dropdown($taxonomies, $args){
       	$myterms = get_terms($taxonomies, $args);
       	$selected = "selected";
       	$output ="<select><option selected='".$selected."'>Select a Category</option>'";
   
       	foreach($myterms as $term){
       		$term_taxonomy=$term->My_Taxnomy;
       		$term_slug=$term->slug;
       		$term_name =$term->name;
       		$output .="<option name='".$term_slug."'>".$term_name."</option>";
       	}
       	$output .="</select>";
       return $output;
       }
   
       $taxonomies = array('My_Taxonomy');
       $args = array('order'=>'ASC','hide_empty'=>true);
       echo get_terms_dropdown($taxonomies, $args);
   
       ?>
   
       <input type="submit" id="searchsubmit" value="Search" />
       </form>
       ```
   
 * it obviously passes the ?s= portion of the URL, and at one point I had it form
   the URL as such: /?s=searchterm&taxonomy=taxterm but as you said the URL is not
   related.
 * So how exactly could I take the values of the dropdown term selector, and make
   it a part of the search (search.php) results? Would I remove the current loop
   that I have in search.php and use WP_Query(); instead?

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/users/danzigism/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/danzigism/replies/page/2/?output_format=md)