• Hy all, ??

    I have problem..in single.php file.
    I try posting the article, with custom field and featured image.
    But,if i click the result of post in homepage. I get, all my post shown with full summary.And the ID post in the address bar is correct.

    Please help me ??

    My single.php file

    <?php get_header(); ?>
            <div id="content-common">
            	<div class="post-container">
                <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <div class="post">
                        <div class="title">
                            <h1>
                            	<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                            </h1>
                        </div>
                        <div class="entry-post">
                            <?php the_post_thumbnail(); ?>
                            <?php the_content(); ?>
                            <?php
    							$custom_field_fitur = nl2br(get_post_meta($post->ID,"Fitur",true));
    							$custom_field_organiser = get_post_meta($post->ID,"Organiser",true);
    
    							echo "Fitur : ".$custom_field_fitur."<br />";
    							echo "Organiser : ".$custom_field_organiser;
    						?>
                        </div>
                   </div>
                <?php endwhile; else: ?>
    				<p>Sorry, no posts matched your criteria.</p>
    			<?php endif; ?>
                </div><!-- End Post Container -->
            </div><!-- End Content -->
    <?php get_footer(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error in Single.php’ is closed to new replies.