chainzor
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Making a static frontpage with a custom query for posts.And i finally resolved my own problem. If anyone misses the same thing i do, here’s what i lacked:
<?php $featured->query('cat=1'); ?>Apparently, WP_Query doesn’t fetch anything untill you specify more. I was unable to figure this from the codex, but an external resources saved my ass.
Happy hacking!
Forum: Themes and Templates
In reply to: Making a static frontpage with a custom query for posts.Hm, there seems to be one problem with my scripting.
If i instanciate a fresh query:
<?php $featured = new WP_Query(); if ($featured->have_posts()) : while ($featured->have_posts()) : $featured->the_post(); ?> <?php the_title(); print("<br />"); the_content(); ?> <?php endwhile; else: ?> <p> Nothin 'ere </p> <?php endif; ?>Nothing shows.
So, maybe there’s a parameter for the WP_Query() that I’m unaware of? Remember, the script is on a static frontpage, the loop is is on a page called ‘Blog’.
Forum: Themes and Templates
In reply to: The Loop returns bollocks on a custom template site.Okay, so how do we work this out, do I come to where in the world you are to kneel before you and praise you, or what is the common practise?
Really, thanks for the assistance, the neat response-time ect ect.
I’ll consider me problems terminated. (I wonder, does that make you a ..terminator? :O)
Forum: Themes and Templates
In reply to: The Loop returns bollocks on a custom template site.Oh, sneaky (yet in this case, troublesome). Maybe I’m taking the wrong approach then, my goal is to have a page for regular blogs, comments, ect. and then pull out the newest/featured to the main-page. Would I have an easier time setting up my blog-page another way than through a custom template?
Forum: Themes and Templates
In reply to: The Loop returns bollocks on a custom template site.Nono, this isn’t part of the featured-function. That was actually rather irrelevant. I want it to pull in the regular posts! I’m now 100% certain I phail understanding the system here – I’m thinking ‘therez liek a pool of posts’ and i’m convinced running the loop on a page wille fetch stuff from that pool. I’m obviously wrong?