Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Blog Posts page not showing Title or small text WordPress

  • SOLVED

Thank you everyone for your wonderful advice. I've learned soooo much and will utilize this service EVERYTIME I need help.


RE: Michael Fields

Yes. I do have a home.php - it is the theme page used on the "home" page. I didn't realize it would take the place of the index.php. :( It worked like a charm. THANK YOU SOOOOO MUCH!!!



RE: Brandon Dove

Hello. Yes. The "blog" page is the posts page. The theme used for the "blog" page is the default theme, which maintains the headings (the_title()).

You can download the theme files here: http://saranoto.com/CLIENTS/PAMFA/pamfa-theme/

You'll notice it is built on the Kubrick theme.

Thank you so much for your time!



RE: Michael Fields

Thanks for your source code, but my default template is already in place with what you've provided - still no go :( The goal is to have the "blog" page be the posts page... to view exactly as though it were the default front page.




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 blog posts page - the post titles and small text at the bottom aren't showing.

If you view the single post page (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 and view the blog posts page, 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.

The blog post page theme is default.

ALSO - I've had a help section started at the wordpress.org forum for a little while and to no avail - here is additional information concerning my question, along with the PHP code for index and page.

http://wordpress.org/support/topic/350270

Thank you!

Answers (6)

2010-01-14

Brandon Dove answers:

I noticed on all of your other pages, your titles are showing up as images inside of the post content, not headings (the_title()). Maybe you've taken that out of the template files so that's the reason they're not showing up on the blog listing page.

Is there a way you could give a link to download the theme so we can take a look at it?

When you set up the home page to be a static page, did you also choose the "blog" page to be the posts page?

2010-01-15

Michael Fields answers:

<blockquote>Thanks for your source code, but my default template is already in place with what you've provided - still no go :( The goal is to have the "blog" page be the posts page... to view exactly as though it were the default front page.</blockquote>

No problem, sorry that it did not help and that I misunderstood what you were asking:) Next thing I would ask is "Does your theme have a home.php file in it's directory?" home.php will be used instead of index.php on a "Blog posts page".

If your theme does have this file, please try to rename it to "_home.php" and then reload your blog page.

2010-01-14

Michael Fields answers:

Sara,
I think that I understand what you are trying to accomplish here, but I feel that you are going about it the wrong way. If I understand you issue, You would like this "page" (http://pamfa.com/pamfa-wp/?page_id=13) to display a group of related posts. If this is what you are after, then I would suggest that you use [[LINK href="http://codex.wordpress.org/Category_Templates"]]category templates[[/LINK]].

Categories are one of WordPress' built-in features which enable you to organize, display and navigate multiple posts with ease.

If for some reason, you <strong>must</strong> use pages for this functionality you will need to create a [[LINK href="http://codex.wordpress.org/Pages#Page_Templates"]]custom page template[[/LINK]] for the page that you wish to have a group of pasts listed on.

The following code provides you with a custom page template which should accomplish your needs. I have commented the code where you will want to modify it for use on your site:

<?php
/*
Template Name: Custom Page Template
*/

get_header();
?>
<div id="content" class="narrowcolumn">
<?php

/* First we will get the information for the current "page"
----------------------------------------------------------------- */
if ( have_posts() ) :
while ( have_posts() ) :
the_post();
print "\n\t\t" . '<div class="post" id="post-' . get_the_id() . '">';
the_title( '<h2>', '</h2>' );

print "\n\t\t\t" . '<div class="entry">';
the_content('<p class="serif">Read the rest of this page &raquo;</p>');
wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
print "\n\t\t\t" . '</div>';
print "\n\t\t" . '</div>';
endwhile;
endif;
edit_post_link('Edit this entry.', '<p>', '</p>');


/* Next we will create a custom query which returns post from a
certain category. you can change the values insite the
function get_posts() to whatever you like. Please see the codex
for options: http://codex.wordpress.org/Template_Tags/get_posts
----------------------------------------------------------------- */

$myposts = get_posts( 'numberposts=5&category=52' );
if( $myposts ) {
foreach( $myposts as $post ) {
setup_postdata( $post );
$more = 0;
$class = 'class="' . join( ' ', get_post_class( $class, $post_id ) ) . '"';
print "\n\t\t" . '<div ' . $class . ' id="post-' . get_the_ID() . '">';
print "\n\t\t" . '<h2><a href="' . get_permalink() . '" rel="bookmark" title="Permanent Link to ' . esc_attr( the_title( '', '', false ) ) . '">' . the_title( '', '', false ) . '</a></h2>';
print "\n\t\t" . '<small>' . get_the_time('F jS, Y') . '</small>';
print "\n\t\t" . '<div class="entry">';
the_content( 'Read the rest of this entry &raquo;' );
print "\n\t\t" . '</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><?php
print "\n\t\t" . '</div>';
}
}
print "\n\t\t\t" . '</div><!--END NARROWCOLUMN-->';

get_sidebar();
get_footer();
?>


Copy this code and save as a new php document. You will want to change the text at the top:

/*
Template Name: Custom Page Template
*/


to something more appropriate for you site like "T-shirts" or "pants".

Upload the new php document to your current themes directory, log into WordPress, navigate to the page that you wish to edit and apply this new page template to it.

Please note: Although the page solution <em>does</em> work, category templates allow you a much better front-end experience.

Hope this helps!
-Mike

2010-01-15

Brandon Dove answers:

I tried downloading the theme files, but all I get is a PHP error. Can you link to a zip file?

2010-01-15

Abu Yervant answers:

Would like to help you but I'm unable to view the blog ...

It gave me the 501 Error ..

2010-01-15

Japh answers:

Hi Sara,

I would love to help you, however, the link you provided to download the theme files does not work for me.

If I could get a copy of the theme as you're using it now, I'm fairly certain I could help you.

Good luck! :)