where_is_will
Forum Replies Created
-
Forum: Plugins
In reply to: Random question – modification of e-commerce include for congestion chargeHi, we were looking at wp-ecommerce, but the reviews are scary, so looking at the alternatives. We only sell three products so the ecommerce is simple, but there is a collection element to our service that needs us to be able to add a charge for certain postal codes. But I think that’s going to have to be custom development work for somebody!
Forum: Fixing WordPress
In reply to: Live Site & TestingI understand your plight completely. I’ve looked at multi-site as well and tried using it on a subdomain for dev/testing but couldn’t get on with it. Personally I still follow the work on local version -> upload at night method. Seems safer, but maybe I’m just getting old?
Forum: Plugins
In reply to: float #login_errorhttp://www.hub-london.com/wp-login.php?action=register – just put in a dodgy email and you’ll see what I mean. Site is only half way there, so please don’t judge the rest!
Try
#access ul li.current_page_item > a, #access ul li.current-menu-ancestor > a, #access ul li.current-menu-item > a, #access ul li.current-menu-parent > ato change the current highlighted menu item. Clear that, or change the colour or set it to whatever you want.Personally I’d go with a roll-over colour so people see the change, they’re more likely to click.
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekThat’s awesome thanks. All working like a dream, much appreciated.
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekHaving thought about this a bit more – this is not really an issue with the $tomorrow call at all, that’s fine. What I need to do is put a loop into the post list (orderby field?) that says:
If there are less than 4 posts in the list, restart the post list at a daynumber of 1.
Any tips on how to loop a list of posts?
Thanks All.
Forum: Fixing WordPress
In reply to: Thumbnails imagesDependent on the level of control you need you could put the URL to the image in a custom field for the post and then call it into your home page? It’s not the most elegant, but it does provide a quick solution.
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekFor reference I had to change things slightly to get them to work, although this is probably more to do with the way the data is set up than anything else.
<?php $today = date('w') + 1; // Day of week with 1 for Sunday $tomorrow = ($today == 7) ? 1 : $today + 1; $args = array( 'meta_key' => 'daynumber', 'meta_compare' => '>=', 'meta_value' => $tomorrow, 'orderby' => 'meta_value_num', 'order' => 'ASC', 'posts_per_page' => 4 ); query_posts($args); ?>This works going forward – so on Wednesday it’s showing Thurs etc, but when I move it forward to Friday I am not seeing the Monday events. The second line:
$tomorrow = ($today == 7) ? 1 : $today + 1;must need an edit to allow it to wrap the events around – does anyone have any tips around that?
Thanks All.
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekHi Vtxyzzy,
Sorry, got side tracked into another project, only just picking this up again – thanks for the support. Yep, I’d like it to wrap so when we get to Tuesday it picks back up. Did you have a chance to have a play with that? If not I’ll have a go with the work you started last time.
Cheers,
Will
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekAh, that’s what I needed! Thanks for the quick help on it I’ll try this and let you know how it works out.
Will
Forum: Fixing WordPress
In reply to: Sort list of posts (decending) by day of the weekThanks for the post – I understand what you are saying for the sort, thanks for the link.
But it’s a little trickier as I need to show the next event (post) depending on the day – so on Wednesday I need to show the events (posts) for Thursday, Friday etc. I can’t use the date and sort on that as the same events recur weekly.
I was hoping to create a value from Date(“l”) and use that to select the next relevant posts – but I can’t work out the logic!
Any ideas?