If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

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


    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?


    Kind regards,



    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');


    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”




    Hi Mark,

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

    The regular validator wouldn’t work.



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

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