Home Forums WTI Like Post PRO custom post type taxonomy Reply To: custom post type taxonomy

#701
ジョンジョン
Participant

check
wti-like-post-site.php


	// Getting the most liked posts
	$query = "SELECT post_id, SUM(value) AS like_count, post_title, post_author FROM <code>{$wpdb->prefix}wti_like_post</code> L, {$wpdb->prefix}posts P ";
	$query .= "WHERE L.post_id = P.ID AND post_status = 'publish'";
	
	// Get the posts for specific post type
	if(isset($args['post_type']) && !empty($args['post_type'])) {
		$post_type = trim($args['post_type']);
		$query .= " AND P.post_type IN ('" . str_replace(",", "','", $post_type) . "')";
	}

	

I want to know the code to add a taxonomy input form with this widget.