Support

Account

Home Forums General Issues Adding field value into a php loop Reply To: Adding field value into a php loop

  • the_field() echos the value, you need to use get_field()

    
    $args = array( 'post_type' => 'get_field("post_type_name")', 'posts_per_page' => 99 );