• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Trying to remove specific post tags

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Trying to remove specific post tags

This topic is: resolved

Tagged: post meta, tags

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 3 months ago by ashWhitney.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • October 5, 2014 at 5:16 pm #126858
    ashWhitney
    Participant

    Hello

    I'd be grateful if anyone can offer some advice on the following please.

    I'm using a RSS to Post plugin to import posts into my site. Unfortunately the RSS feed isn't distinguishing between 'categories' and 'tags', so imported posts are being tagged with a category name as well, for example:

    Tags: categoryName, tag1, tag2, tag3

    I appreciate that I could manually delete the tag 'categoryName', but I have 7 sub-sites on a multi-site setup importing on an almost daily basis, so doing it manually would be quite a nuisance.

    I was wondering if anyone had experience of a function etc. that could be used to exclude/delete a specific tag from the post tags.

    I was slightly optimistic that I could use something like the following in the Post Meta area of the Genesis Simple Edits plugin, but I tried and failed.

    [post_tags sep=", " before="Tags: " exclude="categoryName"]

    Thanks for your time.

    Ash

    http://goodpractice.directory/
    October 5, 2014 at 8:17 pm #126861
    Brad Dalton
    Participant

    1. You could run a SQL query in phpMyAdmin

    Make sure you fully backup your data.

    2. Or use a PHP function like this http://wordpress.stackexchange.com/questions/135325/how-to-remove-specific-tag-from-multiple-posts


    Tutorials for StudioPress Themes.

    October 6, 2014 at 8:08 am #126904
    ashWhitney
    Participant

    Hello Brad

    Thanks for your time and reply.

    The function you mentioned points me in the right direction.

    I'll see if I can modify it as it's coded to remove tags from specified post ID's, whereas I'd like to remove tags from ALL posts.

    I have post ID's, but I'd have to change the function to include tens of new ID's each time posts are imported, so In practice it would be better not to have to specify post ID's.

    Kind Regards

    Ash

    October 6, 2014 at 8:22 am #126906
    Brad Dalton
    Participant

    Running a SQL query in phpMyAdmin might be better if you can find the code to use.


    Tutorials for StudioPress Themes.

    October 6, 2014 at 3:25 pm #126951
    ashWhitney
    Participant

    Hello Brad

    Thanks for your suggestions.

    If it's useful for anyone with the same issue, the very helpful people from the WP RSS Aggregator plugin I'm using to import posts kindly supplied me with a function to prevent category names being added as post tags on import, so I no longer need to look for a method to remove them.

    Kind Regards

    Ash

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Trying to remove specific post tags’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble