Title: No margin added to recent posts plugin
Last modified: October 24, 2016

---

# No margin added to recent posts plugin

 *  Plugin Author [Nick van de Veerdonk](https://wordpress.org/support/users/nmvdvjr/)
 * (@nmvdvjr)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/no-margin-added-to-recent-posts-plugin/)
 * Hiya folks, for anyone wondering where the margins have gone since the latest
   AMP plugin update: Auttomattic changed the div class from ‘amp-wp-content’ to‘
   amp-wp-article-content’.
 * The new code to implement via functions.php is:
 *     ```
       //* Place in your theme's functions.php
   
       function add_content_to_amp_footer() {
           ?>
   
           <div class="amp-wp-article-content">
   
        <?php echo do_shortcode( "[amp-related-posts append='amp' heading='Related Posts' max='5']" ); ?>
   
           </div>
   
           <?php
       }
       add_action( 'amp_post_template_footer', 'add_content_to_amp_footer', 50 );
       ```
   

The topic ‘No margin added to recent posts plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amp-recent-posts_01091f.svg)
 * [AMP Recent Posts](https://wordpress.org/plugins/amp-recent-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp-recent-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp-recent-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/amp-recent-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp-recent-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp-recent-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Nick van de Veerdonk](https://wordpress.org/support/users/nmvdvjr/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/no-margin-added-to-recent-posts-plugin/)
 * Status: not a support question