Forums

[Plugin: Admin Management Xtended] Mass Editing Custom Fields (7 posts)

  1. Saberj
    Member
    Posted 11 months ago #

    With new themes using custom fields more and more often, I'd like the ability to mass edit them. I currently have over 600+ posts on my site, and I need to add a custom field "img" on a per category basis. In other words, I would like to assign an image url for a generic image for each of my categories.

    However, I haven't found a plugin that will allow mass editing of custom fields. I found this Admin Management plugin, but I don't see anything that indicates you can edit custom fields with it. Any chance that it may be added? Or can anyone point me in the direction of a plugin that does what I need? Help would be VERY appreciated.

    http://wordpress.org/extend/plugins/admin-management-xtended/

  2. Alphawolf
    Member
    Posted 11 months ago #

    Hey Saberj,

    I'm going to stop maintaining the plugin with 2.7 being released, so there's no chance to offer mass editing for custom fields with my plugin. Maybe there's another plugin that does this already?

  3. Dgold
    Member
    Posted 11 months ago #

    Think 'workaround' in the meantime. There are many ways to code the section where it calls your Custom Field into the template (let's say, for purpose of displaying a thumbnail).

    You can write the Conditional statements in your theme.

    This is not the actual code, but an example of what the code would mean:

    If this is Category 2, and the custom field is empty, display this img Category2-default-image.jpg

    If this is Category 2, and the custom field says img= ______.jpg, then display that jpg.

    If this is Category 3....

    See also, more ideas, code and instructions,

    http://epicalex.com/default-custom-fields/

    http://justintadlock.com/archives/2007/10/27/wordpress-custom-fields-adding-images-to-posts

    http://justintadlock.com/archives/2007/10/24/using-wordpress-custom-fields-introduction

    http://wordpress.org/support/topic/145968?replies=16

    http://wordpress.org/support/topic/139754?replies=11

    http://codex.wordpress.org/Using_Custom_Fields

    Hope that solves it for ya! Especially the first link above, and the last link.

  4. Saberj
    Member
    Posted 11 months ago #

    Hmmm. Well, it's not my theme so I'm not so good at the PHP stuff. But I can certainly take a look at some of that, and see if I can patch together a solution. Usually I work best when I have some code that does close to what I need and I can rip it apart and reassemble it....

  5. Dgold
    Member
    Posted 11 months ago #

    I really think this solution is on point, if you think about it
    http://epicalex.com/default-custom-fields/

  6. Saberj
    Member
    Posted 11 months ago #

    Thank You, thank you, thank you.

    Unless I'm completely over estimating my ability to follow a set of instructions, that should give me enough to go on to get what I need done. And without extra plugins at that. You're a big help, Dgold. Thanks again.

  7. Dgold
    Member
    Posted 11 months ago #

    You're welcome. When you get it working, say thanks to that Epic Alex blogger too. I don't know who that is or anything, it's just a post that I have stumbled across and bookmarked because it is good.

    Note that his method, is not to fill-in anything as a default value in your actual custom fields.

    Instead his method is in your theme, to say "display the image from the custom field if it exists" and "display this other default picture if the custom field happens to be empty on this post".

Reply

You must log in to post.

About this Topic