
-
AuthorPosts
-
January 22, 2016 at 12:50 pm #569968
Hey!
I’m using Enfold in combination with woocommerce. I have got a problem with the number of Products displayed on a page. If I want to click on the second (third…) page, you stay on the first page.
Do you have any idea?
Cheers!
DariaJanuary 22, 2016 at 2:47 pm #570095Hi Daria!
try to deactivate all plugins, to check if one is causing this issue and let us know about your results.
Are we allowed to deactivate all your plugins temporarily by ourselves as well for testing purposes?
You could try this solution as well: https://core.trac.wordpress.org/ticket/35344#comment:34, but make a backup of the file before modifying it, just in case.
Regards,
AndyJanuary 22, 2016 at 5:11 pm #570219Hi Andy,
I allow you to deactivate all plugins for testing by yourself.
I already made a backup!
many thanks
DariaJanuary 25, 2016 at 12:35 pm #571292Hi!
please refer to this: https://kriesi.at/support/topic/pagination-not-working-after-wordpress-4-4-1-and-enfold-3-4-7/#post-565212
Regards,
AndyJanuary 26, 2016 at 12:19 pm #572043Hi Andy!
Thank you! Your topic has solved the problem only for internal pages.
To fix it in the front page I used the following code:Change in wp-includes/canonical.php lines 264-270 from this:
<?php
// Post Paging
if ( is_singular() && ! is_front_page() && get_query_var(‘page’) ) {
if ( !$redirect_url )
$redirect_url = get_permalink( get_queried_object_id() );
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( get_query_var( ‘page’ ), ‘single_paged’ );
$redirect[‘query’] = remove_query_arg( ‘page’, $redirect[‘query’] );
}to that:
<?php
// Post Paging
if ( is_singular() && get_query_var(‘page’) && ( !is_front_page() || ( isset($wp_query->queried_object) && ‘page’ == get_option(‘show_on_front’) && $wp_query->queried_object->ID == get_option(‘page_on_front’) ) ) ) {
if ( !$redirect_url )
$redirect_url = get_permalink( get_queried_object_id() );
$page = get_query_var( ‘page’ );
if ( is_front_page() ) {
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( “$wp_rewrite->pagination_base/$page”, ‘paged’ );
} else {
$redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( $page, ‘single_paged’ );
}
$redirect[‘query’] = remove_query_arg( ‘page’, $redirect[‘query’] );
}Have I nice day!
DariaJanuary 28, 2016 at 8:08 pm #574027Hi!
thx a lot for sharing your solution with us!
Let us know in a new ticket if you have some more question about the theme. We are happy to assist you!
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.