Title: prettynerd's Replies | WordPress.org

---

# prettynerd

  [  ](https://wordpress.org/support/users/prettynerd/)

 *   [Profile](https://wordpress.org/support/users/prettynerd/)
 *   [Topics Started](https://wordpress.org/support/users/prettynerd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/prettynerd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/prettynerd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/prettynerd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/prettynerd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/prettynerd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Plugin for a media library that is embedded in the site](https://wordpress.org/support/topic/plugin-for-a-media-library-that-is-embedded-in-the-site/)
 *  [prettynerd](https://wordpress.org/support/users/prettynerd/)
 * (@prettynerd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-for-a-media-library-that-is-embedded-in-the-site/#post-1352458)
 * i have the same concern.. has someone solved this problem yet?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [how to get/query posts given a post_content](https://wordpress.org/support/topic/how-to-getquery-posts-given-a-post_content/)
 *  Thread Starter [prettynerd](https://wordpress.org/support/users/prettynerd/)
 * (@prettynerd)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/how-to-getquery-posts-given-a-post_content/#post-1395704)
 * i found the solution myself! ehe..
 * <?php
 * $keyword = “keyword”;
    $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’
   => -1, ‘post_status’ => null, ‘post_parent’ => null, // any parent ); $attachments
   = get_posts($args); if ($attachments) { foreach ($attachments as $post) { if(
   trim($post->post_content)==$keyword){ setup_postdata($post); the_attachment_link(
   $post->ID, false); } } }
 * ?>
 * if someone can help me make this shorter, please do.. =)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [IS IT A VIRUS?: can’t edit-comments, people can’t post comments, also spam](https://wordpress.org/support/topic/is-it-a-virus-cant-edit-comments-people-cant-post-comments-also-spam/)
 *  [prettynerd](https://wordpress.org/support/users/prettynerd/)
 * (@prettynerd)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/is-it-a-virus-cant-edit-comments-people-cant-post-comments-also-spam/page/3/#post-919381)
 * it has been 3 months since the last post, but i’m still eager to help.. =)
 * awardspace redirects you to an error 404 page when installing or activating a
   wordpress plugin. here’s the solution to this problem and a brief explanation
   why you are getting this error.
 * [http://www.prettynerdworld.com/tech-tips/awardspace-wordpress-error-404-solution](http://www.prettynerdworld.com/tech-tips/awardspace-wordpress-error-404-solution)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [redirected to an awardspace 404 page](https://wordpress.org/support/topic/redirected-to-an-awardspace-404-page/)
 *  [prettynerd](https://wordpress.org/support/users/prettynerd/)
 * (@prettynerd)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/redirected-to-an-awardspace-404-page/#post-1132283)
 * awardspace redirects you to an error 404 page when installing or activating a
   wordpress plugin. here’s the solution to this problem and a brief explanation
   why you are getting this error.
 * [awardspace-wordpress-error-404-solution](http://www.prettynerdworld.com/tech-tips/awardspace-wordpress-error-404-solution)

Viewing 4 replies - 1 through 4 (of 4 total)