nfb02001
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Changed parent category, now subcategory template not showing upI figured it out. I’ve been using the redirection plugin and the redirect didn’t change. Fixed it manually, now things are working!
Forum: Fixing WordPress
In reply to: Help w/query to order by custom field subsetI found a solution, so I thought I’d share. If you have a more elegant solution, I’d still love to see it.
<h2>Current Studies</h2> <dl class="dp_columnlisting"> <?php $study_query = " SELECT * FROM $wpdb->posts LEFT JOIN $wpdb->postmeta AS start_date ON( $wpdb->posts.ID = start_date.post_id AND start_date.meta_key = 'start_date' ) LEFT JOIN $wpdb->postmeta AS end_date ON( $wpdb->posts.ID = end_date.post_id AND end_date.meta_key = 'end_date' ) WHERE $wpdb->posts.post_status = 'publish' ORDER BY end_date.meta_value, start_date.meta_value DESC "; $pageposts = $wpdb->get_results($study_query, OBJECT); ?> <?php if ($pageposts): ?> <?php foreach ($pageposts as $post): ?> <?php setup_postdata($post); ?> <?php $current_year = date('Y'); $start_date=get_post_meta($post->ID, "start_date", true); $end_date=get_post_meta($post->ID, "end_date", true); ?> <?php if ( $start_date <= $current_year && $end_date >= $current_year){?> <!-- Display the title as a link to the post's permalink --> <dt><?php echo $start_date; ?> - <?php echo $end_date; ?></dt><dd><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></dd> <?php } ?> <?php endforeach; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php include (TEMPLATEPATH . "/searchform.php"); ?> <?php endif; ?>
Forum: Fixing WordPress
In reply to: Help Deciding How To Organize Pages/PostsThanks for the suggestion. That’s along the lines of what I was thinking of doing – just wasn’t sure if people had any other suggestions on how to approach the design.
Forum: Themes and Templates
In reply to: Help with Category Archive DisplayI’ve looked at that. The trick is that I want it to display the posts from first the parent category, then (on the same page, just formatted to indicated they’re subtopics) the children posts.
I’m sure it’s that I need to have multiple loops, I’m just not sure how to phrase them.
Forum: Themes and Templates
In reply to: Help with Category Archive DisplayIn looking around more and thinking about this further it’s like I need to have an archive page that recursively shows all category archives for parent & child categories, and also uses a function to remove child posts from parent categories.
I’ve found a function that will remove the child posts – now I just need to figure out how to show all the subcategory sections – can someone point me in the right direction?
Forum: Themes and Templates
In reply to: Firefox vs. IE CSSI tried changing up the @import line, even just using
link rel=”stylesheet” href=”https://www.delirity.com/wp-layout.css” type=”text/css”
instead… but it didn’t have an effect. Playing with the other pages, it seems that things work fine once again if I remove just the <doctype> tag. Only problem is, I’m not sure how to remove that for the actual wordpress files… I thought maybe wp-admin/index.php, but apparently not. Do you happen to know what I would edit?
Forum: Themes and Templates
In reply to: Firefox vs. IE CSSThanks for the ideas. One thing that is very confusing to me as to why this won’t work is that I made a small test page using my css file that I’m using on my site, and it worked fine. I’ll continue to try to find the problem, but if you have any more ideas about it, please let me know.
Forum: Themes and Templates
In reply to: Firefox vs. IE CSSHehe, good call, I was running out of my room so I guess I forgot.
https://www.delirity.com (I’ve fixed it on this one)
https://www.delirity.com/about_nicole.php (I haven’t fixed this one)
https://www.delirity.com/wp-admin (just crazy)=) Thanks!
Forum: Themes and Templates
In reply to: Remove dot from in front of category name?I’ve been editing my site using my own css and there are no bullets defined, so how could that be the problem?