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? ;-)
See this thread on the hackers list. I guess the question is, should pages off of home be considered archives? Opinions?
alphaoide
Member
Posted 5 years ago #
Instead, why don't you give us a function setAsArchive( boolean $isArchive )? :P Just kidding.
michiko
Member
Posted 5 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
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?
alphaoide
Member
Posted 5 years ago #
Pages should not be considered archives, but they should be as fully editable as any other post (i.e. category, timestamp, etc.).