رفتن به مطلب

مشکل در کد گذاری؟


پست های پیشنهاد شده

سلام / برادران، من تو یک مسئله هنوز هنگم ... ببینید برای مثال من کد های صفحه ایندکس قالب رو که به صورت زیر هست رو کد گذاری کرده ام و:


get_header(); ?>
<div id="primary" class="site-content">
<div id="content" role="main">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php twentytwelve_content_nav( 'nav-below' ); ?>
<?php else : ?>
<article id="post-0" class="post no-results not-found">
<?php if ( current_user_can( 'edit_posts' ) ) :
// Show a different message to a logged-in user who can add posts.
?>
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'No posts to display', 'twentytwelve' ); ?></h1>
</header>
<div class="entry-content">
<p><?php printf( __( 'Ready to publish your first post? <a href="%s">Get started here</a>.', 'twentytwelve' ), admin_url( 'post-new.php' ) ); ?></p>
</div><!-- .entry-content -->
<?php else :
// Show the default message to everyone else.
?>
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentytwelve' ); ?></h1>
</header>
<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found. Perhaps searching will help find a related post.', 'twentytwelve' ); ?></p>
<?php get_search_form(); ?>
</div><!-- .entry-content -->
<?php endif; // end current_user_can() check ?>
</article><!-- #post-0 -->
<?php endif; // end have_posts() check ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

و شکل کد شده به صورت زیر هست :


%0Aget_header()%3B%20%3F%3E%0A%0A%09%3Cdiv%20id%3D%22primary%22%20class%3D%22site-content%22%3E%0A%09%09%3Cdiv%20id%3D%22content%22%20role%3D%22main%22%3E%0A%09%09%3C%3Fphp%20if%20(%20have_posts()%20)%20%3A%20%3F%3E%0A%0A%09%09%09%3C%3Fphp%20%2F*%20Start%20the%20Loop%20*%2F%20%3F%3E%0A%09%09%09%3C%3Fphp%20while%20(%20have_posts()%20)%20%3A%20the_post()%3B%20%3F%3E%0A%09%09%09%09%3C%3Fphp%20get_template_part(%20%27content%27%2C%20get_post_format()%20)%3B%20%3F%3E%0A%09%09%09%3C%3Fphp%20endwhile%3B%20%3F%3E%0A%0A%09%09%09%3C%3Fphp%20twentytwelve_content_nav(%20%27nav-below%27%20)%3B%20%3F%3E%0A%0A%09%09%3C%3Fphp%20else%20%3A%20%3F%3E%0A%0A%09%09%09%3Carticle%20id%3D%22post-0%22%20class%3D%22post%20no-results%20not-found%22%3E%0A%0A%09%09%09%3C%3Fphp%20if%20(%20current_user_can(%20%27edit_posts%27%20)%20)%20%3A%0A%09%09%09%09%2F%2F%20Show%20a%20different%20message%20to%20a%20logged-in%20user%20who%20can%20add%20posts.%0A%09%09%09%3F%3E%0A%09%09%09%09%3Cheader%20class%3D%22entry-header%22%3E%0A%09%09%09%09%09%3Ch1%20class%3D%22entry-title%22%3E%3C%3Fphp%20_e(%20%27No%20posts%20to%20display%27%2C%20%27twentytwelve%27%20)%3B%20%3F%3E%3C%2Fh1%3E%0A%09%09%09%09%3C%2Fheader%3E%0A%0A%09%09%09%09%3Cdiv%20class%3D%22entry-content%22%3E%0A%09%09%09%09%09%3Cp%3E%3C%3Fphp%20printf(%20__(%20%27Ready%20to%20publish%20your%20first%20post%3F%20%3Ca%20href%3D%22%25s%22%3EGet%20started%20here%3C%2Fa%3E.%27%2C%20%27twentytwelve%27%20)%2C%20admin_url(%20%27post-new.php%27%20)%20)%3B%20%3F%3E%3C%2Fp%3E%0A%09%09%09%09%3C%2Fdiv%3E%3C!--%20.entry-content%20--%3E%0A%0A%09%09%09%3C%3Fphp%20else%20%3A%0A%09%09%09%09%2F%2F%20Show%20the%20default%20message%20to%20everyone%20else.%0A%09%09%09%3F%3E%0A%09%09%09%09%3Cheader%20class%3D%22entry-header%22%3E%0A%09%09%09%09%09%3Ch1%20class%3D%22entry-title%22%3E%3C%3Fphp%20_e(%20%27Nothing%20Found%27%2C%20%27twentytwelve%27%20)%3B%20%3F%3E%3C%2Fh1%3E%0A%09%09%09%09%3C%2Fheader%3E%0A%0A%09%09%09%09%3Cdiv%20class%3D%22entry-content%22%3E%0A%09%09%09%09%09%3Cp%3E%3C%3Fphp%20_e(%20%27Apologies%2C%20but%20no%20results%20were%20found.%20Perhaps%20searching%20will%20help%20find%20a%20related%20post.%27%2C%20%27twentytwelve%27%20)%3B%20%3F%3E%3C%2Fp%3E%0A%09%09%09%09%09%3C%3Fphp%20get_search_form()%3B%20%3F%3E%0A%09%09%09%09%3C%2Fdiv%3E%3C!--%20.entry-content%20--%3E%0A%09%09%09%3C%3Fphp%20endif%3B%20%2F%2F%20end%20current_user_can()%20check%20%3F%3E%0A%0A%09%09%09%3C%2Farticle%3E%3C!--%20%23post-0%20--%3E%0A%0A%09%09%3C%3Fphp%20endif%3B%20%2F%2F%20end%20have_posts()%20check%20%3F%3E%0A%0A%09%09%3C%2Fdiv%3E%3C!--%20%23content%20--%3E%0A%09%3C%2Fdiv%3E%3C!--%20%23primary%20--%3E%0A%0A%3C%3Fphp%20get_sidebar()%3B%20%3F%3E%0A%3C%3Fphp%20get_footer()%3B%20%3F%3E

خوب حالا من این کدها رو جایگذاری کرده ام / اما قالب ریخت به هم .... یعنی دقیقا همین کدهای عجق وجق رو نشون داد... الان باید چیکار کنم ؟

لینک به ارسال

سلام ! يكسري از اين كدر ها بعد اين كه تبديل به كد ميكنن براي بازگشت به حالت اولي به اينكدر نياز دارن كه اينكدر بايد روي سرور هاي هاست هم نصب باشه تل بتونه به حالت اوليه برگردونه !‌

لینک به ارسال

به گفتگو بپیوندید

هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .

مهمان
ارسال پاسخ به این موضوع ...

×   شما در حال چسباندن محتوایی با قالب بندی هستید.   حذف قالب بندی

  تنها استفاده از 75 اموجی مجاز می باشد.

×   لینک شما به صورت اتوماتیک جای گذاری شد.   نمایش به صورت لینک

×   محتوای قبلی شما بازگردانی شد.   پاک کردن محتوای ویرایشگر

×   شما مستقیما نمی توانید تصویر خود را قرار دهید. یا آن را اینجا بارگذاری کنید یا از یک URL قرار دهید.

×
×
  • اضافه کردن...