tente isso:
$my_query = new WP_Query(array(
"posts_per_page" => 1,
"post_type" => "page",
"post__in" => array(18,25,32),
"orderby" => "RAND"));
mesmo assim ele não está trazendo, estou postando o código inteiro
<?php
$my_query = new WP_Query(array(
“posts_per_page” => 1,
“post_type” => “page”,
“post_in” => array(18,25,32),
“orderby” => “RAND”)); ?>
<?php if (have_page()): while (have_page()) : the_post();?>
” style=” cursor:pointer;”>
<?php the_post_thumbnail(array (275,125)); ?>
<?php the_title(); ?>
<?php endwhile; else:?>
<?php endif;?>
Esta faltando a referência a $my_query no Loop, e acho que esse método have_page() não existe. Troque por:
<?php if ($my_query->have_posts()): while ($my_query->have_posts()) : $my_query->the_post();?>
Páginas tb são um tipo de “post” na classificação interna do WP.
Putz exatamento isso, muito obrigado, valeu mesmo, abraços….