Title: Multiple single.php based on some custom parameter
Last modified: August 20, 2016

---

# Multiple single.php based on some custom parameter

 *  [thoughtchirps](https://wordpress.org/support/users/thoughtchirps/)
 * (@thoughtchirps)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-singlephp-based-on-some-custom-parameter/)
 * Do u know how can i open different single.php in wordpress based on some parameter
   passed.
 * For some reason when i pass the parameter with the permlink – get_permalink($
   post->ID).’?name=rahul’ the parameter doesn’t reaches the page and it is taken
   off from the url as well.
 * Any clues?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-singlephp-based-on-some-custom-parameter/#post-2771079)
 * Try changing the name parameter. if I do this I get a 404:
 *     ```
       <a href="<?php echo get_permalink($post->ID).'?name=rahul' ?>"><?php echo $post->post_title;  ?></a>
       ```
   
 * but if i do this:
 *     ```
       <a href="<?php echo get_permalink($post->ID).'?the_name=rahul' ?>"><?php echo $post->post_title;  ?></a>
       ```
   
 *  it works.
    Maybe “name” is a reserved (query) parameter.
 *  Thread Starter [thoughtchirps](https://wordpress.org/support/users/thoughtchirps/)
 * (@thoughtchirps)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-singlephp-based-on-some-custom-parameter/#post-2771316)
 * Thanks. I will try this and let you know this asap.
 *  Thread Starter [thoughtchirps](https://wordpress.org/support/users/thoughtchirps/)
 * (@thoughtchirps)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-singlephp-based-on-some-custom-parameter/#post-2771375)
 * Works like a charm. Thanks for the tip.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple single.php based on some custom parameter’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [thoughtchirps](https://wordpress.org/support/users/thoughtchirps/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/multiple-singlephp-based-on-some-custom-parameter/#post-2771375)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
