{"id":1001039,"date":"2015-09-01T15:15:39","date_gmt":"2015-09-01T22:15:39","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/"},"modified":"2015-09-23T07:05:08","modified_gmt":"2015-09-23T14:05:08","slug":"get-info-from-additional-fields-with-php-function","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/","title":{"rendered":"Get info from additional fields with php-function"},"content":{"rendered":"<p>I want to call information from my two additional fields without getting the label. I just want the &#8220;answer&#8221;.<br \/>\nRight now I am using the following code &lt;?php tribe_get_template_part( &#8216;modules\/meta&#8217; ); ?&gt;.<br \/>\nBut this gives me all the information. I just want the additional fields.<\/p>\n<p>What function should I use for getting this.<\/p>\n<p>Below, I&#8217;ll paste the part from my functions.php that I&#8217;m working on, so you get the context.<br \/>\nI will mark the function I need help with, with HERE IT IS so you easy can locate it below.<\/p>\n<p>\t$calendar_posts = new WP_Query( $args );<\/p>\n<p>\tif ( $calendar_posts-&gt;have_posts() ) :<br \/>\n?&gt;<br \/>\n\t\t&lt;?php while ( $calendar_posts-&gt;have_posts() ) :<br \/>\n\t\t\t$calendar_posts-&gt;the_post();<\/p>\n<p>\t\t\t$date = get_field( &#8216;_EventStartDate&#8217; );<br \/>\n\t\t?&gt;<\/p>\n<p>\t\t\t&lt;div class=&#8221;col-sm-&lt;?php echo $cols; ?&gt; calendar-item&#8221;&gt;<br \/>\n\t\t\t\t<a>&#8221; title=&#8221;&lt;?php the_title_attribute(); ?&gt;&#8221;&gt;<br \/>\n\t\t\t\t\t&lt;div class=&#8221;calendar-date&#8221;&gt;&lt;?php echo mtg_date_form( $date ); ?&gt;&lt;\/div&gt; <\/p>\n<p>\t\t\t\t\t&lt;?php the_title(); ?&gt;<\/p>\n<p>\t\t\t\t\tHERE IT IS &#8211;&gt;     &lt;?php tribe_get_template_part( &#8216;modules\/meta&#8217; ); ?&gt;<\/p>\n<p>\t\t\t\t<\/a><\/p>\n<p>\t\t\t&lt;\/div&gt;<br \/>\n\t\t&lt;?php endwhile; ?&gt;<br \/>\n&lt;?php<br \/>\n\t\twp_reset_postdata();<br \/>\n\telse :<br \/>\n?&gt;<\/p>\n","protected":false},"template":"","class_list":["post-1001039","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Get info from additional fields with php-function -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Get info from additional fields with php-function -\" \/>\n<meta property=\"og:description\" content=\"I want to call information from my two additional fields without getting the label. I just want the &#8220;answer&#8221;. Right now I am using the following code &lt;?php tribe_get_template_part( &#8216;modules\/meta&#8217; ); ?&gt;. But this gives me all the information. I just want the additional fields. What function should I use for getting this. Below, I&#8217;ll [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-23T14:05:08+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/\",\"name\":\"Get info from additional fields with php-function -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-09-01T22:15:39+00:00\",\"dateModified\":\"2015-09-23T14:05:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Get info from additional fields with php-function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Get info from additional fields with php-function -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/","og_locale":"en_US","og_type":"article","og_title":"Get info from additional fields with php-function -","og_description":"I want to call information from my two additional fields without getting the label. I just want the &#8220;answer&#8221;. Right now I am using the following code &lt;?php tribe_get_template_part( &#8216;modules\/meta&#8217; ); ?&gt;. But this gives me all the information. I just want the additional fields. What function should I use for getting this. Below, I&#8217;ll [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/","article_modified_time":"2015-09-23T14:05:08+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/","name":"Get info from additional fields with php-function -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-09-01T22:15:39+00:00","dateModified":"2015-09-23T14:05:08+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/get-info-from-additional-fields-with-php-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Get info from additional fields with php-function"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1001039","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1001039\/revisions"}],"predecessor-version":[{"id":1001217,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1001039\/revisions\/1001217"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1001039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}