What Call Function Should I Use To Get Meta Info?
-
Something so simple should be much easier to do. Any chance you can take a minute to see if you can figure this out?
On my listing pages I created an accordion jquery at the bottom, as can be seen here: https://www.expeditionersafaris.com/place/5-day-best-of-both-worlds-kruger-and-private-reserve-tour-wildlife-encounters/
As you can see in the sidebar, I have some custom post fields such as “Amenities Not Included In the Price”. I want to include that info that comes after the title (“A once off ZAR . . . “) in the accordion instead of the sidebar. Any idea what the wordpress call function is to do this?
In the .php page, the code that calls all the custom fields (basically everything below “email company / Send to a friend”) is the following:
<?php if(!$preview){echo get_post_custom_listing_single_page($post->ID,'<p><span class=”post_cus_field {#HTMLVAR#}”>{#TITLE#} : </span>{#VALUE#}</p>’);}
elseif($preview && $_REQUEST[‘alook’]){echo get_post_custom_listing_single_page(mysql_real_escape_string($_REQUEST[‘pid’]),'<p><span class=”{#HTMLVAR#}”>{#TITLE#}</span> : {#VALUE#}</p>’);}else{echo get_post_custom_listing_single_page_preview($post->ID,'<p><span class=”post_cus_field {#HTMLVAR#}”>{#TITLE#} : </span>{#VALUE#}</p>’);} ?>For something like the “Amenities Not Included In the Price” portion, the custom code for the span class is: post_cus_field not_included_in_price.
Any ideas?
- The topic ‘What Call Function Should I Use To Get Meta Info?’ is closed to new replies.