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

  • SEARCH
  • Home
  • 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 6976513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:30:25+00:00 2026-05-27T17:30:25+00:00

I find difficulties on putting the posts on different pages. Lets suppose I have

  • 0

I find difficulties on putting the posts on different pages.

Lets suppose I have 5 pages and 10 posts. And I need to put the 1 post to each page i.e ( For e.g. 1st post to 1st page, 2nd post to 2nd page), and also i had a blog section where i have to put only the remaining 5 posts. But the blog section automatically puts all the 10 posts in the blog section.

How to solve this. Any idea would be greatful.

  • 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-27T17:30:26+00:00Added an answer on May 27, 2026 at 5:30 pm

    you can use this :

    if ( is_page() ) {
        query_posts( 'cat=3&year=2004' );
    }
    

    you can use this parameters for checking wich pages you are in :

    is_page();
    // When any single Page is being displayed.
    
    is_page(42);
    // When Page 42 (ID) is being displayed.
    
    is_page('Contact');
    // When the Page with a post_title of "Contact" is being displayed.
    
    is_page('about-me');
    // When the Page with a post_name (slug) of "about-me" is being displayed.
    
    is_page(array(42,'about-me','Contact'));
    // Returns true when the Pages displayed is either post ID 42, or post_name "about-me", or post_title "Contact".  Note: the array ability was added at Version 2.5.
    

    also look at this codes (get posts by slugs) :

    <?php
    $the_slug = 'my_slag';
    $args=array(
      'name' => $the_slug,
      'post_type' => 'post',
      'post_status' => 'publish',
      'showposts' => 1,
      'caller_get_posts'=> 1
    );
    $my_posts = get_posts($args);
    if( $my_posts ) {
    echo 'ID on the first post found '.$my_posts[0]->ID;
    }
    ?> 
    

    Good Luck

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of numbers which I need to put on a rectangular
I am currently putting a program into a .jar, and have difficulties telling it
find whether there is a loop in a linked list. Do you have other
I'm having difficulties to find a way (if there is any) to get the
I'm doing a carousel for the 1st time and I'm having difficulties to detect
I have the following regex in a C# program, and have difficulties understanding it:
I am trying to write a sql query but i find some difficulties.What i
I have some difficulties implementing the repository and service pattern in my RavenDB project.
I have googled some time now trying to find a good sample application that
i'm having difficulties implementing custom widget rendering in a QListView . I currently have

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.