Esempio n. 1
0
/**
 * Change excerpt length for default posts
 *
 * @param int $length Length of excerpt in number of words
 * @return int
 */
function zeepersonal_excerpt_length($length)
{
    // Get Theme Options from Database
    $theme_options = zeepersonal_theme_options();
    // Return Excerpt Text
    if (isset($theme_options['excerpt_length']) and $theme_options['excerpt_length'] >= 0) {
        return absint($theme_options['excerpt_length']);
    } else {
        return 30;
        // number of words
    }
}
Esempio n. 2
0
    /**
     * Displays the post tags on single post view
     */
    function zeepersonal_entry_tags()
    {
        // Get Theme Options from Database
        $theme_options = zeepersonal_theme_options();
        // Get Tags
        $tag_list = get_the_tag_list('', '');
        // Display Tags
        if ($tag_list && $theme_options['meta_tags']) {
            ?>
	
		<div class="entry-tags clearfix">
			<span class="meta-tags">
				<?php 
            echo $tag_list;
            ?>
			</span>
		</div><!-- .entry-tags -->
<?php 
        }
    }
Esempio n. 3
0
<?php

/**
 * The template for displaying archive pages.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package zeePersonal
 */
get_header();
// Get Theme Options from Database
$theme_options = zeepersonal_theme_options();
?>
	
	<section id="primary" class="content-area">
		<main id="main" class="site-main" role="main">
		
		<?php 
if (have_posts()) {
    ?>
		
			<header class="page-header">
				<?php 
    the_archive_title('<h1 class="archive-title">', '</h1>');
    the_archive_description('<div class="archive-description">', '</div>');
    ?>
			</header><!-- .page-header -->

			<?php 
    /* Start the Loop */
    while (have_posts()) {