• presspass

    (@presspass)


    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:
    https://127.0.0.1/wordpress/?page_id=2

    [WORK] Classic/Default url for page access:
    https://127.0.0.1/wordpress/?page_id=2

    Ideas, links to posts, or general discussion would be appreciated.

    Thanks, Bill

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter presspass

    (@presspass)

    Note where “before =- “, the ascii for ? didn’t make it to my post. Replace – with “–”

    Thread Starter presspass

    (@presspass)

    # 8211 ;

    Thread Starter presspass

    (@presspass)

    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.

    Thread Starter presspass

    (@presspass)

    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 &raquo;</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(); ?>
    Thread Starter presspass

    (@presspass)

    Is the function get_header() available for use inside of page.php?

    Thread Starter presspass

    (@presspass)

    Current solution: paste header code inside of page.php. If you have a better solution, please let me know.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘500 page request error: ?page_id=2 wp_list_pages’ is closed to new replies.