Display random page

The first condition you list is easy. You just need the post_parent__in arguments. $args = array( ‘post_type’ => ‘page’, ‘posts_per_page’ => 1, ‘orderby’ => ‘rand’, ‘post_parent__in’ => array(2,169), // replace with your IDs ); $rand = new WP_Query($args); if ($rand->have_posts()) { while ($rand->have_posts()) { $rand->the_post(); the_title(); echo ‘<br>’; } } For the second condition, I … Read more

Featured Image not changing

Sorry you’re having trouble with the featured image. Some details that will help the community solve the question: What theme are you using? Without knowing what theme you’re using, one approach you might try is removing the featured image from the post/page, then click update. If the featured image is removed, you might then be … Read more

Site with all content on the front page

You can just create a HTML page with anchor links: 1- Link pointing to the anchor (Content) <a name=”allin”></a> <div>Content</div> 2- Create the anchor (menu). <a href=”#allin”>Link here</a> Although, i must confess i might not completely understood what you want/need. But as s_ha_dum said your question is to wide you need to start with some … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)