scottwallick
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Anyone have a copy of the theme “The Simple Life”?Do a search for the theme on plaintxt.org or I can just email you the theme. Send me an email if you still need it through my plaintxt.org blog.
Forum: Themes and Templates
In reply to: exclude current Page fromHey Simon: If your pages don’t have any children pages, then using CSS will probably be the easiest way to solve your problem. You’re using the Simplr theme, right? This will work for that theme, default, and others perhaps. Use the CSS:
div#sidebar ul li ul li.current_page_item {
display: none;
}But, like I said, if your pages have children pages, that is any pages like
- About
- More on Me
Then this will cause the child of pages not to display too. You can get around this by using a
>with a selector, but that still means your pages won’t show up in IE.Forum: Themes and Templates
In reply to: Looking for a Clean and Simple ThemeAnd yet another theme: Barthelme. This is an Widgets-friendly, WordPress 2.0+ theme that has an academic feel.
Forum: Themes and Templates
In reply to: Looking for a Clean and Simple ThemeAlso you can try my new Simplr theme, which is, obviously, simple. Both the themes I mentioned above and Simplr are now WordPress 2.0+ specific and Widgets friendly.
Forum: Fixing WordPress
In reply to: Link back to a parent pageI’m using this lovely bit of code I got on the Codex on my sidebar to display a list of the page parent and that pages subpages
<?php /* IF THIS IS A PAGE */ if (is_page()) {
$current_page = $post->ID;
while($current_page) {
$page_query = $wpdb->get_row("SELECT ID, post_name, post_parent FROM $wpdb->posts WHERE ID = '$current_page'");
$current_page = $page_query->post_parent;
}
$parent_id = $page_query->ID;
$parent_name = $page_query->post_name;
$test_for_child = $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE post_parent = '$parent_id'");
if($test_for_child)
{ ?>
<li>
<h2 style="text-transform:capitalize;"><a href=><?php echo $parent_name; ?></a></h2>
<ul>
<?php wp_list_pages('sort_column=post_name&title_li=&child_of='. $parent_id); ?>
</ul>
</li>
<?php } } ?>There’s one problem. The
<h2>-wrapped page parent link doesn’t really work. Let’s say the About page has two subpages, Happiness and Sadness. When I click on the two subpages, the<h2>-wrapped page parent link suddenly directs to the current page.Check it out in action at scottwallick.com. How can I fix my code above?
Forum: Themes and Templates
In reply to: WordPress 2 Theme CompetitionSo did kcyap.com just disappear or what? Like a virtual squatter. Ha!
Forum: Themes and Templates
In reply to: Looking for a Clean and Simple ThemeGlad you liked the plaintxt.org themes. If you liked my veryplaintxt theme, you might also considering using plaintxtBlog. It’s clean, minimal, and is very flexible and easy to customize. Should be a good place to start.
Forum: Fixing WordPress
In reply to: PHP command within another PHP commandDavid,
Thanks for your quick response and perfect answer. So I just learned something I’d been wanting to use for some time now. Cheers. Also, I went with
'template_url'as suggested. Worked great. Appreciated.Forum: Plugins
In reply to: displaying subpages dynamicallyThat is some f$#!&%!?*@! awesome code.
Lovin’ it.
Forum: Themes and Templates
In reply to: How to show child pages from a parent page automatically?carterco, I just used your code above on a theme I’m working on . . . and it worked like a charm. I was trying to figure out how to “dynamically” call subpages when viewing a page. Very slick.
Also, I wrapped your code above with a
if (is_page()) {call, so it only loads when that page is viewed.Forum: Plugins
In reply to: Post and/or Page Specific Stylesheet (CSS) LinkThanks for the replies, fellows. Greatly appreciated. I’ll let you know which one I go with.
By the way, Kafkaesqui, I love your Head META Description and META Relationship Links plugins. Both do specific things and do them well. Good for you.
scott
Forum: Fixing WordPress
In reply to: How can I get rss links to display?I’d like to do the same thing that Lauren is trying to describe (I think). Basically I’d like the same feature that the categories link tags offer, which would be a link liks lik
- Boring Weblink (rss)
- Yet Another (rss)
With the “rss” part a separate link that leads to the feed uri set in the link manager. So on the first part (“Boring Weblink”) goes to the html site, and the other “rss” goes to the feed.
Make sense? A little help? Much appreciated.