Content template when adding a new page

Use shortcodes with as many attributes as you want. add_shortcode(‘custom-display-of-data’, ‘custom_display_of_data’); function custom_display_of_data($atts) { $atts = shortcode_atts( array( ‘foo’ => false, // default foo is false ‘bar’ => ‘default bar’, // default bar is string: default bar // define defaults for as many attributes you need ), $atts, ‘custom-display-of-data’ ); // place your code here … Read more

Category Page Custom Layout [closed]

You should check out the options from this theme. Probably you can set all this in the theme options. Accordion to the demo pages from The7 theme page you can choose for a list layout i.o a grid layout http://the7.dream-demo.com/blog/blog-list/5-blog-list/

Issue with page not erasing

I’m a little confused about the current setup, but in general, I would suggest logging into your friend’s WP Admin Dashboard and going to Appearances > Customize > Static Front Page and selecting the “New Home” page like so: If you are using any caching plugins, then also be sure to purge the cache from … Read more

Childpage title + content on Parent Page

You rarely ever need a custom SQL query, use the tools WordPress has to offer: $query = new WP_Query( array( ‘posts_per_page’ => -1, ‘post_parent’ => $post->ID, ‘post_type’ => ‘page’, ‘orderby’ => ‘menu_order post_title’, ‘order’ => ‘ASC’, ) ); if ( $query->have_posts() ) : ?> <?php while ( $query->have_posts() ) : $query->the_post() ?> <div id=”page-<?php the_ID() … Read more