Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:10:23+00:00 2026-05-27T01:10:23+00:00

I have set up a site using WordPress as my CMS. I am using

  • 0

I have set up a site using WordPress as my CMS. I am using the site as a portfolio to show off my front-end web dev skills and have another area of the site for a blog. I got around the issue of having 2 blogs on the site by giving posts a category of either Projects or Blog.

The front page of my site contains thumbnails and links to Recent Projects. When you click through you are taken to a Project Detail page which uses Single.php to display a single post. The TwentyTen theme (which I have edited) comes with pagination so that when you are on the Project Detail page you can also click through to the next or previous post. However there does not seem to be any restriction on the category so you can also click through to Blog posts. I want the user to only be able to click through to other Projects.

I have googled around this issue and seem to find suggestions to use custom queries but none of the solutions suggested seem to work.

I only want to display one post at a time on Single.php and have pagination which lets me link to the next or previous Project post.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:10:23+00:00Added an answer on May 27, 2026 at 1:10 am

    Checkout these links:
    http://codex.wordpress.org/Function_Reference/previous_post_link
    http://codex.wordpress.org/Function_Reference/next_post_link

    This is an example of how you can use the function to restrict to posts in current cat only:

    <?php previous_post_link('%link', 'Next: %title &raquo;' , in_same_cat, 'excluded_categories '); ?>
    <?php next_post_link('%link', '&laquo; Previous: %title', in_same_cat, 'excluded_categories '); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a site that is set up using a masterpage and a
I have a WordPress site (2.6.2) in which I have set the Home page
I have an admin site set up as a virtual applcation inside of another
I have a site set up using CakePHP and MySQL and I want to
I have set up a site that is correctly using basic CRUD functionality succesfully.
I've set up a wordpress site using the information gleaned from http://codex.wordpress.org/Using_Subversion and other
I have a site using the asp.net membership schema. I'd like to set up
We have trac site set up to listen on /tracproj/, this swiftly passes control
We have set a fixed limit on the filesize of uploads on our site
Context We have a SharePoint site set up on a Windows Server 2008 VM

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.