Hot answers tagged

2

Yes, this is a known problem between ios devices and Wordpress. It's a real issue due to the high numbers of iPhone/ipad users who also use Wordpress, and I'm surprised it hasn't been addressed in the Wordpress core. Looks like it's still being debated/ worked on here. It's a question that's been asked before here. As that answer notes, there are plugins ...


2

There's no need for the wp-content/themes path - both themes sit in the same directory, so you can just traverse up one and then back down to child theme: background-image: url(../child-theme-name/images/some-image.png); Update: Regarding your answer to "where is the CSS file stored", you inferred that the stylesheet resides in the child theme folder - in ...


2

I can already tell that you're using ACF - if you don't want to change the return settings for the field, you can bypass ACF and just pull the image ID directly from post meta: $image_url = get_field( 'my_field_name' ); $image_id = get_post_meta( $post->ID, 'my_field_name', true ); $image_meta = wp_get_attachment_metadata( $image_id );


2

If you add this to functions.php, this will update the options as set. function custom_image_size() { // Set default values for the upload media box update_option('image_default_align', 'center' ); update_option('image_default_size', 'large' ); } add_action('after_setup_theme', 'custom_image_size'); You can update the options as you need.


1

You would most likely need to use an plugin like Media File Renamer for that or change the image name before the upload.


1

That's the same media manager. The first image is what you see if you try to put a gallery into your page or post. The second is what you will see if you add a Featured Image, where the gallery tab would not be relevant.


1

Look in your theme structure, if it has single-post.php or single.php you can edit it, it shouldn't change the pages (but keep a backup just in case) If you don't have these, create it alternatively, if you only want it to work for a certain type of post, create a custom post type (you can do it manually or using a plugin such as ...


1

Its the way the photos are encoded and they sometimes respond differently on different devices/platforms. If the images aren't referenced in your posts, you can open them all in a program such as Adobe Bridge/Lightbox and bulk re-save them all. This should fix the issue, but is a bit more manual.


1

I highly recommend updating all of your URLS. This can be done either with a word press plugin such as Velet Blues Update URLS Or via your SQL database: UPDATE wp_posts set post_content=REPLACE(post_content, 'www.live.com/', 'www.test.com/'); note* images are uploadeded as posts in your database.* ( wp_posts table with a post_type of "attachment". )


1

This is some specific shortcode to some plugin, that if you just want to paste an image in wordpress editor isn't necessary. (Also there is not enough info about what this shortcode is about). So there is simple HTML that will simply display link you want as an image, following: <img src="http://here-goes-some-url-of-your-image" /> Make sure you ...


1

Update 1: After dived into core AJAX call, this filter will only happen on post.php page: add_filter('ajax_query_attachments_args', function($query){ if ( isset($_POST['post_id']) && !empty($_POST['post_id']) ) { $query['posts_per_page'] = 10; // output 10 images only. } return $query; }); You can use ...


1

I meant you should use wp_get_attachment_image_src() with your $cat_thumb_id. Try this: $cat_thumb_id = get_woocommerce_term_meta($cat->term_id, 'thumbnail_id', true); $cat_thumb = wp_get_attachment_image_src($cat_thumb_id, 'medium_large'); $cat_thumb_src = $cat_thumb[0] ? esc_url($cat_thumb[0]) : mytheme_catch_that_image(); ?><img ...



Only top voted, non community-wiki answers of a minimum length are eligible