Support » Plugin: Media Library Assistant » Custom Taxonomy instead of Att. Categories and Tags

  • Resolved ratamatcat

    (@ratamatcat)


    hi David,

    I have read that it is generally better to use the Att. Categories and Att. Tags than the WordPress Categories and Tags. Is the same also true for custom taxonomies?

    I have a custom taxonomy that is showing in the Taxonomy Support section of the general Tab under MLA Settings. But if it has the same disadvantages than the WordPress Categories and Tags does I will not activate it and just stick with the Att. Categories and Att. Tags.

    Or if my own custom taxonomy would function as well as Att. Categories and Att. Tags this will allow me to just use that instead of setting up a duplicate set of Att. Categories and Att. Tags(?)

    Your earlier quote:

    The second section is labeled “Att. Categories” and is for the custom taxonomy that MLA provides specifically for attachments. It works like the WordPress “Categories” taxonomy but having a separate taxonomy for attachments avoids some problems and is preferred by most MLA users.

    WordPress Categories and Tags go way back to the early days of WordPress and have always been reserved for Posts and Pages. There is a lot of code in WordPress that specifically excludes attachments when searching Categories and Tags.

    WordPress introduced Custom Taxonomies in version 3.0, and the “Att. Categories” and “Att. Tags” taxonomies provided by MLA use the WordPress Custom Taxonomy features. MLA supports both its own taxonomies and the built-in WordPress taxonomies so you can make the best choice for your application.

    thanks,

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and for taking the time to find and quote from the earlier topic:

    Why are there two Categories sections?

    The cautions regarding WordPress’ own Categories and Tags arise from the many chunks of code in WordPress core that treat these two taxonomies in some special way. For example, WordPress counts the posts and pages that are assigned to terms in these taxonomies but it excludes attachments, so the counts can be misleading and inaccurate.

    Replacing the MLA taxonomies with your own custom taxonomies should pose no problems as long as how you use them makes sense for your application. You can configure the options in the “Taxonomy Support” section of the Settings/Media Library Assistant General tab to use your taxonomies, and you can remove support for the MLA taxonomies if you like.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the use of your own custom taxonomies instead of the MLA Att. Categories and Att. Tags.

    Hi David,

    I Decided to use Att categories and tags for now and do some mapping of IPTC Core data from Adobe Bridge.

    Two WordPress Standard fields are causing problems on upload of a test image: Title and Caption. Please correct me if any of my ideas about best practices for mapping are wrong.

    Title

    I have this set to 2#005: Object Name which is what I think is correct however the title is receiving the value from Bridges’ Headline.

    Before Enabling the Assistants ‘IPTC/EXIF Mapping when adding new media’ the default WordPress mapping placed Bridges Title value into the WordPress Title, which is what I want to occur. So I tried to revert to this by removing the Assistants’ mapping for the Title and re-upload, but the Bridge Headline data still populates the title field.

    In my prior research I figured out that the Headline is a good match for Alt Text, and so mapped 2#105: Headline to the Alt Text field where it is mapping correctly.

    A brief synopsis of the caption. Headline is not the same as Title.

    Am I getting this wrong? Should the Headline be mapped to the Title field?

    Caption

    I have this set to none (no mapping required) but the caption is receiving the value from Bridges Description.

    I thought Bridges Description should be assigned to the Assistants’ IPTC Value of 2#120: Caption or Abstract for the WordPress Description field so I set this rule where it is mapping correctly. But as mentioned the same text is also mapping into the WordPress Caption field.

    I deleted the Description value from Adobe Bridge and re-uploaded and both Description and Caption are showing as empty.

    My Att. Tags are coming in correctly and looking great, mapped from Bridges Keywords using the Assistants 2#025: Keywords setting.

    thanks,

    ratamatcat

    (@ratamatcat)

    I think I might have fixed the Title by changing the ‘Existing Text’ setting from ‘Keep’ to Replace. It is still set on 2#005: Object Name.

    I also did this for the Name/Slug which has identical mapping settings as Title.

    For the Alt Text and Description I also tried changing to ‘Replace’ but it did not make a difference to those fields.

    ‘Status’ is set to Active for all, and Priority to IPTC

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your updates with the details on your progress.

    In your first update you wrote “Caption – I have this set to none (no mapping required) but the caption is receiving the value from Bridges Description.” The MLA “None (no mapping required)” setting simply disables MLA’s mapping rules. The Caption field will still be initialized by WordPress logic, which explains what you’re seeing.

    Regarding your questions about the ALT Text field and the 2#105: Headline IPTC field, I think you have it right. The IPTC guidance comes from its origin in journalism and news applications. You are entering your own values in Adobe, so you are free to make whatever choices you like in how you interpret the guidance for your application.

    You second update contains “For the Alt Text and Description I also tried changing to ‘Replace’ but it did not make a difference to those fields.” I am not quite sure what to tell you. Can you post the complete, current settings for those two rules so I can investigate further? Thanks!

    hi David thanks for your assistance,

    The only issue that remains is the need to stop the Caption field from receiving a value i.e. it should be blank on an image upload. The Alt Text is actually OK sorry.

    Current Rules Settings:

    Caption:

    IPTC Value: none
    EXIF/Template Value: (empty)
    Priority: IPTC
    Existing Text: Keep
    Status: Inactive

    Description:

    Adobe Bridge field: ‘Description’

    IPTC Value: 2#120: Caption or Abstract
    EXIF/Template Value: (empty)
    Priority: IPTC
    Existing Text: Replace
    Status: Active

    As mentioned previously the value I enter for Description for Bridge is also populating the Caption.

    Yes WordPress associates Bridges’ Description field to its Caption but the way I see it this metadata is better matched to WordPress’s Description as the two Description fields are meant to be longer narrative or reporting type of text. While the WordPress Caption can be short like one word or a couple words, where it can fit under the thumbnails in some cases if set to be shown on the page, which is what I want to use it for. And Bridge has no field input for a Caption (which is probably why WordPress wants to use its Description instead).

    So WordPress automatically maps Bridges’ Description field to the Caption before I applied any MLA mapping rules and it is still doing it with my rule set on 2#120. I suppose i could just delete the caption value after but would rather it done automatically for awesomeness.

    Also, all my Active rules I have set to ‘Replace’ for Existing Text except for Att. Tags. Is this correct, I do not want to ‘replace’ the existing tags in the system?

    thanks,

    Plugin Author David Lingren

    (@dglingren)

    Thanks for clarifying your remaining issue. You can find the answer in the “Content Templates” section of the Settings/Media Library Assistant Documentation tab:

    In the Media/Assistant submenu table Bulk Edit area and the IPTC/EXIF Standard Field mapping fields you can use the special template:[+empty+] value to support deleting the content of the Title, Caption, Description and ALT Text fields.

    For the benefit of others who might see this topic in the future, here are more detailed instructions for applying the change:

    1. Go to the Settings/Media Library Assistant IPTC/EXIF tab.
    2. If you want to apply the rule to new items as they are uploaded (recommended), check the “Enable IPTC/EXIF Mapping when adding new media” and “Enable IPTC/EXIF Mapping when updating media metadata” boxes.
    3. Scroll down to the “Standard field mapping” section.
    4. Locate the “Caption” rule entry and click the “Edit” rollover action.
    5. In the “IPTC Value” dropdown control leave the default “- None (select a value) -” in place.
    6. In the “EXIF/Template Value” text box enter template:[+empty+]
    7. In the “Priority” dropdown, select “EXIF”.
    8. In the “Existing Text” dropdown, select “Replace”.
    9. Scroll down to the bottom of the screen and click “Save Changes”.

    I hope that works for your application. You also wrote “all my Active rules I have set to ‘Replace’ for Existing Text except for Att. Tags. Is this correct, I do not want to ‘replace’ the existing tags in the system?” That looks right. If you leave the default “Keep” setting any tags assigned by the mapping rule should be in addition to tags you assign manually. If that’s not working, start a new topic and I will investigate further.

    thanks David it works perfect. And very easy to do!

    A related query about the Att. Categories.

    I’m not importing them from the file, just manually adding them in the system.

    Example is I have a Parent category ‘Genre’ and a child category ‘Science Fiction & Fantasy’. In the Att Categories metabox of the Edit Media screen these are correctly showing with Science Fiction & Fantasy indented underneath Genre.

    If I click Science Fiction & Fantasy checkbox and Update to add this category, I lose the indenting formatting. Science Fiction & Fantasy checkbox is at the first/parent level and Genre is too, below it a few checkboxes down.

    Is this normal? I thought the indenting would be retained. Maybe it shouldn’t though.

    thanks,

    Plugin Author David Lingren

    (@dglingren)

    Thanks for confirming that the Content Template works for you.

    You wrote “If I click Science Fiction & Fantasy checkbox and Update to add this category, I lose the indenting formatting.” It looks like this is the “checked on top” behavior that moves the assigned terms to the top of the list, making them easier to see when you have a lot of terms to choose from.

    Navigate to the Settings/Media Library Assistant General tab, scroll down to the Taxonomy Support section and clear the checkbox in the “Checked On Top” column. Scroll to the bottom and save your changes.

    Let me know of that helps or if I have not understood your query.

    Yep that did it. It retains the parent/child structure now within the meta box

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.