000000000
Forum Replies Created
-
Thanks a lot I’d been looking for a solution myself ??
Forum: Plugins
In reply to: Need a plugin to alert about new postsNever mind I’ve found just the thing ??
https://www.ads-software.com/extend/plugins/peters-collaboration-e-mails/
Forum: Plugins
In reply to: Good Email-marketing pluginsooo thanks! Do you know if it’s WP 3.1 compatible? I’ll give it a try anyway
Forum: Plugins
In reply to: Nextgen Gallery do_shortcode not working?That’s a syntax error, what do you have on line 18?
Forum: Themes and Templates
In reply to: Passing $_GET variable makes pagination malfunctionFixed it! Just had to add
paged=' . $paged
to the end of my query_posts() parameters
Forum: Themes and Templates
In reply to: Passing $_GET variable makes pagination malfunctionQuick update, the error can’t be caused by the $_GET variable, if I remove it and add the county name as a parameter in query_posts() then I still have the same problem!
Here is the code I’m using:
<?php /** * @package WordPress * Template Name: Directory */ ?> <?php get_header(); ?> <div id="page"> <div id="content"> <?php get_search_form(); ?> <?php // if($_GET['county']) : ?> <h1>Companies in <?php echo $_GET['county']; ?></h1> <?php query_posts('post_type=company&meta_key=County&meta_value=Cheshire&orderby=title&order=ASC'); ?> <div id="directory-result"> <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?> <div class="divide"> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> <ul class="contact"> <li><?php echo_meta('Town / City'); ?></li> <li><?php echo_meta('Telephone'); ?></li> <li><a href="mailto:<?php echo_meta('Email'); ?>"><?php echo_meta('Email'); ?></a></li> <li class="last"><a href="<?php echo_meta('Website'); ?>"><?php echo_meta('Website'); ?></a></li> </ul> </div> <?php endwhile; ?> <div id="paginate"> <a id="link-top" href="#top"><img src="<?php bloginfo('template_url'); ?>/image/paginate-top.gif" alt="Back to Top" /></a> <ul> <?php posts_nav_link(' ', '<li><img src="' . get_bloginfo('template_url') . '/image/paginate-prev.gif" alt="Previous Page" /></li>', '<li><img src="' . get_bloginfo('template_url') . '/image/paginate-next.gif" alt="Next Page" /></li>'); ?> </ul> </div> <?php else : ?> <p>There are currently no companies registered in <?php echo $_GET['county']; ?>. If you own a business in this location then <a href="<?php bloginfo('url'); ?>/wp-admin">submit to our business directory for free</a> today!</p> <?php endif; ?> </div> <?php wp_reset_query(); ?> <?php // endif; ?> </div><!--end content--> <?php get_sidebar(); ?> </div><!--end page--> <?php get_footer(); ?>
Forum: Plugins
In reply to: NextGen Gallery: stripping JavaScriptThanks
Thanks for the help, it’s working fine now ??
Forum: Plugins
In reply to: Remove the ‘Posts’ panel?Wow thanks a lot!
admin-menu-editor was exactly what I needed ??
Forum: Plugins
In reply to: SEO plugins not working correctly on my blogQuick update, I’ve tried the Platinum SEO Pack again, on a local installation this time.
I’ve pasted the entire <head> section from the Default WP theme. I’ve also stripped out nearly every custom part of my theme (e.g. functions.php and every template except index.php).
All that remain are the following files, with the associated code:
[Mod Note: Code segment removed. If you want to post large blocks of code, please use a pastebin.]
And still it refuses to rewrite the titles properly! I’ve tried the Default and Classic themes on the same installation and the plugin works fine.
Does anyone have any ideas on what my theme could possibly be lacking?
Thanks.Forum: Themes and Templates
In reply to: Query all poststhanks, but I ended up getting it to work by passing ‘showposts=-1’ as a parameter.
Forum: Fixing WordPress
In reply to: How to post code snippetsAhhh I see! Thanks a lot
Forum: Themes and Templates
In reply to: Problem getting $post_idIn fact, I’ve just edited it using
get_the_ID();
Didn’t know that existed!
Forum: Themes and Templates
In reply to: Problem getting $post_idOhhh I see! I didn’t realise I had to get the post ID out of an object?
It seemed to work fine when dealing with pages instead of posts?
Like this:global $page_id; $meta_values = get_post_meta($page_id, 'detail', 1);
Oh well at least it works… thanks again ??
Forum: Themes and Templates
In reply to: Display most recent post onlyThanks.
I managed to get it working in the end using this
query_posts('posts_per_page=1'); if ( have_posts() ) : while ( have_posts() ) : the_post(); entry(); endwhile; endif;
Far simpler than my original method (not sure why I used that!)