Schedule image post on download
Use transition_post_status instead. Reference: https://codex.wordpress.org/Post_Status_Transitions
Use transition_post_status instead. Reference: https://codex.wordpress.org/Post_Status_Transitions
There’s a couple functions to get different attachment parameters based on one another, but a cursory look doesn’t indicate there’s one to get one based on the Attachment Page URL. You could try and get the Post ID based on the Name (or Title) using the $wpdb class, and then drop that ID into the … Read more
The issue is that images URLs are stored in the database as a full URL; domain and all. When you move a site to a new URL, that doesn’t update the URLs in the database. So a ‘search and replace’ process is needed to go through the database and replace your www.olddomain.com with your www.newdomain.com … Read more
Responsive images are in WordPress core since 4.4 https://make.wordpress.org/core/2015/11/10/responsive-images-in-wordpress-4-4/ srcset and sizes are used to accomplish this. If your theme doesn’t implement these properly you will have to modify theme files. <?php // Specifying width of 400 (px) and height of 200 (px). $srcset = wp_get_attachment_image_srcset( get_custom_header()->attachment_id, array( 400, 200 ) ); ?> <img src=”https://wordpress.stackexchange.com/questions/318150/<?php … Read more
Since your theme puts a default image in place of a not-found image, it’s hard to tell why the images aren’t there. But, I’d suspect an error in the theme template that displays your blog page. You would need to look at the theme template code to see what code is being used to show … Read more
You will need to learn about the Template Hierarchy, which is the process that is used to select the code that ‘builds’ the page. Within the template is the code that will display images, content, etc. You will also want to learn about “Child Themes“, which is a way of customizing a theme without affecting … Read more
Use get_the_post_thumbnail_url() instead of wp_get_attachment_image_src() wp_get_attachment_image_src(): this function takes attachment id as first parameter
Got it : wp_update_post( array( ‘ID’ => $attach->ID, ‘post_parent’ => 0) ); to wp_update_post( array( ‘ID’ => $postID ‘post_parent’ => 0) );
In order to support Wide alignment, the theme needs to add support for it. In the theme functions.php file: add_theme_support( ‘align-wide’ ); Then both Wide width and Full width options will appear in the block toolbar.
Missing image size