Beispiel #1
0
            </div>
          </div>
          
          <div class="content">
            <h3><?php 
    get_custom_field_value('the_guests', true);
    ?>
</h3>
            <h2><a href="<?php 
    the_permalink();
    ?>
" rel="bookmark" title="Permanent Link to <?php 
    the_title_attribute();
    ?>
"><?php 
    get_custom_field_value('the_long_title', true);
    ?>
</a></h2>
            <?php 
    the_excerpt();
    ?>
            <p class="continued"><a href="<?php 
    the_permalink();
    ?>
" title="Permanent Link to <?php 
    the_title_attribute();
    ?>
">Read more and listen to this episode &rarr;</a></p>
          </div>
    		</div>
Beispiel #2
0
            echo '</li>';
            echo '<li class="breadcrums-muted">';
            echo the_title();
            echo '</li>';
        }
        if (is_page()) {
            echo '<li class="breadcrums-muted">';
            echo the_title();
            echo '</li>';
        }
    }
    echo '</ul>';
}
// gets the value of the custom field featured_image and prints it.
if (function_exists('get_custom_field_value')) {
    get_custom_field_value('featured_image', true);
}
// Habilitar la compresión de imágenes
add_filter('jpeg_quality', create_function('', 'return 50;'));
//Registrar las menúes de navegación
register_nav_menus(array('header_nav' => __('Menú Principal', 'webtranslations')));
// El mapa de sitio para Google
add_action("publish_post", "eg_create_sitemap");
add_action("publish_page", "eg_create_sitemap");
function eg_create_sitemap()
{
    $postsForSitemap = get_posts(array('numberposts' => -1, 'orderby' => 'modified', 'post_type' => array('post', 'page'), 'order' => 'DESC'));
    $sitemap = '<?xml version="1.0" encoding="UTF-8"?>';
    $sitemap .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
    foreach ($postsForSitemap as $post) {
        setup_postdata($post);
Beispiel #3
0
$my_query = new WP_Query('category_name=Saturday&showposts=50&order=ASC');
while ($my_query->have_posts()) {
    $my_query->the_post();
    ?>
						
					<ul><!-- SATURDAY -->
						<li><?php 
    the_tags('', '', '');
    ?>
</li>
						<li><a href="<?php 
    the_permalink();
    ?>
"><?php 
    if (function_exists('get_custom_field_value')) {
        get_custom_field_value('Presentation', true);
    }
    ?>
</a></li>
						<li><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></li>
					</ul>				
					<?php 
}
?>