Forum Replies Created

Viewing 15 replies - 391 through 405 (of 409 total)
  • 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

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Maybe one of these two might suit your needs?
    Top/Recent Commenters
    or
    Customizable Post Listings

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    For #1, to show category description at top of category page (I’m assuming that the text you want at the top of the category pages is the description you defined for the category in the Admin section)
    In index.php, look for this:
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    Change it to this:
    <?php if ($posts) : ?>
    <?php if ($cat) : ?>
    <p class="cat-description"><?php echo category_description(); ?>
    <?php endif; ?>
    <?php foreach ($posts as $post) : start_wp(); ?>

    You’ll see the category description, and will be able to style it with CSS by addressing the ‘cat-description’ class.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    rubyji: I made a mini-plugin, wpuntexturize that turns off automatic curly-quoting (but DOESN’T turn off wptexturize completely). If you want wptexturize off completely, try the mini-plugin I mentioned here, though you probably want to remove the remove_filter('the_content', 'wpautop'); line mentioned in it.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    joand: You found the right bit of code. You have to change the line:
    $output .= ' \">$more_link_text";
    to be:
    $output .= ' \">$more_link_text";
    (Basically getting rid of #more-$id)

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    You can use the following to disable ALL automatic post formatting performed by WordPress by using the plugin below. Copy-n-paste everything from <?php to ?> (inclusive), save it to no-post-formatting.php in your wp-content/plugins/ directory and activating the plugin via the Admin->Plugins interface. Ensure you do not have any spaces/characters before <?php or after the ending ?>. ‘wpautop’ is really the filter you want removed to disable, but if you want the post to be EXACTLY as you input it, then this should do it. Also, you may also want to turn off these two settings in your Admin page -> “Options” page -> “Writing” submenu (since they may also modify your post):
    Convert emoticons like 🙂 and 😛 to graphics on display
    WordPress should correct invalidly nested XHTML automatically
    <?php
    /*
    Plugin Name: No Post Formatting
    Version: 0.1
    Plugin URI: http://www.coffee2code.com/wp-plugins/
    Author: Scott Reilly
    Author URI: http://www.coffee2code.com
    Description: Disable all automatic post formatting.
    */
    remove_filter(‘the_content’, ‘wpautop’);
    remove_filter(‘the_content’, ‘wptexturize’);
    // ‘convert_chars’ won’t modify your post noticably, so not turning it off
    //remove_filter(‘the_content’, ‘convert_chars’);
    ?>

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    The function comments_popup_script() is located in wp-includes/template-functions-comment.php. It contains the javascript in the function itself and does not use an external .js file.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Are you logged in as the author of the passworded/private post? WordPress, via cookies, remembers who you are and knows that you are able to see the passworded/protected posts. Try logging out and viewing your site.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    My guess is that you have this option set: “WordPress should correct invalidly nested XHTML automatically” (Admin page -> Options menu -> Writing submenu). In certain circumstances it may do what you describe. I’ve documented some of the issues with that setting.
    To test for certain: disable the setting, go back to the post you were having problems with, fix it, and save it. If it came out alright, then that setting was the culprit. Please do give us an idea of what precisely went wrong when the setting was on, or point us to the post and tell us what tag got chopped off.

    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Try the Get Custom Field Values plugin. (Support forum thread here.)

    Forum: Plugins
    In reply to: Coder help needed
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Do you close out the php tag at the end of your snippet, like so:
    <?php next_post('%','Next Entry<img src="http://www.bbiverson.com/images/buttons/next.jpg" alt="Read Next Entry" align="middle" />','no','no',1,'');
    } ?>

    Forum: Plugins
    In reply to: Coder help needed
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    To my eye it looks like the parentheses are unbalanced for the if()’s conditions. Perhaps try:
    if ((basename (__FILE__) == 'index.php') && ($_SERVER['QUERY_STRING'] == '')) {
    I haven’t look at this any deeper than that.

    Forum: Plugins
    In reply to: Top commenters hack
    Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    Or there’s this, Top/Recent Commenters plugin.
    /plug

Viewing 15 replies - 391 through 405 (of 409 total)