• Resolved tag30

    (@tag30)


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

    Hi

    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 );
    Thread Starter tag30

    (@tag30)

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

    Thread Starter tag30

    (@tag30)

    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

    Theme Author D5 Creation

    (@d5creation)

    I think johnbhartley replied the best.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘preventing new posts appearing on home page’ is closed to new replies.