The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Advanced Custom Fields
sort by date picker (1 post)

  1. yortem
    Posted 2 years ago #

    i have this code :

    <?php $catPost = get_posts(array('category'=>get_cat_ID( '' ),'numberposts'=>1));?>
    <?php foreach ($catPost as $post) : setup_postdata($post); ?>

    that take the last post i added.
    i want it to take the post with the lastest date in the costum field

    how can i do that?


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


No tags yet.