-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.4.1 updates; custom ACF page template; remove clearfix
- Loading branch information
Showing
8 changed files
with
103 additions
and
226 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
<?php | ||
/* | ||
Template Name: Custom Page With No Loop | ||
* | ||
* This is the base custom page template with no loop(!). Why no loop? | ||
* If you're using ACF fields and replacing the main content box and | ||
* using this template, you won't need a loop. | ||
* | ||
* To use for your theme, change the name of your template from | ||
* "Custom Page Example" above. Example: | ||
* | ||
* Template Name: My Custom Page | ||
* | ||
* Then save this template as page-mycustompage.php and it will show up | ||
* as a template in the Page Templates drop-down on page edit screens in the admin. | ||
* | ||
* Important: the "Template Name: " is required by WordPress so that your template | ||
* will show up as a choice in the admin. | ||
* | ||
* Remember to keep the markup and content separate. | ||
* | ||
* For more info: http://codex.wordpress.org/Page_Templates | ||
* | ||
* Visual interactive WordPress template hierarchy: https://wphierarchy.com | ||
*/ | ||
?> | ||
|
||
<?php get_header(); ?> | ||
|
||
<div id="content"> | ||
|
||
<div id="inner-content" class="wrap"> | ||
|
||
<main id="main" class="main" role="main" itemscope itemprop="mainContentOfPage" itemtype="https://schema.org/Blog"> | ||
|
||
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> role="article" itemscope itemtype="https://schema.org/BlogPosting"> | ||
|
||
<header class="article-header"> | ||
|
||
<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1> | ||
|
||
<div class="byline-wrap"> | ||
|
||
<?php // Get the author name; wrap it in a link. | ||
if ( get_the_author_meta( 'ID' ) ) { $byline = sprintf( __( 'by %s', 'platetheme' ), '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . get_the_author() . '</a></span>' ); | ||
|
||
echo '<span class="posted-on">' . plate_time_link() . '</span><span class="byline"> ' . $byline . '</span>'; | ||
|
||
} else { echo '<span class="posted-on">Posted on:' . plate_time_link() . '</span>'; } | ||
|
||
?> | ||
|
||
</div> | ||
|
||
</header> <?php // end article header ?> | ||
|
||
<section class="entry-content" itemprop="articleBody"> | ||
|
||
<?php the_content(); ?> | ||
|
||
</section> <?php // end article section ?> | ||
|
||
<footer class="article-footer"> | ||
|
||
</footer> | ||
|
||
<?php comments_template(); ?> | ||
|
||
</article> | ||
|
||
<?php endwhile; ?> | ||
|
||
<?php plate_page_navi( $wp_query ); ?> | ||
|
||
<?php else : ?> | ||
|
||
<?php get_template_part( 'templates/404'); ?> | ||
|
||
<?php endif; ?> | ||
|
||
</main> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<?php get_sidebar(); ?> | ||
|
||
<?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
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
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
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
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