Skip Navigation

[Resolved] use custom fields inputs to create shortcode(s) and trigger it

This support ticket is created 4 years, 10 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1908685

Tell us what you are trying to do?
I'm trying to develop directory listings and member profiles that take user inputs that generate a shortcode to display stuff on listings and/or profiles

Is there any documentation that you are following?
no, totally lost trying to figure it out

Is there a similar example that we can see?
I'm currently using ACF and a directory plugin, which does the job but it seems sort of hacked cludged together and is labor intensive . I need to create a lot of different shortcodes to trigger from third-party plugins.
/** Twitter Hashtag Feed **/
add_shortcode( 'twitterhashfeed_shortcode' , 'my_twithash_shortcode_callback' );
function my_twithash_shortcode_callback( $atts ) {
if ( !get_field( 'twitter_hashtag') ) return '';
$inputid = get_field( 'twitter_hashtag' );
return do_shortcode("<h3>Twitter Hashtag Feed</h3>[custom-twitter-feeds hashtag=\"{$inputid}\" num=4 showheader=false ]");
}

What is the link to your site? not applicable

Hi -

I have poked around various tutorials, threads and posts, but can't seem to find the right description to search for what I'm looking for.

Q: How would Toolset process custom field inputs to generate output shortcode on directory listings or member profiles?

Thanks

#1908971

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I'm not sure what shortcocde you want to build but the example of shortcode you shared is a custom shortcode and we do not entertain custom shortcode as its beyond the scope of our support policy.

If you want to learn how you can make sites using Toolset and how sites are build, you can always check the reference site we offer on our free test platform http://www.discover-wp.com: https://discover-wp.com/site-templates/

You can subscribe to any reference site and check how its build using Toolset.

If you want to install the reference site we offer on your server, you can use the Framework Installer plugin:
=> https://toolset.com/course-lesson/using-framework-installer-to-install-reference-sites/

If you want to know, how you can add Toolset custom fields to PHP templates, please check the following doc:
=> https://toolset.com/documentation/customizing-sites-using-php/