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 only text to WordPress loop without loosing the text formatting
- get understrap pagination to work with custom query
- Replace existing content from specific WooCommerce admin orders list column
- Displaying Only Certain Tags in Loop
- Woocommerce filter cart and category specific quantity [closed]
- Way to display “Yesterday”, “Today”
- How to get woocommerce cart content without an action?
- WooCommerce: Add Payment Gateway Field to Webhooks [closed]
- multiple if statements [closed]
- Woocommerce product download URL
- Limiting woocommerce line_total decimal length
- have_posts() execution failure
- How does the ternary operator work in the wordpress loop post?
- How can I use wp_query to show all product data using just the products ID?
- Get stock by custom meta field on all Woocommerce variable products
- Set a condition based on WooCommerce checkout city field while placing order
- Call global variable array() in woocommerce child/template
- Remove price from Woocommerce variable product dropdown menu
- Get and insert order email address to the PHP template inside HTML text
- If no products are on sale – hide ID or class
- do search in two site and show the result in first site
- How can I pass a custom/dynamic product to the Woocommerce cart?
- how to refresh div on template part?
- Display category name only once inside loop
- How to remove woocommerce_breadcrumb() from do_action( ‘woocommerce_before_main_content’ ); [closed]
- wp_query get the 2nd post
- Add post with approval by the admin
- How to add div blocks after certain set of post
- Woocommerce display one random product via php
- How do I remove a category from a wordpress loop>
- Change product_base programmatically
- How to optimize update_post_meta?
- customize woocommerce templates and display store on home
- WC_Customer delete function returns error
- WordPress loop by meta key that is an array? and how loop multiple arrays
- CSS change in woo commerce Place Order Text [closed]
- Exclude product attributes from taxonomy terms loop
- WP All Import / Update stock quantity from multiple XML files
- Woocommerce: remove total sum from new order’s email [closed]
- Alter Woocommerce product archive structure
- custom post type with role Vendor
- WooCommerce: Display product categories to make IF statement
- Echo array value
- How to break up php code to avoid echo
- Modify WooCommerce used to get all orders in dashboard
- Replace category title with category description in woocommerce
- Add Custom Category Description When Empty
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- Add a product category to a specific product via a button
- Woocommerce display orders with products from specific categories to specific admins
- Products listing check if meta checkbox is checked
- Display div if category has a specific parent
- global $product is empty string when passed into function
- Use PHP Class in WordPress functions
- Don’t update modified post date when user add a product review or comment?
- How do I change the “login” label in My Account page to “Registered Customer”
- Customize the “Available for back order” text for specific variation
- How to remove the replace the product image by video on shop page conditionally
- Foreach Loop Of Post Types With Nested If Else If Not Completing Process
- get_filtered_term_product_counts – Get product terms if any products
- How to add custom attribute to all outofstock and all instock products automatically?
- Site infected by link
- Need to forward Data from WooCommerce Webhook sent to same site WordPress REST API custom endpoint
- Add Product Permalink in woocommerce admin order page
- sessionStorage saves input value in browser but it is not loaded in the form field
- Adding a widget under an ‘Add to Cart’ button through a PHP snippet
- How do if all posts has this category ID then do this
- ERR_TOO_MANY_REDIRECTS / To Force SSL Logins and SSL Admin Access
- WooCommerce – Add Shipping class below each product in Shopping Cart page
- View tag description on page
- WooCommerce Custom Tab with ACF Repeater Field
- Insert div after every three posts in home.php [duplicate]
- How to remove image on single product and get product to span page?
- How to have post count after each listed category
- How can I put a custom field as the link of a button shortcode?
- Transient Loop Not working as expected
- Custom Meta Box If Else Statement
- Conditional in foreach loop is outputting content twice
- Adding placeholder text field to woocommerce checkout [closed]
- is there away to hide php code in wordpress not to show in PAGES
- Getting custom field data from cart page to checkout page in woocomerce [closed]
- Send a custom notification to customer on WooCommerce cancelled order status
- How to code bulk order form in wordpress
- FATAL ERROR , Sommerce Theme [closed]
- Remove Woocommerce product from cart with ajax/fetch
- Automatically change insurance quantity based on cart total [closed]
- Why does WordPress not send the user the email to add a password?
- WooCommerce Modal Fly cart on add to cart – With AJAX
- Hide ‘Downloadable’ and ‘Virtual’ checkbox options from Woocommerce Variations?