Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6340365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:49:17+00:00 2026-05-24T19:49:17+00:00

I am currently using WordPress to build my portfolio website. The site consists of:

  • 0

I am currently using WordPress to build my portfolio website. The site consists of:

  • a homepage showing “project” posts (using post categories).
  • an about us page
  • a projects page (very similar to homepage) showing thumbnails and titles of recent projects.
  • a project detail page (this is a click through from either the homepage or projects page and shows detail on a particular project.

On the project detail page I have an image slider which I want to show the work associated with that project. I have used the following function call to return all images associated with the post:
<?php display_images_in_list('medium'); ?>which calls the following function:

function display_images_in_list($size = thumbnail) {

if($images = get_posts(array(
    'post_parent'    => get_the_ID(),
    'post_type'      => 'attachment',
    'numberposts'    => -1, // show all
    'post_status'    => null,
    'post_mime_type' => 'image',
            'orderby'        => 'menu_order',
            'order'           => 'ASC',
))) {
    foreach($images as $image) {
        $attimg   = wp_get_attachment_image($image->ID,'medium');
        echo "<div class='slide'>".$attimg."</div>";
    }
}

}

Even though I have specified I would like medium images returned my slider still features the thumbnail image which I uploaded to show on another page.

How can I show only medium images?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T19:49:17+00:00Added an answer on May 24, 2026 at 7:49 pm

    when you upload image as attachment to post wp creates thumbnails. You cannot upload a thumbnail. If you upload big image, and thumb image both will be shown. You need to upload only big images and than it will show medium size as you wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently developing a site using the WordPress Twenty Eleven theme and I would
I have been asked to convert an entire site that is currently using wordpress
I'm currently using 'wp_list_pages' to display child pages within my wordpress website. Here is
currently my wordpress theme shows all the words in a post on the homepage,
I'm currently using JCarousel to highlight featured posts in Wordpress. The carousel displays above
im using wordpress as a CMS for my personal portfolio website. i want to
Im using Wordpress as a CMS for this website. Basically the site has products
In my Wordpress Blog I'm currently using an integrated http://U.nu url-shortener. For this I've
I am using wordpress latest version. Currently my blog is set to custom permalink
Currently I'm using a small search and replace snippet for one of my WordPress

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.