ColdForged
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Something odd with my sitesApache sometimes has problems serving up CSS when @imported, something abut caching:
@import url( http://www.stinner.com/wp-content/themes/trident/style.css );And it seems to affect Firefox only. Any reason you can’t use:
<link rel="stylesheet" href="http://www.stinner.com/wp-content/themes/trident/style.css" type="text/css" media="screen" />Forum: Fixing WordPress
In reply to: get_parent_page ??This is going to be the death of me. Following that processing, try putting a
rewind_posts()call.Forum: Fixing WordPress
In reply to: get_parent_page ??Try something like:
if( is_page() ) {
the_post();
if( 0 != $post->post_parent ) {
$post_name = $wpdb->get_var("SELECT post_name from $wpdb->posts WHERE ID = $post->post_parent");
}
}Forum: Fixing WordPress
In reply to: Can I have different number of posts fron index to archive?Forum: Fixing WordPress
In reply to: get_parent_page ??Well, the biggest thing is that I was assuming that
$postwas defined at the time, like in a Loop. Are you going to be including this code in a template?Forum: Fixing WordPress
In reply to: get_parent_page ??Post the whole shebang to http://pastebin.com and give us a link?
Forum: Plugins
In reply to: Timesince wrong time?There was a big discussion about this on the Kubrick Flickr group. You can wade through there and see if they ever got a real solution.
Forum: Fixing WordPress
In reply to: Category permalinks%category%is a pain. You can try this but you’d likely be better off giving up on having the category in your posts permalink.Forum: Fixing WordPress
In reply to: get_parent_page ??You could do something like the following:
if( 0 != $post->post_parent ) {
$post_name = $wpdb->get_var("SELECT post_name from $wpdb->posts WHERE ID = $post->post_parent");
}Untested but should be about what you’d need.
Forum: Fixing WordPress
In reply to: Can you put a WP tag within a tag?The problem isn’t getting the author description information so much as injecting it inside the content. Overall I’d say “no”. That doesn’t mean you can’t have both the content and the author information inside a single containing
div, but you’re not going to get it “within the < p > tags of the content”.Forum: Fixing WordPress
In reply to: Problems with “Edit Permalink Structure”Empty the permalink structure string to get back to “ugly” permalinks.
The fact that Apache issues a 404 on the complete permalink means to my mind that the rewrite simply isn’t happening. I’m no expert on Apache versions, so I don’t know what to tell you about getting pretty permalinks in that environment, but I will say that whatever is in your .htaccess right now isn’t having any effect on your URL. If it was, by the time Apache got down with it it would be in the form of something like
index.php?blahblah.Forum: Fixing WordPress
In reply to: Need children category names to appear on parent category pagelist_catsdoesn’t take an argument list in query string form, it takes explicit arguments. Calling as you are you are setting theoptionallparameter to"child_of=2"which makes not one lick of sense.wp_list_cats()is not deprecated in 1.5. I’m on 1.5 and 1.5.1-alpha and it works dandy. Calling the function as I did for what I told you works. Are you calling this on categories with emtpy children? If so, call it like this:wp_list_cats('child_of=2&hide_empty=0')Forum: Fixing WordPress
In reply to: Need children category names to appear on parent category pageTry
wp_list_cats('child_of=2').Forum: Themes and Templates
In reply to: Need variable that returns Page IDYou can also pass a post-slug to that function. Personally post-slugs are easier for me to read when digging through my templates. So
is_page('about')oris_page('main-archives').Forum: Fixing WordPress
In reply to: Show commentor’s e-mail addressIf you’re going to post your commenters’ email addresses, be sure they know you’re going to be doing that. People visiting WP blogs have come to expect the default behavior and I know I personally would be ticked if there was no mention that my email address would be laid out for all the illicit spiders to grab.
That said, you can use
echo $comment->comment_author_email;from within the comment loop to echo the address. May your readers have mercy on you :).