splosion
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: fetching the excerpts for next/previous posts…and here is the code I’m using to show the thumbnails in single.php as links.
It tests to see if there next or previous posts, and if so, adds in the thumbnails linked via permalinks to the next or previous post.
<?php $nextPost = get_next_post(true); //Gets next and previous posts and their URIs $nextURI = get_permalink($nextPost->ID); $prevPost = get_previous_post(true); $prevURI = get_permalink($prevPost->ID); ?> <?php if ($nextPost || $prevPost): //Tests if there are any previous OR next posts. If yes, inserts a nav spacer bar along with next/prev thumbs ?> <?php if($nextPost) { echo '<a href="' . $nextURI . '">'; $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(122,122) ); echo $nextthumbnail; echo '</a>'; }; ?> <?php if($prevPost) { echo '<a href="' . $prevURI . '">'; $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(122,122) ); echo $prevthumbnail; echo '</a>'; }; ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: fetching the excerpts for next/previous postsThank you, I was able to adapt the information to my need. Below is the code if anyone is interested. It will grab the assigned thumbnail of the post and make the image itself the link to said post.
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
Forum: Requests and Feedback
In reply to: Body CSS Bug?Removing reset reveals some bizarre things. Body height and width definitions aren’t being applied, but font-family, line-height, and font-size, background, and color are (in other words, everything but the height and width).
CSS and HTML validates. At this point, I’m pretty confused.
Forum: Requests and Feedback
In reply to: Body CSS Bug?under a lot of construction, but here it is: https://www.smithnewnamdesign.com/
Like I say, I’m pretty new to WP (like 3 days ago), so thanks for looking.
Forum: Requests and Feedback
In reply to: Body CSS Bug?height problem solved – the footer wasn’t loading due to some gremlin.
Still having problems with body tag though.
Forum: Requests and Feedback
In reply to: Body CSS Bug?Thanks, but strangely no go. For some reason WP seems to be ignoring body in my style.css.
As a workaround, I put in an invisible footer to fix the background not spanning to the bottom all the time.:
#dummyfooter { position:absolute; bottom:0; }
Any other ideas?
Forum: Requests and Feedback
In reply to: Body CSS Bug?…another possible bug seems to be height:100% not working 100% of the time on page load.
I have in my body tag: height:100%; as well as a repeating background. Occasionally the background only repeats to the bottom of the content (and not the entire browser window).