WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Bulk Editor
[resolved] Utilize WordPress Post Fields (8 posts)

  1. SparkyTheGMPartsGuy
    Member
    Posted 2 years ago #

    Very useful plugin Thank You!

    Would the possibility of using post_title post_content or tags
    as a value when bulk editing a custom fields.

    For that custom field value it would display or enter the post tile or tags.

    Thanks Again

    http://wordpress.org/extend/plugins/custom-field-bulk-editor/

  2. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. chris055
    Member
    Posted 1 year ago #

    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!

  4. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. chris055
    Member
    Posted 1 year ago #

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

  6. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    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."

  7. chris055
    Member
    Posted 1 year ago #

    That query gave me an error:

    #1242 - Subquery returns more than 1 row

  8. sparkweb
    Member
    Plugin Author

    Posted 1 year ago #

    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....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags