Stack Exchange Network

Stack Exchange network consists of 175 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

Hot answers tagged

2

Obviously, I imagine you already checked cron jobs. No one can tell you, but whenever you have an issue and you're wondering "what the hell is interacting with my system?" and that part that's problematic (in your case, the deletion of the image) has actions inside of it, we can see what called that specific deletion. So let's see how this applies in your ...


1

Depending of what you are exactly trying to achieve accessing the first element of the $posts array may work for you. No need for the foreach loop. echo '<img src="'.$posts[0]['img']['url'].'">';


1

Do you want changes in this :--- get_field('4', $term->term_id) If this get_field('your_acf_field_slug_name', 'term_'.$term->term_id); or get_field('your_acf_field_slug',$term->term_id). You can use this reference also :--- https://support.advancedcustomfields.com/forums/topic/get-custom-taxonomy-field-value/ // Yours worked Answer $icon = ...


1

my final code that worked quiet brilliant $va_category_HTML .='<li '.$carrentActiveClass.'><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a>'; $icon = get_field('firma_image', $term->taxonomy . '_' . $term->term_id); $va_category_HTML .= sprintf('<img src="%s" />',...


1

Image Hotspot by DevVN and Interactive Maps might have what you're looking for!


1

You're not outputting any attributes besides the src and class. Try using the_post_thumbnail() instead. <?php the_post_thumbnail( 'post-thumbnail', array( 'class' => 'img-responsive' ) ); ?> This will include all attributes and supports responsive image markup by default.


1

(this should be a comment, but my reputation is too low) Setting jpeg_quality will not disable compression because it does not disable processing. JPEGs will be always compressed, and they are almost never lossless, not even at 100 - it does not stand for "100% original quality". What happens here, is that WordPress's default image processing does not ...


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