public function set_frontier_style_script() {

		if ( ! class_exists( 'Pods_Frontier' ) ) {
			return;
		}

		// cet the current post type
		$current_post_type = $this->current_post_type();

		// now use other methods in class to build array to search in/ use
		$possible_pods = $this->auto_pods();

		if ( isset( $possible_pods[ $current_post_type ] ) ) {
			$this_pod = $possible_pods[ $current_post_type ];

			if ( $this_pod['single'] && is_singular( $current_post_type ) ) {
				// set template
				$template = $this_pod['single'];

			} elseif ( $this_pod['archive'] && is_post_type_archive( $current_post_type ) ) {
				// if pfat_archive was set try to use that template
				// check if we are on an archive of the post type
				// set template
				$template = $this_pod['archive'];

			} elseif ( is_home() && $this_pod['archive'] && $current_post_type === 'post' ) {
				// if pfat_archive was set and we're in the blog index, try to append template
				// set template
				$template = $this_pod['archive'];

			} elseif ( is_tax( $current_post_type ) ) {
				// if is taxonomy archive of the selected taxonomy
				// if pfat_single was set try to use that template
				if ( $this_pod['archive'] ) {
					// set template
					$template = $this_pod['archive'];
				}
			}//end if

			if ( isset( $template ) ) {
				global $frontier_styles, $frontier_scripts;

				$template_post = pods()->api->load_template( array( 'name' => $template ) );

				if ( ! empty( $template_post['id'] ) ) {
					// got a template - check for styles & scripts
					$meta = get_post_meta( $template_post['id'], 'view_template', true );

					$frontier = new Pods_Frontier();
					if ( ! empty( $meta['css'] ) ) {
						$frontier_styles .= $meta['css'];
					}

					if ( ! empty( $meta['js'] ) ) {
						$frontier_scripts .= $meta['js'];
					}
				}
			}
		}//end if
	}