WordPress.org

Forums

How do i display the last post excerpt from a specific user / tag / category on (2 posts)

  1. zmin
    Member
    Posted 3 years ago #

    I need to generate the last post title and excerpt from a specific user / tag / category (linking either to that post or that user / tag / category ).

    What i need is to create a sort of "ticker" widget, with one article / user (i can replace the user with a category or tag), to which i will add the user's gravatar.

    Thanks!

  2. NateJacobs
    Member
    Posted 3 years ago #

    You can use WP_Query. Read through the documentation to learn how to create an array of arguments that match your criteria.

    http://codex.wordpress.org/Class_Reference/WP_Query#Interacting_with_WP_Query

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags