Small Business
[resolved] preventing new posts appearing on home page (5 posts)

  1. tag30
    Posted 2 years ago #

    [Title de-capitalized, please do not shout at us]


    I think this may be custom coded but i want to create a page just for new posts. However, every new post appears in the slider and front page where the featured posts were.
    Can i stop new posts replacing my chosen featured posts on the front page?
    ive already tried pining the posts (sticky) under visibility but its not having any affect. ive set new posts to go to a specific page which they do, its just they are overriding my featured posts which i dont want
    Thank you for your help

  2. johnbhartley
    Posted 2 years ago #

    If you have some code knowledge, you can adjust the query that's being made in front-page.php:

    //current code line 14:
    $sbargs = smallbusiness_ppp(); query_posts( $sbargs ); 
    //new code
    $sticky = get_option( 'sticky_posts' );
    $args = array( 'posts_per_page' => 4, 'post__in' => $sticky, 'ignore_sticky_posts' => 1);
    query_posts( $args );
  3. tag30
    Posted 2 years ago #

    i dont really have code knowledge but will give it a go. thanks

  4. tag30
    Posted 2 years ago #

    right well that worked. However, it also removed the first two posts i wanted on the front page, from the front page. Because of the theme, the posts are placed in the slider and duplicated in the main body as a page I wouldnt mind not having them duplicated but i tried to fill the page with different content but it wouldnt let me change the permalink so that you could 'read more' which must be due to the theme modifications.
    If that makes sense?
    My site is hartigansconstruction.com if that helps

  5. d5creation
    Theme Author

    Posted 2 years ago #

    I think johnbhartley replied the best.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic