- Views146 times
- Answers9 answers
I’ve lost some custom functionality since the v2 update.
Previously I had been outputting listing data using the Job Manager functions you previously used such as get_company_name() etc. It seemed a bit counter-intuitive to use this function to return the Listing Type, but at least it worked!
Before, I could query the listing post object and then, for example:
foreach( $listings as $listing ):
$output .= ‘<h6 class=”related-listing-type”>’ . get_the_company_name($listing) . ‘</h6>’;
In the same loop, I’m using the c27 function to return the featured image, and that’s working ok as follows:
$image = c27()->featured_image( $listing->ID, ‘shop_catalog’ );
But this for example does not work, and prevents the page from loading correctly:
Please could you point me in the right direction?