How to add correct Last update in Postings (the_modified_time)

You could compare post_date to post_modified and only echo your content if they do not match. // inside a Loop if ($post->post_date != $post->post_modified) { ?> <span style=”font-size:85%”>Last update <u><time datetime=”<?php the_modified_time(‘d-m-y’); ?>”> <?php the_modified_time(‘l j F, Y’); ?></time></u></span><?php } If you want “significant” updates, though, you will need to determine what counts as significant … Read more

Posting variables to WP database using $_POST method

Modify your code like this. It should work now. What you did wrong is both $curQuarter & $curYear is php variable not a part POST. you can directly use them. <?php $curMonth = date(“m”, time()); $curQuarter = ceil($curMonth/3); $curQuarter = $curQuarter-1; $curYear = date(‘Y/m/d’, strtotime(‘-14 day’)); $curYear = date(‘Y’, strtotime($curYear)); if (!empty($_POST)) { global $wpdb; … Read more