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 calledcarand Custom Taxonomy calledcar_user_ratingwith CPT UI plugin. Forcar_ratingI created values like:best_speed,best_color,best_stearing,best_breakes. I want to manually reorder card withingcar_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.
The topic ‘Good code example for get_posts call needed! π₯’ is closed to new replies.