Tags » Wordpress 2

Part 2

https://www.spreaker.com:443/episode/7727361

im looking for one person to be a well paid assistant. please contact me @ 5038889263 text please

Brian Anthony Hardie

Display RSS Feed using WordPress

Using WordPress we can add RSS feed easily for default WordPress function. Using bellow snippet list of RSS feed.

/*********/
/* Display RSS Feed using WordPress
/*********/

include_once(ABSPATH.WPINC.'/rss.php'); // path to include script
$feed = fetch_rss('feed url'); // specify feed url
$items = array_slice($feed->items, 0, 9); // specify first and last item

foreach ($items as $item):
	?>
    
    	
        	… 64 more words
WordPress

Get post by category id in custom post type with custom taxonomy

Snippet for create custom post type and it’s taxonomy.

$termsID = '191'; #e.i

	$dalwadi_ourteam_args = array(
		'post_type' => 'ourteam',
		'orderby' => 'post_date',               
		'order' => 'DESC',
		'post_status' => 'publish',		
		'tax_query' => array(
			array(
				'taxonomy' => 'member-category',
				'field' => 'term_id',
				'terms'    => $ourteam_category_check
			),
		),
	);
	
	$dalwadi_ourteam = new WP_Query($dalwadi_ourteam_args);
	
	while ($dalwadi_ourteam->have_posts()) : $dalwadi_ourteam->the_post();
		/*** My loop code ***/
	endwhile;
WordPress