Mindblown: a blog about philosophy.
-
Redirect from old domain to new domain using htaccess
Just simple redirect from old domain to new domain permanently in simple way using htaccess like
-
Get User Role by ID
Get worpdress user by user ID in simple way like this:
-
Iframe Auto scroll down after loaded
Page go to iFrame section when loaded. Just simple trick to fix this issues.
-
The Plugin Generated x Characters of Unexpected Output During Activation
The plugin generated 1616 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin. The most common causes are: 1. A white space before or after the PHP opening or closing tags 2. A file encoded in UTF-8 3.…
-
How do I make the woocommerce quantity dropdown?
https://gist.github.com/Belelros/8eab29f48a06277a6856
-
Custom post type next previous post link when order posts by menu_order
There are 2 functions in WordPress to let you display previous and next post links: previous_post_link and next_post_link. In general, they work so well and really save a bunch time when coding a theme. Just need to add this code in theme functions.php file to make it work correctly. https://codex.wordpress.org/Next_and_Previous_Links Get the right prev/next post…
-
Easy way to change any word in wordpress by language file
Sometimes we need to change some word in plugins. But should no edit any core file of any plugins. Since plugin automatic update may come next minute and customization will goes out of the box. In this post I’ll try to show you how we can change any words of a plugin using language file.…
-
Few jQuery Examples
A few jQuery sample are showing below that is really useful. Anyone can use or share. This is great to add more and more.
-
Domain Mapping without a Plugin
Yes, it works natively without instructions, and here is what you need to know to make it work: recent versions (as of WP 4.x) of WordPress Multisite (fresh installs) have the ability to map your custom domain (e.g. example.com) onto a subsite of your install without the help of a plugin. This should be possible…
-
403 forbidden for mac pro on mamp pro server
The great solution is just one configuration here
Got any book recommendations?