[resolved] Incorporating the new is_paged() (7 posts)

  1. Beel
    Posted 11 years ago #

    I am trying to wrap my head around the new is_paged() and need a little help. I had this:
    <?php if (is_archive()) : // Only show excerpts on archive pages
    else :
    the_content('Continue reading "' . get_the_title() . '"...');
    endif; ?>
    But now scrolling through the "next page" links just shows the excerpts. If I add !is_paged() that works here, but messes up the next page in the archives. What to do, what to do? ;-)

  2. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

    See this thread on the hackers list. I guess the question is, should pages off of home be considered archives? Opinions?

  3. Joshua Sigar
    Posted 11 years ago #

    Instead, why don't you give us a function setAsArchive( boolean $isArchive )? :P Just kidding.

  4. michiko
    Posted 11 years ago #

    hello all,
    hmm, i'm very keen to know the answer of your query Beel because i wanted to do or have that function too on my blog.

  5. Beel
    Posted 11 years ago #

    I am not spending too much time on it at the moment as is_paged() is a WIP and may or may not be around long as is, if at all.
    Sounds like some feedback is in order - should pages be considered archives?

  6. Joshua Sigar
    Posted 11 years ago #


  7. error
    Posted 11 years ago #

    Pages should not be considered archives, but they should be as fully editable as any other post (i.e. category, timestamp, etc.).

Topic Closed

This topic has been closed to new replies.

About this Topic