Home Forums Theme support Prestige – Object grid add country and city

Tagged: , ,

This topic contains 3 replies, has 2 voices, and was last updated by  7Theme Support 6 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • A M

    Dear,

    for my dads estate website I’m using the Prestige theme.

    Now he really would like to have the Country and City added under the title in the Object Grid view. Because he likes the Grid view the most and the country and city are important to show underneath each object.

    I would like to have it exact as in de List view: Country > City
    I tried to check the code in estate-entry-list.php
    But the coding is bla bla to me 😉
    So can you help me accomplish this?

    Thanks a lot!

    Hi,

    no problem, please open the file “estate-entry.php” and add this after line 133 (” class=”headline”>

    < ?php echo get_the_title(); ?>

    ):

    <?php
    			if(get_the_term_list( get_the_ID(), 'estatecountry', "", "" )!="")
    				{
    				echo strip_tags(get_the_term_list( get_the_ID(), 'estatecountry', "", " &rsaquo; " ))." &rsaquo; ";
    				} 
    			if(get_the_term_list( get_the_ID(), 'estatecity', "", "" )!="")
    				{
    				echo strip_tags(get_the_term_list( get_the_ID(), 'estatecity', "", " " ));
    				}  
    ?>

    It’s not tested but it should work…

    A M

    Thanks a lot, it worked great!

    Ok, great, I’m glad its working

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.