Title: [Plugin: Automatic Featured Image Posts] Auto text
Last modified: August 20, 2016

---

# [Plugin: Automatic Featured Image Posts] Auto text

 *  Resolved [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-automatic-featured-image-posts-auto-text/)
 * Good afternoon,
 * This plugin is REALLY usefull for portfolio website! I gave it 5 star rating.
 * One question though. I wanted to use this in my functions.php to auto load some
   text in de post:
 *     ```
       // Default post editor text //
   
       function diww_default_post_content( $content ) {
       	$content = '<ul class="details">
       <li>Jaar:</li>
       <li>Afmeting b x h:</li>
       <li>Techniek: </li>
       <li>Prijs:</li>
       <li>Beschikbaar: Ja (<a href="mailto:info@daniqueidema.nl">stuur een e-mail</a>)</li>
       </ul>';
       	return $content;
       }
   
       add_filter( 'default_content', 'diww_default_post_content' );
       ```
   
 * But this is not visible in the post your plugin makes. I tried this but it did
   not work:
 *     ```
       // post editor text //
   
       function afip_new_post_content ( $new_post_content ) {
       $new_post_content = '<p>test</p>';
       return $new_post_content;
       }
   
       add_filter( 'afip_new_post_content', '', $post_id );
       ```
   
 * Can you help me?
 * Kind regards Willem
 * [http://wordpress.org/extend/plugins/automatic-featured-image-posts/](http://wordpress.org/extend/plugins/automatic-featured-image-posts/)

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

 *  Plugin Author [Jeremy Felt](https://wordpress.org/support/users/jeremyfelt/)
 * (@jeremyfelt)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-automatic-featured-image-posts-auto-text/#post-2745275)
 * Both examples are close, but a little tweaking is needed.
 * The filter you are trying to use is `afip_new_post_content`, so that will always
   be the first argument for `add_filter()`. The second argument should be the function
   you are using to handle the content, in this case `diww_default_post_content()`.
   The third argument is for priority, and the fourth for number of arguments to
   pass to the filter.
 * In this case, you are replacing the content entirely rather than appending, so
   you can probably leave out the third and fourth arguments.
 * Try this:
 *     ```
       // Default post editor text
       function diww_default_post_content() {
           $content = '<ul class="details">
               <li>Jaar:</li>
               <li>Afmeting b x h:</li>
               <li>Techniek: </li>
               <li>Prijs:</li>
               <li>Beschikbaar: Ja (<a href="mailto:info@daniqueidema.nl">stuur een e-mail</a>)</li>
           </ul>';
           return $content;
       }
       add_filter( 'afip_new_post_content', 'diww_default_post_content' );
       ```
   
 * For more information on the arguments used with `add_filter()`, [check out the Codex article](http://codex.wordpress.org/Function_Reference/add_filter).
 *  Thread Starter [Willem-Siebe](https://wordpress.org/support/users/siebje/)
 * (@siebje)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-automatic-featured-image-posts-auto-text/#post-2745293)
 * You’re the man! Thanks for the effort!
 *  Plugin Author [Jeremy Felt](https://wordpress.org/support/users/jeremyfelt/)
 * (@jeremyfelt)
 * [14 years ago](https://wordpress.org/support/topic/plugin-automatic-featured-image-posts-auto-text/#post-2745603)
 * Marking this as resolved.

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

The topic ‘[Plugin: Automatic Featured Image Posts] Auto text’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/automatic-featured-image-posts_a5c0de.
   svg)
 * [Automatic Featured Image Posts](https://wordpress.org/plugins/automatic-featured-image-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatic-featured-image-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatic-featured-image-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/automatic-featured-image-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatic-featured-image-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatic-featured-image-posts/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeremy Felt](https://wordpress.org/support/users/jeremyfelt/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/plugin-automatic-featured-image-posts-auto-text/#post-2745603)
 * Status: resolved