Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [images]

Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

0
votes
0answers
17 views

Blog images not showing on homepage

Forgive me as I am new to this. The Blog is a separate page while the menu has 'news'. The pages are set in the screenshot but still doesn't show the blog images in the news section of the home page. ...
0
votes
1answer
17 views

How do I link a featured photo to it's post?

I cannot change the url of the photo in the featured-image edit section. The page can be found at https://irregularus.com/tips-and-stories/ and if you click on the picture you will see that it just ...
0
votes
1answer
10 views

WPALLIMPORT Exporting images from repeater field

I am getting this ouput when I export the custom field image, s:267:"a:9:{s:10:"sm-field-0";s:4:"1228";s:10:"sm-field-1";s:4:"1229";s:10:"sm-field-2";s:4:"1230";s:10:"sm-field-3";s:4:"1231";s:10:"sm-...
0
votes
0answers
9 views

How to upload image meta tags through CSV

I am hoping you can help. I have searched forums low and high but unable to find the answer to my question. Basically I have over 600 product images in my woocommerce store that are attached to ...
0
votes
0answers
16 views

Can the WooCommerce image sizes be removed?

Is it safe to remove_image_size() on WooCommerce's built-in image sizes (woocommerce_thumbnail, woocommerce_single, woocommerce_gallery_thumbnail, shop_catalog, shop_single, shop_thumbnail)? I'd like ...
0
votes
0answers
10 views

Featured Pictures on Posts Option Missing

