wyclef
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Core Error in Server Error Log?Thanks, I will try this.
Forum: Fixing WordPress
In reply to: Core Error in Server Error Log?Thanks. Sorry for the delayed response.
I am also seeing the following error, related to the following code in functions.
mod_fcgid: stderr: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘extended_editor_mce_buttons_2’ not found or invalid function name in /home/user/domain.net/wp-includes/class-wp-hook.php on line 289, referer: https://www.domain.net/about/
// Disable All TinyMCE Buttons if (isset($wp_version)) { add_filter('mce_buttons', 'extended_editor_mce_buttons', 0); add_filter('mce_buttons_2', 'extended_editor_mce_buttons_2', 0); } // TinyMCE: First line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons') ){ function base_extended_editor_mce_buttons($buttons) { return array( 'formatselect', 'template', 'bold', 'italic', 'link', 'wp_adv' ); } add_filter("mce_buttons", "base_extended_editor_mce_buttons", 0); } // TinyMCE: Second line toolbar customizations if( !function_exists('base_extended_editor_mce_buttons_2') ){ function base_extended_editor_mce_buttons_2($buttons) { return array( 'pastetext', 'charmap', 'undo', 'redo', 'code' ); } add_filter("mce_buttons_2", "base_extended_editor_mce_buttons_2", 0); }
This is running on WP 5.4.9, PHP 7.4. Are these connected or two separate errors?
Also interested in this. Any updates on this?
Forum: Developing with WordPress
In reply to: ?add line breaks to esc_html__?I see. How would you go about modifying that $title to allow for line breaks, or a p tag or something.
Forum: Fixing WordPress
In reply to: Do I need tablespaces for routine WordPress database dumps?I was getting the following error but it didn’t seem to be impacted the DB as far as I could tell either.
Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
So should I go with it is not a problem to not include tablespaces in a routine DB dump?
- This reply was modified 3 years, 3 months ago by wyclef.
Forum: Plugins
In reply to: [IP Location Block] Local database settings failed to copyHow can I verify that for you? This is on a shared hosting plan at DreamHost.
Forum: Developing with WordPress
In reply to: Get category parent alsoOk, I think thanks to your help I have this working now. Do you think there is a way to clean this up at all or if it works just leave it. Needed an else at the end with your line rather than before the if. Does this need an endif; or is that only if I am using an elseif?
$postCategories = get_the_category($postID); $postHTML .= '<div class="buttons">'; if ($postCategories[0]->parent != 0) { $cat = get_category($postCategories[0]->parent); $postHTML .= '<a href="'.get_category_link($cat->cat_ID).'" class="btn" title="'.$cat->name.'">'.$cat->name.'</a>'; } else { $postHTML .= '<a href="'.get_category_link($postCategories[0]->cat_ID).'" class="btn" title="'.$postCategories[0]->name.'">'.$postCategories[0]->name.'</a>'; } $postHTML .= '</div>'; return $postHTML;
- This reply was modified 3 years, 4 months ago by wyclef.
Forum: Developing with WordPress
In reply to: Get category parent alsoJust want to be clear this is what you are thinking. I tried it out and it seems to get the category of the post and not the parent category, which can be the parent category if the post has designated that, but if the post has designated a child category of the parent category it will pull the child category.
function getCatButton($postID) { $postCat = get_the_category($postID); $postHTML = '<div class="button">'; $postHTML = '<a href="'. get_category_link($postCat[0]->cat_ID) . '">'. $postCat[0]->name .'</a>'; if ($postCat[0]->parent != 0) { $cat = get_category($postCat[0]->parent); } $postHTML = '</div>'; return $postHTML; }
Forum: Everything else WordPress
In reply to: license.txt and readme.txt in theme filesDo I need to license my themes under the GPL? #Do I need to license my themes under the GPL?
If you have no plans to distribute your theme then you do not need to adopt the GPL license for your work. The GPL only applies to distributed software. If you are not distributing your software – for example, a theme used only by yourself or on your local machine – you do not need to adopt the GPL.
So if I am creating a theme for 1 person, that isn’t really used only by myself, does that mean I need to adopt the GPL? Does that count as distributed?
Thanks! I think both get_the_category and single_cat_title will work for me and simplify things tremendously. The last function may be a bit overkill for my needs at this time but will keep it in mind.
Forum: Fixing WordPress
In reply to: How to create simple add to calendar text link?I see. The calendar date would be based on a date entered via a custom date field in WP post.
Forum: Plugins
In reply to: [IP Location Block] Local database settings failed to copy@darkog are there any updates on any of this?
Forum: Fixing WordPress
In reply to: How can I add a class name to one image tagRight. I think I might try to hook this class outside of the image tag via the body class or something else where I may be able to avoid even needing this class on the image tag. If that doesn’t work guess I’ll just roll with the if statement.
I am not sure if this is a problem anymore. It may have just been a one time thing.
Forum: Plugins
In reply to: [IP Location Block] Local database settings failed to copyWondering if there is any progress on this?