Title: [Plugin: Advanced Custom Fields] Sort
Last modified: August 20, 2016

---

# [Plugin: Advanced Custom Fields] Sort

 *  Resolved [aglakimsmith](https://wordpress.org/support/users/aglakimsmith/)
 * (@aglakimsmith)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-sort/)
 * Hi, I’m pretty new to wordpress and I’m still trying to figure out codes. If 
   there’s someone out there that can help, I really appreciate it.
 * I downloaded this plug-in and it seems to be exactly what I am looking for. I
   have two questions:
 * 1. How can I make the custom fields show up on my post. The fields are there 
   in the dashboard, but not on the post itself when viewed.
 * 2. My custom field is “Date”. Is there a way that I can sort my post by this 
   field. I would like the oldest dates to show up first when my page is viewed.
 * Thank you very much for reading this and a possible solution.

Viewing 1 replies (of 1 total)

 *  Thread Starter [aglakimsmith](https://wordpress.org/support/users/aglakimsmith/)
 * (@aglakimsmith)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-sort/#post-2724822)
 * For what I was trying to do, I found this solution. I’m sure that it is not the
   best way, but it is what I came up with. I fixed a required custom field called“
   edate” and then I sorted the dates ascending. If someone has a better solution.
   I would gladly look and learn from it.
 * >  <?php
   >  global $query_string; query_posts($query_string . ‘&meta_key=edate&
   > orderby=meta_value&order=asc’);
   > if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Advanced Custom Fields] Sort’ is closed to new replies.

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [advance custom fields](https://wordpress.org/support/topic-tag/advance-custom-fields/)

 * 1 reply
 * 1 participant
 * Last reply from: [aglakimsmith](https://wordpress.org/support/users/aglakimsmith/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-advanced-custom-fields-sort/#post-2724822)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
