Edde
Forum Replies Created
-
Forum: Plugins
In reply to: page parent showing content of page child only and not page grandchildThanks! Just what I needed!
@michaelh: you might want to include the alternative
$pages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc&parent='.$post->ID);for child pages only – NOT including any grandchild pages – to the Function_Reference/get_pages Maybe just as a remark? It’s a very nice addition.Using WordPress as a corporate (read: page and not post oriented) CMS is getting there – not that it stopped me before… 😉
Forum: Themes and Templates
In reply to: Tutorial: how to check if user is logged in or a visitorThis is not correct: first of all the Visitor and Member greeting are mixed up. Secondly: a subscriber has user level 0.
get_currentuserinfo() ; global $user_level; if ($user_level > 0) { echo "Welcome Contributor (or higher)" } else { echo "Welcome Visitor or Subscriber" }I agree with MichaelH: stick to is_user_logged_in
The above described function could be useful to see if someone is more then just an anonymous subscriber (aka a contributor of higher). I use this to allow people to disable ads when they contribute by writing articles (posts).
global $userdata; get_currentuserinfo(); if ($userdata->user_level > 0) { if(function_exists('get_cimyFieldValue')) { $value = get_cimyFieldValue($userdata->ID, 'FIELDNAME'); if ($value == 'YES') { $ads = 'off'; } } }Forum: Themes and Templates
In reply to: Summarizing Child Pages on Parent PageForum: Everything else WordPress
In reply to: Firefox, Flash and WordPressThanks! I’ll see if I can fix this…
Forum: Everything else WordPress
In reply to: WordPress Security?You may want to give WP Security Scan a go.
Forum: Fixing WordPress
In reply to: Feed brokenDude, you’re a life saver! It was in my wp-config.php (duh!)
Below the line where it says: “That’s all, stop editing!”
Dunno how it got there, but the problem is solved.Thanks!
Forum: Fixing WordPress
In reply to: Feed brokenThanks for the tips! I’ll look into it.
Forum: Fixing WordPress
In reply to: Feed brokenOK. Feeds (posts and comments) seem to work fine in Google Reader.
Now I’m really lost. Anyone?
Forum: Fixing WordPress
In reply to: can I revert settings back to earlier today?Problem solved, I see?
Forum: Fixing WordPress
In reply to: [Plugin: WP Super Cache] Super Cache alwayes zero@the IceMan: make sure your /wp-content/cache directory (and the files in it) are writable for the server.
Forum: Plugins
In reply to: [Plugin: Akismet] DO NOT UPGRADE THIS PLUGINAkismet 2.2 indeed seems to cause problems. Since it’s the only change to my site and Simple Tags stopped working properly, it’s safe to assume these things are related (not blaming anyone in particular).
However, upgrading to Akismet 2.2.1 just solved the problem. Everything seems to be working as before.
Thanks for this very fast solution!
Edde
Forum: Plugins
In reply to: WordPress 2.3 Database Structure Reference GuideA reference of how WordPress (2.6.x) deals with attachments (thumbnails, medium size images, captions, other attachment types) would be appreciated.
Edde
Forum: Plugins
In reply to: Conditional comments for the length of a post@orin: thanks! Very clear explanation and code.
Forum: Fixing WordPress
In reply to: I was adding links to sidebar, now sidebar is emptyThe normal place for WordPress to look when dealing with a single post is single.php. Does that exist and if so, does it call your sidebar?
Forum: Fixing WordPress
In reply to: I was adding links to sidebar, now sidebar is emptyIn your source I see three links which seem to link to three different categories (post categories, not links), using a widget.
I see a whole bunch of table-stuff (
<td></td>), which you shouldn’t need, since there are style sheet elements as well.The code pulling in the 7 links in the link category “products” is completely missing.
Your sidebar div is not closed properly: add
</div>just before
<hr /> <div id="footer">In real life this probably means you have to add
</div>at the end of sidebar.php (just before the footer is called), assuming footer.php starts with
<hr /> <div id="footer">