Category / WordPress

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 specified event or change the result of many core functions. On the web, I found few discussion about the Javascript porting of actions and […]

Read More

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

Read More

Here you’ll find the actions run during a typical request in 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 […]

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 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 best […]

Read More

If you have used a custom query ( for example with query_posts()) before standard WordPress flow, you might reset the internal query to avoid strange result in sidebar or other sides:

 

Read More