Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25836

    Hi,

    I am so close to finishing a project on the page (http://ihcstudio.com/) but am stuck with one issue and that is how to change the accordion slider to link to my pages rather than posts.

    I built the entire site using pages, as the content is going to be very static, and am happy with the rest of the site. Just the Home page is now an issue as I cannot find a way to point the sider, and the actual blocks underneath to the pages. I really want to use the pages and not have to duplicate everything to posts.

    Please, has anyone got a solution? Or maybe tell me how I can recreate the accordion in a static page (which I see is also a way to change the home page)

    Thanks

    Angelina

    #128360

    In index.php replace

    $additional_loop = new WP_Query("cat=".$k_option['mainpage']['feature_cats_final']."&posts_per_page=".$k_option['mainpage']['feature_count']);

    with

    $additional_loop =  new WP_Query(array('post_type' => array( 'page' ), 'posts_per_page' => 10, 'post__in' => array(37,50,54,30,32)));

    and instead of 37,50,54,30,32 insert your page ids (separate them with commas).

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Substitute Posts for Pages on Home Page’ is closed to new replies.