Support » Plugins » wp_mail and list of posts

  • Hi!,
    i’m making a custom contact form using wp_mail function. I got two fields (name and email) and a send button. It works just fine.
    I’m using this code:

    Now the tricky part. I add to the form a list of all post published and a text field right next to each one of them. My idea is to have some kind of products cart, where I can choose how many items of a certain product (post) do I want and this order is received by email by the admin.
    I can’t get the complete fields in the $message.
    I think I have to use “foreach” but I have no idea how.
    Please, help me!

  • The topic ‘wp_mail and list of posts’ is closed to new replies.