Have Camera Will Travel - Reviews & Tips HomepageHave Camera Will Travel - Reviews & Tips

David Coleman Photography

  • Reviews & Tips
  • GoPro
  • Lightroom
  • Places
  • Photos
  • Reviews
    • Nikon
    • Sony
    • Fujifilm
    • Ricoh
    • Cameras
    • Lenses
    • Sample Images
    • Travel Tripods
    • Adventure Cameras
    • 360°
  • GoPro
  • Memory Cards
  • Flash
  • Travel Tripods
  • Books
  • Social Media
    • Facebook
    • Instagram
    • YouTube
    • Twitter

How to Remove or Replace “Filed Under” and “Tagged With” from Post Metadata in Genesis

This simple little hack is a way to change the "Filed under" and "Tagged with" labels from post metadata if you're using the Genesis Framework in Wordpress.

Genesis Metadata Categories and Tags1 1068x352 - How to Remove or Replace "Filed Under" and "Tagged With" from Post Metadata in Genesis

Categories: Wordpress for Photographers
Tags: Wordpress tricks
Last updated about 2 months ago // Originally published about 4 years ago

This is one of those little things that had been bugging me for a while, but it took me a lot of searching to find a solution that worked. Eventually, I did find a solution that worked for me, so I’m sharing it here in case anyone else is having the same trouble. It’s a very niche issue, but hopefully, it’ll save someone some time.

What I wanted to do sounds like it should be simple: change the “Filed Under:” and “Tagged With:” labels for the metadata on WordPress posts. This is the metadata that usually displays at the top of posts.

I’m using the Genesis Framework. With Genesis, things like this are usually handled with code snippets to go in the functions.php. It’s a simple and elegant way to do it so long as you get the right code in the snippet. Thankfully, a lot of Genesis experts have shared a huge number of snippets to do all sorts of things.

And there are quite a few snippets that are designed to do exactly what I wanted to do here–replace the “Filed under” and “Tagged With” labels. But I tried a bunch of them over time and couldn’t get any of them to work for one reason or another. Some of them had no effect. Some of them crashed my site with a white screen (thanks for incompatible code in the functions.php file). I couldn’t figure out precisely why each didn’t work. Some seemed to be written for older versions of the Genesis Framework. Others may have been clashing with plugins or other snippets. But the upshot is that I just couldn’t find a solution. And based on the comments that had accumulated over time, it’s clear I wasn’t alone.

Even using the Simple Edits plugin for Genesis, the solution wasn’t immediately self-evident. But it turns out that the solution is very simple once you know the little trick. But for some reason, I had a lot of trouble finding that little trick. Part of the problem is that it turns out the best reference is behind Studiopress’s paywall and doesn’t show up in Google searches. And even on that page, it still doesn’t leap out at you.

How To How to Remove or Replace “Filed Under” and “Tagged With” from Post Metadata in Genesis Framework

The first part is to use the Simple Edits plugin. It’s free and simple. You can find it on the WordPress plugin repository. I have no doubt there’s a way to get the same effect with a function.php snippet and without using the Simple Edits plugin, but I couldn’t find a snippet that worked for me and I was spending too much time tryign to find one. This approach did work, and worked quickly and simply.

It comes down to this . . . The default shortcodes for display the categories and tags in metadata are [post_categories] and [post_tags].

So if you’re using the Simple Edits plugin and want those fields displaying on new lines, you might have something like this in the “Entry Meta (above content)” field:

[post_categories] <br/> [post_tags]

But that retains the original “Filed Under:” and “Tagged With:”.

