Get attachment from listing id

This topic contains 1 reply, has 2 voices, and was last updated by  Kiran 6 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #427938

    Alex Howes
    Expired Member
    Post count: 175

    I’ve put a form on my listing, and am currently setting up a snippet to send dynamic emails with information about the listing, when a user submits the form. I’m using geodir_get_post_meta() with the post id to get information about the post and put it in the email.

    How do I get to the attachment associated with the listing so that I can attach it to my email?

    #427946

    Kiran
    Moderator
    Post count: 7069

    Hi Alex,

    Refer this code https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/custom_fields_output_functions.php#L1287

    Here $cf[‘htmlvar_name’] will be your attachment field name.

    Kiran

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket