GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   WordPress Gurus...I need your help please... (https://gfy.com/showthread.php?t=1031995)

SlamDesigns 07-27-2011 07:41 PM

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...

http://www.bizarrolive.com/temp/wrong.jpg

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...

http://www.bizarrolive.com/temp/right.jpg

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 07-27-2011 08:16 PM

http://www.bizarrolive.com/wp-conten...ingredneck.png

Bump for you from The Flying Redneck

JohnRingo 07-27-2011 08:20 PM

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

JohnRingo 07-27-2011 08:21 PM

use the magazine template in suffusion and you are gold

SlamDesigns 07-27-2011 09:30 PM

Quote:

Originally Posted by B.Barnato (Post 18312838)
Bump for you from The Flying Redneck

Hahahaha....thanks, man!

SlamDesigns 07-27-2011 09:33 PM

Quote:

Originally Posted by JohnRingo (Post 18312842)
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.

harvey 07-27-2011 10:16 PM

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

SlamDesigns 07-27-2011 10:35 PM

Quote:

Originally Posted by harvey (Post 18312989)
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.

harvey 07-28-2011 12:46 AM

Quote:

Originally Posted by SlamDesigns (Post 18313010)
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

SlamDesigns 08-13-2011 07:11 PM

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!!

d-null 08-13-2011 07:47 PM

Quote:

Originally Posted by SlamDesigns (Post 18353543)
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?

SlamDesigns 08-13-2011 09:37 PM

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.


All times are GMT -7. The time now is 02:29 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123