Category / WordPress

Today I’m excited to introduce you WP Bones, a plugin framework for WordPress written with Composer. WP Bones providing a set of tools and rules to facilitate the WordPress plugin. Also, the aim of Bones is to be able to write a Plugin such as Laravel Framework application.

Read More

When you are using a Custom Post Type with its Custom Post Taxonomies, you could need to detect if a particular category is displayed in a post. So, I write a simple WordPress shortocode you can use to detect a particular category and then display the content of the post. To achieve that, you can add […]

Read More

Actions and filters are so awesome in WordPress. They provide a very simple and powerful way to customization the WordPress core. So, Plugins and themes can execute code before or after a specified event or change the result of many core functions. On the web, I found a few discussion about the Javascript porting of […]

Read More

Here you’ll find the list of actions run during a typical request by the frontend.

Read More

Here you’ll find the actions run during a typical request in the backend admin area.

Read More

Edit your wp-config.php file, located in WordPress root folder, and add or replace define(‘WP_DEBUG’, true); In this way, WordPress will print the logs on the screen. This may be very annoying, so you would like to redirect all logs in a file. As usual, please don’t hesitate to leave any questions or comments in the […]

Read More

The last version of WordPress provides a new toolbar in frontend view when you are logged in. To disable this feature you can add the following code in the functions.php file in your active theme:

Read More

You remember the post How to get a page/post content, don’t you? Then, we may get the page/post content by:

Read More

We have to use a little trick! In other words, we will remove the meta box and then we will add a new one again:

Read More

You can include a page/post content into a different page/post. For example, if you have a privacy disclaimer may be useful to load that content in a different context. This could be very useful when: Anyone can edit the page/post without edit the included content The loaded content works as standalone page/post as well The […]

Read More