WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Custom "Insert into Post" Code (4 posts)

  1. Dan.LaSota
    Member
    Posted 2 years ago #

    When end users are editing posts they insert images using the Media Library. They open up the library, select the image and click on the button labeled "Insert into Post".

    The code that is inserted takes the form:

    <a href="permalink to image" rel="attachment wp-att-postID of the image"><img src="url of the image" alt="alt of the image" title="title" width="width" height="height" class="class list" /></a>

    I want to customize the form of this markup text and add to it, but still allow the users to use the Media Library and the "Insert into Post" method.

    What do I edit in order to accomplish this?

    Thanks.

  2. DrCherryChocolate
    Member
    Posted 2 years ago #

    I would also like to be able to customize the output of the Insert into Post. Can anyone suggest a good approach? Can I add a filter to this? Is there an existing plugin for this?

  3. njansen
    Member
    Posted 2 years ago #

    I need to know the same thing. Why is nobody replying? Is this not possible?

    Thanks

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    Try posting your own topics instead of tagging onto a 7 month old topic that references an older version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.