WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Beel
    Member
    Posted 9 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
    the_excerpt();
    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 9 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
    Member
    Posted 9 years ago #

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

  4. michiko
    Member
    Posted 9 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.
    michiko

  5. Beel
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

    Nop

  7. error
    Member
    Posted 9 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

Tags