Posts in Coda Blue
-
Hi there,
I just came across a great theme called CODA Blue that immitates the coda slider. Unfortunately, it doesn’t have the functionality of viewing posts and pages at the same time. Rather, you can either have the pages load up in the slider and ordered at the top, or the posts.
I was wondering if anyone knows how to have the slider incorporate posts in the first panel, and then pages in the following panels.
Here is the site for the theme, so you can see what I mean: https://wordpress.bustatheme.com/coda-blue/
Greg, the author, mentions that you can change the post type to page and toggle between what is displayed in the slider. Is there something I can add to that code which will let me display both in the slider?
Thanks!
The index.php code is as follows:
<?php get_header(); ?>
<?php query_posts(‘post_type=page&order=asc’); ?><div id=”page”>
<div id=”slider”>
<ul class=”navigation”>
<?php while (have_posts()) : the_post(); ?>- post_name?>”><span><?php the_title(); ?></span>
<?php endwhile;?>
<div class=”scrollButtons scrollMeLeft”><span>previous</span></div>
<div class=”scroll”>
<div class=”scrollContainer”>
<?php while (have_posts()) : the_post(); ?>
<div class=”panel” id=”<?=$post->post_name?>”>
<h3><?php the_title(); ?></h3>
<?php the_content(); ?>
</div>
<?php endwhile;?>
</div>
</div><div class=”scrollButtons scrollMeRight”><span>next</span></div>
</div>
</div><?php get_footer(); ?>
- The topic ‘Posts in Coda Blue’ is closed to new replies.