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
In particular, if the above code is inserted on an archived entry with comments displayed, there ends up being an empty
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:
- ">Author's URI
Then I’m left with an undesirable
Author's URIif the poster didn’t include his/her URI.
Are there any conditional tags or functions I can use to acheive these sort of results?
- The topic ‘Conditional Tags’ is closed to new replies.