376 reputation
420
bio website
location
age
visits member for 3 years, 2 months
seen 16 hours ago

Jul
25
comment Custom function to rearrange attachments when creating posts – Almost there
@t31os Also please note on line 28 in paste 8yLjdkrq, I've put attachment ID as a placerholder, as I haven't figured out how to get the current menu_order for the attachments.
Jul
24
comment Custom function to rearrange attachments when creating posts – Almost there
@t31os I think this is everything that you need to be able to run it on your own install: pastebin.com/8yLjdkrq and pastebin.com/23wU7Qe1 Might have missed something though. Think it's easier for your to be able to test yourself (also good for anyone that wanna do something similar)
Jul
20
comment Control attachments menu order with jQuery Sortable
worked perfectly, thanks!
Jul
20
comment How do I save metadata for a specific custom post type only?
Hm, I get this warning message Notice: Trying to get property of non-object in /ustorage/www/users/qom/vhosts/xxx/xxx/wp-content/themes/ep/functions.php on line 239 on this line: if ($post->post_type == 'mycpt') { when creating an entirely new post. Anything to worry about?
Jul
18
comment How to delete post attachments when jQuery is used with a click event on the delete link
Very helpful post, thanks!
Jul
18
comment Control attachments menu order with jQuery Sortable
This seems to be what I want, will try as soon as I get a chance, thanks!
Jul
16
comment Control attachments menu order with jQuery Sortable
Line 1228 in media.php in wp-admin/includes seems to have the functionality for how sorting natively in WP works. Not sure how to make use of it though..
Jul
16
comment Control attachments menu order with jQuery Sortable
@kaiser Sorry for being a bit vague in my question. I've updated the Q with some more information. I'm not using the regular media uploader. I'm using Uploadify that ties in with the media library, though it works exactly the same as it would with the regular media uploader. So what I need is someway to use the menu order that I create with jQuery Sortable (check this video: youtu.be/zvPnem6ady4) and then save it as a menu_order ID for my different attachments. Am I making any sense?
Jul
16
comment Control attachments menu order with jQuery Sortable
Thanks for your reply. I know this, but I'm wondering how I might hook into this and make use of it for my custom image/attachment handler. Here's a video: youtu.be/zvPnem6ady4 When I've moved the images around, I want the order to be saved.
Jul
15
comment How to list “invisible” Auto Drafts?
Also, it lists a revision for a post that is publushed, and it cannot be removed (and it's not possible to tick multiple posts and remove them in bulk, it just gives the error message: Invalid Post Type)
Jul
15
comment How to list “invisible” Auto Drafts?
This is what I have right now: pastebin.com/dqhtZv8n and it works, it lists the drafts, however I also get this error message: Warning: Illegal offset type in isset or empty in /ustorage/www/users/xxx/vhosts/xxx/wp-includes/post.php on line 817
Jul
15
comment How to list “invisible” Auto Drafts?
The thing is, I've disabled auto save, but I still get auto drafts when attaching images (I guess it's a media attachment thing).
Jul
15
comment How to list “invisible” Auto Drafts?
Hm, nope, not showing up, are you sure that the ones I'm seeing in Media Library is auto saves or revisions?
Jul
6
comment Add TinyMCE to CPT metaboxes in 3.1?
Firstly, do not answer questions with a question. You should create a new question since this question specifically is for 3.1
Jul
5
comment WYSIWYG – Getting the “link” button from HTML mode in Visual mode
Right, thank you for letting me know. I'm curious though, have you seen any thread/tutorial about adding a link button like the one I'm looking for? I've only seen a few that registers an entirely new functionality..
Jul
2
comment Add TinyMCE to CPT metaboxes in 3.1?
Thanks, works great! Although do you think it's possible to have different sets of button for each WYSIWYG editor?
May
15
comment Hooks: admin_footer and admin_print_footer_scripts not working?
Thanks for pointing this out @Chip. I wasn't entirely sure, since in WP they call it jquery-ui-core. I thought there were some difference. Anyway, do I neeed to include jquery-ui.css on my own, or is that taken care of aswell?
May
14
comment Hooks: admin_footer and admin_print_footer_scripts not working?
@Hameedullah Ah, sorry, didn't see that first. Thanks alot, works like a charm!
May
14
comment Hooks: admin_footer and admin_print_footer_scripts not working?
@Hameedullah So admin_print_scripts is ok but admin_print_footer_scripts is not? I don't understand.
May
12
comment Prevent access or auto-delete readme.html, license.txt, wp-config-sample.php
@Sahas @atif089 Did you manage to get this to work?