ممنون از شما امّا بنده موفق نشدم. کد فایل single.php و index.php و page.php را قرار می دهم ممنون می شوم اگر بفرمایید کدام کد باید در page.php کپی شود:
single.php:
index.php:کد:<?php /** * * single.php * * The single post template. Used when a single post is queried. * */ get_header(); ?> <?php get_sidebar('top'); ?> <?php if (have_posts()) { /* Display navigation to next/previous posts when applicable */ if (theme_get_option('theme_top_single_navigation')) { theme_page_navigation( array( 'next_link' => theme_get_previous_post_link('« %link'), 'prev_link' => theme_get_next_post_link('%link »') ) ); } while (have_posts()) { the_post(); get_template_part('content', 'single'); /* Display comments */ if (theme_get_option('theme_allow_comments')) { comments_template(); } } /* Display navigation to next/previous posts when applicable */ if (theme_get_option('theme_bottom_single_navigation')) { theme_page_navigation( array( 'next_link' => theme_get_previous_post_link('« %link'), 'prev_link' => theme_get_next_post_link('%link »') ) ); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <?php get_footer(); ?>
page.php:کد:<?php get_header(); ?> <?php get_sidebar('top'); ?> <?php if (have_posts()) { /* Display navigation to next/previous pages when applicable */ if (theme_get_option('theme_' . (theme_is_home() ? 'home_' : '') . 'top_posts_navigation')) { theme_page_navigation(); } /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', get_post_format()); } /* Display navigation to next/previous pages when applicable */ if (theme_get_option('theme_bottom_posts_navigation')) { theme_page_navigation(); } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <?php get_footer(); ?>
کد:<?php get_header(); ?> <?php get_sidebar('top'); ?> <?php if (have_posts()) { /* Start the Loop */ while (have_posts()) { the_post(); get_template_part('content', 'page'); /* Display comments */ if (theme_get_option('theme_allow_comments')) { comments_template(); } } } else { theme_404_content(); } ?> <?php get_sidebar('bottom'); ?> <?php get_footer(); ?>





پاسخ با نقل قول
