Jump to content
Sign in to follow this  
hyest

Please Help - Theme Styled Posts on a page other than the posts page

Recommended Posts

hyest

Guys, I have literally been at this for days straight. I'm using the StationPro theme. I'm trying to get the lists of posts to show up (currently set to http://hyestpc.com/latinobeatz.com/news/) on a page that is not the standard wordpress "posts" page as set in the Reading Options. I've tried plugins to inject PHP code in to a page. I've tried plugins that use shortcode to show posts (which work but they are not styled like the theme). I've tried changing the php template files in the theme (no luck, i probably don't know what im doing enough). Basically I've tried everything I could think of. http://www.hyestpc.com/latinobeatz.com <--- that is the main page, the section (where you would normally type content in to a page, is where i need the posts showing up). http://hyestpc.com/latinobeatz.com/news/ <---- is how I need the posts showing up on the "index" page. I'm trying to do it because I need to be able to have the options of using the different templates such as highlight, feature etc on a page that shows the posts, while mainting the css that the actual "posts" page uses. I've tried injecting the code from _posts.php in the template in to that page area with a php plugin (didn't work). I've tried just changing the index.php file in the template directory (since wordpress uses that for its "posts" page set in reading options) with no success. Can someone please help me out with this, Thanks! Chris

Share this post


Link to post
Share on other sites
hyest

Just to clarify , I need to get the "Theme Styled Posts" as seen in the news page (which is set to my wordpress "posts" page in reading options) on my home page (which is set to my wordpress "home" page in reading options) Not just a non-theme styled list of posts/excerpts.

Share this post


Link to post
Share on other sites
hyest

Also... if it makes understanding any easier, the basic ideas is i'm just trying to be able to control the "posts" page but any template I apply to it has no effect. I've been decontructing the php code and editing template files trying to get it to work.. just can't believe its so difficult

Share this post


Link to post
Share on other sites
catrina

What did you do to the code in the index page to get it the way it is right now? Perhaps reverting back to how the code was in the beginning could help in moving forward from there in getting the features you want on that page.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
hyest

Hey Catrina, I made some good progress. I finally got the "Feature" box to show up on the same page as the posts (testing on another site, it works on the latino beatz one too, but i'm just using this bottom address for all my testing and code changes): http://www.christopherpadilla.com/blog/ What i did was modify index.php in the theme directory to look like this:

<?php
	/*
		WhiteHousePro Copyright (C) 2008-2010 Andrew Powers, PageLines.com (hello AT pagelines DOT com)
	
		PHP code licensed under the terms of GPL.
	
	*/
	
		get_header();
		get_template_part('library/template_posts2');
		get_footer();
	?>
Notice I changed libary/template_posts (which is default) to libray/template_posts2. I then copied the template_posts file from the library directory and named it template_posts2 (so it doesn't affect other pages). Then at the top of the template_posts2 file I changed:
<?php
	
	global $pagelines_ID;
	
		if(is_page_template('page-fullwidth.php') || is_page_template('page-fullhighlight.php') || is_page_template('page-carousel-full.php')) $full_width_page = true;
		else $full_width_page = false;
	
		if(is_page_template('page-carousel.php') || is_page_template('page-carousel-full.php')) $carousel_page = true;
		else $carousel_page = false;
	
		if(VPRO && (is_page_template('page-feature.php') || is_page_template('page-feature-page.php') || (is_home() && pagelines('featureblog')))) $featureslide_template = true;
		else $featureslide_template = false;
	
		if(VPRO && (is_page_template('page-feature.php') || m_pagelines('featureboxes', $pagelines_ID))) $fboxes_template = true;
		else $fboxes_template = false;
	
	?>
To this:
<?php
	
	global $pagelines_ID;
	
	 $featureslide_template = true;
	
	?>

It also works for the feature boxes as well (you would have to set the feature boxes to true as well). The only issue is that for whatever reason (must interfere with the blog posts somehow), the feature slide only shows one entry even though there's 4. On a regular page: http://www.christopherpadilla.com/blog/feature/ it shows fine. I wish I could fix it so it showed more than one on the "blog/posts" page, but at least its progress! I've read of other people wanting to do the same thing on the forum, so hopefully it helps (once we can figure out why only one feature box shows up). Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×