Support » Themes and Templates » Toolbox Theme: How do I Exclude Categories from Single Post Pagination?

  • I’m working on a Child theme that’s working off of the Toolbox theme (I tried to look for the theme in the extend section so I could make a proper thread, but the link wasn’t there and I got linked to the main theme collection page?).

    Previously, I would have simply altered the respective next_post_link and previous_post_link on my single.php page.

    Thing is, the Toolbox theme calls for these links by this:

    <?php toolbox_content_nav( 'nav-below' ); ?>

    and so I’m not familiar enough with how the Toolbox framework is fashioned to figure out what, exactly, (and where) do I need to edit and what I need to do.

    Please help me get there?

    A little background:

    I’ve excluded the categories 29 and 41 from showing up in my main Blog (and Archives) view without any pagination problems and I need to exclude the same categories from showing up in my previous and next post links when in single post view (using the single.php template).

    Similarly, when viewing a single post from categories 29 and 41, I need to exclude the other categories from the Blog so that the pagination only shows posts within categories 29 and 41.

    Thanks in advance and I hope that I was clear enough in my explanation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    That theme has been retired, may not longer be supported by its developer or be compatible with current/future versions of WordPress. I would strongly recommend that you switch to a more recent theme asap.

    Thanks, esmi.

    I started building Child themes for my personal use off of Toolbox before it went into retirement a little over two years ago; it never occurred to me to check for its support status on an active basis and so I simply never checked until now – whoops.

    I’ll definitely be switching (got any suggestions by any chance?), but:

    In my research into new themes, I have discovered that a lot of themes use a similar structure: <?php themename_content_nav( 'nav-below' ); ?> or <?php content_nav( 'nav-below' ); ?> which outputs the next_post_link and previous_post_link:

    And even if I switched, I still would have no idea how (or where) to modify the code to do something like excluding categories from single post pagination.

    I know that it used to be possible; with this <?php content_nav( 'nav-below' ); ?> business, is it simply not possible anymore or is there a way to do it (without hacking core) and I just don’t know it yet? Is it (the php snippet above) deprecated and there is now a different way?

    I tried to find documentation on it and came up with nothing useful over the last day that I have been trying to figure this out.

    Feeling really stupid,

    Cheers and thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Toolbox Theme: How do I Exclude Categories from Single Post Pagination?’ is closed to new replies.