Search & Index Page Content

January 21, 2014

Plugins Adal Bermann 6 Comments

After 4 years as a full-time WordPress developer, I am proud to announce the release of my first free plugin: Search & Index Page Content.

Most WordPress plugins aimed at organizing and indexing content do so by dividing the content into several posts (often custom post types) and then compiling them back into a single page or providing a master page with links to the full content.

Sometimes it’s nice to just ‘keep it simple’.

While working on one of my favorite projects to date, I began considering how to best organize the FAQ page. The best FAQ plugin I could find, seemed like overkill and I started feeling anxious just reading the instructions, anticipating all the support I would have to provide to help my clients use the functionality. For cases where the FAQ is a major part of the website with hundreds of entries, I have no doubt that the custom post types created by that plugin would be useful.

For my purpose, I just wanted to put all the questions/answers on a single large page and provide a simple index of anchor links. A “search this page” functionality seemed like a good idea.

So I built it using jQuery to create a click-able index of all the headers on the page. The result is actually very similar to the “Content” anchor links that index long pages in the WordPress Codex. I also created the search form using jQuery, stealing a little code here and there on Stack-Overflow.

How to use ‘Search & Index Page Content’

Search & Index Page Content is extremely light-weight and easy to use. It won’t bog down or clutter your site, and neither will it take long to figure out.

  1. Download the ‘Search & Index Page Content’ plugin.
  2. Upload and install the plugin.
    Plugins > Add New > Upload
  3. Add the widget to a sidebar that appears on the page containing the content you want to index and search.
    Appearance > Widgets
  4. Edit the post or page you wish to index & search, and surround the content with the [SIPC_Content]  shortcode tags like this [/SIPC_Content].
  5. View the page and celebrate the hours you just saved yourself from manually managing anchor links for the next 3 years.

The Search & Index Page Content widget will ONLY appear on posts or pages where you used the [SIPC_Content] shortcode, so don’t worry about it clogging up your sidebars when unwanted.


Download Search & Index Page Content View a Demo

If you like my plugin, feel free to buy me a drink:


UPDATE: Now includes translations in Serbian and soon Spanish provided by Ogi Djuraskovic at First Site Guide.com

Tagged with:

    Gina Jun 09, 2016

    I This is an important read for those in development.

    Steve May 01, 2015

    Love the simple Search & Index Page Content widget. However, I’m having a problem with the highlighting of a word when it is searched. Seems that it finds the word and scrolls to the location fine. But, it is either changing the text to white or hiding the text altogether. In any case, the word just disappears. Any suggestions? Thanks

    Rudolf Dec 21, 2014

    Isn’t it ironic that this plugin can’t even find words on this very page but instead jumps back to the post index for Jan. 2014??
    Wouldn’t it be the idea to jump to the actual page or post this particular search term is part of it’s contents, no matter where the post or page is on the site??

    Wow, if finally someone could get that done with this otherwise hopelessly useless WP search…

    More info at Wikipedia Sep 13, 2014

    Pretty! This has been ann incredibly wonderful
    post. Thank you for supplying this info.

Leave a Comment

Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let us have a personal and meaningful conversation instead.