Forum Replies Created

Viewing 15 replies - 106 through 120 (of 173 total)
  • From the wiki, I’ll give the meanings of the parameters in order (0 means false, 1 means true in yes/no parameters, for those who don’t know):
    0 – whether or not it should add an “All” category to the list
    ‘All’ – the text to use for the name of the All category (ignored in this case)
    ‘name’ – what to sort categories by, can be name or id
    ‘asc’ – sort order, ascending or descending
    ” – the page which the links should point to, defaults to the current page (I assume if you want to link to a different template for your archives)
    1 – list – should it be returned as an HTML unordered list or not
    0 – dates – Should the date a post was last made in the category be shown or not
    1 – count – Should the number of posts in the category be shown or not
    1 – hide_empty – Should categories without posts be suppressed or not
    To add the word ‘entries’ after the number in brackets, you would have to modify the list_cats() function in wp-includes/template_functions.php as following:
    change

    if (intval($optioncount) == 1) {
    $link .= ' ('.$category->cat_count.')';
    }

    to

    if (intval($optioncount) == 1) {
    $link .= ' ('.$category->cat_count.' entries)';
    }

    Thread Starter antifuse

    (@antifuse)

    Hrmm… I remember yesterday running into a whole bunch of them, but now that I’m trying to find them the only real one I can find is that it doesn’t let me choose whether new window pages default to opening in a new window or a new tab. How bizarre… I wonder what those other options I found were? Lol… And Firebird actually has a couple things from IE that I really like and use a lot (eg: F6 takes you to the address bar)… and firebird uses less memory… hrmm… I’m going to have to switch back to firebird until I can find the features that I really cared about, and just start right clicking all my links to open them in a new tab.

    Thread Starter antifuse

    (@antifuse)

    Heheheh… I guess I’m just gonna have to live with it, cuz Firebird lacks a few specific options that I can do in Opera that I REALLY need.

    Agreed… the super nice thing about having the functions print stuff directly makes it MUCH easier for templating for the average user (ie having to just do <?php list_cats() ?> is less confusing than having to do <?php print list_cats()?>

    The W3Schools CSS reference is top notch, I use it all the time.

    @spufi: if you’re talking about Link Manager links… the “Description” field goes into the title attribute of the link 🙂

    I’ve successfully upgraded by deleting EVERY file (except my index.php and wp-layout.css, although I eventually deleted those when changing my template)… as long as you set up your wp-config.php properly, you are perfectly safe simply deleting everything, and replacing it with the new installation.
    In fact, I would suggest copying your template changes from your old index.php to the new index.php, and using that one, simply to ensure that it’s including all the correct files and calling all the correct functions.

    The 1 comment bug was in 1.0 platinum but fixed for 1.0.1… are you sure you overwrote all the files?

    Hey, I was partly right! I just forgot about the title part 🙂

    Forum: Plugins
    In reply to: CSS Style Switcher

    That site is pretty cool… I’m not sure if they’ve updated the WordPress functionality to work with the 1.0+ versions of WordPress (the site has been around for quite a while now)… But it’s worth a shot!

    I believe it gives the most recent month for which there are posts. So if you don’t post for 6 months, it will display a link to 6 months ago.

    Check the Wiki template tags page to see how the previous_post function works… but basically the first parameter is just the format of the pre-link string, and it replaces % with the link… while the second parameter is the actual text of the link. So if you wanted the link itself to be just Previous, you would do the following:

    <?php previous_post('%', 'Previous ', 'yes', 'no', 1) ?>

    Hope that helps!

    Ok, to get close to the first one you could use the following:
    <?php get_archives(‘monthly’, ‘1’, ‘other’, ‘View all of ‘, ‘\’s entries’); ?> which gives you something close, except it makes “January 2004” instead of just January.
    The Wiki page on template tags has a ton of good info on it… that’s how I figured out how to do that one. Not sure how you would do the “browse all” though…

    Forum: Fixing WordPress
    In reply to: Links Description?


    <?php wp_get_links(#)?>

    replace # with the id for the category you want to display (the id numbers are displayed on the Links->Link Categories page)

    @jackiefg: you might want to take your database password out of there… 😛 But those look like 1and1.com usernames/passwords, are you sure the database host is correct? Usually with them it’s like db##.perfora.net… But I’m totally just guessing, you might not even be using 1and1 🙂

Viewing 15 replies - 106 through 120 (of 173 total)