WordPress.org

Ready to get started?Download WordPress

Forums

TPG Get Posts
[resolved] get post for specific category (5 posts)

  1. radio_mogul
    Member
    Posted 2 years ago #

    I inserted the shortcode [tpg_get_posts(category="my-category")] and it added ALL posts, not the category specific ones. I'm trying to figure out how to remedy that. I'm just not that comfortable yet at messing around with css and php files.

    *where "my-category" is either the name of the category or the slug

    http://wordpress.org/extend/plugins/tpg-get-posts/

    Thanks.

  2. cswaim
    Member
    Plugin Author

    Posted 2 years ago #

    the parameter should not be set in () try
    [tpg_get_posts category="my-category"]

  3. radio_mogul
    Member
    Posted 2 years ago #

    Just tried that. It didn't work either with the slug or the category name. ???

  4. cswaim
    Member
    Plugin Author

    Posted 2 years ago #

    Are you selecting by category or category_name

    from the readme.txt
    * category_name. This allows for the selection of posts by category_name.

    * category. This allows for the selection of posts by category number.

    If you need to use category id, check out the Simply Show Ids plugin. It displays the id on the category maintenance page.

  5. radio_mogul
    Member
    Posted 2 years ago #

    category_name worked! thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic