See this guide https://forum.tagdiv.com/tagdiv-cloud-library-plugin/
For some reason, I can’t get this working.
I’m using this code:
<div class="td-module-meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo the_modified_date('l, F j, Y', '<div class="the-modified-date">LAST MODIFIED: ','</div>'); ?> >
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
I’m updating “single_template_12.php” because the code doesn’t appear in “loop_single_12.php” –> https://i.imgur.com/yZhXCqZ.png
Here you can see I’m using post template style 12 –> https://i.imgur.com/R5xbNED.png
My website is https://www.InterestingAnswers.com
Once I can get this working, I’ll work on understanding child themes and getting it working there. But for now, I just want to make sure I can get it working this way and not introduce more failure points.
What am I missing?
Thanks
Ohhhh. ?
I’m using default so which php file should I update ?
thanks..
Nope. The section to edit doesn’t exist in single template 1. However, I changed it to template 2 and was able to get it working. But, it’s very scrunched together. See here:
https://i.imgur.com/7lLkdBE.png
Can I fix this with CSS?
Also, can I have it similar to something like this?
POSTED: 1/1/11
MODIFIED: 2/2/13
I’d like to display the creation and modification dates.
Please advise.
Thanks!
-
This reply was modified 7 years by
Ryansmccain.
Man, you are quick. I was about to edit my post again.
Anyways, I have it now looking good using the CSS in this thread:
https://forum.tagdiv.com/topic/how-to-make-this/
My last remaining question is can I display the creation and modified dates?
You can view it here: https://www.interestinganswers.com/history/why-are-there-two-koreas/
thanks.
-
This reply was modified 7 years by
Ryansmccain.
Hello,
If you want to show both the created date and the last modified date, you will have to leave both functions in your file. Do not replace the first code simply paste the second code below it. You will also need to fix the css for the element.
If you have any further question regarding the date, please open a new topic.
Thanks.
