WordPress.org

Support

Support » Themes and Templates » Custom "Insert into Post" Code

Custom "Insert into Post" Code

  • Dan.LaSota

    @danlasota

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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?

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

    Thanks

    esmi

    @esmi

    Forum Moderator

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom "Insert into Post" Code’ is closed to new replies.