Alright, so
http://66.7.201.40/~cujpybvo/wordpress/Comic/ is using the index.php file in the current theme.
http://66.7.201.40/~cujpybvo/wordpress/Comic/index.php/comic/
is using the comic_main.php file.
I want to be the main page to be the same as http://66.7.201.40/~cujpybvo/wordpress/Comic/index.php/comic/
as the forward / next thing works over here and the URL would look nice.
These files are uploaded here.
http://66.7.201.40/~cujpybvo/index.zip
Hopefully this info is enough, reading the php files should clarify all your questions. I hope someone here can help me fix this issue.
Belor are the php files in text for those who don't want to open the zip file. Thanks!
---
<?php
/* Template Name: Comic Main
*/
?>
<?php get_header(); ?>
<?php $my_query = new WP_Query('category_name=comic&showposts=1'); ?>
<div id="comic">
<?php while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<h3 align="center" class="etitle" rel="bookmark" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
<div class="entry_comic <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
<div class="ebody">
<?php the_content(__('Read more'));?>
<?php edit_post_link(__('<strong>Edit</strong>'));?>
</div>
<!-- <?php trackback_rdf(); ?> -->
</div>
<?php //comments_template(); // Get wp-comments.php template ?>
<p>
<?php
$wp_query->is_single = true;
previous_post('%','« Previous', 'no');
$wp_query->is_single = false;
?>
</p>
<?php endwhile;?>
</div>
<!-- <?php //get_sidebar(); ?> -->
<!-- The main column ends -->
<?php get_footer(); ?>
<?php
/* Template Name: Main Index Page
*/
?>
<?php
get_header();
?>
<?php //query_posts('category_name=comic&showposts=1'); ?>
<div id="comic">
<?php while (have_posts()) : the_post(); ?>
<h3 align="center" class="etitle" rel="bookmark" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
<div class="entry_comic <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
<div class="ebody">
<?php the_content(__('Read more'));?>
<?php edit_post_link(__('<strong>Edit</strong>'));?>
</div>
<!-- <?php trackback_rdf(); ?> -->
</div>
<?php //comments_template(); // Get wp-comments.php template ?>
<p>
<?php
$wp_query->is_single = true;
previous_post('%','« Previous', 'no');
$wp_query->is_single = false;
?>
<?php
$wp_query->is_single = true;
next_post('%','Next »', 'no');
$wp_query->is_single = false;
?>
</p>
<?php endwhile; ?>
</div>
<!-- <?php //get_sidebar(); ?> -->
<!-- The main column ends -->
<?php get_footer(); ?>