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

Get string from array and start loop [closed]

Interesting! Looking at the bp_group_has_members it allows to to pass only single group using the group_id parameter when my first thought was that it would be able to pass an array of groups. using your method you will need to run the loop multiple times in order to get the results you want. What i’d … Read more

Shortcoding with Divs

This should do the trick: http://codex.wordpress.org/Shortcode_API#Output Copying verbatim from the documentation: function myShortCode() { ob_start(); ?> <HTML> <here> … <?PHP return ob_get_clean(); } Basically what happens is that all your HTML will not be output, but rather stored in an “output buffer”, and returned by the function.

Display WP posts in 3 responsive columns

<?php $the_query = new WP_Query(“showposts=6&cat=1&orderby=rand”); while ( $the_query ->have_posts() ) {$the_query ->the_post(); $i++; if ($i == 1){echo “<div class=row-fluid>”;} ?> <div class=”span4″> Random Post <?php echo $i ; ?> </div> <?php if ($i == 3){echo “</div><div class=row-fluid>”;} if ($i == 6){echo “</div>”;$i=0;} } wp_reset_postdata(); ?>

Banner editable from backend

Is there perhaps an easier solution than programming it all myself? Download the Black Studio TinyMCE Widget plugin from http://wordpress.org/plugins/black-studio-tinymce-widget/. Activate the plugin and drag and drop the Black Studio TinyMCE widget in your desired sidebar. Works great and tested with WordPress 3.6.1. Picture taken from the plugin’s screenshots.

What is the best way to get the first few post from WordPress in different divs using a loop?

Use this code for the loop. I removed your comments and added some for clarification. <?php if ( have_posts() ) { // Do first post. add_filter( ‘the_content’, ‘narga_excerpts’ ); add_filter( ‘the_content’, ‘remove_first_image’ ); the_post(); get_template_part( ‘content’, get_post_format() ); // Do remaining posts. remove_filter( ‘the_content’, ‘narga_excerpts’ ); remove_filter( ‘the_content’, ‘remove_first_image’ ); while ( have_posts() ) { … Read more