WordPress.org

Ready to get started?Download WordPress

Forums

Links shortcode
[resolved] Extra option to output links in a table (2 posts)

  1. pander
    Member
    Posted 3 years ago #

    Could you please provide an extra option that will output links in a table.

    For example
    [links fblike="0" order="ASC" category_name="Blah blah"]
    would result in a HTML TABLE with a TR for each link. In that TR would be one TD and in that TD the actual link.

    Implementing this would enhance the functionality of links shortcode plugin.

    http://wordpress.org/extend/plugins/links-shortcode/

  2. Maarten Swemmer
    Member
    Plugin Author

    Posted 2 years ago #

    Hello pander,

    In the latest version you can define your own template to display links in any way you like. The plugin includes some help on that, but here's an example on how to show links in a table:

    You could add images in a column next to the description by using the following:

    <tr style="width:100%;">
    <td style="width:100px;vertical-align:top">
    [optional <a href="[link_url]" target=_blank><img src="[link_image]" border=0 style="width:100px"></a>||]
    </td><td>
    <div class="links_sc_fb" style="text-align:left">
    [optional [date]: ||]<a href="[link_url]" target="_blank">[link_name]</a>
    [optional <br />[link_description]||]
    [optional <br />[fb_button]||]
    </div>
    </td></tr>

    You will need to add the following as code to be inserted before the links:
    <table style="margin:0;padding:0;">
    And the following to be inserted after the links:
    </table>
    I hope this helps.

    Maarten

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic