WordPress.org

Forums

Dashboard Site Notes
Attachements prepend with «Use content filter on full notes» (1 post)

  1. Johnny52
    Member
    Posted 1 year ago #

    I noticed that if I check the «Use content filter on full notes» option all image attachments showed up on site notes....
    as mentioned in:
    class.DSNManager.php
    // TODO: content filter on attachment pages prepends a thumbnail for some reason.
    // too much effort to find out why right now, so just don't apply content filter on attachment pages
    After some tenacious Googlin...found this fix:
    http://wordpress.stackexchange.com/questions/10823/how-to-display-post-content-without-post-image
    meaning:
    just add this:
    $c = preg_replace('/<img[^>]+./','',$c);
    after this:
    $c = apply_filters('the_content', $c);
    $c = str_replace(']]>', ']]>', $c);

    http://wordpress.org/plugins/admin-dashboard-site-notes/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Dashboard Site Notes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.