I am writing this as I spent ages trying to find the answer in WPML documentation and forums and couldn’t find it. It was actually very simple.
Continue reading "WPML: Forcing the language in the WordPress admin area"
I am writing this as I spent ages trying to find the answer in WPML documentation and forums and couldn’t find it. It was actually very simple.
Continue reading "WPML: Forcing the language in the WordPress admin area"
If you have added custom product data tabs to your woocommerce install, then you might have noticed that they don’t work well on a small screen. In this post I will modify the default tab template with a responsive design to make the tabs stack nicely on a mobile device.
Continue reading "Responsive Product Data Tabs in WooCommerce"
I needed to sort the custom posts in a REST API response by a meta value, this is how I did it.
I spent ages looking for an answer to my question of how to implement this, I knew that it was possible but I couldn’t seem to find the right answer anywhere. So I’m posting it here for my future reference and in case anyone else finds it.
Continue reading "How to filter WordPress REST API for custom post type by taxonomy slug"
Ordering posts by menu_order doesn’t work out of the box with the WP REST API. To enable this you need to add a filter to rest_{post_type}_collection_params
for each post type you want to order by menu_order.
Continue reading "WordPress REST API post orderby custom value"