Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Pagination via PHP

$
0
0

I am currently rendering my View using the code below. Is there a way to include and call to pagination via PHP?

	$location_query = get_view_query_results('[VIEW ID]');
	foreach ($location_query as $location_post) {			
		$location_title = $location_post->post_title;
		$location_id = $location_post->ID;
		$location_name = $location_post->post_name;
		$location_website = get_post_meta( $location_post->ID, 'wpcf-website', true );						
		echo $location_title.' '.$location_name.' '.$location_website;
	}

Viewing all articles
Browse latest Browse all 20145

Trending Articles