• Resolved notobella

    (@notobella)


    Hi there,

    I am working on a site for a client (www.pamfa.com) which has a static home page (http://pamfa.com/pamfa-wp/) and a static blog page for all posts (http://pamfa.com/pamfa-wp/?page_id=13).

    The theme we are using is a custom theme – everything seems to be working tip-top, except for the post titles and small text at the bottom of the blog page posts. They aren’t showing.

    If you view a single post (http://pamfa.com/pamfa-wp/?page_id=1) the post title and small text at the bottom is there no problem. If I change themes the post title and small text at the bottom are there as well.

    I’ve gone through and uploaded all of the files one-by-one to see which one might be glitching, but I cannot find it. Any help would be greatly appreciated.

    PS – the blog post page theme is default.

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • I don’t get your problem.

    You don’t want the small text?
    You do?

    Thread Starter notobella

    (@notobella)

    I want the small text and the title of each post on the blog posts page. It is already on the single-post page which is fine – but the blog posts page isn’t showing either the small text or the title, and it needs to. (http://pamfa.com/pamfa-wp/?page_id=13) This is the blog posts page – you’ll see there is no title and no small text, even though i did not remove this function from the page.

    Looking at the blog—there is no posts.

    Just an introduction.

    Copy and paste your INDEX.PHP code in here. (make sure you put it in a code box)

    Thread Starter notobella

    (@notobella)

    hi plz – thank you for your time. The blog page (id=13) is the first blog actually – it’s the first post I made… you can’t tell, because there isn’t a header or small text 🙁

    here is the code from my index.php:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    	<div id="content" class="narrowcolumn" role="main">
    
    	<?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				</div>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">Not Found</h2>
    		<p class="center">Sorry, but you are looking for something that isn't here.</p>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    here is the code from my page.php

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    	<div id="content" class="narrowcolumn" role="main">
    
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<div class="post" id="post-<?php the_ID(); ?>">
    		<h2><?php the_title(); ?></h2>
    			<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>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Ok, I really don’t see the problem.

    The small text is on every page that you have linked to along with the titles and the code is fine.

    You need to be slightly more specific because as of now I see no problem.

    The only difference between the index.php and the page.php is that the page.php’s title is not linked.

    Thread Starter notobella

    (@notobella)

    That’s what I’ve learned.. all of my code is correct, but the blog posts page isn’t displaying correctly.

    The site is set up to have a static home page – in doing this, you have to tell wordpress where you want the blog posts to go – which i’ve done – however, the post(s) aren’t displaying the title and the small text.

    If you were to be able to click on the title of the post (as on a regular blog) you’d go to a single post page – this is showing perfectly. I’m not sure what’s happening between the blog posts page and the single post page.

    static home page: http://pamfa.com/pamfa-wp/

    static blog posts page: http://pamfa.com/pamfa-wp/?page_id=13

    single posts page(s): http://pamfa.com/pamfa-wp/?page_id=1
    http://pamfa.com/pamfa-wp/?p=71
    http://pamfa.com/pamfa-wp/?p=72

    You’ll notice that the “title” for the first blog post (Welcome to PAMFA CLOTHING!), second blog post (test1) and third blog post (test2) are not showing up… but if you were to go to any of those single post pages – it’s displaying properly.

    This is what I can’t figure out. 🙁

    Thread Starter notobella

    (@notobella)

    FIXED!

    I had no idea (being relatively new to custom wordpress themes) that a home.php file would override the index.php file.

    All of my theme page files remove the title – i just had to rename my home.php and voila… site perfecto!

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Blog page missing post titles’ is closed to new replies.