Creating search page
-
Hi
I am trying to create a search page using the guide found here: http://codex.wordpress.org/Creating_a_Search_Page#Using_the_page.php
The problem arises in the first step: creating a template page. My index.php file (which the guide tell me to use as a off set) doesn’t contain a loop section. Here is a copy past of what my index.php file contain:
<?php
/**
* Front to the WordPress application. This file doesn’t do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*//**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define(‘WP_USE_THEMES’, true);/** Loads the WordPress Environment and Template */
require(‘./wp-blog-header.php’);Therefor, I don’t know where to include
<?php get_search_form(); ?>
Can anyone help me on this one?
The blog I need help with is: (visible only to logged in users)
-
No, you are using WordPress.ORG code on a WordPress.COM blog. That will simply never work. We can’t edit our PHP.
Just put the Search widget in your sidebar. It has that functionality built in.
- The topic ‘Creating search page’ is closed to new replies.