Reputation
517
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
2 10 19
Impact
~83k people reached

  • 0 posts edited
  • 0 helpful flags
  • 32 votes cast
Aug
19
comment Image still linked as attachment to page even though it has been deleted
@Rick: If it were available, would a 'move image' function help in your case? I.e. if you could have a holding page/post for all images you want to exist, but not be associated with a 'real' page/post.
Aug
18
comment Image still linked as attachment to page even though it has been deleted
Since EAMann has shed some light on it, the importance of this question becomes obvious. It's one that is highly likely to trip people up, so it's pretty important (I've already upvoted it) and we should consider rewording it (e.g. "How do I completely remove an image from its associated post?") for posterity.
Aug
18
awarded  Beta
Aug
18
comment Image still linked as attachment to page even though it has been deleted
Hmmm... I wonder if this depends on how you removed it from the page. Can you see what the value for post_parent is for that attachment in the database?
Aug
18
comment Image still linked as attachment to page even though it has been deleted
An example of your get_posts() call would be REALLY helpful here
Aug
18
answered Image still linked as attachment to page even though it has been deleted
Aug
18
comment Permalink Problems
Is this solved? Was it the missing "? If so, can you accept Thomas' answer?
Aug
18
awarded  Commentator
Aug
18
comment How do I save metadata for a specific custom post type only?
@Mike: done (totally agree with your suggestion, thanks!)
Aug
18
revised How do I save metadata for a specific custom post type only?
More accurate question title
Aug
18
comment How do I get the size of an attachment file?
Ah - that looks much better than messing around with wp_upload_dir() etc.!
Aug
18
revised How do I get the size of an attachment file?
added 92 characters in body
Aug
18
asked How do I get the size of an attachment file?
Aug
17
comment How do I save metadata for a specific custom post type only?
@EAMann - yup, halfway through writing that, I realised a switch would be better, but comments aren't the ideal place to start editing code, so I got lazy ;)
Aug
17
awarded  Scholar
Aug
17
accepted How do I save metadata for a specific custom post type only?
Aug
17
comment How do I save metadata for a specific custom post type only?
Brilliant- works like a charm. And I'm assuming that it would make sense to do "if ($post->post_type == 'animal') { update_post_meta($ID, "number_of_legs", $_POST['number_of_legs']); } else if ($post->post_type == 'vehicle') { update_post_meta($ID, "number_of_wheels", $_POST['number_of_wheels']); } // ... etc ... to handle several different post types? (Apologies for the poor formatting capabilities of comments!)
Aug
17
asked How do I save metadata for a specific custom post type only?
Aug
14
awarded  Critic
Aug
13
revised Can I disable the auto complete?
added 28 characters in body