Scott Reilly
Forum Replies Created
-
Forum: Plugins
In reply to: Posts to become “extended” as they move down?Another alternative:
In index.php, look forstart_wp();
and change it to:
start_wp(); $ext_count = 0; $extended_after = 5;
The value of 5 indicates how many posts you want as full; change it to whatever you prefer. Then look for this:
<div class="storycontent">
<?php the_content(); ?>
</div>
And make changes such that it looks like this:
<div class="storycontent">
<?php
($ext_count < $extended_after) ? the_content() : the_excerpt();
$ext_count++;
?>
</div>
Though I haven’t tested it, this should make the first 5 posts of your blog appear in full, then any subsequent posts will appear excerpted (i.e. shorter). Triggering the excerpt by the age of the post is also just as easily possible.Forum: Plugins
In reply to: text replace pluginIf you search this forum for “headers already sent” you’ll see that you had space before the opening
<?php
and/or after the ending?>
, which caused your error.Forum: Plugins
In reply to: get_recent_posts and Post Limit, Category FiltersYou might want to try the Customizable Post Listings plugin. You can have it list only posts from a certain category, and you can customize the output (i.e. show the date before the name of the post, like you want).
Forum: Plugins
In reply to: Category Icon PluginHave you tried the Category Image(s) plugin? If your category was named “blah/blah”, the associated image name would be “blahblah.jpg” (or .gif, or .png).
Forum: Fixing WordPress
In reply to: How to combine author- & category-tags?You could try the Customizable Post Listings plugin. With it you can identify author(s) and/or categor(ies). Doesn’t help you with permalinks though.
Forum: Fixing WordPress
In reply to: The (more…) -tagSomething like the Hide or Cut Post Text plugin? Where text between
<
!–cut–> and<
!–/cut–> aren’t shown on the non-permalink pages (i.e. all pages except for the post’s single page), and you get a link like the “(more..)” link instead of the cut text?Forum: Fixing WordPress
In reply to: quicktags make me lose my placeDarn auto-logout. That was me.
Forum: Plugins
In reply to: Recent Posts Plugin?You can use my Customizable Post Listings, or MtDewVirus’s Recent Posts.
The WordPress Wiki Plugin page is a good place to find plugins.Forum: Plugins
In reply to: Currently Reading plugin for menuI just released v2.0 of Get Custom Field Values. Among other things, it now includes the function
c2c_get_recent_custom()
which will retrieve recent custom field values from outside the loop. I haven’t formally announced it yet, but have made it available and would like to know if it works well for others. Please let me know if you give it a try.
(Note for those using older versions of this plugin: I’ve changed the function nameget_custom()
toc2c_get_custom()
, so you’ll have to update your calls to function in index.php if you upgrade.)Forum: Fixing WordPress
In reply to: Using images for category listingCould you post an URL to your site? I’m still not clear on precisely where you have your images. Assuming you are using the cat-images/ subdirectory from your latest post, this is what you should have in your index.php:
<div class="meta"><?php _e("Filed under:"); ?>
<?php if ($single) {
the_category_image(" ", "", "gif", "/wp/wp-images/cat-images/");
} else {
the_category_image(" ", "", "gif", "/wp/wp-images/cat-images/");
} ?>
a€?? <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
The change you say you did to category-images.php isn’t necessary (and may be problematic). Try all this with an unmodified copy of the plugin.Forum: Fixing WordPress
In reply to: Using images for category listingAssuming what you’ve said so far about image type (gif) and location (/wp/images/), (where /wp/ is the absolute location to the root of your blog) then the HTML you posted should be:
<div class="meta"><?php _e("Filed under:"); ?> <?php the_category() ?> <?php the_category_image(" ", "", "gif", "/wp/images/"); ?> a€?? <?php the_author() ?> @ <?php the_time() ?> <?php edit_post_link(); ?></div>
Since you still have<?php the_category() ?>
in there, you’ll see both the name of the category and the image. Take it out if you only want the image.Forum: Fixing WordPress
In reply to: Using images for category listingWhat directory did you upload the images to?
Forum: Fixing WordPress
In reply to: Using images for category listingHow far into the instructions have you gotten, beyond installing the plugin? Do you have the images named a ‘nice-name’ version of the category name (i.e. the category name, but lower-cased, and with all non-alphanumeric characters removed and spaces replaced with underscores… so the category “Fun and Games!” would need a file “fun_and_games.png” (or of some other image extension)).
Then, in your index.php, replace:
<?php the_category() ?>
with something like:
<?php the_category_image(' '); ?>
You’ll have to possibly send different arguments depending on if your situation, in terms of image extension and image directory, differs from the default.Forum: Fixing WordPress
In reply to: Getting “More…” StatusThe text sent via the argument to the_content() only gets used whenever the “more” link would appear. So that text won’t appear at the end of every entry.
Forum: Fixing WordPress
In reply to: Comenters PluginHow many commenters do you have to your site? By default, it identifies commenters by the e-mail they provide, so if no e-mail is used, then the commenter gets omitted from the listing. (commenters can also be identified by name instead). It looks like it may be treating “tim ” (with space) differently than “tim”, but my guess would be that tim posted comments using different e-mail addresses?
You don’t need anything from the ‘outputs’ section. You just need to add something like:
- Top Commenters
<?php get_commenters('top', 3); ?>
and/or
- Recent Commenters
<?php get_commenters('recent', 3); ?>
to your index.php