Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Maxim Peshkov

    (@maximpeshkov)

    Hello,

    Be aware, get_the_term_list() does not output results. It just returns it.
    Also, you should use $property, but not $post variable.

    I think, the following code should work for you:

    <?php echo get_the_term_list( $property['ID'], 'property_feature', '<li>', '', '</li>' ); ?>

    Regards.

    Thread Starter btees

    (@btees)

    Thanks for the steer Maxim.

    The code you posted output the list as just one li
    The final code was:

    <?php
          	echo '<ul class="styles">';
          	echo get_the_term_list( $property['ID'], 'property_feature', '<li>', '</li><li>', '</li>' );
    		echo '</ul>';
    		 ?>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Show features on Overview Page’ is closed to new replies.