After reinstalling wordpress images do not appear in posts?

I am assuming you used the WordPress Importer? Did you select the “Import images” option? I think this would solve your issue. To clarify on the issue: Your images were not imported in the wp_posts database. They are stored in there as an “attachment” post type. The WP Gallery Shortcode references the id of each … Read more

Resize External Image

I wrote this function for you, which will first make a copy of the external image, crop it , and return the ID of it: function external_image_loader ($image_url, $post_id, $title) { $img_name = basename ($image_url); global $wpdb; $query = “SELECT post_id FROM {$wpdb->postmeta} WHERE meta_value=”$img_name””; $id = $wpdb->get_var($query); if (is_numeric($id)) { return $id; } else … Read more

How can I add bigger image in my blog post?

Seems like you have fetched the thumbnail size image. You can fetch/show the full image url that you have uploaded using $imgsrc = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), “full” ); $imgsrc = $imgsrc[0]; echo $imgsrc; Hope that helps!!

Modify media file markup output

WordPress has a filter image_send_to_editor which lets you modify the html that is generated by the media editor. Usage: add_filter (‘image_send_to_editor’, ‘wpse264886_filter_image’, 10, 8); function wpse264886_filter_image ($html, $id, $caption, $title, $align, $url, $size, $alt) { $html=”<span> … </span>” . $html; return $html; } This will insert the spans always, however, not only when there is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)