Title: sulaeman's Replies | WordPress.org

---

# sulaeman

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

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

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Ninja Forms - The Contact Form Builder That Grows With You] Form submit not working](https://wordpress.org/support/topic/form-submit-not-working/)
 *  Thread Starter [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/form-submit-not-working/#post-8082345)
 * Yes perhaps the main issue coming from some plugin I used.
 * I’m unable to disable the others plugins in production, and to much work install
   everything in my local with issue unable to debug via my android phone from local.
 * I’m test changing a hook from “plugins_loaded” to “init” that run function check
   ajax post, wp_verify_nonce working properly, but unable to continue because the
   rest of required codes running also on “init” with different sequences.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If condition on product category with Wp-Ecommerce](https://wordpress.org/support/topic/if-condition-on-product-category-with-wp-ecommerce/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/if-condition-on-product-category-with-wp-ecommerce/#post-1261139)
 * you can get all thoose code that you need at iCreativeLabs latest released wordpress
   free theme for wp-e-commerce at here [http://bit.ly/dnU4Ky](http://bit.ly/dnU4Ky),
   which is developed by me.
 * it’s not a promotion, but i’m quite lazy to show the code ^_^
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Menu Manager] No Deactivate](https://wordpress.org/support/topic/plugin-menu-manager-no-deactivate/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/plugin-menu-manager-no-deactivate/#post-1284101)
 * No problem ^_^
    thank you for your feedback, so i can manage to update the fix
   soon enough.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Theme is breaking wp-admin and going blank](https://wordpress.org/support/topic/theme-is-breaking-wp-admin-and-going-blank/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/theme-is-breaking-wp-admin-and-going-blank/#post-1274806)
 * try put :
    `define('WP_DEBUG', TRUE);` on wp-config.php
 * or maybe there’s a code that try to get some big data.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Disable one of the navigation button?](https://wordpress.org/support/topic/disable-one-of-the-navigation-button/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/disable-one-of-the-navigation-button/#post-1274795)
 * did you have any identifier for that button ?
 * maybe try this:
 *     ```
       jQuery(document).ready(function(){
         jQuery('a.event_button').click(function(){
           return false;
         });
       });
       ```
   
 * the a.event_button is `<a href="blablabal" class="event_button">Event</a>`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [query_posts offset issue](https://wordpress.org/support/topic/query_posts-offset-issue/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/query_posts-offset-issue/#post-1274793)
 * did you mean that want to show 5 entries in page 1 and the rest are 10 entries?
   then use this :
 *     ```
       $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1;
       $max_entries_per_page = ($current_page == 1) ? 5 : 10;
   
       query_posts("paged=" . $current_page);
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       <!-- BLA BLA BLA BLA -->
       <?php endwhile; ?>
       <?php endif; ?>
   
       <?php next_posts_link('« Older Entries', $max_entries_per_page) ?>
       <?php previous_posts_link('Newer Entries »', $max_entries_per_page) ?>
       ```
   
 * if you want to have 10 entries in each page then the :
    `$max_entries_per_page
   = ($current_page == 1) ? 5 : 10;` change to : `$max_entries_per_page = 10;`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [previous and next post not working](https://wordpress.org/support/topic/previous-and-next-post-not-working/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/previous-and-next-post-not-working/#post-1275285)
 * you’re welcome ^_^
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [previous and next post not working](https://wordpress.org/support/topic/previous-and-next-post-not-working/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/previous-and-next-post-not-working/#post-1275279)
 *     ```
       $max_entries_per_page = 10;
       $current_page = (get_query_var('paged')) ? get_query_var('paged') : 1;
   
       query_posts("cat=1&paged=" . $current_page)
       <?php if (have_posts()) : ?>
       <?php while (have_posts()) : the_post(); ?>
       <!-- BLA BLA BLA BLA -->
       <?php endwhile; ?>
       <?php endif; ?>
   
       <?php next_posts_link('« Older Entries', $max_entries_per_page) ?>
       <?php previous_posts_link('Newer Entries »', $max_entries_per_page) ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Make an image show in the sidebar on the blog pages only](https://wordpress.org/support/topic/make-an-image-show-in-the-sidebar-on-the-blog-pages-only/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/make-an-image-show-in-the-sidebar-on-the-blog-pages-only/#post-1270946)
 *     ```
       <?php if (is_single()) : ?>
   
       <?php endif; ?>
       ```
   
 *     ```
       <?php if (is_page()) : ?>
   
       <?php endif; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [If condition on product category with Wp-Ecommerce](https://wordpress.org/support/topic/if-condition-on-product-category-with-wp-ecommerce/)
 *  [sulaeman](https://wordpress.org/support/users/sulaeman/)
 * (@sulaeman)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/if-condition-on-product-category-with-wp-ecommerce/#post-1261101)
 * **how about this :**
 *     ```
       $wpsc_query = new WPSC_Query(array('category_id' => <the category id>));
       <?php while (wpsc_have_products()) :  wpsc_the_product(); ?>
       <-- BLA BLA BLA -->
       <?php endwhile; ?>
       ```
   
 * **or using this query :**
 *     ```
       $sql = 'SELECT ' . WPSC_TABLE_PRODUCT_CATEGORIES . '.id, name FROM '. WPSC_TABLE_PRODUCT_ORDER . ' ';
       	$sql .= 'LEFT JOIN ' . WPSC_TABLE_PRODUCT_CATEGORIES . ' ON ' . WPSC_TABLE_PRODUCT_ORDER . '.category_id = ' . WPSC_TABLE_PRODUCT_CATEGORIES . '.id ';
       	$sql .= 'WHERE product_id = ' . $product_id . '';
       ```
   

Viewing 10 replies - 1 through 10 (of 10 total)