WordPress.org

Ready to get started?Download WordPress

Forums

Spun
posts as pages (4 posts)

  1. Mag_ick
    Member
    Posted 7 months ago #

    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 */ ?>

  2. Kacomp
    Member
    Posted 7 months ago #

    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

  3. Mag_ick
    Member
    Posted 7 months ago #

    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.

  4. 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() ) : ?>.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.