I have just discovered the update by wordpress, which would not allow me to see everything that needed to be edited on my pages and posts (the SEO and related boxes take up the middle of each page ...
0
votes
1answer
9 views

How to set a contact forms total size limit

I have a client who wants to be able to upload either one 30MB image, or several smaller images, which in total amounts to 30MB. Is there a way to solve this for Contact Form 7 or any other forms ...
0
votes
0answers
19 views

How to reduce the size of the pictures in the front page?

Good afternoon, For the front page of the website, I don't use a header image, I chose a static page. However, the pictures from the blog page that are used for the front page are too big. I would ...
0
votes
0answers
21 views

Hestia Header Image, Troubles When Sized To Contain

I have seen that this theme is responsive, and is following material design principles, but there are issue with the header image. I want the full header image to appear on the frontend, if i apply “...
0
votes
1answer
22 views

How to add an image to a theme page template in code?

So, I'm trying to do an update to a site's theme layout, and I'm not sure what exactly the right function to achieve what I want is. We have a custom theme that uses a page builder, and we can add ...
0
votes
2answers
27 views

Use image URL as background image

Hi i wish to use a URL for my background image not a image i have uploaded to my media library. The URL is https://cdn.shortpixel.ai/client/q_glossy,ret_img/https://hboneill.com/wp-content/uploads/...
0
votes
0answers
27 views

JPG Image extension not inserting into Custom table of wp

I've created a custom table on database and I need to upload image from my template page member. In this page I've done all the codings. I'm able to insert data but stuck on the image insert. I can ...
-1
votes
0answers
16 views

I'm failing to replace the demo-content placeholder image regardless of editing the shortcode [closed]

I have been trying for quite sometime to change the demo-content placeholder image by editing the short-code but no progress, I literally just replaced the image link in the short-code with my full ...
0
votes
0answers
10 views

Sharpen large images

Good evening. I would like to know how I can sharpen large pictures in the post header? I'm using the "ImageMagick Sharpen Images" plugin, but after my plugin configuration, only thumbnails on the ...
0
votes
0answers
20 views

Replace the WordPress Media Library Uploader

I would like to replace the WordPress Media Library Uploader within the admin section to use Filepond. Server Documentation is here plugin.php add_action( 'wp_enqueue_scripts', function() { // ...
1
vote
2answers
30 views

Change post featured image on hover

I've almost finished my first custom theme for a website. I've created some custom post type to manage a portfolio and a staff member section. No problem with the code, but the client asked if is it ...
0
votes
0answers
9 views

Problem with background css section [closed]

When i try to change section of the homepage, from [/cs_column][/cs_row][/cs_section][cs_section bg_color="hsl(0, 0%, 12%)" parallax="false" separator_top_type="none" separator_top_height="50px" gray ...
1
vote
1answer
18 views

Get thumbnail url of custom meta image?

I have a line in my child theme as follows: $bg_image = wp_get_attachment_url( get_post_meta(get_the_ID(), 'bg_image', true) ); It successfully provides me with the url of the image stored in the ...
0
votes
1answer
14 views

How to create an unordered list of images separate from the content

Some of the solutions I'd tried are 'multiple featured images,' and 'upload image gallery,' but they're either require plugins, are too convoluted, or make for terrible html syntax. I've looked ...
0
votes
1answer
10 views

I cannot upload images to post or the media library in wordpress

Whenever I try to upload featured image for a new post or edit featured image of the older post, the following errors comes up: An error occurred in the upload. Please try again later. Here I have ...
4
votes
1answer
66 views

Set default image link target in Gutenberg image block

I want to set the default target of the image block in Gutenberg to "Media File": I've found solutions for the classic editor, and one that appears to work for Gutenberg galleries by editing the ...
0
votes
0answers
14 views

Change picture attachment meta of all occurrences of a picture

I have a custom post type with multiple body copy boxes. I want to achieve the following. Add an image attachment to one body copy box. Add the same image to another body copy box by selecting it ...
0
votes
0answers
33 views

How to attach 1000's of unattached images

I imported a few hundred products with Shopmaster. All the images that were imported with the products are unattached. I want to use Media File Renamer to rename the images to the post title but it ...
0
votes
4answers
133 views

How to add css class to a specific set of images?

I am trying to understand how to add a class to a set of images in WordPress. Specifically I am trying to add a class, for example, .no-lazy-load, to exclude those images from being lazy loaded via ...
0
votes
0answers
9 views

getting the list of main product pictures

I want to remove the background from the main picture (the picture that shows up in catalog) of all my products. I want to get the list of these pictures. I know all the picture are in wp_posts table ...
0
votes
2answers
19 views

Get gallery in loop through ajax

So, calling this PHP from click through ajax I manage to display Title and content in my modal. But when the code gets to get_post_gallery it always returns null. $the_query = new WP_Query(array('p' ...
1
vote
1answer
23 views

Can't get images to align with Gutenberg editor

I am setting up a new site for a non-profit. The theme I chose uses the new Gutenberg only. I would like an image on the left and description on the right, with another image below that, with the ...
0
votes
1answer
48 views

What did I do WRONG?

WHAT did I do WRONG? I am most definitely NOT skilled with website building, but I try to do things on my own. I know ABSOLUTELY NOTHING about code and working with code. I decided to change the ...
0
votes
0answers
9 views

Center crop the feature image

Could someone help me to perfectly center crop the thumbnails(feature image) as showing in the picture
0
votes
0answers
13 views

Wordpress images programatically display error

We have a web where we add images programmatically (featured and post images). The problem is that post images does not appear at post page until the post is edited from admin panel (only must click ...
0
votes
1answer
49 views

How to float an image in Gutenberg

I am trying to make my first post in Gutenberg and I've discovered that aligning the image right around the blocks works in the editor but when I preview it is not floating right. Previously I had ...
0
votes
1answer
13 views

Non-existent child page URLs redirects to the image attachment URL instead of throwing 404

Entering a child page that does not exist will redirect to the image attachment page, specifically, the image attachment with the same slug. Say, entering example.com/cars/volvo-car/ will redirect to ...
0
votes
1answer
104 views

Gutenberg editor get post featured image by id

How can I show a post featured image by post id in gutenberg editor? I have a slider with latest posts and when I iterate through over posts I would like to show the post featured image as well. Here ...
0
votes
1answer
17 views

Number of Style for Image Added into Post

When adding an image through the GUI, an HTML element is created: <img src="http://example.com/images/leaf.jpg" alt="leaf graphic" title="leaf graphic" class="alignright size-medium wp-image-...
1
vote
2answers
114 views

How to modify an image block in Gutenberg WordPress 5?

Adding images to a post with the block editor: produces the code figure of: <figure class="wp-block-image"> <img src="http://localhost:8888/time.png" alt="alt text" class="wp-image-1391"...
0
votes
1answer
13 views

WordPress Link To Image Missing Dropdown

I am on the latest version of WordPress. When adding/editing a image in Wordpress there's the Link To Image which normally provides a dropdown menu. For me it's a blank text box and I don't know how ...
0
votes
0answers
28 views

Query all images with certain tag in media library using visual portfolio plugin

Introduction: I am developing a wordpress website and want to use the Visual Portfolio plugin (https://wordpress.org/plugins/visual-portfolio/). This plugin gives me the ability to display a gallery ...
1
vote
0answers
41 views

Retrieve an array of image URLs that belong to a gallery

I am creating an image slider for the gallery post type. The code below works fine with the classic gallery, however when I use the new Gutenberg gallery block the get_post_gallery_images() function ...
0
votes
1answer
25 views

WordPress Bootstrap dynamic carousel showing images separately not as carousel

I am trying to add dynamic WordPress-bootstrap carousel by category. It is showing images but not as carousel. All images are aligned vertically. Second, url is not working also. Please help me to ...
0
votes
0answers
14 views

Adding more than one image at a time

I used to be able to ctrl click on multiple images and insert them into my post. It seems that is not an option with the update. Can you please tell me how I can do this now, as it is something I do ...
2
votes
2answers
96 views

get_post_gallery with Gutenberg

I have a site where I created a page that takes the gallery images from a post and puts them into a slider. I used the following code: // gets the gallery info $gallery = get_post_gallery( $post-&...
0
votes
1answer
17 views

Can't see images in posts after migrating site to subdomain

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are ...
0
votes
0answers
24 views

Restrict media library uploads by user role

I'm currently using the "user role editor" pro plugin to restrict wp-admin features by user roles. I couldn't find any possibility to restrict media library upload by user roles. What I want is to ...
0
votes
0answers
14 views

How to stop image file names becoming image titles on upload

I have an issue where editors are uploading a gallery of images that they have downloaded from WhatApps or other sources. The file names become the image titles and then these crazy titles show up in ...
0
votes
0answers
9 views

Auto resize vertical image to horizontal image

If I uploaded vertical image into featured image. Is that possible to use any plugin to change its size to horizontal? Example from this to this
1
vote
0answers
22 views

I got an issue after i migrated a site

I recently migrated a site to a larger server. Everything appears to be fine, the site works everything transferred over. The site does have an SSL cert. Recently we started to get flagged as unsafe ...
2
votes
1answer
27 views

How to prevent resized featured images?

The theme has set thumbnail sizes for featured images: add_theme_support( 'post-thumbnails' ); add_image_size( 'hitmag-landscape', 1120, 450, true ); add_image_size( 'hitmag-featured', 735, 400, ...
0
votes
1answer
17 views

Have a rotating image covering body only on front page?

On the front side I wish to have, between the header and footer, 5-6 images that are rotating every x seconds. It would be great if it could span 100% of the width but it is also okay if it is just ...
0
votes
1answer
22 views

Change header image size

I have a header image which looks great on desktop, however, when accessing the site on a mobile device, the image gets cut off in the middle. How can I make it that the image automatically rescales ...
0
votes
0answers
11 views

Soft proportional crop short side

Is it possible to soft crop an image with custom-size along the short side of the image? Right now my images are used as background of a div with background-size: cover; after they are soft-cropped ...