انجمن

  • sina1415

    آفلاین
    عضو
    تعداد نوشته‌ها: ۷۵
    تشکر شده: ۳ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۲ مرداد ۱۳۹۰ - ۰۰:۵۰

    سلام دوستان من یه مشکل دارم:
    در صفحه موضوعات این ارور در پایین صفحه میاد ( به جای شماره صفحات ) و همچنین جداول کناری سایت نشون داده نمیشه :
    Fatal error: Call to undefined function wp-Paging() in /home/zamonehc/public_html/wp-content/themes/pika-wp-rip-full/category.php on line 30
    وارد محتویات category میشم و در خط 30 خط <?php wp_paging(); ?> رو پاک می کنم ارور میره همچنین قسمت های کنار سایت نشون داده میشه ولی شماره صفحه نیست.
    چنتا افزونه wp page نصب کردم ولی درست نشد . چکار کنم ؟؟ تا شماره صفحات بیاد و ارور پاک شه و قسمت کناری سایت هم بیاد؟؟ ممنونم

    اینم محتویات category.php

    <?php get_header(); ?>
    <div class="wa-right">
    <div class="wa-right-right">
    <div class="wa-box-cate-h">موضوعات</div>
    <div class="wa-box-cate">
    <ul>
    <?php wp_list_categories('title_li='); ?>
    </ul>
    </div>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('OTHER') )  ?>
    
    </div>
    <div class="wa-right-left wa-mr5">
    <div class="wa-char-h"><?php single_cat_title(); ?></div>
    <div class="wa-char">
    <ul>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>" ><b><?php the_title(); ?></b></a> [<?php echo the_date('d M Y'); ?>]<br>
    <?php the_excerpt_rss() ?>
    </li>
    <?php endwhile; ?>
    </ul>
    <?php wp_paging(); ?>
    </div>
    <div class="wa-new-h">آخرین مطالب ارسالی</div>
    <div class="wa-new">
    <ul>
    <?php
    	$recent_posts = wp_get_recent_posts();
    	foreach( $recent_posts as $post ){
    		echo '<li><a href="' . get_permalink($post["ID"]) . '" title="Look '.$post["post_title"].'" >' .   $post["post_title"].'</a> </li> ';
    	}
    ?>
    </ul>
    
    </div>
    </div>
    </div>
    <div class="wa-left">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('ADS') )  ?>
    
    </div>
    <?php get_footer(); ?>

    و این محتویان index

    <?php get_header(); ?>
    <div class="wa-right">
    <div class="wa-box wa-ml5">
    <div class="wa-slider-h">مطالب ویژه</div>
    <div class="wa-slider webalfa">
    <?php if ( function_exists( 'get_smooth_slider' ) ) {  get_smooth_slider(); } ?>
    </div>
    </div>
    <div class="wa-box wa-mr5">
    <div class="wa-box-yek-h">سلامت</div>
    <div class="wa-box-yek webalfa">
    <?php $myposts = get_posts('category=1931و1944&numberposts=10');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4></li>
    <?php endforeach; ?>
    </div>
    </div>
    <div class="wa-clear"></div>
    <div class="wa-right-right">
    <div class="wa-box-cate-h">موضوعات</div>
    <div class="wa-box-cate">
    <ul>
    <?php wp_list_categories('title_li='); ?>
    </ul>
    </div>
    
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('OTHER') )  ?>
    
    </div>
    <div class="wa-right-left wa-mr5">
    <div class="wa-right-left-right wa-ml5">
    <div class="wa-box-do-h">اخبار ایران و جهان</div>
    <div class="wa-box-do wa">
    <?php $myposts = get_posts('category=28&numberposts=15');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4></li>
    <?php endforeach; ?>
    <div class="left"><a href="<?php echo get_category_link( 1 ); ?>" >[آرشیو این موضوع]</a></div>
    </div>
    </div>
    <div class="wa-right-left-left wa-mr5">
    <div class="wa-box-se-h">سرگرمی</div>
    <div class="wa-box-se wa">
    <?php $myposts = get_posts('category=1916و1967و1935&numberposts=15');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4></li>
    <?php endforeach; ?>
    <div class="left"><a href="<?php echo get_category_link( 8 ); ?>" >[آرشیو این موضوع]</a></div>
    </div>
    </div>
    <div class="wa-clear"></div>
    <div class="wa-char-h">گالری عکس </div>
    <div class="wa-char">
    <?php $myposts = get_posts('category=1922&numberposts=1');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <div class="wa-fr">
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    <?php the_excerpt(); ?>
    </div>
    <div class="wa-fl">
    <img height="120" width="150" title="<?php the_title(); ?>" alt="<?php the_title(); ?>" src="<?php echo catch_that_image(); ?>">
    </div>
    <?php endforeach; ?>
    <div class="wa-clear"></div>
    <hr>
    <?php $myposts = get_posts('category=1922&numberposts=9&offset=1');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4> [<?php echo the_date('d M Y'); ?>] </li>
    <?php endforeach; ?>
    </div>
    <div class="wa-clear"></div>
       <div class="tabbed-box">
          <ul class="tabs">
             <li><a href="#">علم و تکنولوِژی</a></li>
             <li><a href="#">موسیقی و سینما</a></li>
             <li><a href="#">دین و اندیشه</a></li>
    	 <li><a href="#">هنرآشپزی و خانه داری</a></li>
          </ul>
          <div class="tabbed-content">
    <?php $myposts = get_posts('category=1940و1977و1972&numberposts=10');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4> [<?php echo the_date('d M Y'); ?>] </li>
    <?php endforeach; ?>
          </div>
          <div class="tabbed-content">
    <?php $myposts = get_posts('category=1955&numberposts=10');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4> [<?php echo the_date('d M Y'); ?>] </li>
    <?php endforeach; ?>
          </div>
          <div class="tabbed-content">
    <?php $myposts = get_posts('category=1970&numberposts=10');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4> [<?php echo the_date('d M Y'); ?>] </li>
    <?php endforeach; ?>
           </div>
    	         <div class="tabbed-content">
    <?php $myposts = get_posts('category=1960&numberposts=10');  ?>
    <?php foreach($myposts as $post) : setup_postdata($post); ?>
    <li><h4><a href="<?php the_permalink(); ?>"><?php  the_title(); ?></a></h4> [<?php echo the_date('d M Y'); ?>] </li>
    <?php endforeach; ?>
           </div>
    
       </div>
    
    </div>
    
    </div>
    <div class="wa-left">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('ADS') )  ?>
    
    </div>
    
    <?php get_footer(); ?>
  • silvercover

    آفلاین
    ناظم
    تعداد نوشته‌ها: ۴۹۷
    تشکر شده: ۵۹۷ بار
    # نوشته شده: ۱۲ سال پیش
    ۲۲ مرداد ۱۳۹۰ - ۰۹:۱۷

    آیا شما این افزونه رو نصب و بررسی کردین؟

    http://www.devdevote.com/cms/wordpress-plugins/wp-paging

درباره‌ی این موضوع



برچسب‌ها

هیچ برچسبی نیست.