Notice: This forum has become difficult to maintain and will no longer be supported.
If you have a current account, please open a ticket. If you have questions about the free version of AWPCP, please post in the WordPress.org forum and our team will respond there.

Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Valid AWPCP Shortcodes (3.x)
January 3, 2014
7:49 pm
awpcp
Admin
Forum Posts: 300
Member Since:
April 29, 2012
sp_UserOfflineSmall Offline

These shortcodes are valid in AWPCP 3.0.2 and later.

Page Shortcodes

The following shortcodes take no parameters.

  • AWPCPCLASSIFIEDSUI: Shows Classifieds main page.
  • AWPCPSHOWAD: Shows Show Ad page.
  • AWPCPPLACEAD: Shows Place Ad page.
  • AWPCPEDITAD: Shows Edit Ad page.
  • AWPCP-RENEW-AD: Shows Renew Ad page.
  • AWPCPSEARCHADS: Shows Search Ads page.
  • AWPCPREPLYTOAD: Shows Reply to Ad page.
  • AWPCPBROWSEADS: Shows Browse Ads page.
  • AWPCPBROWSECATS: Shows Browse Categories page.
  • AWPCPBUYCREDITS: Shows Buy Credits page.
  • AWPCP-BUY-SUBSCRIPTION: Shows Buy Subscription page. The shortcode requires the Subscriptions premium module to be installed and activated.

Supported but no longer used (as of 3.0.2)

The following shortcodes are still supported, can be inserted in pages or post without erros, but they do and show nothing.

  • AWPCPPAYMENTTHANKYOU: Used to show Payment Thank you page, now it shows nothing.
  • AWPCPCANCELPAYMENT: Used to show Payment Canceled page, now it shows nothing.

Other Shortcodes

  • AWPCPLATESTLISTINGS: Shows latest listings. It takes two parameters:
    • menu: Whether the standard classifieds menu items should be shown or not (default: true).
    • limit: The number of listings to show (default: 10).
    • sortfeatured: Display featured listings on top of the list (default: false)(Note: Must have Featured Ads installed to use this parameter)
  • AWPCPRANDOMLISTINGS: Shows random listings. It takes two parameters:
    • menu: Whether the standard classifieds menu items should be shown or not (default: true).
    • limit: The number of listings to show (default: 10).
  • AWPCPFEATUREDLISTINGS: Show featured listings. It takes two parameters:
    • menu: Whether the standard classifieds menu items should be shown or not (default: true).
    • limit: The number of listings to show (default: 10).

    The shortcode requires the Featured Ad premium module to be installed and activated.

  • AWPCPSHOWCAT: Shows listings in a specific category. It takes two parameters:
    • id: The ID of the category (required).
    • children: Whether listings in sub-categories of the selected category should be included in the results (default: true). id.', array($this, 'category_shortcode'));
  • (3.6 and later) AWPCPUSERLISTINGS: Shows listings for a user, depending on the settings: It takes three parameters:
    • menu: true or false to show or hide the menu items.
    • limit: the number of listings to show.
    • user_id: if present, the listings of the specified uses will be shown. If not present, the shortcode will show the listings of currently logged in user'. If no user is logged in and no user_id was provided, the shortcode will show nothing.
Forum Timezone: America/Denver
Most Users Ever Online: 426
Currently Online:
Guest(s) 22
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 631
Members: 22782
Moderators: 3
Admins: 2
Forum Stats:
Groups: 1
Forums: 4
Topics: 7431
Posts: 33061
Newest Members:
John OBrien
Moderators: awpcp: 7530, AWPCP Support: 6207, Bobbie Devereux: 3
Administrators: awpcp: 300, Steph Wells: 0