WordPress.org

Support

Support » Themes and Templates » Full Post Showing Where Only A Portion Should

Full Post Showing Where Only A Portion Should

  • I’m creating and building a custom Theme for a client. I’m using home.php for the “main” page. I’m using page.php to display a couple of mostly static pages. Both the home.php and the page.php pull in the same sidebar.php. When the home.php pulls in the sidebar it works as it should and displays a portion of a particular post. However, when the page.php pulls in the exact same sidebar it displays the entire post, instead of just a portion of it. I’m using the <!–more–> tag in the post to control what portion should show up on the page. I don’t understand why it works on the home.php page, but not on the page.php page since they are both using the exact same code via the sidebar.php page. Any help or insight would be greatly appreciated. You can see it here: http://www.redpepperinc.com/theseed . If you click on “contribute” in the top left corner you’ll see the same sidebar on the Contribute page but see it’s pulling in the entire post, not just the portion the Home page pulls in. Thanks for any help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Had this same problem last week. The only thing that fixed it was to call the sidebar like this in the problematic template file:

    include_once TEMPLATEPATH . '/sidebar.php';

    instead of using a template tag.

    hope this helps

    Thanks mfields, I’ll give it a try and let you know.

    No, unfortunately, in this case that didn’t make any difference. But, thanks again for the suggestion.

    I’m still looking for a solution to this problem if anyone can help. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Full Post Showing Where Only A Portion Should’ is closed to new replies.
Skip to toolbar