Wordpress loop malfunctioning?

Discuss the many weaknesses of browser security and ways to mitigate the threat

Wordpress loop malfunctioning?

Post by n0l1m17z on Tue May 25, 2010 3:04 pm
([msg=39059]see Wordpress loop malfunctioning?[/msg])

Alright, i'm in the process of making a wordpress site from a template a hand-coded. I've made a home-page with a custom query to achieve a 'featured' on the mainpage, however, when i make a page called 'blog' from a custom template (called blog.php) 'The Loop' starts acting drunk. The first thing i notice is that after firing of the usual loop while:
Code: Select all
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

and then i want to display the title as usually, however, this is where it starts getting funny. I feed wp something like:
Code: Select all
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>

But when i load the page, instead of showing the title of my posts it only display one title, and this title is 'blog' (the name of the page).

It seems like i'm missing some basic dynamic in the wp workflow, it doesn't gimmeh any requested content or nothing neither, however, my category, author and tags queries turn up correct for my first blog. My second blog never shows up.

I'm so lost, i'd be better off with a gun than a compass. :roll:
New User
New User
Posts: 24
Joined: Mon Sep 14, 2009 3:33 am
Blog: View Blog (0)

Return to Web

Who is online

Users browsing this forum: No registered users and 0 guests