PHPackages                             helsingborg-stad/wp-listings - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. helsingborg-stad/wp-listings

ActiveWordpress-plugin

helsingborg-stad/wp-listings
============================

1.1.1(7y ago)0268MITPHP

Since Jan 5Pushed 7y ago5 watchersCompare

[ Source](https://github.com/helsingborg-stad/wp-listings)[ Packagist](https://packagist.org/packages/helsingborg-stad/wp-listings)[ RSS](/packages/helsingborg-stad-wp-listings/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (14)Used By (0)

WP Listings
===========

[](#wp-listings)

A simple listings plugin to use for example buy and sell.

Getting started
---------------

[](#getting-started)

1. Install and activate the plugin.
2. In wp-admin go to *"listings -&gt; places"* and add your wanted places.
3. In wp-admin go to *"listings -&gt; categories"* and add your wanted categories.
4. In wp-admin go to *"listings -&gt; options"* and change the options to your prefered settings.
5. Use the shortcode `[wp-listings-form]` to display the listings submission form in any post or page.

Templates
---------

[](#templates)

You probably want to create a `archive-listings` and a `single-listings` in your theme.

- `archive-listings` will handle the search and listing of the listings.
- `single-listings` will handle displaying a single listing.

Public functions
----------------

[](#public-functions)

#### wp\_listings\_add\_listing\_button($classes = array())

[](#wp_listings_add_listing_buttonclasses--array)

Displays a button to the "add new listing" form depending on your settings in the wp-listings options page.

#### wp\_listings\_use\_price()

[](#wp_listings_use_price)

*Conditional.* Should price be displayed or not (fetched from options page).

#### wp\_listings\_show\_contact\_form()

[](#wp_listings_show_contact_form)

Displays the contact form.

#### wp\_listings\_get\_meta\_fields()

[](#wp_listings_get_meta_fields)

Gets an array with meta fields of the current listing.

Shortcodes
----------

[](#shortcodes)

#### \[wp-listings-form\]

[](#wp-listings-form)

Displays the listings submission form.

#### \[wp-listings-search-form\]

[](#wp-listings-search-form)

Displays the search form. You can use this shortcode in your `archive-listings` template to display the search form there.

```
