Changing Images Selection in 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 in Editor’ is closed to new replies.