WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] the_content not show images (2 posts)

  1. fepiva
    Member
    Posted 1 year ago #

    Hi, I'm trying to show posts from one category on the front page but the_content() doesn' show the images!!!. Neither works "Read more"

    Here's the code:

    query_posts( array ( 'category_name' => 'home-main', 'posts_per_page' => 3 ) );
    if (have_posts()) :
    while (have_posts()) :
    the_post();
    the_content("Read more");
    endwhile;
    endif;

    And here's the html:
    <img class="alignnone wp-image-73" title="slide2" src="http://www.domain.com/wp/wp-content/uploads/2012/11/img21.jpg" alt="" width="751" height="189" />This is a test.

    Can anyone help me, please

    thanks

  2. fepiva
    Member
    Posted 1 year ago #

    RESOLVED!!! I've been testing the plugin "Page Post" to the frot page width the option Excerpt or full post: Excerpt and this was affecting the function the_content()... uffff I was going crazy

Topic Closed

This topic has been closed to new replies.

About this Topic