WordPress.org

Support

Support » Plugins and Hacks » Custom Field Bulk Editor » [Resolved] [Plugin: Custom Field Bulk Editor] Utilize WordPress Post Fields

[Resolved] [Plugin: Custom Field Bulk Editor] Utilize WordPress Post Fields

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author sparkweb

    @sparkweb

    I think the better way to do this would be to just pull the name or post content in your theme. Why would you need to be loading these values in the custom field? Seems like a bad idea to duplicate content like that.

    Is there any way to do this?

    I recently have change the titles of all my articles and All In One Seo Custom Fields still have the old names of my articles so i need to update the custom fields to be the same as the Tittle which is post_title.

    please help!

    Plugin Author sparkweb

    @sparkweb

    Well if you can figure out what custom field All In One stores the names in, you could use bulk edit mode to change them all at once. OR you could just write your own custom UPDATE query in phpmyadmin which would probably be a much better solution.

    Is there a way we could use “post_title” as a value in the plugin?

    Plugin Author sparkweb

    @sparkweb

    Yes, but it would be the query. Something like:

    UPDATE wp_postmeta SET meta_value = (SELECT post_title FROM wp_posts WHERE post_id = wp_postmeta.post_id) AND meta_key = 'whatever the all in one title key is'

    WARNING: be very careful with this query. Backup before you run it. Field names may need to be changed. I can’t guarantee anything about it. Make sure you understand what it is doing before you run it.

    EDIT: Sorry, just reread your post. I meant to say: “No, I don’t want to get into using wildcards and db values like that in the plugin.”

    That query gave me an error:

    #1242 – Subquery returns more than 1 row

    Plugin Author sparkweb

    @sparkweb

    I don’t know, you’ll have to play around with the SQL some more and figure out what’s going on. Sorry it didn’t work….

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Custom Field Bulk Editor] Utilize WordPress Post Fields’ is closed to new replies.
Skip to toolbar