Results 1 to 1 of 1

Thread: Filter out certain images ?

  1. #1
    Thread Starter
    Veteran wzshop's Avatar
    Join Date
    Mar 2012
    Location
    Netherlands
    Posts
    356
    Thanks
    27
    Thanked 7 Times in 6 Posts

    Filter out certain images ?

    Hi,
    I was wondering if it would be possible to filter out certain images from the query. See the code that collects the images below. What i would like is to filter out all the images from this query that have 'thumbnail' in their name. This because the thumbnails are smaller which makes the whole image box smaller. Anyone an idea how to accomplish this?


    PHP Code:
    echo '<div class="smaller">';
        
    $i 0;
        foreach ( 
    $attachments as $attachment ) {
            if ( 
    $i == VA_MAX_IMAGES ) {
                break;
            }

            if ( 
    $attachment->ID == $featured_id ) {
                continue;
            }

            echo 
    va_get_attachment_link$attachment->ID );
            
    $i++;
        }
        echo 
    '</div>'

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Map / location search filter doesn't work - the post search filter works fine
    By tdelude in forum Report JobRoller Bugs
    Replies: 4
    Last Post: May 23rd, 2013, 11:35 AM
  2. Replies: 1
    Last Post: April 29th, 2013, 07:10 PM
  3. How to use ad listing images colorbox for blog media gallery images too?
    By artifactivate in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 25th, 2011, 08:13 AM
  4. Filter by Location in Sidebar Filter
    By uzzicreative in forum JobRoller General Discussion
    Replies: 1
    Last Post: July 10th, 2011, 08:20 PM
  5. [SOLVED] I need to change the word Filter to "filtrar" (at the filter bar)
    By jf77 in forum JobRoller General Discussion
    Replies: 7
    Last Post: February 23rd, 2011, 02:28 AM