WordPress.org

Ready to get started?Download WordPress

Forums

More function doesnt work with query post? (2 posts)

  1. JesperA
    Member
    Posted 5 years ago #

    Hi!

    I am setting up a news section, i´ve made a page within wordpress, added it to a template page called "nyheter", i´ve added a query post to that template page:
    <?php query_posts('category_name=Nyheter&showposts=99999'); ?>

    The post shows up but the <!--more--> function doesnt work, why?

    I use this code to show the post:

    <div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<p><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></p>
    
    				<?php the_content('Läs mer...'); ?>
    
    			</div>

    Would really appreciate a solution for this

  2. JesperA
    Member
    Posted 5 years ago #

    Sorry to bump this thread already but this is a major thing that alot of people use and they seem to get it to work, i have read the codex and everything looks like it should?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.