# Custom Post Type

You can import and add business listings into custom post types.

Go through WordPress Dashboard ->WPLocalPlus -> Add business list.

For example: If I want to create business listings for Restaurants in Dallas.

Name : Give name to your business list.

List Type : Select Places.\
In this example we are creating Places type business listings .

What : You can give search parameter here.

Where : Here you need to give search parameter proper location.

For example if I need to create business listing for 'restaurants in Dallas'.\
First go through maps.google.com and search 'Dallas'

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LhZi6X4xt0HgtjyIGqC%2F-LhZi7MNfgJV5hX_vfBK%2F4.png?generation=1560762944888882\&alt=media)

You can find that exact place code for Dallas is 'Dallas, TX, United States'.This is necessary as there can also be another place available in Google map with similar name/place that we are searching.

If I search for 'Restaurants in Dallas, TX, United States' in maps.google.com, then it will show me the following results:

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LhZi6X4xt0HgtjyIGqC%2F-LhZi7MPBXfx6TpZnCPD%2F5.png?generation=1560762944954200\&alt=media)

'Where Keyword' : 'Dallas, TX, United States'\
Here keyword parameter is very important. WPLocalPlus fetches listing as per given in keyword parameter words.

It searches in format

'CATEGORYNAME in CITYNAME,COUNTRYNAME'\
Ex:'Restaurants in Dallas,United States'\
Ex:'Banks in Dallas,United States'

Number of the result : Number of results to be display on your page .

Click on Result Preview button and you can see results preview like scree shot.

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LoTyg7orScsWdjZqEcD%2F-LoU9c0-4EmN3_yQ8F1e%2Flistings.png?alt=media\&token=0489520c-a012-4c4a-8c69-a5517b3954ce)

Now click on "Import & Add" button. This will populate the results into custom posts. You can view and edit the results as per your need from the admin. To view/edit the results, go to WordPress Dashboard -> WPLocalPlus -> Places.

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LoTyg7orScsWdjZqEcD%2F-LoUAKghpCF6d15vA_BZ%2Fview-listings.png?alt=media\&token=6e2490b5-fa5e-49ad-86c9-d5ebe3c16a64)

To show listings on the frontend, go to WordPress Dashboard Add/Edit Page/Post and add block.

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LoTyg7orScsWdjZqEcD%2F-LoUAe4JgF-GvJHq9Vf8%2Fadd-block.png?alt=media\&token=bbfc11c9-5e11-4d8d-b564-e3a46fbe67b0)

Select Place Type, Location & Limit(number of results to show per page) and save the page.

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LoTyg7orScsWdjZqEcD%2F-LoUCGWPDtqHlWgGcK4w%2Fblock-edit.png?alt=media\&token=b997e93c-bcc3-4993-85f4-8ebc2d1e600c)

You will see listings on the page.

![](https://3407653237-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhZhxDDrIShhrVPrTpQ%2F-LoTyg7orScsWdjZqEcD%2F-LoUFKVj0m1xRXAYF-gN%2Flistings-directory.png?alt=media\&token=23a93b2a-8585-4f2f-b0f3-0cae959eef8a)

##
