Support » Plugin: Acronyms 2 » [Plugin: Acronyms 2] List Acronyms on Page

Viewing 1 replies (of 1 total)
  • I came up with the following code to render the list.

    <table border="1" style='border-collapse: separate; border-spacing: 1px;'>
      <tr>
          <th align='center' valign='middle' style='padding: 10px 15px'><h3>Term</h3></th>
          <th align='center' valign='middle' style='padding: 10px 15px'><h3>Description</h3></th>
      </tr>
    <?php
    $acronyms = get_option('acronym_acronyms');
    foreach ($acronyms as $key => $value) {
        echo "<tr>\n<td align='center' valign='middle' style='padding: 10px 15px'><strong>$key</strong></td>\n<td style='padding: 10px 15px'>$value</td>\n</tr>\n";
    }
    ?>
        </table>

    I hope that helps.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Acronyms 2] List Acronyms on Page’ is closed to new replies.