WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Connections] Suggestion: shortcode for latest entries (2 posts)

  1. RanchNachos
    Member
    Posted 4 years ago #

    A nice feature I just thought of would be to create a shortcode for displaying the latest entries entered. Configured from the shortcode itself.

    example: show the latest 4 businesses entered.

    [connections_latest num=4]

    It could even be made into a template tag too

    <?php echo entry->latest('4'); ?>

    Perhaps even create shortcode/template tags for breaking it down further as well. The latest organizations, individuals, connection groups, all configurable from the shortcode or template tag.

    Thoughts?

  2. shazahm1
    Member
    Posted 4 years ago #

    I like the idea. I think I would simply add a "limit" attribute to the current shortcode. Doing that way one could limit base on organization, individual or connection groups simply by using the list_type attribute.

    Putting it in the template tag wouldn't work because at that point you're already in the loop.

Topic Closed

This topic has been closed to new replies.

About this Topic