Title: Creating a static
Last modified: August 24, 2016

---

# Creating a static

 *  [leangwen](https://wordpress.org/support/users/leangwen/)
 * (@leangwen)
 * [11 years ago](https://wordpress.org/support/topic/creating-a-static/)
 * i am trying to replace my category page with a static page so here’s what i’m
   doing:
 * ‘ <?php
    do_action ( get_header() );
 * $my_postid = 331;//This is page id or post id
    $content_post = get_post($my_postid);
   $content = $content_post->post_content; $content = apply_filters(‘the_content’,
   $content); $content = str_replace(‘]]>’, ‘]]>’, $content); echo $content;
 * do_action ( get_sidebar() );
    do_action ( get_footer() ); ‘
 * unfortunately i don’t know how to get the sidebar to be at the side.. it’s loading
   my header, my post content, and then my side bar below it, and of course my footer
   below that.. how do i get it to look like my other normal pages??

Viewing 1 replies (of 1 total)

 *  [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * (@santeven)
 * [11 years ago](https://wordpress.org/support/topic/creating-a-static/#post-6138736)
 * Might be more simple just to use wp_redirect() [https://codex.wordpress.org/Function_Reference/wp_redirect](https://codex.wordpress.org/Function_Reference/wp_redirect)

Viewing 1 replies (of 1 total)

The topic ‘Creating a static’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [Martin Robbins](https://wordpress.org/support/users/santeven/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/creating-a-static/#post-6138736)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
