davidhosier
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: List WordPress Categories with Cat DescriptionsOutrix’s solution didn’t work for me. Here’s what did work for me (I hate dealing with unordered lists):
<?php $categories = get_categories(); foreach ($categories as $cat) { if ($cat->category_parent != 0) { echo '<span style="padding-left:10px;">'; } echo '<a href="'.get_option('home').get_option('category_base').'/'.$cat->category_nicename.'/">'.$cat->cat_name.'</a> ('.$cat->category_count.')'; if ($cat->category_description != '') { echo ' - '.$cat->category_description; } if ($cat->category_parent != 0) { echo '</span>'; } echo '<br />'; } ?>
Forum: Plugins
In reply to: Intersite linksForum: Fixing WordPress
In reply to: How do you sort “the_category” tag alphabeticallThis plugin sorts the category list outputted by the_category() in alphabetical order.
Forum: Everything else WordPress
In reply to: how to sort the_category()?This plugin sorts the category list outputted by the_category() in alphabetical order.
Forum: Plugins
In reply to: Real category_countTrue, but it’s a little late now.
Plus, I display categories by using a parent/child relationship, like Tech/Computers, Tech/Links. So it would be redundant to say Tech, Tech/Computers, Tech/Links.
Forum: Plugins
In reply to: Intersite linksOk, I figured it out. I wrote a plugin that does this. It should really be called “Intrasite links” because the links are internal (post-to-post) and not to external sites.
Forum: Plugins
In reply to: Multiple Category BasesDid anyone get this to work? I tried the rewrite rules and they didn’t work on my installation of WP 2.0.2.
Forum: Plugins
In reply to: Multiple category baseSomebody wrote a few things in this post, but when I tried the mod_rewrite rules, they didn’t do anything.
Forum: Fixing WordPress
In reply to: pages ending in .php wordpressAt the top of each php page, make a call to the WordPress blog header:
<?php require($_SERVER[‘DOCUMENT_ROOT’].’/your-wordpress-directory/wp-blog-header.php’); ?>Now you can use WordPress functions like get_header(), get_footer(), etc.
I searched for this a while ago and found several things in the WordPress support pages: 1, 2, 3, 4, https://ddhr.org/2005/11/29/wordpress-functions/
Forum: Plugins
In reply to: Intersite linksOne solution would be to use pingbacks/trackbacks, which I sometimes use. But sometimes, a post links to more than one of my own posts, and WordPress doesn’t accept more than one pingback in a short amount of time, so only one ends up being sent. Plus, I like to use relative/absolute links (/link instead of https://domain.com/link), which don’t send pingbacks.
If I knew MySQL, I might be tempted to write a plugin that searched in $wp_posts->post_content for each post’s permalink (for me, it’s /2006/03/07/post-name/) and display it somehow.
Any ideas out there, people?
Forum: Plugins
In reply to: Intersite linksAnother term used to describe this is “backlinks” and it’s very common with wikis.
Forum: Plugins
In reply to: Weighted Word Plugin – View outside of blog directory?