staceyud
Forum Replies Created
-
Forum: Plugins
In reply to: Adding a different style to each link in the wp_list_pages function.what about for the latest version of wordpress? I can’t find a function start_el in any wp-include files. Would love to implement this!
Forum: Plugins
In reply to: images in the wp_list_pages function?I need this too, anyone got this figured out yet?
Forum: Fixing WordPress
In reply to: get_posts and current pageSolved!
For anyone who wants to know, this is what I did:
In the header template file, in the head tag, put this:
<style type="text/css"> li.postlink-<?php echo $post->ID; ?> a { font-weight: strong /*whatever you want*/ } </style>then on my sidebar.php where i call the links in one category I have this:
<ul> <?php $myposts = get_posts('numberposts=10&category=4'); foreach($myposts as $post) : ?> <li class="postlink-<?php echo $post->ID; ?>"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; ?> </ul>Hooray!
Forum: Fixing WordPress
In reply to: authors as categoryanyone?
Forum: Plugins
In reply to: No Ping Wait NeededI don’t know either way – I’m hoping it does. Basically, I need the plugin but the address at where it was offered is no longer up. Is there a new location or does someone have the plugin they could send to me?
Forum: Fixing WordPress
In reply to: Post excerpt being posted in comments (on occassion)Go figure. Thank you for your help π
Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagsstill don’t know why this is happening…
Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagstook out the h2 tag, same output
placed in the footer, away from everything else: same output.
Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagsI realize there is a standard wp function that lists categories. I am using a plugin for another purpose. To make things easier I’ll just use the wp_list_cats from now on and to verify that it has nothing to do with the plugin I’m using.
From the start:
This is the code in my sidebar:
<?php $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories"); foreach ($link_cats as $link_cat) { ?>
<h2>Categories</h2>
<ul><?php wp_list_cats('sort_column=name&optioncount=1'); ?></ul>
<?php } ?>This is the output code:
<h2>Categories</h2><ul></ul><ul><li><a href="#" title="Cat 1">Cat 1 (28)</a></li><li><a href="#" title="Cat 2">Cat 2 (6)</a></li></ul>
Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagsThe output of the ‘wswwpx_fold_category_list’ tag is:
<ul><li>cat1</li><li>cat2</li></ul>It makes no sense because it’s after my h2 tag but before my ul tag:
<h2>Categories</h2>(extra tags show here)<ul><?php wswwpx_fold_category_list ('optioncount=1&hierarchical=1&hide_empty=0'); ?></ul>but there’s nothing there that can cause the extra tags.
Perhaps theres another way to list the categories and the number of blogs in each categorie (ie. Blogs (16))
I mean… i’ve taken out all code relating to the categories and the problem is fixed, but i need categories. I’ve removed the plugin I’m using, but it still happens… so It must be something to do with this code:
<?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagsI’ve tried it with and without the plugin and even without out the same thing happens. (i went as far as disabling the plugin to double check)
Forum: Themes and Templates
In reply to: Categories: extra <ul>, </ul> and <br /> tagswhen I posted the above code it automatically put in the br tags, but everything else is correct.
Some tags need ul’s surrounding it, some don’t – but this has nothing to do with that. For some reason an empty ul-tag followed by a break is being rendered with wordpress and if I remove the categories it doesn’t show so it must have something to do with the categories and/or how the categories are called.