Customize the HTML structure of each post

Each layout of Content Views Pro has its own way to display post fields (thumbnail, title, content…). Normally, you can change the display order of fields by drag & drop checkboxes under Display Settings >> Fields settings easily.

But if you want to create your own HTML output of post in View, you can add this code to file functions.php of your active theme:

// Content Views Pro - Very custom HTML output for each post
add_filter( 'pt_cv_view_type_custom_output', 'cvp_theme_view_type_custom_output', 100, 3 );
/**
 * Customize HTML output of each post
 *
 * @param string $args       Current HTML output for a post
 * @param array $fields_html Array of fields (title, thumbnail, content...) and their HTML output
 * @param object $post       The current post object
 * @return string
 */
function cvp_theme_view_type_custom_output( $args, $fields_html, $post ) {
	global $pt_cv_id;
	// Do this for only specific View
	if ( $pt_cv_id !== 'VIEW_ID' ) {
		return $args;
	}

	ob_start();
	?>
	<!-- Your custom HTML here -->
	<?php
	$args = ob_get_clean();

	return $args;
}

This task requires many coding skills about PHP, HTML.

Best regards,