Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Detect post thumbnail

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38352
    farzadina
    Participant

    WP. Simply I use this code to get the post thumbnail: (when the thumbnail.php page provided)

    It’s done for a single page with a single thumbnail. But what to do, when I want to have a gallery of thumbnails or something like that. See the code below:

    
    query_posts('posts_per_page=1&cat=7');
    while(have_posts()) : the_post();?>

    " >


    In the code above, if I use my first code (…/thumbnail.php), that will show same thumbnails for the titles and should use something else than this one. I want to give each title its own thumbnail.
    Note. I want to use my special post thumbnail as its thumbnail, not the first image of the post.
    How to do that without using a plugin or custom fields, with a simple trick?

    #104574
    farzadina
    Participant

    This solved my problem:

    " title="" >


    " rel="bookmark">


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.