Title: PHP Question
Last modified: August 30, 2016

---

# PHP Question

 *  [clayt101](https://wordpress.org/support/users/clayt101/)
 * (@clayt101)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/php-question-13/)
 * I am just learning php, just kind of tinkering with it and learning as I go. 
   I am editing my category.php page, as I want to make it have a different look
   to it. Here is the code:
 *     ```
       <?php
       					// Start the Loop.
       					while ( have_posts() ) : the_post();
   
       					/*
       					 * Include the post format-specific template for the content. If you want to
       					 * use this in a child theme, then include a file called called content-___.php
       					 * (where ___ is the post format) and that will be used instead.
       					 */
       					get_template_part( 'content', get_post_format() );
   
       					endwhile;
       					// Previous/next page navigation.
       					twentyfourteen_paging_nav();
   
       				else :
       					// If no content, include the "No posts found" template.
       					get_template_part( 'content', 'none' );
   
       				endif;
       			?>
       ```
   
 * My question is regarding this line of code:
    `get_template_part( 'content', get_post_format());`
   What php file is it hitting? Where are ‘content’ and get_post_format() ? Once
   I know the .php file, I can edit it, and the results should be seen on my site(
   I think).
 * Thanks

The topic ‘PHP Question’ is closed to new replies.

## Tags

 * [category.php](https://wordpress.org/support/topic-tag/category-php/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [clayt101](https://wordpress.org/support/users/clayt101/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/php-question-13/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
