WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
WordPress 3.0 PHP Error – notice WordPress_product_Type was called incorrectly
This worked perfectly for me! The goal was to get a button that would filter my search results by post category and the above solution works exactly how I wanted it to.
Woocommerce variation with radio button + price
After reviewing a reset password link, I realised that two variables were being passed via $_GET: key and login. I’ve added the below code to the beginning of my redirect_user() function: if(isset($_GET[‘key’]) && isset($_GET[‘login’])) { return ; } It didn’t fix the issue and i was still being redirected to the login page whenever I … Read more
Add these two lines to the bottom of your wp-config.php. Right above the line that says to stop editing. define( ‘WP_HOME’ , ‘http://localhost/public_html’ ); define( ‘WP_SITEURL’ , ‘http://localhost/public_html’ );
WP determines template file by following Template Hierarchy. The process has quite a few steps between URL and resulting PHP file loaded, so generally one is not a reliable indication of the other. Outside of looking through likely template files (good enough in a simple theme) you can try dumping this with code in template_include … Read more
It looks like you have read thru the WP Codex, so you have basically set things up right. A couple little things I would suggest: Make sure the URL var is correct You are using sliderData.adminAjax to point to the AJAX URL. I have always been able to simply use ajaxurl because WP defines it … Read more
In order to create a section, it must have a control, and each control requires a unique control id, you are passing the same control id image to both of your controls and hence it will create a control for the last one, and ignore the previous one. Therefore your first section does not get … Read more
It seems like you are setting up the common Chart Options in a JS file but as all the charts are going to have different footer caption you shouldn’t set it as a common option. As you specified that the post has three charts that means the captionLabel JavaScript variable is getting declared and being … Read more
Try this: add_action( ‘genesis_loop’, ‘bds_more_projects_query’ ); function bds_more_projects_query() { if ( is_singular( ‘portfolio’ ) ) { $categories = get_the_terms( $post->ID, ‘portfolio_category’ ); $cat_ids = array(); foreach ( $categories as $category ) { $cat_ids[] = $category->term_id; } $args = array( ‘post_type’ => ‘portfolio’, ‘posts_per_page’ => 4, ‘tax_query’ => array( array( ‘taxonomy’ => ‘portfolio_category’, ‘field’ => ‘id’, … Read more