Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

$wpdb foreach


	$records=$wpdb->query("SELECT * FROM $wpdb->posts WHERE post_type = 'elements' AND post_status = 'publish'");

	while($data=$records->fetch_assoc())
	{
		print_r($data);
	}
	
}
Source by wordpress.org #
 
PREVIOUS NEXT
Tagged: #foreach
ADD COMMENT
Topic
Name
7+5 =