Git Product home page Git Product logo

sitewide-search's Introduction

Sitewide Search

  • Contributors: spurge, lakrisgubben, alfreddatakillen
  • Tags: wordpressmu, sitewide, multisite, search, archive
  • Requires at least: WordPress 3.4.2
  • Tested up to: WordPress 3.6
  • Stable tag: 0.9.6

Creates a multisite searching and archive/category/tag/author browsing.

Description

Sitewide Search copies all posts from your site to a specified blog. You'll then be able to search and browse posts from the whole site at one place.

This plugin can also be set to override search and browse queries so the results is sitewide wherever you are.

What post types and which taxnonomies to include is also editable with an easy admin interface.

More info, wiki and issue tracker

https://github.com/klandestino/sitewide-search

Available languages

  • English (built-in)
  • Swedish

Installation

Download and upload the plugin to your plugins folder. Then activate it in your network administration.

Then create a blog you wish to save all the posts to. Select the blog in the administration settings page, tune your settings and populate the the blog with the sites all posts.

All the settings is available in the network administration settings pages.

Filters

You can filter posts and taxonomies during saving and deleting.

sitewide_search_save_post

Is triggered when a post is about to be copied into the archive blog. Filters the post copy. Gives you 3 arguments: object $copy, object $post and int $blog_id.

Return the copy as an object if you want it modified.

Return false if you don't want the post to get copied.

sitewide_search_save_taxonomy

Is triggered when a posts taxonomy terms are about to be copied into the archive blog. Filters the terms. Gives you 3 arguments: array $terms, object $post and int $blog_id.

Return the terms as an array if you want it modified.

Return false if you don't want any terms to get copied.

sitewide_search_delete_post

Is triggered then a post is about to be deleted from the archive blog. Filters the post id. Gives you 2 arguments: int $post_id and int $blog_id.

Return false if you don't want the post to get deleted.

Changelog

v0.9.6

  • Fixed issue with not restoring blog when requesting an empty loop.

v0.9.5

  • Fixed issue with wrong blog id being saved during populate post action.
  • Changed the way posts and terms are copied so no other actions and filters whould be invoked.
  • Changed the way how posts are being fetched during searching and browsing.
  • Removed browsing overridings in admin.
  • Added support for copying post metadata.
  • Added support for fetching thumbnail from post original blog.

v0.9.3

  • Fixed issue with archive blog being present in populate posts action.
  • Fixed issue with loading indication in administration.

v0.9.2

  • Changed blog switching method wich solved a lot of problems with data saved in wrong places.
  • Added filters for saving posts and taxonomies and deleting posts.

v0.9.1

  • Amount of posts per request can be set when running populate.
  • Fixed issue with garbage in output buffer before returning json to populate action.

v0.9

  • Saving posts and taxonomies to archive blog.
  • Post types, taxonomies and archive blog can be administrated.
  • Override blog source for searching and browsing posts by date, tags, categories and author.
  • Reset function for archive blog.
  • Populate function for archive blog.

sitewide-search's People

Contributors

lakrisgubben avatar

Stargazers

Miguel Peixe avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

spurge

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.