
نیومدن سطون سمت چپ و اطلاعات وسط در صفحه اول





نوشته : soft2fire
سلام و خسته نباشید
سطون سمت چپ و اطلاعات وسط سایت نمیاد
و فقط هم در صفحه اول نمیاد و در صفحات دیگه سایت میاد
و اینو میدونم که مشکل اط قالب و کد ها نیست و کلا مشکل از دیتابیس میباشد
چون وقتی دیتابیس قدیم رو رستور میکنم دیگه میاد و کار میکنه
نوشته : کیانا
آدرس سایتتون …
منظورتون از ستون قسمت ابزارک ها هستش ؟
نوشته : M Javad
سلام کد صفحه index.php رو قرار بدید
نوشته : soft2fire
ببخشید ادرس سایت رو فراموش کردم
این هم ایندکس
آدرس سایتتون …
منظورتون از ستون قسمت ابزارک ها هستش ؟نمیشه گفت مکان ابزارک ها
چون قالب رو خودم طراحی کردم و اون سطون محدود شده است
در واقع جای ابزارک نیست تقریبا
نوشته : Goback
index.php منظورشون مال قالب بود که باید بذارین.
این تابع get_post_with_category دوباره تعریف شده،اسم یکیش عوض شه درست میشه،این فایل رو بدین برای ویراش دوستان اوکی کنن براتون:
home/tcariair/public_html/news/wp-content/themes/mohammad1/content.php
نوشته : M Javad
فایل ایندکس قالب رو بده عزیزم
نوشته : soft2fire
شرمنده از هاست برداشتم اشتباه فراستادم
سلام این ایندکس قالب.
<?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
global $post;
if ( isset( $_GET['cat'] ) && !empty( $_GET['cat'] ) ){
get_all_post();
}else{
get_post_with_category(4);
}
function get_post_with_category($id){
$target_category_id=$id;
$post_category_id=get_post_category_id();
if($post_category_id==$target_category_id){
theme_post_wrapper(
array(
'id' => theme_get_post_id(),
'category' => '4',
'class' => theme_get_post_class(),
'thumbnail' => theme_get_post_thumbnail(),
'title' => 'ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '',
'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
'before' => theme_get_metadata_icons('date,author,edit', 'header'),
'content' => theme_get_excerpt(),
'after' => theme_get_metadata_icons('', 'footer')
)
);
}
}
function get_all_post(){
theme_post_wrapper(
array(
'id' => theme_get_post_id(),
'class' => theme_get_post_class(),
'thumbnail' => theme_get_post_thumbnail(),
'title' => 'ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '',
'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
'before' => theme_get_metadata_icons('date,author,edit', 'header'),
'content' => theme_get_excerpt(),
'after' => theme_get_metadata_icons('category,comments', 'footer')
)
);
}
function get_post_category_id(){
$categoryes= get_the_category();
$first_cat= $categoryes[0];
$term_id=$first_cat->term_id;
return $term_id;
}
?>
نوشته : Goback
<?php
global $post;
if ( isset( $_GET['cat'] ) && !empty( $_GET['cat'] ) ){
get_all_post();
}else{
get_post_with_category(4);
}
if(!function_exists('get_post_with_category')){
function get_post_with_category($id){
$target_category_id=$id;
$post_category_id=get_post_category_id();
if($post_category_id==$target_category_id){
theme_post_wrapper(
array(
'id' => theme_get_post_id(),
'category' => '4',
'class' => theme_get_post_class(),
'thumbnail' => theme_get_post_thumbnail(),
'title' => 'ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '',
'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
'before' => theme_get_metadata_icons('date,author,edit', 'header'),
'content' => theme_get_excerpt(),
'after' => theme_get_metadata_icons('', 'footer')
)
);
}
}
}
function get_all_post(){
theme_post_wrapper(
array(
'id' => theme_get_post_id(),
'class' => theme_get_post_class(),
'thumbnail' => theme_get_post_thumbnail(),
'title' => 'ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '',
'heading' => theme_get_option('theme_' . (is_home() ? 'posts' : 'single') . '_article_title_tag'),
'before' => theme_get_metadata_icons('date,author,edit', 'header'),
'content' => theme_get_excerpt(),
'after' => theme_get_metadata_icons('category,comments', 'footer')
)
);
}
function get_post_category_id(){
$categoryes= get_the_category();
$first_cat= $categoryes[0];
$term_id=$first_cat->term_id;
return $term_id;
}
?>
نوشته : soft2fire
این هم کار نمیکنه
ارور نمیاد ولی دیگه صفحه سفید میاد جای سطون میانی و چپ
با یکی دیگه از برگه ها مقایسه کنید
نوشته : Goback
حالت دیباگ رو فعال کنید بعد لینک بدین،علم غیب نداریم
نوشته : M Javad
در روت هاست فایل wp-config رو باز کنید و این قسمت رو true کنید
define('WP_DEBUG', false);یعنی اینطوری
define('WP_DEBUG', true);بعدش تمام خطاها نمایش داده میشه و خطاهارو قرار بدید
نوشته : soft2fire
انجام شد