Opened 6 years ago
Closed 6 years ago
#4506 closed defect (bug) (fixed)
"Posts Tagged xxx" In Archives In Default Theme Doesn't Show Tag Name
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | high | Milestone: | 2.3 |
| Component: | Template | Version: | 2.3 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
Click a tag under a post. The tag is missing from the title.
Posts Tagged ‘’
Simply put, single_cat_title() isn't outputting the tag name.
Attachments (4)
Change History (11)
Replying to pishmishy:
I think the problem is that single_cat_title() is meant to output the tag name.
Sorry that really wasn't clear. What I meant is that single_cat_title() isn't meant to output the tag name and there probably should be an equivalent single_cat_title().
- Keywords has-patch added; needs-patch removed
I ran into problems writing the single_tag_title() function. I'm not entirely sure what purpose
$value = sanitize_title($field);
served in taxonomy.php and it appeared to me to break that particular function when searching based on a slug.
- Owner changed from anonymous to pishmishy
- Status changed from new to assigned
I added a patch for the single_cat_title() function in wp-includes/general-template.php.
I haven't tested it fully but it seems to work.
comment:6
in reply to:
↑ 1
Viper007Bond — 6 years ago
Replying to pishmishy:
I think the problem is that single_cat_title() is meant to output the tag name.
Hmm, guess it'd help if I noticed that 'cat' != 'tag', huh? D'oh.

I think the problem is that single_cat_title() is meant to output the tag name.