aymie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Getting my header image to linkI actually do this:
< a href="index.html" title="Index"><img src="mytitleimage.jpg" border="0" alt="Index"> </a >It links your image to the file you want. You can change the link text to anything you want.
If you have trouble linking the image, you may want to make it a non-body background and put it as a background image in a seperate div. Something like this:
.titleimage { background: #4F402A url(img/bg.jpg) no-repeat top left; font-family: Verdana, Helvetica, sans-serif; font-size: 10px; line-height: 14px; color: #333; margin: 0; padding: 0; text-align: center; /* IE 5.5 hack */ }Then do this:
< a href="index.html" title="Index"><div class="titleimage"></div> </a >Hope that helps. (NOTE: I put a space between the < a and a > to get it to read as a code and not and not html coding.
Forum: Fixing WordPress
In reply to: The more link….btw don’t know if the wordpress site owners picked this up, but the first $output code is written incorrectly at the customizing_the_Read_More link, it’s missing a couple of the ‘ marks, it’s copied straight from the site–I picked it up when trying to get my more link to show.
Anyways I managed to get “More…” link showing instead of the $more_link_text that was showing, but it’s still not giving me the FULL text when More… is clicked.I’ve tried playing around with it, but no avail, any ideas?
Forum: Fixing WordPress
In reply to: Latest article WITHOUT repeatOk, I got it working–so this topic is RESOLVED because I used a foreach post code and removed the while code. So it seemed to have worked…for now.
I did this (in case anyone else has the same problem)
<div id="post-latest" id="post-<?php the_ID(); ?>">
<?php
$posts = get_posts('numberposts=1');
foreach($posts as $post) :
setup_postdata($post);
?>
<!-- do stuff here -->
<?php endforeach; ?>
<!-- more link etc. here -->
<?php
$posts = get_posts('numberposts=5&offset=1');
foreach($posts as $post) :
setup_postdata($post);
?>
<div class="post" id="post-<?php the_ID(); ?>">
<!-- do stuff here -->
<?php endforeach; ?>
Forum: Fixing WordPress
In reply to: Latest article WITHOUT repeatHmn, I read through them and now I’m thinking: “huh?”
I understand the multiple loop topic, but it basically focuses on the latest article from a category e.g. special_category. But what if I don’t want to specify a category? I don’t know what I’m going to categorise an article under until I’m finished writing it up.
Can it be done by specifying the_date or the_time as the latest article and not the category? Like this:(Rough example, probably way off)
<?php query_posts(‘the_date=the_time(‘j F Y’)&showposts=1′); ?>
Well, something like that…I guess it’s just confusing me because it specific to one category and not the date or time…