Wordpress
How to use internal css in WordPress
One of the way to load CSS in your WordPress plugin. You no need to worry about caching while developing your code and no need to separate one more file.
How To Get Parent Category Name In WordPress
It is not difficult to get the name using the build in function from WordPress. You may use this for build your own plugin or list out the related post using the category data from the parent category. Here is the PHP Code that can display out the name of the parent category.
How to Solve WordPress asked for FTP credentials
I know it is very annoying when you are going to install a PLUGIN in WordPress. I like the way, one click and install for PLUGINS and THEMES in WordPress. Here is the way that I’m using: Edit your wp-config.php and add the line into it.
How to disable AutoSave in WordPress ?
Sometimes we do not need the auto save function in the editor in WordPress, it will increase your database or slow down you editing experience while you are in slow internet connection. Here is the solution to disable it, if you need to re-enable it just comment them away.
Publishing Failed in WordPress
When you post in WordPress with over 5MB text post, you may receive this error with red color. or you found in your php error log This is because WordPress need more time to execute and process and formatting your post over the maximum execution time. You may use the way below to solve this. …
Create WordPress widget template from scratch
I’ve save down the most basic widget code for WordPress, you can copy this to your plugin and modify it to start your first widget. You can save time on this tutorial to help you create wordpress widget from scratch. [code lang=”php”] <?php class example_widget extends WP_Widget { function __construct() { parent::__construct(false, $name = ‘Example …
lazy-result.js ReferenceError: Promise is not defined
[code lang=”javascript”] node_modules/postcss/lib/lazy-result.js:157 this.processing = new Promise(function (resolve, reject) { ^ ReferenceError: Promise is not defined [/code] When I install the FoundationPress, after I run gulp build I saw this message, this is because the node version problem. the have mention in this post https://github.com/postcss/postcss-nested/issues/30 Solution [code lang=”shell”] vim node_modules/postcss/lib/lazy-result.js [/code] Put this to the …
lazy-result.js ReferenceError: Promise is not defined Read More »
Connect to Jetpack using behind varnish and nginx
Normally if you use varnish or other reverse proxy, you may use other port in wordpress. So you are not able to connect to Jetpack, because to connect Jetpack, you must have port 80 to authorize. It may display the error like this from your Jetpack debugger [code] SELF: Array ( [headers] => Array ( …
Connect to Jetpack using behind varnish and nginx Read More »
Delete expired _transient in wordpress to optimize the database
If you separate your database to another server, and if the wp_options table is going bigger to 2MB, then it will slow down your query time, because WordPress like to query all the data from the table wp_options always. You have to make the table smaller size to speed up the query. I always clean …
Delete expired _transient in wordpress to optimize the database Read More »