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

  1. KareemAtif
    Posted 2 years 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.


  2. cswaim
    Plugin Author

    Posted 2 years 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


No tags yet.