Home>Support>Posts – Restrict next and privious

Posts – Restrict next and privious

By Simo, 7 years ago. Last reply by Simo, 7 years ago.

Hi I am using the great Vantage theme.

I have inserted the Post Loop into a page using pagebuilder.

The posts displayed are restricted to certain categories. :)
When I select a post the buttons that allow access to next and previous posts allow those outside the Post Loop restrictions to be displayed e.g. template posts for live posts.

Is it possible to restrict the posts viewed by these buttons only to the categories / posts displayed in the Post Loop?

Any help is welcome and my thanks in advance.

Simos

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Simo.

    Unfortunately, this isn’t possible without a fair amount of custom coding. This is beyond the scope of what we can help you with on the forums, but you could hire a developer to implement this for you.

    We highly recommend using Codeable.

  2. 7 years, 7 months ago Simo

    Hi Alex,

    Many thanks for the quick reply.

    I will have to think about the way I navigate. I suppose I can just not show the buttons??

    Cheers

    Simo

  3. 7 years, 7 months ago Alex S
    Hi, I Work Here

    Hi Simo,

    That’s definitely an option.

    You can do this with some custom CSS. If you navigate to AppearanceCustom CSS, you’ll get our custom CSS editor. Just add the following code.

    .single-post .single-nav-wrapper {
        display: none;
    }
    

    How does that look?

    You might also need to install the SiteOrigin CSS Editor.

  4. 7 years, 7 months ago Simo

    Hi Alex,

    I have the Siteorigin CSS editor installed :)

    I went into customise theme settings / navigation and unticked the post navigation checkbox. I assume your CSS does the same?

    this seemed to work, however I then just a button into the page so the person could go back to the main “blog” listing page.

    Obviously not the desired method but unless I put my own next and previous buttons in, then amend URL link when blog/page created the above seems the easiest way.

    as always my thanks for your support.

    Simos

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More