jaxwtf
Forum Replies Created
-
This seems to be the case, thank you for fast repsonse!
Yes its 0. Ive changed to 2 now.
Forum: Plugins
In reply to: [Price Based on Country for WooCommerce] Not working in rest api (anymore)Same here! Far as I understand, the problem is that following hook only fires in frontend but not the api:
class-wc-product-price-based-country.php:236
add_action( ‘woocommerce_init’, array( $this, ‘frontend_init’ ), 999 );Forum: Developing with WordPress
In reply to: What hooks to get attachment media in 5.3?I can confirm that filter wp_generate_attachment_metadata will solve the issue.
- This reply was modified 4 years, 10 months ago by jaxwtf.
Forum: Plugins
In reply to: [Yoast SEO] Sitemaps does not work, just empty listsI think this should be a setting so you can change this by yourself.
Forum: Plugins
In reply to: [Yoast SEO] Sitemaps does not work, just empty listsI found the problem! It turns out Yoast sitemaps exlcudes pages that does not have same domain as WordPress. This is major issue since we’re using WP as a headless CMS. What is best practice here?
WP has domain cms.domain.com
The PWA has only domain.comCode that excludes this in class-post-type-sitemaps-provider.php:631:
if ( $this->get_classifier()->classify( $url[‘loc’] ) === WPSEO_Link::TYPE_EXTERNAL ) {
return false;
}Forum: Plugins
In reply to: [Custom Post Type UI] Taxonomy does not show up in Gutenberg editorI had same problem without errors. Since we’re using WP as headless CMS to a PWA, the cache for the API was the problem. After I cleared API cache it started to show in panel.
Forum: Plugins
In reply to: [Crop-Thumbnails] Medium, large sizes not available for crop in settings?Volkmar, that is a bad idea. When you develop you want to use the standard formats first to use small amount of custom size. It’s very common that you redine standard formats to crop and then you may need crop feature on these as well.
I think this should be an option in settings. This is how I solved it with a dirty and temporary hack:
Change row 6 in settings.php:
private $defaultSizes = array('thumbnail','medium','medium_large','large');
to:
private $defaultSizes = array();
- This reply was modified 7 years ago by jaxwtf.