Template conflict with WC Payment Method

It could either be a browser compatibility issue (does it support the includes method?) or it could be that the id checkInputClass is not being used. Change the first line of the js to the following to ensure the element exists before further checks are done: var checkIfInputHasDefaultBehavior = $(“#checkInputClass”).length && $(“#checkInputClass”).css(“background-image”).includes(“url”‌​);

(WooCommerce) Conflict with template – Can’t load payment methods

Issues like this may be caused by either a conflict with your theme or with another plugin. You can read more about plugin and theme conflicts in the documentation here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/ The best way to determine if the issue is being caused by a theme and/or plugin is to do the following: Temporarily switch your … Read more

Nested Page Template not showing in page attributes

In WP 3.4 they allowed adding template files one level deep. Since then code has changed, however in wp-includes/class-wp-theme.php, in offsetGet() (from __get()) you’ll see: case ‘Template Files’ : $files = $this->get_files( ‘php’, 1 ); Although I can’t fully unravel the maze of code for loading a theme, the above suggests the second argument, $depth, … Read more

Is “the loop” a template tag?

The Template tag is just a name chosen for a variety of function. It doesn’t really matter what you call them, and they are functions. However, the while( ) loop itself is a simple PHP feature. It uses the have_posts method of the WP_Query() class to detect whether there is any posts to display or … Read more