Add additional info to meta box
-
Great plugin, does exactly what I need for my multisite. I was just wondering how can I add additional info on the meta box? If you follow this link: sitio3.apit.gruposanoja.com/inmuebles/ you will see a thumbnail and to it’s right you can see additional info. That thumb and info are coming from another plugin I’m using (Realtor Express)this plugin creates its own table on my DB. Anyhow what I’m trying to figure out is how to display that info on each post from the other sites to the main site using NLP, below is the code from the actual plugin that gets that info and display’s it on the thumb.
<?php /** * @file * Defines the view of custom excerpt displayed on the listing search result * * Available variables: * - $listing - the listing object. * - $thumbnail - post thumbnail. * - $permalink - link to the post. * - $floor_space_units - Sqm or Sqft based on settings. */ ?> <div id="rex-listing-content"> <div id="rex-listing-thumbnail" class="rex-listing-div"> <a href="<?php echo esc_url( $permalink ); ?>"><?php echo $thumbnail; ?></a> </div> <div id="rex-listing-details" class="rex-listing-div"> <ul> <li> <?php esc_html_e('Price: ', 'realtor-express'); ?> <?php echo esc_html( $listing->getPrice() ); ?> </li> <li> <?php esc_html_e('Bedrooms: ', 'realtor-express'); ?> <?php echo esc_html( $listing->bedrooms ); ?> </li> <li> <?php esc_html_e('Baths: ', 'realtor-express'); ?> <?php echo esc_html( $listing->baths ); ?> </li> <li> <?php esc_html_e('Floor Space: ', 'realtor-express'); ?> <?php echo esc_html( $listing->floor_space ) . " " . $floor_space_units; ?> </li> </ul> </div> <div class="float-breaker"></div> </div>
Thanks in advance
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Add additional info to meta box’ is closed to new replies.