How to load shortcode in search not found?

Home Forums Gillion Theme How to load shortcode in search not found?

Home Forums Gillion Theme How to load shortcode in search not found?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • borishar
    Participant

    I have this code from content-none:

    <?php if ( is_home() && current_user_can( ‘publish_posts’ ) ) : ?>
    <?php printf( wp_kses( __( ‘Ready to publish your first post? Get started here.’, ‘gillion’ ), gillion_allowed_html(>
    <?php elseif ( is_search() ) : ?>
    <?php esc_html_e( ‘Nothing found’, ‘gillion’ ); ?>
    <?php else : ?>
    <?php esc_html_e( ‘It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.’, ‘gillion’ ); ?>
    <?php endif; ?>

    but  I want to post a short code do_shortcode(‘[wpforms id=”329″]

    When I did that, it shows the form code as text and doesn’t run the PHP. Can someone tell me the proper way to change “Nothing found” text into the shortcode?

    Shufflehound
    Moderator

    Hi there,

     

    Sure you need to add it like this:

    <?php echo do_shortcode('[wpforms id="329"]'); ?>

     

    Let us know if that works! 🙂

     

    Best regards,

    Shufflehound team

Viewing 2 posts - 1 through 2 (of 2 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form