Skip to content

Overhaul of Get the Image script #42

Closed
justintadlock opened this Issue Sep 29, 2013 · 0 comments

1 participant

@justintadlock
Owner

Get the Image has long needed a major overhaul. Over the years, things keep getting tacked on to it. Everything needs to be rewritten. This is going to similar to what we did with Breadcrumb Trail (#15) in the last release.

The big thing is to streamline some of the code. Right now, it's getting to the point where code is getting duplicated in different functions.

Items on the agenda:

  • Get_The_Image class. The function will just be a wrapper for this.
  • Allow the order in which the script searches for images to be changed.
  • split_content feature similar to Hybrid_Media_Grabber. Basically, it should allow you to split an image from the content if you're pulling it directly from the post content.
  • meta_key argument should accept an integer value (attachment ID) rather than just a URL.
  • Handle image attachments for attachments (i.e., sub-attachments). This is particularly useful to use along with WordPress' ability to auto-attach audio/video thumbnails.
  • New image_scan_raw (name?) option. image_scan currently pulls a URL from the post. We need to be able to get the full HTML from the post (see my Socially Awkward theme for an example of this):
    • [caption] shortcode.
    • <img /> HTML.
    • <a><img /></a> HTML.
@justintadlock justintadlock referenced this issue in justintadlock/get-the-image Sep 29, 2013
Closed

Overhaul of the plugin #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.