i need to show featured post on custom taxonomy page

Syntax for your meta query seems to be wrong. Just as tax query, it should be array with array for each meta condition. Also use $query for your query functions: $args = array( ‘posts_per_page’ => 3, ‘post_type’ => ‘post’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘city’, ‘field’ => ‘term_id’, ), ), ‘meta_query’ => array( array( … Read more

Getting custom field data from cart page to checkout page in woocomerce [closed]

Solved by adding this code /** * Update the order meta with field value **/ add_action( ‘woocommerce_checkout_update_order_meta’, ‘my_custom_checkout_field_update_order_meta’ ); function my_custom_checkout_field_update_order_meta( $order_id ) { ?> <?php if ( ! empty( $_POST[‘from_comments’] ) ) { update_post_meta( $order_id, ‘FROM’, sanitize_text_field( $_POST[‘from_comments’] ) ); } } /** * Update the order meta with field value **/ add_action( ‘woocommerce_checkout_update_order_meta’, … Read more

How i can customize WordPress front page in WP dashboard editor?

You can use Elementor plugin. Elementor is quickly growing in popularity and is another impressive freemium page builder plugin for WordPress. With a good selection of widgets and page templates in the free version, Elementor is certainly competitive. So let’s find out if it should be your page builder plugin of choice.

Gtranslate function with custom menu

Link menu item with URL = #, Link Text = Global and add CSS Classes = gtranslate-parent to the newly created menu item. After that you can configure GTranslate and set Widget look = (Flags with language name/Flags with language code/Language names/Language codes) and it will appear as a dropdown when you hover on the … Read more

WooCommerce – item added to order not actually saved? [closed]

You have your duplicate_line_items() function written so that the items from the first parameter, $source_order are added to the second parameter, $new_order, but in your first block of code you’re passing the old order as the 2nd parameter: duplicate_line_items($new_order, $old_order); So all the items from $new_order are being added to $old_order, not the other way … Read more

WordPress and TTFB (time to first byte) stats

Unfortunately, load times are such a broad question it’s not possible for others to speculate. There are various page speed tools that can help you better understand whether it’s the server or the application, and there are query monitor plugins for WP you can use to determine what part of the application may be slowing … Read more