3,843 reputation
1918
bio website hameedullah.com
location Karachi, Pakistan
age 29
visits member for 2 years, 11 months
seen Mar 12 at 8:05

A WordPress Developer who solve difficult problems effectively and SMARTLY.


Dec
8
comment Category that can hold only specific number of post
It should work. What is your Wordpress version?
Apr
22
comment Custom Post Type Navigation on Custom Field
Glad you could use it for your work. :)
Mar
20
comment get all sub categories without specify any category
David the above function will get any category that is NOT top level which means all sub categories.
Nov
11
comment Sensible location for IPN Callback script
You have to exit because your hooking into WordPress init function, init is run before WordPress sends any headers back. If you will not exit than WordPress will start sending headers and content which is not required in this case.
Oct
11
comment How may I filter get_users() similarly to pre_get_posts?
You ant to alter all the call for get_users? Maybe I missed it in the question. Let me get back to you with the solution to that.
Aug
27
comment Setting Variable Path to Template Directory inside Script
you don't have to provide absolute url, just use the relative path to MailHandler.php
Jul
9
comment Custom Post-to-Post with multiple parents?
You will have to hook to XML-RPC API yourself and then use the Posts 2 Posts functions from there.
Jun
28
comment Exclude One Category and its Subcategories using WP_LIST_FILTER
sorry diana it was a typo, I fixed the code. it was using the hardcoded parent1 category instead of the one being passed to the funciton.
May
31
comment Exclude current post ID from loop in sidepbar.php
First thing is don't use query_posts to query the posts. if you can describe what you are trying to achieve, someone might be able give you better alternative.
Jan
24
comment Thumbnail Cropping with add_image_size?
That is how WP crops, for the exact 300x100 crop, check the solution at: wpquestions.com/question/show/id/1098. NOTE:I haven't tested it myself.
Jan
23
comment Thumbnail Cropping with add_image_size?
The true parameter actually crops the image, if you will make it false the image will not be cropped, it will be resized instead.
Jan
23
comment Thumbnail Cropping with add_image_size?
The images that are shrinking must be the images that were uploaded before you specified these sizes? or you are having issues with newer uploads too? Because the true parameter actually crops the image with out distorting them.
Jan
23
comment Sort results by name & asc order on Archive.php
if you are using custom query in your archive.php can you please show it? may be post the complete archive.php on pastie.org and update your answer with the link?
Jan
23
comment register_activation_hook and updating
My understanding is.. you want to check if older version of plugin is installed or have the db from older plugin you want to upgrade it when installing newer version of the plugin?
Jan
22
comment Getting 404 error on homepage only
can you show your .htaccess file?
Jan
22
comment How to integrate blog status?
You want an interface where you can set the blog status? You can use the WordPress Option API to store and display your blog status.
Jan
22
comment Sorting a query by custom field date
@timeshutes then you must also show your metabox save code, so we can see what is going on in that function.
Jan
21
comment “Master” Wordpress Multisite - Database Sync
AFAIK, you will have to loop over all the blogs and set the plugin option.
Jan
19
comment Custom loop with conditional statement to separate each terms
It this works out for you, don't forget to accept the answer. :)
Jan
18
comment Custom post type thumbnail / Media Library WP_DEBUG notice
@dunc, can you also do the var_dump($post_id) on the same line? Its the $data var that is causing those warnings. If you will dump the $post_id you will know exactly on what attachment it causes those warnings.