• Resolved durhamm1

    (@durhamm1)


    I have over a thousand posts (they’re actually all the same CPT) that I’d like to noindex. I know I can do it using a filter, but that way they still appear in the sitemap. Is there a way to set them to noindex using an SQL query in the database or by importing a csv file?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi @durhamm1,

    You’re the nth person to ask me this, and so I went on a mission! With that, I found the perfect solution ??

    1. Install and activate Custom Field Bulk Editor.
    2. If you used this tool before… Go to “Settings -> Bulk Editor Settings” and enable this plugin for the (Custom) Post Types you wish to edit.
    3. Go to the “Bulk Edit Fields” submenu for the (Custom) Post Type in the admin bar on the left.
    4. In Single Value Mode (default), select/check all the post IDs you wish to edit.
    5. Under the post list, you’ll find a box to set custom field values.

    In your case, you need to set these entries at step 5:

    • Custom Field Name: _genesis_noindex
    • Value: 1

    TSF CPT field edit example

    And then hit the big “Save Custom Fields” button.

    That’s it!

    Now, to update the sitemap, go to any of the posts you’ve just edited, and resave it.

    This feature is planned for WordPress’ own bulk editor via TSF:
    https://github.com/sybrew/the-seo-framework/issues/155

    Cheers ??

    Thread Starter durhamm1

    (@durhamm1)

    Thanks

    That works. The only problem is the Custom Field Bulk Editor plugin only displays 200 posts and there is no facility to show further pages. Judicious use of the search box at the top of the screen might help in some instances but I just reset the limit to 2000 in line 193 of custom-field-bulk-editor.php and the job was done. (Probably worth having a database backup before doing that!)

    ??

    Plugin Author Sybre Waaijer

    (@cybr)

    Heh, I love your ingenious and direct approach to such issues ?? Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Bulk editing noindex’ is closed to new replies.