sk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP-Paginate] [Plugin: WP-Paginate] Pagination on category posts doesn't workFor my installation I’ve narrowed it down to using permalinks set to: /%category%/%postname%
which breaks pagination.
If I use any of the built-in permalink settings it works fine.
This is a shame, I’ll have to uninstall this plugin and find another method.
Forum: Plugins
In reply to: [WP-Paginate] [Plugin: WP-Paginate] Pagination on category posts doesn't workI upgraded WP to 3.4.1 and it broke straight after the upgrade, even when using Twenty Eleven v1.3 theme
Forum: Fixing WordPress
In reply to: Help!! Fatal error when trying to save menu.Thanks esmi, will take it from there
Forum: Fixing WordPress
In reply to: Help!! Fatal error when trying to save menu.thanks @theotherlebowski
I hear you with splitting up the menu, no doubt that will help, it’s just a shame that I have to. I’m not 100% on how the menu system is saved within the db but is you think about the way that pages are stored and organised with partent/child pages it’s not too much different from how the menu system works (except for the awesome drag n drop or course) and there isn’t a limit on how many pages you can have.
Whining aside, another solution as you mentioned will have to be implemented. Considering the quantity of the menu items on the particular site I’m working with, I’m thinking of having separate menus that are dedicated to handling each of the sub menus.
Cheers
Forum: Fixing WordPress
In reply to: Help!! Fatal error when trying to save menu.Having the same problem here too. I have over 160 menu items. Some of them are just placeholders to let the user get to the child menu items, and alot of the menu items are custom posts. Would that have any impact on the menu?
The issue for me has only started happening in the past week as my client started adding loads more menu items so all I can put it down to is too many menu items. I’ve tried the default theme and disabling all plugins with no luck. I’m going to keep investigating but if anyone has any ideas that would be great.
Forum: Fixing WordPress
In reply to: move wp-config fileYep that works nicely, wordpress checks the hosting root directory automatically and it can’t be accessed by www. Nice tip!
Forum: Themes and Templates
In reply to: Image preloading?Hey cryha1 (is your name castro? I’m one of dickmann’s mates living in Melbourne!), are you still having this problem?
For you or anyone else that has this issue, I’ve worked out an unpretty way to solve it, just by loading the attached images within a hidden div. Very unsexy but it does the job. Hoping to improve on it but we’ll see.
What I’m doing on my site is loading the image thumbs then when a user clicks on one it loads the bigger image in a certain position with jQuery.
So my output for the gallery image thumbs is:
<div class="gallery-images"> <?php $args = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $attachments = get_posts($args); if ($attachments) { foreach ( $attachments as $attachment ) { the_attachment_link( $attachment->ID , false ); } } ?> </div>
Then my pre-loading like this, obviously with the div “hidden” as display:none;
<div class="hidden"> <?php $preArgs = array( 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $post->ID ); $preAttachments = get_posts($preArgs); if (count($preAttachments) > 1) { foreach ( $preAttachments as $attachment ) { the_attachment_link( $attachment->ID , true ); } } ?> </div>
Works nicely for me. If you’re interested in the image swap I’m doing, here it is:
//Swap Image on Click $('.gallery-images a').click(function() { var mainImage = $(this).attr("href"); //Find Image Name $(".background-image img").fadeOut('slow', function(){ $(".background-image img").attr({ src: mainImage }); }); $(".background-image img").fadeIn('slow'); return false; });
You can see the result here https://new.pdt.com.au/projects/gold-coast-low-cost-airport/ if you check before I launch the site, otherwise it will be here
https://www.pdt.com.au/projects/gold-coast-low-cost-airport/Forum: Fixing WordPress
In reply to: Changing Custom Post Type Definition Loses DataHey buddy I’m looking in to this same problem. This is all I’ve found so far
https://www.mikoder.com.au/2009/07/disappearing-custom-post-data/
Will keep you in the loop (SHITPUN!) if I get it sorted