02/11/2014 at 8:49 pm
#279854
Keymaster
@ Eric
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 9 years, 1 month ago by
Steven Zahm.