WordPress.org

Ready to get started?Download WordPress

Forums

Faster Image Insert
[resolved] Numbering in the title. (4 posts)

  1. raikit
    Member
    Posted 1 year ago #

    Hello, At some point I had asked the question before. How can I avoid that in the bulk edit screen title numbering (1) is inserted?

    For mass processing is a numbering in the title.

    Example: "this is a picture (1)"

    How can I disable this numbering?

    Greetings
    raikit

    http://wordpress.org/extend/plugins/faster-image-insert/

  2. Sina
    Member
    Posted 1 year ago #

    Hi I would like to know this as well. (I see you asked this same question six months ago.)

    Any ideas or assistance would be greatly appreciated. The Mass Image Edit works so well.

  3. David Frank
    Member
    Plugin Author

    Posted 1 year ago #

    We don't have that option just yet, you can of course edit the numbering in script, between line 194-202

    var num_count = 0;
                    $('.media-item').each(function(e) {
                        num_count++;
                        if(typeof massedit[0] !== "undefined" && massedit[0].length > 0) {
                            $(this).find('.post_title .field input').val(massedit[0] + " (" + num_count + ")");
                        }
                        if(typeof massedit[1] !== "undefined" && massedit[1].length > 0) {
                            $(this).find('.image_alt .field input').val(massedit[1] + " (" + num_count + ")");
                        }

    change it to something like

    $('.media-item').each(function(e) {
                        if(typeof massedit[0] !== "undefined" && massedit[0].length > 0) {
                            $(this).find('.post_title .field input').val(massedit[0]);
                        }
                        if(typeof massedit[1] !== "undefined" && massedit[1].length > 0) {
                            $(this).find('.image_alt .field input').val(massedit[1]);
                        }

    I should note that it's accessibility best practice to keep the title and alt text unique and descriptive, which is why we went with the numbering.

  4. Geleosan
    Member
    Posted 1 year ago #

    Thanx! I needed to know it! If you can make it as option in your plugin it would be great!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.