gotjosh
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Editor Tools] "Tiny toolbar" disappeared for the editor role!I had the same problem, that the second toolbar did not show, but also for administrator.
artfulcat’s solution worked for me also!
Thanks ??@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,
gotjoshhere is the changed line 168:
$plain_text = __(( $text == ” ? get_option( ‘woocommerce_gzd_checkout_legal_text’ ) : $text ), ‘woocommerce-germanized’ );
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.phpcan you confirm this? or are you translating the string elsewhere?
thanks for your reply!
Forum: Fixing WordPress
In reply to: Select post based on category name (not cat id)?thanks yas for a good start…
i adapted your code by looking here:
https://codex.www.ads-software.com/Function_Reference/wpdb_Class#get_var_-_SELECT_a_Variableand 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