WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Bulk rename: field parent_title to title or alt text

[Resolved] Bulk rename: field parent_title to title or alt text

  • Hi David, actually I am very happy with your plug in.

    But trying for 8 hours now, I could not solve one problem:

    I need to batch rename my pictures in the media library, to transfer the <parent_title> to the Alt Text or Title.

    I tried Content Templates and already produced a custom field called <hp_parent> (which worked fine), but it is impossible for me to transfer it to the main Title or Alt Text of the pictures.

    I think i just don’t understand how to use your template value expression.

    Do you know a solution?
    It is very important for me due to SEO reasons of our local marketplace http://www.hartmann-marktplatz.de

    Thanks in advance!!!

    Stefan

    https://wordpress.org/plugins/media-library-assistant/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks to Davids post in an other area of this forum, it tried to use the Custom Template Value:

    template:([+parent_issues+])
    Result: (UNUSED)

    Why unused?

    Anyway, if a generate a new Custom field e.g. called <hp_parent> based on the Data Source “parent_title” it works fine and <hp_parent> contains the right parent_title.

    How can I embed <hp_parent> in the Custom Template Value-expression?

    This would be the solution for me.

    I found the solution on my own:

    The following expression

    template:([+custom:hp_parent+])

    is the final way!

    What a great PlugIn…

    Thanks,David, please keep on updating it from time to time!

    *** please close this threat ***

    Plugin Author David Lingren

    @dglingren

    Thanks for the good words, for your question and for the time you took to develop a solution and post your progress to this topic.

    As you found, adding a Content Template to the EXIF/Template Value field in the Standard field mapping rules is a good technique. The custom field approach will work, but I did some experimenting and found a somewhat simpler alternative.

    You can code template:([+parent_title+]) and get the same result without creating a custom field.

    Along the way I discovered that the Settings/Media Library Assistant Documentation tab contains an error; the “parent_name” data source should be “parent_title”. I will fix that in my next version, and I regret any trouble the error caused you in your development.

    I will mark this topic resolved. Thanks again for your interest in the plugin and for helping me correct the Documentation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Bulk rename: field parent_title to title or alt text’ is closed to new replies.