Title: Shortcode with mailing list
Last modified: August 20, 2016

---

# Shortcode with mailing list

 *  [jc_vermeulen](https://wordpress.org/support/users/jc_vermeulen/)
 * (@jc_vermeulen)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/)
 * is it possible to view on a page newsletters sending by a mailinglist?
 * [http://wordpress.org/extend/plugins/alo-easymail/](http://wordpress.org/extend/plugins/alo-easymail/)

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

 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/#post-3417933)
 * No, it isn’t. But you use this trick.
    You can assign categories to newsletters,
   adding this script in your _functions.php_ or _mu-plugins_ folder:
 *     ```
       function custom_easymail_add_categories ( $args ) {
       	$args['taxonomies'] = array( 'category' );
       	return $args;
       }
       add_filter ( 'alo_easymail_register_newsletter_args', 'custom_easymail_add_categories' );
       ```
   
 * So now you can assign categories in newsletter edit screen.
    Then, you can show
   only newsletters related to a category using the shortcode with `category` argument(
   ID of category):
 *     ```
       [ALO-EASYMAIL-ARCHIVE numberposts=5 category=2]
       ```
   
 * I hope this helps.
 *  Thread Starter [jc_vermeulen](https://wordpress.org/support/users/jc_vermeulen/)
 * (@jc_vermeulen)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/#post-3417941)
 * It is not work.
 * I have the code insert in to the page: alo-easymail_functions.php
 *     ```
       function custom_easymail_add_categories ( $args ) {
       	$args['taxonomies'] = array( 'category' );
       	return $args;
       }
       add_filter ( 'alo_easymail_register_newsletter_args', 'custom_easymail_add_categories' );
       ```
   
 * I have the shortcut insert on the page.
 * I see nothing on the page.
 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/#post-3417976)
 * It’s better to paste the code into _functions.php_ of your theme or into a php
   file (no matter the filename) inside _wp-content/mu-plugins_ folder (if it does
   not exist yet, simply create the folder). BTW it should work too as you did.
   
   I made a test and it works for me. Remember that the shortcode shows only the
   already sent newsletters, by default: [http://www.eventualo.net/blog/easymail-newsletter-for-developers/#shortcodes](http://www.eventualo.net/blog/easymail-newsletter-for-developers/#shortcodes)
 *  Thread Starter [jc_vermeulen](https://wordpress.org/support/users/jc_vermeulen/)
 * (@jc_vermeulen)
 * [13 years ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/#post-3418018)
 * It is not working. What we do:
 * 1) Create a new folder wp-content/mu-plugins
    2) Have uploaded a file (functions.
   php) with code:
 *     ```
       <?php
       function custom_easymail_add_categories ( $args ) {
       	$args['taxonomies'] = array( 'category' );
       	return $args;
       }
       add_filter ( 'alo_easymail_register_newsletter_args', 'custom_easymail_add_categories' );
       ?>
       ```
   
 * 3) Make a new newsletter
    4) Filter from mailinglist name Admin (id=11) 5) On
   the page newsletter we input the shortcode
 *     ```
       [ALO-EASYMAIL-ARCHIVE category=11]
       ```
   
 * 6) We send the newsletter to the users (me)
    7) We see not on the page. We have
   2 newsletters on this filter. [Link page on website](http://tudelftbb.collegerama.nl/wordpress/newsletter/)
 * What can we do?

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

The topic ‘Shortcode with mailing list’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/alo-easymail_574f4b.svg)
 * [ALO EasyMail Newsletter](https://wordpress.org/plugins/alo-easymail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alo-easymail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alo-easymail/)
 * [Active Topics](https://wordpress.org/support/plugin/alo-easymail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alo-easymail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alo-easymail/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [jc_vermeulen](https://wordpress.org/support/users/jc_vermeulen/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/shortcode-with-mailing-list/#post-3418018)
 * Status: not resolved