echo '<li><i class="fa fa-clock-o"></i> <span class="post-date updated">' . get_the_date() . '</span></li>';
i changed it to this:
the_modified_date('j F Y', '<li><i class="fa fa-clock-o"></i> <span class="post-date updated">', '</span></li>');
but it still shows the published data.
my post is published on the 1st:
and I updated it on the 7th:
and the_modified_date() function, displays the published date.
am I doing something wrong? how can I fix this?
I think that you are using Parsidate plugin to convert dates to Hijri date. The plugin since the current version(2.2.2) returns the published date for both
the_modified_date functions. This is a bug that i reported it to them. For now, you can use the wp-jalali plugin instead, that solved the problem for me.