chrismitchell57
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: footer issuesbump
Forum: Fixing WordPress
In reply to: footer issuesOk I fixed all bar a couple of CSS errors and all but a couple of validation errors but i still have a footer issue. On smaller monitors, the footer text drops under each other and the footer block of colour scrolls off the side.. Any ideas?
Forum: Fixing WordPress
In reply to: Next Page and Previous Page and Category Exclude problemall working now 🙂 thanks alchymyth 😀
Forum: Fixing WordPress
In reply to: Next Page and Previous Page and Category Exclude problemThanks for the reply alchymyth 🙂
The exclude parameter worked 🙂 but the paged thing didn’t. It still shows the same page over and over again no matter how many times you press previous posts .. very confusing. Should the ‘paged’ query go before the query_posts or after? I tried it before and it came up with a php error on the call_footer.
Forum: Fixing WordPress
In reply to: permalinks all going to the same postbump!
anyone?
Forum: Fixing WordPress
In reply to: Posts not displaying anythingbump! please help me with this.. its driving me crazy!
Forum: Fixing WordPress
In reply to: Posts not displaying anythingbump!
Forum: Fixing WordPress
In reply to: Posts not displaying anythingNot really fixed.. now back to a previous error.. which means that the first post always displays.. Its not a plug in issue 🙁 as it does the same when I disable all plugins.. It must be something to do with the code i’m using to call the post.. I just don’t know.
<?php get_header(); ?> <div id="block_featured" class="block"> <div class="block_inside"> <div class="text_block"> <div class="hellotext"><?php $posts = get_posts( "category=1&numberposts=1&order=DES" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <img class="imagespacer" <?php $szPostContent = $post->post_content; $szSearchPattern = '/src="(.*?)"/'; // Run preg_match_all to grab all the images and save the results in $aPics preg_match_all( $szSearchPattern, $szPostContent, $aPics ); // Check to see if we have at least 1 image $iNumberOfPics = count($aPics[0]); if ( $iNumberOfPics > 0 ) { // Now here you would do whatever you need to do with the images // For this example the images are just displayed for ( $i=0; $i < $iNumberOfPics ; $i++ ) { echo $aPics[0][$i]; }; }; ?> align="right" height=200 > <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt("Continue reading '" . the_title('', '', false) . "'"); ?> <div class="readmorefeatured"><a href="<?php the_permalink(); ?>">Read more...</a></div> <?php endforeach; ?> <?php endif; ?> </div> <br /> </div> </div> <div class="greybarmain"></div> <!-- right side --> <div id="minirant"><?php $posts = get_posts( "category=10&numberposts=1" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <h5>MiniRant</h5> <strong><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></strong> <?php the_content(); ?> <?php endforeach; ?> <?php endif; ?> <br /> <a href="rantarchive.php">Read more MiniRants</a> </div> <div id="cartoon"> </div> <!--end right side --> <div id="newslist"><div class="newslistnews"><?php $posts = get_posts( "category=1&numberposts=1&offset=1&order=DES" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <h5><a href="<?php the_permalink(); ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h5> <?php the_excerpt(); ?> <div class="readmorefeatured"><a href="<?php the_permalink(); ?>">Read more...</a> <div class="greybarmainsmall"></div> <?php endforeach; ?> <?php endif; ?> </div> <div class="newslistnews"><?php $posts = get_posts( "category=1&offset=2&numberposts=3&order=DES" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt("Continue reading '" . the_title('', '', false) . "'"); ?> <div class="readmorefeatured"><a href="<?php the_permalink(); ?>">Read more...</a></div> <div class="greybarmainsmall"></div> <?php endforeach; ?> <?php endif; ?> </div> <div class="newslistnews"><?php $posts = get_posts( "category=1&offset=5&numberposts=1&order=DES" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php the_excerpt("Continue reading '" . the_title('', '', false) . "'"); ?> <div class="readmorefeatured"><a href="<?php the_permalink(); ?>">Read more...</a></div> <?php endforeach; ?> <?php endif; ?></div> <br /> <div class="browsearchives"><a href="archives.php">Browse our Archives</a></div> </div> </div> <div class="greybarbottom"></div> </div> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: permalinks all going to the same postbump
please can anyone help me with this?
Forum: Fixing WordPress
In reply to: permalinks all going to the same postOk I resorted to installing version 2.8.6 and still there are the same issues! Is this something to do with the `<?php $posts = get_posts( “category=10&numberposts=1” ); ?>
<?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>` loop? As I read on another post that someone fixed it by removing that element. Though how I get a post to call just from a single category without that loop I don’t know.Any Ideas?
Forum: Fixing WordPress
In reply to: permalinks all going to the same postI know that this problem has existed in the past on this forum but i can’t find any solution? Any help?
Forum: Fixing WordPress
In reply to: permalinks all going to the same postbump
Forum: Fixing WordPress
In reply to: permalinks all going to the same postHi Shane,
Thanks for your help.. I have changed the code in the .htaccess but still having the same problem 🙁 I don’t know what else it could be.
Thanks
Chris