Skip to main content
5 events
when toggle format what by license comment
Feb 26, 2011 at 9:25 comment added wyrfel @erichmond Well, if you add the taxonomy or a custom field is the same in the end, isn't it. You'll have to write some code to do it automatically in either case.
Feb 26, 2011 at 8:39 comment added erichmond Yes that makes perfect sence, using The taxonomy rather than a custom field, having given it more thought I'm not actually sure I've thought of the best solution. 20 post might need to use the same image but I want the user to upload 1 image and the posts to use it if it exists without the user having to go into each post and add the taxonomy.
Feb 25, 2011 at 1:03 comment added wyrfel Sorry, too busy to write it for you. But i'll try to make it a bit clearer...just imagine your custom taxonomy would be the tags. So you add tags capability to attachments (google for `wordpress register taxonomy for object'). Now instead of adding your 'special number' as a custom field, you add it as a tag. Admin then adds the same number as a tag to attachments. The only custom code you need then goes something like this: - fetch tags for post, - for each tag, fetch the attachment(s) with the same tag, - for each found attachment, get the file url. WP has functions for all of that.
Feb 24, 2011 at 23:06 comment added erichmond wow that made my head spin, don't understand that without seeing the code
Feb 24, 2011 at 21:38 history answered wyrfel CC BY-SA 2.5