WordPress.org

Ready to get started?Download WordPress

Forums

Posts not showing up (11 posts)

  1. sross16
    Member
    Posted 2 years ago #

    Hello all. I'm not sure if this is the right area to post in or even if you can help me via here, but I am running into some problems. I have created a wordpress site and my posts show up on the on the home page, but when I click on a post, the context of the post does not show up.

    The site url is http://www.post34baseball.org

    There is currently only one post up there, as I want to try to eliminate this problem before I continue. Any suggestions or help would be extremely beneficial. Thanks in advance!

    [No bumping. If it's that urgent, consider hiring someone.]

  2. bythegram
    Member
    Posted 2 years ago #

    Could be a ton of reasons. First thing I would do is find the "page.php" file in your theme and make sure the "get_content()" line is included in it.

  3. sross16
    Member
    Posted 2 years ago #

    bythegram.... thanks for the response. This is what the page.php file shows. I am not so great in php so please tell me what I'm missing.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  4. bythegram
    Member
    Posted 2 years ago #

    um. I'm not amazing at this yet so my apologies if I'm wrong but;

    a) I don't believe you need the if (have_posts() ) portion there.
    b) If it is there for a reason that I'm missing it isn't closed ie <?php endif;?>

    I'd rewrite the div id "content" to this:

    <div id="content" role="main">
    <?php while ( have_posts() ) : the_post(); ?>
    				<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    				<div class="entry-title-wrap"><h1 class="entry-title" ><?php the_title(); ?></h1></div>
    					<div class="entry-content">
    						<?php the_content(); ?>
    					</div><!-- .entry-content -->
    <?php endwhile; ?>
    			</div><!-- #post -->

    See if that does the trick. Just a guess on my part

  5. sross16
    Member
    Posted 2 years ago #

    Thanks... but unfortunately it didn't work. This is what it's reading now. Like I said my PHP is horrible. I can do graphics, theme layout and more, but this is beyond me apparently.

    [ Code moderated. For more than 10 lines of code please pastebin.com instead. ]

  6. bythegram
    Member
    Posted 2 years ago #

    try using pastebin to show your code and I'm sure someone will find the fix for you

  7. sross16
    Member
    Posted 2 years ago #

    Thanks for the effort... right now no one on pastebin has tried fixing it yet... Anyone else on here want to give me a shot at helping? This is the only thing that's preventing us from using this as a team site right now.

    Thanks!!

  8. sross16
    Member
    Posted 2 years ago #

    The pastebin link is here thanks.

  9. bythegram
    Member
    Posted 2 years ago #

    I took a further look and it's hard for me to troubleshoot without being able to test (just the way I work) but I made some changes;

    try this

  10. bythegram
    Member
    Posted 2 years ago #

    nope sorry I can already tell I made a mistake. give me a minute

  11. sross16
    Member
    Posted 2 years ago #

    Any updates? Sorry it took so long for me to get back to you... I was stuck at work without a way to get on the net today. If you wouldn't mind, email me here and I'll set you up with a temp password and we can see if we can get it working...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags