Calling pages instead of posts
-
Hi,
I’m trying to alter this theme:
https://mixcss.com/By default, it calls up posts in reverse chronological order. I just want to call pages instead of posts on the home page. Here’s the bit of code that I need to change, but don’t know how.
<?php /* Count the number of posts so we can insert a widgetized area */ $count = 1 ?> <?php while ( have_posts() ) : the_post() ?> <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>"> <div class="entry-content"> <?php childtheme_post_header() ?> <a href="<?php echo the_permalink() ?>"><span class="slide-title"><?php echo the_title(); ?></span> <img class="thumbnail" src="<?php if(get_post_meta($post->ID, 'thumbnail', $single = true)){echo get_post_meta($post->ID, 'thumbnail', $single = true);} else{bloginfo('url'); echo "/wp-content/themes/gallery/images/thumbnail-default.jpg";} ?>" width="125" height="125" alt="<?php echo the_title() ?>" /></a> </div> </div><!-- .post -->
Sadly, I only know enough PHP to be dangerous and generally just dig into the codex for the solution to whatever minor problem I have. In this case, though, I just can’t figure it out. Any help would be appreciated!
Thanks,
Brian
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Calling pages instead of posts’ is closed to new replies.