WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Stylesheet stripped from page 2 of posts (3 posts)

  1. Yakusoya
    Member
    Posted 5 years ago #

    I am using WordPress as a CMS for my portfolio and I'm still in the process of setting up my page templates. I have a custom page template that shows only posts from one specific category. I set it to show only 5 posts per page and then direct the user to page 2. But on page 2, the stylesheets are not being applied at all even though it is using the same page template that worked for all other pages. This happens with both FF3.0.11 and IE6.

    http://cfwan.com/web/
    (Scroll to bottom to click to page 2)

    And here is my custom loop which I think is the source of the problem.

    <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts("category_name=Web&showposts=5&paged=$page");
    while ( have_posts() ) : the_post() ?>
    <?php the_content('', FALSE, ''); ?>
    <?php endwhile; ?>
  2. Yakusoya
    Member
    Posted 5 years ago #

    I tested it some more and it seems the problem is my permalink structure. There's a problem with the pagination if I set it to /%category%/%postname% . I just reverted back to the default and the second page shows up styled now. Does anyone a fix for this?

  3. Yakusoya
    Member
    Posted 5 years ago #

    I found a solution finally thanks to this post in the forums. For people who might have this problem in the future, make sure your permalinks is not set to just %postname%. But even in this case with both /%category%/%postname% it stripped the stylesheets. So use full URLs to the CSS in your header.

Topic Closed

This topic has been closed to new replies.

About this Topic