Okay
  Public Ticket #3057392
shortcode for the_title?
Closed

Comments

  • Shannon Plaquet started the conversation

    I'm trying to setup the BandsInTown widget so that one setup/config can be used on multiple artists' pages. I'm not finding a simple {the_title} meta tag (or comparable tag) for Elementor, to use.  Does one exist?

    Additionally, I created my own WP shortcode (using functions.php) for [post_title], which *does* work... but, is conflicting with something in Sonaar's  BiT Elementor widget.  It's ultimately working, but also generating a bunch of code on the frontend (assuming the widget cannot handle the [post_title] shortcode).

    Would it be possible to create such a [post_title] function within Sonaar, so that we might be able to use the Page Title meta tag on any widget that needs a name/title like this one?

    If not, how can I go about using my own shortcode, but not trigger the break in your BiT widget?

    As you can see, the shortcode works as expected when I insert it into the official BiT embed code... so, can we figure out why there's an issue with your code?

    Attached files:  Screen Shot 2022-06-03 at 12.36.46 PM.png
      Screen Shot 2022-06-03 at 12.35.19 PM.png
      Screen Shot 2022-06-03 at 12.44.32 PM.png

  •  646
    Alexandre replied

    Hi Shannon, 
    The BandInTown widget is not designed to be dynamic. I dont think you can use meta tag with elementor. The way to make element dynamic is available with elementor pro.
    Here a quick video where I set a heading element to get the post title and image to display the post featured image. https://d.pr/v/BEZsLW
    But we cant do something similar with BandInTown element

    Thanks,


    Alexandre from the Sonaar.io Crew