After hours of browsing and testing to find out a definitive solution about the annoying empty html paragraph tag in shortcode, I found this absolutely smart and easy solution that just works! 12345678910111213add_filter(’the_content’, ‘shortcode_empty_paragraph_fix’); function shortcode_empty_paragraph_fix($content) { $array = array ( [...]
If you are hardly try to find (like me) a simple solution to add a dropdown filter in custom post type admin list, here it is a snippet slightly modified from several sources around there. Not yet perfect but at least it works mostly. Put this in your functions.php file and have fun! The magic [...]
Maja Bookmarks is a simple but effective WordPress Plug-In to retrieve and display links. It is the first of a series of plug-in for WordPress focused on query data. The Maja Bookmarks plug-in is a widget as well as a shortcode to display a list of bookmarks (links) through several options. Includes widget options and the [...]
In this tutorial we will see how it is easy create a basic banner rotator with JQuery library.
We are making maybe the simplest rotator out there.
So let’s get started.
After a lot of search on how to get is_active_sidebar() works, here the tip that just works.
If you need to check whether a particular sidebar is active (means has at least one widget registered) you should put on your theme the following code:
This is the second part of our step by step tutorial about programming a WordPress theme from scratch. Here you can find the previous one. Now we’re going to add some html code in our previous generated files. The Header First we need to add some basic html code inside the ‘header.php’ file. Putting this [...]
Here a tiny present for everyone wants to implement a basic authentication system in their applications. This class simply check from a POST request the username/password credentials, creating a session variable and optionally a cookie to remember the login. Here the very basic example on how to use it. First off, you should create your [...]
This is the first post about how to program a wordpress theme from scratch.
I’m not covering the styling part of a theme, but only the php part.
The first thing to do is to create a folder inside ‘wp-content/themes/ of your wordpress installation.
Finding a way to let users to test my future experiments on WordPress themes programming, I found this old plugin which works great with the latest WordPress release. Here some tips to config it.
I had a lot of headache to list posts by category and tag as joint result.
Here the solution I found:
You have to use WP_Query() class to accomplish that task: