How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?

The problem is that your JS needs to know the post type for each shortcode, but rather than looking at the shortcodes output, it looks at the main global kne_ajax_object, and since there is only one kne_ajax_object, there can only be one post type. Additionally, your javascript code only runs one time, and only makes … Read more

Shortcode to include PHP file, pass various parameters to include?

Thanks for your comments and guidance. I implemented solutions which didn’t reinvent the wheel. The complication was finding a way to remove the [insert_php][/insert_php] wrapped code from pages and posts and still preserve the content and user experience. Custom Template Pages Pages and Posts which were almost entirely PHP were made into custom template files. … Read more

help me remove this additional parameter in url

The issue is caused by woocommerce. Woocommerce has a setting called Geolocate (with page caching support) which adds this parameter to every your url. The said option can be found in your dashboard at: Woocommerce → Settings → General → Default Customer Location Selecting any option apart from Geolocate (with page caching support) should resolve … Read more