[resolved] Pages Instead of Posts (9 posts)

  1. Sehyun
    Posted 2 years ago #

    Is there a way to use the featured image of pages instead of posts on the Spun WordPress theme? Any help will be appreciated. Thank you.

  2. Hey. Yes, @rxbxx came up with a solution for this in the following thread: http://wordpress.org/support/topic/replace-posts-with-pages-on-the-frontpage.

    First you will need to create a child theme, so as to not lose any important changes when updating the theme in the future. Instructions on how to do this are here: http://codex.wordpress.org/Child_Themes.

    In your child theme, create an index.php file then copy and paste the code from the parent theme's index.php file exactly.

    Just before the following snippet in your child theme's index.php file:

    <?php if ( have_posts() ) : ?>
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>...

    Add the following line:

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

    Let me know if this works for you. :)

  3. Sehyun
    Posted 2 years ago #

    Thanks. It works great! Is there a way to redirect posts to pages instead? It's kind of a problem because all the pages show up instead of the parent pages.

  4. Sehyun
    Posted 2 years ago #

    I figured everything out. Thanks @Siobhan!

  5. Hey. Glad you figured it out. :) Do you mind sharing how you solved this?(Your solution may help people browsing these threads in the future.)

  6. oliviap
    Posted 2 years ago #

    Hi, I now have the issue that Sehyun mentioned - all the pages are showing up, rather than the main menu pages I want to show.

    My website is oliviapoole.co.uk

    Does anyone know how to only ask it to show menu header pages in the circles rather than child pages too? Sehyun please could you explain how you figured it out?

    Do you also know how to change the background colour of the circles so that it is darker?

    Thank you very much

  7. oliviap
    Posted 2 years ago #

    Forgot to mention - another issue this has created is that the pages in the circles are in the opposite order to how i would like them to be - i would like the first to be About Me, and the last to be Contact

    Anyone know how to edit the order? http://www.oliviapoole.co.uk

    Thanks so much

  8. esmi
    Forum Moderator
    Posted 2 years ago #

    @oliviap: As per the Forum Welcome, please post your own topic.

  9. oliviap
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic