Claim Button shortcode does not work

This topic contains 9 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 3 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #528936

    Bernward Maspohl
    Full Member
    Post count: 65

    I want to output the claim button with [gd_post_claim] in a text widget. But instead of the button the shortcode will be output.

    As a widget the claim button is displayed correctly.
    What am I doing wrong?

    Example: https://gruenes-muensterland.de/anbieter/germany/nordrhein-westfalen/muenster/vereine-organisationen/gruener-weiler-eg/

    Thanks!
    Bernward

    #528943

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #528980

    Bernward Maspohl
    Full Member
    Post count: 65
    This reply has been marked as private.
    #529092

    Alex Rollin
    Moderator
    Post count: 27815

    Text and HTML widgets both do not support shortcodes. You can try this if you want to change that:
    https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/

    #529095

    Bernward Maspohl
    Full Member
    Post count: 65

    Hi Alex,

    thank you for your answer. What irritates me is that I already use shortcodes from WPGeodirectory in the text widget. For example [gd_post_meta title=” id=” key=’logo’ ] and others. Is this something different for [gd_post_claim]?

    Thanks!
    Bernward

    #529107

    Alex Rollin
    Moderator
    Post count: 27815

    It is a WP thing, and that is the only way to change it that I know of.

    #529116

    Bernward Maspohl
    Full Member
    Post count: 65

    Hi Alex,

    yes, you’re right. But something else is wrong here. I have included the shortcode in the text widget and even added an additional add_filter( ‘widget_text’, ‘do_shortcode’ ); in the functions.php.
    What surprises me is that the other shortcodes of geodirectory work, only gd_post_claim does not. So it can’t be the widget, right?

    #529178

    Alex Rollin
    Moderator
    Post count: 27815

    The shortcode was incorrect

    
    
    
    [gd_claim_post text="Claim Listing" output="button"]
    
    #529230

    Bernward Maspohl
    Full Member
    Post count: 65

    Hi Alex,

    Oops! I’m sorry for the trouble. So it would have worked from the beginning, if the syntax had been correct.
    Thank you very much for helping me. Now it works 🙂

    Bernward

    #529386

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 10 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket