Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:20:03+00:00 2026-06-14T21:20:03+00:00

I am currently working on a property website and when retrieving stats from an

  • 0

I am currently working on a property website and when retrieving stats from an array i do not want to show one in particular called ‘post_title’. Here is the code

<?php if ( have_properties() ) { ?>



<ul class="<?php wpp_css('property_featured_shortcode::featured_properties',   "wpp_featured_properties_shortcode clearfix"); ?>">

<?php foreach ( returned_properties('load_gallery=false') as $property) {  ?>

<li class="<?php wpp_css('property_featured_shortcode::property', "{$class} wpp_featured_property_container wp-caption clearfix"); ?>" >



  <a class="<?php wpp_css('property_featured_shortcode::thumbnail', "featured_property_thumbnail"); ?>"  href="<?php echo $property['permalink']; ?>">

    <?php property_overview_image($thumbnail_size); ?>

  </a>



  <?php if(is_array($stats)): ?>

    <ul class="<?php wpp_css('property_featured_shortcode::stats', "wp-caption-text shortcode_featured_properties"); ?>">



      <?php foreach($stats as $stat):

        if(empty($property[$stat])) continue;

        ?>

        <li class="<?php echo $stat; ?>">

          <dl>

            <dt><?php echo (empty($wp_properties['property_stats'][$stat]) ? ucwords($stat) : $wp_properties['property_stats'][$stat]); ?>:</dt>

            <dd><?php echo $property[$stat];  ?></dd>

          </dl>

        </li>

      <?php endforeach; ?>

    </ul>

  <?php endif; ?>



</li>

<?php } ?>

</ul>



<?php } ?>

and this is the result

the result.

How can i go about hiding the post title please?.

I have tried changing it to echo just title by trying the code below but it did not work.

<?php if ([$stat] == 'post_title') echo 'Title' ?>

Any help is appreciated.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:20:05+00:00Added an answer on June 14, 2026 at 9:20 pm

    The part you need to change is the label, which is being output by this code (you can tell from the colon being output at the end):

    <?php echo (empty($wp_properties['property_stats'][$stat]) ? ucwords($stat) : $wp_properties['property_stats'][$stat]); ?>:
    

    Try this:

    <?php echo (empty($wp_properties['property_stats'][$stat]) ? ucwords($stat == 'post_title'? 'Title': $stat) : $wp_properties['property_stats'][$stat]); ?>:
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently working with NSURLConnection. Found a great website showing important delegate methods coming with
I'm currently working on a class which exposes an internal List through a property.
I am currently working on a custom SharePoint web part (WSS 3.0, not MOSS)
I am currently working on a website which has a lot of javascript .
hi I am currently working on improving the SEO on a website containing dropdown
My girlfriend is a graphic designer who is currently working on a website. She
I'm currently working on a website that dynamically builds a city made of little
i'm working on a website and currently using the @font-face tehnique ( this +
I am currently working on a website that is an advertisement portal for businesses.
i'm currently working on an aspx website wherein I am using an ASPxGridView control.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.