krusch
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: Show post count in heading of related posts selected by tag in sidebarFor some odd reason, I was not able to get the logic behind this script. It seemed to work perfectly in the beginning, but the more posts and tags I had, the more obscure the results were.
I found another script which addresses the same problem here: http://www.3mind.at/2009/05/06/code-highlighting/
Maybe it helps somebody.
Forum: Fixing WordPress
In reply to: show sub page content on a parent page<?php $pages = get_pages('child_of='.$post->ID.'&sort_column=post_date&sort_order=desc&parent='.$post->ID); $count = 0; foreach($pages as $page) { $content = $page->post_content; if(!$content) continue; if($count >= 2) break; $count++; ?> <div class="feature_product"> <a href="<?php echo get_page_link($page->ID) ?>"><h2><?php echo $page->post_title ?></h2></a></div> <?php } ?>Hope that helps! I only call the title in this example. But you can also call the content within the “feature_product” div!
Forum: Alpha/Beta/RC
In reply to: How to Add page based on Template in 2.7Took me a while to figure it out, too. Here is how it worked for me:
- Upload your Template Page into your own Theme
- Change your Theme to the default theme, then change it back to your theme (like reloading your theme)
- Go to Ad New Page, the template drop down box should appear now
Forum: Themes and Templates
In reply to: Use a specific single.php template for specific categoriesI would like to link to a different single.php from my archive page.
Let’s say home.php links to single.php
and archive.php links to single_x.phpAny ideas?
Felix
//—> I just opened a new question for this!
Viewing 4 replies - 1 through 4 (of 4 total)