Forums

the_content is not showing (3 posts)

  1. wolfkin
    Member
    Posted 2 years ago #

    http://wordpress.pastebin.com/d44ba0cee

    I finally got my loop working, I finally got my filter to work so only one category is showing. Now my current issue is I'd like the content to show and it isn't showing. I should point out this is a PAGE and not my main blog page.

  2. Frumph
    Member
    Posted 2 years ago #

    You do realize your doing a loop within a loop right?

    <?php while(have_posts()) : the_post(); ?> <-- thats your loop.

    now your doing:

    foreach($myposts as $post) <-- another loop.

    Get rid of the 2nd foreach and put:
    $myposts = get_posts('numberposts=-1&offset=$debut&category=4');

    above the while (have_posts())

    and give that a try.

  3. wolfkin
    Member
    Posted 2 years ago #

    alright I tried to do that and some tweeking to fix "unexpected ;" errors I end up with this code
    http://wordpress.pastebin.com/m1c062919

    which doesn't show any posts.

    line 14 seems to be my problem. I thought since it was in the same PHP statement I should change the ; to a : but then I kept getting unexpected : errors on line 15. So i deleted it and that gave me an error. So I put in the original ; and that gives me no errors but also no posts.

Topic Closed

This topic has been closed to new replies.

About this Topic