Title: Good code example for get_posts call needed! 🔥
Last modified: October 19, 2021

---

# Good code example for get_posts call needed! 🔥

 *  Resolved [minimedj](https://wordpress.org/support/users/minimedj/)
 * (@minimedj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/)
 * Hi guys,
    Sorry for such a silly question. I am very new to PHP and cannot figure
   out how to properly use power of the plugin with get_posts code call.
 * My situation is the following:
    In my WP I’ve created Custom Post Type called`
   car` and Custom Taxonomy called `car_user_rating` with CPT UI plugin. For `car_rating`
   I created values like: `best_speed`, `best_color`, `best_stearing`, `best_breakes`.
   I want to manually reorder card withing `car_user_rating`. I set up ReOrder Post
   settings as I wanted. Everything is fine here in Admin.
 * Now I want to create a shortcode function to insert sorted lists of cars into
   my WP posts and pages. I want to insert lists according to the `car_user_rating`.
 * I cannot figure out how I would call my lists to display?
 * Please help!
 * p.s. I have checked the code of the plugin, docs, github – didn’t find anything
   about it. I am absolute newbie in PHP. Sorry for such silly question.
    -  This topic was modified 4 years, 6 months ago by [minimedj](https://wordpress.org/support/users/minimedj/).
    -  This topic was modified 4 years, 6 months ago by [minimedj](https://wordpress.org/support/users/minimedj/).
    -  This topic was modified 4 years, 6 months ago by [minimedj](https://wordpress.org/support/users/minimedj/).

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

 *  Thread Starter [minimedj](https://wordpress.org/support/users/minimedj/)
 * (@minimedj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14985604)
 * Please? Anyone?
 *  Thread Starter [minimedj](https://wordpress.org/support/users/minimedj/)
 * (@minimedj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14988185)
 * Found another plugin.
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14993708)
 * > I am absolute newbie in PHP. Sorry for such silly question.
 * it’s not a silly question, we all started as newbies :), however this is not 
   the forum to ask such questions. You’ll need to ask in a WordPress php forum 
   for support. Else you will need to hire a developer to get a solution.
 * I only give general guidelines here as well as fix bug reports.
 *  Thread Starter [minimedj](https://wordpress.org/support/users/minimedj/)
 * (@minimedj)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14994801)
 * [@aurovrata](https://wordpress.org/support/users/aurovrata/) no worries, I found
   a better solution!
    Thank you for your time!
 *  Plugin Author [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * (@aurovrata)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14995505)
 * happy coding!

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

The topic ‘Good code example for get_posts call needed! 🔥’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/reorder-post-within-categories_c18d38.
   svg)
 * [ReOrder Posts within Categories](https://wordpress.org/plugins/reorder-post-within-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reorder-post-within-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reorder-post-within-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/reorder-post-within-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reorder-post-within-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reorder-post-within-categories/reviews/)

## Tags

 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)

 * 5 replies
 * 2 participants
 * Last reply from: [Aurovrata Venet](https://wordpress.org/support/users/aurovrata/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/good-code-example-for-get_posts-call-needed/#post-14995505)
 * Status: resolved