-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#770 posted on tweaks #774
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. A nice improvement and much more readable than the previous function.
@batesweb – this will require some updates to the wiki (https://github.com/WebDevStudios/wd_s/wiki/Template-Tags#post-meta-information). Could you prep that for when this is ready to merge in? Thanks! |
Here's the updated documentation. This will replace the "Post Meta Information" section: Post Date
Prints HTML with the post date for the current post. Usage: Output: <time class="entry-date published" datetime="2021-10-12T16:27:10+00:00">October 12, 2021</time> Location: Post Author
Prints HTML with the post author for the current post. Usage: Output: <span class="post-author">
by <span class="author vcard">
<a class="url fn n" href="http://wds-dev.local/author/admin/">admin</a>
</span>
</span> Location: |
This is looking really great! I've tested the split functions and passed in my own strings to make sure those work. One thing I've noticed is that while we have a Would you be able to add a top-level Thanks! |
I can definitely set that up, @coreymcollins , but should that be a part of this PR? @oliverharrison and I had talked about adding in some of those "missing" files (search.php, page.php, etc.), but it seems like that should be its own PR. |
I feel like it's a small enough addition that it could be added here, especially if we're trying to leverage the new functions in the |
@coreymcollins is that what you had in mind? |
This is great – thanks! I'll merge this in and add your updates to the docs. |
Closes #770
DESCRIPTION
Refactors the
_s_posted_on()
function to make the code more readable and configurable. This function has been replaced by two new functions:_s_post_date()
and_s_post_author()
.OTHER
STEPS TO VERIFY
View singles/archives to make sure post dates and authors are being rendered correctly.
DOCUMENTATION
Will this pull request require updating the wd_s wiki?