Forums

Posts show on front page but not category or archive (7 posts)

  1. hoffmaao
    Member
    Posted 1 year ago #

    I've set up a new installation of wordpress for some testing. I posted a video in a specific category, it shows up on the main page and in the post itself. It is not visible from either the category page or the January 2011 archive page

    The hope is that the post will show on the category and archive. Is there a configuration setting that is preventing this? I've been looking in the documentation and other forums but not much luck.

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    no settings -
    you will need to edit some template files, for instance archive.php of your theme:

    look for the_excerpt(); and replace it with the_content();

    http://codex.wordpress.org/Function_Reference/the_excerpt

  3. hoffmaao
    Member
    Posted 1 year ago #

    Thanks for the quick reply. I looked in the archive.php for the theme and did not see the_excerpt(); listed anywhere. Does this mean I should just add the_content(); anywhere in that file? Or I also noticed "Use with Conditional Tags" in the reference you provided, would this be better? Looking forward to your response. Thanks you.

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    I looked in the archive.php for the theme and did not see the_excerpt(); listed anywhere.

    some themes are structured differently:
    what theme are you using?

    you could also paste the code of your archive.php into a http://wordpress.pastebin.com/ and post the link to it here.
    someone might then be able to make some suggestions.

  5. hoffmaao
    Member
    Posted 1 year ago #

    The theme that is being used is called twentyten.

    I've never used pastebin so hopefully the link below will work. I copied the code of archive.php to it.

    <script src="http://pastebin.com/embed_js.php?i=39TLPwVC"></script>

  6. alchymyth
    The Sweeper
    Posted 1 year ago #

    edit loop.php and look for:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    (this occurs more than once)

    change it in all occurrences to:

    <?php if ( is_search() ) : // Only display excerpts for  search. ?>

    btw:
    Twenty Ten as the default theme of wp3 will be overwritten with the next update of wordpress, and all modifications will be lost.

    consider creating a child theme: http://codex.wordpress.org/Child_Themes
    and make regular backup copies of your theme files.

  7. hoffmaao
    Member
    Posted 1 year ago #

    Thank you very much for the help. It looks like there was only one occurrence in the loop.php nonetheless the articles appear to be showing up properly. I'll definitely look into setting up a child theme. Thanks again!

Topic Closed

This topic has been closed to new replies.

About this Topic