syllani
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Posts_nav_link now won’t show upThanks for the code, Kafkaesqui, it solved my problem.
marc0047, I wish I could help with yours, but your code looks ok to me. =/
Forum: Fixing WordPress
In reply to: How to enlarge the category div on the post pageI’m guessing the OP was asking about the list with checkboxes displayed on the Write Post screen under the Admin interface.
Forum: Fixing WordPress
In reply to: can you group together posts but NOT in a category?I have them on my index.php page. They work fine for me, but that could be due to the face that I’m also using the PostTeaser plugin, so my main page isn’t very cluttered anyway.
Forum: Themes and Templates
In reply to: Special format for current categoryHmm. I found this thread when searching for what I’m trying to do… it’s similar, but not quite. ??
I have a sidebar with lists of categories, subcategories. What I’d like to do is have the category of a post be highlighted in the sidebar when looking at a post in “single-post view”. (Hope I’m being clear.)
To list the categories in the sidebar I am using:
<?php wp_list_cats('hide_empty=0&exclude=1'); ?>
But for the life of me I can’t figure out what I’d need to do to achieve the above-mentioned functionality. Any help would be greatly appreciated. ??
Forum: Fixing WordPress
In reply to: adding menu highlight to “wp_list_cats” outputThis will maybe work for you?
Forum: Plugins
In reply to: yet another numbering questionNot sure of the problem, in the default theme it is there already:
<div class="post" id="post-<?php the_ID(); ?>">
Forum: Fixing WordPress
In reply to: can you group together posts but NOT in a category?You’d probably need to add those functions into index.php (or main.php) inside “the loop” as well.
Forum: Fixing WordPress
In reply to: Firefox rendering issueHuh. That’s good to know, in case I ever change providers and my styles quit working all of a sudden.
Forum: Fixing WordPress
In reply to: Firefox rendering issueThat is odd. I use:
<style type="text/css" media="screen">
@import url( <?php bloginfo('stylesheet_url'); ?> );
</style>in my header (the same you seem to be using), and everything is great in Firefox for me.
Is it possible there are issues with installs of WP not in the root directory?
Forum: Plugins
In reply to: Hiding Empty Link CategoriesHey, thanks! ?? I’d been researching in the meantime (doing a little reading up on the table structure and sql and stuff) and came up with the following:
<ul>
<?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
$num_links = $wpdb->get_var("SELECT count(*) FROM $wpdb->links WHERE link_category = $link_cat->cat_id");
if ($num_links > 0):
?>
<li id="linkcat-<?php echo $link_cat->cat_id; ?>"><h3><?php echo $link_cat->cat_name; ?></h3>
<ul>
<?php wp_get_links($link_cat->cat_id); ?>
</ul>
</li>
<?php endif; } ?>
</ul>Your solution is better though, since it doesn’t require the extra db hit. Thanks! ??
Oh, regarding the <h2> in the original, I had them changed to <h3> in my own version; what I posted was a direct copy-paste from the wiki. Just in case you were wondering. ??
Forum: Plugins
In reply to: Hiding Empty Link CategoriesHere’s the original source of the code I posted. Now that I look at it, I guess they aren’t much different. *blush*
Sorry for the dumb question.
Edit: Actually, I just tried it… get_links_list() automatically puts <h2> tags around the category titles. I’d much prefer a different markup for them.
Forum: Fixing WordPress
In reply to: Problem with PagesI had this similar problem, but the solution posted by joeking worked like a charm.
Hooray for google, and hooray for this great community. Thanks. ??