WordPress.org

Forums

Conditional Tags (3 posts)

  1. marky
    Member
    Posted 12 years ago #

    Currently there are a lot of functions that automatically insert links or text but don't allow for much customization. This makes it tricky to do things like the following:

    • <?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'class', 'off'); ?>
    • Some other items
    • etc


    In particular, if the above code is inserted on an archived entry with comments displayed, there ends up being an empty
  2. in the list where the comments link would have been. Currently, there's no way to avoid this in the above scenario.
    Another example is creating a link to comment authors. If I want to do something like:


    Then I'm left with an undesirable Author's URI if the poster didn't include his/her URI.
    Are there any conditional tags or functions I can use to acheive these sort of results?

  • marky
    Member
    Posted 12 years ago #

    I hate to bump--but does anyone know how to do this?

  • marky
    Member
    Posted 12 years ago #

    *slaps forehead* Of course!
    Thanks, David!
    As silly as this sounds, I sometimes forget the templates are really just PHP files. :)

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.