diff --git a/functions.php b/functions.php
index af85634..bc4b2b3 100644
--- a/functions.php
+++ b/functions.php
@@ -1,7 +1,14 @@
%2$s';
}
-
+ # generate time tag
$time_string = sprintf( $time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( 'c' ) ),
esc_html( get_the_modified_date() )
);
-
+ #generate link of posted on xxx
$posted_on = sprintf(
/* translators: %s: post date. */
esc_html_x( 'Posted on %s', 'post date', 'responsiveblogily' ),
'' . $time_string . ''
);
-
+ #clear author information
$byline = "";
// $byline = sprintf(
// /* translators: %s: post author. */
@@ -41,9 +48,11 @@ function responsiveblogily_posted_on() {
// Tags link — modified from twentytwenty theme's get_post_meta() function
if ( has_tag() ) {
?>
-
+
+
-
+
+
ID, 'part_of_speech__optional_', true );
+ $pos = get_post_meta( get_the_ID(), 'part_of_speech__optional_', true );
if ( ! empty ( $pos ) && $pos != -1 ) :
?>
-
+
@@ -45,11 +45,11 @@
/* 2020Keywords: adding usage form field data
Print the usage value if exists
*/
- $usage = get_post_meta( $post->ID, 'usage__optional_', true );
+ $usage = get_post_meta( get_the_ID(), 'usage__optional_', true );
if ( ! empty ( $usage ) ) :
?>
-
+
@@ -84,9 +84,9 @@
-
-
+
+
diff --git a/template-parts/content.php b/template-parts/content.php
index 968fff5..b5ed9c9 100644
--- a/template-parts/content.php
+++ b/template-parts/content.php
@@ -30,11 +30,11 @@
/* 2020Keywords: adding part of speech form field data
Print the part of speech value if exists
*/
- $pos = get_post_meta( $post->ID, 'part_of_speech__optional_', true );
+ $pos = get_post_meta( get_the_ID(), 'part_of_speech__optional_', true );
if ( ! empty ( $pos ) && $pos != -1 ) :
?>
-
+
@@ -44,11 +44,11 @@
/* 2020Keywords: adding usage form field data
Print the usage value if exists
*/
- $usage = get_post_meta( $post->ID, 'usage__optional_', true );
+ $usage = get_post_meta( get_the_ID(), 'usage__optional_', true );
if ( ! empty ( $usage ) ) :
?>
-
+