• Hi,

    after creating a second page with ‘custom-circles’ on it I ran into the following problem. The number of circles is – as expected – still 10, even when I have created more than that. If it would work like the homepage the navigation arrows would appear for navigation to sub-pages containing the other circles. This however does not happen.

    Does anyone know how to get the navigation working on other pages?

    Thanks in advance!

    P.S. the website this is about:

Viewing 12 replies - 1 through 12 (of 12 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If it would work like the homepage the navigation arrows would appear for navigation to sub-pages containing the other circles.

    Can you re-explain what you mean here?

    Thread Starter Fokseh

    (@fokseh)

    Of course!

    On the homepage of Spun themed webpages arrows appear on the left and right (when there are more than 10 posts) to navigate through pages of the various posts. These pages result in /page/n/ (where n is the page number) after the url of the websites homepage. The second page for example would contain posts 11-20 (or 11 to whatever the amount of posts is if there are less than 20 posts).

    I hope this helps!
    Thanks in advance.

    You have more than 20 posts, you are showing 10 posts per page, but there is no navigation appearing to take you to posts past 21 like this:

    <- [POSTS 1-10] (../page/1/)
    [POSTS 11-20] (../page/2/ NO navigation is shown)
    [POSTS 21-23] (../page/3/)

    Is this correct? After homepage you have no navigation buttons?

    And, could you share a link to your site please?

    Thread Starter Fokseh

    (@fokseh)

    The page I’m talking about it this one: link

    On that page I have more than 10 posts (which are actually not regular posts but custom-circles, created by using this guide: link.

    As you can see no navigation appears to go to the next set of posts (or custom-circles) although I already have more than 10 posts (13 to be exact).

    I would surmise after a cursory glance through the code(s) for both the Spun theme and the ‘create a custom page with circles on it’ guide that the script to create your custom circles does not return ‘true’ for is_single, is_home, is_archive, or is_search. In the functions.php page for the Spun theme, one of these conditions must return ‘true’ to display the navigation bar.

    You MIGHT be able to fix this by resetting the post data. In the index.php page in your child theme folder find the statement that inserts the nav and insert wp_reset_postdata(); just before it so that it looks like this:

    <?php if ( $custom_circles->post_count > 0 ): ?>
    
    <?php get_template_part( 'content', 'custom-circles' ); ?>
    
    <?php endif; ?>
    
    <strong><?php wp_reset_postdata(); ?></strong>
    
    <?php spun_content_nav( 'nav-below' ); ?>
    
    <?php elseif ( $custom_circles->post_count > 0 ) : ?>

    Save the index.php file and refresh your page.

    Again, this is just a guess. It is NOT tested. It MIGHT work.

    If it does not work, remove that line.

    Thread Starter Fokseh

    (@fokseh)

    Sorry for my late response, I only just now found the time to implement this.

    I unfortunately have to say that it didn’t work. The result can be found here: link

    It seems like its repeating the circles that are already there.
    Any ideas?

    Thanks in advance!

    Thread Starter Fokseh

    (@fokseh)

    Has anyone been able to fix this problem?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you summarise what the problem is again, after DMBarber’s help?

    Thread Starter Fokseh

    (@fokseh)

    Yes, of course!

    The problem is that the navigation arrows (in the code the ID of the navigation is ‘nav-below’) still don’t show up on the left or right of the screen. After DMBarber’s help the 10 circles that showed up before I changed anything seemed to have repeated themselves below their original position. The effect can be found here.

    What I’m trying to do is to be able to navigate through multiple sub-pages containing the circles that we all love in Spun. This, however, is not the homepage. Everything works fine on the homepage, but not on the page that I want to give the same functionality (link). The circles on the page are not ordinary posts but ‘custom-circles’ created by using your guide (found here).

    I hope that helps!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    But they show up if you deactivate your Child Theme?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    (By activating your parent theme)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    I think the issue is with the Custom Circles modifications, I never built that stuff to work with the nav arrows

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Navigation arrows on other page than homepage’ is closed to new replies.