Custom page template not working

I think you’re muddling up the Template Hierarchy, so make sure to start by reading that. page-blog-page.php is for a page with the slug “blog-page.” If you’re using a page template, then you should name it something outside of the template hierarchy-reserved name spaces (e.g. page-{slug}, etc.) such as template-swapnesh.php. Also, WordPress has the blog … Read more

Getting child content

I would like to suggest you to use WP_Query to fetch pages from db: $the_query = new WP_Query( array( ‘post_parent’ => $page->ID, ‘orderby’ => ‘menu_order’, ‘order’ => ‘ASC’, ‘posts_per_page’ => 3, ) ); while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class=”span4″> <h2><a href=”https://wordpress.stackexchange.com/questions/83491/<?php the_permalink() ?>”><?php the_title() ?></a></h2> <?php the_content() ?> </div> <?php endwhile; wp_reset_postdata(); … Read more

Too Many Pages in WordPress? 2013

Many pages were a problem when your permalink structure was a plain /%postname%/, because that is the same structure the post type page is using. Very complex additional rewrite rules were stored in the database to avoid collisions. This is not a problem anymore. If your permalink structure is the same for posts and pages, … Read more

Remove number in URL

When you delete a post, it merely gets put into the “trash” and retains its slug. When you created the “new” contact page, the slug “contact” was already in use by the original contact post that is in the trash. Go into your posts on the dashboard and click on the “Trash” link near the … Read more

Add a plugin before main container

it looks like you’re using shortcode to execute your plugin. so instead of just echo ‘[plugin id=”1″]’; use this: echo do_shortcode(‘[plugin id=”1″]’); put this in the php file where you want it to load. For example, right above the <div id=”content”> this can be in whatever file you wish to execute the shortcode