WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] "From the Archive:" and stopping it (13 posts)

  1. Paul Ille
    Member
    Posted 8 years ago #

    I have a loop setup on my page for both posts and topics and it's pulling randomly topics "From the Archive:" ( http://www.paulille.com )

    Is this controlled by the loop? Or somewhere else? I'd rather stop this from happening.

  2. yas
    Member
    Posted 8 years ago #

    My first thought: Look in your header.php file, under the <title> tag. There's likely some PHP in there that's doing it.

    How are you running this loop? Are you using wp_query()?

  3. moshu
    Member
    Posted 8 years ago #

    What is a "topic"?
    What I see on the top right in the sidebar = the 5 most recent posts.

  4. Paul Ille
    Member
    Posted 8 years ago #

    yas, thx I'll look closer at that tonight. For that page I'm not using wp_query. It should be pulling from all categories.

    Moshu, by topic I mean title. What I did was get post information, but only display the title. Is that wrong to do? Is there a better way?

    The real issue is that the second post shown is being pulled from the archive randomly and I have no idea why. This happens both in the side bar and the main post area.

  5. Paul Ille
    Member
    Posted 8 years ago #

    yas, sorry for the delay, here's the way I'm running the loop for the 'my Topics' section on the right:

    <?php query_posts('showposts=5'); ?>
    <?php while (have_posts()) : the_post(); ?>
    &nbsp;&nbsp;<a>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    <?php endwhile;?>

    for the 'my Journal' section on the left I'm running the following loop:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php if ( in_category('1') ) { ?>
    <?php } else { ?>
    <?php } ?>
    <a>"rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
    <?php the_time('F jS, Y'); ?> by <?php the_author() ?>
    <?php comments_popup_script(450, 450); ?>
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    <?php the_content(); ?>

    It seems that the random archive post comes up in both loops, but they are usually different ones.

  6. Paul Ille
    Member
    Posted 8 years ago #

    When I looked in the default template's index.php..through 'view source' I see the following lines:

    [code]
    </style>
    <link rel='archives' title='December 2005' href='http://www.paulille.com/wordpress/?m=200512' />
    <link rel='archives' title='November 2005' href='http://www.paulille.com/wordpress/?m=200511' />
    </head>
    [/code]

    I don't see that on my index.php

    In the header.php I see:
    [code]
    <?php wp_get_archives('type=monthly&format=link'); ?>
    [/code]

    but I'm not sure that's relevant.

    Any ideas?

  7. Paul Ille
    Member
    Posted 8 years ago #

    bump, I'm going to look at this again in a few. Any help is much appreciated.

  8. Paul Ille
    Member
    Posted 8 years ago #

    I can't figure this out. Can someone give me a hand?

    Every second post using the loop shown above is from the archive. It's preceded by saying "From the archive:"

    All I need to know is where that "From the archive:" text is coming from and I could probably fix it, but I can't find it!!! It's making me angry hehe

  9. Paul Ille
    Member
    Posted 8 years ago #

    Mystery eh? No one? Nice.

  10. yas
    Member
    Posted 8 years ago #

    You're not going to find the answer by using "view source". The problem is somewhere in your PHP files...

  11. 8wheels
    Member
    Posted 8 years ago #


  12. Paul Ille
    Member
    Posted 8 years ago #

    Yeah, thx I did a text search and couldn't find the phrase "from the archive" anywhere which is annoying...as well as the fact that no one in the forums seems to know where it is eh I stopped looking for it a long time ago...although I'd really like to know.

  13. Paul Ille
    Member
    Posted 8 years ago #

    Omg, I feel like a moron. I just stumbled onto the answer to my issue. I had the plugin called Archivist activated.

    Fixed lol

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags