Opened 17 years ago
Closed 17 years ago
#5711 closed defect (bug) (invalid)
Sporadic default template tag behaviors...
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.3.2 |
Component: | Template | Keywords: | permalink template_tags |
Focuses: | Cc: |
Description
When certain template tags are called in a place where they aren't necessarily "in place," such as an attachment, link generation errors occur.
For example... http://www.bradkovach.com/2006/graduation-glamour-shots/radawn-burton/
This is an attachment page that has next post/previous post buttons at the bottom. Notice that the previous post points to a page (http://www.bradkovach.com/brad/design/).
My 404 logs show a lot of this odd linking behavior... Here's one where several post-slugs are mashed into one URL that generated a 404.
http://www.bradkovach.com/2007/space-potatoes/subpage-of-bk6/print/
space-potatoes is a post,
subpage-of-bk6 is an attachment,
print is the printable version of the page
I have deactivated the wp-print and wp-email plugins and these errors sustain. They are the only plugins that modify the permalink structure... that I know of.
Even with attachment templates in place, these errors still occur.
If there is interest in investigating this problem on my server, I can offer login accounts.
Care should be taken when using template tags. Not all template tags should exist in all areas of the WordPress theme. Improper theme and plugin implementations is not an issue with WordPress.