Anton Vanyukov
Forum Replies Created
-
Forum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] 404 Crawled PagesHi @demian85,
This is not coming from the plugin. Those pages are not there, by the way. You can check where they were indexed from the Google Search console.
Best regards,
AntonForum: Plugins
In reply to: [Market Exporter] Выгрузка одной категории с подкатегориейНет. Вот как-то так:
add_filter(‘me_exclude_post’, function ($exclude, $post, $product) {
$excluded_categories = array(‘no-use-cat’, ‘any-category’);
$categories = get_the_terms( $product->get_id(), 'product_cat' );
return empty(array_intersect($excluded_categories, $product_categories));
}, 10, 3);Но я не проверял работоспособность. Просто пример структуры фильтра
Forum: Plugins
In reply to: [Market Exporter] Выгрузка одной категории с подкатегориейК сожалению, фильтра для работы с категориями нет. Но есть вот такой:
apply_filters( 'me_exclude_post', false, $query->post, $product )
Можно проверять категории вот так:
$categories = get_the_terms( $product->get_id(), 'product_cat' );
И пропускать товар, если он принадлежит одной из заданных категорий
С уважением,
АнтонForum: Plugins
In reply to: [Market Exporter] Выгрузка одной категории с подкатегориейДобрый день,
Да, в настройках можно выбрать подкатегории для выгрузки
С уважением,
АнтонSpecifically in this case – they should not be lazy loaded, because they are inside the viewport during page load. Lazy loading images in the view port can lead to a decreased LCP.
I think, the issue is that the images use relative paths, which my plugin is not able to detect. Are you able to convert the image paths to URLs?
Hi @lazymeow,
Unfortunately, I can’t check your website – there’s a fatal error on the provided link
Best regards,
AntonHi @odysseyphotos,
Sorry for the delay reply. Yes, there’s a
wp cf-images offload
WP CLI command you can use to offload images.Best regards,
AntonForum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Settings DocsHi @cptkoolbeenz,
I have this guide on the setup: https://vcore.au/tutorials/how-to-setup-cloudflare-images-plugin/
Most options should be self explanatory. But you can ask here. I try to reply within 24 hours on most tickets.
Best regards,
AntonHi @levib,
Could you please provide some steps to replicate? I don’t think I have this issue.
Best regards,
AntonForum: Plugins
In reply to: [Market Exporter] НаценкаРабочее решение. Тогда я оставлю фильтр в плагине. И при обновлении Ваш код сохранится.
С уважением,
АнтонForum: Plugins
In reply to: [Market Exporter] НаценкаДобрый день!
Я могу добавить этот же фильтр для товаров со скидкой. В папке платина в файле
includes/class-attributes.php
на строчке 123 замените:$yml .= $this->add_child( $old_price, $offer->get_regular_price() );
на
$yml .= $this->add_child( $old_price, apply_filters( 'me_product_price', $offer->get_regular_price(), $offer->get_id() ) );
Это должно помочь. А я добавлю этот фильтр в следующем релизе.
С уважением,
АнтонForum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] WP Admin Images not OffloadedHi @kebom,
By default images are not fully offloaded. You can enable full offload via experimental settings, however, please read this: https://www.ads-software.com/support/topic/offloading-specific-paths/#post-18066296 and make sure you understand what you are doing. You will not be able to automatically revert back.
Best regards,
AntonForum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] Cloudflare VariantHi @odysseyphotos,
The plugin will attempt to pick up the image dimensions from the
img
tags. Your images have a setwidth="2560"
andheight="1707"
values, so those get used on the image.You can try to enable the page parser option in the plugin settings and disable the “Use img width size”, this will attempt to override the values. But I can see that you are also explicitly setting full size images on all elements, so that might not help, unfortunately.
Best regards,
AntonForum: Plugins
In reply to: [Offload, AI & Optimize with Cloudflare Images] API errorI don’t mind adding this option in, but for the majority of users paying for serving SVG images via Cloudflare is not worth the perceived benefit. SVGs don’t produce attachment sizes and, for the most part, are relatively small.
Best regards,
Anton