Adding a Calculator to a WordPress Page

You should look into creating a plugin for this and then inside of the plugin generating a shortcode for the output so you can place it almost anywhere you’d like inside wordpress. Having it has a plugin will give you the flexibility of quickly making changes and the future chance to apply it easily to … Read more

Exclude parent with child pages from WP_Query

the_dramatist’s answer will give you only top-level pages that have no children, which matches the example given in your description. However, if you want to get ALL leaf pages, use the following: SELECT * FROM $wpdb->posts WHERE post_type=”page” AND ID NOT in ( SELECT ID FROM $wpdb->posts WHERE post_type=”page” AND ID in ( SELECT post_parent … Read more

Where can i make an html change to a specific page [closed]

It depends on your theme. To find out exactly which file to edit, add the following code to your header.php file inside /wp-content/themes/nameofyourtheme: <!– <?php global $template; print_r($template); ?> –> You can then view the page in question’s source and see a comment that tells you the name of the file, which will also be … Read more

Show About and Contact Us page when they’re clicked in the top menu.

You need to include a loop to retrieve the page content. Something like: <div id=”primary” class=”site-content”> <div id=”content” role=”main”> //BELOW HERE <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘content’, ‘page’ ); ?> <?php comments_template( ”, true ); ?> <?php endwhile; // end of the loop. ?> //ABOVE HERE </div><!– #content –> </div><!– … Read more

Edit permalink for certain pages

I agree with @Milo it would be easiest to do it by having the Services Page as your top level page (parent) and then declare other pages as the Services pages’ children. You can do this on the page editing area in the WP admin area. Try not to mess with the permalinks as that … Read more