Pages

Thursday, August 30, 2012

How to add Images search in Nexgen Gallery for wordpress?

To do this first of all we need to install both nexgengallery and nexgengallery search. After activating both the plugins need to follow below steps.

1. Open search.php of your current theme from themes.
2. Copy and paste the below code into the search.php. This code will work for both searching content and images.
<?php
/**
 * The template for displaying Search Results pages.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

        <section id="primary">
            <div id="content" role="main">

Wednesday, August 29, 2012

How to add multiple Featured Images for each page/posts in wordpress?

For adding multiple featured images for pages or posts need to follow below steps.

1. Install the plugin Multiple Featured Images

2. Add the below code to functions.php

a. For adding Featured images to pages..

if( class_exists( 'kdMultipleFeaturedImages' ) ) {

        $args = array(

                'id' = 'featured-image-2',

Tuesday, August 28, 2012

Tuesday, August 21, 2012

How to create template page in wordpress

Copy Any previous template page and change the Template Name as per your requirement. For Example: Template Name: Front Page and this new template page will display in the template lists for each new page adding/editing section. Or Create a new page in the theme.. and paste the below code...

<?php
/**
 * Template Name: Front Page
 * Description: A Page Template that adds a sidebar to pages
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

        <div id="primary">
            <div id="content" role="main">