Title: Changing Images Selection Scriptcode via Editor
Last modified: August 30, 2016

---

# Changing Images Selection Scriptcode via Editor

 *  [jonelp](https://wordpress.org/support/users/jonelp/)
 * (@jonelp)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/changing-images-selection-scriptcode-via-editor/)
 * Hi there,
 * Not sure if I’m posting this in the right place, if not apologies.
 * I have an issue on a website I’m trying to edit. There’s a image selection of
   models that are shown (the newest, uploaded ones are pulled through to the home
   page, which then link back to the individual profiles).
 * The thing is, I’m not sure exactly if it is possible for me to select which new
   profiles I prefer to come through instead. Eg. One Male and 2 females from the
   UK etc.
 * But this is the scriptcode I’ve found on the editor and I’m not sure what needs
   changing exactly (please bare in mind, I’ve taken over the site from the previous
   designer and the client is no longer in contact with them). Here is the script
   in question below,
 * <h2>NEW FACES</h2>
    <?php
 * $query = new WP_Query( ‘cat=2&posts_per_page=2&orderby=date&order=DESC’ );
 * while($query->have_posts()) : $query->the_post();
 * ?>
    <div class=”model”> <div class=”model_image”>”><img src=”<?php echo get(‘
   images’,1); ?>” alt=”event agency london” id=”currentImg” title=”<?php echo get(‘
   models_name’);?>” height=”200″ /></div> <Div class=”model_name”> “><?php echo
   get (‘models_name’);?> </Div> </div> <?php endwhile; ?>
 * <?php

The topic ‘Changing Images Selection Scriptcode via Editor’ is closed to new replies.

## Tags

 * [change](https://wordpress.org/support/topic-tag/change/)
 * [editor](https://wordpress.org/support/topic-tag/editor/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [Scriptcode](https://wordpress.org/support/topic-tag/scriptcode/)
 * [selection](https://wordpress.org/support/topic-tag/selection/)

 * 0 replies
 * 1 participant
 * Last reply from: [jonelp](https://wordpress.org/support/users/jonelp/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/changing-images-selection-scriptcode-via-editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
