WordPress.org

Forums

Advanced Custom Fields
sort by date picker (1 post)

  1. yortem
    Inactive
    Posted 1 year 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?

    http://wordpress.org/plugins/advanced-custom-fields/

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

Tags

No tags yet.