Title: Custom fields
Last modified: August 21, 2016

---

# Custom fields

 *  [MatsKruger](https://wordpress.org/support/users/matskruger/)
 * (@matskruger)
 * [13 years ago](https://wordpress.org/support/topic/custom-fields-83/)
 * Hey
    Thank you so much for this plugin it really is a lifesaver I just have on
   problem I made a theme from an old newsletter solution i made i used get_posts
   to make a kind of sidebar width latest news and posts but the it print the code
   i can see it make the list but it dosn’t print the title. I also use advanced
   custom fields for my content but again it dosn’t print the html. When i then 
   watch it on the site i shows the content.
 * Here is a paste of my code
    [http://pastebin.com/Y5DzRpzf](http://pastebin.com/Y5DzRpzf)
 * And a image from gmail
    [http://i41.tinypic.com/5n3ayx.png](http://i41.tinypic.com/5n3ayx.png)
 * And a link to the archive
    [http://studenterhuset.com/newsletters/et-helt-nyt-look/](http://studenterhuset.com/newsletters/et-helt-nyt-look/)
 * [http://wordpress.org/extend/plugins/alo-easymail/](http://wordpress.org/extend/plugins/alo-easymail/)

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

 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-83/#post-3832211)
 * Hi, I suggest 2 things, I hope they can help you…
 * First, are you sure you can use ACF functions inside a custom post type (newsletter)?
 * Then, I can see:
    `<?php while (have_posts()) : the_post(); ?>` (line 91 of your
   pastebin) right before print fields and subfields. I’m not sure but you are using
   more than one loop in the same page, so that could be source of problems.
 *  Thread Starter [MatsKruger](https://wordpress.org/support/users/matskruger/)
 * (@matskruger)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-83/#post-3832213)
 * I made some changes and it made it work like i want to.
    But how can i get some
   styles with it i defined style in the head
 * See [http://pastebin.com/Y5DzRpzf](http://pastebin.com/Y5DzRpzf)
    I used WP Query
   to get the post id of the current post and then use that to print it in the newsletter

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

The topic ‘Custom fields’ 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/)

## Tags

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)

 * 2 replies
 * 2 participants
 * Last reply from: [MatsKruger](https://wordpress.org/support/users/matskruger/)
 * Last activity: [12 years, 12 months ago](https://wordpress.org/support/topic/custom-fields-83/#post-3832213)
 * Status: not resolved