WordPress.org

Ready to get started?Download WordPress

Forums

Acronyms 2
List Acronyms on Page (2 posts)

  1. wilfil
    Member
    Posted 2 years ago #

    Great plugin - is there any way I can list the acronyms on a page or post?

    Thanks

    http://wordpress.org/extend/plugins/acronyms-2/

  2. richa1
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags