How display modified date of most recent modified post in wordpress?

This works for me. Place this in your functions.php file: function prefix_last_modified_date() { $last_modified_date = null; $args = array( ‘post_type’ => ‘post’, // could be page, or a CPT ‘orderby’ => ‘modified’, ‘post_count’ => 1, ); $last_modified = new WP_Query( $args ); if ( $last_modified->have_posts() ) { $last_modified->the_post(); $last_modified_date = get_the_modified_date(); } wp_reset_postdata(); return $last_modified_date; … Read more

Local Post Date in WordPress Admin Panel Tables

Column filter: The filter for modifying, removing or adding columns to post list in WordPress admin panel is manage_{$post_type}_posts_columns. Exchange {$post_type} with the desired post type. For example; if you want to edit columns for post type ‘post’, the filter name would be manage_post_posts_columns. And for a custom post type ‘product’, the filter name would … Read more

Display Author Registration Date

How about reformat it instead of stripping? //Get post author ID $post_author_id = get_post_field( ‘post_author’, $post->ID ); //Get the registration date $registered_date = get_the_author_meta( ‘user_registered’, $post_author_id ); //Convert to desired format $output = date( ‘F j, Y’, strtotime($registered_date)); //Echo echo $output;

Return date in French

Bonjour 🙂 you can use the function date_i18n, e.g. like this $dateToDisplay = time(); echo date_i18n(get_option(“date_format”), $dateToDisplay); look in the codex for more informations https://codex.wordpress.org/Function_Reference/date_i18n

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)