jezthomp
Forum Replies Created
-
Forum: Plugins
In reply to: Remove <p> tag from excerptThanks Richard, thats awesome.
Forum: Themes and Templates
In reply to: Post Body Background/CSS Controlled Via Admin?Thanks for your input guys.
Basically its for a portfolio site and each time you go onto a post or page they want the background body image to change to a big photo of their work, with the post content textual etc over the top..
Thats the gist of it…
Forum: Themes and Templates
In reply to: Body ID/Class with Category ID?Following on from that i have found this…
<?php // dynamic body IDs function dynamicBodyID() { if (is_home()) { echo ' id="home"'; } elseif (is_single()) { echo ' id="single"'; } elseif (is_search()) { echo ' id="search"'; } elseif (is_archive()) { echo ' id="archive"'; } } ?>Which goes in the functions.php
And this in the header.php
<body<?php dynamicBodyID(); ?>>How can i add to the functions one above…. if say cat ID 10 print id=”whatever”?
Can that be done?
Forum: Themes and Templates
In reply to: wp_list_categories child of cat with number within link?Genius, thankyou 🙂
Forum: Themes and Templates
In reply to: Printing/Showing JUST Subcategory name or id?Perfect, thankyou 🙂
Forum: Themes and Templates
In reply to: Printing/Showing JUST Subcategory name or id?Forum: Themes and Templates
In reply to: Printing/Showing JUST Subcategory name or id?Thanks 🙂
Forum: Themes and Templates
In reply to: Printing ‘Page 1 of ….’Thanks Michael, that is kind of what i mean..
This WordPress site does it exactly how i want it too..
http://www.wearebuild.com/blog/
I wonder what they use…?
Forum: Installing WordPress
In reply to: Installing no css style also re-directing?????Update…
Once the login page is loded the addres bar has this..
http://www.19at.co.uk/blogg/wp-login.php?redirect_to=http%3A%2F%2Fwww.19at.co.uk
Which is the wrong address obviously.
Is that some htaccess effecting that?
Forum: Plugins
In reply to: Single Post Template Problem…?Thanks so much thats worked a treat 🙂
And if i wanted to add more single’s would it work like this…?
if (in_category('1')) { include (TEMPLATEPATH . '/single-1.php'); } elseif (in_category('3')) { include (TEMPLATEPATH . '/single-3.php'); } elseif (in_category('4')) { include (TEMPLATEPATH . '/single-4.php'); } else { include (TEMPLATEPATH . '/single-default.php'); }Forum: Installing WordPress
In reply to: Installing no css style also re-directing?????This is still doing it on a new install on the domain.
Still jumps to the main front domain.
From http://www.19at.co.uk/blogg/wp-admin when logging in always jumps back to..
I think it must be a htaccess problem, any ideas how i can fix it?
Many thanks 🙂
Forum: Plugins
In reply to: Multiple Loops, missing first post, showing rest?Any ideas, i’m scratching my head to why?
All other posts load fine into the first one, i dont understand when the others appear fine.
Is there something in the php telling it not to print the first post?
🙁
Forum: Plugins
In reply to: Sort Posts By Custom Field Date?Thanks once again guys, really appreciate it. 🙂
I think i’ve managed to get it working using the original suggestion…
query_posts('cat=3,4,5,6&order=desc&orderby=meta_value&meta_key=event_date');So let me get this straight in my head.
2009-10-22 will appear before 2009-10-23 and say 2009-11-22, but 2009-09-22 will appear before all of them?
That how the dates work?
Forum: Plugins
In reply to: Sort Posts By Custom Field Date?Been trying your suggestions my code is same as above with this at top..
<?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; $postcnt = 0; query_posts('cat=3,4,5,6&order=desc&orderby=meta_value&meta_key=date'); $lastPost=$wp_query->post_count; if (have_posts()) {I’ve added a custom field date to each post and given it date of 2009-10-22 then to another post giving it 2009-10-23 and then changed them to something else say 2009-11-22 and 2009-12-22 for example and they dont move they still stay in the same position…
Not ordering by date 🙁
Forum: Plugins
In reply to: Sort Posts By Custom Field Date?Thanks guys, i’ll give it a go.
So ‘desc’ will put them in date order of my custom field, newest first to oldest last?
Will this work for custom panels also?
I used this tutorial for custom panels
http://wefunction.com/2009/10/revisited-creating-custom-write-panels-in-wordpress/
This being the code i use to print the info (although slightly different above)
<?php echo $data[ 'event_date' ]; ?>Or is it only a custom fields job?
Thanks again, hopefully i can get it to work 🙂