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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:19:11+00:00 2026-06-05T20:19:11+00:00

I am little more than beginner PHP programmer and just recently started to use

  • 0

I am little more than beginner PHP programmer and just recently started to use wordpress. Right now I have big theoretical problem:

How to display in wordpress list of Posts (yes, default posts, not custom post type) with different template (does not have to be completely different new template) defined by current URL?

I am using WordPress 3.3.2 and trying to customise wonderfull graphene theme. Runing on Linux/apache with mod_rewrite

Example:
I have posts in my page, which are displaying in front-page, and I have also created a menu with post categories. I am using permalinks.
http://www.mypage.com <- this shows list of all posts
http://www.mypage.com/category/dslr/ <- this shows list of all posts in selected category
http://www.mypage.com/2012/06/12/mozem-auto-komentovat/ <- this one shows single post
That is completely OK, easy to understand, no problem.
Example here: http://portal.vip.sk/vyvoj/astro/en where “astro” is root folder for this test instalation.

What I want to do:
Create a button in main menu, which will point to:
http://www.mypage.com/different-list
And on that link I will see all queried posts from DB, but the design and query will be different. Please note that different-list is not defined anywhere, nowhere even in the taxonomy, so when i try to use that link i get 404 error.
I also want to use different custom fields from DB in this special listing.

The reason for this construction is as follows:
I want to let users publish their posts, categorise them, fill in metadata for these posts etc. BUT I also want to show these user posts in different manner under different URL. In this list, the posts will be grouped by months (or other time interval), by categories and will use one meta (boolean true, false). And of course the layout of the page will be completely different.

Thank you for any advice

  • 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-06-05T20:19:12+00:00Added an answer on June 5, 2026 at 8:19 pm

    To create a page template, create a new blank php file and populate it as follows:

    <?php
    /**
    * Template Name: The name of you page template
    */
    ?>
    <?php get_header(); ?>
    
    Your content, queries, and stuff.
    
    <?php get_footer(); ?>
    

    Then add a new page, select as template “The name of you page template” and voila.

    For custom fields I suggest you to use the “More Fields” wordpress plugin found here: http://wordpress.org/extend/plugins/more-fields/

    Good luck! 🙂

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

Sidebar

Related Questions

I am a beginner (a little more than that) programmer of C. I am
I have a minimal program that does little more than let me set two
Two questions here, second is a little more complicated than first. 1 - I
OK so for background I've only been using Java for a little more than
What is the purpose of a command that does nothing, being little more than
I am a beginner in F#, but have programmed a little in C #
Prefacing this with the text 'just another beginner'. when you have the result of
In C# (and Java) a string is little more than a char array with
I'm looking to have certain data stored for more than the lifetime of the
From what I understand, the XNA framework is little more than a wrapper around

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.