Title: Custom Data Values
Last modified: August 31, 2016

---

# Custom Data Values

 *  [kayshah](https://wordpress.org/support/users/kayshah/)
 * (@kayshah)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-data-values/)
 * Hello,
 * This is a very powerful and very easy to use plugin for displaying custom fields
   values.
 * I have a query and I am not sure how to proceed, I have created a custom post
   type called Conferences
    I am using Advanced custom field to capture conference
   start date and end date date picker
 * I want to show upcoming events on my page in a below format
 * Apr 10-12 Post Title…
    May 2-3 Post Title..
 * My question here is how do I Fetch the Apr from the conference start date field
   and show only first three characters of the month in the page?
 * for this I used your short code as below
    [loop type=conferences field=date_and_time_field][
   field conference_start_date]-[field conference_end_date] [field title-link] [/
   loop]
 * Any Help will be Appreciated
 * Thank you
 * [https://wordpress.org/plugins/custom-content-shortcode/](https://wordpress.org/plugins/custom-content-shortcode/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * (@miyarakira)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-data-values/#post-7345321)
 * You can use the _date\_format_ parameter. The syntax is a bit hard to remember(
   [reference here](http://codex.wordpress.org/Formatting_Date_and_Time)).
 * `[field conference_start_date date_format='M j']-[field conference_end_date date_format
   ='M j']`
 * The above will show: `Apr 10-Apr 12`. The repeating month name seems unnecessary,
   but if you do it like this:
 * `[field conference_start_date date_format='M j']-[field conference_end_date date_format
   ='j']`
 * It assumes that the end date will always be in the same month as the start date.
   I think it would be tricky to only display the month name if the end date is 
   in the next month.

Viewing 1 replies (of 1 total)

The topic ‘Custom Data Values’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Eliot Akira](https://wordpress.org/support/users/miyarakira/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/custom-data-values/#post-7345321)
 * Status: not resolved