رفتن به مطلب

گذاشتن کد افزونه FEEDWORDPRESS در قالب


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

سلام

می خواهم کد افزونه 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();
?>

لینک به ارسال

باید بعد تابع 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();
?>

لینک به ارسال

بله مشکل در کپی کد از سمت شما بود:

<?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();

?>

لینک به ارسال

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

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

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

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

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

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

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

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

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