• When I check show images, the image file that is pulled from the post isn’t the first image in the post (which is relevant to the topic) but has skipped down to the adobe icon image that links to a pdf file and pulls and places the pdf icon image in the archive list. Is this due to how the reg expression is constructed? If so, can you help me modify it to pull the relevant image?

    All of the images files I’d like to have pulled and displayed in the archive will be located in one directory and the files will be named in a similar pattern: /images/*au.png.

    Is this the line that needs to be changed: preg_match(‘/<\s*img [^\>]*src\s*=\s*[\””\’]?([^\””\’>]*)/i’, $post->post_content, $matches);

    or is it something else? My coding skills are limited to cut and paste so your help would be appreciated.

    paris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pw01

    (@pw01)

    Never mind, I substituted a custom field in the layout. Now I have more control over what image is posted.

    Hi

    Any chance you could tell us what you put in the custom field to do this.
    Sounds very handy!

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Snazzy Archives] not pulling the first image from the post to display’ is closed to new replies.