// 1 Get Sticky post record by wp_query post__in and taxonomy tax_query parameter # ‘; ?> // 2 Get posts exclude Sticky posts by wp_query post__not_in and taxonomy tax_query parameter # // 3 Exclude specific Category Posts from result by use wp_query operator NOT IN # // 4 WP_Query for fetch CPT event Order… Continue reading Useful WP_Query example in WordPress
Category: Wordpress
Error in xml sitemap with yoast seo plugin WordPress
Like today our WordPress Developer team fetch issue in one of our client’s leading wordpress site as XML sitemap generated by WordPress Yoast SEO plugin not work well and on hit sitemap page url it show error like below instead of well form xml sitemap feed. This page contains the following errors: error on line… Continue reading Error in xml sitemap with yoast seo plugin WordPress
Exclude Posts Pages or Specific Post from Search Result in WordPress
Hello WordPress Developer Sometime you may have requirement or your client requested to exclude specific post, page fro WOrdpress search result or completely Exclude Posts or Pages or Custom post type records from search result and display search records only records from specific post type like Posts or Pages or CPT than you can achieve… Continue reading Exclude Posts Pages or Specific Post from Search Result in WordPress
WooCommerce set minimum cart value limit and add surcharge if Cart value low
In WooCommerce base online shopping site Some time you or your client would like to set minimum cart value, and add additional surcharge in Cart total if Customer Cart value ( sum of added Item into cart ) isĀ not equal more than minimum limit. # add_action( ‘woocommerce_cart_calculate_fees’,’ls_woocommerce_custom_surcharge’ ); function ls_woocommerce_custom_surcharge() { global $woocommerce; if… Continue reading WooCommerce set minimum cart value limit and add surcharge if Cart value low
Configure WooCommerce Cache with W3 Total Cache
To improve website performance you or your client used W3 Total Cache plugin in our website and website running with woocommerce plugin to sell products or any kind services. than you may find issue as Add product to cart, Cart display or check out process not working well after activate or configure W3 Total cache… Continue reading Configure WooCommerce Cache with W3 Total Cache
How to hide PHP Warnings and Notices in WordPress
We Developer many time fetch problem with warning message that display on front end site. Warning is like notification and completely different than Errors. Error stop page from rendering in browser while warning not cause issue in script execution but display message with message with prefix WARNING :. So in most of cases of Warning… Continue reading How to hide PHP Warnings and Notices in WordPress
Jetpack auto tweet post with custom message and hash tag
Jetpack is very powerful plugin in Worpdress and offering number of features functionality. one of them best useful is Auto share post on social media site. when ever you publish new post it automatically share to all social media accounts that you connected with your website from Wp-admin >> Settings >> Sharing (Only link available… Continue reading Jetpack auto tweet post with custom message and hash tag
Display Website Search box in Google Search Result – Sitelinks Search Box
I hope during search for some websites specific result you seen that site search box also shown in between google search result list – its called Google Sitelinks Search Box Check now with Practical : Open Google.com and in Search Box type flipkart.com. within a moment of typing over you should see one more Flipkart… Continue reading Display Website Search box in Google Search Result – Sitelinks Search Box
Display CPT News in Group of 3 using shortcode WordPress
Display record in group of specific count is some time difficult while you are going to display it with blockquote, ul etc Tag instead of simple Div tag. because in this case it is required that Opening tag must be closed to display it in well format without miss configured it structure. In Below example… Continue reading Display CPT News in Group of 3 using shortcode WordPress
Custom post type in WordPress
Custom Post Type (CPT) in wordpress is very interesting facts to achieve what ever you want to implement in your website that developed base on WordPress Platform. instead of adding your specific category in default wordpress post type you may create your own custom post type and display it with SEO friendly url with category… Continue reading Custom post type in WordPress