Here are the arguments for my query.
The query always shows the same order after every refresh.
Explanation to the query:
it show only 4 posts of the custom post type
projekte. The post has a custom meta field called
ecpt_skills and it should check if there is a string in it which is stored in the variable
$porjektart. It also should not show the current post. And it should order the query by random. Everything works except the random.
$args = array( 'posts_per_page' => 4, 'post_type' => 'projekte', 'meta_key' => 'ecpt_skills', 'meta_value' => $projektart, 'meta_compare' => 'LIKE', post__not_in => array(get_the_ID()), 'orderby'=> 'rand' );
Does somebody know why this happens?