PHP

Add ASC / DESC to custom post columns

Im using the following code to create custom columns in the backend of the posts menu. add_filter('manage_edit-post_columns', 'post_edit_columns'); [...]

What's the best way to use the Featured Image for responsive web design?

I have a brilliant idea and since WordPress already takes care of some of the work, I just need to find a good method to make this work. I am working on[...]

WordPress and magic quotes

I’ve been writing some WordPress plugins, and I’ve been having some problem with WordPress putting magic quotes on POST and GET data. Specifically,[...]

Does an activated plugin automatically mean its methods are available to other WP functions?

I made a WordPress plugin like this: Class MY_CLASS { //codes } Global $myclass; $myclass = New MY_CLASS (); After installed and activated the plugin,[...]

if plugin is active? check if plugin is enabled or not?

I’m using the mingle plugin and the mingle-forum plugin. I want to show a certain part on my site only if those two plugins are active. How can I[...]

How to get WordPress Time Zone setting?

Can someone tell me how to get the time zone that is set in the WordPress Admin? For example, if the blog is set to Eastern time, I need this exact string[...]

simple fields plugin custom query

I have a collection of posts for families. I’m using the simple fields plugin for handle members of the family. Is there a simple way to query posts[...]

Is there a hack for using is_page() within the function.php file?

I’ve created a function in my functions.php that’s called when the submit_form event is fired on the front-end. Here is the code: add_action([...]