It turns out that there are also a few attributes you can use with those particular shortcodes. You can change the separator between items in the list from the default comma to something else (eg. [post_categories sep="// "]. You can append text or markup after the list (eg. [post_categories after=" archives."]

And there’s also one that overrides what comes before the list of categories or tags, which is usually the label for that list. So you can use:

[post_categories before=""] <br/> [post_tags before=""]

That results in something like this:

metadata blank 678x75 - How to Remove or Replace "Filed Under" and "Tagged With" from Post Metadata in Genesis

You can specify what text you want instead between the quotes, and it will replace the default “Filed Under:” and “Tagged With:”. If you put nothing between the quotes, it’ll be blank, like the example above. If you want “Categories” and “Tags” instead, you’d have something like this:

[post_categories before="Categories: "] <br/> [post_tags before="Tags: "]

That generates this:

metadata standard 678x70 - How to Remove or Replace "Filed Under" and "Tagged With" from Post Metadata in Genesis

With a very simple hack, you can even use something like Font Awesome to put in icons instead. You add the Font Awesome icon and then remove the label by removing everything between the quotes. If you already have Font Awesome set up, you can use something like this, for example:

<i class="fa fa-archive"></i>[post_categories before=""] <br/><i class="fa fa-hashtag"></i> [post_tags before=""]

metadata icons 678x69 - How to Remove or Replace "Filed Under" and "Tagged With" from Post Metadata in Genesis

So, there it is. Hardly revolutionary, and not at all hard once you know how. But it was one of those niggling things I’d been looking to solve for a while and simply couldn’t find.

Hopefully, this helps someone else out.

In the process of writing this post I ran into an issue with the shortcode examples being processed. But I found, and posted, a way to escape shortcodes in WordPress.

By David Coleman
Instagram: @havecamerawilltraveldc

Last updated on January 2, 2021

Categories: Wordpress for Photographers
Tags: Wordpress tricks

I may earn a commission for purchases using links on this page. Learn more.

News & Deals

With the holidays fast approaching, there’s some great deals on photography gear and services available. I’ve put together a roundup of Black Friday and Cyber Monday 2020 Photography Deals. It’s a running list as new deals are announced, so be sure to check back.

Canon announces new EOS Rebel T8i DSLR. Canon has announced their new T8i DSLR. 24MP APS-C cropped CMOS sensor, 4K24 video, and updated image processing and detection systems. It’s available for preorder from B&H Photo.

New Firmware for the Ricoh GR III. Ricoh has release firmware v1.31 for the GR III. Release notes are: “Corrected — When shooting with the multiple exposure, in rare cases the live view may not display correctly. Improved stability for general performance.” You can download it here.

New Canon 1D X Mark III Pro DSLR Announced. Canon has announced their new flagship model of pro DSLR, the 1D X Mark III. They’re sticking with a 20.1MP CMOS sensor, but it’s a new and improved version and boasts an incredible native ISO range of ISO 100 to ISO 102400 and an extended range that goes up to a jaw-dropping ISO 819200. With revamped autofocus, a new image processor, and all sorts of other bells and whistles, it’s no wonder that Canon is billing it as “The Ultimate EOS.”

New Manfrotto Pro Rugged Memory Cards. Manfrotto, an Italian probably best known for their tripods and studio accessories, has launched a new Pro Rugged range of high-end SD, microSD, and CompactFlash cards. While they don’t have a huge selection of sizes and speeds, the cards are aiming for very fast cards that can put up with rugged demands. For instance, they claim that their V90 rated SD cards can withstand three times the force (20kg / 45 lbs) of a regular SD card. I’ve ordered some to run through my speed tests.

New Sony Alpha a7 firmware released. A firmware update for the Sony a7R IV now lets you control external Sony flashes from the camera’s own menu system. Up to 15 flashes in five groups can be controlled via the camera. It also applies to the a7R III and a7 III.

Kinsta Wordpress Managed Hosting

Comments

  1. Hanna says

    July 10, 2020 at 1:11 pm

    Any idea how to REMOVE a line break in this section? I want the post date, category list, and leave a comment part all on one line?

    Reply
    • David says

      July 10, 2020 at 8:09 pm

      Is it still including a line break even if you take out the
      ?

      Reply
  2. Norman Dallura says

    August 21, 2019 at 10:08 am

    Thanks!!!!!!!!!!!

    Reply
  3. Mike says

    July 30, 2019 at 5:40 pm

    Worked perfectly! Thanks.

    Reply
  4. Vasco says

    September 23, 2018 at 9:33 am

    Great article! It helped me a lot. But I still can’t find a way to add empty space in the separator. I’ve used [post_categories sep=" | "], but the empty space before the character “|” never appears. The character is always tied to the previous tag, like the comma. Any advice?

    Reply
    • David says

      September 26, 2018 at 11:09 am

      Have you tried non-breaking space unicode? That is,   ? Not sure that will fix it, but worth a try.

      Reply
  5. Joy says

    August 22, 2018 at 7:26 pm

    Thank you so much for this post! I was able to figure out on my own how to add a line break, but this information saved me as far as learning how to change the “Filled Under” and “Tagged With”! You are appreciated!!

    Reply
    • David says

      August 22, 2018 at 9:04 pm

      Glad it’s helpful!

      Reply

Questions & Comments Cancel reply

You have to agree to the comment policy.

About Me

I take photos. I travel. I do it for a living. Seven continents. Dozens of countries. Up mountains. Under water. And a bunch of places in between.

Get in Touch

Newsletter

© 2009–2021 David Coleman · Have Camera Will Travel LLC · all rights reserved


Photos by David Coleman. Please contact me for licensing images.
All images are registered with the U.S. Copyright Office.


Privacy & Disclosure · Cookie Declaration · Disclaimer · Terms of Service · Copyright · Contact


XML Sitemap