What is __(arguments) in my functions.php

They are the translatable strings. When developing a theme, if you need the theme to be translated to another langauge then you need them. __() — Reference: http://codex.wordpress.org/Function_Reference/_2 and there are many: http://codex.wordpress.org/L10n Learn more: http://codex.wordpress.org/Translating_WordPress http://codex.wordpress.org/I18n_for_WordPress_Developers

Body classes in child theme

Thank you for all the insets with this question. Here is what I come up with working from 1fixdotio’s answer above. I first had to unset the full-width body class and then register a new body class to incorporate my new sidebar. Here is the code // Remove body class and register new body class … Read more

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