Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End show blog post in a page

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #33670
    digitaldrug
    Member

    Hi Chris, hi guys.
    Apologize if you have already replied at this question, I haven’t found it while googleing.

    So please just link the resource in case.

    I have followed the Lynda tutorial and I have created a website based on WP with a custom home page just changing home.php and with several templates (1 per page).

    I have also created a template for post and a page where I have attached such template as you have shown. The code of the template is the following





    id="post-">

    ">






    post_content), 0, 400);?>
    " class="goHead">read all...











    Not Found





    it works but it has a problem.
    I can’t have previous post. Cliccking previous it just change the url and load another page but the content is the same.

    Do I have made any mistakes?

    I would appreciate your help.
    Cheers

    #84066
    TheDoc
    Member

    When you query posts like that, you need to add another piece of code to allow pagination to work:

    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts('posts_per_page=5&paged='.$paged);
    #84075
    digitaldrug
    Member

    Man you are great!
    Thank you so much! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.