رفتن به مطلب

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


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

سلام و خسته نباشید

سطون سمت چپ و اطلاعات وسط سایت نمیاد

و فقط هم در صفحه اول نمیاد و در صفحات دیگه سایت میاد

و اینو میدونم که مشکل اط قالب و کد ها نیست و کلا مشکل از دیتابیس میباشد

چون وقتی دیتابیس قدیم رو رستور میکنم دیگه میاد و کار میکنه

لینک به ارسال

ببخشید ادرس سایت رو فراموش کردم

http://tcaria.ir/news

این هم ایندکس

آدرس سایتتون ...

منظورتون از ستون قسمت ابزارک ها هستش ؟

نمیشه گفت مکان ابزارک ها

چون قالب رو خودم طراحی کردم و اون سطون محدود شده است

در واقع جای ابزارک نیست تقریبا

index.php

لینک به ارسال

index.php منظورشون مال قالب بود که باید بذارین.

این تابع get_post_with_category دوباره تعریف شده،اسم یکیش عوض شه درست میشه،این فایل رو بدین برای ویراش دوستان اوکی کنن براتون:


home/tcariair/public_html/news/wp-content/themes/mohammad1/content.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
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' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
'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' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
'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;
}
?>

لینک به ارسال

<?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' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
'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' => '<a href="' . get_permalink($post->ID) . '" rel="bookmark" title="' . strip_tags(get_the_title()) . '">' . get_the_title() . '</a>',
'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;
}
?>

لینک به ارسال

این هم کار نمیکنه

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

با یکی دیگه از برگه ها مقایسه کنید

لینک به ارسال

در روت هاست فایل wp-config رو باز کنید و این قسمت رو true کنید


define('WP_DEBUG', false);

یعنی اینطوری


define('WP_DEBUG', true);

بعدش تمام خطاها نمایش داده میشه و خطاهارو قرار بدید

لینک به ارسال

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

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

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

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

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

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

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

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

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