Tagged: ismael, pagination
-
AuthorPosts
-
March 9, 2017 at 10:00 pm #758586
Hi team,
I’ve been trying to search the solution for pagination not working in a blog element for a portfolio item. But there were so many posts about pagination in general that I couldn’t figure out if it actually was about the same thing.
Please check attached link for the live page.
If you test the pagination buttons at the bottom, it won’t bring me to the corresponding page as expected. Instead it just loads the first page only.
Would appreciate any help. Thank you.
March 11, 2017 at 5:17 am #759243Hey asinoy,
Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardMarch 14, 2017 at 12:50 am #760369Hi Rikard,
Please find the private content for the temporary access. Please let me know when you are done with it too.
Thank you.
Best regards,
AlMarch 14, 2017 at 1:21 am #760374Hi!
Can you please disable any plugins and ” flush ” your Permalink settings, so we can give it a try, how the results would be?
Thanks a lot
Regards,
BasilisMarch 14, 2017 at 2:14 am #760383Hi Basilis,
Deactivated plugins and flush the permalinks.
You can check now if you want.
Cheers,
AlMarch 14, 2017 at 10:29 pm #761001Ping,
hope you guys got a chance to check it out. I tried checking it out if disabling plug-ins and flushing permalinks helped – unfortunately it didn’t. Looking froward to hear what you think the problem may be.
Cheers,
AlMarch 15, 2017 at 6:51 am #761161Hi,
Can you give us ftp access? if you try to change the permalink to plain the pagination works out just fine, but using other permalinks it seems to redirect to the same url instead of pointing to /page/2
Best regards,
NikkoMarch 15, 2017 at 8:49 am #761217Hi Nikko,
I created the ftp account. Please check out the private content for details. I only gave you access to the wp-content folder. Don’t suppose you need access to my whole website. Let me know if something is missing from the ftp access setup.
Cheers,
AlMarch 16, 2017 at 1:11 pm #761867Hi,
We would need access to the wp-config.php file so debugging can be enabled (this can be done without showing errors on page but only generates error_logs which is very useful) and probably .htaccess file. I don’t think the issue is missing or corrupt file since it works properly when using plain permalink.
Best regards,
NikkoMarch 16, 2017 at 7:47 pm #762139Hi Nikko,
alrighty – please find attached the full access and reconfigured FTP access. Looking forward for you guys to find out what the problem is in the end.
Really appreciate all the help.
Cheers,
AlMarch 18, 2017 at 12:54 pm #762870Hi,
Thanks for providing the access. I can’t find the right solution until this time, but I checked the error logs, .htaccess, wp-config.php and other files but everything seems to be okay, I’ve tested the module by creating a test page and it was working fine there however when it comes to portfolio I noticed it’s redirecting though I can see you have already deactivated all plugins. I have a screenshot that it’s redirecting (in private content) but as of the moment I can’t figure out what’s the cause.
Cheers!
NikkoMarch 20, 2017 at 7:04 pm #763750Cheers for the help Nikko!
Please let me know if you’re still on this bug and whether it’s a prio for you and the team. If not, please still let me know so that I can take care of housekeeping (i.e. removing ftp access, etc)
Thank you!
AlMarch 24, 2017 at 9:56 am #766008Hi,
This seems to be a WordPress core bug as discussed here:
// https://core.trac.wordpress.org/ticket/15551
We can add the following filter and it will enable the pagination but the items won’t show up.
add_filter( 'redirect_canonical','custom_disable_redirect_canonical' ); function custom_disable_redirect_canonical( $redirect_url ){ if ( is_singular('portfolio') ) $redirect_url = false; return $redirect_url; }
We’ll report the issue to Kriesi.
Best regards,
IsmaelMarch 24, 2017 at 8:45 pm #766384Alrighty!
Thanks for letting me know!
I’ll remove the ftp access then for now and hope to see it maybe be resolved in the future updates (either WordPress of Enfold).
Cheers team!
A
March 26, 2017 at 6:34 am #766825Hi,
Thanks for the feedback and sorry for the problems. It should hopefully be fixed soon.
Best regards,
RikardApril 13, 2017 at 12:17 pm #777199Hi,
Thank you for your patience.
As already mentioned above this is a wordpress core problem.
The following code should fix it – we will integrate it in the next update. Meanwhile you can put it in your functions.php file:
function my_cpt_request_redirect_fix( $request ) { $post_types = array('portfolio'); if ( isset( $request->query_vars['post_type'] ) && in_array( $request->query_vars['post_type'], $post_types ) && true === $request->is_singular && - 1 == $request->current_post && true === $request->is_paged ) { add_filter( 'redirect_canonical', '__return_false' ); } return $request; } add_action( 'parse_query', 'my_cpt_request_redirect_fix' );
Best regards,
GünterApril 13, 2017 at 9:07 pm #777529Hi Günter,
Thanks for getting back to me on this. Unfortunately, I did as you said in pasting the code and it caused my website to load HTTP 500 error. Had to ask help from customer service at hostmonster to track down the problem. It was the code apparently. After I deleted it from fucntions.php, my site started working again.
Did you guys see that happen from anyone else who reported the same bug? Just thought I’d give you a heads up before you publish the new update with this fix.
For what it’s worth, I appreciate that you guys are still on top of this.
Cheers,
AApril 18, 2017 at 2:38 am #779032Hey!
Did you copy the filter from your email? Please copy it directly from this forum.
Cheers!
IsmaelApril 25, 2017 at 1:45 am #782611Hi Ismael,
Thanks for getting back about this. I managed to make it work by pasting the change into function.php directly via ftp. The last time I did it, I updated it in via the wordpress editor. I don’t know why that would make a difference but it works now!
Thank you all! Feel free to check out the fix in the private content.
And thanks over for all the support!
Best regards,
AlApril 26, 2017 at 7:07 am #783268 -
AuthorPosts
- The topic ‘Pagination in Blog element of Portfolio item, not working’ is closed to new replies.