sulaeman
Forum Replies Created
-
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
In reply to: If condition on product category with Wp-Ecommerceyou 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, which is developed by me.
it’s not a promotion, but i’m quite lazy to show the code ^_^
Forum: Plugins
In reply to: [Plugin: Menu Manager] No DeactivateNo problem ^_^
thank you for your feedback, so i can manage to update the fix soon enough.Forum: Fixing WordPress
In reply to: Theme is breaking wp-admin and going blanktry put :
define('WP_DEBUG', TRUE);
on wp-config.phpor maybe there’s a code that try to get some big data.
Forum: Fixing WordPress
In reply to: Disable one of the navigation button?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
In reply to: query_posts offset issuedid 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
In reply to: previous and next post not workingyou’re welcome ^_^
Forum: Fixing WordPress
In reply to: previous and next post not working$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
In reply to: Make an image show in the sidebar on the blog pages only<?php if (is_single()) : ?> <?php endif; ?><?php if (is_page()) : ?> <?php endif; ?>Forum: Fixing WordPress
In reply to: If condition on product category with Wp-Ecommercehow 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 . '';