• HI guys

    I have a question.

    <?php foreach ( $pages as $page ) {
                			$option = '<li><a href="'. get_page_link( $page->ID ) .'">' . $page->post_title . '<span>'. $page->meta_value . '</span></a></li>';
    						echo $option;
    				}

    I was trying to get the value of the custom field that I made. is it meta_value? or something else? I was trying even the function but it isn’t working.

    Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘get_page custom field question’ is closed to new replies.