Issue with get_posts
-
Hello,
I installed the plugin, set a custom order with the override option set to true. It is working on my taxonomy term archive page : https://www.epicentrefilms.com/films/vod/ (Bonheur Académie moved to 2nd position) but not on my homepage (V.O.D. section, just before twitter feed). This section uses a the get_posts() function with those args.
But the found films are ordered by post date just like before. Have I done it wrong ?
Thanks
Etienne$args = array( 'post_type' => 'film', 'numberposts' => 4, 'suppress_filters' => 0, 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'categorie-film', 'field' => 'slug', 'terms' => array('vod'), ), ) ); $films = get_posts($args) ;
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Issue with get_posts’ is closed to new replies.