Okay
  Public Ticket #360970
Adding Portfolio to RSS Feed
Closed

Comments

  • Travis started the conversation

    Hello,

    I'm looking to add my portfolio pages and updates to my RSS feed.  Doing a Google search I came across a page (http://mysitemyway.com/support/topic/portfolio-as-... that talks about adding them to the main RSS feed using the following php function:

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

    In the previous framework I was using there was an area within the them to add custom functions like this.  I would usually just cut/paste these in and trouble shoot.  I'm not very familiar with the backend of themes so wouldn't know which file to add this into or the proper way to do so.  

    My question is - is there a better way to do achieve my goal than adding in this code?  If not, what's the best way to add this code (correctly) to my site to achieve my goal?

    Thank you!

    - Travis



  •  1,073
    ThemeNectar replied

    Hey Travis! You can add that into a child theme functions.php file. There's a sample child theme included with your download from TF so just upload that to get started :)