WebHostPro
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: blogroll database error, anyone know how to fix it?O.K. I got it to work from removing the directory tags and making a couple tweaks:
<div class=”sub_cats”>
<div class=”cats_head”>
<div class=”cats_head_txt”>Pages</div></div>
<br style=”line-height:17px “/>-
<?php wp_list_pages(‘title_li=’); ?>
<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/hr1.jpg” alt=”” width=”163″ height=”1″ align=”top” style=”margin:14px 0px 14px 0px “/>
<br><div class=”sub_cats”>
<div class=”cats_head”>
<div class=”cats_head_txt”>Categories</div></div>
<br style=”line-height:17px “/>-
<?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>
<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/hr1.jpg” alt=”” width=”163″ height=”1″ align=”top” style=”margin:14px 0px 14px 0px “/>
<div class=”cats_head”>
<div class=”cats_head_txt”>Archive</div>
</div><br style=”line-height:17px “/>-
<?php get_archives(‘monthly’,’10’,’custom’,’
- ‘,’
‘); ?>
<img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/hr1.jpg” alt=”” width=”163″ height=”1″ align=”top” style=”margin:14px 0px 14px 0px “/>
<div class=”cats_head”>
<div class=”cats_head_txt”>Links</div>
</div>
<div class=”cats_head”><div class=”cats_head_txt”></div>
</div><br style=”line-height:17px “/>-
<?php get_links($link_cat->cat_id, ‘
- ‘, ‘
‘, ‘
‘, FALSE, ‘id’, TRUE,
TRUE, -1, TRUE); ?><br/>
Forum: Fixing WordPress
In reply to: blogroll database error, anyone know how to fix it?Anyone else by chance that can fix this code? Thanks!
<?php
$link_cats = $wpdb->get_results(“SELECT cat_id, cat_name FROM $wpdb->linkcategories”);
foreach ($link_cats as $link_cat) {
?>
<div class=”cats_head”>
<div class=”cats_head_txt”><?php echo $link_cat->cat_name; ?></div>
</div><br style=”line-height:17px “/>-
<?php get_links($link_cat->cat_id, ‘
- ‘, ‘
‘, ‘
‘, FALSE, ‘id’, TRUE,
TRUE, -1, TRUE); ?>Forum: Fixing WordPress
In reply to: blogroll database error, anyone know how to fix it?“WordPress has changed to use wp_list_categories to display categories now. Just switch whatever function your theme uses now with ‘ wp_list_categories’.”
I understand that they changed stuff that now doesn’t work in my older theme but how do I fix it is the question. But thanks for trying to help, I don’t know what to do and how to do it.
Forum: Fixing WordPress
In reply to: blogroll database error, anyone know how to fix it?here is the html to the side bar, I would like to have pages and the blog role there, also when I remove the side bar page
word press adds another side bar that works but needs a little tweaking, where can I edit the side bar code when the side bar template is not used?<div class="cats_head_txt">Categories</div>
</div><br style="line-height:17px "/>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>SNIP
<?php
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
foreach ($link_cats as $link_cat) {
?>
<div class="cats_head">
<div class="cats_head_txt"><?php echo $link_cat->cat_name; ?></div>
</div><br style="line-height:17px "/>
<ul>
<?php get_links($link_cat->cat_id, '<li>', '</li>', '', FALSE, 'id', TRUE,
TRUE, -1, TRUE); ?>
</ul>
<br/>
<?php } ?>SNIP
[lightly moderated – snipped out stuff that clearly wasn’t necessary]
Forum: Fixing WordPress
In reply to: blogroll database error, anyone know how to fix it?I see your is working now, what did you do? I’m a amateur at this can someone explain a little about how to fix this. And yes it’s a theme.