Custom permalink structure for posts in specific category not working
Custom permalink structure for posts in specific category not working
Custom permalink structure for posts in specific category not working
How to change product SKU’s in bulk with a plugin
Remove element from admin page editing part
How do i create a switch for responsive devices?
That’s because the current menu classes aren’t applied based on the URL but instead based on the main query. For the homepage, instead use a homepage link block: You can edit it just link any other nav menu item or paragraph by clicking and typing on it directly:
As there is no option to style this block in the theme.json I remove the underline for every link with the follwing code: “styles”: { “link”: { “typography”: { “textDecoration”: “none” } } }
To set required fields in woocommerce when adding a product, you will need to use hooks to enforce validation before the product is saved // Function to validate required fields before saving product function custom_validate_required_fields( $product_id, $product ) { $errors = array(); // Check if Post Title is empty if ( empty( $product->get_title() ) ) … Read more
Good practices. When you pushing staging version to production environment, you do this though revision control system to update your files. When you need to update database structure, you use database migrations. This means you have 2 different web-sites, that uses two different databases, or, at least, each web-site use it’s own table prefix. Environment … Read more
Advanced Custom Fields Auto Populating Field Values For Nested Repeater FIelds
search behaviour in wp to only search by post tags and not return results for titles or content if the tag is not found. You can achieve this by customizing the search query using functions.php function custom_search_filter($query) { // Check if it’s the main query and it’s a search query if ($query->is_main_query() && $query->is_search()) { … Read more