Puddinq.com sharing knowledge

Puddinq.com - blog

Not filling FTP information to download plugin

If you use the following code you do not need to fill in ftp information when you install a plugin or theme. /* Sets up ‘direct’ method for wordpress, auto update without ftp */ define(‘FS_METHOD’,’direct’); Put the above somewhere in wp-config.php.. It is a good habit to place the code in the top of the […]

Enhanced order list for WooCommerce

We have developed a small plugin the enhances the WooCommerce orderscreen with order products and specified order costs.. for the moment. More enhancements, filters and search options will be available soon. Check out the WordPress repository

Remove WooCommerce orders

Sometimes you need to clean up. One way of making your tables smaller is to delete data that is not used anymore,.. old orders in WooCommerce could be an option.

Add things to robots.txt

In WordPresss there is a hook to add stuff to the robots.txt searchengines use to determine what to search thrue. In the following example we add the sitemap to robots.txt to make sure searchengines will find it.

WordPress nonce why?, how and show me

WordPress nonce has been available for a while, but if you are just starting to use it here is why, how and a copy and past example. Why use nonce with WordPress? Lets say you have two pages in your admin, page one and page two. Page one is a settings screen but page two […]

Enqueue child style after parent style

There are a number of possibilities for adding the child theme styles after the parent style sheet so you can overrule parent styles from the child theme. this one is easy, copy the code to your functions.php and it will work.

Guest writer

Guest writer is a puddinq plugin that could suit your needs. The setup is simple: create a user role that can edit one post type. The options vary from allowing (un) registered people posting content that is automatically published or after a test of a moderator. Let people register frontend and create edit / posts […]

Debug WordPress live

If you want to know about errors on a production site your could set WP_DEBUG to true. But visitors will be able to see the errors and as a result trust in your site declines, to debug WordPress live it is best to log.

WPML switch backend language on language switch

Since wp 4.7 the backend language is changed by changing the language in your userprofile. Using WPML, if you change the site language or post-, page language, the backend language is not changing. The code below changes the site language when changing the wpml language selector.