Arkadaslar, benim bi sayfam var ve sayfada sitenin sag tarafinda bir formum var. lakin bu formu yazi yazdigim zamanda gorummesini istiyorum. bunu nasil yaparim yardimci olursaniz cok sevinirim.
Sayfa; page.php
<?php global $theme; get_header(); ?>
<div id="main">
<div class="y1"><?php $theme->hook('main_before'); ?></div>
<div class="y12">
<br />
<br />
<br />
Form Kodu </div>
<div id="content">
<?php $theme->hook('content_before'); ?>
<?php
if (have_posts()) : while (have_posts()) : the_post();
/**
* Find the post formatting for the pages in the post-page.php file
*/
get_template_part('post', 'page');
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
endwhile;
else :
get_template_part('post', 'noresults');
endif;
?>
<?php $theme->hook('content_after'); ?>
</div><!-- #content -->
<?php get_sidebars(); ?>
<?php $theme->hook('main_after'); ?>
</div><!-- #main -->
<?php get_footer(); ?>Yazı post-single.php<?php global $theme; ?>
<div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>">
<?php if(comments_open( get_the_ID() )) {
?><div class="postmeta-comment"><?php comments_popup_link( '0', '1', '%' ); ?> </div><?php
}
?>
<h2 class="title"><?php the_title(); ?></h2>
<div class="postmeta-primary">
<?php if(is_user_logged_in()) {
?> <span class="meta_edit"><?php edit_post_link(); ?></span><?php
} ?>
</div>
<div class="entry clearfix">
<?php
if(has_post_thumbnail()) {
the_post_thumbnail(
array($theme->get_option('featured_image_width_single'), $theme->get_option('featured_image_height_single')),
array("class" => $theme->get_option('featured_image_position_single') . " featured_image")
);
}
?>
<?php
the_content('');
wp_link_pages( array( 'before' => '<p><strong>' . __( 'Pages:', 'themater' ) . '</strong>', 'after' => '</p>' ) );
?>
</div>
<?php if(get_the_tags()) {
?><div class="postmeta-secondary"><span class="meta_tags"><?php the_tags('', ', ', ''); ?></span></div><?php
}
?>
</div><!-- Post ID <?php the_ID(); ?> -->
<?php
if(comments_open( get_the_ID() )) {
comments_template('', true);
}
?>