Support » Plugin: TPG Get Posts » orderby="date" not getting results

  • Resolved baimac


    I would like to have my posts ordered by the “Publish” > “Published On” date, and to appear in reverse chronological order with the most resent on the top and the oldes on the bottom. I just added the last parameter below, and it is not working. Can you help?

    [tpg_get_posts cat=”In the News” fields=”title, content” shorten_content=”w750″ numberposts=”5″ thumbnail_link=”false” mag_layout=”true” thumbnail_size=”full” show_excerpt=”true” orderby=”date”]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Criss Swaim


    per the documentation for WP_QUERY:

    order (string | array) - Designates the ascending or descending order of
    the 'orderby' parameter. Defaults to 'DESC'. An array can be
     used for multiple order/orderby sets.
            'ASC' - ascending order from lowest to highest values (1, 2, 3; a, b, c).
            'DESC' - descending order from highest to lowest values (3, 2, 1; c, b, a).

    order="DESC" is the option

    Thread Starter baimac


    Are you saying that I should …
    remove from the [tpg_get_posts …. ]

    and instead add


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘orderby="date" not getting results’ is closed to new replies.