atlantiscanyon
Forum Replies Created
-
Forum: Themes and Templates
In reply to: cut off!thanks perfect, worked perfect,consider this closed
Forum: Themes and Templates
In reply to: Organize Columns By CategoryWell I resolved this, basically I went the ghetto way and repeated the code three times, and put it into a table so they each column lines up, works great so far.
Forum: Themes and Templates
In reply to: Organize Columns By CategoryHey thanks esmi,
I managed to change my posts on my home page to display only from a particular catagory, but I cant figure how to “reset” the loop counter and display that a different category again.I changed the <?php query_posts(‘category_name=music&posts_per_page=10’); ?> so it grabs the music category, but how do I make it repeat this process and grab again?
here is the relevant code If it helps.
Thanks!
<div id="content"> <?php if (have_posts()) : $m = 1; ?> <div id="mini-post-wrap" class="clearfix"> <?php query_posts('category_name=music&posts_per_page=10'); ?> <?php rewind_posts(); ?> <?php while (have_posts()) : the_post(); ?> <div id="post-<?php the_ID(); ?>" class="mini-post<?php if ($m % 3 == 0) : echo ' last'; endif; ?>"> <div class="meta clearfix"> <span class="date-post">Posted on <?php the_time('F j Y') ?></span> <a class="read-more" href="<?php the_permalink() ?>" title="Keep Reading...">Read more...</a> </div> <?php $thumbnail = (get_post_meta($post->ID, 'thumbnail', $single = true)) ? '<img src="'.get_post_meta($post->ID, 'thumbnail', $single = true).'" width="400" height="186" alt="'.get_the_title($post->ID).'" />' : ''; ?> <?php if ($thumbnail): $number = 55; ?> <div class="thumbnail"> <?php echo $thumbnail; ?> <?php else: $number = 100; endif; ?> <h3 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3> <?php if ($thumbnail): ?> </div> <?php endif ?> <div class="entry clearfix"> <?php the_excerpt('', TRUE, '', $number); ?> </div> </div> <?php $m++; endwhile; ?> </div><!-- /mini-post-wrap --> <?php if(function_exists('wp_pagenavi')) : ?> <?php wp_pagenavi('<div id="wp-pagenavi-wrapper">', '<div id="wp-pagenavi-left"></div><div id="wp-pagenavi-right"></div></div><!-- /wp-pagenavi-wrapper -->') ?> <?php else: ?> <div class="navigation clearfix"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php endif ?> <?php else: ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif ?>
Forum: Themes and Templates
In reply to: Organize Columns By CategoryIf it helps Im using the theme ZDinfo.
Forum: Themes and Templates
In reply to: Deleting Recent Posts In HeaderIs there somehow, perhaps, that I can just change the font of all that text in my footer so it appears white?
Forum: Themes and Templates
In reply to: Deleting Recent Posts In Headerhttps://wparchive.com/zinfo-wordpress-theme/ here is my theme, I do not believe it is a widget because no widgets are activated (although there is a widget available called Recent Posts
I checked the footer code, but it is complete code no tangible words.
Forum: Themes and Templates
In reply to: The Width, It Must Change!Wow! You are an absolute technical wizard! It worked perfectly, thanks a lot man. I think I understand how the code actually works (in terms of this solution. Two thumbs up!
Forum: Themes and Templates
In reply to: The Width, It Must Change!Hey thanks for the quick reply! I replaced the <body> tag in my header.php file with <body <?php body_class(); ?>>, but since my coding knowledge is near nill, im not sure how to proceed. Do I need to adjust something know in my style.php page?
ThanksForum: Themes and Templates
In reply to: Help: Let there be image!Thanks that was the trick, I just edited the index page, replacing the_excerpt with the_content. Thank You!
Forum: Themes and Templates
In reply to: Insert ImagesThere must be a setting to change this so images are viewed in “the feed” or excerpt posts, could it be in the code of perhaps the index.php page?
Forum: Themes and Templates
In reply to: Make a single to the doubleShould I put this text in the index.php file, and if so anywhere else?
Forum: Themes and Templates
In reply to: Make a single to the doubleOkay I think I got the proper tripe loop code which goes like this ( I have to edit in what categories I want to draw from. But I am stymied as to where I should add this on my index.php page. Adding it to the top does nothing to my site.
Here is my index code:
<?php get_header(); ?> <?php $options = get_option("widget_sideFeature"); $posts = get_option('fms_number_posts'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if (is_active_widget('widget_myFeature')) { $category = "showposts=".$posts."&cat=-".$options['category']."&paged=".$paged; } else { $category = "showposts=".$posts."&paged=".$paged; } $i = 1; ?> <?php query_posts($category); ?> <div id="threecol"><div id="threecol2"> <?php while (have_posts()) : the_post(); ?> <?php if($i == 7) { $i=4; } ?> <div class="threepost threepost<?php echo $i; $i++; ?>"> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="storycontent"> <?php getImage('1'); ?> <?php echo theme_excerpt(25); ?> <p class="contread"><a href="<?php the_permalink(); ?>">Read More »</a></p> </div> </div> <?php endwhile; ?> </div> </div> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div> <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div> </div> <?php get_footer(); ?>
and here is the supposed tripple column loop
// the first loop <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if ( in_category('7') && is_home() ) continue; ?> <?php if ( in_category('8') && is_home() ) continue; ?> <?php the_title(); ?> <?php the_content(); ?> <?php comments_template(); ?> <?php endwhile; ?> <?php posts_nav_link('','','« Previous') ?><?php previous_post('« %', '', 'yes'); ?> <?php posts_nav_link('','Next »','') ?><?php next_post('% »', '', 'yes'); ?> <?php else : ?> <p>Sorry..</p> <?php endif; ?> // the second loop <?php query_posts('cat=7&showposts=3'); ?> <?php $posts = get_posts('category=7&numberposts=3&offset=0'); foreach ($posts as $post) : start_wp(); ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?> // the third loop <?php query_posts('cat=8&showposts=3'); ?> <?php $posts = get_posts('category=8&numberposts=3&offset=0'); foreach ($posts as $post) : start_wp(); ?> <?php the_title(); ?> <?php the_excerpt(); ?> <?php endforeach; ?>
from this site
https://perishablepress.com/press/2006/11/22/perishable-press-triple-loop-for-wordpress/
anyone have any idea? thanksForum: Themes and Templates
In reply to: Make a single to the doubleYea they are filed under categories, this looks very promising!, what page in my theme do I edit, and do I do it three times for the three columns I want?
Forum: Themes and Templates
In reply to: Make a single to the doublehttps://republicaapparel.com/blog/ Here she is. This theme is really crisp and clean, but I want to have t-shirts in one column, shoes in another, and hats in another all next to each other and in the middle of the page.
Thanks!
Forum: Themes and Templates
In reply to: Make Posts Widerhey thanks editing that line allowed me to switch sizes, but now I have two more dilemmas.
First I want to center the posts that they sit next to each other nicely in the center of the page no matter what size I make them. Here is my “columns” section.
[CSS moderated as per the Forum Rules.]
Then I guess this is pertinent to just my particular theme, but I cant get posts to stick to their categories and show up in there appropriate columns, my site is republicaapparel.com/blog (theres nothing on it so Im not spamming I suppose)
Thanks