.htaccess help to a beginner

For the syntax of the .htaccess URL redirect have a look here: https://stackoverflow.com/questions/3374696/htaccess-url-redirect Then add a GET request to the URL based on the originally entered domain, e.g. www.domain.no/property/shops -> www.domain.no/property?type=shops Details here: https://stackoverflow.com/questions/13988815/htaccess-301-redirect-issue-with-url-variables

Query custom post type and showing its content

You are not closing the second while loop. You’ll probably want something like this: <?php /* * Template Name: Testimonials */ ?> <?php get_header(); ?> <div class=”container”> <div class=”content-page”> <h1><?php wp_title(); ?></h1> <title><?php wp_title(); ?></title> <?php $query = new WP_Query( array(‘post_type’ => ‘testimonials’, ‘posts_per_page’ => 5 ) ); while ( $query->have_posts() ) : $query->the_post(); ?> … Read more

Custom Post Type & Page Template

You should NOT use flush_rewrite_rules when you register your custom post type. Doing so means you will flush permalinks on every page load. Instead you should use the register_activation_hook. Re the template issue: Try renaming the template to single-dossier.php And try changing your register_post_type array to this: register_post_type( ‘dossier’ , array( ‘label’ => __(‘Dossiers’), ‘singular_label’ … Read more

custom page or standalone page?

As Andrew stated, a custom page/template would be the most efficient way to display the calculator. You can leave this as a simple page, displaying just your calculator, or you can add in “the loop” below the calculator to display additional text which would be easily edited in WordPress.