Hi, I want to show profile completeness both in backend and frontend. This will help to easily find the incomplete listings and contact them. Additionally, if a company see that their profile is incomplete, they will tend to fill all the details.
More details:
I have 12 custom listing attributes:
status
managing_authority
industries
minimum_investment
foreign_ownership
tax_incentives
corporate_tax
customs_benefits
connectivity
available_facilities
business_setup
phone
I want to add a custom column to WP Admin → Listings showing profile completeness, for example:
75% (9/12)
The value should be calculated dynamically based on whether each attribute has a value.
Industries is a multi-select attribute and should count as complete when at least one option is selected.
I tried checking hp_ post meta and hp_listing_ taxonomies, but the attributes are not being detected correctly. I also tried accessing the listing object with get_status(), get_phone(), etc., but that did not work either.
What is the recommended HivePress API/function for retrieving the value of a custom listing attribute by its field name from a listing ID?
Ideally, I’d like a code example showing how to retrieve the value of an attribute such as status or phone.
Unfortunately there’s no such UI feature yet, but thanks – we’ll consider adding it. Please try the sample code snippet below, if you set a list of field names that should be included in the progress calculation, the progress should appear both on the front-end Account/Listings page, and in the dashboard Listings table: