• Resolved mikkai

    (@mikkai)


    Hi there,

    Super new to the wordpress world. I’m trying to figure out how I can replace my “posts” that show up on the main homepage of my site with “pages”? My theme is MYgRID2 and I have no use for posts as I’m not using is as a blog. Is there a way to replace the squares on the home page that are posts and set them to redirect to my pages instead? Not sure if its a link or what needs to be changed.

    Thanks for any insight you can give me, and again I just started using wordpress so please all the little details are appreciated!

    Thanks!! ??

Viewing 1 replies (of 1 total)
  • Thread Starter mikkai

    (@mikkai)

    If anyone is looking for a answer for this you plug the following in your ‘index.php’ file. It replaces all the thumbnails on your homepage that are posts into pages! AND excludes pages you do not want on your homepage; like ‘about me’, or ‘contact us’. You just have to specify in the code what pages you want excluded.

    <?php // Retrieve only Pages and exclude About, links, contact, etc.
    $args = array( // set up arguments
    ‘post_type’ => ‘page’, // Only Pages
    ‘post__not_in’ => array(2,9,5,12) // Do NOT show postID 2,9,5,or 12
    );
    query_posts($args); // execute the arguments
    ?>

    Info found on this page:

Viewing 1 replies (of 1 total)
  • The topic ‘MYgRID2 – replacing Post as Pages on home page’ is closed to new replies.