Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #20531

    Hi,

    I was wondering how I can add my portfolio items to the RSS feed as at the moment only posts are added to the feed?

    Thanks.

    Kind regards,

    Mark

    #108021

    Add following code to functions.php (insert it at the very bottom):

    function aviafeed_request($qv) {
    if (isset($qv['feed']) && !isset($qv['post_type']))
    $qv['post_type'] = array('post', 'portfolio');
    return $qv;
    }
    add_filter('request', 'aviafeed_request');

    #108022

    Hi Dude,

    Thanks for the answer. I added the code. I have another question: I validated the RSS Feed on http://validator.w3.org/ and I received, among others, the below comments. How can I change those

    - Feeds should not be served with the “text/html” media type

    - Your feed appears to be encoded as “UTF-8″, but your server is reporting “US-ASCII”

    Thanks!

    Mark

    #108023

    Hi Mark,

    Did you use: http://validator.w3.org/feed/ ?

    The regular validator wouldn’t work.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Add portfolio items to RSS feed’ is closed to new replies.