• Resolved Erik Molenaar

    (@erikmolenaar)


    I have another suggestion for a great improvement of your awesome plugin! ??

    The search results contain an excerpt or a preview of main content (when no excerpt is entered). Great stuff, but [shortcodes] are also shown. Which is kinda ugly…!

    Can the [shortcodes] be removed for a better look? Example:

    https://www.screencast.com/t/t8e8YHEtKRl

Viewing 15 replies - 1 through 15 (of 18 total)
  • I second this request! Any workarounds in the meantime?

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi to all, I’ve added a shortcodes strip in the search template..
    Download the new plugin release and let me know if it’s ok! ??

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi @lando1982,

    Thanks for the prompt update. I appreciate your effort ??

    I have downloaded your plugin update but I am still getting the rearch results as above. So, with [shortcodes].

    I am using the “Plugin based” content box type.

    Looking forward to your reply. Thanks for your help!

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Erik! I’ve tried with “Plugin based” configuration and for me all shortcodes are stripped correctly.
    One question, have you registered shortcodes or are only in text without any “registration”? In other words, have you in the code something like this:

    function shortcode_cv_row_func( $atts ) {
    return “”;
    }
    add_shortcode( ‘cv_row’, ‘shortcode_cv_row_func’ );

    Shortcodes removal works only if they are registered..
    Bye

    Doesn’t work for me either, I’m afraid.

    See: https://meetingoftheminds.org/?s=annual+report+2017

    Plugin Author Andrea Landonio

    (@lando1982)

    Mmm.. I don’t get this error in my env site… can you search in yourproject if you find a row like:

    add_shortcode( ‘et_pb_section’, ‘XXXXXXX’ );

    ?

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi @lando1982,

    Thanks for your reply.

    Shortcodes removal works only if they are registered..

    I use the Visual Composer plugin for which these shortcodes are for. This plugin is active and working great. Its shortcodes are registered and output perfectly on these pages.

    Note:
    I have been thinking about shortcode stripping some more. Displaying a portion of the main content in the search results could lead to more complications. Like you’ll need to strip HTML tags as well (images/links). Have you thought about this? Have a look at this post.

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Erik, absolutely! I can remove html tags.. I’ll do in the next release! It’s a good point but I can’t strip not registered shortcodes. To do this I need to parse text with some regex.. I don’t like this solution..

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi @lando1982

    I installed your latest version (1.6.4) but I am still getting the registered [shortcodes] in the search results like previous screenshot:

    04.18.2018-13.30.29

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Erik!
    Can you send me the way in which the shortcodes are registered?

    I’ve tried with a code like:

    [cv_row][cv_row2]Aliquam nibh metus, rutrum eu est[/cv_row2][/cv_row]
    Sed in purus mauris. Nunc a gravida odio. Sed vitae volutpat tellus.

    And I get a correct solution of:

    Sed in purus mauris. Nunc a gravida odio. Sed vitae volutpat tellus.

    Please send me the code of shortcodes registration because I cannot replicate your problem..

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    Hi Andrea,

    Can you send me the way in which the shortcodes are registered?

    I am not exactly sure what you mean, but I use the popular plugin WPBakery Page Builder which generates these shortcodes. If you like I can give you access to our development server. I’ll e-mail you the details.

    Thanks in advance for having a peek ??

    Plugin Author Andrea Landonio

    (@lando1982)

    Ehm Erik, it could be useful… ??

    Thread Starter Erik Molenaar

    (@erikmolenaar)

    I just have send out the e-mail. Looking forward to your update!
    Thanks again ??

    I use a visual builder similar to Erik, in my case it’s the Divi Builder. I don’t know how they are creating their shortcodes, but they are still appearing in the search results. One of my coworkers just sent over this screenshot and a complaint. What can I tell them?

    View post on imgur.com

    Plugin Author Andrea Landonio

    (@lando1982)

    Hi Dave,
    the problem is that if the Divi Builder use a not standard way I cannot strip shortcodes because to do this the only way is to parse the all text with some regex and it’s not a safe solution for me..

    Can you try to ask to your devs/coworkers if the code they find function like this:

    add_shortcode

    If founded, please write to me more details about it.. ??

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Feature Request: remove [shortcodes] from excerpt’ is closed to new replies.