WordPress.org

Ready to get started?Download WordPress

Forums

Quick Business Website
[resolved] Shortcodes? (7 posts)

  1. Hendison Scott
    Member
    Posted 6 months ago #

    All of the pages your plugin creates have shortcodes on them. Where can I find a list of all the shortcodes, so we can just use the features we want on existing pages?

    Actually, I just tried one of the shortcodes [SMAR_INSERT] on our existing page for testimonials and the button to leave a review appears, but when clicked, it doesn't expand.

    Should the shortcodes work on any page we put them?

  2. Hendison Scott
    Member
    Posted 6 months ago #

    Actually, this morning I checked again and the shortcode is working on another page. Must have been a cache issue. Anyway, that brings me back to the original question... Where can I find a list of all the shortcodes?

  3. Smartest Themes
    Member
    Plugin Author

    Posted 6 months ago #

    Sorry for the delay. There are only 2 shortcodes in the plugin:

    1. The Reviews:

    [SMAR_INSERT]

    and

    2. The Contact Form:

    [smartest_themes_contact_form]

    However, they were not originally meant to be used freely because they both require some javascript (and CSS) files to work properly. In order to make the plugin lighter, those files are only loaded on the default 'Reviews' page and 'Contact' page which the plugin creates automatically.

    To get the Reviews shortcode to work properly on any page, you could add this to your functions:

    /**
     * Load script for Smartest Reviews
     */
    function st_load_reviews_script() {
    	wp_enqueue_script('smartest-reviews');
    }
    add_action( 'wp_enqueue_scripts', 'st_load_reviews_script' );

    That should make the Reviews shortcode work on any page or post. Hope this helps.

  4. Hendison Scott
    Member
    Posted 6 months ago #

    thanks for the reply, and it sure would be nice if all of that short cods from the original WP Customer Reviews plugin were restored. I like your output better because it includes schema data, but theirs has more options and functionality. have you got any plans to restore those?

  5. isabel104
    Member
    Plugin Author

    Posted 6 months ago #

    Well, no because my intention was to add minimalistic Reviews capability to the QBW plugin. Its intended for people who may not even know how to use shortcodes, so its intended to just work automatically. I took from WP Customer Reviews the basic review capability, but without the extra options for having Reviews on products, and the extra shortcode.

    My modifications focus on adding microdata to the home page for businesses, rather than to individual product pages. I only include capability for 1 set of reviews, which are for the business. The extra functionality from WP Customer Reviews has to do with pulling Reviews from different posts or pages, which doesn't apply to QBW plugin. If what you need is a stand-alone Reviews plugin, WP Customer Reviews is excellent.

  6. Hendison Scott
    Member
    Posted 6 months ago #

    Okay, and thanks for the reply - Yes I agree that WP Reviews is excellent, but unfortunately they have not integrated schema output as you have, and I don't know if they intend to...

  7. Hendison Scott
    Member
    Posted 6 months ago #

    I'm marking this as "resolved"

Reply

You must log in to post.

About this Plugin

About this Topic

Tags