jahan654 3 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 سلاممی خواهم کد افزونه FEEDWORDPRESS را در قالم بگذارمدقیقا در کجای این فایل single.php باید بگذارممی خواهم این طور نوشته شود در انتهای هر پستمنبع مطلب (لینک به مطلب)محتویات فایل single.php<?php/*** Single Post Template** …** @package Thematic* @subpackage Templates*/[/left] // calling the header.php get_header(); // action hook for placing content above #container thematic_abovecontainer();?> <div id="container"> <?php // action hook for placing content above #content thematic_abovecontent(); // filter for manipulating the element that wraps the content echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" ); // start the loop while ( have_posts() ) : the_post(); // create the navigation above the content thematic_navigation_above(); // calling the widget area 'single-top' get_sidebar('single-top'); // action hook creating the single post thematic_singlepost(); // calling the widget area 'single-insert' get_sidebar('single-insert'); // create the navigation below the content thematic_navigation_below(); // action hook for calling the comments_template thematic_comments_template(); // end the loop endwhile; // calling the widget area 'single-bottom' get_sidebar('single-bottom'); ?> </div><!-- #content --> <?php // action hook for placing content below #content thematic_belowcontent(); ?> </div><!-- #container --><?php // action hook for placing content below #container thematic_belowcontainer(); // calling the standard sidebar thematic_sidebar(); // calling footer.php get_footer();?> نقل قول لینک به ارسال
Morteza 34190 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 باید بعد تابع thematic_singlepost قرار بدید 1 نقل قول لینک به ارسال
jahan654 3 ارسال شده در تیر 92 مالک گزارش بازنشر ارسال شده در تیر 92 باید بعد تابع thematic_singlepost قرار بدیدکد را از این جا برداشتمhttp://forum.wp-parsi.com/tutorials/article/157-%D8%A2%D9%85%D9%88%D8%B2%D8%B4-%DA%A9%D9%84-%D8%AA%D9%86%D8%B8%DB%8C%D9%85%D8%A7%D8%AA-feedwordpress/و در قالب گذاشتم ولی صفحه تمامی پست ها سفید شد<?php/*** Single Post Template** …** @package Thematic* @subpackage Templates*/[/left] // calling the header.php get_header(); // action hook for placing content above #container thematic_abovecontainer();?> <div id="container"> <?php // action hook for placing content above #content thematic_abovecontent(); // filter for manipulating the element that wraps the content echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" ); // start the loop while ( have_posts() ) : the_post(); // create the navigation above the content thematic_navigation_above(); // calling the widget area 'single-top' get_sidebar('single-top'); // action hook creating the single post thematic_singlepost();<?php $syndication_source = get_post_meta($post->ID, 'syndication_source', true); $syndication_permalink = get_post_meta($post->ID, 'syndication_permalink', true);?>منبع : <a href="<?php echo $syndication_permalink;?>"><?php echo $syndication_source; ?> </a><br /> // calling the widget area 'single-insert' get_sidebar('single-insert'); // create the navigation below the content thematic_navigation_below(); // action hook for calling the comments_template thematic_comments_template(); // end the loop endwhile; // calling the widget area 'single-bottom' get_sidebar('single-bottom'); ?> </div><!-- #content --> <?php // action hook for placing content below #content thematic_belowcontent(); ?> </div><!-- #container --><?php // action hook for placing content below #container thematic_belowcontainer(); // calling the standard sidebar thematic_sidebar(); // calling footer.php get_footer();?> نقل قول لینک به ارسال
Morteza 34190 ارسال شده در تیر 92 گزارش بازنشر ارسال شده در تیر 92 بله مشکل در کپی کد از سمت شما بود: <?php/*** Single Post Template** …** @package Thematic* @subpackage Templates*/[/left] // calling the header.php get_header(); // action hook for placing content above #container thematic_abovecontainer();?> <div id="container"> <?php // action hook for placing content above #content thematic_abovecontent(); // filter for manipulating the element that wraps the content echo apply_filters( 'thematic_open_id_content', '<div id="content">' . "\n\n" ); // start the loop while ( have_posts() ) : the_post(); // create the navigation above the content thematic_navigation_above(); // calling the widget area 'single-top' get_sidebar('single-top'); // action hook creating the single post thematic_singlepost();$syndication_source = get_post_meta($post->ID, 'syndication_source', true); $syndication_permalink = get_post_meta($post->ID, 'syndication_permalink', true);?>منبع : <a href="<?php echo $syndication_permalink;?>"><?php echo $syndication_source; ?> </a><br /><?php // calling the widget area 'single-insert' get_sidebar('single-insert'); // create the navigation below the content thematic_navigation_below(); // action hook for calling the comments_template thematic_comments_template(); // end the loop endwhile; // calling the widget area 'single-bottom' get_sidebar('single-bottom'); ?> </div><!-- #content --> <?php // action hook for placing content below #content thematic_belowcontent(); ?> </div><!-- #container --><?php // action hook for placing content below #container thematic_belowcontainer(); // calling the standard sidebar thematic_sidebar(); // calling footer.php get_footer();?> 1 نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .