hardworking
Forum Replies Created
-
Forum: Themes and Templates
In reply to: single.php – showing more than one postcheers zeo – wp_reset_query has fixed it.
Forum: Themes and Templates
In reply to: single.php – showing more than one postI think the issue is in my sidebar.php – as when i remove this, it works ok. this is the code in my sidebar.php – can you recommend? many thanks for your help…
<div class="sideHighlightBlock" style="height:15px;padding-top:12px;"><h4>Latest News</h4></div> <div class="sideHighlightBlock"> <?php query_posts("showposts=4&category_name=Featured"); $i = 1; ?> <?php while (have_posts()) : the_post(); ?> <!-- <div class="clearfloat"> --> <?php $values = get_post_custom_values("Image"); if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"> <img src="<?php echo bloginfo('template_url'); ?>/scripts/timthumb.php?src=/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>&w=65&h=65&zc=1&q=65" alt="<?php the_title(); ?>" class="left" width="65px" height="65px" /></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <p><?php the_excerpt(); ?></p> <?php endwhile; ?></div>
Forum: Themes and Templates
In reply to: single.php – showing more than one postzeo – have swapped the code as you suggested. single.php will now only show my latest post, no matter what post I try and view… any advice?
Code below….
<?php get_header(); ?> <td width="5" bgcolor="#FFFFFF"></td> <td valign="top" class="masterContentBlock"> <h1>Latest News</h1> <!--BEGIN CONTENT--> <?php if (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><?php the_title(); ?></h2> <br /> <?php the_time('jS F Y') ?> <br /> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?> </div> </div> <?php comments_template(); ?> <?php else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> <!--END CONTENT--> </td> </tr> </table> <!--END GLOBAL CONTENT BLOCK--> </div></div> <?php get_footer(); ?>
Forum: Themes and Templates
In reply to: single.php – showing more than one postawesome – thanks Zeo ??
Forum: Fixing WordPress
In reply to: How to create SUB-BLOGS ?How do you setup the author page?
Forum: Fixing WordPress
In reply to: Category auto selected depending on userdoes anybody have any experience of trying to restrict what categories a user can post to? I’ve also tried the Plugin Allow Categories, but this doesn’t seem to work with 2.8.
Any advice would be really really appreciated.
Thanks
AdamForum: Fixing WordPress
In reply to: Category auto selected depending on usersorry, 2.8.2
Forum: Fixing WordPress
In reply to: Category auto selected depending on userhi cais – thanks for the link. Unfortunately, Userextra doesn’t seem to work with 2.8.
Does anybody else have any other solutions??
Any help much appreciated!
AdamForum: Plugins
In reply to: [Plugin: wordTube] ERROR : Upload failed. Check the file sizeHi Samboll
I took a look at the link. It says:
First limit is usually 3 Mb by default and is changed in the php.ini file at the host level. Place this in your php.ini file in your root directory of your WordPress install (usually /public_html)
I don’t seem to have a php.ini file. I’m using a Linux server. Whereabouts will it be?
Thanks
AdamForum: Plugins
In reply to: [Plugin: wordTube] ERROR : Upload failed. Check the file sizethanks samboll!