mookboy
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Multiple Loop WeirdnessWoah, that’s well beyond my limited understanding I’m afraid. Would I be right in thinking I enclose the code I’m using:
<?php query_posts('category_name=News&showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<?php c2c_get_recent_posts(15, "<small>%post_date%:</small> %post_URL%", "2"); ?>
<?php endwhile; ?>With a more exact version of the code you just suggested?
I don’t suppose you know where I can find exact code to do this? My ability with php and wp is meagre to say the least…
Forum: Fixing WordPress
In reply to: Multiple Loop Weirdness*slaps forehead*
Sorry…. right in that case I NOW have working content (Hurrah!), however I’m still stuck with a wonky sidebar. Ive tried adding the rewind code
<?php rewind_posts(); ?>
from the codex (is this what you meant skeltoac?) but it has no effect (or I’m putting it in the wrong place?).Maybe I need to give you more info (sorry). When it renders the sidebar on the index.php, it shows up with the archive, shortened sidebar, and has “You are currently browsing the archives for the Reviews category” below the search field. I’m baffled.
Forum: Fixing WordPress
In reply to: Post Content And Template Tags Determined By Category?[NOTE: I’ve opted for custom fields to hold the URL for the CD cover, instead of the excerpt field.]
I’ve tried the conditional tags, but I can’t seem to get them to work. I’ve added the following:
<?php if (is_category('3'))
{
echo "image file";
}
else
{
echo "";
}
?>So that if category 3 is being displayed, it shows the image and if its anything else, it replaces that with a blank space. However it only ever puts in the space (I changed it to a word to check) and it appears to ignore the category number.
Any idea whats going wrong here?
Lastly, I need for an image file to appear (not the words!) when true, however if I add:
"<img src="https://www.vendettazine.co.uk/w/cdimages/<?php echo $post->post_customfieldone; ?>" class="alignleft">"
It comes up with a parse error. I really am stumped.
Apologies for the newbie-ness of this…