4,100 reputation
1515
bio website anattadesign.com
location Delhi, India
age 23
visits member for 2 years, 1 month
seen yesterday

I'm a 22-yr old guy currently working as a developer for Anatta Design, also working on the company's Magento products(Awesome Checkout & My Abandoned Carts)

I'm also a Magento Certified Developer

I'm an Open Source Enthusiast who likes to code & also my PlayStation, & i hate Microsoft.

If you want to contact me, here's my G+


Oct
15
awarded  Yearling
Jan
31
answered send email to all registered users when post expires
Jan
21
awarded  Constituent
Jan
13
awarded  Caucus
Oct
15
awarded  Yearling
Aug
28
answered How can I implement Search feature for Membership site?
Aug
22
comment How to create category index table out of wordpress site or on other website?
@G.M. I would also be interested in learning how such a solution would work. example.com/blog/ & example.com probably have different session & for that reason i doubt such a solution will cover all use cases
Jun
24
comment How to limit the characters shown on the page - get_content
Haven't tested but if all you want is to add the length parameter to wp_trim_excerpt, then this would be more dry function my_trim_excerpt($text = '', $length = 0) { if($length && is_numeric($length) { $function = create_function('', 'return '.intval($length).';'); add_filter('excerpt_length', $function, PHP_INT_MAX);/* running last */ $text = wp_trim_excerpt($text); remove_filter('excerpt_length', $function); return $text; } return wp_trim_excerpt($text); }
Jun
24
comment How to limit the characters shown on the page - get_content
Yes. The new excerpt will be either same as old excerpt or exactly 10 words (whichever is lower)
Mar
28
answered How to find what index page a post is on?
Mar
18
comment replace current_page_item class in menu
In that case, you don't need remove_filter. Also copy the add_filter line from inside the display_element function to directly in your functions.php, otherwise it will not work in case you decide not to use the walker in future.
Mar
18
comment replace current_page_item class in menu
remove_filter is to remove the functionality of replacing classes. I added it so that this doesn't affect any of the other menus you might have on your site. As for it not working, make sure you're adding remove_filter line at the bottom of the function
Mar
17
answered replace current_page_item class in menu
Mar
17
answered What should I put on my index.php?
Mar
13
comment get_posts() and filters
Yup, just add another condition if(defined('DOING_AJAX') && DOING_AJAX). This one is true only in ajax requests
Mar
13
answered Retrieving custom field value with get_post?
Mar
13
comment get_posts() and filters
plugin or theme shouldn't be a problem. Did you use is_admin() condition in plugin? It returns true for all ajax requests even if they come from frontend.
Mar
13
answered get_posts() and filters
Mar
13
answered Avoiding page loop
Jan
29
comment How to prevent empty category to list content of sub categories?
Then i understood it wrong. My Bad