saeedsaeed 19 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 من یه قالب خارجی رو فارسی کردم دارم استفاده می کنم ولی تاریخ ها رو میلادی نشون میده افزونه افزونه wp-jalali هم نصب هست نقل قول لینک به ارسال
TATAR 267 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 http://www.higgsboson.ir/blog/free-wordpress-plugin/solve-wp-jalali-plugin/ نقل قول لینک به ارسال
NESTED 4295 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 محتوای فایل php صفحه رو میشه قرار بدین تا بررسی بشه 1 نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 کد مربوط به صفحه index.php<?php global $theme; get_header(); ?> <div id="main"> <?php $theme->hook('main_before'); ?> <div id="content"> <?php $theme->hook('content_before'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); /** * The default post formatting from the post.php template file will be used. * If you want to customize the post formatting for your homepage: * * - Create a new file: post-homepage.php * - Copy/Paste the content of post.php to post-homepage.php * - Edit and customize the post-homepage.php file for your needs. * * Learn more about the get_template_part() function: http://codex.wordpress.org/Function_Reference/get_template_part */ get_template_part('post', 'homepage'); endwhile; else : get_template_part('post', 'noresults'); endif; get_template_part('navigation'); ?> <?php $theme->hook('content_after'); ?> </div><!-- #content --> <?php get_sidebars(); ?> <?php $theme->hook('main_after'); ?> </div><!-- #main --><?php get_footer(); ?> نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 این کد نیست دنبال صفحاتی مثل loop.php یا content.php بگردید نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 این صفحه ها رو نداره فکر کنم این باشه<?php if ( $wp_query->max_num_pages > 1 ) { ?> <div class="navigation clearfix"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?><div class="alignleft"><?php next_posts_link( __( '<span>«</span> Older posts', 'themater' ) );?></div> <div class="alignright"><?php previous_posts_link( __( 'Newer posts <span>»</span>', 'themater' ) );?></div><?php } ?> </div><!-- .navigation --><?php } ?>یا این<?php global $theme; ?> <div <?php post_class('post page clearfix'); ?> id="post-<?php the_ID(); ?>"> <h2 class="title"><?php the_title(); ?></h2> <?php if(is_user_logged_in()) { ?> <div class="postmeta-primary"><span class="meta_edit"><?php edit_post_link(); ?></span></div> <?php } ?> <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> </div><!-- Page ID <?php the_ID(); ?> --> نقل قول لینک به ارسال
TATAR 267 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 با توضیحات موجود در لینک ارسال شده در پست دوم به احتمال زیاد درست میشه.اگه درست نشد،توی فایل های single.php یا home.php یا index.php و هر جایی که از توابع تاریخ استفاده شده دنبال کد date یا the_date بگردید. 1 نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 (ویرایش شده) با توضیحات موجود در لینک ارسال شده در پست دوم به احتمال زیاد درست میشه.اگه درست نشد،توی فایل های single.php یا home.php یا index.php و هر جایی که از توابع تاریخ استفاده شده دنبال کد date یا the_date بگردید.تغییر دادم نشد توی این date iهست<?php global $theme; ?> <div <?php post_class('post post-single clearfix'); ?> id="post-<?php the_ID(); ?>"> <h2 class="title"><?php the_title(); ?></h2> <?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") ); } ?> <div class="postmeta-primary"> <span class="meta_date"><?php echo get_the_date(); ?></span> <span class="meta_categories"><?php the_category(', '); ?></span> <?php if(is_user_logged_in()) { ?> <span class="meta_edit"><?php edit_post_link(); ?></span><?php } ?> </div> <div class="entry clearfix"> <?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); } ?> ویرایش شده اردیبهشت 92 توسط saeedsaeed نقل قول لینک به ارسال
Saeed Fard 4740 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 یک ت به ابتدای date در <?php echo get_the_date(); ?>اضافه کنید و تست کنید ، به این صورت :<?php echo get_the_jdate(); ?> 3 نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 یک ت به ابتدای date در <?php echo get_the_date(); ?>اضافه کنید و تست کنید ، به این صورت :<?php echo get_the_jdate(); ?>انجام دادم نشد بعد ادامه مطلب هم نشون نمیداد دیگه نقل قول لینک به ارسال
Saeed Fard 4740 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 این تابع رو جایگزین کنید<?php the_time('j M, Y'); ?> 4 نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 (ویرایش شده) این تابع رو جایگزین کنید<?php the_time('j M, Y'); ?>ممنون درست شد فقط یه مشکل دیگه هست توی ادامه مطلب درسته ولی صفحه اصلی نه ویرایش شده اردیبهشت 92 توسط saeedsaeed نقل قول لینک به ارسال
Morteza 34190 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 توی صفحه اصلی هم تابع رو پیدا و جایگزین کردید؟ 3 نقل قول لینک به ارسال
saeedsaeed 19 ارسال شده در اردیبهشت 92 مالک گزارش بازنشر ارسال شده در اردیبهشت 92 از همتون متشکرم همه چیز درست شد نقل قول لینک به ارسال
Parsa 23463 ارسال شده در اردیبهشت 92 گزارش بازنشر ارسال شده در اردیبهشت 92 از the_time() استفاده کنید 3 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .