Archived

This topic is now archived and is closed to further replies.

  • 0

Resolved Problem With Pagination

Question

Posted · Report post

I have a custom loops for my static homepage (custom section)

[color=#000088]class[/color][color=#000000] [/color][color=#660066]PageLinesPostLoopCustom[/color][color=#000000] [/color][color=#000088]extends[/color][color=#000000] [/color][color=#660066]PageLinesSection[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000088]function[/color][color=#000000] section_template[/color][color=#666600]()[/color][color=#000000] [/color][color=#666600]{[/color]

[color=#000000]query_posts[/color][color=#666600]([/color][color=#000000] array[/color][color=#666600]([/color]

[color=#000000]		[/color][color=#008800]'post_type'[/color][color=#000000] [/color][color=#666600]=>[/color][color=#000000] array[/color][color=#666600]([/color][color=#000000] [/color][color=#008800]'post'[/color][color=#666600],[/color][color=#000000] [/color][color=#008800]'custompost'[/color][color=#666600]),[/color]

[color=#000000]		[/color][color=#008800]'posts_per_page'[/color][color=#000000] [/color][color=#666600]=>[/color][color=#000000] [/color][color=#006666]6[/color][color=#666600],[/color]

[color=#008800]'paged'[/color][color=#000000] [/color][color=#666600]=>[/color][color=#000000] get_query_var[/color][color=#666600]([/color][color=#000000] [/color][color=#008800]'page'[/color][color=#000000] [/color][color=#666600])[/color]

[color=#666600])[/color]

[color=#666600]);[/color]

[color=#000000]$theposts [/color][color=#666600]=[/color][color=#000000] [/color][color=#000088]new[/color][color=#000000] [/color][color=#660066]PageLinesPosts[/color][color=#666600]();[/color]

[color=#000000]$theposts[/color][color=#666600]->[/color][color=#000000]load_loop[/color][color=#666600]();[/color]

[color=#666600]}[/color]

[color=#666600]}[/color]

You can see it in action on my website. Problem is with pagination.

It shows /page/2/ and get stuck there, you can not display 3rd or 4th pagination page...

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

Unfortunately, as previously mentioned, we can't analyze your code in the forum. We do not have validation tools or training in coding. Once more I'm going to recommend you engage a professional web developer as our developers are not available for diagnostic services.

Thanks for your kind understanding. I'm sure if you search, you'll find a validation or diagnostic tool if you don't want professional assistance with this.

Share this post


Link to post
Share on other sites

Posted · Report post

The topic was marked as resolved.

Share this post


Link to post
Share on other sites