• leangwen

    (@leangwen)


    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)
Viewing 1 replies (of 1 total)

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