Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Wordpress - Static Posts Page Problem

Featured Replies

Hey Guys,

 

I am nearly finished with my blog but there are a few bits to tinker with.

 

The problem I am asking for help on can be found here: http://collossalpixel.com/cp-blog/

 

What I am trying to do:

Have a static posts page, that will have the blog-banner image at the top (currently orange image but to be replaced later) and underneath have the rest of the page that automatically updates and shows the 10 (doesn't have to be 10) latest posts that have been made.

 

I would like the whole post to show up, rather than just a link to the post, which can be seen under the 'blog' section on the home page.

 

I am not sure whether this is possible?

 

 

Problem so far:

So far, I am able to get the image in the correct place, but the static page only has the title of the page and the date of the page, which I do not want to be there.

 

You can select the other categories which display the posts how I am wanting.

 

 

Possible solution?

To create a category called 'name' and have all the latest posts show on that page. Then tell the static cp-blog page to copy the 'name' page, hence seemingly have the latest posts on this page.

 

In my mind this sort of makes sense but it is hard to put into words.

 

Anybody have any idea what I am trying to do?

 

Many thanks if anybody is able to solve this riddle!

 

 

Example:

 

Here is an example of what I am trying to achieve. http://www.fullyillustrated.com/fi-blog/

You need to use the index.php file for this...It will generate a list of your posts. Every time you write a new post, this will update.

 

(Goto Admin Panel > Reading > And choose Posts Page, if you havn't already.)

 

But you do mention 'static' post page - I'm not sure I know what you mean by this exactly.

 

Or am I missing something??!!

  • Author

Hey Welshhuw,

 

Well I had originally done it that way but it came out with some funny results. I have changed it back on the admin > reading > posts page to cp-blog but when I take a live look at the page it seems to just copy (not entirely) the static home page.

 

All very confusing! You can see the latest update at http://collossalpixel.com/cp-blog/ - same link as before. Take a look at the home page to see the similarities.

 

The index.php code is:

 


<?php get_header(); ?>

<div id="blog-image">
   <img src="http://www.collossalpixel.com/wp-content/themes/cp-v2/images/blog-banner.jpg" border=0 width="935" height="325" alt="Collossal Pixel Blog Banner" />
   </div><!--end #blog-image-->

<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

	<div <?php post_class() ?> id="post-<?php the_ID(); ?>">

		<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>


		<?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>


		<div class="entry">
			<?php the_content(); ?>
		</div>

		<div class="postmetadata">
			<?php the_tags('Tags: ', ', ', '<br />'); ?>
			Categories: <?php the_category(', ') ?>
		</div>			

	</div>

<?php endwhile; ?>
   </div>

<?php include (TEMPLATEPATH . '/inc/nav.php' ); ?>

<?php else : ?>

	<h2>Not Found</h2>

<?php endif; ?>

<?php get_footer(); ?>

I'm a little confused too sorry :p

 

I always code a site up in xhtml and css first. Then install this theme: Starkers, which is a free, bare-bones Wordpress theme for you to move you xhtml/css website over to.

Im not sure on your method of creating a Wordpress theme? But this way has been pretty error free for me.

Even when creating custom homepages.

 

 

Within Admin > Reading > Your Blog page should be set to your cp-blog, and your static homepage should be set to whatever your custom homepage name is...

 

Hope that help at all.

 

Good luck.

  • Author

Yes, that is how I did mine, from a bare theme.

At the moment within Admin > Reading > the Blog page is be set to cp-blog.

The cp-blog page itself does not have a template attached to it like the homepage.

The home page is fine and how it is supposed to be, but the blog page is not working properly. As you can see the blog page seems to be replicating the homepage for some reason and I do not know why - this is the problem.

Hopefully that combined with actually looking at the site will help explain the problem a little better.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.