Custom Sidebar Content for “Single” Page
Ultimately, I’d like to move the “This entry was posted on… You can skip…” blurb to the sidebar. I checked the codex and found this page, which describes how to do custom sidebar content, but it didn’t say much of anything about which WP functions work.
Here’s the code I want to use:
<strong>Posted On:</strong> <?php echo the_time('l, F jS, Y') ?>
While the section does show up (the conditional statement is working), the time doesn’t show up. I assume it’s because the_time() inside the “loop.” What would I have to do to make the time show up for that post in this spot?
- The topic ‘Custom Sidebar Content for “Single” Page’ is closed to new replies.