Example #1
1
    /**
     * Display the post content with a link to the single post
     * @since 1.0.0
     */
    function actions_post_content()
    {
        if (is_search()) {
            ?>
		
		
		    <header class="page-header">
				<h1 class="page-title"><?php 
            printf(__('Search Results for: %s', 'actions'), '<span>' . esc_html(get_search_query()) . '</span>');
            ?>
</h1>
			</header><!-- .page-header -->
		
		<?php 
        }
        while (have_posts()) {
            the_post();
            ?>
		    <article id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
>
		        <?php 
            actions_post_header();
            ?>
		        <div class="entry-content">
		        <?php 
            actions_post_thumbnail('full');
            if ('post' == get_post_type()) {
                ?>
			            <div class="entry-meta">
			               <?php 
                actions_posted_on();
                ?>
			            </div>
	            <?php 
            }
            if (is_search()) {
                the_excerpt();
            } else {
                the_content(sprintf(__('Continue reading %s', 'actions'), '<span class="screen-reader-text">' . esc_url(get_the_title()) . '</span>'));
            }
            wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'actions'), 'after' => '</div>'));
            //actions_entry_footer();
            ?>
		        </div><!-- .entry-content -->
		    </article><!-- #post-## -->
        <?php 
        }
    }
Example #2
0
    /**
     * Display the post content with a link to the single post
     * @since 1.0.0
     */
    function actions_post_content()
    {
        while (have_posts()) {
            the_post();
            ?>
		<article id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
>
		<?php 
            actions_post_header();
            ?>
		<div class="entry-content" itemprop="articleBody">
		<?php 
            actions_post_thumbnail('full');
            if ('post' == get_post_type()) {
                ?>
			<div class="entry-meta">
			<?php 
                actions_posted_on();
                ?>
				</div>
			<?php 
            }
            the_content(sprintf(__('Continue reading %s', 'actions'), '<span class="screen-reader-text">' . get_the_title() . '</span>'));
            //actions_entry_footer();
        }
        wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'actions'), 'after' => '</div>'));
        ?>
		</div><!-- .entry-content -->
		</article><!-- #post-## -->
		<?php 
    }