Include last post date in get_categories loop
Include last post date in get_categories loop
Include last post date in get_categories loop
Is there way to toggle the publish date display?
date format of custom date variable
wordpress built-in Jalali date convertor
Post date automatically +100 years into the future
Update existing post dates to random dates and time
Get post publishing date from within custom HTML block
A much simpler method to bypass these issues is using WP_Query: $popularQuery = array(‘orderby’ => ‘comment_count’, ‘posts_per_page’ => ‘-1’, ‘author’ => 1); $popularPosts = new WP_Query($popularQuery); while($popularPosts->have_posts()) : $popularPosts->the_post(); ?> <tr> <td><a href=”https://wordpress.stackexchange.com/questions/23820/<?php the_permalink(); ?>”><?php the_title(); ?></a></td> <td><?php the_author(); ?></td> <td><?php the_time(‘j M Y h:i A’) ?></td> <td><?php comments_number(); ?></td> </tr> <?php endwhile; Also note … Read more
The only built in way ( using a function) is to use WP Query and the custom field parameters, specifically meta_query and compare. http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters An example to get you started: $query = new WP_Query( array( ‘meta_key’ => ‘your_date’, ‘meta_compare’ => ‘=’ ) ); Alternatively, the custom field functions in WordPress do not have many parameters, … Read more
I found the following solution: SELECT wposts . * FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = ‘datum’ AND wposts.post_type=”optredens” AND wposts.post_status=”publish” ORDER BY wpostmeta.meta_value ASC As other query_posts() methods / alternatives did not work very well.