This file contains 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
<?php get_header(); ?> | |
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php endwhile; ?> | |
<?php get_footer(); ?> |
This file contains 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
<?php | |
//example function to customise query | |
function tac_customise_query( $query ) { | |
if ( is_admin() || ! $query->is_main_query() ) | |
return; | |
if ( is_post_type_archive( 'post' ) ) { | |
$query->set( 'posts_per_page', 9 ); | |
return; | |
} |
This file contains 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
function get_template_parts( $parts = array() ) { | |
foreach( $parts as $part ) { | |
get_template_part( $part ); | |
}; | |
} |