Merge page with custom post type

I don’t see anything wrong with using archive-$cpt_name.php as your default archive page for the custom post type. That would be the correct way to go about doing it. Although there are many different methods to do it, I think you are on the right track to the best way.

How to Structure Pages and Subpages

You could go about the actual structuring of the pages 2 ways: Create a Ministries page, leave it empty, and use it for only organizational purposes and set the rest as children…probably not the best method Create a Ministries Category, then create the pages (with no parents) The menu is gonna work the same way … Read more

Can a page contain php code?

You can’t use PHP in the WordPress back-end editor. Maybe with a plugin you can, but not out of the box. The easiest solution for this is creating a shortcode. Then you can use something like [input type=”text” name”from”] in your editor. function input_func( $atts ) { extract( shortcode_atts( array( ‘type’ => ‘text’, ‘name’ => … Read more

How to have a next page for post?

You can use the functions next_posts_link() and previous_posts_link() for that. You have to place these functions in your theme where you want the links to be seen. Possible templates for that are your archive.php, category.php depending on your needs. <div class=”navigation”> <div class=”next-posts”><?php next_posts_link(‘&laquo; Older Entries’) ?></div> <div class=”prev-posts”><?php previous_posts_link(‘Newer Entries &raquo;’) ?></div> </div> More … Read more

Why won’t pagination work?

probably coz you override the default query and forgot to take care of pagination 🙂 change the code this way: $page = isset(get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘numberposts’ => $numposts, ‘paged’ => $paged ); This should do the work

Migrating to WordPress – but how will it do “structured” data?

Structured, as you named it, data in WordPress is combination of following features: [custom] post type – more accurately described as content type, you can register custom instead of bending generic “post” post type; taxonomies – for organizing posts into groups (native “category” and “tag” are taxonomies); custom fields – for storing bits of data … Read more

Displaying comments on pages distinguished by GET IDs

As far as WordPress is concerned, the individual match pages are the same page, the presence of your GET var is meaningless to WordPress. option 1 – make the individual matches unique objects, such as additional pages or a custom post type. option 2 – hook comment_post and update_comment_meta when a comment is submitted to … Read more