Pages

Thursday, October 11, 2012

How to do Events as calendar in post/page wordpress?

To make an event Need to follow below steps..

1. Install plugin from http://www.harriswebsolutions.co.uk/event-organiser/.
2. To display events as a calendar use the below short code..
   [eo_fullcalendar]

Thursday, September 27, 2012

How to hide the errorrs,warnings,notice and all kinds of things in Opencart?

We can hide the all kinds of issues by just following the below steps in opencart.

First of all search for the below line in index.php.

1.set_error_handler('error_handler');

2. And comment the line.

Wednesday, September 26, 2012

How to display posts in related pages?

First of all we need to create a category in posts. For example i want to display events posts in events page. So i have to create a events category in Posts Category. Then add all posts for events. Now create a page in the themes folder. And copy the below code in that page.

<?php
/**
 * Template Name: Posts Display
 *
 * Selectable from a dropdown menu on the edit page screen.
 */
 get_header();
?>

Monday, September 3, 2012

How to add gallerywise or advanced search in nextgen gallery in wordpress?

To add advance or gallery wise search need to follow below steps....

1. First we need to install both nexgengallery and nexgengallery search.
2. Then change the form structure of searchform.php in the current theme  as below..

<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<table>
<tr>
    <td><label for="s" class="assistive-text"><?php _e( 'Search', 'twentyeleven' ); ?></label></td>
    <td><input type="text" class="field" name="s" id="s" placeholder="<?php esc_attr_e( 'Search Images', 'twentyeleven' ); ?>" /></td>

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">

Friday, February 3, 2012

Php Basics

This is a first php basic code. Php should start with Example: This will print the: Hi World