Forum Replies Created

Viewing 15 replies - 376 through 390 (of 406 total)
  • Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Another alternative:
    In index.php, look for start_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 plugin
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    If 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.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    You 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 Plugin
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Have 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).

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    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…) -tag
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Something 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?

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Darn auto-logout. That was me.

    Forum: Plugins
    In reply to: Recent Posts Plugin?
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    You can use my Customizable Post Listings, or MtDewVirus’s Recent Posts.
    The WordPress Wiki Plugin page is a good place to find plugins.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    I 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 name get_custom() to c2c_get_custom(), so you’ll have to update your calls to function in index.php if you upgrade.)

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Could 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.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Assuming 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.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    What directory did you upload the images to?

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    How 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.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    The 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 Plugin
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    How 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

Viewing 15 replies - 376 through 390 (of 406 total)