greencode
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Just wondering if this is of any help to resolve this issue: http://scribu.net/wordpress/wp-pagenavi/right-way-to-use-query_posts.html
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Thanks, really appreciate your help with this.
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1Thanks 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
In reply to: Different number of posts on category page 1I 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
In reply to: Different number of posts on category page 13.2.1
Forum: Fixing WordPress
In reply to: Different number of posts on category page 1If 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
In reply to: Different number of posts on category page 1Thanks 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
In reply to: [Easy Post Order] [Plugin: Easy Post Order] Can't DROP 'post_id'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, dbDeltaReally appreciate some help on this as the server logs get
Forum: Plugins
In reply to: Shopping Cart with Multilingual and Multiprice functionalitybump
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
Use this extension: http://tobias.baethge.com/2009/12/extension-1-url-to-link-conversion/
Thanks Tobias and more importantly thanks for a great time saving plugin!
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.
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
In reply to: [WP-Table Reloaded] [Plugin: WP-Table Reloaded] WPML Multilingual capabilityThanks 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!