How to add category to PHP template call
-
Hi,
I bought your add-on for categories. I’m pulling in feeds into a PHP page template and group in categories. I can bring in feeds just fine using shortcodes, but I want more control by using the PHP method.
My question is: How can I specify a category in here?
<?php wprss_display_feed_items( $args = array( 'links_before' => '<ul class="myfeeds">', 'links_after' => '</ul>', 'link_before' => '<li>', 'link_after' => '</li>', 'limit' => '10' )); ?>
Looking into the category plugin, I see:
'terms' => $categories,
and have tried:
'terms' => 'my-feed-category',
but it just displays feeds from every category. I know I can limit by feed sources, but if I have 100 feed sources, it would be more efficient to show by category rather than listing 100 or so ID’s.
Any help would be appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add category to PHP template call’ is closed to new replies.