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 6578941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:50:09+00:00 2026-05-25T15:50:09+00:00

I want to do almost exactly this: http://codex.wordpress.org/Pages#A_Page_of_Posts But Im confused by the last

  • 0

I want to do almost exactly this: http://codex.wordpress.org/Pages#A_Page_of_Posts

But Im confused by the last line:

Save this to pageofposts.php and then assign PageofPosts as the
Template when creating the action Page:

How do I tell WordPress to go to index.php, (or anything else) when, for example, it receives an ‘events’ slug?

  • 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-25T15:50:10+00:00Added an answer on May 25, 2026 at 3:50 pm

    If you have followed the example in your link then you have created a file ‘pageofposts.php’ and uploaded it to your theme’s directory.

    Now when you create a new page in your wordpress admin, on the right side you will see a section for choosing the template – if you have uploaded the ‘pageofposts.php’ to the correct theme directory then it should appear as an option in the list of templates available for your new page.

    That should help with your understanding of that last line that was confusing, however your final question about slugs requires a different answer – if you want to use a specific template for specific slugs then you’ll need to look into the template hierarchy which is explained at :

    http://codex.wordpress.org/Template_Hierarchy

    That page also includes a diagram explaining how the templates are selected – so for example you can rename a template to match a category name or page title and it should be automatically selected when that category or page is selected :

    The diagram on the link above is useful but here’s another diagram to help clarify :

    http://wpcandy.com/files/2008/04/wp-diagram.jpg

    Anyway you probably don’t need to do this, I only wrote it since you asked specifically about slugs, but you can probably just follow the first part of this answer to specify that your new page uses your new template.

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

Sidebar

Related Questions

I want a layout almost exactly like the table layout but I understand I
I want to take data from a table that'll be almost exactly similiar to
django.forms is very nice, and does almost exactly what I want to do on
I think I've almost got it, but not there quite... I want to select
I think this should be releated to IIS settings but don't know exactly what
My question is almost exactly similar to this one . However , I'm not
I want to make a URL shortener that has this URL format: http://myurlshortner.com/ {id}
I really want to use org-mode. But, I want to use org-mode to understand
My question is almost exactly this question: Clone textview to append it to a
This is almost exactly a duplicate of Examining a single changeset in Mercurial ,

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.