Can you add posts below feature page box?
#1
Posted 03 December 2009 - 10:04 AM
#2
Posted 03 December 2009 - 07:59 PM
Have you tried making posts 'sticky'?This is so the important posts can remain visible and accessible for long after the unimportant posts have dropped off the bottom of the page.
You could try calling this function:
``
in `index.php`
#3
Posted 06 December 2009 - 10:39 PM
<?php require(PRO.'/template_feature.php');?>
That should Be <?php require(PRO.'/template-feature.php');?>
Also found you have to remove <?php get_footer(); ?> from the template-feature.php page, otherwise the footer gets shown before the posts.
#4
Posted 13 January 2010 - 08:43 PM
test website using IBP3.5.5
http://more.yellowwheels.com
?> <?php get_header(); ?> <div id="left-col"> <div id="content"> <?php require(PRO.'/template_feature.php');?> <?php require(LIB.'/_posts.php');?> </div> <!-- end content --> </div> <!-- end left col --> <?php get_sidebar(); ?> <?php get_footer(); ?>
there's a live site using IBP2 at http://www.yellowwheels.com
#5
Posted 20 January 2010 - 05:10 PM
I would like to have the feature box at the top of my home page with dynamic posts below it. I edited the index php file but nothing changed.
also under settings > reading I changed the page to dynamic and it took away the feature box. It seems like I only get one or the other. what can I do?
and for some reason the main page has all of the content of my other pages below the feature box. what a mess. haha
oh yea im using the whitehousepro template
website creditprotectionalliance.com
#6
Posted 21 January 2010 - 12:22 AM
I would suggest modifying one of your three different page-feature templates. Let's say you were to modify page-feature-stdpage.php, modify the code to look like so:
<?php
if(VPRO) {
/*
Template Name: Feature Page - Page Content
*/
get_header();
require(PRO.'/template_feature.php');
<div id="left-col">
<div id="content">
<?php require(LIB.'/_posts.php');?>
</div> <!-- end content -->
</div> <!-- end left col -->
get_sidebar();
get_footer();
}
?>
Now when you create a page and set it to the 'Feature Page - Page Content' page template, you should get posts showing up underneath your feature box.
Let me know if that works for you.
#7
Posted 21 January 2010 - 12:37 AM
require(LIB.'/template_page.php');
with:
require(LIB.'/template_posts.php');
Now when you create a page and set the template to "Feature Page - Page Content" you should see the feature block at the top, and posts below it.
#8
Posted 21 January 2010 - 04:32 AM
It didn't work I edited the pg-feature-pg.php like this:
<?php
if(VPRO) {
/*
Template Name: Feature Page - Page Content
*/
get_header();
require(PRO.'/template_feature.php');
require(LIB.'/_sub_head.php');
require(LIB.'/template_posts.php');
get_footer();
}
?>
any suggestions?
#9
Posted 21 January 2010 - 09:17 AM
#10
Posted 21 January 2010 - 03:57 PM
creditprotectionalliance.com
In the reading settings I have it set so that:
Front page displays:static page
front page: home
I created a home page and set that as the front page
I tried just deleting a home page altogether but then I cant activated the feature page template because the front page automatically switches to dynamic posts.
I also tried creating the homepage with the feature template but not setting it as the front page. it just added another "home" pg to my menu bar. I deleted and recreated the homepage as the correct template.
right now you should see the feature box with the page set to static content.
Just so you know what Im looking for, I want the front page exactly like it appears but the content area(it says "home" and "test") I would like to be dynamic with all of the posts up there. thank you so much for your help
Josiah
#11
Posted 22 January 2010 - 05:11 AM
get_header(); require(LIB.'/_sub_head.php'); [b]require(PRO.'/template_feature.php');[/b] require(LIB.'/template_posts.php'); get_footer();
And make this edit in the "header.php" file:
<?php if((is_page_template('page-feature.php') || is_page_template('page-feature-page.php')[b] || is_home()[/b]) && VPRO) require (PRO.'/init_feature.php');?>
Now the front page, if set to dynamic posts, should show features at the top and posts below it.
Let me know if that gets you what you need.
#12
Posted 22 January 2010 - 05:19 AM
<?php get_header(); [b]require(PRO.'/template_feature.php');?>[/b] <div id="left-col"> <div id="content"> <?php require(LIB.'/_posts.php');?> </div> <!-- end content --> </div> <!-- end left col --> <?php get_sidebar(); ?> <?php get_footer(); ?>
In the header.php file make this edit (shown in bold):
<?php if(is_page_template('page-feature.php') || is_page_template('page-feature-stdpage.php') || is_page_template('page-feature-full.php') [b]|| is_home()[/b]):?><script type="text/javascript" src="<?php echo JS_FOLDER;?>/jquery.cycle.all.js"></script><?php endif;?>.and this edit:
<?php if((is_page_template('page-feature.php') || is_page_template('page-feature-stdpage.php') || is_page_template('page-feature-full.php') [b]|| is_home()[/b]) && VPRO) require (PRO.'/init_feature.php');?>
Now your dynamic post page should show features on top.










