164 reputation
8
bio website kevinuk.co.uk
location United Kingdom
age
visits member for 3 years
seen May 6 at 20:06

Sep
28
comment Using one custom taxonomy.php for two custom taxonomies?
My two taxonomies lookup the same term id. I'm trying to share the same file for both taxonomies. 'gmc_allergy' maps to a custom post type of 'gmc_recipe' and 'allergy' maps to a 'post'.
Sep
28
comment Using one custom taxonomy.php for two custom taxonomies?
Thanks, that makes sense. I've completely rewritten my question.
May
30
comment Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?
Ah, all works now! Thanks! if((!$library_tab || isset($_GET['image'])) && ('movie' == $post_type || 'movie' == $attachment_post_type )){
May
30
comment Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?
type=image comes from my onclick event of the insert image button I have tb_show('', 'media-upload.php?post_id='+postId+'&type=image&TB_iframe=true'); The code all works now apart from on a normal post page, on the media library tab it runs the code within the if statement if a photo was uploaded from my custom page type because the parent post type will be movie. I can't see a way around that though. If only the From Computer tab would have access just like the media library tab does.. :(
May
30
comment Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?
I've corrected the title and edited the question some more, sorry for the confusion!
May
29
comment Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?
I've updated my question. It's being called from any page so I was using the querystring but that doesn't seem to be called on the 2 tabs I have the problem with.
May
29
comment Remove fields on media uploader for custom page type - not working for “From Computer” or “From Url” tabs?
Thanks for this! What dynamic value should $our_page_id be though? $post_id is the page that has the link to bring up the popup media uploader so I can't think of any other variable.