Use the following function to reset queries wp_reset_query()
How to Convert or Change Custom Post Types in WordPress
January 4, 2022
Convert or Change Custom Post Types in WordPress Type and search the following plugin and install it into your WordPress website – Post Type Switcher… Read More →
Delete All WooCommerce Products With MySQL
January 3, 2022
Use the following query to Delete All WooCommerce Products DELETE relations.*, taxes.*, terms.* FROM wp_term_relationships AS relations INNER JOIN wp_term_taxonomy AS taxes ON relations.term_taxonomy_id=taxes.term_taxonomy_id INNER… Read More →
Including CSS and JavaScript in WordPress – The Right Way
December 1, 2021
In WordPress, there are a few different ways to include CSS and JavaScript in your site. Here are some options: Enqueueing Scripts and Stylesheets: This… Read More →
How do I get ACF options page on WordPress website ?
November 2, 2021
To get ACF options page on WordPress website use the following code on your functions.php file – if( function_exists(‘acf_add_options_page’) ) { acf_add_options_page(array( ‘page_title’ => ‘Theme… Read More →
Get woocommerce carts total amount
November 2, 2021
To Get woocommerce carts total amount use the following code WC()->cart->get_cart_total()
WordPress shortcodes have revolutionized how developers and content creators add dynamic functionality to websites without writing complex code. While shortcodes work seamlessly within posts and… Read More →
How to Remove Version from CSS and JS in WordPress / Remove Version Number From CSS – JS
October 8, 2021
Use the following code to Remove Version from CSS and JS in WordPress function remove_css_js_version( $src ) { if( strpos( $src, ‘?ver=’ ) ) $src… Read More →
For modern content marketers and website owners, maintaining a high level of user engagement is paramount. While chronological ordering ensures that your audience sees your… Read More →
How to Limit Excerpt Length in WordPress Posts Programmatically?
September 30, 2021
You Limit Excerpt Length in WordPress website the following ways.. Way 1 Use the following code in your theme function.php file. function custom_excerpt_length( $length )… Read More →