Plugin / DVLA Search

Installation

Installation

  1. Upload the plugin files to the /wp-content/plugins/dvla-search directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->DVLA Search screen to configure the plugin with your API Key
    1.1 If you want to test the Plugin you can use the example API Key “DvlaSearchDemoAccount” and test with a registration number beginning MT09 or FH51 such as MT09NKS.

Once you’ve added your API Key you can customize the fields shown on the simple results page from the Settings->DVLA Search->Results Fields screen.

Add The Widget To Your Site

  1. Go to Appearance->Widgets
  2. Drag the “DVLA Search Widget” to the sidebar or other widget area of your choice.
  3. By default the widget will point at the simple results page and the widget will have no title.

Create a Custom Results Page

To display the results on your own page, you can use the provided shortcodes as follows:

  1. Create a new page from Pages->Add New
  2. Use the [dvla_search_success][/dvla_search_success] block to wrap the content to show if the search returned valid results.
  3. Use the [dvla_search_error][/dvla_search_error] block to wrap a message to display if there was an error.
  4. You can display the results data with the [dvla_search_result] shortcode by specifying one or more field to output.
    1.1 For example, to display the vin use [dvla_search_result vin]
    1.1 Or to display the colour and model use [dvla_search_result colour model]
    1.1 For a full list of fields available see the help page at DVLA Search->Shortcode Help or in the readme.
  5. Save your page and take note of the slug.
  6. Update the widget “Results Page” option with the slug of your custom results page.

For example, your custom results page might contain the following shortcodes:

    [dvla_search_success]
      Your car [dvla_search_result registration] is a [dvla_search_result colour model] and the VIN is [dvla_search_result vin]
    [/dvla_search_success]

    [dvla_search_error]
      There was an error searching for [dvla_search_result registration]
    [/dvla_search_error]

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

1.1.3

First Released

19 May, 2017

Total Downloads

1,016

Wordpress Version

3.0.1 or higher

Tested up to:

5.3.0

Require PHP Version:

-

Tags

Contributors

This plugin has been closed.

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.