added template part for page content
This commit is contained in:
		
							parent
							
								
									a73391f28e
								
							
						
					
					
						commit
						82eb14d187
					
				
							
								
								
									
										6
									
								
								page.php
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								page.php
									
									
									
									
									
								
							| @ -3,10 +3,8 @@ | ||||
| 
 | ||||
|     if ( have_posts() ) { | ||||
|     the_post(); | ||||
|     echo '<div class="content">'; | ||||
|     echo "<h1>", the_title(); , "</h1>" | ||||
|     the_content(); | ||||
|     echo '</div>'; | ||||
|      | ||||
|     get_template_part( 'template/post/content', 'page' ); | ||||
|     } | ||||
| 
 | ||||
| 	get_footer(); | ||||
|  | ||||
							
								
								
									
										9
									
								
								template/post/content-page.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								template/post/content-page.php
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 | ||||
| 
 | ||||
| <?php | ||||
|     echo '<div class="content">'; | ||||
|     echo "<h1>", the_title(), "</h1>"; | ||||
|     the_content(); | ||||
|     echo '</div>'; | ||||
| ?>
 | ||||
| </article> | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user