Her er koden fra single.php filen
Titlen ligger i the_title(); mellem <h1> og </h1>.
Jeg har absolut ingen idé om hvilken fil the_title() hentes fra.
- <?php get_header(); ?>
- <?php if ( get_option( 'uniq_breadcrumbs' )) { ?>
- <div class="breadcrumb">
- <?php yoast_breadcrumb('',''); ?>
- </div>
- <?php } ?>
-
- <div id="the_body" >
- <div class="single_post">
- <h1><?php the_title(); ?></h1>
-
- <?php if(have_posts()) : ?>
-
- <?php while(have_posts()) : the_post() ?>
- <?php $post_images = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); ?>
- <div id="post-<?php the_ID(); ?>" class="posts post_spacer">
-
-
-
- <?php if($post_images[0]){?>
- <div class="main_img"><div class="zoom"><a href="<?php echo $post_images[0];?>" rel="lightbox" title="<?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/thumb.php?src=<?php echo $post_images[0];?>&w=700&h=290&zc=1&q=80<?php echo $thumb_url;?>" alt="<?php the_title(); ?>" class="fade_hover" /> </a></div></div>
- <?php }?>
- <p class="meta">Af <?php the_author_posts_link(); ?> | <?php the_time('j F, Y'); ?>, <?php the_time('H:i'); ?> | <a href="<?php the_permalink(); ?>#commentarea"><?php comments_number('Ingen kommentarer', 'Én kommentar', '% kommentarer'); ?></a> | <?php the_category(", "); ?> <?php the_tags('| Tags: ', ', ', ''); ?></p>
-
-
-
- <?php if(get_post_meta($post->ID,'video',true)){?>
- <div class="video_main">
- <?php echo get_post_meta($post->ID,'video',true);?>
- </div>
- <?php }?>
-
-
- <?php the_content(); ?>
-
- </div> <!-- post #end -->
-
- </div> <!-- single post content #end -->
- <?php if (get_option(uniq_about_the_author)) { ?>
- <?php uniq_author_info(); ?>
- <?php } ?>
-
-
-
- </div> <!-- content #end -->
-
-
- <?php if (get_option(uniq_related)) get_related_posts($post); ?>
- <div id="comments"><?php comments_template(); ?></div>
- <?php endwhile; ?>
- <?php endif; ?>
-
-
-
-
-
-
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Indlæg senest redigeret d. 20.05.2012 20:35 af Bruger #14602