title: If have_post not available then ng-bind
body: <p>Hope you all be safe in this time of crisis. I'm looking for a solution to program my theme.. I do sometimes have content in my wordpress however i also does via a json. I wrote something but its throwing basic WP errors.</p>
  
  <p>I need something like this but code correctly:</p>
  
  <pre><code>&lt;div class="col-md-12"&gt;
              &lt;h3 class="h3"&gt;About {{ctrl.Coin.name}}&lt;/h3&gt;
  
              &lt;?php
                if ( have_posts()  &amp;&amp; get_the_content() != '') {
                    while ( have_posts() ) :
                      the_post();
  
                      get_template_part( 'template-parts/coindetail-content', get_post_type() );
  
                    endwhile; // End of the loop.
                  } else {
                    echo '&lt;p ng-bind-html="ctrl.Coin.descriptionhtml"&gt;&lt;/p&gt;';
                  }
                  ?&gt;
            &lt;/div&gt;
  </code></pre>
  
  <p>Who can help me with this?</p>
  
  <p>Regards Dutch</p>