Skip to content
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

No entry content "inside" hook or after endwhile hook #40

Closed
robneu opened this issue Jun 8, 2015 · 1 comment · Fixed by #41
Closed

No entry content "inside" hook or after endwhile hook #40

robneu opened this issue Jun 8, 2015 · 1 comment · Fixed by #41

Comments

@robneu
Copy link
Contributor

robneu commented Jun 8, 2015

After using THA for a while, there are two hooks that I think should really be added. Right now there's no hook for within the actual "content" area of an entry. This makes hooking the the post content along with other post elements a little tricky as it needs to be done with priority juggling and choosing whether or not the content goes on the top or bottom.

The other missing hook is an after endwhile hook. Sometimes you need to hook content after the
<?php while ( have_posts() ) : the_post(); ?> part of a loop but before the endif check to see if the loop actually contains post data.

I know there are some old proposals to add more content-specific hooks and things like that, but so far I think these are the only two that can actually cause a problem because they are omitted. Related to #7 and #9

@richardtape
Copy link

👍 +1 for this, too. We're starting to come across issues where content order juggling is unmanageable and an extra couple hooks as @robneu mentions would be an immediate resolution for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants