WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] Customize shorten code (2 posts)

  1. KareemAtif
    Member
    Posted 11 months ago #

    Is it possible to customize options for shorten code to do the following:
    Show title and excerpt of the latest post only;
    and show only titles of other posts.

    http://wordpress.org/plugins/tpg-get-posts/

  2. cswaim
    Member
    Plugin Author

    Posted 11 months ago #

    Yes, but not in on short-code.

    [tpg_get_posts fields="title,content", show_excerpt="true" numberposts=1]
    [tpg_get_posts fields="title",offset=1]

    I have not tested this, but the first shortcode show 1 post and the second will show titles for all the others. The offset is documented in the codex.

    See if that works.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.