Created
          April 27, 2014 23:54 
        
      - 
      
- 
        Save reactormade/11358368 to your computer and use it in GitHub Desktop. 
    Passing variables to get_template_part() in WordPress
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | include(locate_template('your-template-name.php')); | |
| //original here: http://keithdevon.com/passing-variables-to-get_template_part-in-wordpress/ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment