CovertOpsKawliga
Forum Replies Created
-
Forum: Plugins
In reply to: WordPress Popular Postsi have tried:
post_start=<li>»
in the loop, but it cuts off at the ‘&’ sign.
ive tried putting it into an array – it doesn’t work; ive tried wrapping the » in just about everything:
\"»\" ' . » . ' and MANY more
and nothing – is there any hope for me??
Forum: Fixing WordPress
In reply to: 2.9.2 to 3.0?cool, thanks esmi! GNARLY!!!!!!!
Forum: Alpha/Beta/RC
In reply to: Should I Install 2.9.2 or 3.0ROCK ON!! Thanks Ipstenu!
Forum: Fixing WordPress
In reply to: Help With Custom Meta FieldAAAHHHHHH!!!!! thanks esmi THAT DID IT!!! AAAHHHH!!!!
Forum: Fixing WordPress
In reply to: Best Practice for adding pagesi figured it out! for my home.php:
<?php $args = array ( 'meta_key' => '_project_type', 'meta_value' => 'Featured', 'showposts' => '5' ); query_posts($args); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
and for my projects.php:
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array ( 'paged' => $paged, 'posts_per_page' => '15' ); query_posts($args); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
just do what vtxyzzy said but instead of checking the static box, just use the dropdowns and it should work
Forum: Fixing WordPress
In reply to: Best Practice for adding pagesok, ive tried everything and i just dont understand.
my index.php file displays an intro slideshow and then the 5 latest featured posts (this is done by creating a custom meta field whereby it tells whether the post is regular or featured).
i would like another page to display all of the posts. ive tried using templates (changing my intro page to home.php and my posts page to projects.php – and then creating the pages for both).
but all this does is show my home.php on every page.
is there another way to add pages so that i can display custom loops on each??
Forum: Fixing WordPress
In reply to: Best Practice for adding pagesthe add pages thing isnt working for me.
is it possible to add pages another way?? a cleaner way??
im currently looking into add_option / get_option functions. am i going in the right direction??
Forum: Fixing WordPress
In reply to: Best Practice for adding pageswhat do you do with the index.php page?
sorry for the noobery
Forum: Fixing WordPress
In reply to: List Sub-Categories and their poststhanks esmi,
based on your advice and really digging through the docs and forums, here is what i came up with:
// $post->ID = $current_post_id; function list_sub_categories($current_post_id) { $category = get_the_category($current_post_id); $category_parent = $category[0]->category_parent; $args = array( 'child_of' => $category_parent ); $sub_categories = get_categories($args); foreach ($sub_categories as $sub_category) : $sub_args = array( 'showposts' => 5, 'category__in' => array($sub_category->term_id) ); $posts = get_posts($sub_args); if ($posts) : ?> <p><a href="<?php echo get_category_link( $sub_category->term_id ); ?>"><?php echo $sub_category->name; ?></a></p> <?php foreach ($posts as $post) : setup_postdata($post); ?> <p><a href="<?php echo get_permalink($post->ID); ?>" rel="bookmark"><?php echo $post->post_title; ?></a></p> <?php endforeach; ?> <?php endif; endforeach; }
i tried to make it as clean as possible. it works perfectly, but please let me know if you see anything wrong with it.
Forum: Fixing WordPress
In reply to: List Sub-Categories and their postsgot it, thanks esmi, ill try that out.
just a general question, when you add a new post do you check both the parent category and sub category, or do you only check the sub category??