Advanced Custom Fields
I add a "Date Picker" but show nothing (1 post)

  1. imtop10
    Posted 3 years ago #

    I add a Date Picker custom filed “updated" to show a date,if "updated" is empty,it shows modified date,else show the "updated" date.Why it is blank when "updated" is not empty?I use this code:

    	$date = get_post_meta($post->ID, 'updated', true);
    	$date = the_modified_date('F j, Y');

    See the page here,now it is blank for the "updated" item.
    While I use this the_field('updated'); instead of get_post_meta($post->ID, 'updated', true); it shows both of them.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic