title: read more link only when excerpt of content is available in wordpress
body: <p>i am working on a homepage which includes post, sometimes the post is only with featured image and no content, and sometime there is post with both featured image and content. i want to show excerpt with the post with a readmore button when there is content available with the post. i have added a read more button but it even shows with the post which don't have any content. how can i show it only when there is excerpt available for content. here is the code for the excerpt div.</p>
  
  <pre><code>&lt;div class="entry-excerpt"&gt;
              &lt;?php
                      if( strlen( $post -&gt; post_excerpt . $post -&gt; post_content ) &gt; 0 ){
                  ?&gt;
                          &lt;div class="excerpt"&gt;
                              &lt;?php
                                  if( is_user_logged_in () ){
                                      the_excerpt();
                                      echo '&lt;a href="' . get_permalink() . '" title="' . __('Continue Reading ', 'cosmotheme') . get_the_title() . '" rel="bookmark"&gt;Continue Reading&lt;/a&gt;';
                                  }else{
                                      $meta = meta::get_meta( $post -&gt; ID  , 'settings' );
                                      if( isset( $meta['safe'] ) ){
                                          if( !meta::logic( $post , 'settings' , 'safe' ) ){
                                              the_excerpt();
                                              echo '&lt;a href="' . get_permalink() . '" title="' . __('Continue Reading ', 'cosmotheme') . get_the_title() . '" rel="bookmark"&gt;Continue Reading&lt;/a&gt;';
  
                                          }
                                      }else{
                                          the_excerpt();
                                      }
                                  }
                              ?&gt;
                          &lt;/div&gt;
                  &lt;?php
                      }
                  ?&gt;
              &lt;/div&gt;
  </code></pre>