Hmmmm, This is a bit more difficult…
I’ll start with the address. To output the city and country use this:
$entry->getAddressBlock( array( 'format' => '%city%, %country%' ) );
The category, may this will work:
$entry->getCategoryBlock( array( 'label' => '','separator' => '', 'before' => '<span>', 'after' => '</span>' ) );
This does assume the entry is no assigned to any other categories other than the one you want displayed. So there is no if/else logic needed.
Hope that helps.
- This reply was modified 8 years, 12 months ago by Steven Zahm.