Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, i’m having the exact same issue. Didn’t tried the test page until i read your post.
    So the issue is only in the homepage :/

    Thread Starter squeaky

    (@squeaky)

    I am not sure if this has anything to do with the issue. But on the product details page, in the breadcrumb nav there is a Page 1 at the end of the bread crumb path.

    Go to the test page.
    Move to page #2
    click on any of the products on page 2 and look at the breadcrumb nav, no matter what page we come from – its says Page 1 –

    #1 can that be removed?

    Thread Starter squeaky

    (@squeaky)

    I found a solution – my front and test pages are both working.
    make a copy of the plugin file as a backup.

    https://wordpress.stackexchange.com/questions/120407/how-to-fix-pagination-for-custom-loops

    on this page I found the below quote:

    Note: If your page is a static front page, be sure to use page instead of paged as a static front page uses page and not paged. This is what you should have for a static front page

    knowing enough to be dangerous, I made the following changes to
    jck-woo-shortcode-pagination.php

    Line 96
    Changed from $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;
    to:

    if ( is_front_page() )
    		  {
    		  	$paged = get_query_var('page') ? get_query_var('page') : 1;
    		  }
    		  else
    		  {
    		  	$paged = get_query_var('paged') ? get_query_var('paged') : 1;
    		  }

    Also; Line 124
    FROM: $paged = get_query_var(‘paged’) ? get_query_var(‘paged’) : 1;

    if ( is_front_page() )
      {
    		$paged = get_query_var('page') ? get_query_var('page') : 1;
    		  }
    		  else
    		  {
    			$paged = get_query_var('paged') ? get_query_var('paged') : 1;
    		  }

    Hey thanks!
    I’ll give it a try as soon as i can and let you know.
    Thanks a lot ??
    Regards.

    Plugin Author jamesckemp

    (@jamesckemp)

    Hey,

    Added this to 1.0.4 for release. Thanks!

    If you need to make a change in future, just submit a Pull Request at: https://github.com/iconicwp/shortcode-pagination-for-woocommerce

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Static Front Page -not working – test page is working – same shortcode’ is closed to new replies.