Help on Making a WordPress Theme

Home Forums General Discussion Help on Making a WordPress Theme

This topic contains 2 replies, has 1 voice, and was last updated by  jplus2 1 year, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41886

    jplus2
    Member

    Hello,

    Good day, I admire your work here, a very good resource for learning wordpress

    by the way, I am a semi-novice wordpress developer, been doing wordpress a little bit so I understand most of wordpress basic stuff.

    I have a client who have an existing wordpress site, mostly the site utilizes heavily on wp pages not posts, now he requisted to have a “blog section”.

    The output I want is like this site http://leadsblog.com

    I want to have a general page for displaying at least 5 recent posts, then have a next and previous links to go to next older 5 recent posts.

    basically what I want to acheive is basically what leadsblog.com works

    what I did is use home.php to hold on the blog postings, then use single.php to hold each post

    now the thing in particular I stumble is when it comes to paging, i dont seem quite well get how it works, I have basic knowledge on the loop

    just simple illustration on how to accomplish this with just minimum code would do the trick

    i hope you can help me on this

    Thank you in advance

    More Power

    #41887

    jplus2
    Member

    by the way, am not using a child theme, I want to do it manually on my own so that I could fully understand its concepts.

    Thank You

    #41888

    jplus2
    Member

    I figured out now where I went wrong, when using a custom loop using WP_Query, the pagination doesn’t work, coz $wp_query global variable wont be available.

    the trick is to trick wordpress that we are using $wp_query

    Thank You Anyways

    More Power

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.