• Hi all

    I’m new to wordpress and trying to develop a theme for a photographic portfolio. I do normally work in HTML,CSS etc. so I’m not new to it all.

    I was wondering if it’s possible to load images from the media library using the title of the images. I thought the query might be something like.

    <?php
    $imgTitle = “title”
    query_posts (img_title = $imgTitle);
    ?>

    I wanted to have each section of the portfolio on a separate page. Each page would have a title. The images from that section would have the same title as the page that the images will appear on. The page loading would then load images with a title that matched the page title.

    I don’t know it this is possible or a bad idea.

    I have searched but can’t find any decent information or tutorials about photography portfolio themes.

    Any help would be greatly appreciated.

  • The topic ‘query post image titles’ is closed to new replies.