simxware
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
I already get feed id, I need feed SOURCE id
Take this as data:source 1 [id 1234] - feed_a [12] - feed_b [34] source 2 [id 4321] - feed_c [56] - feed_d [78]I need a loop that output something like:
feed_a 12 1234 feed_b 34 1234In the same loop of the wrss_items I need to output the source them come from, I need this data to use it as class of the item element
Home is clean now
I think is not what I need.
I need to build a wp_query that output
feed id
feed source id
feed item
feed dataI’ve this code now:
$query_args = array( 'post_type' => 'wprss_feed_item', 'posts_per_page' => 1, 'ignore_sticky_posts' => 'true', 'orderby' => 'date', 'order' => 'DESC', ); $query = new WP_Query($query_args); if( $query->have_posts() ){ while($query->have_posts()){ $query->the_post(); echo "<pre>"; print_r($query); // or var_dump($data); echo "</pre>"; } } wp_reset_query(); wp_reset_postdata();but I can only output feed id and not the source-id of the feed
Can you help me?
error typing
Nothing, I find a solution to show class on
- content
I need a wp_query that merce all feed soource and output all feeds from all sources
I can’t find it on code, can you help me?
- This reply was modified 9 years ago by simxware.
- content
Viewing 4 replies - 1 through 4 (of 4 total)