WordPress Gurus...I need your help please...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SlamDesigns
    Confirmed User
    • Jul 2005
    • 2339

    #1

    WordPress Gurus...I need your help please...

    Hey all! Long time, no post. I'm having a major issue with the design of a WordPress site I'm working on for a buddy of mine, and I knew if anyone had the answer, it would be the GFY crew.

    Actually, this is probably a pretty easy problem that one of you will be able to help with in a matter of minutes...but for me...it's been 2 weeks of trying different things and failing miserably.

    Ok, here's all the details, the best that I can explain it...

    The site is www.bizarrolive.com. It's for a wresting promotion that I work for based out of Ohio.

    We are using Brian Gardner's "Revolution Church 2.0" as the basis of the site, but we have modified it until it bares little resemblance to the original, in both design and functionality. Where the problem comes in is on the main page.

    "Church" is written so that you have to choose which category and how many posts you want for your top stories...and then it posts them all (how many ever you choose) in one long box on the front page. It looks like this...



    What we are wanting to do it make it work more like an actual blog, whereas it will post stories from every category on the front page, and not just from one specific one. We are also wanting to to post each story in it's own box, something like this...



    The current code for that section of the page is...

    Code:
    			<div class="hpbottom">
    		
                                    <h3>Latest News</h3>
    	
    				<?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    				<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
    				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
    				<?php else: ?>
    				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;"  src="<?php bloginfo('template_url'); ?>/images/bigthumbnail.png" alt="<?php the_title(); ?>" /></a>
    				<?php endif; ?>				
    				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    				<?php the_content_limit(350, "[Read more...]"); ?>
    						
    				<?php endwhile; ?>
    	
              		</div>
    		
    		</div>
    Ok, so that is the first (and to us, most important) problem. The secondary problem is that we would also like for the posts in Category view, Archives, Search, etc. to each be in their own little box as well instead of all in one long box. The current code for this is...

    Code:
    <?php get_header(); ?>
    
    <div id="content">
    
    	<div id="contentleft">
    	
    		<div class="postarea">
    	
    		<?php include(TEMPLATEPATH."/breadcrumb.php");?>
    			
    			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    			<h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    
    			<br />
    			
    			<?php the_content(__('Read more'));?><div style="clear:both;"></div>
    			
    			<div class="date">
    			
    				<div class="dateleft">
    					<p><span class="time">Filed under <?php the_category(', ') ?> on <?php the_time('F j, Y'); ?></span> by <?php the_author_posts_link(); ?> &nbsp;<?php edit_post_link('(Edit)', '', ''); ?></p> 
    				</div>
    				
    				<div class="dateright">
    					<p><span class="icomment"><a href="<?php the_permalink(); ?>#respond"><?php comments_number('Leave a Comment', '1 Comment', '% Comments'); ?></a></span></p> 
    				</div>
    				
    			</div>
    
    			<div style="clear:both;"></div>
    
    			<?php endwhile; else: ?>
    			
    			<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    			<p><?php posts_nav_link(' ? ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?></p>
    			
    		</div>
    				
    	</div>
    	
    <?php include(TEMPLATEPATH."/sidebar.php");?>
    		
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>
    Sorry for making this post so long, but I wanted to be as descriptive as possible about what we are trying to do.

    Thanks in advance to anyone that can help us out with this. I have literally been playing with the template for two weeks straight, and can't work out all the little bugs such as this. Any help will be greatly appreciated and you will have my undying gratitude.
  • B.Barnato
    So Fucking Banned
    • Nov 2010
    • 3618

    #2


    Bump for you from The Flying Redneck

    Comment

    • JohnRingo
      So Fucking Banned
      • Oct 2010
      • 673

      #3
      why don't u just use the free suffusion them plugin for wordpress? you can make that do anything you want.

      Comment

      • JohnRingo
        So Fucking Banned
        • Oct 2010
        • 673

        #4
        use the magazine template in suffusion and you are gold

        Comment

        • SlamDesigns
          Confirmed User
          • Jul 2005
          • 2339

          #5
          Originally posted by B.Barnato
          Bump for you from The Flying Redneck
          Hahahaha....thanks, man!

          Comment

          • SlamDesigns
            Confirmed User
            • Jul 2005
            • 2339

            #6
            Originally posted by JohnRingo
            use the magazine template in suffusion and you are gold
            I'm checking it out, and it looks pretty cool. I will probably use it on a future project that I am working on.

            As for the Bizarro site, I wanna stay with the template we have now, I just need to get those few little problems worked out. We've spent a lot of time getting the site the way we want it, and I don't want to abandon what we already have done.

            Thanks though...I do like the Suffusion theme, and like I said, I will definitely be using it on the next site I have to do.

            Comment

            • harvey
              Confirmed User
              • Jul 2001
              • 9266

              #7
              there

              Code:
              			<div class="hpbottom">
              		
                                              <h3>Latest News</h3>
              	
              				<?php $recent = new WP_Query(); while($recent->have_posts()) : $recent->the_post();?>
              				<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
              				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
              				<?php else: ?>
              				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;"  src="<?php bloginfo('template_url'); ?>/images/bigthumbnail.png" alt="<?php the_title(); ?>" /></a>
              				<?php endif; ?>				
              				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
              				<?php the_content_limit(350, "[Read more...]"); ?>
              						
              				<?php endwhile; ?>
              	
                        		</div>
              		
              		</div>
              that should do the trick. As for the second snippet it requires to rebuild the code of your page to format posts the way you want it. Not difficult at all, but you should do it yourself or hire someone to do it
              This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

              Comment

              • SlamDesigns
                Confirmed User
                • Jul 2005
                • 2339

                #8
                Originally posted by harvey
                there

                Code:
                			<div class="hpbottom">
                		
                                                <h3>Latest News</h3>
                	
                				<?php $recent = new WP_Query(); while($recent->have_posts()) : $recent->the_post();?>
                				<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
                				    <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
                				<?php else: ?>
                				   	<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 0px 5px 0px;"  src="<?php bloginfo('template_url'); ?>/images/bigthumbnail.png" alt="<?php the_title(); ?>" /></a>
                				<?php endif; ?>				
                				<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                				<?php the_content_limit(350, "[Read more...]"); ?>
                						
                				<?php endwhile; ?>
                	
                          		</div>
                		
                		</div>
                that should do the trick. As for the second snippet it requires to rebuild the code of your page to format posts the way you want it. Not difficult at all, but you should do it yourself or hire someone to do it
                Thanks...but it didn't work. It displays one box, with no content.

                Comment

                • harvey
                  Confirmed User
                  • Jul 2001
                  • 9266

                  #9
                  Originally posted by SlamDesigns
                  Thanks...but it didn't work. It displays one box, with no content.
                  then it probably has something in the functions.php file, because that SHOULD work. Isee you're using custom fields there, so maybe you're missing them? Hard to say without seeing everything, and on top of that the code is a mess

                  try using just the default simple WP loop, many times coders try to look cool using queries and they mess things up, so maybe that will solve it for you.

                  so

                  Code:
                  <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                  
                  <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
                  				<?php the_content_limit(350, "[Read more...]"); ?>
                  						
                  				<?php endwhile; ?>
                  <?php endif; ?>
                  if this works, just add the conditionals for those images using custom fields. If this doesn't work, then there's something else acting up, this is the basic loop in its simplest form

                  and btw, there's a reason why WP has the post thumbnails feature, try using that. It's better, faster and less workload for you
                  This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

                  Comment

                  • SlamDesigns
                    Confirmed User
                    • Jul 2005
                    • 2339

                    #10
                    Hey! Should have posted this sooner...but that worked like a charm. Something sooo simple and I totally overlooked it. I think I'm losing my mojo. lol

                    Anyway, thank you all so much for the help! It is greatly appreciated!!

                    Comment

                    • d-null
                      . . .
                      • Apr 2007
                      • 13724

                      #11
                      Originally posted by SlamDesigns
                      Hey! Should have posted this sooner...but that worked like a charm. Something sooo simple and I totally overlooked it. I think I'm losing my mojo. lol

                      Anyway, thank you all so much for the help! It is greatly appreciated!!
                      what exactly "worked like a charm", the modified simple loop, or the post thumbnails feature?

                      __________________

                      Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                      Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                      Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                      Comment

                      • SlamDesigns
                        Confirmed User
                        • Jul 2005
                        • 2339

                        #12
                        The modified simple loop. Haven't messed with the post thumbnails yet...but I will. Not 100% happy with the site yet, so I'll keep playing with it adding new stuff.

                        Comment

                        Working...