Home Forums Theme support Skyline Theme – Adjustment Questions Reply To: Skyline Theme – Adjustment Questions

Hi,

The code you provided worked very well! I added it both in the estate-single-default.php and in the estate-entry.php. The only issue I have is that I can’t seem to get a comma to display between the city and the county.

Here is what I see in the previews:

PA › Allentown Lehigh County

What I’d like to see is a comma after the city (in the example above – after Allentown).

Here is what I see in the detail page for a property:

2591 Mitchell Avenue , Allentown Lehigh County , PA 18103

Again, what I’d like to see is a comman after teh city (in the example above – after Allentown).

Further below is the code snippet for both files. What do I need to add to get the missing comma to display?

Much Thanks!
Denise

FROM ESTATE-SINGLE-DEFAULT.php

<p class=’object_details_line’>
<?php if($eadress) { echo “”.$eadress; } ?>
<style=”font-size:45px”><?php
if(get_the_term_list( get_the_ID(), ‘estatecity’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecity’, “, “, ” ” ));
}
?>
<?php
if(get_the_term_list( get_the_ID(), ‘estatecounty’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecounty’, “”, ” » ” ));
}
?>

<?php
if(get_the_term_list( get_the_ID(), ‘estatecountry’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecountry’, “, “, “” ));
}
?>

<?php if($ezip) { echo “”.$ezip; } ?>

FROM ESTATE-ENTRY.php

<div class=’object_entry object_<?php echo $coli; ?>’ id=”object_<?php echo get_the_id(); ?>” style=””>
<div class=’object_left’>
<?php
if(img_mini_url( get_the_ID(),’mini’))
{
echo “".get_the_title()."“;
}
?>
</div>
<div class=’object_right’>
” class=”headline”><h3><?php echo get_the_title(); ?></h3>

<?php
if(get_the_term_list( get_the_ID(), ‘estatecountry’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecountry’, “”, ” › ” )).” › “;
}
?>
<?php
if(get_the_term_list( get_the_ID(), ‘estatecity’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecity’, “”, ” ” ));
}
?>
<?php
if(get_the_term_list( get_the_ID(), ‘estatecounty’, “”, “” )!=””)
{
echo strip_tags(get_the_term_list( get_the_ID(), ‘estatecounty’, “”, ” › ” ));
}
?>