presspass
Member
Posted 3 years ago #
My new theme does not access pages using ?page_id. Preloaded WordPress themes, Classic and Default are able to retrieve pages using ?page_id. I would like some suggestions you might have to debug my new theme.
Details:
Creates urls:
<?php wp_list_pages('depth=1&title_li=&before=–');?>
Url(s) created by wp_list_pages don't work with new my theme, but are successful with classic and default.
[DOESN'T WORK]New theme url:
http://127.0.0.1/wordpress/?page_id=2
[WORK] Classic/Default url for page access:
http://127.0.0.1/wordpress/?page_id=2
Ideas, links to posts, or general discussion would be appreciated.
Thanks, Bill
presspass
Member
Posted 3 years ago #
Note where "before =- ", the ascii for ? didn't make it to my post. Replace - with "–"
presspass
Member
Posted 3 years ago #
presspass
Member
Posted 3 years ago #
Followup: page.php will not display inside of my new theme
COMMENTS.
1. My "page.php" file will display inside the default template folder
2. Default theme file "page.php" is viewable w/i its folder, but not viewable in my new theme's folder.
HELP!
Links to solutions, ideas, wordpress adventure stories or a suggestion would be appreciated.
presspass
Member
Posted 3 years ago #
This is a copy of my page.php file. Do you see any possible locations for parse errors?
<?php get_header(); ?>
<div id="contentUpper">
<div class="contentWrapper">
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--<h1 class="pagetitle">< ?php //the_title(); ?></h1>-->
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
</div>
</div>
</div>
<?php include (TEMPLATEPATH . '/sidebarLower.php'); ?>
<?php get_footer(); ?>
presspass
Member
Posted 3 years ago #
Is the function get_header() available for use inside of page.php?
presspass
Member
Posted 3 years ago #
Current solution: paste header code inside of page.php. If you have a better solution, please let me know.