WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] is the_content() working? (5 posts)

  1. swyx
    Member
    Posted 4 years ago #

    hey guys simple question. i was working on some unrelated stuff and then suddenly my content stopped showing. where is the_content hosted? on my end of things? I don't think i touched any of that stuff at all, i was just messing around with basic CSS and HTML. if this has come up in the past i would dearly appreciate links, search shows random unhelpful crap

  2. swyx
    Member
    Posted 4 years ago #

    i hadn't touched the wordpress core (as i mentioned above) but here is the relevant code anyway

    single.php (i commented out the original code to debug; no avail - there is simply no output from the_content)

    <div class="entry-content">
    <!--		<?php the_content( __('<p>Read the rest of this entry &raquo;</p>', 'arras') ); ?>  -->
    		<?php the_content(); ?>
            <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ', 'arras'),
    			'after' => '</p>', 'next_or_number' => 'number')); ?>
    		</div>

    i use the Arras theme and so this was my home.php which also stopped working.

    <span class="featured-entry">
                        <span class="entry-title"><?php the_title(); ?></span>
                        <span class="entry-summary"><?php echo arras_strip_content(get_the_excerpt(), 20); ?></span>
    					<span class="progress"></span>
                    </span>

    sorry folks i think its pretty clear that the_content is supposed to run from my server, but i didnt touch any of it so i really cant figure out why its not outputting a single thing.

  3. EjMana
    Member
    Posted 4 years ago #

    You didn't take that piece of code inside "<div class="entry-content">
    " out of the Loop by chance?

  4. swyx
    Member
    Posted 4 years ago #

    no, no, i didnt touch this thing before it stopped working.. i'm not even sure why i put up the code since its clearly not the problem but everyone else seems to do it on the forums.

    btw i also did the whole deactivate plugin business - zilch.

  5. swyx
    Member
    Posted 4 years ago #

    i feel like an idiot. after i typed the above i went back to check and found i missed out one plugin - fotobook. who woulda guessed?

    resolved. cheers EjMana

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.