• Interesting thing with my rss feed…

    I have customized it to get the result I want for the main feed, works fine.
    But in the categories feed it is just listing the category link and no posts.
    I do not think it has anything to do with this…. I added this to the functions so I can get the main feed to list only one category.

    function my_feed_category( $query ) {
    	if ( $query->is_feed() && !is_category() ) {
            $query->set( 'cat', '1' );
        }
    }
    add_action( 'pre_get_posts', 'my_feed_category' );

    See what I mean: https://oakridgestaffing.com/job-postings/hot-jobs/feed/

    How do I fix this? I must be in the template.

    Thanks in advance.

  • The topic ‘RSS Feed categories’ is closed to new replies.