Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mark Zahra

    (@markzahra)

    Hi Trickster, to display a list of feed items on a page, etc you need to use our shortcodes.

    Thread Starter Trickster

    (@trickster)

    OK, I certainly saw
    [wp-rss-aggregator source=’55,56′]

    But short of having a long list of entries
    [wp-rss-aggregator source=’2307′]
    [wp-rss-aggregator source=’3201′]
    (and even that selects the source rather than displays it)

    that I would have to handedit everytime I added or deleted a feed, I could not work out a way to use it. Can you walk me a little further down the path?

    Plugin Author Mark Zahra

    (@markzahra)

    Hi, sorry for the wait. I’m not sure I understood your last message.

    If you want to display ALL your feed items on a page then you simply need to use the shortcode: [wp-rss-aggregator]. This shortcode displays all feed items from all feed sources in chronological order.

    Was there some other particular setup that you were looking to create?

    Thread Starter Trickster

    (@trickster)

    I put together the page https://mat.tepper.cmu.edu/blog/?page_id=6790 essentially by hand. Can I get a similar page that updates automatically when I add or delete a feed? Just like https://mat.tepper.cmu.edu/blog/?page_id=6759 updates automatically with the feed items.

    Hi,

    I have created a shortcode which you can use to display the list of feed sources on any page as per the example link you have mentioned. Please add the below code in your theme`s functions.php file

    add_shortcode('wprss_custom_feed_listing','wprss_feed_source_listing');
        function wprss_feed_source_listing(){
            $query_args = Array(
                    'post_type' => 'wprss_feed',
                    'posts_per_page' => -1
                    );
            $query = new WP_Query($query_args);
    
            if( $query->have_posts() ){
                echo '<ul>';
                while($query->have_posts()){
                    $query->the_post();
                    $feed_url = get_post_meta( get_the_ID(), 'wprss_url', true );
                    echo '<li>'.get_the_title().' - <a href="'.$feed_url.'">'.$feed_url.'</a>';
                }
                echo '</ul>';
            }
            wp_reset_query();
            wp_reset_postdata();
        }

    Once you have added the code, insert this shortcode [wprss_custom_feed_listing] on any page to show a list of feed sources with their respective links.

    Thanks

    Thread Starter Trickster

    (@trickster)

    Fantastic! Thanks very much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘List of Feeds?’ is closed to new replies.