First of all, get_price_html()
outputs html code for product price. To get sale price specifically, use get_sale_price()
instead, and get_price()
to get regular price.
Use Chrome web dev tool to inspect for any php error. The Loop breaks after outputing title, so my guess would be to look for error there.
Related Posts:
- get product attributes for current product and store it in a variable
- Woocommerce, recognize the loop of related products
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- How to select WooCommerce products by post_meta and order them
- Displaying Woocommerce Product Category in WordPress
- WP_Query multiple post results
- Convert Featured products loop into Recent products loop?
- Display all categories including sub categories under a list ul
- Adding new divs with custom classes to products on WooCommerce shop page [closed]
- Display product attributes for current product
- Woocommerce linking variations
- Display a specific category of products in shop page and disable code for specific actions
- If no products are on sale – hide ID or class
- Woocommerce related product text
- Woocommerce api: create product with images – bad request
- Trying to build simple deposit code that hooks into woocommerce
- WooCommerce Webhooks not firing because of error in wp-includes/meta.php
- Different Minimum Order Amounts based on Shipping Zone [closed]
- Iterate through posts based on array of categories
- do search in two site and show the result in first site
- Woocommerce: hook action/filter I could use to add variation id and price with each attribute opt on WooCommerce Rest api
- Add a product to checkout via form
- Trying to place a custom field after the total section in the checkout page in woocommerce
- WordPress default Search function inconsistent in WooCommerce Product Titles
- get author_name from queried post
- Which field should I edit to make the checkbox marked by default?
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- WooCommerce: How can I get orders with a custom ID in order meta data object?
- wordpress + woocommerce display product with additional information [closed]
- how to fix error “called incorrectly, should not be accessed directly”?
- How can I add extra word in permalink when someone click download button?
- Function works when I don’t login to WordPress but when I login then it doesn’t work
- How to auto fetch customer details in Woocommerce in checkout page
- Displaying custom taxonomy on WooCommerce product page
- Sum the total amount of a specific product purchased per user and display in table
- Increase offset while looping
- Change “add to cart” button color based on Woocommerce product category [closed]
- How can I get the values of my WordPress $wpdb query in Jquery?
- How can I pass a custom/dynamic product to the Woocommerce cart?
- Blog posts repeat
- Add to cart function not working for first product when cart is empty [closed]
- I want to add custom add to cart link [closed]
- How to make products with no cost in WooCommerce
- How to add condition in wordpress loop? [closed]
- WooCommerce custom product dimensions
- How to set variable, pass it to a partial file and remove it after?
- how to refresh div on template part?
- Trouble checking if custom woocommerce checkout field is empty or not
- Incorrect amount of posts returned when filtering related Woo products by custom taxonomy
- Validation algorithm in checkout field
- Alert Bar section within WP loop is displaying even though there are no posts
- remove post that has no content
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Display category name only once inside loop
- My new button is in the wrong place
- Can’t find infinite loop cause
- Checking array against author id in loop
- How do I Turn This Into An if statement?
- WordPress Woocommerce – Product Type [closed]
- Load wordpress content in other domain
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Checkbox doesn’t stay checked, conten
- Pagination for custom shop loop woocommerce
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- post thumbnail, conditions, else wont work
- Widgets in the loop if active
- List posts that don’t have a specific tag?
- Changing the_posts_navigation() html output
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- Can we count the WordPress Loop
- Get post id within comments loop
- Woocommerce change prices for a certain country [closed]
- How to get private property in parent class into extended class?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- WP_Query fails despite having 1 post
- echo something inside a shortcode
- Replace Woocommerce “add to cart” to be “Download” button [closed]
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Add content after the first post in WP Loop
- wp_query get the 2nd post
- get taxonomy thumbnail and use it as a variable in code
- Woocommerce Email attachments not working – file not being attached
- Function returns text instead of html [closed]
- Loop stopped working
- Extend Woocommerce Widget Class – WC_Widget_Product_Categories
- How to get post ID in a Page?
- Single Quotes in .php file doesn’t load website
- Add post with approval by the admin
- Custom Pagination is Broken
- Display an image if odd number of posts in grid
- How to loop through all the attached images in a post, and get their url one by one
- I’m trying to create an array with a foreach loop, but the array only stores the last item [closed]
- get_total () returns 0 – woocommerce [closed]
- PHP Warning: strip_tags() expects parameter 1 to be string?
- How to remove coupon dropdown feature
- Store post content in a php variable and output them using for loop
- How to add div blocks after certain set of post
- Echo a shortcode div after every 3 posts
- How to avoid duplicates when creating recent network posts
- How to overwrite orderby with add_query_var