-1
votes
0answers
16 views

How to add size attributes to wordpress ACF image loop? [on hold]

I am simply trying to use a medium thumbnail size for the background-image in my advanced custom fields gallery. I am fairly new to wordpress and understand conceptually what I need to do, however I'm ...
0
votes
1answer
26 views

Generate responsive post thumbnails of same size

I am using a function to display related posts in my wordpress theme with their thumbnail. I am using uikit to make my theme responsive. Uikit offers a grid feature similar to the bootstrap one, and ...
5
votes
1answer
73 views

Change the filename format of saved featured images

Does anyone know how I could change the way wordpress saves the featured image's additional image sizes? Right now I have the main image saving like so: test_builder_banner_2.jpg and for each ...
-1
votes
1answer
37 views

add if statement to the featured image

I have a featured image. I want to add an if statement to the size. For example, if the featured image height exceeds 500px I want to add something. Is that possible ?
0
votes
0answers
49 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
0
votes
1answer
730 views

Display post thumbnail in foreach loop

I am trying to display a thumbnail in a foreach loop. The thumbnail is a new image size I have added called "plant-thumb". I have all the desired elements displaying properly except for the thumbnail. ...
1
vote
1answer
2k views

How to scale image with equal width and height without distortion?

I have a section on my frontpage that querys through recent posts and grabs the title and thumbnail of each. In my functions.php, I've specified a width and height for the thumbnail using: ...
5
votes
2answers
762 views

Adding a custom image upload size and making it selected by default?

How can I add a custom image upload size with a width of 550px and make it selected by default in the Add Media page? Currently, there are 4 sizes available: Thumbnail, Medium, Large and Full Size. ...