Thank you for the reply @sansolo. And, thank you for presenting the documentation.
However, I have little knowledge of PHP syntax.
I would like to add this PHP to meta.
<?php if ( get_the_time('Y/m/d') != get_the_modified_date('Y/m/d') ) {
//If the date and mod date are not the same,show modified?>
<li class="meta-mod-date"<?php oceanwp_schema_markup( 'modified_date' ); ?>>
<span class="screen-reader-text"><?php esc_html_e( 'Post last modified:', 'oceanwp' ); ?>
</span>
<i class="<?php echo $theme_icons[ 'm_date' ][ $icon_t ]; ?>" aria-hidden="true">
</i><?php echo esc_html( get_the_modified_date() ); ?>
</li>
I have to add this php to meta as well, but I don’t know how to add it.
<?php if ( 'my-meta' == $section ) { ?>
<li class="meta-my-meta"><i class="icon-layers"></i><?php esc_html_e( 'My Meta', 'oceanwp' ); ?></li>
<?php } ?>
if ( ‘my-meta’ == $section ) → true → run a next.
if ( get_the_time(‘Y/m/d’) != get_the_modified_date(‘Y/m/d’) ) → true → show mod date.
Could you help me with this?
thank you.