43 reputation
6
bio website
location
age
visits member for 7 months
seen Mar 12 at 22:22
stats profile views 6

Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 8 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 8 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 1558 characters in body
Feb
28
comment Image size filtering in Media uploader according to custom post type
I might add that the Media Uploader must know the CPT post attributes somehow as it uses them in the database to link the attachment post id to the CPT post id, but the global variables regarding the post/post_id/custom_post_type retrieved when queried are those of the attachment post, not those of the CPT post. I checked this by testing the custom post type queried when the Media Uploader pops up and its always "attachment"...
Feb
28
comment Image size filtering in Media uploader according to custom post type
Thank you Vinod Dalvi. I already use this exact same script but it will not set any custom image size, whatever the post because the acutual custom type is never part of the condition. As I said before, this is probably due to the fact that the Media Uploader is inside an Iframe and that the current post is the one of the media file (different from the article one) and that the post_type from that window is always "attachment" (which is the custom post type of the picture it is dealing with). That's the core of the problem. I think it's a scope problem.
Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 3 characters in body
Feb
28
asked Image size filtering in Media uploader according to custom post type
Feb
21
comment How to Display Frontend CSS for Administrator only
Thank you DigitalSea. It worked like a charm.
Feb
21
accepted How to Display Frontend CSS for Administrator only
Feb
20
comment How to Display Frontend CSS for Administrator only
"Then one could "normally" enqueue the style sheet with respect to the current user capabilities". That is precisely the question I asked and "normally" doesn't help that much.
Feb
20
comment How to Display Frontend CSS for Administrator only
Thank you. Like I said, I would rather modify the header.php file and create a condition on the css link. Would the "if" statement above work there? I don't have access yet to the website to verify.
Feb
19
revised How to Display Frontend CSS for Administrator only
added 276 characters in body
Feb
19
asked How to Display Frontend CSS for Administrator only
Feb
3
revised Saving zero as meta value
edited body
Feb
3
comment Saving zero as meta value
Yes, just a typo. The code indicates "_ordre" everywhere, var_dump included.
Feb
3
comment Saving zero as meta value
Ok, sorry. It's done.
Feb
3
revised Saving zero as meta value
added 2260 characters in body