• Resolved futurecar


    Is there a way to put an excerpt of the description on the property overview page? I know that I can create an extra field in the developer tab and include something like:
    <?php if($property[‘other’]): ?><?php echo $property[‘other’]; ?><?php endif; ?>

    on my page. However I would like to have code that simply grabs some of the description from the tinymce editor on the add property page.

    This is mainly because I don’t want to have information twice. I know exactly where I need to go in regards to implementing this on the property overview template.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Specifically, add I want a description excerpt for each of my search results.


    hi, futurecar.. i have same problem. I would like to show the property excerpt on the hotel listing. I’ve use this code [property_overview per_page=5] in my page.. unfortunately, it only show the property title and price. May i know your idea how to show the property excerpt? and it’s will very helpful for me if you can give me the example.

    thank you very much 🙂

    The code you’re using is simply the shortcode to display the wpproperty content. If you want to add an excerpt, you’ll need to edit code on the actual page (located in the templates folder).

    In particular the following code is what I used on the property-overview.php page.

    <?php if($property['post_content']): ?><?php echo substr(strip_tags(preg_replace('/\[.*?\]/', '', $property['post_content'])), 0, 365); ?><a <?php echo $in_new_window; ?> href="<?php echo $property['permalink']; ?>"> [...]</a><?php endif; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Description Excerpt’ is closed to new replies.