Title: greencode's Replies - page 22 | WordPress.org

---

# greencode

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 316 through 330 (of 536 total)

[←](https://wordpress.org/support/users/greencode/replies/page/21/?output_format=md)
[1](https://wordpress.org/support/users/greencode/replies/?output_format=md) [2](https://wordpress.org/support/users/greencode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/greencode/replies/page/3/?output_format=md)…
[21](https://wordpress.org/support/users/greencode/replies/page/21/?output_format=md)
22 [23](https://wordpress.org/support/users/greencode/replies/page/23/?output_format=md)…
[34](https://wordpress.org/support/users/greencode/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/greencode/replies/page/35/?output_format=md)
[36](https://wordpress.org/support/users/greencode/replies/page/36/?output_format=md)
[→](https://wordpress.org/support/users/greencode/replies/page/23/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833120)
 * Just wondering if this is of any help to resolve this issue: [http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html](http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833099)
 * Thanks, really appreciate your help with this.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833095)
 * Thanks again for this. The only trouble with this now is that the pagination 
   is incorrect. For example I only have 6 pages for the category but on the first
   page it’s showing that I have 20.
 * I’m using the following code at the bottom of my page, if that’s any help:
 *     ```
       <?php /* Display navigation to next/previous pages when applicable */ ?>
       <?php if (  $wp_query->max_num_pages > 1 ) : ?>
       <nav id="nav-below">
       <?php wp_pagenavi(); ?>
       </nav><!-- #nav-below -->
       <?php endif; ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833040)
 * I will, but there’s a number of plugins that I need to ensure will work on the
   current version of WP.
 * Is it okay to use that code without the the main_query part of it?
 * As I mentioned, it seems to work okay without it but then again I’ve only checked
   a page or two.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833036)
 * 3.2.1
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833033)
 * If I remove the code I mentioned in the my previous post then all works well 
   but I’m presuming that’s there for a reason.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Different number of posts on category page 1](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/different-number-of-posts-on-category-page-1/#post-2833031)
 * Thanks for this. I added that to my functions and I got the following error when
   viewing the page:
 * Fatal error: Call to undefined method WP_Query::is_main_query() in /home/mysite/
   public_html/dev/wp-content/themes/mytheme/functions.php on line 215
 * 215 appears to be this line:
 *     ```
       if (!is_admin() && $query->is_main_query()){
       ```
   
 * Any ideas?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Post Order] [Plugin: Easy Post Order] Can't DROP 'post_id'](https://wordpress.org/support/topic/plugin-easy-post-order-cant-drop-post_id/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-easy-post-order-cant-drop-post_id/#post-2187204)
 * I’ll ask again, in the hope a reply is received. I’m still getting this on my
   server logs:
 *     ```
       [15-Jun-2012 11:23:14] WordPress database error Can't DROP 'post_id'; check that column/key exists for query ALTER TABLE c0L658_epo_order DROP INDEX post_id made by require, require_once, require_once, require_once, do_action, call_user_func_array, epo_db_update, epo_install
       [15-Jun-2012 11:23:14] WordPress database error Duplicate key name 'upost' for query ALTER TABLE c0L658_epo_order ADD UNIQUE KEY upost (post_id, epo_term_id) made by require, require_once, require_once, require_once, do_action, call_user_func_array, epo_db_update, epo_install, dbDelta
       ```
   
 * Really appreciate some help on this as the server logs get
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Shopping Cart with Multilingual and Multiprice functionality](https://wordpress.org/support/topic/shopping-cart-with-multilingual-and-multiprice-functionality/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/shopping-cart-with-multilingual-and-multiprice-functionality/#post-2658069)
 * bump
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Toolbox] [Theme: Toolbox] Where is the HTML for the comment form?](https://wordpress.org/support/topic/plugin-toolbox-where-is-the-html-for-the-comment-form/)
 *  [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-toolbox-where-is-the-html-for-the-comment-form/#post-2640780)
 * Do you mean the actual fields i.e. name, website, email comment, post comment
   buttons?
 * If so, they’re always located in the actual wordpress folder: wp-includes/comment-
   template.php
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Table Reloaded] [Plugin: WP-Table Reloaded] URL to Link Conversion extension](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/#post-2616999)
 * Use this extension: [http://tobias.baethge.com/2009/12/extension-1-url-to-link-conversion/](http://tobias.baethge.com/2009/12/extension-1-url-to-link-conversion/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Table Reloaded] [Plugin: WP-Table Reloaded] URL to Link Conversion extension](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/#post-2616936)
 * Thanks Tobias and more importantly thanks for a great time saving plugin!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Table Reloaded] [Plugin: WP-Table Reloaded] URL to Link Conversion extension](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/#post-2616933)
 * What I’ve ended up doing is creating the following script:
 * `$('.wp-table-reloaded a').attr('target', '_blank');`
 * so this will then open any link within the WP Table Reloaded table in a new window.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Table Reloaded] [Plugin: WP-Table Reloaded] URL to Link Conversion extension](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-url-to-link-conversion-extension/#post-2616931)
 * Thanks for the reply.
 * Have to disagree with the use of target = blank though as this is often necessary
   if you wish to link your clients to a site with further information but actually
   still make it easy for them to get back to your site. A lot of people have absolutely
   no idea how to open links in new windows and so often have to be guided.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Table Reloaded] [Plugin: WP-Table Reloaded] WPML Multilingual capability](https://wordpress.org/support/topic/plugin-wp-table-reloaded-wpml-multilingual-capability/)
 *  Thread Starter [greencode](https://wordpress.org/support/users/greencode/)
 * (@greencode)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wp-table-reloaded-wpml-multilingual-capability/#post-2610406)
 * Thanks Tobias.
 * That would be a suitable solution if I weren’t making amends to the tables and
   so having to remember to amend each table is a bit tricky.
 * Thanks anyway!

Viewing 15 replies - 316 through 330 (of 536 total)

[←](https://wordpress.org/support/users/greencode/replies/page/21/?output_format=md)
[1](https://wordpress.org/support/users/greencode/replies/?output_format=md) [2](https://wordpress.org/support/users/greencode/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/greencode/replies/page/3/?output_format=md)…
[21](https://wordpress.org/support/users/greencode/replies/page/21/?output_format=md)
22 [23](https://wordpress.org/support/users/greencode/replies/page/23/?output_format=md)…
[34](https://wordpress.org/support/users/greencode/replies/page/34/?output_format=md)
[35](https://wordpress.org/support/users/greencode/replies/page/35/?output_format=md)
[36](https://wordpress.org/support/users/greencode/replies/page/36/?output_format=md)
[→](https://wordpress.org/support/users/greencode/replies/page/23/?output_format=md)