WordPress.org

Forums

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

  1. KareemAtif
    Member
    Posted 1 year 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 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TPG Get Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.