Is there a way to randomize and connect a background and header image?

Here’s some sample code you can use for the header or background. This uses the genesis header hook which you can change to a theme specific hook or WordPress hook. add_action(‘genesis_header’, ‘conditional_header_image’); function conditional_header_image() { if ( is_tag(‘your-tag’)) { echo ‘<div class=”home-header”><img src=”http://example.com/path/to/image.png” alt=”home header image” /></div>’; elseif(is_page() ) echo ‘<div class=”page-header”><img src=”http://example.com/path/to/image.png” alt=”page header … Read more

Sort post by last commented

For this you can use WP_Comment_Query. The query will be $comments_query_args = array( ‘post_type’ => ‘post’, ‘number’ => 5, ‘status’ => ‘approve’ ); $comments_query = new WP_Comment_Query(); $recent_comments = $comments_query->query($comments_query_args);

Add an access code form to call a unique page based on page without registration

If your code is truly going to be the slug (“secret-page” = example.com/secret-page), you could do something like this… wp_redirect(get_bloginfo(‘url’).”https://wordpress.stackexchange.com/”.$_POST[‘access_code’]); But realize that headers cannot have already been sent, so this needs to happen before get_header(). Some more testing would be needed, but that should get you down the right path in principle. You could … Read more