Peter Boosten
Forum Replies Created
-
Forum: Themes and Templates
In reply to: If statement – Comparing post date to today’s datestrtotime results in a timestamp (number of seconds since January 1, 1970, while post_date isn’t. You’re comparing apples to oranges.
You should convert post_date also with strtotime.
Peter
Forum: Themes and Templates
In reply to: What is the purpose of comments-popup.php file?The popup comments template. If not present, comments-popup.php from the “default” Theme is used.
(source: wordpress.org)
It seems to be important.
Peter
Forum: Themes and Templates
In reply to: Autosave warning is on all the time, need help…This information is held in the wp_postmeta table, I guess in the _edit_lock meta key. Could you check if the timestamp is of a future date? I had this problem when migrating my articles from Joomla to WordPress.
The timestamp can be easily translated in BSD with
date -r. Don’t know for Linux.If you want to disable autosave all together: look here
Peter
Forum: Themes and Templates
In reply to: Get custom field from a post, display it in the themeyes, you can do that, but you need to be in the loop.
The function to pull custom fields is basically this:
get_post_meta($post->ID, 'customfieldname', true);The last field states if get_post_meta should pull exactly one (true) or more (false) custom fields with the same name. In the latter case an array will be filled.
Have a look at this screencast.
Peter
Forum: Themes and Templates
In reply to: help with adjusting fonts in cssFrom your css:
.sidebar-box ul li { color:#000000; float:left; font-size:11px; line-height:16px; margin:0 0 8px; padding:0; width:183px; }Change
font-sizeto something more appropriate (13px looks kinda decent).Peter
Forum: Themes and Templates
In reply to: Images is not showing on my front pageWhat images are you referring to? I can see each and every image, apparently attached to a post.
Peter
Forum: Themes and Templates
In reply to: Footer MenuHave a look at alistapart for some great tutorials.
Peter
Forum: Themes and Templates
In reply to: Problem with css, float or fixed? layout moves with window sizeIn your case, put #side1, content and #side2 in a separate wrapper, with a width (say: 900px).
<div id="contentwrapper"> <div id="side1"></div> <div id="content"></div> <div id="side2"></div> </div> <!-- contentwrapper -->Peter
Forum: Themes and Templates
In reply to: Problem with css, float or fixed? layout moves with window sizeForum: Themes and Templates
In reply to: Problem with css, float or fixed? layout moves with window sizeClear the floats…
normally you got something like this:
----header---- -left-sidebar- ----footer----in divs:
<div id="header"></div> <div id="page"> <div id="left"></div> <div id="sidebar"></div> </div> <!-- end page --> <div id="footer"></div>and the css:
#header { width: 900px; } #page { width: 900px; } #left { width: 550px; float: left; } #sidebar { width: 300px; float: left; } #footer { clear: both; width: 900px; }Of course, this is a simplified example. An URL to your site would help though.
Peter
Forum: Themes and Templates
In reply to: Remove Bottom Space in PostsI’m not quite sure I understand you, but I can see a bottom-margin of 5em on a class called clear, maybe that’s what you mean.
.clear { clear:both; height:1px; margin:0 0 5em; width:500px; }just remove the
5empart.Peter
Forum: Themes and Templates
In reply to: How to tile an image in the SidebarYour css doesn’t validate.
For instance, this is not a valid property in #sidebar:
body {background-image: url(images/sidebartile.gif);change this to:
background-image: url(images/sidebartile.gif);I suspect more is wrong with your css, but this is why your background image doesn’t show.
You should clear your floats in footer, btw (
clear: both;)Peter
Forum: Themes and Templates
In reply to: My posts overlap. Can somebody please assist?I think we did this one already:
change class post to this:
.post { margin-bottom:30px; min-height:250px; }You can fiddle around with the 250px if you want, but I’ll think these look decent.
Peter
Forum: Themes and Templates
In reply to: How to make post appears in a new window or tab?Forum: Themes and Templates
In reply to: Page size (width and length)My problem is with length is that if a page has little content the page (colored bg) doesn’t go the bottem but stops at where the content stops leaving a emty other colored space below.
The only way you can solve that is via javascript or a technique called faux columns (find with Google).
Peter