• Resolved bobmuirhead26

    (@bobmuirhead26)


    Hi

    I’m trying to get a page to display just the posts generated from USP. Sometimes I will write posts (as author “kendaltri”) which will list on the main WP posts page but I also want users to generate their own content (in this case race reports) that will display away from the main posts page.

    I have setup a specific category and user for the USP posts and set these up in the settings so all posts will be posted from author “racer” in category “usp. I have then used shortcode [usp_display_posts userid=”racer”] but it still displays posts from both authors, I have also tried with the userid set to it’s numerical value too without luck.

    Is it possible to display posts from only 1 category or can you help with the userid issue??

    Many thanks for the great plugin

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Glad to help:

    “Is it possible to display posts from only 1 category or can you help with the userid issue??”

    This is a great question, but not something currently possible with the free version of USP. It may however be a feature of the pro version in a future update.

    Let me know if I can provide any further infos, glad to help however possible.

    Thread Starter bobmuirhead26

    (@bobmuirhead26)

    Hi Jeff
    Thanks for the quick reply.

    The “Display Form” page in the settings offers suggestions that the [usp_display_posts userid=”racer”] would work?

    Is this not the case? Or is it just not working for me for some reason?!

    Thanks

    Plugin Author Jeff Starr

    (@specialk)

    Your question asked about categories, which are not supported by that shortcode. If instead you are asking how to display posts from a specific user, then you can use the userid attribute, using any valid user ID as the attribute value (i.e., “racer” won’t work because it is not a numerical ID). Note also that whichever user is assigned must have some submitted posts to display, otherwise no posts will be displayed.

    • This reply was modified 8 years, 2 months ago by Jeff Starr. Reason: typo
    • This reply was modified 8 years, 2 months ago by Jeff Starr. Reason: it's late
    Thread Starter bobmuirhead26

    (@bobmuirhead26)

    Hi

    I’ve tried the actual ID number too but the page continues to display posts from all authors?

    Thanks

    Plugin Author Jeff Starr

    (@specialk)

    With the free version, the “Author” of submitted posts is defined under the plugin setting, “Assigned Author”. So the ID of whichever user specified in that setting is the ID that will be assigned as the Author of all submitted posts. So as long as the following are both true, the display-posts shortcode should work:

    1) The user ID of the “Assigned Author” is used as the userid attribute in the shortcode

    2) There are some submitted posts that are “Publish” status (i.e., not Draft, Pending, etc.)

    Hope this helps!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘USP Display Posts’ is closed to new replies.