• 03-11-2012, 14:27:42
    #1
    Selamun Aleykum;

    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())  {
                        ?> &nbsp; <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); 
            }
        ?>
  • 03-11-2012, 17:14:30
    #2
    yardimci olabiliecek kimse yok mu ?
  • 03-11-2012, 17:57:59
    #3
    Üyeliği durduruldu
    sorunuzu anlayamadım hocam.
  • 03-11-2012, 18:19:15
    #4
    page.php de form kodu olan yerde bir formum var ve bu form sayfanin sag tarafinda cikiyor. yani wordpress de sayfa olusturdugum zaman form goruluyor ama yazi olusturdugum zaman form gorulmuyor. yazi yazdigim zamanda formun gorulmesini istiyorum. page.php yi ve post-single.php yi yukledim nasil bir degisiklik yapmam gerekiyor post-single.php de ?
  • 03-11-2012, 18:31:51
    #5
    Üyeliği durduruldu
    pm msn atın hocam elimden geldiğince yardımcı olurum.
  • 04-11-2012, 16:19:53
    #6
    msn kullanmiyorum, bu kodlarda ne gibi bir degisiklik yapmam gerek ?
  • 04-11-2012, 18:47:19
    #7
    linki de paylaşırsan daha iyi anlayalım. sidebar.php de bulunuyor olabilir çünkü.
  • 09-11-2012, 15:23:08
    #8
    ForsBey 'in ucretsiz yardimiyla sorunu hallettim. kendisine ve yardimci olmaya calisan tum arkadaslara cok tesekkur ederim.