36 reputation
4
bio website liyingqing.com
location
age
visits member for 1 year, 8 months
seen Jun 5 '13 at 2:36

Apr
11
answered How to debug | Some times the “Save Draft” button seems to spin but does not actually save
Apr
8
awarded  Teacher
Apr
8
answered How to check if a theme is active?
Jan
31
awarded  Commentator
Jan
31
comment Custom post type, taxonomy and admin bar
I'm sorry for misunderstanding u,how about this plugin:Admin Menu Editor
Jan
30
revised Custom post type, taxonomy and admin bar
add example codes
Jan
30
awarded  Editor
Jan
30
revised Custom post type, taxonomy and admin bar
add example codes
Jan
30
answered Custom post type, taxonomy and admin bar
Jan
10
comment List custom posts
Well,I know this useful WP_Query,but the main point is I want to sort by the difference between meta_value and another object(like now time)!
Jan
9
comment List custom posts
time stamp,well I try this: SELECT (SELECT ABS(m1.meta_value-UNIX_TIMESTAMP(NOW())) from wp_postmeta AS m1 WHERE m1.meta_key='st_time' AND m1.post_id=p.ID) AS dis FROM wp_posts AS p, wp_postmeta AS m WHERE p.ID = m.post_id ORDER BY dis,the query_post() may not have so much!
Jan
9
asked List custom posts
Jan
6
comment How to customize the Categories meta box to allow only one category?
How to mark it as solved?
Jan
6
answered How do i change the search permanent links
Jan
3
answered How to select one major category (or custom taxonomy) for a custom post type?
Jan
3
comment How to customize the Categories meta box to allow only one category?
I have solved as the code above ,thanx!
Jan
3
comment How to customize the Categories meta box to allow only one category?
function convert_root_cats_to_radio(){global $post_type; ?> <script type="text/javascript"> jQuery("#activitycategorychecklist>li>label input").each(function(){ this.disabled = "disabled"; }); jQuery("#activitycategorychecklist>li>ul>li>label input").each(function(){ this.type = 'radio'; }); jQuery("#activitycategory-tabs li:odd").hide(); </script> <?php} add_action( 'admin_footer-post.php', 'convert_root_cats_to_radio' ); add_action( 'admin_footer-post-new.php', 'convert_root_cats_to_radio' );
Jan
3
asked How to customize the Categories meta box to allow only one category?
Jan
2
awarded  Tumbleweed
Dec
24
answered Adding categories to custom post type in permalink