I found this similar question
but the solutions provided seems outdated.
I tried to use this
$sale_price_dates_to = ( $date = get_post_meta( $thepostid, '_sale_price_dates_to', true ) ) ? date_i18n( 'Y-m-d', $date ) : '';
but it returns
Anyone know how is the updated way of displaying end date of sale product in single product page?
- The topic ‘Display Sale End date in single product page’ is closed to new replies.