compositeone
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Function removes main menuThanks for the suggestion. Turns out it was a WP3.0 fix in the theme template that was screwing things up.
Forum: Fixing WordPress
In reply to: Site disappears when upgrading php 5.2 to 5.4Thanks for the suggestion about plugins.
Turns out it was instapress. Odd as the plugin web page says it broke a long time ago and won’t be fixed but it’s been fine for me up until this php upgrade.
Anyway, thanks again.
Forum: Fixing WordPress
In reply to: Updated some plugins after updating to 3.6 now whole site is blankI rolled back a version and everything seems to be back to how it was.
Thanks again for all the help WPyogi. 🙂
Forum: Fixing WordPress
In reply to: Updated some plugins after updating to 3.6 now whole site is blankHmm so none the wiser as which plugin caused the big problem, but it seems that NextGen gallery (one of the ones I updated) now breaks my theme. 🙁
Forum: Fixing WordPress
In reply to: Updated some plugins after updating to 3.6 now whole site is blankThank you very much WPyogi, I’m back in.
So now I know it’s one of the plugins I guess it’s a process of elimination deactivating plugins by renaming the folder and working through until I find which one it is?
Or is there a more scientific way to do it?
EDIT: At least I can see last modified dates so that cuts it down a bit.
Forum: Themes and Templates
In reply to: Display the post for the first latest article onlyThe code was missing the
}, thanks both. Very much appreciated.For the sake of completeness, below is the fully correct code:
<div id="latestNews"> <?php if (have_posts()) : ?> <?php $count = 0; ?> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small> <?php $count++; if ($count <= 1) { the_content();}?> <?php endwhile; ?> </div> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php get_search_form(); ?> <?php endif; ?> </div>