How to add pagination on Metro theme homepage that uses widgets

Community Forums Forums Design Tips and Tricks How to add pagination on Metro theme homepage that uses widgets

This topic is: not resolved

This topic contains 20 replies, has 9 voices, and was last updated by  hc2 6 months, 2 weeks ago.

Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
    Posts
  • #43182

    pesunites
    Participant
    Post count: 14

    Would really appreciate your help!

    #43192

    pesunites
    Participant
    Post count: 14

    I actually just figured out some work around, if you are interested please just respond to this topic and I’ll explain

    #43195

    schnitzelboy
    Participant
    Post count: 3

    sure – i’d be interested in learning about your workaround…

    #43207

    pesunites
    Participant
    Post count: 14

    First, I want to say that I really am no expert in coding, I just figured this out somehow and IT WORKS but I am sure it’s not the best way how to handle this problem.

    So what I wanted to do with my blog is having the three-part “featured story” section on the homepage (just like here) and then a paginated list of my most recent posts.

    I used the Genesis Featured Widget Amplified plug-in and put in in the home-bottom widget area. The number of posts to show needs to be 10 (or any other number you like) and you have to check the boxes “use pagination” and “show site/page navigation” (not sure how they call it in English because I use a German translation.

    Make sure that your WordPress settings (Settings>Reading>Number of Posts) is set to 10 (or your desired number) as well!

    The widget then is shown on the home page and the pagination should be displayed. You then may put your featured story widgets in the home-top/middle-left/middle-right areas and configure however you like.

    Now, add this code to functions.php (not my code, found that somewhere)

    Now, there should be a working pagination at the bottom of your front page. However, if you click on the second/third/… page, the featured stories are still shown. That bothered me, so I modified the home.php. Now, I my front page shows three featured stories and the 10 most recent articles. If I click on “next page”, 10 more articles appear (11-20) but not the featured stories widgets.

    To do this, open your home.php and search for the function metro_homepage_widgets() { part. Substitute it with this code.

    Hope that helps

    • This reply was modified 1 year, 4 months ago by  pesunites. Reason: Code wasn't displayed properly, added GitHub link
    • This reply was modified 1 year, 4 months ago by  pesunites.
    • This reply was modified 1 year, 4 months ago by  pesunites.
    • This reply was modified 1 year, 4 months ago by  pesunites. Reason: Code wasn't displayed properly, added GitHub link
    • This reply was modified 1 year, 4 months ago by  pesunites.
    • This reply was modified 1 year, 4 months ago by  pesunites.
    #47224

    statusmedia
    Participant
    Post count: 8

    Wow! Can’t believe how many people are looking for the same fix. Has anyone tried any of these solutions? Can you share a link where this has been implemented? I’m using Metro on here [http://blog.rivalhost.com/].

    I’m going to experiment with some of these solutions, but honestly this seems like something that should be included with the theme. It doesn’t make much sense to not have an easy way to show that there are more posts on the blog.

    Any advice/examples/tips would be beneficial. I need a solution!

    • This reply was modified 1 year, 3 months ago by  statusmedia.
    • This reply was modified 1 year, 3 months ago by  statusmedia.
    #95062

    hc2
    Participant
    Post count: 3

    Also having issues with this. No luck with any of the fixes listed here.

Viewing 6 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic.