Title: gotjosh's Replies | WordPress.org

---

# gotjosh

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Editor Tools] "Tiny toolbar" disappeared for the editor role!](https://wordpress.org/support/topic/tiny-toolbar-disappeared-for-the-editor-role/)
 *  [gotjosh](https://wordpress.org/support/users/gotjosh/)
 * (@gotjosh)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/tiny-toolbar-disappeared-for-the-editor-role/#post-6894123)
 * I had the same problem, that the second toolbar did not show, but also for administrator.
   
   artfulcat’s solution worked for me also! Thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Germanized for WooCommerce] woocommerce_gzd_checkout_legal_text not translating](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/)
 *  Thread Starter [gotjosh](https://wordpress.org/support/users/gotjosh/)
 * (@gotjosh)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/#post-6134193)
 * [@vendidero](https://wordpress.org/support/users/vendidero/),
    It seems that 
   others are also having this issue, and that the fix i describe here also works
   for them. Is it possible for you to integrate this fix, so that we can continue
   to update your plugin? Otherwise it seems i will need to patch after every update
   🙁
 * thanks for your very useful plugin!
 * cheers,
    gotjosh
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Germanized for WooCommerce] woocommerce_gzd_checkout_legal_text not translating](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/)
 *  Thread Starter [gotjosh](https://wordpress.org/support/users/gotjosh/)
 * (@gotjosh)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/#post-6134055)
 * here is the changed line 168:
 * > $plain_text = **__(**( $text == ” ? get_option( ‘woocommerce_gzd_checkout_legal_text’):
   > $text )**, ‘woocommerce-germanized’ )**;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Germanized for WooCommerce] woocommerce_gzd_checkout_legal_text not translating](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/)
 *  Thread Starter [gotjosh](https://wordpress.org/support/users/gotjosh/)
 * (@gotjosh)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/woocommerce_gzd_checkout_legal_text-not-translating/#post-6134054)
 * Indeed. I did that. but it did not work until i adapted the code in your plugin…
   it seemed that you were not including the __() in the
    wc_gzd_get_legal_text()
   function in: woocommerce-germanized\includes\wc-gzd-cart-functions.php
 * can you confirm this? or are you translating the string elsewhere?
 * thanks for your reply!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Select post based on category name (not cat id)?](https://wordpress.org/support/topic/select-post-based-on-category-name-not-cat-id/)
 *  [gotjosh](https://wordpress.org/support/users/gotjosh/)
 * (@gotjosh)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/select-post-based-on-category-name-not-cat-id/#post-267483)
 * thanks yas for a good start…
    i adapted your code by looking here: [http://codex.wordpress.org/Function_Reference/wpdb_Class#get_var_-_SELECT_a_Variable](http://codex.wordpress.org/Function_Reference/wpdb_Class#get_var_-_SELECT_a_Variable)
 * and ended up with this working fx:
    ` function get_catid($catname){ global $wpdb;
   $request = $wpdb->get_var("SELECT cat_ID FROM $wpdb->categories WHERE cat_name
   = '$catname' "); return $request; } $stickyid = get_catid('sticky');
 * i do think such a thing should be included in the main
    in_category() fx… it 
   can check if it is passed numbers and if not do a quick lookup using this kind
   of function… seemlessly handling both names and id’s… i can hack and contribute
   this, if noone else is working on it… just need to figure out how to do that 
   contribution thing around here (a bit new to the community)
 * cheers,
    gotjosh

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