Problem Aq_resize in loop
-
Greetings.
I am not proficient at writing in English, I am using a translator, I hope I can explain properly.
I have generated a cycle to show the post of a category, this is the code:
<ul class="category-section"> <?php $the_query = new WP_Query( $sublimation_data ); ?> <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> <li> <a href="<?php the_permalink(); ?>"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail( $sublimation_size ); } ?> </a> <h3> <a href="<?php the_permalink() ?>"> <?php the_title(); ?> </a> </h3> <p> <?php excerpt_long($excerpt_numb); ?> </p> </li> <?php endwhile;?> </ul>
It works correctly, but I want the image shown to be really cut to a size and not be a virtual measurement, when I inspect the element it tells me that the image shows “360 x 270 px” but the actual measurement is 768×576 and it is shown in url of the image.
How can I make an aq_resizer correctly and add to the cycle?
Thanks, I’m new to wordpress and php.
- This topic was modified 5 years, 8 months ago by .
- This topic was modified 5 years, 8 months ago by . Reason: code fixed - 1st backtick must be in col 0
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problem Aq_resize in loop’ is closed to new replies.