I am working on a custom theme that uses custom post types. I have added a field to upload media and I want to run the do_enclose function on the post. But the post does not contain a link to the media in the post content, just in a custom field.
Anyone care to offer a hack to the do_enclose function in wp-includes/functions that will look at a custom field rather than the post body?
I would then run that function when a post with the custom post type was updated.
Thanks in advance to anyone with the skilz to make this happen!
- The topic ‘Add enclosures from Custom Field’ is closed to new replies.