Support » Fixing WordPress » Customizing individual tag archive pages

  • Hopefully this is the correct sub-forum. Apologies if not.

    Is there a way I can customize tag archive pages easily? Right now I simply want to add a unique image at the start of certain tag pages. E.g. in the example link, I use tags to delineate coverage of different restaurants. For each restaurant’s tag, I’m trying to make that page a general info page about them – starting with a good image.

    I can add links and edit the desc text easily enough – but if I add an tag it’s stripped out?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Is it stripped when saving (core WP) or when displaying (theme)?
    Either way, there is a parameter for wp_kses which is the HTML tags that are allowed.

    If it’s not saving, try using a plugin like
    https://wordpress.org/plugins/visual-term-description-editor/

    If it’s not displaying, switch themes or ask your theme author to fix it.

    Thread Starter gastronomicslc

    (@gastronomicslc)

    Thanks for the reply Joy. It’s when saving, the img tag is stripped, it appears it’s not allowed by the wp_kses thing you mentioned.

    Looking at that plugin now, but its failing to work on my hosting, so working with my hosting provider to see if we can get it working.

    Thread Starter gastronomicslc

    (@gastronomicslc)

    To confirm that plugin does exactly what I needed, thanks so much, would have been searching for weeks to find that!

    For what its worth, across multiple hosts, WP Core seems to strip img tags from taxonomy descriptions as standard. I learned something today 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizing individual tag archive pages’ is closed to new replies.