Tagged: ,

Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #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.

    #759243

    Hey 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,
    Rikard

    #760369

    Hi 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,
    Al

    #760374

    Hi!

    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,
    Basilis

    #760383

    Hi Basilis,

    Deactivated plugins and flush the permalinks.

    You can check now if you want.

    Cheers,
    Al

    #761001

    Ping,

    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,
    Al

    #761161

    Hi,

    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,
    Nikko

    #761217

    Hi 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,
    Al

    #761867

    Hi,

    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,
    Nikko

    #762139

    Hi 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,
    Al

    #762870

    Hi,

    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!
    Nikko

    #763750

    Cheers 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!
    Al

    #766008

    Hi,

    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,
    Ismael

    #766384

    Alrighty!

    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

    #766825

    Hi,

    Thanks for the feedback and sorry for the problems. It should hopefully be fixed soon.

    Best regards,
    Rikard

    #777199

    Hi,

    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ünter

    #777529

    Hi 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,
    A

    #779032

    Hey!

    Did you copy the filter from your email? Please copy it directly from this forum.

    Cheers!
    Ismael

    #782611

    Hi 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,
    Al

    #783268

    Hey!

    Great! Glad that it is working now. We’ll include the patch in the next theme release. :)

    Cheers!
    Ismael

Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Pagination in Blog element of Portfolio item, not working’ is closed to new replies.