spoofm0nkey
Forum Replies Created
-
Forum: Plugins
In reply to: How do I include posts on a page?Forum: Plugins
In reply to: How do I include posts on a page?Any other methods to specify a category?
Forum: Plugins
In reply to: How do I include posts on a page?I read over it, thanks. I used the conditional to do it, and it sort of works.
<?php if (in_category(’10’)) { ?>
blah blah post stuff
<?php }; ?>Now, it displays only posts from the blog category (yay), the only problem is, the post is on the second page.
http://astrocomical.com/blog/Before I limited it to only that category, every category post was listed, and the blog one happened to be on the second page. Now it’s staying there for some reason, instead of moving up.
Forum: Plugins
In reply to: How do I include posts on a page?It turns out the theme I’m using had this “blog” template…so I tried using that, I figured it would take posts out of the blog category but it didn’t work out.
So, it displays posts on a page, that’s good. But I don’t know how to specify the category it displays posts from.
In the blog.php file:
<?php $wp_query = new WP_Query(); $wp_query->query( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged ) ); $more = 0; ?> <?php if ( $wp_query->have_posts() ) : while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?> <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>"> <?php hybrid_before_entry(); // Before entry hook ?> <div class="entry-content entry"> <?php the_content( sprintf( __('Continue reading %1$s', 'hybrid'), the_title( ' "', '"', false ) ) ); ?> <?php wp_link_pages( array( 'before' => '<p class="pages">' . __('Pages:', 'hybrid'), 'after' => '</p>' ) ); ?> </div><!-- .entry-content --> <?php hybrid_after_entry(); // After entry hook ?> </div><!-- .hentry .post --> <?php endwhile; ?> <?php hybrid_after_page(); // After page hook ?>I’m using a custon page.php template –
http://astrocomical.com/sketches/See the empty space at the top?
Currently, to get rid of that title (obviously because I want the title of the page at the top where I have it now) I’m using this code:
<?php if(get_the_title()!=’Sketches’){ the_title(); } ?>
So, if the title isn’t “Sketches” then I’m cool with it being displayed. I don’t really like this though.I’m thinking about switching to this “Thesis” theme thing, do you think that might be a major help to me? Considering what I’m trying to accomplish here.
Forum: Fixing WordPress
In reply to: wp_list_cats with count (optioncount) within the linkThat’s a broken link. I’m having the same problem will someone repost the solution?