Viewing 3 replies - 1 through 3 (of 3 total)
  • Use query posts and <?php the_excerpt();?>

    So your template for the projects page would look something like this –

    Within the loop (after <?php if (have_posts()) : while (have_posts()) : the_post(); ?>) add something like this

    <?php query_posts('showposts=4&cat=3'); ?>
        <ul>
    	<?php while (have_posts()) : the_post(); ?>
        	<span class="home-links">
    	        <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    			<?php the_excerpt(); ?></li>
            </span>
    		<?php endwhile;?>
    Thread Starter ulyssesnld

    (@ulyssesnld)

    hmmz..

    i tryed it on the webpage ( https://www.the3theye.com ) but it didnt quite workout(you can see the result)..

    Also u see that u can not post something under an page so i have to stick to catagories..

    Is is also posible that he shows up the last 3 posts from the catagorie “project” (example)

    And to hide all the posts by default? ( if you click on the title projects you will see them all.. )

    Thread Starter ulyssesnld

    (@ulyssesnld)

    fixed the site , was not displaying right because of an plugin..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding an preview of an other page’ is closed to new replies.