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

  1. Dan.LaSota
    Posted 4 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?


  2. DrCherryChocolate
    Posted 4 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
    Posted 4 years ago #

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


  4. esmi
    Forum Moderator
    Posted 4 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


No tags yet.