Getting data of listing in PHP

This topic contains 4 replies, has 3 voices, and was last updated by  Paolo 8 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #338542

    Dennis Wolf
    Expired Member
    Post count: 5

    I’m creating a template where I have the data of the post author, but what is the easiest way to retrieve the data of (the first found) published listing of this author?

    #338544

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Dennis,

    You would need know the post id and you could use “geodir_get_post_info”

    print_r(geodir_get_post_info($post_id));

    Thanks,

    Stiofan

    #338555

    Dennis Wolf
    Expired Member
    Post count: 5

    I only have the author data and I want the data of the first listing found of that author (because authors only have 1 listing on this website).
    The reason I want to do this is to display data from a listing on a woocommerce product page and add a link from that product page to the listing of the author.

    Thanks for your help so far!

    #339494

    Dennis Wolf
    Expired Member
    Post count: 5

    Or is there not function in WordPress or Geodirectory which is able to retrieve data this way?

    #339676

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    this is considered customization and for this beyond support.

    In addition, you membership has expired.

    Thanks

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount