[resolved] [Q] Having a Page as first post in homepage (5 posts)

  1. yekxmerr
    Posted 4 years ago #

    Hello, i'm creating my own theme and now im facing a big problem.

    1:How can i show a page as my first post in homepage and keeping all the post list along with the pagination. ( I don't use loop php, but isn't there a simple option to call the page to list in the index.php file ? )

    2:Have a static homepage listing the rest of the posts with pagination.

    ( My need is to have div before showing all the posts )

    Sorry if it's a bit confusing. And btw im not an wordpress expert because i started on it 2 days ago (came from blogger template system)

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    1. That's the wrong approach. See creating a static front page. If you want to also include a list of Posts, you can o so using a secondary Loop within a front-page.php template file.

    2. a page of posts

  3. yekxmerr
    Posted 4 years ago #

    I'm using a page of posts but not being sucessfull.
    Code im Using

    Also having troubles in getting the pagination to work, and when i get something to work, both pages show the same post.

    Hard to do this things without being comfortable with php.

  4. yekxmerr
    Posted 4 years ago #

    Hmm i think i got another solution. I'm going to call the last 10-20 posts and link with MORE to a static blog page.

  5. yekxmerr
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic