WordPress.org

Ready to get started?Download WordPress

Forums

a function within the string of another function?? (1 post)

  1. zkemeny
    Member
    Posted 7 years ago #

    Hmm, I hope my question makes sense. Maybe if I show the code first:

    ---------
    <?php comments_popup_link(' No Comments', ' 1 Comment<?php mdv_comment_plugger(', Last By',1,' '); ?>', ' % Comments<?php mdv_comment_plugger(', Last By',1,' '); ?>'); ?>
    ---------

    So basically, I want to include the function mdv_comment_plugger, but only if there are 1 or more comments. So I'm including them within the comments_popup_link so that they'll only appear in those circumstances. Does that make sense?

    Thanks,

    .z

Topic Closed

This topic has been closed to new replies.

About this Topic