How to get the listing price

I’m trying to write some custom code and I need to call on the price to populate. What is the variable name for an attribute labeled price? Or where can I find it? Thanks

Please let me know which hook you use for a custom code snippet, or what’s the context - if you have a listing object you can get the price this way:

$listing->get_price();

I’m using an infinite scroll plugin and it pulls the title and image from the database using “the_title” and “the_thumbnail” but I can’t seem to figure out the price attribute.

If this plugin has mapping to post meta fields, please try the “hp_price” meta key.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.