jhz
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
This error was driving me crazy too. It’s a problem with WP Super Cache:
http://wordpress.org/support/topic/235369?replies=9
I just disabled the plugin while I wait for the fix…HTH
Forum: Fixing WordPress
In reply to: Check If Posts Exists?I love get_a_post ‘casue you can use it outside the loop. I’m trying to use it in the same way, to generate a specific post with special div styling. Was there a solution to using get_a_post (as opposed to get_post)? TIA!
Forum: Fixing WordPress
In reply to: Content and posts on the same pageHi! I’m totally lame at PHP but stumbled on this–hope it helps.
<div id="main"> <!-- This section shows the page content, editable through the admin interface --> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1><?php the_title(); ?> Page Content</h1> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php endwhile; endif; ?> <!-- This section shows category posts, which can be limited as to number, just edit the category number and showposts number --> <?php $wp_query = $temp_query; ?> <?php query_posts('cat=17&showposts=2'); ?> <h1 style="border-bottom: none;">Your category posts</h1> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <p><?php the_content(); ?></p> <?php endwhile; ?> </div>
Viewing 3 replies - 1 through 3 (of 3 total)