kokopellisk
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display categories as image blocksThank you very much for this.
I tried the code you mentioned and it output the same as the previous code.
However, I think I am doing it incorrectly, I am putting the above code inside:
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php endwhile; ?>
Is this the problem?
I removed the if have posts code but then it only showed one category.
Sorry about this ??
Forum: Fixing WordPress
In reply to: Display categories as image blocksSorry one last question… is there a way to only output each categories once: displaying the featured image from the most recent post?
Currently is it listing each post with a link to it’s category.
Forum: Fixing WordPress
In reply to: Display categories as image blocksEpic. If I knew you, I would kiss you.
Thanks so much jkovis, really appreciate your help ??
Forum: Fixing WordPress
In reply to: Bizarre Permalink Linking – Can you help?Sorry, it’s hard to explain.
The website has a blog, and a news section.
I have split these up by creating a blog category and a news category and pulling posts to each category into their relevant section using query_posts
For example, this is how I pull in the content from the news category:
`<?php require(‘blog/wp-blog-header.php’);
query_posts(‘cat=4&showposts=4’);
while (have_posts()) : the_post(); ?>
<h2 class=”blog_title”><?php the_title(); ?></h2>
<div class=”news_content”><?php the_content(‘…’); ?></div>
<p class=”news_date”> Article Posted On <?php the_time(‘F jS, Y’) ?></p>
<?php endwhile;
?>Forum: Fixing WordPress
In reply to: Bizarre Permalink Linking – Can you help?Sorry, this forum always cuts off half of my post … I hope that explains it OK.
I am just using one WP Blog for news and blog section. Contemplating just making the News section another blog altogether.
Forum: Fixing WordPress
In reply to: Bizarre Permalink Linking – Can you help?Hi moshu, sorry, will try to explain it better.
I have split up the wp database into two, a blog and a news section to display diff kinds of posts.
I am calling in posts to the blog by specific category, and posts to news the same way using the following php:
<?php query_posts(‘cat=1,3&showposts=2’);Forum: Fixing WordPress
In reply to: Add most recent post to website home page?PS, it cut off half my post … above uses the_exceprt to show a snippet, if you want the whold post use <?php the_content(); ?> instead.
Forum: Fixing WordPress
In reply to: Add most recent post to website home page?Sure .. enter this code on your homepage:
<?php
require(‘**manually enter path to**/wp-blog-header.php’);
query_posts(‘showposts=1’);
while (have_posts()) : the_post(); ?>
<small><?php the_time(‘F jS, Y’) ?></small>
” rel=”bookmark” title=”Permanent Link to
<?php the_title(); ?>”><?php the_title(); ?>
<?php the_excerpt(‘…’); ?>
<?php endwhile;
?>