D
D
Dmitry2017-02-16 09:10:04
CMS
Dmitry, 2017-02-16 09:10:04

Why are shortcodes not working in Wordpress plugin?

Hello. Installed and activated a plugin for Wordpress called Ads-Wordpress . Created a blog page. But when adding a shortcode that is used in the plugin, the shortcode itself is displayed on the page.
If someone is familiar with this plugin, help to display the form?
Maybe you didn't make some settings? I've set everything up in the admin. Maybe you need to change something in the plugin files?
I render the form like this:

// Start the Loop.
        while ( have_posts() ) : the_post();
      ?>
      <div class="container">
        <div class="row">
          <div class="col-xs-12">
            <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
              <?php
                the_title( '<header class="entry-header"><h2 class="entry-title">', '</h2></header><!-- .entry-header -->' );
              ?>

              <div class="entry-content">
                111
              <?php
                the_content();
              ?>
              </div><!-- .entry-content -->
            </article>
          </div><!-- .col-xs-12 -->
        </div><!-- .row -->
      </div><!-- .container -->
      <?php
        endwhile;
      ?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pushkarev, 2017-02-16
@AXP-dev

In a text editor, you need to write like this - [code]
And in the source code like this -echo do_shortcode('[code]');

W
WP Panda, 2017-02-16
@wppanda5

Do you add the shortcode through the admin panel, or in the template code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question