ankatank
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: need the tag page to act/display just like the category page….Hey thanks! Sorry for the late response, I only just saw this! That will really improve the site functionality so I am definitely going to try that out. Thanks so much!
Forum: Everything else WordPress
In reply to: 2-column post page layoutgot it to work!
this tutorial helped, in case anyone else has the same problem:
https://perishablepress.com/press/2008/08/04/two-column-horizontal-sequence-wordpress-post-order/Forum: Fixing WordPress
In reply to: make recent posts pull multiple categories, not just 1that worked thanks!
perfect thanks so much!!
Forum: Fixing WordPress
In reply to: need the tag page to act/display just like the category page….nevermind, got it to work!
in case this is of help to anyone else, this is what i ended up doing.
in my tag.php file, instead of including code that gets the sidebar-right.php, ( <?php get_sidebar(‘right’); ?> ) i deleted that, and copied the code from that file into tag.php, then replaced the category-specific stuff with tag-specific stuff:
<?php get_header() ?> < ?php single_tag_title(' tagged ' , 'true' ); ?> <div id="secondary" class="sidebar-CAT"> <?php $tag = single_tag_title('',false); if (!$tag=='') { if ( !empty($tagdesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $tagdesc . '</div>' ); } ?> <?php if(is_single()) { $tag = get_the_tags(); query_posts('posts_per_page=-1&tag=' . $tag[0]->cat_name); } else { query_posts('posts_per_page=-1&tag=' . single_tag_title(false, false)); } while (have_posts()) : the_post(); ?> <div id="sidebarCAT"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="https://www.aaank.com/images/post_thumbs/<?php $values = get_post_custom_values("theThumb"); echo $values[0]; ?>" alt="" /></a> <!--<div class="underThumb">< ?php the_date('m d Y', '', ''); ?></div>--> <div class="underThumbTxt"><?php if (strlen($post->post_title) > 15) { echo substr(the_title($before = '', $after = '', FALSE), 0, 15) . '...'; } else { the_title(); } ?></div> </div> <?php endwhile; wp_reset_query(); ?> <br style='clear:both;' /> </div> <?php get_footer() ?>
Forum: Fixing WordPress
In reply to: help! need category to return all posts, not just 10 most recent!THANK YOU!!! works perfectly!!!!
Forum: Fixing WordPress
In reply to: help! need category to return all posts, not just 10 most recent!oh…. then i tried this, but now, every category pulls in ALL posts, not just the ones from its own category… but this must be closer? any idea what to change to makes sure it only pulls in stuff from its own category?
if(is_single()) { $category = get_the_category(); query_posts('category_name=&posts_per_page=-1' . $category[0]->cat_name); } else { query_posts('category_name=&posts_per_page=-1' . single_cat_title(false, false)); } while (have_posts()) : the_post(); ?>
Forum: Fixing WordPress
In reply to: help! need category to return all posts, not just 10 most recent!hi, thanks so much for your response!
i don’t really know php that well, just what i’m picking up form learning wordpress, so i’m not totally sure what the right syntax is for adding the posts_per_page=-1 argument.
i tried this but it caused everything to break…
if(is_single()) { $category = get_the_category(); query_posts('category_name=' . 'posts_per_page=-1' . $category[0]->cat_name); } else { query_posts('category_name=' . 'posts_per_page=-1' . single_cat_title(false, false)); }
what am i doing wrong?