Esmaeel 0 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 سلام، تو وبسایت من وقتی روی یه دسته بندی خاص کلیک میکنم، مطالبش میاد ولی تصویر پست لود نمیشه. چرا؟ نقل قول لینک به ارسال
مهدی 1668 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 سلامدر قالبتون فایل Archive رو ببینید کد فراخوانی عکس وجود داره؟یا توی به دسته دیگه تست کنید 2 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در بهمن 93 مالک گزارش بازنشر ارسال شده در بهمن 93 والا من از کدنویسی زیاد سر در نمیارم، چه کدی باید موجود باشه؟ نقل قول لینک به ارسال
A-fshin 1936 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 درود.اگر از تابع خلاصه ی مطلب استفاده شده باید از تابع تصویر شاخص برای لود کردن تصاویر شاخص استفاده کنیدhttp://codex.wordpress.org/Post_Thumbnails 4 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در بهمن 93 مالک گزارش بازنشر ارسال شده در بهمن 93 ببینید، من میخوام وقتی یه کاربر روی یه دسته بندی خاص کلیک کرد، اون پست ها همون طوری که در صفحه اصلی هستند نمایش داده بشه. نقل قول لینک به ارسال
Morteza 34190 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 خوب تو صفحه اصلی با عکس هست؟کد همون بخش رو بگیرید و ببرید توی تک صفحه.اگر بد متوجه شدم بفرمایید 1 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در بهمن 93 مالک گزارش بازنشر ارسال شده در بهمن 93 بله، در صفحه اصلی مطالب تصویر دارند.من میخوام آرشیو موضوعی مثل صفحه اصلی لود بشه تصاویرش. نقل قول لینک به ارسال
Morteza 34190 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 شما دوتا فایل آرشیو و تک نوشته رو اینجا پیوست کنین برای بررسی 1 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در بهمن 93 مالک گزارش بازنشر ارسال شده در بهمن 93 شما یه نگاهی به وبسایت بندازید تا متوجه منظورم بشید. نقل قول لینک به ارسال
A-fshin 1936 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 قبل از همه یه بک آپ از کل پوسته تون بگیرید و در جای دیگه نگه دارید.سپس یک فایل با نام category.php بسازی در کنار باقی فایل ها قرار بدید.کدهای داخل index.php ( یا در صورت وجود home.php یا content.php ) کپی کنید و کدهای کپی شده رو در فایل category که ایجاد کردید قرار بدید وذخیره کنید و تست کنید 3 نقل قول لینک به ارسال
Morteza 34190 ارسال شده در بهمن 93 گزارش بازنشر ارسال شده در بهمن 93 خوب متوجه شدم که گفتم اون دو فایل رو آپلود کنید 2 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در اسفند 93 مالک گزارش بازنشر ارسال شده در اسفند 93 سلام، این کارو کردم ولی هنوز درست نشده!عینا کد های index.php رو جایگزین کردم با کد های category.php ولی هنوز تصاویر لود نمیشن!خوب متوجه شدم که گفتم اون دو فایل رو آپلود کنید بفرمایید:<?php/*** The category archive template file** @package Graphene* @since Graphene 1.1.5*/get_header();?> <h1 class="page-title archive-title"> <?php printf( __( 'Category Archive: <span>%s</span>', 'graphene' ), single_cat_title( '', false ) ); ?> </h1> <?php graphene_tax_description(); ?> <div class="entries-wrapper"> <?php /** * Run the loop for the category page to output the posts. * If you want to overload this in a child theme then include a file * called loop-category.php and that will be used instead. */ while ( have_posts() ) { the_post(); get_template_part( 'loop', 'category' ); } ?> </div> <?php graphene_posts_nav(); ?><?php get_footer(); ?><?php/*** The archive template file** @package Graphene* @since Graphene 1.1.5*/get_header();?><?php/* Queue the first post, that way we know* what date we're dealing with (if that is the case).** We reset this later so we can run the loop* properly with a call to rewind_posts().*/if ( have_posts() ) the_post();?> <h1 class="page-title archive-title"> <?php if ( is_day() ) : ?> <?php printf( __( 'Daily Archive: %s', 'graphene' ), '<span>' . get_the_date() . '</span>' ); ?> <?php elseif ( is_month() ) : ?> <?php printf( __( 'Monthly Archive: %s', 'graphene' ), /* translators: F will be replaced with month, and Y will be replaced with year, so "F Y" in English would be replaced with something like "June 2008". */ '<span>' . get_the_date( __( 'F Y', 'graphene' ) ) . '</span>' ); ?> <?php elseif ( is_year() ) : ?> <?php printf(__( 'Yearly Archive: %s', 'graphene' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?> <?php else : ?> <?php _e( 'Blog Archive', 'graphene' ); ?> <?php endif; ?> </h1> <div class="entries-wrapper"> <?php /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); /* Run the loop for the archives page to output the posts. * If you want to overload this in a child theme then include a file * called loop-archives.php and that will be used instead. */ while ( have_posts() ) { the_post(); get_template_part( 'loop', 'archive' ); } ?> </div> <?php graphene_posts_nav(); ?><?php get_footer(); ?> نقل قول لینک به ارسال
Morteza 34190 ارسال شده در اسفند 93 گزارش بازنشر ارسال شده در اسفند 93 فایلی که توش اسم loop داره برای single رو بزارید اینجا 2 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در اسفند 93 مالک گزارش بازنشر ارسال شده در اسفند 93 (ویرایش شده) <?phpglobal $graphene_settings;$post_type = get_post_type_object( get_post_type() );?><?php/*** Check if the post has a post format. Load a post-format specific loop file,* if it has. Continue with standard loop otherwise.*/if ( function_exists( 'get_post_format' ) ) {global $post_format;$post_format = get_post_format();// Get the post formats supported by the theme$supported_formats = get_theme_support( 'post-formats' );if ( is_array( $supported_formats ) ) $supported_formats = $supported_formats[0];if ( in_array( $post_format, $supported_formats ) ) {// Get the post format loop fileget_template_part( 'loop-post-formats', $post_format );// Stop this default posts loopreturn;}}?><?php /* Post navigation */ ?><?php graphene_post_nav(); ?><div id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix post' ); ?>><?php do_action( 'graphene_before_post' ); ?><div class="entry clearfix"><?php /* Post date */ ?><?php if ( stristr( graphene_post_date_setting( get_the_ID() ), 'icon' ) ) graphene_post_date(); ?><?php /* Show the post author's gravatar if enabled */if ( $graphene_settings['show_post_avatar'] ) {echo '<div class="post-avatar-wrap gutter-left">' . get_avatar( get_the_author_meta( 'user_email' ), 45 ) . '</div>';}?><?php/* Add a print button only for single pages/posts* and if the theme option is enabled.*/if ( $graphene_settings['print_button'] ) : ?><?php graphene_print_button( $post_type ); ?><?php endif; ?><?php /* Add an email post icon if the WP-Email plugin is installed and activated */if( function_exists( 'wp_email' ) ) { echo '<p class="email wp-email-button">'; email_link(); echo '</p>'; }?><?php /* Post title */ ?><h1 class="post-title entry-title"><?php if ( get_the_title() == '' ) { _e( '(No title)', 'graphene' ); } else { the_title(); } ?><?php do_action( 'graphene_post_title' ); ?></h1><?php /* Post meta */ ?><div class="post-meta clearfix"><?php /* Post category, not shown if admin decides to hide it */ ?><?php if ( ( $graphene_settings['hide_post_cat'] != true ) ) : ?><span class="printonly"><?php _e( 'Categories:', 'graphene' ); ?> </span><p class="meta_categories"><?php the_category( ", " ); ?></p><?php endif; ?><?php /* Edit post link, if user is logged in */ ?><?php if ( is_user_logged_in() ) : ?><p class="edit-post"><?php edit_post_link( sprintf( __( 'Edit %s', 'graphene' ), $post_type->labels->singular_name ), ' (', ')' ); ?></p><?php endif; ?><?php /* Microdata field for "Updated" */ ?><?php if ( ! graphene_should_show_date() ) : ?><span class="updated"><span class="value-title" title="<?php the_time( 'Y-m-d\TH:i' ); ?>" /></span><?php endif; ?><?php /* Inline post date */ ?><?php if ( graphene_post_date_setting( get_the_ID() ) == 'text' ) graphene_post_date(); ?><?php /* Post author, not shown if admin decides to hide it */ ?><?php if ( $graphene_settings['hide_post_author'] != true ) : ?><p class="post-author author vcard"><?php/* translators: this is for the author byline, such as 'by John Doe' */$author_url = '<a href="' . get_author_posts_url( get_the_author_meta( 'ID' ) ) . '" class="url">' . get_the_author_meta( 'display_name' ) . '</a>';printf( __( 'by %s', 'graphene' ), '<span class="fn nickname">' . apply_filters( 'graphene_author_url', $author_url ) . '</span>' );?></p><?php endif; ?><?php /* For printing: the date of the post */if ( $graphene_settings['print_css'] && graphene_should_show_date() ) {echo graphene_print_only_text( '<em>' . get_the_time( get_option( 'date_format' ) ) . '</em>' );}?><?php do_action( 'graphene_post_meta' ); ?></div><?php /* Post content */ ?><div class="entry-content clearfix"><?php do_action( 'graphene_before_post_content' ); ?><?php /* Social sharing buttons at top of post */ ?><?php if ( stripos( $graphene_settings['addthis_location'], 'top' ) !== false ) { graphene_addthis( get_the_ID() ); } ?><?php /* The full content */ ?><?php the_content(); ?><?php wp_link_pages( array( 'before' => '<div class="link-pages"><p><strong>' . __( 'Pages:','graphene' ) . '</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?><?php do_action( 'graphene_after_post_content' ); ?></div><?php /* Post footer */ ?><div class="entry-footer clearfix"><?php /* Display the post's tags, if there is any */ ?><?php if ( $graphene_settings['hide_post_tags'] != true ) : ?><p class="post-tags"><?php if ( has_tag() ) { _e( 'Tags:','graphene' ); the_tags( ' ', ', ', '' ); } else { _e( 'This post has no tag','graphene' ); } ?></p><?php endif; ?><?php/* Display AddThis social sharing button */if ( stripos( $graphene_settings['addthis_location'], 'bottom' ) !== false) { graphene_addthis( get_the_ID() ); }?><?php do_action( 'graphene_post_footer' ); ?></div></div></div><?php/*** Display the post author's bio in single-post page if enabled*/if ( $graphene_settings['show_post_author'] ) :?><h4 class="author_h4 vcard"><?php _e( 'About the author', 'graphene' ); ?></h4><div class="author-info clearfix"><div <?php graphene_grid( 'author-avatar-wrap', 2, 2, 2, true ); ?>><?phpif ( $author_imgurl = get_the_author_meta( 'graphene_author_imgurl' ) ) {echo '<img class="avatar" src="' . $author_imgurl . '" alt="" />';} else {echo get_avatar( get_the_author_meta( 'user_email' ), graphene_grid_width( '', 2 ) );}?></div><p class="author_name"><strong><?php the_author_meta( 'display_name' ); ?></strong></p><div class="author_bio"><?php echo wpautop( get_the_author_meta( 'description' ) ); ?></div></div><?php endif; ?><?php /* For printing: the permalink */if ( $graphene_settings['print_css'] ) {echo graphene_print_only_text( '<span class="printonly url"><strong>' . __( 'Permanent link to this article:', 'graphene' ) . ' </strong><span>' . get_permalink() . '</span></span>' );}?><?php/*** Display Adsense advertising for single post pages* See graphene_adsense() function in functions.php*/graphene_adsense(); ?><?php /* Get the comments template for single post pages */ ?><?php comments_template(); ?><?php do_action( 'graphene_loop_footer' ); ?> ویرایش شده اسفند 93 توسط Morteza نقل قول لینک به ارسال
Morteza 34190 ارسال شده در اسفند 93 گزارش بازنشر ارسال شده در اسفند 93 این فایل رو تست کنینloop-single.rar 2 نقل قول لینک به ارسال
Esmaeel 0 ارسال شده در اسفند 93 مالک گزارش بازنشر ارسال شده در اسفند 93 متاسفانه این کد هم جایگزین کردم ولی کار نکرد! نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .