PHP in page – Adding below page content
-
Good morning!
I’ve scoured the internet and cannot seem to find the answer for this one (probably not using the correct search terms) so I’m sorry if this question has been asked before.
I am wanting to embed PHP code into my pages, the reason being is I wish to have a few pages dedicated to different catagories and list 5 per page (I realise this can be done with plugins, but I prefer not to plugin bomb).
Now, when I imput the correct code it places the PHP code BELOW the page, which leaves a large gap above it, which is frustrating. The example can be seen here:
http://www.canadafinance.net/market-blog/
I’ve put “ww” there to show the example, this is text in the actual page, the content below is showing below the page part and on my admin screen shots “Edit”.
Code im using:
<?php query_posts(‘cat=6&showposts=5’); ?>
ww
<?php while (have_posts()) : the_post(); ?>
<?php endwhile; ?>Alls I want is the articles to show as they would on the front page (if yours is dedicated to that ofc) and have no gap at the top.
Thanks, and sorry for the troubles.
The topic ‘PHP in page – Adding below page content’ is closed to new replies.