How to pull a listing title into a text area

This topic contains 1 reply, has 2 voices, and was last updated by  Simone 8 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #41901

    amstourist
    Expired Member
    Post count: 185

    Hello from Amsterdam!

    I’m trying to get the title of a listing into a form field / text area.
    Is this possible?

    Cheers, Jan

    #41902

    Simone
    Expired Member
    Post count: 3515

    Hello Jan, to output the title of a listing, you can use

    
    
    $postid = $wp_query->post->ID; // retrieve the ID
    

    and then use it like this

    
    
    $title= geodir_get_post_meta($postid,'post_title',true); 
    echo $title;
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