patrikwe
Forum Replies Created
-
Probably. But I cant find how to do it.
I dont want the month and day to be today. But from today and into the future. And just get me the latest post in line. And thats a post not yet published so I think it is because of that I can’t get it to work the way I want it.
I don’t think you can do it with query_posts()…?
Just found the wpautop function. Solved it all!
Thanks for the help!…this became my final solution:
<?php $q = "SELECT * FROM wp_posts AS wp_p, wp_term_relationships AS wp_term WHERE wp_p.post_parent = 0 AND wp_term.term_taxonomy_id = 6 AND wp_p.id = wp_term.object_id AND wp_p.post_date >= '".date('Y-m-d')."' ORDER BY wp_p.post_date ASC LIMIT 1"; $r = mysql_query($q); while($post = mysql_fetch_array($r)){ echo wpautop($post['post_content']); } ?>Ahh. Now I know what the problem is. I cant get the unpublished posts. Damit…hm…
I did. But they only have examples of when the date should be exakt. And not later. (=)…
But I don’t want the year, month and day to be today. I won’t it to be today or later.
Bigger or the same as todays date. (>=)…
But that syntax (>=) is’nt valid maby? I’m gona dig further into this tonight.
Forum: Fixing WordPress
In reply to: Extra information on a pageFound this one:
wpautop function on the setting page.Works like a charm. But thank you anyhow!
Forum: Plugins
In reply to: [Plugin: Custom Field Template]Works like a charm! Thank you!…
Forum: Your WordPress
In reply to: Another ecommerce siteVery nice ecommerce site!
Are you using a ecommerce module for wordpress?
Good work!
Forum: Your WordPress
In reply to: New Iphone themeI think you should make the “home button” at the bottom of the iphone clickable! 🙂
Forum: Fixing WordPress
In reply to: Extra information on a pageHave you ever had the problem of getting the outout from the custom field in pure html? All my p-tags are striped.
Regards, Patrik
Forum: Fixing WordPress
In reply to: Extra information on a pageThat sounds perfect! I am already using and outputing custom fields in my page so the knowledge is there 🙂
Thank you for your tip!
Forum: Fixing WordPress
In reply to: Diffrent newsholdersWonderfull! The solved all my problems! Thank you very much!
Forum: Plugins
In reply to: [Plugin: kPicasa Gallery] Add titlesIt’s done. Just write to me if you are interested in the solution!
Forum: Themes and Templates
In reply to: Alter the title in header.phpI found that it is my plugin “All in one seo” that is overwrite the titles I am writing in header.php.