wordpress - Slider not displaying images but plain text -


i'm trying use slider in different blog pages in wordpress website, doesn't work. when use it, shows plain text: [metaslider id=4281]

it seems "blog entries" don't understand metaslider code, because have tried in simple page, , works. here's code of blog entry (single.php)

    <?php get_header()?>     <div id="maincontent">         <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); //the loop?>         <div <?php post_class()?>>  <?php if(has_tag()){the_tags( _e('keywords','polaroids') . ': ', ', ');}?><br/>  <hr style="border: 0;border-bottom: 1px dashed #dddddd;"></br>              <h1><?php the_title()?></h1>                <div class="date"><?php /* the_date() */ ?></div>               <div class="post-content"><? echo $post->post_content; /*php the_content()*/ ?></div>                <div class="postfooter">              <?php wp_link_pages('before=pages&after='); ?><br/>                </div>  <hr style="border: 0;border-bottom: 1px dashed #dddddd;"> <div class="breadcrumbs"><?php the_category(', '); ?></div> <hr style="border: 0;border-bottom: 1px dashed #dddddd;">           </div> 

i haven't tested suspect echoing post_content might returning plain text. not sure why the_content commented out try using that.

so instead of this:

<? echo $post->post_content; /*php the_content()*/ ?></div>

try using this:

<?php the_content(); ?>


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -