Title: binishala's Replies | WordPress.org

---

# binishala

  [  ](https://wordpress.org/support/users/binishala/)

 *   [Profile](https://wordpress.org/support/users/binishala/)
 *   [Topics Started](https://wordpress.org/support/users/binishala/topics/)
 *   [Replies Created](https://wordpress.org/support/users/binishala/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/binishala/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/binishala/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/binishala/engagements/)
 *   [Favorites](https://wordpress.org/support/users/binishala/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/binishala/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/binishala/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to fix error 404 in category?](https://wordpress.org/support/topic/how-to-fix-error-404-in-category-1/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-fix-error-404-in-category-1/#post-6985625)
 * Issue solved.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [How to fix error 404 in category?](https://wordpress.org/support/topic/how-to-fix-error-404-in-category/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/how-to-fix-error-404-in-category/#post-6985623)
 * Issue solved.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948911)
 * Any solution?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948765)
 * Here have a look [http://www.xhepi.com/lajme/](http://www.xhepi.com/lajme/) maybe
   you can help me out
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948690)
 * Here is my category code
 *     ```
       <?php get_header();
       global $themeum_options;
       ?>
   
       <section id="main">
   
          <?php get_template_part('lib/sub-header')?>
   
           <div class="container">
               <div class="row">
                   <div id="content" class="site-content col-md-9" role="main">
   
                       <?php
                       global $themeum_options;
                       $count = $themeum_options['slide-number'];
                       $count_post = $themeum_options['post-number'];
                       if (!is_numeric($count)) {
                           $count = 6;
                       }
                       if (!is_numeric($count_post)) {
                           $count_post = 6;
                       }
   
                       $style = '';
                       if( !isset($themeum_options['style-select']) ){
                           $style = 'style1';
                       }else{
                           $style = esc_attr( $themeum_options['style-select'] );
                       }
   
                       $category = get_the_category(); 
   
                       $category_id = '';
                       if( isset($category[0]->cat_ID) ){
                           $category_id = esc_attr( $category[0]->cat_ID );
                       }
                       ?>
                       <div id="themeum-carousel" class="carousel slide" data-ride="carousel">
                           <ol class="carousel-indicators">
                               <?php
                                   $args = array(
                                       'cat' => $category_id,
                                       'meta_key' =>  'thm_featured',
                                       'meta_value' =>  '1',
                                       'posts_per_page' => $count
                                       );
                                   $query = new WP_Query( $args );
   
                                   $i=0;
                                   while ( $query->have_posts() ) :  $query->the_post();
                                       if( $i==0 ){
                                           echo '<li data-target="#themeum-carousel" data-slide-to="'.$i.'" class="active"></li>';
                                       }else{
                                               echo '<li data-target="#themeum-carousel" data-slide-to="'.$i.'"></li>';
                                       }
                                       $i++;
                                   endwhile;
                                   wp_reset_postdata();
                               ?>
                           </ol>
                           <div class="carousel-inner" role="listbox">
                               <?php
   
                                   $i=0;
                                   while ( $query->have_posts() ) :  $query->the_post();
   
                                   $image ='';
                                   if ( has_post_thumbnail() ) {
                                       $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'newedge-thumb' );
                                       $image ='style="height:537px;background: url('.esc_url($img[0]).') no-repeat;background-size: cover;"';
                                   }else {
                                       $image ='style="height:537px;background: #333;"';
                                   }
   
                                   $post_data = '';
   
                                   $post_color = '';
                                   if(rwmb_meta("thm_post_color") != "" ){
                                       $post_color = rwmb_meta("thm_post_color");
                                   }
   
                                   $post_data .= '<div class="themeum-latest-featured-post-item common-post-item">';
                                   $post_data .= '<div class="overlay '.esc_attr( $post_color ).' yes"></div>';
                                   $post_data .= '<div class="common-post-item-in" '.$image.'></div>';
                                   $post_data .= themeum_social_share( get_the_ID() );
                                   $post_data .= themeum_bookmark_button( get_the_ID() );
                                   $post_data .= '<div class="common-post-item-intro">';
                                   $post_data .= '<span class="entry-category '.themeum_rnd_cat_color().'">';
                                   $post_data .= '</span>';
                                   $post_data .= '<h3 class="entry-title"><a href="'.get_permalink().'">'. get_the_title() .'</a></h3>';
                                   $post_data .= '</div>';//common-post-item-intro
                                   $post_data .= '</div>';//common-post-item
   
                                   if( $i==0 ){
                                       echo '<div class="item active">';
                                           echo $post_data;
                                       echo '</div>';
                                   }else{
                                       echo '<div class="item">';
                                           echo $post_data;
                                       echo '</div>';
                                   }
                                   $i++;
                               endwhile;
                               wp_reset_postdata();
   
                               ?>
                           </div>
                       </div>
   
                       <?php
                       $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
                       $args = array(
                               'category' => $category_id,
                               'posts_per_page' => $count_post,
                               'paged' => $paged,
                               'post_status' => 'publish'
                           );
                       $posts = get_posts($args);
   
                       $output = '';
   
                       if ($style == 'style1') {   
   
                               if(count($posts)>0){
   
                                   $output .= '<div id="themeum-area" class="lates-featured-post">';
   
                                   $j=1;
                                   $x=0;
                                   $total_post = count($posts);
   
                                   foreach ($posts as $key=>$post): setup_postdata($post);
   
                                       // post overlay color
                                       $post_color = '';
                                       if(rwmb_meta("thm_post_color") != "" ){
                                           $post_color = rwmb_meta("thm_post_color");
                                       }else{
                                           $post_color = 'black';
                                       }
   
                                       if( $j==1 || $x == 3 ){
                                           $output .= '<div class="row">';
                                           $x=0;
                                       }
   
                                       $output .= '<div class="latest-featured-post-small col-sm-4">';
                                       if ( has_post_thumbnail() ) {
                                           $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'newedge-small' );
                                           $image ='style="height:253px;background: url('.esc_url($img[0]).') no-repeat;background-size: cover;"';
                                       } else {
                                           $image ='style="height:253px;background: #333;"';
                                       }           
   
                                       $output .= '<div class="themeum-latest-featured-post-item common-post-item">';
                                       $output .= '<div class="overlay '.esc_attr( $post_color ).' yes"></div>';
                                       $output .= '<div class="common-post-item-in" '.$image.'></div>';
                                       $output .= themeum_social_share( get_the_ID() );
                                       $output .= themeum_bookmark_button( get_the_ID() );
                                       $output .= '<div class="common-post-item-intro">';
                                       $output .= '<span class="entry-category '.themeum_rnd_cat_color().'">';
                                       $output .= '</span>';
                                       $output .= '<h3 class="entry-title"><a href="'.get_permalink().'">'. get_the_title() .'</a></h3>';
                                       $output .= '</div>';//common-post-item-intro
                                       $output .= '</div>';//common-post-item
                                       $output .= '</div>'; //latest-featured-post-small  
   
                                       if( $x == 2 || $total_post == $j ){
   
                                               $output .= '</div>'; //row
   
                                               global $themeum_options;
                                               if( $themeum_options['category-ads'] == 1){
                                                   if (function_exists('themeum_advertiser')) {
                                                       if( $themeum_options['category-slug'] == '' ){
                                                           $output .= '<div class="cat-add">';
                                                           $output .=  themeum_advertiser('themeumall');
                                                           $output .= '</div>';
                                                       }else{
                                                           $output .= '<div class="cat-add">';
                                                           $output .=  themeum_advertiser( $themeum_options['category-slug'] );
                                                           $output .= '</div>';
                                                       }
                                                   }
                                               }
                                           }
                                           $x++;
                                           $j++;
   
                                       endforeach;
                                   wp_reset_postdata();   
   
                                   $output .= '</div>'; //lates-featured-post
                               }
   
                           } elseif ($style == 'style2') {
                               if(count($posts)>0){
   
                                   $output .= '<div class="lates-featured-post">';
   
                                   $j=1;
                                   $x=0;
                                   $total_post = count($posts);
   
                                   foreach ($posts as $key=>$post): setup_postdata($post);
   
                                       // post overlay color
                                       $post_color = '';
                                       if(rwmb_meta("thm_post_color") != "" ){
                                           $post_color = rwmb_meta("thm_post_color");
                                       }else{
                                           $post_color = 'black';
                                       }
   
                                       if( $j==1 || $x == 3 ){
                                           $output .= '<div class="row">';
                                           $x=0;
                                       }
   
                                       $output .= '<div class="latest-featured-post-small col-sm-4">';
                                       if ( has_post_thumbnail() ) {
                                           $img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'newedge-small' );
                                           $image ='style="height:200px;background: url('.esc_url($img[0]).') no-repeat;background-size: cover;"';
                                       } else {
                                           $image = '';
                                       }          
   
                                       $output .= '<div class="themeum-latest-featured-post-item common-post-item common-post-item-text">';
                                       $output .= '<div class="overlay '.esc_attr( $post_color ).' yes"></div>';
                                       $output .= '<div class="common-post-item-in" '.$image.'></div>';
                                       $output .= themeum_social_share( get_the_ID() );
                                       $output .= themeum_bookmark_button( get_the_ID() );
                                       $output .= '</div>';//common-post-item
                                       $output .= '<div class="common-post-item-intro-text">';
                                       //if ( $show_category == 'yes'){
                                           $output .= '<span class="entry-category '.themeum_rnd_cat_color().'">';
                                           $output .= themeum_pre_cat_list( get_the_ID() );
                                           $output .= '</span>';
                                       //}
                                       $output .= '<h3 class="entry-title"><a href="'.get_permalink().'">'. get_the_title() .'</a></h3>';
                                       $output .= '</div>';//common-post-item-intro
                                       $output .= '</div>'; //latest-featured-post-thumb  
   
                                       if( $x == 2 || $total_post == $j ){
   
                                               $output .= '</div>'; //row
   
                                               global $themeum_options;
                                               if( $themeum_options['category-ads'] == 1){
                                                   if (function_exists('themeum_advertiser')) {
                                                       if( $themeum_options['category-slug'] == '' ){
                                                           $output .= '<div class="cat-add">';
                                                           $output .=  themeum_advertiser('themeumall');
                                                           $output .= '</div>';
                                                       }else{
                                                           $output .= '<div class="cat-add">';
                                                           $output .=  themeum_advertiser( $themeum_options['category-slug'] );
                                                           $output .= '</div>';
                                                       }
                                                   }
                                               }
                                           }
                                           $x++;
                                           $j++;
   
                                   endforeach;
                                   wp_reset_postdata();   
   
                                   $output .= '</div>'; //lates-featured-post 
   
                               }
                           }
                           echo $output;
   
                           $page_num = 0;
                           $args = array(
                               'category' => $category_id,
                               'posts_per_page' => -1,
                               'post_status' => 'publish'
                               );
                           $totalposts = get_posts($args);
   
                           if(count($totalposts)!=0 && $count != 0 ){
                               $page_num = ceil( count($totalposts)/$count );
                           }else{
                               $page_num = 1;
                           }
                           themeum_pagination( $page_num );
                           ?>
   
                   </div> <!-- #content -->
   
                   <?php get_sidebar(); ?>
   
               </div> <!-- .row -->
           </div> <!-- .contaainer -->
   
       </section> 
   
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948686)
 * Yes i’ve checked them but i don’t get it where do put my shortcode exactly in
   category.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948682)
 * I’ve put it here
 *     ```
       $category = get_the_category(); 
   
                       $category_id = '';
                       if( isset($category[0]->cat_ID) ){
                           $category_id = esc_attr( $category[0]->cat_ID );
                       }
       [ajax_load_more post_type="post, page" category="autotech,lajme,magazina,shneta,sport" button_label="Shfleto më shumë" button_loading_label="Duke u ngarkuar..." container_type="ul"]
                       ?>
       ```
   
 * But it is not working
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Load More – Infinite Scroll, Load More, & Lazy Load] How can i do it work?](https://wordpress.org/support/topic/how-can-i-do-it-work/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/how-can-i-do-it-work/#post-6948680)
 * Where must i put the shortcode exactly in category.php ?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-3/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/page2-not-found-3/#post-6569278)
 * I’ve contacted them, they told me the issue is in functions.php file. They told
   me to put a code in the functions file, it works but my sidebar and footer don’t
   show up 🙁
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-3/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/page2-not-found-3/#post-6569274)
 * No, it doesn’t
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-2/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/page2-not-found-2/#post-6568789)
 * I’m using wp-pagenavi plugin
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-2/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/page2-not-found-2/#post-6568787)
 * [Please do not provide RDP, FTP, TV credentials to anyone in the forums ]
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-2/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/page2-not-found-2/#post-6568780)
 * Click page 2 (next page)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-3/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/page2-not-found-3/#post-6569202)
 * Yes, i disabled all my plugins but nothing changed. This is my website link [http://www.kino24-al.com/](http://www.kino24-al.com/)
   have a look
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Page/2/ Not Found](https://wordpress.org/support/topic/page2-not-found-2/)
 *  Thread Starter [binishala](https://wordpress.org/support/users/binishala/)
 * (@binishala)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/page2-not-found-2/#post-6568755)
 * [http://www.kino24-al.com/](http://www.kino24-al.com/) here have a look

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/users/binishala/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/binishala/replies/page/2/?output_format=md)