Skip Navigation

[Resolved] classified shortcodes

This support ticket is created 7 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by oliverD 7 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#552777

I am trying to replicate some of the classified solution. Is there anyway you can share the shortcodes that are used in that solution.
thanks

#552874

Dear oliver,

You can find the PHP source code of shortcodes in the plugin file:
\toolset-classifieds\inc\toolset-classifieds.class.php, see line 61~69:

            //Custom shortcodes
            add_shortcode('login-form', array($this, 'classifieds_login_form'));           
            add_shortcode('lost-password-form', array($this, 'classifieds_lost_password_form'));
	        add_shortcode('classifieds_logout_url', array($this, 'classifieds_logout_shortcode_func'));
            add_shortcode('classifieds-currency', array($this, 'classifieds_get_woocommerce_currency'));
            add_shortcode('classifieds-userdata', array($this, 'classifieds_get_userdata'));
            add_shortcode('classifieds-uploads-path', array($this, 'classifieds_uploads_path_func'));
            add_shortcode('classifieds-contact-advertiser', array($this, 'classifieds_contactadvertiser_shortcode_func'));
            add_shortcode('classifieds-page-url', array($this, 'classifieds_get_page_by_title'));

More help:
https://codex.wordpress.org/Function_Reference/add_shortcode

You can download the plugin "toolset-classifieds" here:
https://toolset.com/account/downloads/#application-frameworks
find "Classifieds with Layouts", click link "Plugins used", there is a link "Toolset Classifieds"

#553343

I am thinking of these ones:
[classifieds-currency] [classifieds-listing-info] [classifieds-message-data] [classifieds-message-userdata] [classifieds-no-image-available] [classifieds-page-url] [classifieds-redirect] [classifieds-return-active-package] [classifieds-return-available-ad-credits] [classifieds_changepassword_url] [classifieds_logout_url] [classifieds_manage_ad_package_url] [classifieds_my_messages_url] [classifieds_myaccount_settings_url] [classifieds_myads_list_url] [cred-post-expiration] [wpml-post-languages] [wpml-post-original-language] [wpv-current-user]
which are list in settings

#553348

You can use a editor for example (Notepad++), search the keyword "add_shortcode" within "toolset-classifieds" plugin folder, you will be able to get all shortcodes created with "toolset-classifieds" plugin:

Search "add_shortcode" (15 hits in 4 files)
\toolset-classifieds\inc\cred-wpml-integration-shortcode.php (2 hits)
	Line 21:                 add_shortcode('wpml-post-languages', 'wpml_post_languages_shortcode');
	Line 22:                 add_shortcode('wpml-post-original-language', 'wpml_post_original_language_shortcode');

 \toolset-classifieds\inc\message_system.class.php (2 hits)
	Line 14: 			add_shortcode( 'classifieds-message-userdata', array( $this, 'classifieds_get_message_userdata' ) );
	Line 15: 			add_shortcode( 'classifieds-message-data', array( $this, 'classifieds_get_message_data' ) );

 \toolset-classifieds\inc\package_order.class.php (2 hits)
	Line 12:             add_shortcode('classifieds-return-available-ad-credits', array($this, 'classifieds_return_available_ad_credits'), 10, 1);
	Line 13:             add_shortcode('classifieds-return-active-package', array($this, 'classifieds_func_return_active_package_of_current_user'), 10, 1);

 \toolset-classifieds\inc\toolset-classifieds.class.php (9 hits)
	Line 62:             add_shortcode('login-form', array($this, 'classifieds_login_form'));           
	Line 63:             add_shortcode('lost-password-form', array($this, 'classifieds_lost_password_form'));
	Line 64: 	        add_shortcode('classifieds_logout_url', array($this, 'classifieds_logout_shortcode_func'));
	Line 65:             add_shortcode('classifieds-currency', array($this, 'classifieds_get_woocommerce_currency'));
	Line 66:             add_shortcode('classifieds-userdata', array($this, 'classifieds_get_userdata'));
	Line 67:             add_shortcode('classifieds-uploads-path', array($this, 'classifieds_uploads_path_func'));
	Line 68:             add_shortcode('classifieds-contact-advertiser', array($this, 'classifieds_contactadvertiser_shortcode_func'));
	Line 69:             add_shortcode('classifieds-page-url', array($this, 'classifieds_get_page_by_title'));
	Line 86:             add_shortcode('classifieds-listing-info', array($this, 'classifieds_get_listing_info_by_url_param'));

There is a shortcode [wpv-current-user] in your list, it is a shortcode from Views plugin,
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-current-user

Same as above you can search keyword "wpv-current-user" within wp-views plugin, the source code of it is in Views plugin file \wp-views\embedded\inc\wpv-shortcodes.php, line 471~574

#553478

I have the information I need.