• Hi

    To make the posts appear as pages I have used the following code, from another support forum response, and entered it into CSS Manager (plugin). It’s not working, I still have the post “activity” showing ie recent posts etc.
    I would like my front page to be circles to enter to pages of information. Ideally I would like the 15 that is the Spun theme
    Alternatively is there a way to turn off the updates of posts (I doubt it as this is the purpose of them)

    Any and all help appreciated

    <?php /* Display Pages */ ?>

    <?php query_posts(‘post_type=page’); ?>

    <?php if ( have_posts() ) : ?>

    <?php /* Start the Loop */ ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php
    /
    get_template_part( ‘content’, ‘home’ );
    ?>

    <?php endwhile; ?>
    <?php /* Start the Loop */ ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    The code you have above is PHP not CSS, so putting it in CSS manager wont work. PHP needs to go in files with .php at the end, you need FTP access to do that. It that something you can do?
    Alternatively can you not rewrite your post as a page? Also you can link to any of your posts if you make them a menu item, making them behave a bit like a page.

    Let me know if that helps. If not, tell me some more about why you need to make your posts appear as pages.

    Good luck.

    Karen

    Thread Starter Mag_ick

    (@mag_ick)

    Thanks Kacomp
    I thought this post had closed. I will try the PHP code on FTP upload.

    My posts and pages have the same content, however hte pages dont appear as circles. This only happens if they are posts. I will see if I can make them a menu item.

    Hey. You need to edit your themes index.php file in order to achieve what you want, and you need to do this by creating a child theme. Making changes via a child theme will ensure you don’t lose any important changes when updating the theme in the future.

    Instructions on how to do create a child theme are here: http://codex.wordpress.org/Child_Themes. (Don’t worry, it’s not as complicated as it may at first seem!)

    Once you created your child theme, you then need to create an index.php file and upload it. Next you should copy and paste the code from the parent theme’s index.php file into your child theme’s index.php file.

    You’ll see that much of the code you included in your original post is already in the index.php file, the only line you need to add is:

    <?php query_posts('post_type=page'); ?>

    As in your original post, this should be added just above <?php if ( have_posts() ) : ?>.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘posts as pages’ is closed to new replies.