how to register a second page-template

After a quick look at the structure, I got to say it appears pretty standard. Simply follow the codex article on creating a page template and drop the new file in the theme’s root directory. Done. Any custom template for multiple pages should start like this: <?php /* Template Name: WPSE Template Example */

why is this content-template not showing any of my blog-entries?

With this code: get_template_part(‘content’, ‘page’ ); WordPress will try to load a file called content-page.php and if this file doesn’t exist then it will try to load content.php. Your theme seems to have the file content-page.php, so if you want to load content.php you should use: get_template_part(‘content’); EDIT: You have edited the question and delete … Read more

Fake Single WordPress Post (Page) Loop

How about something like this instead: add_action(‘template_redirect’, function(){ get_header(); echo ‘page stuff’; get_footer(); exit(); }); add_filter(‘the_title’, function(){ return “Virtual Page Title”; }); What you are trying to do strikes me as very prone to error. Different themes can do all kinds of different things with page.php, not to mention that it may not be present … Read more

Custom template support for custom post type?

Please refer to the Template Hierarchy. Custom Post Types use two different template files, depending on context. For custom post type single post display: single-{posttype}.php single.php index.php For custom post type archive display: archive-{posttype}.php archive.php index.php In both cases, {posttype} is the custom post type $slug, as-defined in the register_post_type( $slug, $args ) call.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)