you_know_zo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: When I log in wp-admin (dashboard) goes to error 404Little update… I have just tried to access another WordPress site of mine and it has the same problem….. again I haven’t changed the site at all…
Thanks Mac – that’s what I thought… any idea how I can get to that without any CPanel?
Forum: Fixing WordPress
In reply to: Error 403 – only on blog postsAh yes – but I never used posts on my site before… I was worried about someone linking to one of my pages and the link to that changing… I didn’t realise that even without ‘postname’ in the permalinks, my page that is called ‘skills’ would still be localhost/wordpress/skills – so crisis averted!
Thanks for your help 🙂
Forum: Fixing WordPress
In reply to: Error 403 – only on blog postsHaha!! Fixed!!
http://localhost/wordpress/archives/123
is the winner… this still gives my page names in the URL (so all my external links won’t be broken!!) and the blog posts are displaying.
Thank you for your help… I needed that push in the ‘permalinks’ direction 😉
Forum: Fixing WordPress
In reply to: Error 403 – only on blog postsOK… using this:
/index.php/%year%/%monthnum%/%day%/%postname%/
works… but then all my page names are localhost/wordpress/index.php/pagename – which isn’t ideal… there must be a way around this!!
Forum: Fixing WordPress
In reply to: Error 403 – only on blog postsYeah I knew it caused problems, but when I was using just pages, it worked fine…
I tried what you suggested and that didn’t work either unfortunately. I’ve tried a few more, the most recent being
/%year%/%monthnum%/%day%/%postname%
but I’m still getting the error… any more ideas?
Thanks so much for your help 🙂
Forum: Fixing WordPress
In reply to: Error 403 – only on blog postsHi guys, thanks so much for replying.
Esmi – thank you – you got it – I changed the permalinks back… I was using:
/http:/localhost/wordpress/%postname% – which worked fine for everything except my blog entries.
Do you have any idea why that is, and/or how I can get round it?
apljdi – I tried changing my .htaccess but it didn’t do anything…
Thanks guys!
Forum: Fixing WordPress
In reply to: body_class() not passing W3C validationWell, I’m using the default theme, I have just tweaked it a lot..! And I have never accessed the post-template.php file, so I don’t know how it could have been altered… It’s validating now though, and that’s the main thing – thanks so much for taking the time to reply to me 🙂
Forum: Fixing WordPress
In reply to: body_class() not passing W3C validationOK – I think I’ve sorted it out… It’s a bit of a dirty fix though…
I just added a closing tag in the header file, rather than locating it in the class…
<body <?php body_class(); ?> ><div id="page">It’s still not validating, but hopefully I can sort the other things out.
Thanks guys – and let me know if you think of something better!
Forum: Fixing WordPress
In reply to: body_class() not passing W3C validationYeah – I did that, but it doesn’t appear in the header code… The body tag is set up like this :
<body <?php body_class(); ?>So I think it must be in that class – Does anyone know how do I alter that?
Forum: Fixing WordPress
In reply to: body_class() not passing W3C validationForum: Fixing WordPress
In reply to: Really stuck with page ids…!!Hello again 🙂
OK – that worked, I got it to say that it was a match to page 33… with:
<?php if($post->ID == 33) { echo 'match!'; } ?>Hoorah – you are a genius… Since I started trying to solve this problem I have worked around it so I didn’t come to a stand still, but this little tid-bit is incredibly useful to me… thank you for all your help 🙂
Forum: Fixing WordPress
In reply to: Really stuck with page ids…!!Hello – you’re a legend, thank you!!
OK… I used that little code snippet and this is what I got on the Store page…
stdClass Object
(
[ID] => 33
[post_author] => 1
[post_date] => 2009-05-11 18:39:05
[post_date_gmt] => 2009-05-11 17:39:05
[post_content] => Product Description: Plain white t-shirt with Brain Wraps design.Price: $15
[post_title] => New T-shirt design
[post_category] => 0
[post_excerpt] =>
[post_status] => publish
[comment_status] => open
[ping_status] => open
[post_password] =>
[post_name] => new-t-shirt-design
[to_ping] =>
[pinged] =>
[post_modified] => 2009-05-12 15:14:58
[post_modified_gmt] => 2009-05-12 14:14:58
[post_content_filtered] =>
[post_parent] => 0
[guid] => http://localhost/wordpress/?p=33
[menu_order] => 0
[post_type] => post
[post_mime_type] =>
[comment_count] => 0
[ancestors] => Array
(
)So I tried my if statement with 33, as all the other IDs in the statement match the one in the URL… Unless my if statement is truly wrong, then it wasn’t 33… Every page said ‘not 33’
<?php if(is_page(33)) { echo "page 33"; } else { echo "not 33"; } ?>Any ideas??
Forum: Fixing WordPress
In reply to: Really stuck with page ids…!!Hi 🙂
Thanks again… I tried all those things already though 🙁 Sorry, I should have made a more extensive explanation…
Using the code you posted above, I got:
no title foundno ID foundno post name found
But when I did a check for the page ID before, it said it was page ID 1, even though it’s 10 in the URL – but neither 10 nor 1 work…
I am going to drink some tea… this problem is driving me NUTS!!
Thank you again for your help 🙂
Forum: Fixing WordPress
In reply to: Really stuck with page ids…!!Yep… it works for the home page, and the links page…
<?php if(is_page('Home')) { get_sidebar(); } ?>But not store… I don’t get it!!
Thanks for replying 🙂