Commit 5374b31f by rajshah

added functionality to calculate the read time

parent 50427c74
...@@ -49,7 +49,10 @@ get_header(); ...@@ -49,7 +49,10 @@ get_header();
</clipPath> </clipPath>
</defs> </defs>
</svg> </svg>
<?php
$post_content = get_the_content();
$reading_time = calculate_reading_time($post_content);
echo $reading_time; ?> mins read
</div> </div>
<div class="d-flex views"> <div class="d-flex views">
<svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none" <svg class="me-2" width="24" height="24" viewBox="0 0 24 24" fill="none"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment